From e3d4976292b8bdc9e34feef0d32876f15943e5e1 Mon Sep 17 00:00:00 2001 From: cloud-java-bot Date: Tue, 7 Jul 2026 05:49:34 +0000 Subject: [PATCH 1/2] chore: update googleapis commitish to c39209b --- librarian.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/librarian.yaml b/librarian.yaml index f810bc2c81fa..18537e7dcf7d 100644 --- a/librarian.yaml +++ b/librarian.yaml @@ -16,8 +16,8 @@ version: v0.24.1-0.20260701202128-6037497ba994 repo: googleapis/google-cloud-java sources: googleapis: - commit: 28476cc22e6b39ecaa1e171391b623f0ecb8cb89 - sha256: c17ed78d71a7cd7614e9cbebb91a1b8d6b26f75cb74a5d6f607ff2e243db3187 + commit: c39209b11027c8da8f4d959e35cc03ca4d655a8d + sha256: e9f47083d4d1b445f818d00f80361c0d20397b714abcf3b74dc381acc6d2f3b5 showcase: commit: f97fd357084b9e85ef5dd02ba084551c3f85191c sha256: b5d293831e6895ca139d9a0a92eec75a82e73398978b140af8f7c5e91c7c969a From 89d9faed879f5d5411949fb29a4e2f410cc46277 Mon Sep 17 00:00:00 2001 From: cloud-java-bot Date: Tue, 7 Jul 2026 05:49:35 +0000 Subject: [PATCH 2/2] chore: generate libraries --- gapic-libraries-bom/pom.xml | 5 - .../v1/BinauthzManagementServiceV1Client.java | 72 +- .../v1/ValidationHelperV1Client.java | 8 +- ...ementServiceV1Beta1ClientHttpJsonTest.java | 12 + ...thzManagementServiceV1Beta1ClientTest.java | 8 + ...SystemPolicyV1Beta1ClientHttpJsonTest.java | 2 + .../SystemPolicyV1Beta1ClientTest.java | 2 + ...ManagementServiceV1ClientHttpJsonTest.java | 12 + ...BinauthzManagementServiceV1ClientTest.java | 8 + .../v1/SystemPolicyV1ClientHttpJsonTest.java | 2 + .../v1/SystemPolicyV1ClientTest.java | 2 + .../v1/BinauthzManagementServiceV1Grpc.java | 225 +- .../v1/ValidationHelperV1Grpc.java | 20 +- .../BinauthzManagementServiceV1Beta1Grpc.java | 240 +- .../binaryauthorization/v1/Resources.java | 1910 ++++-- .../cloud/binaryauthorization/v1/Service.java | 816 ++- .../binaryauthorization/v1/resources.proto | 201 +- .../binaryauthorization/v1/service.proto | 159 +- .../v1beta1/AdmissionRule.java | 195 +- .../v1beta1/AdmissionRuleOrBuilder.java | 52 - .../v1beta1/AdmissionWhitelistPattern.java | 12 +- .../binaryauthorization/v1beta1/Attestor.java | 215 +- .../v1beta1/AttestorOrBuilder.java | 30 + .../v1beta1/AttestorPublicKey.java | 10 +- .../BinaryAuthorizationResourcesProto.java | 216 +- .../BinaryAuthorizationServiceProto.java | 12 +- .../v1beta1/CreateAttestorRequest.java | 138 +- .../CreateAttestorRequestOrBuilder.java | 36 +- .../v1beta1/DeleteAttestorRequest.java | 35 +- .../DeleteAttestorRequestOrBuilder.java | 10 +- .../v1beta1/GetAttestorRequest.java | 35 +- .../v1beta1/GetAttestorRequestOrBuilder.java | 10 +- .../v1beta1/GetPolicyRequest.java | 35 +- .../v1beta1/GetPolicyRequestOrBuilder.java | 10 +- .../v1beta1/ListAttestorsRequest.java | 56 +- .../ListAttestorsRequestOrBuilder.java | 16 +- .../v1beta1/ListAttestorsResponse.java | 35 +- .../ListAttestorsResponseOrBuilder.java | 10 +- .../v1beta1/PkixPublicKey.java | 136 +- .../binaryauthorization/v1beta1/Policy.java | 245 +- .../v1beta1/PolicyOrBuilder.java | 45 +- .../v1beta1/UpdateAttestorRequest.java | 108 +- .../UpdateAttestorRequestOrBuilder.java | 27 +- .../v1beta1/UpdatePolicyRequest.java | 96 +- .../v1beta1/UpdatePolicyRequestOrBuilder.java | 24 +- .../v1beta1/UserOwnedDrydockNote.java | 10 +- .../v1beta1/resources.proto | 126 +- .../binaryauthorization/v1beta1/service.proto | 136 +- .../ces/v1beta/EvaluationServiceClient.java | 3 + .../reflect-config.json | 117 + .../AgentServiceClientHttpJsonTest.java | 27 + .../ces/v1beta/AgentServiceClientTest.java | 21 + .../cloud/ces/v1beta/AgentServiceProto.java | 540 +- .../com/google/cloud/ces/v1beta/AppProto.java | 166 +- .../cloud/ces/v1beta/BargeInConfig.java | 32 +- .../ces/v1beta/BargeInConfigOrBuilder.java | 8 +- .../cloud/ces/v1beta/ChannelProfile.java | 5826 +++++++++++++---- .../ces/v1beta/ChannelProfileOrBuilder.java | 86 + .../cloud/ces/v1beta/ChannelProfileProto.java | 59 +- .../google/cloud/ces/v1beta/CommonProto.java | 110 +- .../google/cloud/ces/v1beta/Deployment.java | 652 ++ .../cloud/ces/v1beta/DeploymentOrBuilder.java | 92 + .../v1beta/EvaluationMetricsThresholds.java | 14 +- .../EvaluationMetricsThresholdsOrBuilder.java | 4 +- .../cloud/ces/v1beta/EvaluationProto.java | 30 +- .../v1beta/EvaluationRunCachingSettings.java | 781 +++ ...EvaluationRunCachingSettingsOrBuilder.java | 61 + .../ces/v1beta/EvaluationServiceProto.java | 440 +- .../cloud/ces/v1beta/EvaluationSettings.java | 321 + .../v1beta/EvaluationSettingsOrBuilder.java | 44 + .../cloud/ces/v1beta/ExperimentConfig.java | 12 +- .../v1beta/GenerateAppResourceRequest.java | 402 ++ .../ces/v1beta/GenerateEvaluationRequest.java | 375 +- .../GenerateEvaluationRequestOrBuilder.java | 36 +- .../ces/v1beta/InstagramCredentials.java | 785 +++ .../v1beta/InstagramCredentialsOrBuilder.java | 80 + .../ces/v1beta/ListEvaluationsRequest.java | 14 +- .../ListEvaluationsRequestOrBuilder.java | 4 +- .../cloud/ces/v1beta/LoggingSettings.java | 447 +- .../ces/v1beta/LoggingSettingsOrBuilder.java | 50 + .../ces/v1beta/RunEvaluationRequest.java | 321 + .../v1beta/RunEvaluationRequestOrBuilder.java | 44 + .../cloud/ces/v1beta/SessionOutput.java | 510 +- .../ces/v1beta/SessionOutputOrBuilder.java | 55 + .../cloud/ces/v1beta/SessionServiceProto.java | 46 +- .../ces/v1beta/SynthesizeSpeechConfig.java | 636 +- .../SynthesizeSpeechConfigOrBuilder.java | 96 + .../com/google/cloud/ces/v1beta/Toolset.java | 399 +- .../cloud/ces/v1beta/ToolsetOrBuilder.java | 43 + .../google/cloud/ces/v1beta/ToolsetProto.java | 29 +- .../cloud/ces/v1beta/WhatsAppCredentials.java | 1541 +++++ .../v1beta/WhatsAppCredentialsOrBuilder.java | 184 + .../cloud/ces/v1beta/agent_service.proto | 16 + .../proto/google/cloud/ces/v1beta/app.proto | 36 +- .../google/cloud/ces/v1beta/common.proto | 75 + .../google/cloud/ces/v1beta/deployment.proto | 50 +- .../google/cloud/ces/v1beta/evaluation.proto | 4 + .../cloud/ces/v1beta/evaluation_service.proto | 16 + .../cloud/ces/v1beta/session_service.proto | 3 + .../google/cloud/ces/v1beta/toolset.proto | 7 + .../runevaluation/AsyncRunEvaluation.java | 2 + .../runevaluation/AsyncRunEvaluationLRO.java | 2 + .../runevaluation/SyncRunEvaluation.java | 2 + .../v1/FindingsRefinementServiceClient.java | 1827 ++++++ .../v1/FindingsRefinementServiceSettings.java | 360 + .../cloud/chronicle/v1/gapic_metadata.json | 36 + .../cloud/chronicle/v1/package-info.java | 23 + .../stub/FindingsRefinementServiceStub.java | 120 + ...FindingsRefinementServiceStubSettings.java | 866 +++ ...dingsRefinementServiceCallableFactory.java | 113 + .../GrpcFindingsRefinementServiceStub.java | 574 ++ ...dingsRefinementServiceCallableFactory.java | 101 + ...HttpJsonFindingsRefinementServiceStub.java | 838 +++ .../reflect-config.json | 378 ++ ...gsRefinementServiceClientHttpJsonTest.java | 952 +++ .../FindingsRefinementServiceClientTest.java | 835 +++ .../v1/MockFindingsRefinementService.java | 59 + .../v1/MockFindingsRefinementServiceImpl.java | 266 + .../v1/FindingsRefinementServiceGrpc.java | 1631 +++++ ...llFindingsRefinementActivitiesRequest.java | 937 +++ ...sRefinementActivitiesRequestOrBuilder.java | 99 + ...lFindingsRefinementActivitiesResponse.java | 970 +++ ...RefinementActivitiesResponseOrBuilder.java | 85 + ...puteFindingsRefinementActivityRequest.java | 923 +++ ...ngsRefinementActivityRequestOrBuilder.java | 99 + ...uteFindingsRefinementActivityResponse.java | 721 ++ ...gsRefinementActivityResponseOrBuilder.java | 65 + .../v1/CreateFindingsRefinementRequest.java | 952 +++ ...ateFindingsRefinementRequestOrBuilder.java | 105 + .../v1/DetectionExclusionActivity.java | 3108 +++++++++ .../DetectionExclusionActivityOrBuilder.java | 103 + .../v1/DetectionExclusionApplication.java | 1762 +++++ ...etectionExclusionApplicationOrBuilder.java | 300 + .../chronicle/v1/FindingsRefinement.java | 2438 +++++++ .../v1/FindingsRefinementActivity.java | 1036 +++ .../FindingsRefinementActivityOrBuilder.java | 105 + .../v1/FindingsRefinementDeployment.java | 1580 +++++ .../v1/FindingsRefinementDeploymentName.java | 270 + ...FindingsRefinementDeploymentOrBuilder.java | 177 + .../chronicle/v1/FindingsRefinementName.java | 269 + .../v1/FindingsRefinementOrBuilder.java | 308 + .../chronicle/v1/FindingsRefinementProto.java | 534 ++ .../chronicle/v1/FindingsRefinementType.java | 176 + ...etFindingsRefinementDeploymentRequest.java | 638 ++ ...sRefinementDeploymentRequestOrBuilder.java | 62 + .../v1/GetFindingsRefinementRequest.java | 625 ++ ...GetFindingsRefinementRequestOrBuilder.java | 62 + ...lFindingsRefinementDeploymentsRequest.java | 1205 ++++ ...RefinementDeploymentsRequestOrBuilder.java | 150 + ...FindingsRefinementDeploymentsResponse.java | 1227 ++++ ...efinementDeploymentsResponseOrBuilder.java | 125 + .../v1/ListFindingsRefinementsRequest.java | 934 +++ ...stFindingsRefinementsRequestOrBuilder.java | 106 + .../v1/ListFindingsRefinementsResponse.java | 1140 ++++ ...tFindingsRefinementsResponseOrBuilder.java | 113 + .../cloud/chronicle/v1/OutcomeFilter.java | 1186 ++++ .../chronicle/v1/OutcomeFilterOrBuilder.java | 110 + ...teFindingsRefinementDeploymentRequest.java | 1121 ++++ ...sRefinementDeploymentRequestOrBuilder.java | 130 + .../v1/UpdateFindingsRefinementRequest.java | 1095 ++++ ...ateFindingsRefinementRequestOrBuilder.java | 129 + .../chronicle/v1/findings_refinement.proto | 573 ++ ...omputeAllFindingsRefinementActivities.java | 55 + ...omputeAllFindingsRefinementActivities.java | 50 + ...dingsRefinementActivitiesInstancename.java | 44 + ...AllFindingsRefinementActivitiesString.java | 44 + ...syncComputeFindingsRefinementActivity.java | 58 + ...SyncComputeFindingsRefinementActivity.java | 53 + ...inementActivityFindingsrefinementname.java | 47 + ...mputeFindingsRefinementActivityString.java | 47 + .../SyncCreateSetCredentialsProvider.java | 45 + .../create/SyncCreateSetEndpoint.java | 42 + .../SyncCreateUseHttpJsonTransport.java | 41 + .../AsyncCreateFindingsRefinement.java | 52 + .../SyncCreateFindingsRefinement.java | 49 + ...inementInstancenameFindingsrefinement.java | 45 + ...ngsRefinementStringFindingsrefinement.java | 45 + .../AsyncGetFindingsRefinement.java | 54 + .../SyncGetFindingsRefinement.java | 50 + ...dingsRefinementFindingsrefinementname.java | 45 + .../SyncGetFindingsRefinementString.java | 46 + .../AsyncGetFindingsRefinementDeployment.java | 56 + .../SyncGetFindingsRefinementDeployment.java | 51 + ...ymentFindingsrefinementdeploymentname.java | 47 + ...GetFindingsRefinementDeploymentString.java | 47 + ...cListAllFindingsRefinementDeployments.java | 58 + ...AllFindingsRefinementDeploymentsPaged.java | 67 + ...cListAllFindingsRefinementDeployments.java | 55 + ...ingsRefinementDeploymentsInstancename.java | 48 + ...llFindingsRefinementDeploymentsString.java | 48 + .../AsyncListFindingsRefinements.java | 57 + .../AsyncListFindingsRefinementsPaged.java | 63 + .../SyncListFindingsRefinements.java | 52 + ...ncListFindingsRefinementsInstancename.java | 46 + .../SyncListFindingsRefinementsString.java | 46 + .../AsyncUpdateFindingsRefinement.java | 52 + .../SyncUpdateFindingsRefinement.java | 49 + ...RefinementFindingsrefinementFieldmask.java | 45 + ...yncUpdateFindingsRefinementDeployment.java | 54 + ...yncUpdateFindingsRefinementDeployment.java | 49 + ...FindingsrefinementdeploymentFieldmask.java | 48 + .../SyncGetFindingsRefinement.java | 57 + .../SyncGetFindingsRefinement.java | 57 + .../reflect-config.json | 27 + .../cloud/dataproc/v1/AttachedDiskConfig.java | 1197 ++++ .../v1/AttachedDiskConfigOrBuilder.java | 135 + .../cloud/dataproc/v1/ClustersProto.java | 256 +- .../google/cloud/dataproc/v1/DiskConfig.java | 746 ++- .../dataproc/v1/DiskConfigOrBuilder.java | 117 +- .../v1/InstanceFlexibilityPolicy.java | 408 +- .../google/cloud/dataproc/v1/clusters.proto | 76 +- .../reflect-config.json | 81 + .../cloud/modelarmor/v1/ByteDataItem.java | 23 + .../google/cloud/modelarmor/v1/Modality.java | 200 + .../v1/PiAndJailbreakFilterSettings.java | 4 +- .../cloud/modelarmor/v1/RaiFilterResult.java | 36 +- .../v1/RaiFilterResultOrBuilder.java | 15 +- .../modelarmor/v1/SdpContentLocation.java | 1021 +++ .../v1/SdpContentLocationOrBuilder.java | 102 + .../cloud/modelarmor/v1/SdpFilterResult.java | 320 + .../v1/SdpFilterResultOrBuilder.java | 40 + .../cloud/modelarmor/v1/SdpFinding.java | 820 ++- .../v1/SdpImageFindingLocation.java | 1854 ++++++ .../v1/SdpImageFindingLocationOrBuilder.java | 97 + .../cloud/modelarmor/v1/SdpInspectResult.java | 189 + .../v1/SdpInspectResultOrBuilder.java | 26 + .../cloud/modelarmor/v1/SdpRedactResult.java | 2273 +++++++ .../v1/SdpRedactResultOrBuilder.java | 284 + .../google/cloud/modelarmor/v1/Template.java | 531 ++ .../cloud/modelarmor/v1/V1mainProto.java | 491 +- .../google/cloud/modelarmor/v1/service.proto | 118 +- .../v1/SecureSourceManagerClient.java | 18 +- .../reflect-config.json | 36 + ...SecureSourceManagerClientHttpJsonTest.java | 14 + .../v1/SecureSourceManagerClientTest.java | 10 + .../securesourcemanager/v1/Repository.java | 2104 +++++- .../v1/RepositoryOrBuilder.java | 73 + .../v1/SecureSourceManagerProto.java | 963 +-- .../v1/secure_source_manager.proto | 40 + 239 files changed, 70548 insertions(+), 4674 deletions(-) create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationRunCachingSettings.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationRunCachingSettingsOrBuilder.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/InstagramCredentials.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/InstagramCredentialsOrBuilder.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/WhatsAppCredentials.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/WhatsAppCredentialsOrBuilder.java create mode 100644 java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/FindingsRefinementServiceClient.java create mode 100644 java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/FindingsRefinementServiceSettings.java create mode 100644 java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/FindingsRefinementServiceStub.java create mode 100644 java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/FindingsRefinementServiceStubSettings.java create mode 100644 java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/GrpcFindingsRefinementServiceCallableFactory.java create mode 100644 java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/GrpcFindingsRefinementServiceStub.java create mode 100644 java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/HttpJsonFindingsRefinementServiceCallableFactory.java create mode 100644 java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/HttpJsonFindingsRefinementServiceStub.java create mode 100644 java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/FindingsRefinementServiceClientHttpJsonTest.java create mode 100644 java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/FindingsRefinementServiceClientTest.java create mode 100644 java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/MockFindingsRefinementService.java create mode 100644 java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/MockFindingsRefinementServiceImpl.java create mode 100644 java-chronicle/grpc-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/FindingsRefinementServiceGrpc.java create mode 100644 java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ComputeAllFindingsRefinementActivitiesRequest.java create mode 100644 java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ComputeAllFindingsRefinementActivitiesRequestOrBuilder.java create mode 100644 java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ComputeAllFindingsRefinementActivitiesResponse.java create mode 100644 java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ComputeAllFindingsRefinementActivitiesResponseOrBuilder.java create mode 100644 java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ComputeFindingsRefinementActivityRequest.java create mode 100644 java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ComputeFindingsRefinementActivityRequestOrBuilder.java create mode 100644 java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ComputeFindingsRefinementActivityResponse.java create mode 100644 java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ComputeFindingsRefinementActivityResponseOrBuilder.java create mode 100644 java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/CreateFindingsRefinementRequest.java create mode 100644 java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/CreateFindingsRefinementRequestOrBuilder.java create mode 100644 java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DetectionExclusionActivity.java create mode 100644 java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DetectionExclusionActivityOrBuilder.java create mode 100644 java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DetectionExclusionApplication.java create mode 100644 java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DetectionExclusionApplicationOrBuilder.java create mode 100644 java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/FindingsRefinement.java create mode 100644 java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/FindingsRefinementActivity.java create mode 100644 java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/FindingsRefinementActivityOrBuilder.java create mode 100644 java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/FindingsRefinementDeployment.java create mode 100644 java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/FindingsRefinementDeploymentName.java create mode 100644 java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/FindingsRefinementDeploymentOrBuilder.java create mode 100644 java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/FindingsRefinementName.java create mode 100644 java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/FindingsRefinementOrBuilder.java create mode 100644 java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/FindingsRefinementProto.java create mode 100644 java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/FindingsRefinementType.java create mode 100644 java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/GetFindingsRefinementDeploymentRequest.java create mode 100644 java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/GetFindingsRefinementDeploymentRequestOrBuilder.java create mode 100644 java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/GetFindingsRefinementRequest.java create mode 100644 java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/GetFindingsRefinementRequestOrBuilder.java create mode 100644 java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ListAllFindingsRefinementDeploymentsRequest.java create mode 100644 java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ListAllFindingsRefinementDeploymentsRequestOrBuilder.java create mode 100644 java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ListAllFindingsRefinementDeploymentsResponse.java create mode 100644 java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ListAllFindingsRefinementDeploymentsResponseOrBuilder.java create mode 100644 java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ListFindingsRefinementsRequest.java create mode 100644 java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ListFindingsRefinementsRequestOrBuilder.java create mode 100644 java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ListFindingsRefinementsResponse.java create mode 100644 java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ListFindingsRefinementsResponseOrBuilder.java create mode 100644 java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/OutcomeFilter.java create mode 100644 java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/OutcomeFilterOrBuilder.java create mode 100644 java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/UpdateFindingsRefinementDeploymentRequest.java create mode 100644 java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/UpdateFindingsRefinementDeploymentRequestOrBuilder.java create mode 100644 java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/UpdateFindingsRefinementRequest.java create mode 100644 java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/UpdateFindingsRefinementRequestOrBuilder.java create mode 100644 java-chronicle/proto-google-cloud-chronicle-v1/src/main/proto/google/cloud/chronicle/v1/findings_refinement.proto create mode 100644 java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/computeallfindingsrefinementactivities/AsyncComputeAllFindingsRefinementActivities.java create mode 100644 java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/computeallfindingsrefinementactivities/SyncComputeAllFindingsRefinementActivities.java create mode 100644 java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/computeallfindingsrefinementactivities/SyncComputeAllFindingsRefinementActivitiesInstancename.java create mode 100644 java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/computeallfindingsrefinementactivities/SyncComputeAllFindingsRefinementActivitiesString.java create mode 100644 java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/computefindingsrefinementactivity/AsyncComputeFindingsRefinementActivity.java create mode 100644 java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/computefindingsrefinementactivity/SyncComputeFindingsRefinementActivity.java create mode 100644 java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/computefindingsrefinementactivity/SyncComputeFindingsRefinementActivityFindingsrefinementname.java create mode 100644 java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/computefindingsrefinementactivity/SyncComputeFindingsRefinementActivityString.java create mode 100644 java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/create/SyncCreateSetCredentialsProvider.java create mode 100644 java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/create/SyncCreateSetEndpoint.java create mode 100644 java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/create/SyncCreateUseHttpJsonTransport.java create mode 100644 java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/createfindingsrefinement/AsyncCreateFindingsRefinement.java create mode 100644 java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/createfindingsrefinement/SyncCreateFindingsRefinement.java create mode 100644 java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/createfindingsrefinement/SyncCreateFindingsRefinementInstancenameFindingsrefinement.java create mode 100644 java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/createfindingsrefinement/SyncCreateFindingsRefinementStringFindingsrefinement.java create mode 100644 java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/getfindingsrefinement/AsyncGetFindingsRefinement.java create mode 100644 java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/getfindingsrefinement/SyncGetFindingsRefinement.java create mode 100644 java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/getfindingsrefinement/SyncGetFindingsRefinementFindingsrefinementname.java create mode 100644 java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/getfindingsrefinement/SyncGetFindingsRefinementString.java create mode 100644 java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/getfindingsrefinementdeployment/AsyncGetFindingsRefinementDeployment.java create mode 100644 java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/getfindingsrefinementdeployment/SyncGetFindingsRefinementDeployment.java create mode 100644 java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/getfindingsrefinementdeployment/SyncGetFindingsRefinementDeploymentFindingsrefinementdeploymentname.java create mode 100644 java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/getfindingsrefinementdeployment/SyncGetFindingsRefinementDeploymentString.java create mode 100644 java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/listallfindingsrefinementdeployments/AsyncListAllFindingsRefinementDeployments.java create mode 100644 java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/listallfindingsrefinementdeployments/AsyncListAllFindingsRefinementDeploymentsPaged.java create mode 100644 java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/listallfindingsrefinementdeployments/SyncListAllFindingsRefinementDeployments.java create mode 100644 java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/listallfindingsrefinementdeployments/SyncListAllFindingsRefinementDeploymentsInstancename.java create mode 100644 java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/listallfindingsrefinementdeployments/SyncListAllFindingsRefinementDeploymentsString.java create mode 100644 java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/listfindingsrefinements/AsyncListFindingsRefinements.java create mode 100644 java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/listfindingsrefinements/AsyncListFindingsRefinementsPaged.java create mode 100644 java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/listfindingsrefinements/SyncListFindingsRefinements.java create mode 100644 java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/listfindingsrefinements/SyncListFindingsRefinementsInstancename.java create mode 100644 java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/listfindingsrefinements/SyncListFindingsRefinementsString.java create mode 100644 java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/updatefindingsrefinement/AsyncUpdateFindingsRefinement.java create mode 100644 java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/updatefindingsrefinement/SyncUpdateFindingsRefinement.java create mode 100644 java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/updatefindingsrefinement/SyncUpdateFindingsRefinementFindingsrefinementFieldmask.java create mode 100644 java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/updatefindingsrefinementdeployment/AsyncUpdateFindingsRefinementDeployment.java create mode 100644 java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/updatefindingsrefinementdeployment/SyncUpdateFindingsRefinementDeployment.java create mode 100644 java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/updatefindingsrefinementdeployment/SyncUpdateFindingsRefinementDeploymentFindingsrefinementdeploymentFieldmask.java create mode 100644 java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservicesettings/getfindingsrefinement/SyncGetFindingsRefinement.java create mode 100644 java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/stub/findingsrefinementservicestubsettings/getfindingsrefinement/SyncGetFindingsRefinement.java create mode 100644 java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AttachedDiskConfig.java create mode 100644 java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AttachedDiskConfigOrBuilder.java create mode 100644 java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/Modality.java create mode 100644 java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SdpContentLocation.java create mode 100644 java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SdpContentLocationOrBuilder.java create mode 100644 java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SdpImageFindingLocation.java create mode 100644 java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SdpImageFindingLocationOrBuilder.java create mode 100644 java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SdpRedactResult.java create mode 100644 java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SdpRedactResultOrBuilder.java diff --git a/gapic-libraries-bom/pom.xml b/gapic-libraries-bom/pom.xml index 38f48dc174d1..af15701a27a6 100644 --- a/gapic-libraries-bom/pom.xml +++ b/gapic-libraries-bom/pom.xml @@ -887,11 +887,6 @@ pom import - - com.google.cloud - google-cloud-logging-logback - 0.143.0-alpha-SNAPSHOT - com.google.cloud google-cloud-lustre-bom diff --git a/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Client.java b/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Client.java index c75d09fcfdb0..3afabf8f696d 100644 --- a/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Client.java +++ b/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Client.java @@ -94,7 +94,7 @@ * * *

UpdatePolicy - *

Creates or updates a project's [policy][google.cloud.binaryauthorization.v1.Policy], and returns a copy of the new [policy][google.cloud.binaryauthorization.v1.Policy]. A policy is always updated as a whole, to avoid race conditions with concurrent policy enforcement (or management!) requests. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT if the request is malformed. + *

Creates or updates a project's [policy][google.cloud.binaryauthorization.v1.Policy], and returns a copy of the new [policy][google.cloud.binaryauthorization.v1.Policy]. A policy is always updated as a whole, to avoid race conditions with concurrent policy enforcement (or management!) requests. Returns `NOT_FOUND` if the project does not exist, `INVALID_ARGUMENT` if the request is malformed. * *

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

*
    @@ -112,7 +112,7 @@ * * *

    CreateAttestor - *

    Creates an [attestor][google.cloud.binaryauthorization.v1.Attestor], and returns a copy of the new [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT if the request is malformed, ALREADY_EXISTS if the [attestor][google.cloud.binaryauthorization.v1.Attestor] already exists. + *

    Creates an [attestor][google.cloud.binaryauthorization.v1.Attestor], and returns a copy of the new [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns `NOT_FOUND` if the project does not exist, `INVALID_ARGUMENT` if the request is malformed, `ALREADY_EXISTS` if the [attestor][google.cloud.binaryauthorization.v1.Attestor] already exists. * *

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

    *
      @@ -131,7 +131,7 @@ * * *

      GetAttestor - *

      Gets an [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist. + *

      Gets an [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns `NOT_FOUND` if the [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist. * *

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

      *
        @@ -150,7 +150,7 @@ * * *

        UpdateAttestor - *

        Updates an [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist. + *

        Updates an [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns `NOT_FOUND` if the [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist. * *

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

        *
          @@ -168,7 +168,7 @@ * * *

          ListAttestors - *

          Lists [attestors][google.cloud.binaryauthorization.v1.Attestor]. Returns INVALID_ARGUMENT if the project does not exist. + *

          Lists [attestors][google.cloud.binaryauthorization.v1.Attestor]. Returns `INVALID_ARGUMENT` if the project does not exist. * *

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

          *
            @@ -188,7 +188,7 @@ * * *

            DeleteAttestor - *

            Deletes an [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist. + *

            Deletes an [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns `NOT_FOUND` if the [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist. * *

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

            *
              @@ -464,8 +464,8 @@ public final UnaryCallable getPolicy * Creates or updates a project's [policy][google.cloud.binaryauthorization.v1.Policy], and * returns a copy of the new [policy][google.cloud.binaryauthorization.v1.Policy]. A policy is * always updated as a whole, to avoid race conditions with concurrent policy enforcement (or - * management!) requests. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT if the - * request is malformed. + * management!) requests. Returns `NOT_FOUND` if the project does not exist, `INVALID_ARGUMENT` if + * the request is malformed. * *

              Sample code: * @@ -499,8 +499,8 @@ public final Resources.Policy updatePolicy(Resources.Policy policy) { * Creates or updates a project's [policy][google.cloud.binaryauthorization.v1.Policy], and * returns a copy of the new [policy][google.cloud.binaryauthorization.v1.Policy]. A policy is * always updated as a whole, to avoid race conditions with concurrent policy enforcement (or - * management!) requests. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT if the - * request is malformed. + * management!) requests. Returns `NOT_FOUND` if the project does not exist, `INVALID_ARGUMENT` if + * the request is malformed. * *

              Sample code: * @@ -532,8 +532,8 @@ public final Resources.Policy updatePolicy(Service.UpdatePolicyRequest request) * Creates or updates a project's [policy][google.cloud.binaryauthorization.v1.Policy], and * returns a copy of the new [policy][google.cloud.binaryauthorization.v1.Policy]. A policy is * always updated as a whole, to avoid race conditions with concurrent policy enforcement (or - * management!) requests. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT if the - * request is malformed. + * management!) requests. Returns `NOT_FOUND` if the project does not exist, `INVALID_ARGUMENT` if + * the request is malformed. * *

              Sample code: * @@ -563,8 +563,8 @@ public final UnaryCallable update // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates an [attestor][google.cloud.binaryauthorization.v1.Attestor], and returns a copy of the - * new [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the project - * does not exist, INVALID_ARGUMENT if the request is malformed, ALREADY_EXISTS if the + * new [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns `NOT_FOUND` if the + * project does not exist, `INVALID_ARGUMENT` if the request is malformed, `ALREADY_EXISTS` if the * [attestor][google.cloud.binaryauthorization.v1.Attestor] already exists. * *

              Sample code: @@ -608,8 +608,8 @@ public final Resources.Attestor createAttestor( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates an [attestor][google.cloud.binaryauthorization.v1.Attestor], and returns a copy of the - * new [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the project - * does not exist, INVALID_ARGUMENT if the request is malformed, ALREADY_EXISTS if the + * new [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns `NOT_FOUND` if the + * project does not exist, `INVALID_ARGUMENT` if the request is malformed, `ALREADY_EXISTS` if the * [attestor][google.cloud.binaryauthorization.v1.Attestor] already exists. * *

              Sample code: @@ -653,8 +653,8 @@ public final Resources.Attestor createAttestor( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates an [attestor][google.cloud.binaryauthorization.v1.Attestor], and returns a copy of the - * new [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the project - * does not exist, INVALID_ARGUMENT if the request is malformed, ALREADY_EXISTS if the + * new [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns `NOT_FOUND` if the + * project does not exist, `INVALID_ARGUMENT` if the request is malformed, `ALREADY_EXISTS` if the * [attestor][google.cloud.binaryauthorization.v1.Attestor] already exists. * *

              Sample code: @@ -687,8 +687,8 @@ public final Resources.Attestor createAttestor(Service.CreateAttestorRequest req // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates an [attestor][google.cloud.binaryauthorization.v1.Attestor], and returns a copy of the - * new [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the project - * does not exist, INVALID_ARGUMENT if the request is malformed, ALREADY_EXISTS if the + * new [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns `NOT_FOUND` if the + * project does not exist, `INVALID_ARGUMENT` if the request is malformed, `ALREADY_EXISTS` if the * [attestor][google.cloud.binaryauthorization.v1.Attestor] already exists. * *

              Sample code: @@ -721,7 +721,7 @@ public final Resources.Attestor createAttestor(Service.CreateAttestorRequest req // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets an [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the + * Gets an [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns `NOT_FOUND` if the * [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist. * *

              Sample code: @@ -753,7 +753,7 @@ public final Resources.Attestor getAttestor(AttestorName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets an [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the + * Gets an [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns `NOT_FOUND` if the * [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist. * *

              Sample code: @@ -783,7 +783,7 @@ public final Resources.Attestor getAttestor(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets an [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the + * Gets an [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns `NOT_FOUND` if the * [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist. * *

              Sample code: @@ -813,7 +813,7 @@ public final Resources.Attestor getAttestor(Service.GetAttestorRequest request) // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets an [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the + * Gets an [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns `NOT_FOUND` if the * [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist. * *

              Sample code: @@ -843,7 +843,7 @@ public final UnaryCallable getAt // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates an [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the + * Updates an [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns `NOT_FOUND` if the * [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist. * *

              Sample code: @@ -875,7 +875,7 @@ public final Resources.Attestor updateAttestor(Resources.Attestor attestor) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates an [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the + * Updates an [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns `NOT_FOUND` if the * [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist. * *

              Sample code: @@ -905,7 +905,7 @@ public final Resources.Attestor updateAttestor(Service.UpdateAttestorRequest req // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates an [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the + * Updates an [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns `NOT_FOUND` if the * [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist. * *

              Sample code: @@ -936,7 +936,7 @@ public final Resources.Attestor updateAttestor(Service.UpdateAttestorRequest req // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists [attestors][google.cloud.binaryauthorization.v1.Attestor]. Returns INVALID_ARGUMENT if + * Lists [attestors][google.cloud.binaryauthorization.v1.Attestor]. Returns `INVALID_ARGUMENT` if * the project does not exist. * *

              Sample code: @@ -971,7 +971,7 @@ public final ListAttestorsPagedResponse listAttestors(ProjectName parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists [attestors][google.cloud.binaryauthorization.v1.Attestor]. Returns INVALID_ARGUMENT if + * Lists [attestors][google.cloud.binaryauthorization.v1.Attestor]. Returns `INVALID_ARGUMENT` if * the project does not exist. * *

              Sample code: @@ -1004,7 +1004,7 @@ public final ListAttestorsPagedResponse listAttestors(String parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists [attestors][google.cloud.binaryauthorization.v1.Attestor]. Returns INVALID_ARGUMENT if + * Lists [attestors][google.cloud.binaryauthorization.v1.Attestor]. Returns `INVALID_ARGUMENT` if * the project does not exist. * *

              Sample code: @@ -1039,7 +1039,7 @@ public final ListAttestorsPagedResponse listAttestors(Service.ListAttestorsReque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists [attestors][google.cloud.binaryauthorization.v1.Attestor]. Returns INVALID_ARGUMENT if + * Lists [attestors][google.cloud.binaryauthorization.v1.Attestor]. Returns `INVALID_ARGUMENT` if * the project does not exist. * *

              Sample code: @@ -1074,7 +1074,7 @@ public final ListAttestorsPagedResponse listAttestors(Service.ListAttestorsReque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists [attestors][google.cloud.binaryauthorization.v1.Attestor]. Returns INVALID_ARGUMENT if + * Lists [attestors][google.cloud.binaryauthorization.v1.Attestor]. Returns `INVALID_ARGUMENT` if * the project does not exist. * *

              Sample code: @@ -1116,7 +1116,7 @@ public final ListAttestorsPagedResponse listAttestors(Service.ListAttestorsReque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes an [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the + * Deletes an [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns `NOT_FOUND` if the * [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist. * *

              Sample code: @@ -1148,7 +1148,7 @@ public final void deleteAttestor(AttestorName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes an [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the + * Deletes an [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns `NOT_FOUND` if the * [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist. * *

              Sample code: @@ -1178,7 +1178,7 @@ public final void deleteAttestor(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes an [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the + * Deletes an [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns `NOT_FOUND` if the * [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist. * *

              Sample code: @@ -1208,7 +1208,7 @@ public final void deleteAttestor(Service.DeleteAttestorRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes an [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the + * Deletes an [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns `NOT_FOUND` if the * [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist. * *

              Sample code: diff --git a/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Client.java b/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Client.java index eb0da67f6db6..502806b867d6 100644 --- a/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Client.java +++ b/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Client.java @@ -63,7 +63,7 @@ * * *

              ValidateAttestationOccurrence - *

              Returns whether the given Attestation for the given image URI was signed by the given Attestor + *

              Returns whether the given `Attestation` for the given image URI was signed by the given `Attestor` * *

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

              *
                @@ -185,7 +185,8 @@ public ValidationHelperV1Stub getStub() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns whether the given Attestation for the given image URI was signed by the given Attestor + * Returns whether the given `Attestation` for the given image URI was signed by the given + * `Attestor` * *

                Sample code: * @@ -218,7 +219,8 @@ public final Service.ValidateAttestationOccurrenceResponse validateAttestationOc // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns whether the given Attestation for the given image URI was signed by the given Attestor + * Returns whether the given `Attestation` for the given image URI was signed by the given + * `Attestor` * *

                Sample code: * diff --git a/java-binary-authorization/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1ClientHttpJsonTest.java b/java-binary-authorization/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1ClientHttpJsonTest.java index f51e4a123be9..7b13de7a32e3 100644 --- a/java-binary-authorization/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1ClientHttpJsonTest.java +++ b/java-binary-authorization/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1ClientHttpJsonTest.java @@ -92,6 +92,7 @@ public void getPolicyTest() throws Exception { .putAllIstioServiceIdentityAdmissionRules(new HashMap()) .setDefaultAdmissionRule(AdmissionRule.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") .build(); mockService.addResponse(expectedResponse); @@ -144,6 +145,7 @@ public void getPolicyTest2() throws Exception { .putAllIstioServiceIdentityAdmissionRules(new HashMap()) .setDefaultAdmissionRule(AdmissionRule.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") .build(); mockService.addResponse(expectedResponse); @@ -196,6 +198,7 @@ public void updatePolicyTest() throws Exception { .putAllIstioServiceIdentityAdmissionRules(new HashMap()) .setDefaultAdmissionRule(AdmissionRule.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") .build(); mockService.addResponse(expectedResponse); @@ -210,6 +213,7 @@ public void updatePolicyTest() throws Exception { .putAllIstioServiceIdentityAdmissionRules(new HashMap()) .setDefaultAdmissionRule(AdmissionRule.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") .build(); Policy actualResponse = client.updatePolicy(policy); @@ -249,6 +253,7 @@ public void updatePolicyExceptionTest() throws Exception { .putAllIstioServiceIdentityAdmissionRules(new HashMap()) .setDefaultAdmissionRule(AdmissionRule.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") .build(); client.updatePolicy(policy); Assert.fail("No exception raised"); @@ -264,6 +269,7 @@ public void createAttestorTest() throws Exception { .setName(AttestorName.of("[PROJECT]", "[ATTESTOR]").toString()) .setDescription("description-1724546052") .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") .build(); mockService.addResponse(expectedResponse); @@ -314,6 +320,7 @@ public void createAttestorTest2() throws Exception { .setName(AttestorName.of("[PROJECT]", "[ATTESTOR]").toString()) .setDescription("description-1724546052") .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") .build(); mockService.addResponse(expectedResponse); @@ -364,6 +371,7 @@ public void getAttestorTest() throws Exception { .setName(AttestorName.of("[PROJECT]", "[ATTESTOR]").toString()) .setDescription("description-1724546052") .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") .build(); mockService.addResponse(expectedResponse); @@ -410,6 +418,7 @@ public void getAttestorTest2() throws Exception { .setName(AttestorName.of("[PROJECT]", "[ATTESTOR]").toString()) .setDescription("description-1724546052") .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") .build(); mockService.addResponse(expectedResponse); @@ -456,6 +465,7 @@ public void updateAttestorTest() throws Exception { .setName(AttestorName.of("[PROJECT]", "[ATTESTOR]").toString()) .setDescription("description-1724546052") .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") .build(); mockService.addResponse(expectedResponse); @@ -464,6 +474,7 @@ public void updateAttestorTest() throws Exception { .setName(AttestorName.of("[PROJECT]", "[ATTESTOR]").toString()) .setDescription("description-1724546052") .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") .build(); Attestor actualResponse = client.updateAttestor(attestor); @@ -497,6 +508,7 @@ public void updateAttestorExceptionTest() throws Exception { .setName(AttestorName.of("[PROJECT]", "[ATTESTOR]").toString()) .setDescription("description-1724546052") .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") .build(); client.updateAttestor(attestor); Assert.fail("No exception raised"); diff --git a/java-binary-authorization/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1ClientTest.java b/java-binary-authorization/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1ClientTest.java index 6a463e9ab493..9838a4334519 100644 --- a/java-binary-authorization/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1ClientTest.java +++ b/java-binary-authorization/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1ClientTest.java @@ -96,6 +96,7 @@ public void getPolicyTest() throws Exception { .putAllIstioServiceIdentityAdmissionRules(new HashMap()) .setDefaultAdmissionRule(AdmissionRule.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") .build(); mockBinauthzManagementServiceV1Beta1.addResponse(expectedResponse); @@ -142,6 +143,7 @@ public void getPolicyTest2() throws Exception { .putAllIstioServiceIdentityAdmissionRules(new HashMap()) .setDefaultAdmissionRule(AdmissionRule.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") .build(); mockBinauthzManagementServiceV1Beta1.addResponse(expectedResponse); @@ -188,6 +190,7 @@ public void updatePolicyTest() throws Exception { .putAllIstioServiceIdentityAdmissionRules(new HashMap()) .setDefaultAdmissionRule(AdmissionRule.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") .build(); mockBinauthzManagementServiceV1Beta1.addResponse(expectedResponse); @@ -228,6 +231,7 @@ public void createAttestorTest() throws Exception { .setName(AttestorName.of("[PROJECT]", "[ATTESTOR]").toString()) .setDescription("description-1724546052") .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") .build(); mockBinauthzManagementServiceV1Beta1.addResponse(expectedResponse); @@ -274,6 +278,7 @@ public void createAttestorTest2() throws Exception { .setName(AttestorName.of("[PROJECT]", "[ATTESTOR]").toString()) .setDescription("description-1724546052") .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") .build(); mockBinauthzManagementServiceV1Beta1.addResponse(expectedResponse); @@ -320,6 +325,7 @@ public void getAttestorTest() throws Exception { .setName(AttestorName.of("[PROJECT]", "[ATTESTOR]").toString()) .setDescription("description-1724546052") .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") .build(); mockBinauthzManagementServiceV1Beta1.addResponse(expectedResponse); @@ -360,6 +366,7 @@ public void getAttestorTest2() throws Exception { .setName(AttestorName.of("[PROJECT]", "[ATTESTOR]").toString()) .setDescription("description-1724546052") .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") .build(); mockBinauthzManagementServiceV1Beta1.addResponse(expectedResponse); @@ -400,6 +407,7 @@ public void updateAttestorTest() throws Exception { .setName(AttestorName.of("[PROJECT]", "[ATTESTOR]").toString()) .setDescription("description-1724546052") .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") .build(); mockBinauthzManagementServiceV1Beta1.addResponse(expectedResponse); diff --git a/java-binary-authorization/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1ClientHttpJsonTest.java b/java-binary-authorization/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1ClientHttpJsonTest.java index a2d956e1f912..29f525dec34c 100644 --- a/java-binary-authorization/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1ClientHttpJsonTest.java +++ b/java-binary-authorization/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1ClientHttpJsonTest.java @@ -87,6 +87,7 @@ public void getSystemPolicyTest() throws Exception { .putAllIstioServiceIdentityAdmissionRules(new HashMap()) .setDefaultAdmissionRule(AdmissionRule.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") .build(); mockService.addResponse(expectedResponse); @@ -139,6 +140,7 @@ public void getSystemPolicyTest2() throws Exception { .putAllIstioServiceIdentityAdmissionRules(new HashMap()) .setDefaultAdmissionRule(AdmissionRule.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") .build(); mockService.addResponse(expectedResponse); diff --git a/java-binary-authorization/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1ClientTest.java b/java-binary-authorization/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1ClientTest.java index 644c1b9389ab..a0c95f888dd0 100644 --- a/java-binary-authorization/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1ClientTest.java +++ b/java-binary-authorization/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1ClientTest.java @@ -91,6 +91,7 @@ public void getSystemPolicyTest() throws Exception { .putAllIstioServiceIdentityAdmissionRules(new HashMap()) .setDefaultAdmissionRule(AdmissionRule.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") .build(); mockSystemPolicyV1Beta1.addResponse(expectedResponse); @@ -137,6 +138,7 @@ public void getSystemPolicyTest2() throws Exception { .putAllIstioServiceIdentityAdmissionRules(new HashMap()) .setDefaultAdmissionRule(AdmissionRule.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") .build(); mockSystemPolicyV1Beta1.addResponse(expectedResponse); diff --git a/java-binary-authorization/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1ClientHttpJsonTest.java b/java-binary-authorization/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1ClientHttpJsonTest.java index f2135ef99f82..08fa35904afd 100644 --- a/java-binary-authorization/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1ClientHttpJsonTest.java +++ b/java-binary-authorization/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1ClientHttpJsonTest.java @@ -94,6 +94,7 @@ public void getPolicyTest() throws Exception { new HashMap()) .setDefaultAdmissionRule(Resources.AdmissionRule.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") .build(); mockService.addResponse(expectedResponse); @@ -148,6 +149,7 @@ public void getPolicyTest2() throws Exception { new HashMap()) .setDefaultAdmissionRule(Resources.AdmissionRule.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") .build(); mockService.addResponse(expectedResponse); @@ -202,6 +204,7 @@ public void updatePolicyTest() throws Exception { new HashMap()) .setDefaultAdmissionRule(Resources.AdmissionRule.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") .build(); mockService.addResponse(expectedResponse); @@ -218,6 +221,7 @@ public void updatePolicyTest() throws Exception { new HashMap()) .setDefaultAdmissionRule(Resources.AdmissionRule.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") .build(); Resources.Policy actualResponse = client.updatePolicy(policy); @@ -261,6 +265,7 @@ public void updatePolicyExceptionTest() throws Exception { new HashMap()) .setDefaultAdmissionRule(Resources.AdmissionRule.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") .build(); client.updatePolicy(policy); Assert.fail("No exception raised"); @@ -276,6 +281,7 @@ public void createAttestorTest() throws Exception { .setName(AttestorName.of("[PROJECT]", "[ATTESTOR]").toString()) .setDescription("description-1724546052") .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") .build(); mockService.addResponse(expectedResponse); @@ -326,6 +332,7 @@ public void createAttestorTest2() throws Exception { .setName(AttestorName.of("[PROJECT]", "[ATTESTOR]").toString()) .setDescription("description-1724546052") .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") .build(); mockService.addResponse(expectedResponse); @@ -376,6 +383,7 @@ public void getAttestorTest() throws Exception { .setName(AttestorName.of("[PROJECT]", "[ATTESTOR]").toString()) .setDescription("description-1724546052") .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") .build(); mockService.addResponse(expectedResponse); @@ -422,6 +430,7 @@ public void getAttestorTest2() throws Exception { .setName(AttestorName.of("[PROJECT]", "[ATTESTOR]").toString()) .setDescription("description-1724546052") .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") .build(); mockService.addResponse(expectedResponse); @@ -468,6 +477,7 @@ public void updateAttestorTest() throws Exception { .setName(AttestorName.of("[PROJECT]", "[ATTESTOR]").toString()) .setDescription("description-1724546052") .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") .build(); mockService.addResponse(expectedResponse); @@ -476,6 +486,7 @@ public void updateAttestorTest() throws Exception { .setName(AttestorName.of("[PROJECT]", "[ATTESTOR]").toString()) .setDescription("description-1724546052") .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") .build(); Resources.Attestor actualResponse = client.updateAttestor(attestor); @@ -509,6 +520,7 @@ public void updateAttestorExceptionTest() throws Exception { .setName(AttestorName.of("[PROJECT]", "[ATTESTOR]").toString()) .setDescription("description-1724546052") .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") .build(); client.updateAttestor(attestor); Assert.fail("No exception raised"); diff --git a/java-binary-authorization/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1ClientTest.java b/java-binary-authorization/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1ClientTest.java index 2a0a47146ab4..5551e5724082 100644 --- a/java-binary-authorization/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1ClientTest.java +++ b/java-binary-authorization/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1ClientTest.java @@ -98,6 +98,7 @@ public void getPolicyTest() throws Exception { new HashMap()) .setDefaultAdmissionRule(Resources.AdmissionRule.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") .build(); mockBinauthzManagementServiceV1.addResponse(expectedResponse); @@ -146,6 +147,7 @@ public void getPolicyTest2() throws Exception { new HashMap()) .setDefaultAdmissionRule(Resources.AdmissionRule.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") .build(); mockBinauthzManagementServiceV1.addResponse(expectedResponse); @@ -194,6 +196,7 @@ public void updatePolicyTest() throws Exception { new HashMap()) .setDefaultAdmissionRule(Resources.AdmissionRule.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") .build(); mockBinauthzManagementServiceV1.addResponse(expectedResponse); @@ -235,6 +238,7 @@ public void createAttestorTest() throws Exception { .setName(AttestorName.of("[PROJECT]", "[ATTESTOR]").toString()) .setDescription("description-1724546052") .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") .build(); mockBinauthzManagementServiceV1.addResponse(expectedResponse); @@ -282,6 +286,7 @@ public void createAttestorTest2() throws Exception { .setName(AttestorName.of("[PROJECT]", "[ATTESTOR]").toString()) .setDescription("description-1724546052") .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") .build(); mockBinauthzManagementServiceV1.addResponse(expectedResponse); @@ -329,6 +334,7 @@ public void getAttestorTest() throws Exception { .setName(AttestorName.of("[PROJECT]", "[ATTESTOR]").toString()) .setDescription("description-1724546052") .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") .build(); mockBinauthzManagementServiceV1.addResponse(expectedResponse); @@ -369,6 +375,7 @@ public void getAttestorTest2() throws Exception { .setName(AttestorName.of("[PROJECT]", "[ATTESTOR]").toString()) .setDescription("description-1724546052") .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") .build(); mockBinauthzManagementServiceV1.addResponse(expectedResponse); @@ -409,6 +416,7 @@ public void updateAttestorTest() throws Exception { .setName(AttestorName.of("[PROJECT]", "[ATTESTOR]").toString()) .setDescription("description-1724546052") .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") .build(); mockBinauthzManagementServiceV1.addResponse(expectedResponse); diff --git a/java-binary-authorization/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1ClientHttpJsonTest.java b/java-binary-authorization/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1ClientHttpJsonTest.java index 6a1f1b0f6ec1..3bb2af0a43d7 100644 --- a/java-binary-authorization/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1ClientHttpJsonTest.java +++ b/java-binary-authorization/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1ClientHttpJsonTest.java @@ -89,6 +89,7 @@ public void getSystemPolicyTest() throws Exception { new HashMap()) .setDefaultAdmissionRule(Resources.AdmissionRule.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") .build(); mockService.addResponse(expectedResponse); @@ -143,6 +144,7 @@ public void getSystemPolicyTest2() throws Exception { new HashMap()) .setDefaultAdmissionRule(Resources.AdmissionRule.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") .build(); mockService.addResponse(expectedResponse); diff --git a/java-binary-authorization/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1ClientTest.java b/java-binary-authorization/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1ClientTest.java index 4c698ae05e87..ce5e00ac3014 100644 --- a/java-binary-authorization/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1ClientTest.java +++ b/java-binary-authorization/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1ClientTest.java @@ -93,6 +93,7 @@ public void getSystemPolicyTest() throws Exception { new HashMap()) .setDefaultAdmissionRule(Resources.AdmissionRule.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") .build(); mockSystemPolicyV1.addResponse(expectedResponse); @@ -142,6 +143,7 @@ public void getSystemPolicyTest2() throws Exception { new HashMap()) .setDefaultAdmissionRule(Resources.AdmissionRule.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") .build(); mockSystemPolicyV1.addResponse(expectedResponse); diff --git a/java-binary-authorization/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Grpc.java b/java-binary-authorization/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Grpc.java index a32fe0c1ea4a..ee29c61f274f 100644 --- a/java-binary-authorization/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Grpc.java +++ b/java-binary-authorization/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Grpc.java @@ -461,12 +461,15 @@ public interface AsyncService { * * *

                -     * A [policy][google.cloud.binaryauthorization.v1.Policy] specifies the [attestors][google.cloud.binaryauthorization.v1.Attestor] that must attest to
                -     * a container image, before the project is allowed to deploy that
                -     * image. There is at most one policy per project. All image admission
                -     * requests are permitted if a project has no policy.
                -     * Gets the [policy][google.cloud.binaryauthorization.v1.Policy] for this project. Returns a default
                -     * [policy][google.cloud.binaryauthorization.v1.Policy] if the project does not have one.
                +     * A [policy][google.cloud.binaryauthorization.v1.Policy] specifies the
                +     * [attestors][google.cloud.binaryauthorization.v1.Attestor] that must attest
                +     * to a container image, before the project is allowed to deploy that image.
                +     * There is at most one policy per project. All image admission requests are
                +     * permitted if a project has no policy.
                +     * Gets the [policy][google.cloud.binaryauthorization.v1.Policy] for this
                +     * project. Returns a default
                +     * [policy][google.cloud.binaryauthorization.v1.Policy] if the project does
                +     * not have one.
                      * 
                */ default void getPolicy( @@ -481,11 +484,12 @@ default void getPolicy( * * *
                -     * Creates or updates a project's [policy][google.cloud.binaryauthorization.v1.Policy], and returns a copy of the
                -     * new [policy][google.cloud.binaryauthorization.v1.Policy]. A policy is always updated as a whole, to avoid race
                -     * conditions with concurrent policy enforcement (or management!)
                -     * requests. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT
                -     * if the request is malformed.
                +     * Creates or updates a project's
                +     * [policy][google.cloud.binaryauthorization.v1.Policy], and returns a copy of
                +     * the new [policy][google.cloud.binaryauthorization.v1.Policy]. A policy is
                +     * always updated as a whole, to avoid race conditions with concurrent policy
                +     * enforcement (or management!) requests. Returns `NOT_FOUND` if the project
                +     * does not exist, `INVALID_ARGUMENT` if the request is malformed.
                      * 
                */ default void updatePolicy( @@ -501,9 +505,11 @@ default void updatePolicy( * * *
                -     * Creates an [attestor][google.cloud.binaryauthorization.v1.Attestor], and returns a copy of the new
                -     * [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the project does not exist,
                -     * INVALID_ARGUMENT if the request is malformed, ALREADY_EXISTS if the
                +     * Creates an [attestor][google.cloud.binaryauthorization.v1.Attestor], and
                +     * returns a copy of the new
                +     * [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns
                +     * `NOT_FOUND` if the project does not exist, `INVALID_ARGUMENT` if the
                +     * request is malformed, `ALREADY_EXISTS` if the
                      * [attestor][google.cloud.binaryauthorization.v1.Attestor] already exists.
                      * 
                */ @@ -521,7 +527,8 @@ default void createAttestor( * *
                      * Gets an [attestor][google.cloud.binaryauthorization.v1.Attestor].
                -     * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
                +     * Returns `NOT_FOUND` if the
                +     * [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
                      * 
                */ default void getAttestor( @@ -538,7 +545,8 @@ default void getAttestor( * *
                      * Updates an [attestor][google.cloud.binaryauthorization.v1.Attestor].
                -     * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
                +     * Returns `NOT_FOUND` if the
                +     * [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
                      * 
                */ default void updateAttestor( @@ -555,7 +563,7 @@ default void updateAttestor( * *
                      * Lists [attestors][google.cloud.binaryauthorization.v1.Attestor].
                -     * Returns INVALID_ARGUMENT if the project does not exist.
                +     * Returns `INVALID_ARGUMENT` if the project does not exist.
                      * 
                */ default void listAttestors( @@ -571,7 +579,8 @@ default void listAttestors( * * *
                -     * Deletes an [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the
                +     * Deletes an [attestor][google.cloud.binaryauthorization.v1.Attestor].
                +     * Returns `NOT_FOUND` if the
                      * [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
                      * 
                */ @@ -631,12 +640,15 @@ protected BinauthzManagementServiceV1Stub build( * * *
                -     * A [policy][google.cloud.binaryauthorization.v1.Policy] specifies the [attestors][google.cloud.binaryauthorization.v1.Attestor] that must attest to
                -     * a container image, before the project is allowed to deploy that
                -     * image. There is at most one policy per project. All image admission
                -     * requests are permitted if a project has no policy.
                -     * Gets the [policy][google.cloud.binaryauthorization.v1.Policy] for this project. Returns a default
                -     * [policy][google.cloud.binaryauthorization.v1.Policy] if the project does not have one.
                +     * A [policy][google.cloud.binaryauthorization.v1.Policy] specifies the
                +     * [attestors][google.cloud.binaryauthorization.v1.Attestor] that must attest
                +     * to a container image, before the project is allowed to deploy that image.
                +     * There is at most one policy per project. All image admission requests are
                +     * permitted if a project has no policy.
                +     * Gets the [policy][google.cloud.binaryauthorization.v1.Policy] for this
                +     * project. Returns a default
                +     * [policy][google.cloud.binaryauthorization.v1.Policy] if the project does
                +     * not have one.
                      * 
                */ public void getPolicy( @@ -652,11 +664,12 @@ public void getPolicy( * * *
                -     * Creates or updates a project's [policy][google.cloud.binaryauthorization.v1.Policy], and returns a copy of the
                -     * new [policy][google.cloud.binaryauthorization.v1.Policy]. A policy is always updated as a whole, to avoid race
                -     * conditions with concurrent policy enforcement (or management!)
                -     * requests. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT
                -     * if the request is malformed.
                +     * Creates or updates a project's
                +     * [policy][google.cloud.binaryauthorization.v1.Policy], and returns a copy of
                +     * the new [policy][google.cloud.binaryauthorization.v1.Policy]. A policy is
                +     * always updated as a whole, to avoid race conditions with concurrent policy
                +     * enforcement (or management!) requests. Returns `NOT_FOUND` if the project
                +     * does not exist, `INVALID_ARGUMENT` if the request is malformed.
                      * 
                */ public void updatePolicy( @@ -674,9 +687,11 @@ public void updatePolicy( * * *
                -     * Creates an [attestor][google.cloud.binaryauthorization.v1.Attestor], and returns a copy of the new
                -     * [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the project does not exist,
                -     * INVALID_ARGUMENT if the request is malformed, ALREADY_EXISTS if the
                +     * Creates an [attestor][google.cloud.binaryauthorization.v1.Attestor], and
                +     * returns a copy of the new
                +     * [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns
                +     * `NOT_FOUND` if the project does not exist, `INVALID_ARGUMENT` if the
                +     * request is malformed, `ALREADY_EXISTS` if the
                      * [attestor][google.cloud.binaryauthorization.v1.Attestor] already exists.
                      * 
                */ @@ -696,7 +711,8 @@ public void createAttestor( * *
                      * Gets an [attestor][google.cloud.binaryauthorization.v1.Attestor].
                -     * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
                +     * Returns `NOT_FOUND` if the
                +     * [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
                      * 
                */ public void getAttestor( @@ -715,7 +731,8 @@ public void getAttestor( * *
                      * Updates an [attestor][google.cloud.binaryauthorization.v1.Attestor].
                -     * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
                +     * Returns `NOT_FOUND` if the
                +     * [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
                      * 
                */ public void updateAttestor( @@ -734,7 +751,7 @@ public void updateAttestor( * *
                      * Lists [attestors][google.cloud.binaryauthorization.v1.Attestor].
                -     * Returns INVALID_ARGUMENT if the project does not exist.
                +     * Returns `INVALID_ARGUMENT` if the project does not exist.
                      * 
                */ public void listAttestors( @@ -752,7 +769,8 @@ public void listAttestors( * * *
                -     * Deletes an [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the
                +     * Deletes an [attestor][google.cloud.binaryauthorization.v1.Attestor].
                +     * Returns `NOT_FOUND` if the
                      * [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
                      * 
                */ @@ -794,12 +812,15 @@ protected BinauthzManagementServiceV1BlockingV2Stub build( * * *
                -     * A [policy][google.cloud.binaryauthorization.v1.Policy] specifies the [attestors][google.cloud.binaryauthorization.v1.Attestor] that must attest to
                -     * a container image, before the project is allowed to deploy that
                -     * image. There is at most one policy per project. All image admission
                -     * requests are permitted if a project has no policy.
                -     * Gets the [policy][google.cloud.binaryauthorization.v1.Policy] for this project. Returns a default
                -     * [policy][google.cloud.binaryauthorization.v1.Policy] if the project does not have one.
                +     * A [policy][google.cloud.binaryauthorization.v1.Policy] specifies the
                +     * [attestors][google.cloud.binaryauthorization.v1.Attestor] that must attest
                +     * to a container image, before the project is allowed to deploy that image.
                +     * There is at most one policy per project. All image admission requests are
                +     * permitted if a project has no policy.
                +     * Gets the [policy][google.cloud.binaryauthorization.v1.Policy] for this
                +     * project. Returns a default
                +     * [policy][google.cloud.binaryauthorization.v1.Policy] if the project does
                +     * not have one.
                      * 
                */ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy getPolicy( @@ -813,11 +834,12 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy ge * * *
                -     * Creates or updates a project's [policy][google.cloud.binaryauthorization.v1.Policy], and returns a copy of the
                -     * new [policy][google.cloud.binaryauthorization.v1.Policy]. A policy is always updated as a whole, to avoid race
                -     * conditions with concurrent policy enforcement (or management!)
                -     * requests. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT
                -     * if the request is malformed.
                +     * Creates or updates a project's
                +     * [policy][google.cloud.binaryauthorization.v1.Policy], and returns a copy of
                +     * the new [policy][google.cloud.binaryauthorization.v1.Policy]. A policy is
                +     * always updated as a whole, to avoid race conditions with concurrent policy
                +     * enforcement (or management!) requests. Returns `NOT_FOUND` if the project
                +     * does not exist, `INVALID_ARGUMENT` if the request is malformed.
                      * 
                */ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy updatePolicy( @@ -831,9 +853,11 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy up * * *
                -     * Creates an [attestor][google.cloud.binaryauthorization.v1.Attestor], and returns a copy of the new
                -     * [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the project does not exist,
                -     * INVALID_ARGUMENT if the request is malformed, ALREADY_EXISTS if the
                +     * Creates an [attestor][google.cloud.binaryauthorization.v1.Attestor], and
                +     * returns a copy of the new
                +     * [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns
                +     * `NOT_FOUND` if the project does not exist, `INVALID_ARGUMENT` if the
                +     * request is malformed, `ALREADY_EXISTS` if the
                      * [attestor][google.cloud.binaryauthorization.v1.Attestor] already exists.
                      * 
                */ @@ -849,7 +873,8 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor * *
                      * Gets an [attestor][google.cloud.binaryauthorization.v1.Attestor].
                -     * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
                +     * Returns `NOT_FOUND` if the
                +     * [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
                      * 
                */ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor getAttestor( @@ -864,7 +889,8 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor * *
                      * Updates an [attestor][google.cloud.binaryauthorization.v1.Attestor].
                -     * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
                +     * Returns `NOT_FOUND` if the
                +     * [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
                      * 
                */ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor updateAttestor( @@ -879,7 +905,7 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor * *
                      * Lists [attestors][google.cloud.binaryauthorization.v1.Attestor].
                -     * Returns INVALID_ARGUMENT if the project does not exist.
                +     * Returns `INVALID_ARGUMENT` if the project does not exist.
                      * 
                */ public com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse @@ -895,7 +921,8 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor * * *
                -     * Deletes an [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the
                +     * Deletes an [attestor][google.cloud.binaryauthorization.v1.Attestor].
                +     * Returns `NOT_FOUND` if the
                      * [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
                      * 
                */ @@ -936,12 +963,15 @@ protected BinauthzManagementServiceV1BlockingStub build( * * *
                -     * A [policy][google.cloud.binaryauthorization.v1.Policy] specifies the [attestors][google.cloud.binaryauthorization.v1.Attestor] that must attest to
                -     * a container image, before the project is allowed to deploy that
                -     * image. There is at most one policy per project. All image admission
                -     * requests are permitted if a project has no policy.
                -     * Gets the [policy][google.cloud.binaryauthorization.v1.Policy] for this project. Returns a default
                -     * [policy][google.cloud.binaryauthorization.v1.Policy] if the project does not have one.
                +     * A [policy][google.cloud.binaryauthorization.v1.Policy] specifies the
                +     * [attestors][google.cloud.binaryauthorization.v1.Attestor] that must attest
                +     * to a container image, before the project is allowed to deploy that image.
                +     * There is at most one policy per project. All image admission requests are
                +     * permitted if a project has no policy.
                +     * Gets the [policy][google.cloud.binaryauthorization.v1.Policy] for this
                +     * project. Returns a default
                +     * [policy][google.cloud.binaryauthorization.v1.Policy] if the project does
                +     * not have one.
                      * 
                */ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy getPolicy( @@ -954,11 +984,12 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy ge * * *
                -     * Creates or updates a project's [policy][google.cloud.binaryauthorization.v1.Policy], and returns a copy of the
                -     * new [policy][google.cloud.binaryauthorization.v1.Policy]. A policy is always updated as a whole, to avoid race
                -     * conditions with concurrent policy enforcement (or management!)
                -     * requests. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT
                -     * if the request is malformed.
                +     * Creates or updates a project's
                +     * [policy][google.cloud.binaryauthorization.v1.Policy], and returns a copy of
                +     * the new [policy][google.cloud.binaryauthorization.v1.Policy]. A policy is
                +     * always updated as a whole, to avoid race conditions with concurrent policy
                +     * enforcement (or management!) requests. Returns `NOT_FOUND` if the project
                +     * does not exist, `INVALID_ARGUMENT` if the request is malformed.
                      * 
                */ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy updatePolicy( @@ -971,9 +1002,11 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy up * * *
                -     * Creates an [attestor][google.cloud.binaryauthorization.v1.Attestor], and returns a copy of the new
                -     * [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the project does not exist,
                -     * INVALID_ARGUMENT if the request is malformed, ALREADY_EXISTS if the
                +     * Creates an [attestor][google.cloud.binaryauthorization.v1.Attestor], and
                +     * returns a copy of the new
                +     * [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns
                +     * `NOT_FOUND` if the project does not exist, `INVALID_ARGUMENT` if the
                +     * request is malformed, `ALREADY_EXISTS` if the
                      * [attestor][google.cloud.binaryauthorization.v1.Attestor] already exists.
                      * 
                */ @@ -989,7 +1022,8 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor * *
                      * Gets an [attestor][google.cloud.binaryauthorization.v1.Attestor].
                -     * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
                +     * Returns `NOT_FOUND` if the
                +     * [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
                      * 
                */ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor getAttestor( @@ -1003,7 +1037,8 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor * *
                      * Updates an [attestor][google.cloud.binaryauthorization.v1.Attestor].
                -     * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
                +     * Returns `NOT_FOUND` if the
                +     * [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
                      * 
                */ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor updateAttestor( @@ -1018,7 +1053,7 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor * *
                      * Lists [attestors][google.cloud.binaryauthorization.v1.Attestor].
                -     * Returns INVALID_ARGUMENT if the project does not exist.
                +     * Returns `INVALID_ARGUMENT` if the project does not exist.
                      * 
                */ public com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse @@ -1033,7 +1068,8 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor * * *
                -     * Deletes an [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the
                +     * Deletes an [attestor][google.cloud.binaryauthorization.v1.Attestor].
                +     * Returns `NOT_FOUND` if the
                      * [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
                      * 
                */ @@ -1074,12 +1110,15 @@ protected BinauthzManagementServiceV1FutureStub build( * * *
                -     * A [policy][google.cloud.binaryauthorization.v1.Policy] specifies the [attestors][google.cloud.binaryauthorization.v1.Attestor] that must attest to
                -     * a container image, before the project is allowed to deploy that
                -     * image. There is at most one policy per project. All image admission
                -     * requests are permitted if a project has no policy.
                -     * Gets the [policy][google.cloud.binaryauthorization.v1.Policy] for this project. Returns a default
                -     * [policy][google.cloud.binaryauthorization.v1.Policy] if the project does not have one.
                +     * A [policy][google.cloud.binaryauthorization.v1.Policy] specifies the
                +     * [attestors][google.cloud.binaryauthorization.v1.Attestor] that must attest
                +     * to a container image, before the project is allowed to deploy that image.
                +     * There is at most one policy per project. All image admission requests are
                +     * permitted if a project has no policy.
                +     * Gets the [policy][google.cloud.binaryauthorization.v1.Policy] for this
                +     * project. Returns a default
                +     * [policy][google.cloud.binaryauthorization.v1.Policy] if the project does
                +     * not have one.
                      * 
                */ public com.google.common.util.concurrent.ListenableFuture< @@ -1095,11 +1134,12 @@ protected BinauthzManagementServiceV1FutureStub build( * * *
                -     * Creates or updates a project's [policy][google.cloud.binaryauthorization.v1.Policy], and returns a copy of the
                -     * new [policy][google.cloud.binaryauthorization.v1.Policy]. A policy is always updated as a whole, to avoid race
                -     * conditions with concurrent policy enforcement (or management!)
                -     * requests. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT
                -     * if the request is malformed.
                +     * Creates or updates a project's
                +     * [policy][google.cloud.binaryauthorization.v1.Policy], and returns a copy of
                +     * the new [policy][google.cloud.binaryauthorization.v1.Policy]. A policy is
                +     * always updated as a whole, to avoid race conditions with concurrent policy
                +     * enforcement (or management!) requests. Returns `NOT_FOUND` if the project
                +     * does not exist, `INVALID_ARGUMENT` if the request is malformed.
                      * 
                */ public com.google.common.util.concurrent.ListenableFuture< @@ -1115,9 +1155,11 @@ protected BinauthzManagementServiceV1FutureStub build( * * *
                -     * Creates an [attestor][google.cloud.binaryauthorization.v1.Attestor], and returns a copy of the new
                -     * [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the project does not exist,
                -     * INVALID_ARGUMENT if the request is malformed, ALREADY_EXISTS if the
                +     * Creates an [attestor][google.cloud.binaryauthorization.v1.Attestor], and
                +     * returns a copy of the new
                +     * [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns
                +     * `NOT_FOUND` if the project does not exist, `INVALID_ARGUMENT` if the
                +     * request is malformed, `ALREADY_EXISTS` if the
                      * [attestor][google.cloud.binaryauthorization.v1.Attestor] already exists.
                      * 
                */ @@ -1135,7 +1177,8 @@ protected BinauthzManagementServiceV1FutureStub build( * *
                      * Gets an [attestor][google.cloud.binaryauthorization.v1.Attestor].
                -     * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
                +     * Returns `NOT_FOUND` if the
                +     * [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
                      * 
                */ public com.google.common.util.concurrent.ListenableFuture< @@ -1152,7 +1195,8 @@ protected BinauthzManagementServiceV1FutureStub build( * *
                      * Updates an [attestor][google.cloud.binaryauthorization.v1.Attestor].
                -     * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
                +     * Returns `NOT_FOUND` if the
                +     * [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
                      * 
                */ public com.google.common.util.concurrent.ListenableFuture< @@ -1169,7 +1213,7 @@ protected BinauthzManagementServiceV1FutureStub build( * *
                      * Lists [attestors][google.cloud.binaryauthorization.v1.Attestor].
                -     * Returns INVALID_ARGUMENT if the project does not exist.
                +     * Returns `INVALID_ARGUMENT` if the project does not exist.
                      * 
                */ public com.google.common.util.concurrent.ListenableFuture< @@ -1185,7 +1229,8 @@ protected BinauthzManagementServiceV1FutureStub build( * * *
                -     * Deletes an [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the
                +     * Deletes an [attestor][google.cloud.binaryauthorization.v1.Attestor].
                +     * Returns `NOT_FOUND` if the
                      * [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
                      * 
                */ diff --git a/java-binary-authorization/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Grpc.java b/java-binary-authorization/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Grpc.java index 1167d0daf624..0ed562058d4e 100644 --- a/java-binary-authorization/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Grpc.java +++ b/java-binary-authorization/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Grpc.java @@ -165,8 +165,8 @@ public interface AsyncService { * * *
                -     * Returns whether the given Attestation for the given image URI
                -     * was signed by the given Attestor
                +     * Returns whether the given `Attestation` for the given image URI
                +     * was signed by the given `Attestor`
                      * 
                */ default void validateAttestationOccurrence( @@ -221,8 +221,8 @@ protected ValidationHelperV1Stub build( * * *
                -     * Returns whether the given Attestation for the given image URI
                -     * was signed by the given Attestor
                +     * Returns whether the given `Attestation` for the given image URI
                +     * was signed by the given `Attestor`
                      * 
                */ public void validateAttestationOccurrence( @@ -264,8 +264,8 @@ protected ValidationHelperV1BlockingV2Stub build( * * *
                -     * Returns whether the given Attestation for the given image URI
                -     * was signed by the given Attestor
                +     * Returns whether the given `Attestation` for the given image URI
                +     * was signed by the given `Attestor`
                      * 
                */ public com.google.protos.google.cloud.binaryauthorization.v1.Service @@ -304,8 +304,8 @@ protected ValidationHelperV1BlockingStub build( * * *
                -     * Returns whether the given Attestation for the given image URI
                -     * was signed by the given Attestor
                +     * Returns whether the given `Attestation` for the given image URI
                +     * was signed by the given `Attestor`
                      * 
                */ public com.google.protos.google.cloud.binaryauthorization.v1.Service @@ -342,8 +342,8 @@ protected ValidationHelperV1FutureStub build( * * *
                -     * Returns whether the given Attestation for the given image URI
                -     * was signed by the given Attestor
                +     * Returns whether the given `Attestation` for the given image URI
                +     * was signed by the given `Attestor`
                      * 
                */ public com.google.common.util.concurrent.ListenableFuture< diff --git a/java-binary-authorization/grpc-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1Grpc.java b/java-binary-authorization/grpc-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1Grpc.java index e5512fd38a75..89d07a40bc53 100644 --- a/java-binary-authorization/grpc-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1Grpc.java +++ b/java-binary-authorization/grpc-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1Grpc.java @@ -458,12 +458,15 @@ public interface AsyncService { * * *
                -     * A [policy][google.cloud.binaryauthorization.v1beta1.Policy] specifies the [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] that must attest to
                -     * a container image, before the project is allowed to deploy that
                +     * A [policy][google.cloud.binaryauthorization.v1beta1.Policy] specifies the
                +     * [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] that must
                +     * attest to a container image, before the project is allowed to deploy that
                      * image. There is at most one policy per project. All image admission
                      * requests are permitted if a project has no policy.
                -     * Gets the [policy][google.cloud.binaryauthorization.v1beta1.Policy] for this project. Returns a default
                -     * [policy][google.cloud.binaryauthorization.v1beta1.Policy] if the project does not have one.
                +     * Gets the [policy][google.cloud.binaryauthorization.v1beta1.Policy] for this
                +     * project. Returns a default
                +     * [policy][google.cloud.binaryauthorization.v1beta1.Policy] if the project
                +     * does not have one.
                      * 
                */ default void getPolicy( @@ -477,11 +480,13 @@ default void getPolicy( * * *
                -     * Creates or updates a project's [policy][google.cloud.binaryauthorization.v1beta1.Policy], and returns a copy of the
                -     * new [policy][google.cloud.binaryauthorization.v1beta1.Policy]. A policy is always updated as a whole, to avoid race
                -     * conditions with concurrent policy enforcement (or management!)
                -     * requests. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT
                -     * if the request is malformed.
                +     * Creates or updates a project's
                +     * [policy][google.cloud.binaryauthorization.v1beta1.Policy], and returns a
                +     * copy of the new [policy][google.cloud.binaryauthorization.v1beta1.Policy].
                +     * A policy is always updated as a whole, to avoid race conditions with
                +     * concurrent policy enforcement (or management!) requests. Returns NOT_FOUND
                +     * if the project does not exist, INVALID_ARGUMENT if the request is
                +     * malformed.
                      * 
                */ default void updatePolicy( @@ -496,10 +501,13 @@ default void updatePolicy( * * *
                -     * Creates an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor], and returns a copy of the new
                -     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor]. Returns NOT_FOUND if the project does not exist,
                -     * INVALID_ARGUMENT if the request is malformed, ALREADY_EXISTS if the
                -     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] already exists.
                +     * Creates an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor],
                +     * and returns a copy of the new
                +     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor]. Returns
                +     * NOT_FOUND if the project does not exist, INVALID_ARGUMENT if the request is
                +     * malformed, ALREADY_EXISTS if the
                +     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] already
                +     * exists.
                      * 
                */ default void createAttestor( @@ -515,7 +523,9 @@ default void createAttestor( * *
                      * Gets an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
                -     * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not exist.
                +     * Returns NOT_FOUND if the
                +     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not
                +     * exist.
                      * 
                */ default void getAttestor( @@ -531,7 +541,9 @@ default void getAttestor( * *
                      * Updates an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
                -     * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not exist.
                +     * Returns NOT_FOUND if the
                +     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not
                +     * exist.
                      * 
                */ default void updateAttestor( @@ -563,8 +575,10 @@ default void listAttestors( * * *
                -     * Deletes an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor]. Returns NOT_FOUND if the
                -     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not exist.
                +     * Deletes an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
                +     * Returns NOT_FOUND if the
                +     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not
                +     * exist.
                      * 
                */ default void deleteAttestor( @@ -624,12 +638,15 @@ protected BinauthzManagementServiceV1Beta1Stub build( * * *
                -     * A [policy][google.cloud.binaryauthorization.v1beta1.Policy] specifies the [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] that must attest to
                -     * a container image, before the project is allowed to deploy that
                +     * A [policy][google.cloud.binaryauthorization.v1beta1.Policy] specifies the
                +     * [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] that must
                +     * attest to a container image, before the project is allowed to deploy that
                      * image. There is at most one policy per project. All image admission
                      * requests are permitted if a project has no policy.
                -     * Gets the [policy][google.cloud.binaryauthorization.v1beta1.Policy] for this project. Returns a default
                -     * [policy][google.cloud.binaryauthorization.v1beta1.Policy] if the project does not have one.
                +     * Gets the [policy][google.cloud.binaryauthorization.v1beta1.Policy] for this
                +     * project. Returns a default
                +     * [policy][google.cloud.binaryauthorization.v1beta1.Policy] if the project
                +     * does not have one.
                      * 
                */ public void getPolicy( @@ -644,11 +661,13 @@ public void getPolicy( * * *
                -     * Creates or updates a project's [policy][google.cloud.binaryauthorization.v1beta1.Policy], and returns a copy of the
                -     * new [policy][google.cloud.binaryauthorization.v1beta1.Policy]. A policy is always updated as a whole, to avoid race
                -     * conditions with concurrent policy enforcement (or management!)
                -     * requests. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT
                -     * if the request is malformed.
                +     * Creates or updates a project's
                +     * [policy][google.cloud.binaryauthorization.v1beta1.Policy], and returns a
                +     * copy of the new [policy][google.cloud.binaryauthorization.v1beta1.Policy].
                +     * A policy is always updated as a whole, to avoid race conditions with
                +     * concurrent policy enforcement (or management!) requests. Returns NOT_FOUND
                +     * if the project does not exist, INVALID_ARGUMENT if the request is
                +     * malformed.
                      * 
                */ public void updatePolicy( @@ -665,10 +684,13 @@ public void updatePolicy( * * *
                -     * Creates an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor], and returns a copy of the new
                -     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor]. Returns NOT_FOUND if the project does not exist,
                -     * INVALID_ARGUMENT if the request is malformed, ALREADY_EXISTS if the
                -     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] already exists.
                +     * Creates an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor],
                +     * and returns a copy of the new
                +     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor]. Returns
                +     * NOT_FOUND if the project does not exist, INVALID_ARGUMENT if the request is
                +     * malformed, ALREADY_EXISTS if the
                +     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] already
                +     * exists.
                      * 
                */ public void createAttestor( @@ -686,7 +708,9 @@ public void createAttestor( * *
                      * Gets an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
                -     * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not exist.
                +     * Returns NOT_FOUND if the
                +     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not
                +     * exist.
                      * 
                */ public void getAttestor( @@ -704,7 +728,9 @@ public void getAttestor( * *
                      * Updates an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
                -     * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not exist.
                +     * Returns NOT_FOUND if the
                +     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not
                +     * exist.
                      * 
                */ public void updateAttestor( @@ -740,8 +766,10 @@ public void listAttestors( * * *
                -     * Deletes an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor]. Returns NOT_FOUND if the
                -     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not exist.
                +     * Deletes an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
                +     * Returns NOT_FOUND if the
                +     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not
                +     * exist.
                      * 
                */ public void deleteAttestor( @@ -783,12 +811,15 @@ protected BinauthzManagementServiceV1Beta1BlockingV2Stub build( * * *
                -     * A [policy][google.cloud.binaryauthorization.v1beta1.Policy] specifies the [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] that must attest to
                -     * a container image, before the project is allowed to deploy that
                +     * A [policy][google.cloud.binaryauthorization.v1beta1.Policy] specifies the
                +     * [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] that must
                +     * attest to a container image, before the project is allowed to deploy that
                      * image. There is at most one policy per project. All image admission
                      * requests are permitted if a project has no policy.
                -     * Gets the [policy][google.cloud.binaryauthorization.v1beta1.Policy] for this project. Returns a default
                -     * [policy][google.cloud.binaryauthorization.v1beta1.Policy] if the project does not have one.
                +     * Gets the [policy][google.cloud.binaryauthorization.v1beta1.Policy] for this
                +     * project. Returns a default
                +     * [policy][google.cloud.binaryauthorization.v1beta1.Policy] if the project
                +     * does not have one.
                      * 
                */ public com.google.cloud.binaryauthorization.v1beta1.Policy getPolicy( @@ -802,11 +833,13 @@ public com.google.cloud.binaryauthorization.v1beta1.Policy getPolicy( * * *
                -     * Creates or updates a project's [policy][google.cloud.binaryauthorization.v1beta1.Policy], and returns a copy of the
                -     * new [policy][google.cloud.binaryauthorization.v1beta1.Policy]. A policy is always updated as a whole, to avoid race
                -     * conditions with concurrent policy enforcement (or management!)
                -     * requests. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT
                -     * if the request is malformed.
                +     * Creates or updates a project's
                +     * [policy][google.cloud.binaryauthorization.v1beta1.Policy], and returns a
                +     * copy of the new [policy][google.cloud.binaryauthorization.v1beta1.Policy].
                +     * A policy is always updated as a whole, to avoid race conditions with
                +     * concurrent policy enforcement (or management!) requests. Returns NOT_FOUND
                +     * if the project does not exist, INVALID_ARGUMENT if the request is
                +     * malformed.
                      * 
                */ public com.google.cloud.binaryauthorization.v1beta1.Policy updatePolicy( @@ -820,10 +853,13 @@ public com.google.cloud.binaryauthorization.v1beta1.Policy updatePolicy( * * *
                -     * Creates an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor], and returns a copy of the new
                -     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor]. Returns NOT_FOUND if the project does not exist,
                -     * INVALID_ARGUMENT if the request is malformed, ALREADY_EXISTS if the
                -     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] already exists.
                +     * Creates an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor],
                +     * and returns a copy of the new
                +     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor]. Returns
                +     * NOT_FOUND if the project does not exist, INVALID_ARGUMENT if the request is
                +     * malformed, ALREADY_EXISTS if the
                +     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] already
                +     * exists.
                      * 
                */ public com.google.cloud.binaryauthorization.v1beta1.Attestor createAttestor( @@ -838,7 +874,9 @@ public com.google.cloud.binaryauthorization.v1beta1.Attestor createAttestor( * *
                      * Gets an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
                -     * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not exist.
                +     * Returns NOT_FOUND if the
                +     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not
                +     * exist.
                      * 
                */ public com.google.cloud.binaryauthorization.v1beta1.Attestor getAttestor( @@ -853,7 +891,9 @@ public com.google.cloud.binaryauthorization.v1beta1.Attestor getAttestor( * *
                      * Updates an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
                -     * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not exist.
                +     * Returns NOT_FOUND if the
                +     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not
                +     * exist.
                      * 
                */ public com.google.cloud.binaryauthorization.v1beta1.Attestor updateAttestor( @@ -882,8 +922,10 @@ public com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse listAt * * *
                -     * Deletes an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor]. Returns NOT_FOUND if the
                -     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not exist.
                +     * Deletes an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
                +     * Returns NOT_FOUND if the
                +     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not
                +     * exist.
                      * 
                */ public com.google.protobuf.Empty deleteAttestor( @@ -923,12 +965,15 @@ protected BinauthzManagementServiceV1Beta1BlockingStub build( * * *
                -     * A [policy][google.cloud.binaryauthorization.v1beta1.Policy] specifies the [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] that must attest to
                -     * a container image, before the project is allowed to deploy that
                +     * A [policy][google.cloud.binaryauthorization.v1beta1.Policy] specifies the
                +     * [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] that must
                +     * attest to a container image, before the project is allowed to deploy that
                      * image. There is at most one policy per project. All image admission
                      * requests are permitted if a project has no policy.
                -     * Gets the [policy][google.cloud.binaryauthorization.v1beta1.Policy] for this project. Returns a default
                -     * [policy][google.cloud.binaryauthorization.v1beta1.Policy] if the project does not have one.
                +     * Gets the [policy][google.cloud.binaryauthorization.v1beta1.Policy] for this
                +     * project. Returns a default
                +     * [policy][google.cloud.binaryauthorization.v1beta1.Policy] if the project
                +     * does not have one.
                      * 
                */ public com.google.cloud.binaryauthorization.v1beta1.Policy getPolicy( @@ -941,11 +986,13 @@ public com.google.cloud.binaryauthorization.v1beta1.Policy getPolicy( * * *
                -     * Creates or updates a project's [policy][google.cloud.binaryauthorization.v1beta1.Policy], and returns a copy of the
                -     * new [policy][google.cloud.binaryauthorization.v1beta1.Policy]. A policy is always updated as a whole, to avoid race
                -     * conditions with concurrent policy enforcement (or management!)
                -     * requests. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT
                -     * if the request is malformed.
                +     * Creates or updates a project's
                +     * [policy][google.cloud.binaryauthorization.v1beta1.Policy], and returns a
                +     * copy of the new [policy][google.cloud.binaryauthorization.v1beta1.Policy].
                +     * A policy is always updated as a whole, to avoid race conditions with
                +     * concurrent policy enforcement (or management!) requests. Returns NOT_FOUND
                +     * if the project does not exist, INVALID_ARGUMENT if the request is
                +     * malformed.
                      * 
                */ public com.google.cloud.binaryauthorization.v1beta1.Policy updatePolicy( @@ -958,10 +1005,13 @@ public com.google.cloud.binaryauthorization.v1beta1.Policy updatePolicy( * * *
                -     * Creates an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor], and returns a copy of the new
                -     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor]. Returns NOT_FOUND if the project does not exist,
                -     * INVALID_ARGUMENT if the request is malformed, ALREADY_EXISTS if the
                -     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] already exists.
                +     * Creates an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor],
                +     * and returns a copy of the new
                +     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor]. Returns
                +     * NOT_FOUND if the project does not exist, INVALID_ARGUMENT if the request is
                +     * malformed, ALREADY_EXISTS if the
                +     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] already
                +     * exists.
                      * 
                */ public com.google.cloud.binaryauthorization.v1beta1.Attestor createAttestor( @@ -975,7 +1025,9 @@ public com.google.cloud.binaryauthorization.v1beta1.Attestor createAttestor( * *
                      * Gets an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
                -     * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not exist.
                +     * Returns NOT_FOUND if the
                +     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not
                +     * exist.
                      * 
                */ public com.google.cloud.binaryauthorization.v1beta1.Attestor getAttestor( @@ -989,7 +1041,9 @@ public com.google.cloud.binaryauthorization.v1beta1.Attestor getAttestor( * *
                      * Updates an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
                -     * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not exist.
                +     * Returns NOT_FOUND if the
                +     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not
                +     * exist.
                      * 
                */ public com.google.cloud.binaryauthorization.v1beta1.Attestor updateAttestor( @@ -1016,8 +1070,10 @@ public com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse listAt * * *
                -     * Deletes an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor]. Returns NOT_FOUND if the
                -     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not exist.
                +     * Deletes an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
                +     * Returns NOT_FOUND if the
                +     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not
                +     * exist.
                      * 
                */ public com.google.protobuf.Empty deleteAttestor( @@ -1056,12 +1112,15 @@ protected BinauthzManagementServiceV1Beta1FutureStub build( * * *
                -     * A [policy][google.cloud.binaryauthorization.v1beta1.Policy] specifies the [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] that must attest to
                -     * a container image, before the project is allowed to deploy that
                +     * A [policy][google.cloud.binaryauthorization.v1beta1.Policy] specifies the
                +     * [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] that must
                +     * attest to a container image, before the project is allowed to deploy that
                      * image. There is at most one policy per project. All image admission
                      * requests are permitted if a project has no policy.
                -     * Gets the [policy][google.cloud.binaryauthorization.v1beta1.Policy] for this project. Returns a default
                -     * [policy][google.cloud.binaryauthorization.v1beta1.Policy] if the project does not have one.
                +     * Gets the [policy][google.cloud.binaryauthorization.v1beta1.Policy] for this
                +     * project. Returns a default
                +     * [policy][google.cloud.binaryauthorization.v1beta1.Policy] if the project
                +     * does not have one.
                      * 
                */ public com.google.common.util.concurrent.ListenableFuture< @@ -1075,11 +1134,13 @@ protected BinauthzManagementServiceV1Beta1FutureStub build( * * *
                -     * Creates or updates a project's [policy][google.cloud.binaryauthorization.v1beta1.Policy], and returns a copy of the
                -     * new [policy][google.cloud.binaryauthorization.v1beta1.Policy]. A policy is always updated as a whole, to avoid race
                -     * conditions with concurrent policy enforcement (or management!)
                -     * requests. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT
                -     * if the request is malformed.
                +     * Creates or updates a project's
                +     * [policy][google.cloud.binaryauthorization.v1beta1.Policy], and returns a
                +     * copy of the new [policy][google.cloud.binaryauthorization.v1beta1.Policy].
                +     * A policy is always updated as a whole, to avoid race conditions with
                +     * concurrent policy enforcement (or management!) requests. Returns NOT_FOUND
                +     * if the project does not exist, INVALID_ARGUMENT if the request is
                +     * malformed.
                      * 
                */ public com.google.common.util.concurrent.ListenableFuture< @@ -1093,10 +1154,13 @@ protected BinauthzManagementServiceV1Beta1FutureStub build( * * *
                -     * Creates an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor], and returns a copy of the new
                -     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor]. Returns NOT_FOUND if the project does not exist,
                -     * INVALID_ARGUMENT if the request is malformed, ALREADY_EXISTS if the
                -     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] already exists.
                +     * Creates an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor],
                +     * and returns a copy of the new
                +     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor]. Returns
                +     * NOT_FOUND if the project does not exist, INVALID_ARGUMENT if the request is
                +     * malformed, ALREADY_EXISTS if the
                +     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] already
                +     * exists.
                      * 
                */ public com.google.common.util.concurrent.ListenableFuture< @@ -1111,7 +1175,9 @@ protected BinauthzManagementServiceV1Beta1FutureStub build( * *
                      * Gets an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
                -     * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not exist.
                +     * Returns NOT_FOUND if the
                +     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not
                +     * exist.
                      * 
                */ public com.google.common.util.concurrent.ListenableFuture< @@ -1126,7 +1192,9 @@ protected BinauthzManagementServiceV1Beta1FutureStub build( * *
                      * Updates an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
                -     * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not exist.
                +     * Returns NOT_FOUND if the
                +     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not
                +     * exist.
                      * 
                */ public com.google.common.util.concurrent.ListenableFuture< @@ -1155,8 +1223,10 @@ protected BinauthzManagementServiceV1Beta1FutureStub build( * * *
                -     * Deletes an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor]. Returns NOT_FOUND if the
                -     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not exist.
                +     * Deletes an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
                +     * Returns NOT_FOUND if the
                +     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not
                +     * exist.
                      * 
                */ public com.google.common.util.concurrent.ListenableFuture diff --git a/java-binary-authorization/proto-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/Resources.java b/java-binary-authorization/proto-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/Resources.java index c883c57923b0..09049134a25f 100644 --- a/java-binary-authorization/proto-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/Resources.java +++ b/java-binary-authorization/proto-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/Resources.java @@ -226,7 +226,12 @@ public interface PolicyOrBuilder * * *
                -     * Optional. Per-cluster admission rules. Cluster spec format:
                +     * Optional. A valid policy has only one of the following rule maps non-empty,
                +     * i.e. only one of `cluster_admission_rules`,
                +     * `kubernetes_namespace_admission_rules`,
                +     * `kubernetes_service_account_admission_rules`,
                +     * or `istio_service_identity_admission_rules` can be non-empty.
                +     * Per-cluster admission rules. Cluster spec format:
                      * `location.clusterId`. There can be at most one admission rule per cluster
                      * spec.
                      * A `location` is either a compute zone (e.g. us-central1-a) or a region
                @@ -245,7 +250,12 @@ public interface PolicyOrBuilder
                      *
                      *
                      * 
                -     * Optional. Per-cluster admission rules. Cluster spec format:
                +     * Optional. A valid policy has only one of the following rule maps non-empty,
                +     * i.e. only one of `cluster_admission_rules`,
                +     * `kubernetes_namespace_admission_rules`,
                +     * `kubernetes_service_account_admission_rules`,
                +     * or `istio_service_identity_admission_rules` can be non-empty.
                +     * Per-cluster admission rules. Cluster spec format:
                      * `location.clusterId`. There can be at most one admission rule per cluster
                      * spec.
                      * A `location` is either a compute zone (e.g. us-central1-a) or a region
                @@ -271,7 +281,12 @@ public interface PolicyOrBuilder
                      *
                      *
                      * 
                -     * Optional. Per-cluster admission rules. Cluster spec format:
                +     * Optional. A valid policy has only one of the following rule maps non-empty,
                +     * i.e. only one of `cluster_admission_rules`,
                +     * `kubernetes_namespace_admission_rules`,
                +     * `kubernetes_service_account_admission_rules`,
                +     * or `istio_service_identity_admission_rules` can be non-empty.
                +     * Per-cluster admission rules. Cluster spec format:
                      * `location.clusterId`. There can be at most one admission rule per cluster
                      * spec.
                      * A `location` is either a compute zone (e.g. us-central1-a) or a region
                @@ -293,7 +308,12 @@ public interface PolicyOrBuilder
                      *
                      *
                      * 
                -     * Optional. Per-cluster admission rules. Cluster spec format:
                +     * Optional. A valid policy has only one of the following rule maps non-empty,
                +     * i.e. only one of `cluster_admission_rules`,
                +     * `kubernetes_namespace_admission_rules`,
                +     * `kubernetes_service_account_admission_rules`,
                +     * or `istio_service_identity_admission_rules` can be non-empty.
                +     * Per-cluster admission rules. Cluster spec format:
                      * `location.clusterId`. There can be at most one admission rule per cluster
                      * spec.
                      * A `location` is either a compute zone (e.g. us-central1-a) or a region
                @@ -318,7 +338,12 @@ public interface PolicyOrBuilder
                      *
                      *
                      * 
                -     * Optional. Per-cluster admission rules. Cluster spec format:
                +     * Optional. A valid policy has only one of the following rule maps non-empty,
                +     * i.e. only one of `cluster_admission_rules`,
                +     * `kubernetes_namespace_admission_rules`,
                +     * `kubernetes_service_account_admission_rules`,
                +     * or `istio_service_identity_admission_rules` can be non-empty.
                +     * Per-cluster admission rules. Cluster spec format:
                      * `location.clusterId`. There can be at most one admission rule per cluster
                      * spec.
                      * A `location` is either a compute zone (e.g. us-central1-a) or a region
                @@ -338,8 +363,9 @@ public interface PolicyOrBuilder
                      *
                      *
                      * 
                -     * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
                -     * [a-z.-]+, e.g. 'some-namespace'
                +     * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec
                +     * format:
                +     * `[a-z.-]+`, e.g. `some-namespace`
                      * 
                * * @@ -352,8 +378,9 @@ public interface PolicyOrBuilder * * *
                -     * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
                -     * [a-z.-]+, e.g. 'some-namespace'
                +     * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec
                +     * format:
                +     * `[a-z.-]+`, e.g. `some-namespace`
                      * 
                * * @@ -373,8 +400,9 @@ public interface PolicyOrBuilder * * *
                -     * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
                -     * [a-z.-]+, e.g. 'some-namespace'
                +     * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec
                +     * format:
                +     * `[a-z.-]+`, e.g. `some-namespace`
                      * 
                * * @@ -390,8 +418,9 @@ public interface PolicyOrBuilder * * *
                -     * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
                -     * [a-z.-]+, e.g. 'some-namespace'
                +     * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec
                +     * format:
                +     * `[a-z.-]+`, e.g. `some-namespace`
                      * 
                * * @@ -410,8 +439,9 @@ public interface PolicyOrBuilder * * *
                -     * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
                -     * [a-z.-]+, e.g. 'some-namespace'
                +     * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec
                +     * format:
                +     * `[a-z.-]+`, e.g. `some-namespace`
                      * 
                * * @@ -426,7 +456,7 @@ public interface PolicyOrBuilder * *
                      * Optional. Per-kubernetes-service-account admission rules. Service account
                -     * spec format: `namespace:serviceaccount`. e.g. 'test-ns:default'
                +     * spec format: `namespace:serviceaccount`. e.g. `test-ns:default`
                      * 
                * * @@ -440,7 +470,7 @@ public interface PolicyOrBuilder * *
                      * Optional. Per-kubernetes-service-account admission rules. Service account
                -     * spec format: `namespace:serviceaccount`. e.g. 'test-ns:default'
                +     * spec format: `namespace:serviceaccount`. e.g. `test-ns:default`
                      * 
                * * @@ -461,7 +491,7 @@ public interface PolicyOrBuilder * *
                      * Optional. Per-kubernetes-service-account admission rules. Service account
                -     * spec format: `namespace:serviceaccount`. e.g. 'test-ns:default'
                +     * spec format: `namespace:serviceaccount`. e.g. `test-ns:default`
                      * 
                * * @@ -478,7 +508,7 @@ public interface PolicyOrBuilder * *
                      * Optional. Per-kubernetes-service-account admission rules. Service account
                -     * spec format: `namespace:serviceaccount`. e.g. 'test-ns:default'
                +     * spec format: `namespace:serviceaccount`. e.g. `test-ns:default`
                      * 
                * * @@ -498,7 +528,7 @@ public interface PolicyOrBuilder * *
                      * Optional. Per-kubernetes-service-account admission rules. Service account
                -     * spec format: `namespace:serviceaccount`. e.g. 'test-ns:default'
                +     * spec format: `namespace:serviceaccount`. e.g. `test-ns:default`
                      * 
                * * @@ -514,9 +544,9 @@ public interface PolicyOrBuilder *
                      * Optional. Per-istio-service-identity admission rules. Istio service
                      * identity spec format:
                -     * spiffe://<domain>/ns/<namespace>/sa/<serviceaccount> or
                -     * <domain>/ns/<namespace>/sa/<serviceaccount>
                -     * e.g. spiffe://example.com/ns/test-ns/sa/default
                +     * `spiffe://<domain>/ns/<namespace>/sa/<serviceaccount>` or
                +     * `<domain>/ns/<namespace>/sa/<serviceaccount>`
                +     * e.g. `spiffe://example.com/ns/test-ns/sa/default`
                      * 
                * * @@ -531,9 +561,9 @@ public interface PolicyOrBuilder *
                      * Optional. Per-istio-service-identity admission rules. Istio service
                      * identity spec format:
                -     * spiffe://<domain>/ns/<namespace>/sa/<serviceaccount> or
                -     * <domain>/ns/<namespace>/sa/<serviceaccount>
                -     * e.g. spiffe://example.com/ns/test-ns/sa/default
                +     * `spiffe://<domain>/ns/<namespace>/sa/<serviceaccount>` or
                +     * `<domain>/ns/<namespace>/sa/<serviceaccount>`
                +     * e.g. `spiffe://example.com/ns/test-ns/sa/default`
                      * 
                * * @@ -555,9 +585,9 @@ public interface PolicyOrBuilder *
                      * Optional. Per-istio-service-identity admission rules. Istio service
                      * identity spec format:
                -     * spiffe://<domain>/ns/<namespace>/sa/<serviceaccount> or
                -     * <domain>/ns/<namespace>/sa/<serviceaccount>
                -     * e.g. spiffe://example.com/ns/test-ns/sa/default
                +     * `spiffe://<domain>/ns/<namespace>/sa/<serviceaccount>` or
                +     * `<domain>/ns/<namespace>/sa/<serviceaccount>`
                +     * e.g. `spiffe://example.com/ns/test-ns/sa/default`
                      * 
                * * @@ -575,9 +605,9 @@ public interface PolicyOrBuilder *
                      * Optional. Per-istio-service-identity admission rules. Istio service
                      * identity spec format:
                -     * spiffe://<domain>/ns/<namespace>/sa/<serviceaccount> or
                -     * <domain>/ns/<namespace>/sa/<serviceaccount>
                -     * e.g. spiffe://example.com/ns/test-ns/sa/default
                +     * `spiffe://<domain>/ns/<namespace>/sa/<serviceaccount>` or
                +     * `<domain>/ns/<namespace>/sa/<serviceaccount>`
                +     * e.g. `spiffe://example.com/ns/test-ns/sa/default`
                      * 
                * * @@ -598,9 +628,9 @@ public interface PolicyOrBuilder *
                      * Optional. Per-istio-service-identity admission rules. Istio service
                      * identity spec format:
                -     * spiffe://<domain>/ns/<namespace>/sa/<serviceaccount> or
                -     * <domain>/ns/<namespace>/sa/<serviceaccount>
                -     * e.g. spiffe://example.com/ns/test-ns/sa/default
                +     * `spiffe://<domain>/ns/<namespace>/sa/<serviceaccount>` or
                +     * `<domain>/ns/<namespace>/sa/<serviceaccount>`
                +     * e.g. `spiffe://example.com/ns/test-ns/sa/default`
                      * 
                * * @@ -700,13 +730,44 @@ public interface PolicyOrBuilder * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
                +     * Optional. A checksum, returned by the server, that can be sent on update
                +     * requests to ensure the policy has an up-to-date value before attempting to
                +     * update it. See https://google.aip.dev/154.
                +     * 
                + * + * string etag = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
                +     * Optional. A checksum, returned by the server, that can be sent on update
                +     * requests to ensure the policy has an up-to-date value before attempting to
                +     * update it. See https://google.aip.dev/154.
                +     * 
                + * + * string etag = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); } /** * * *
                -   * A [policy][google.cloud.binaryauthorization.v1.Policy] for container image binary authorization.
                +   * A [policy][google.cloud.binaryauthorization.v1.Policy] for container image
                +   * binary authorization.
                    * 
                * * Protobuf type {@code google.cloud.binaryauthorization.v1.Policy} @@ -737,6 +798,7 @@ private Policy() { description_ = ""; globalPolicyEvaluationMode_ = 0; admissionWhitelistPatterns_ = java.util.Collections.emptyList(); + etag_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -780,7 +842,7 @@ public enum GlobalPolicyEvaluationMode implements com.google.protobuf.ProtocolMe * * *
                -       * Not specified: DISABLE is assumed.
                +       * Not specified: `DISABLE` is assumed.
                        * 
                * * GLOBAL_POLICY_EVALUATION_MODE_UNSPECIFIED = 0; @@ -823,7 +885,7 @@ public enum GlobalPolicyEvaluationMode implements com.google.protobuf.ProtocolMe * * *
                -       * Not specified: DISABLE is assumed.
                +       * Not specified: `DISABLE` is assumed.
                        * 
                * * GLOBAL_POLICY_EVALUATION_MODE_UNSPECIFIED = 0; @@ -1258,7 +1320,12 @@ public int getClusterAdmissionRulesCount() { * * *
                -     * Optional. Per-cluster admission rules. Cluster spec format:
                +     * Optional. A valid policy has only one of the following rule maps non-empty,
                +     * i.e. only one of `cluster_admission_rules`,
                +     * `kubernetes_namespace_admission_rules`,
                +     * `kubernetes_service_account_admission_rules`,
                +     * or `istio_service_identity_admission_rules` can be non-empty.
                +     * Per-cluster admission rules. Cluster spec format:
                      * `location.clusterId`. There can be at most one admission rule per cluster
                      * spec.
                      * A `location` is either a compute zone (e.g. us-central1-a) or a region
                @@ -1293,7 +1360,12 @@ public boolean containsClusterAdmissionRules(java.lang.String key) {
                      *
                      *
                      * 
                -     * Optional. Per-cluster admission rules. Cluster spec format:
                +     * Optional. A valid policy has only one of the following rule maps non-empty,
                +     * i.e. only one of `cluster_admission_rules`,
                +     * `kubernetes_namespace_admission_rules`,
                +     * `kubernetes_service_account_admission_rules`,
                +     * or `istio_service_identity_admission_rules` can be non-empty.
                +     * Per-cluster admission rules. Cluster spec format:
                      * `location.clusterId`. There can be at most one admission rule per cluster
                      * spec.
                      * A `location` is either a compute zone (e.g. us-central1-a) or a region
                @@ -1318,7 +1390,12 @@ public boolean containsClusterAdmissionRules(java.lang.String key) {
                      *
                      *
                      * 
                -     * Optional. Per-cluster admission rules. Cluster spec format:
                +     * Optional. A valid policy has only one of the following rule maps non-empty,
                +     * i.e. only one of `cluster_admission_rules`,
                +     * `kubernetes_namespace_admission_rules`,
                +     * `kubernetes_service_account_admission_rules`,
                +     * or `istio_service_identity_admission_rules` can be non-empty.
                +     * Per-cluster admission rules. Cluster spec format:
                      * `location.clusterId`. There can be at most one admission rule per cluster
                      * spec.
                      * A `location` is either a compute zone (e.g. us-central1-a) or a region
                @@ -1353,7 +1430,12 @@ public boolean containsClusterAdmissionRules(java.lang.String key) {
                      *
                      *
                      * 
                -     * Optional. Per-cluster admission rules. Cluster spec format:
                +     * Optional. A valid policy has only one of the following rule maps non-empty,
                +     * i.e. only one of `cluster_admission_rules`,
                +     * `kubernetes_namespace_admission_rules`,
                +     * `kubernetes_service_account_admission_rules`,
                +     * or `istio_service_identity_admission_rules` can be non-empty.
                +     * Per-cluster admission rules. Cluster spec format:
                      * `location.clusterId`. There can be at most one admission rule per cluster
                      * spec.
                      * A `location` is either a compute zone (e.g. us-central1-a) or a region
                @@ -1427,8 +1509,9 @@ public int getKubernetesNamespaceAdmissionRulesCount() {
                      *
                      *
                      * 
                -     * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
                -     * [a-z.-]+, e.g. 'some-namespace'
                +     * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec
                +     * format:
                +     * `[a-z.-]+`, e.g. `some-namespace`
                      * 
                * * @@ -1457,8 +1540,9 @@ public boolean containsKubernetesNamespaceAdmissionRules(java.lang.String key) { * * *
                -     * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
                -     * [a-z.-]+, e.g. 'some-namespace'
                +     * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec
                +     * format:
                +     * `[a-z.-]+`, e.g. `some-namespace`
                      * 
                * * @@ -1477,8 +1561,9 @@ public boolean containsKubernetesNamespaceAdmissionRules(java.lang.String key) { * * *
                -     * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
                -     * [a-z.-]+, e.g. 'some-namespace'
                +     * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec
                +     * format:
                +     * `[a-z.-]+`, e.g. `some-namespace`
                      * 
                * * @@ -1507,8 +1592,9 @@ public boolean containsKubernetesNamespaceAdmissionRules(java.lang.String key) { * * *
                -     * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
                -     * [a-z.-]+, e.g. 'some-namespace'
                +     * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec
                +     * format:
                +     * `[a-z.-]+`, e.g. `some-namespace`
                      * 
                * * @@ -1577,7 +1663,7 @@ public int getKubernetesServiceAccountAdmissionRulesCount() { * *
                      * Optional. Per-kubernetes-service-account admission rules. Service account
                -     * spec format: `namespace:serviceaccount`. e.g. 'test-ns:default'
                +     * spec format: `namespace:serviceaccount`. e.g. `test-ns:default`
                      * 
                * * @@ -1607,7 +1693,7 @@ public boolean containsKubernetesServiceAccountAdmissionRules(java.lang.String k * *
                      * Optional. Per-kubernetes-service-account admission rules. Service account
                -     * spec format: `namespace:serviceaccount`. e.g. 'test-ns:default'
                +     * spec format: `namespace:serviceaccount`. e.g. `test-ns:default`
                      * 
                * * @@ -1627,7 +1713,7 @@ public boolean containsKubernetesServiceAccountAdmissionRules(java.lang.String k * *
                      * Optional. Per-kubernetes-service-account admission rules. Service account
                -     * spec format: `namespace:serviceaccount`. e.g. 'test-ns:default'
                +     * spec format: `namespace:serviceaccount`. e.g. `test-ns:default`
                      * 
                * * @@ -1657,7 +1743,7 @@ public boolean containsKubernetesServiceAccountAdmissionRules(java.lang.String k * *
                      * Optional. Per-kubernetes-service-account admission rules. Service account
                -     * spec format: `namespace:serviceaccount`. e.g. 'test-ns:default'
                +     * spec format: `namespace:serviceaccount`. e.g. `test-ns:default`
                      * 
                * * @@ -1727,9 +1813,9 @@ public int getIstioServiceIdentityAdmissionRulesCount() { *
                      * Optional. Per-istio-service-identity admission rules. Istio service
                      * identity spec format:
                -     * spiffe://<domain>/ns/<namespace>/sa/<serviceaccount> or
                -     * <domain>/ns/<namespace>/sa/<serviceaccount>
                -     * e.g. spiffe://example.com/ns/test-ns/sa/default
                +     * `spiffe://<domain>/ns/<namespace>/sa/<serviceaccount>` or
                +     * `<domain>/ns/<namespace>/sa/<serviceaccount>`
                +     * e.g. `spiffe://example.com/ns/test-ns/sa/default`
                      * 
                * * @@ -1760,9 +1846,9 @@ public boolean containsIstioServiceIdentityAdmissionRules(java.lang.String key) *
                      * Optional. Per-istio-service-identity admission rules. Istio service
                      * identity spec format:
                -     * spiffe://<domain>/ns/<namespace>/sa/<serviceaccount> or
                -     * <domain>/ns/<namespace>/sa/<serviceaccount>
                -     * e.g. spiffe://example.com/ns/test-ns/sa/default
                +     * `spiffe://<domain>/ns/<namespace>/sa/<serviceaccount>` or
                +     * `<domain>/ns/<namespace>/sa/<serviceaccount>`
                +     * e.g. `spiffe://example.com/ns/test-ns/sa/default`
                      * 
                * * @@ -1783,9 +1869,9 @@ public boolean containsIstioServiceIdentityAdmissionRules(java.lang.String key) *
                      * Optional. Per-istio-service-identity admission rules. Istio service
                      * identity spec format:
                -     * spiffe://<domain>/ns/<namespace>/sa/<serviceaccount> or
                -     * <domain>/ns/<namespace>/sa/<serviceaccount>
                -     * e.g. spiffe://example.com/ns/test-ns/sa/default
                +     * `spiffe://<domain>/ns/<namespace>/sa/<serviceaccount>` or
                +     * `<domain>/ns/<namespace>/sa/<serviceaccount>`
                +     * e.g. `spiffe://example.com/ns/test-ns/sa/default`
                      * 
                * * @@ -1816,9 +1902,9 @@ public boolean containsIstioServiceIdentityAdmissionRules(java.lang.String key) *
                      * Optional. Per-istio-service-identity admission rules. Istio service
                      * identity spec format:
                -     * spiffe://<domain>/ns/<namespace>/sa/<serviceaccount> or
                -     * <domain>/ns/<namespace>/sa/<serviceaccount>
                -     * e.g. spiffe://example.com/ns/test-ns/sa/default
                +     * `spiffe://<domain>/ns/<namespace>/sa/<serviceaccount>` or
                +     * `<domain>/ns/<namespace>/sa/<serviceaccount>`
                +     * e.g. `spiffe://example.com/ns/test-ns/sa/default`
                      * 
                * * @@ -1963,6 +2049,63 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } + public static final int ETAG_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
                +     * Optional. A checksum, returned by the server, that can be sent on update
                +     * requests to ensure the policy has an up-to-date value before attempting to
                +     * update it. See https://google.aip.dev/154.
                +     * 
                + * + * string etag = 11 [(.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. A checksum, returned by the server, that can be sent on update
                +     * requests to ensure the policy has an up-to-date value before attempting to
                +     * update it. See https://google.aip.dev/154.
                +     * 
                + * + * string etag = 11 [(.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; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2018,6 +2161,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io internalGetKubernetesNamespaceAdmissionRules(), KubernetesNamespaceAdmissionRulesDefaultEntryHolder.defaultEntry, 10); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 11, etag_); + } getUnknownFields().writeTo(output); } @@ -2119,6 +2265,9 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 10, kubernetesNamespaceAdmissionRules__); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(11, etag_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2157,6 +2306,7 @@ public boolean equals(final java.lang.Object obj) { 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; } @@ -2202,6 +2352,8 @@ public int hashCode() { 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; @@ -2309,7 +2461,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
                -     * A [policy][google.cloud.binaryauthorization.v1.Policy] for container image binary authorization.
                +     * A [policy][google.cloud.binaryauthorization.v1.Policy] for container image
                +     * binary authorization.
                      * 
                * * Protobuf type {@code google.cloud.binaryauthorization.v1.Policy} @@ -2415,6 +2568,7 @@ public Builder clear() { updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } + etag_ = ""; return this; } @@ -2512,6 +2666,9 @@ private void buildPartial0( updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.etag_ = etag_; + } result.bitField0_ |= to_bitField0_; } @@ -2590,6 +2747,11 @@ public Builder mergeFrom( if (other.hasUpdateTime()) { mergeUpdateTime(other.getUpdateTime()); } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000400; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2740,6 +2902,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000020; break; } // case 82 + case 90: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 90 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3697,7 +3865,12 @@ public int getClusterAdmissionRulesCount() { * * *
                -       * Optional. Per-cluster admission rules. Cluster spec format:
                +       * Optional. A valid policy has only one of the following rule maps non-empty,
                +       * i.e. only one of `cluster_admission_rules`,
                +       * `kubernetes_namespace_admission_rules`,
                +       * `kubernetes_service_account_admission_rules`,
                +       * or `istio_service_identity_admission_rules` can be non-empty.
                +       * Per-cluster admission rules. Cluster spec format:
                        * `location.clusterId`. There can be at most one admission rule per cluster
                        * spec.
                        * A `location` is either a compute zone (e.g. us-central1-a) or a region
                @@ -3732,7 +3905,12 @@ public boolean containsClusterAdmissionRules(java.lang.String key) {
                        *
                        *
                        * 
                -       * Optional. Per-cluster admission rules. Cluster spec format:
                +       * Optional. A valid policy has only one of the following rule maps non-empty,
                +       * i.e. only one of `cluster_admission_rules`,
                +       * `kubernetes_namespace_admission_rules`,
                +       * `kubernetes_service_account_admission_rules`,
                +       * or `istio_service_identity_admission_rules` can be non-empty.
                +       * Per-cluster admission rules. Cluster spec format:
                        * `location.clusterId`. There can be at most one admission rule per cluster
                        * spec.
                        * A `location` is either a compute zone (e.g. us-central1-a) or a region
                @@ -3757,7 +3935,12 @@ public boolean containsClusterAdmissionRules(java.lang.String key) {
                        *
                        *
                        * 
                -       * Optional. Per-cluster admission rules. Cluster spec format:
                +       * Optional. A valid policy has only one of the following rule maps non-empty,
                +       * i.e. only one of `cluster_admission_rules`,
                +       * `kubernetes_namespace_admission_rules`,
                +       * `kubernetes_service_account_admission_rules`,
                +       * or `istio_service_identity_admission_rules` can be non-empty.
                +       * Per-cluster admission rules. Cluster spec format:
                        * `location.clusterId`. There can be at most one admission rule per cluster
                        * spec.
                        * A `location` is either a compute zone (e.g. us-central1-a) or a region
                @@ -3795,7 +3978,12 @@ public boolean containsClusterAdmissionRules(java.lang.String key) {
                        *
                        *
                        * 
                -       * Optional. Per-cluster admission rules. Cluster spec format:
                +       * Optional. A valid policy has only one of the following rule maps non-empty,
                +       * i.e. only one of `cluster_admission_rules`,
                +       * `kubernetes_namespace_admission_rules`,
                +       * `kubernetes_service_account_admission_rules`,
                +       * or `istio_service_identity_admission_rules` can be non-empty.
                +       * Per-cluster admission rules. Cluster spec format:
                        * `location.clusterId`. There can be at most one admission rule per cluster
                        * spec.
                        * A `location` is either a compute zone (e.g. us-central1-a) or a region
                @@ -3835,7 +4023,12 @@ public Builder clearClusterAdmissionRules() {
                        *
                        *
                        * 
                -       * Optional. Per-cluster admission rules. Cluster spec format:
                +       * Optional. A valid policy has only one of the following rule maps non-empty,
                +       * i.e. only one of `cluster_admission_rules`,
                +       * `kubernetes_namespace_admission_rules`,
                +       * `kubernetes_service_account_admission_rules`,
                +       * or `istio_service_identity_admission_rules` can be non-empty.
                +       * Per-cluster admission rules. Cluster spec format:
                        * `location.clusterId`. There can be at most one admission rule per cluster
                        * spec.
                        * A `location` is either a compute zone (e.g. us-central1-a) or a region
                @@ -3870,7 +4063,12 @@ public Builder removeClusterAdmissionRules(java.lang.String key) {
                        *
                        *
                        * 
                -       * Optional. Per-cluster admission rules. Cluster spec format:
                +       * Optional. A valid policy has only one of the following rule maps non-empty,
                +       * i.e. only one of `cluster_admission_rules`,
                +       * `kubernetes_namespace_admission_rules`,
                +       * `kubernetes_service_account_admission_rules`,
                +       * or `istio_service_identity_admission_rules` can be non-empty.
                +       * Per-cluster admission rules. Cluster spec format:
                        * `location.clusterId`. There can be at most one admission rule per cluster
                        * spec.
                        * A `location` is either a compute zone (e.g. us-central1-a) or a region
                @@ -3901,7 +4099,12 @@ public Builder putClusterAdmissionRules(
                        *
                        *
                        * 
                -       * Optional. Per-cluster admission rules. Cluster spec format:
                +       * Optional. A valid policy has only one of the following rule maps non-empty,
                +       * i.e. only one of `cluster_admission_rules`,
                +       * `kubernetes_namespace_admission_rules`,
                +       * `kubernetes_service_account_admission_rules`,
                +       * or `istio_service_identity_admission_rules` can be non-empty.
                +       * Per-cluster admission rules. Cluster spec format:
                        * `location.clusterId`. There can be at most one admission rule per cluster
                        * spec.
                        * A `location` is either a compute zone (e.g. us-central1-a) or a region
                @@ -3936,7 +4139,12 @@ public Builder putAllClusterAdmissionRules(
                        *
                        *
                        * 
                -       * Optional. Per-cluster admission rules. Cluster spec format:
                +       * Optional. A valid policy has only one of the following rule maps non-empty,
                +       * i.e. only one of `cluster_admission_rules`,
                +       * `kubernetes_namespace_admission_rules`,
                +       * `kubernetes_service_account_admission_rules`,
                +       * or `istio_service_identity_admission_rules` can be non-empty.
                +       * Per-cluster admission rules. Cluster spec format:
                        * `location.clusterId`. There can be at most one admission rule per cluster
                        * spec.
                        * A `location` is either a compute zone (e.g. us-central1-a) or a region
                @@ -4060,8 +4268,9 @@ public int getKubernetesNamespaceAdmissionRulesCount() {
                        *
                        *
                        * 
                -       * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
                -       * [a-z.-]+, e.g. 'some-namespace'
                +       * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec
                +       * format:
                +       * `[a-z.-]+`, e.g. `some-namespace`
                        * 
                * * @@ -4090,8 +4299,9 @@ public boolean containsKubernetesNamespaceAdmissionRules(java.lang.String key) { * * *
                -       * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
                -       * [a-z.-]+, e.g. 'some-namespace'
                +       * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec
                +       * format:
                +       * `[a-z.-]+`, e.g. `some-namespace`
                        * 
                * * @@ -4110,8 +4320,9 @@ public boolean containsKubernetesNamespaceAdmissionRules(java.lang.String key) { * * *
                -       * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
                -       * [a-z.-]+, e.g. 'some-namespace'
                +       * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec
                +       * format:
                +       * `[a-z.-]+`, e.g. `some-namespace`
                        * 
                * * @@ -4143,8 +4354,9 @@ public boolean containsKubernetesNamespaceAdmissionRules(java.lang.String key) { * * *
                -       * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
                -       * [a-z.-]+, e.g. 'some-namespace'
                +       * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec
                +       * format:
                +       * `[a-z.-]+`, e.g. `some-namespace`
                        * 
                * * @@ -4178,8 +4390,9 @@ public Builder clearKubernetesNamespaceAdmissionRules() { * * *
                -       * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
                -       * [a-z.-]+, e.g. 'some-namespace'
                +       * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec
                +       * format:
                +       * `[a-z.-]+`, e.g. `some-namespace`
                        * 
                * * @@ -4208,8 +4421,9 @@ public Builder removeKubernetesNamespaceAdmissionRules(java.lang.String key) { * * *
                -       * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
                -       * [a-z.-]+, e.g. 'some-namespace'
                +       * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec
                +       * format:
                +       * `[a-z.-]+`, e.g. `some-namespace`
                        * 
                * * @@ -4234,8 +4448,9 @@ public Builder putKubernetesNamespaceAdmissionRules( * * *
                -       * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
                -       * [a-z.-]+, e.g. 'some-namespace'
                +       * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec
                +       * format:
                +       * `[a-z.-]+`, e.g. `some-namespace`
                        * 
                * * @@ -4264,8 +4479,9 @@ public Builder putAllKubernetesNamespaceAdmissionRules( * * *
                -       * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
                -       * [a-z.-]+, e.g. 'some-namespace'
                +       * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec
                +       * format:
                +       * `[a-z.-]+`, e.g. `some-namespace`
                        * 
                * * @@ -4385,7 +4601,7 @@ public int getKubernetesServiceAccountAdmissionRulesCount() { * *
                        * Optional. Per-kubernetes-service-account admission rules. Service account
                -       * spec format: `namespace:serviceaccount`. e.g. 'test-ns:default'
                +       * spec format: `namespace:serviceaccount`. e.g. `test-ns:default`
                        * 
                * * @@ -4417,7 +4633,7 @@ public boolean containsKubernetesServiceAccountAdmissionRules(java.lang.String k * *
                        * Optional. Per-kubernetes-service-account admission rules. Service account
                -       * spec format: `namespace:serviceaccount`. e.g. 'test-ns:default'
                +       * spec format: `namespace:serviceaccount`. e.g. `test-ns:default`
                        * 
                * * @@ -4437,7 +4653,7 @@ public boolean containsKubernetesServiceAccountAdmissionRules(java.lang.String k * *
                        * Optional. Per-kubernetes-service-account admission rules. Service account
                -       * spec format: `namespace:serviceaccount`. e.g. 'test-ns:default'
                +       * spec format: `namespace:serviceaccount`. e.g. `test-ns:default`
                        * 
                * * @@ -4470,7 +4686,7 @@ public boolean containsKubernetesServiceAccountAdmissionRules(java.lang.String k * *
                        * Optional. Per-kubernetes-service-account admission rules. Service account
                -       * spec format: `namespace:serviceaccount`. e.g. 'test-ns:default'
                +       * spec format: `namespace:serviceaccount`. e.g. `test-ns:default`
                        * 
                * * @@ -4505,7 +4721,7 @@ public Builder clearKubernetesServiceAccountAdmissionRules() { * *
                        * Optional. Per-kubernetes-service-account admission rules. Service account
                -       * spec format: `namespace:serviceaccount`. e.g. 'test-ns:default'
                +       * spec format: `namespace:serviceaccount`. e.g. `test-ns:default`
                        * 
                * * @@ -4535,7 +4751,7 @@ public Builder removeKubernetesServiceAccountAdmissionRules(java.lang.String key * *
                        * Optional. Per-kubernetes-service-account admission rules. Service account
                -       * spec format: `namespace:serviceaccount`. e.g. 'test-ns:default'
                +       * spec format: `namespace:serviceaccount`. e.g. `test-ns:default`
                        * 
                * * @@ -4563,7 +4779,7 @@ public Builder putKubernetesServiceAccountAdmissionRules( * *
                        * Optional. Per-kubernetes-service-account admission rules. Service account
                -       * spec format: `namespace:serviceaccount`. e.g. 'test-ns:default'
                +       * spec format: `namespace:serviceaccount`. e.g. `test-ns:default`
                        * 
                * * @@ -4595,7 +4811,7 @@ public Builder putAllKubernetesServiceAccountAdmissionRules( * *
                        * Optional. Per-kubernetes-service-account admission rules. Service account
                -       * spec format: `namespace:serviceaccount`. e.g. 'test-ns:default'
                +       * spec format: `namespace:serviceaccount`. e.g. `test-ns:default`
                        * 
                * * @@ -4717,9 +4933,9 @@ public int getIstioServiceIdentityAdmissionRulesCount() { *
                        * Optional. Per-istio-service-identity admission rules. Istio service
                        * identity spec format:
                -       * spiffe://<domain>/ns/<namespace>/sa/<serviceaccount> or
                -       * <domain>/ns/<namespace>/sa/<serviceaccount>
                -       * e.g. spiffe://example.com/ns/test-ns/sa/default
                +       * `spiffe://<domain>/ns/<namespace>/sa/<serviceaccount>` or
                +       * `<domain>/ns/<namespace>/sa/<serviceaccount>`
                +       * e.g. `spiffe://example.com/ns/test-ns/sa/default`
                        * 
                * * @@ -4750,9 +4966,9 @@ public boolean containsIstioServiceIdentityAdmissionRules(java.lang.String key) *
                        * Optional. Per-istio-service-identity admission rules. Istio service
                        * identity spec format:
                -       * spiffe://<domain>/ns/<namespace>/sa/<serviceaccount> or
                -       * <domain>/ns/<namespace>/sa/<serviceaccount>
                -       * e.g. spiffe://example.com/ns/test-ns/sa/default
                +       * `spiffe://<domain>/ns/<namespace>/sa/<serviceaccount>` or
                +       * `<domain>/ns/<namespace>/sa/<serviceaccount>`
                +       * e.g. `spiffe://example.com/ns/test-ns/sa/default`
                        * 
                * * @@ -4773,9 +4989,9 @@ public boolean containsIstioServiceIdentityAdmissionRules(java.lang.String key) *
                        * Optional. Per-istio-service-identity admission rules. Istio service
                        * identity spec format:
                -       * spiffe://<domain>/ns/<namespace>/sa/<serviceaccount> or
                -       * <domain>/ns/<namespace>/sa/<serviceaccount>
                -       * e.g. spiffe://example.com/ns/test-ns/sa/default
                +       * `spiffe://<domain>/ns/<namespace>/sa/<serviceaccount>` or
                +       * `<domain>/ns/<namespace>/sa/<serviceaccount>`
                +       * e.g. `spiffe://example.com/ns/test-ns/sa/default`
                        * 
                * * @@ -4809,9 +5025,9 @@ public boolean containsIstioServiceIdentityAdmissionRules(java.lang.String key) *
                        * Optional. Per-istio-service-identity admission rules. Istio service
                        * identity spec format:
                -       * spiffe://<domain>/ns/<namespace>/sa/<serviceaccount> or
                -       * <domain>/ns/<namespace>/sa/<serviceaccount>
                -       * e.g. spiffe://example.com/ns/test-ns/sa/default
                +       * `spiffe://<domain>/ns/<namespace>/sa/<serviceaccount>` or
                +       * `<domain>/ns/<namespace>/sa/<serviceaccount>`
                +       * e.g. `spiffe://example.com/ns/test-ns/sa/default`
                        * 
                * * @@ -4847,9 +5063,9 @@ public Builder clearIstioServiceIdentityAdmissionRules() { *
                        * Optional. Per-istio-service-identity admission rules. Istio service
                        * identity spec format:
                -       * spiffe://<domain>/ns/<namespace>/sa/<serviceaccount> or
                -       * <domain>/ns/<namespace>/sa/<serviceaccount>
                -       * e.g. spiffe://example.com/ns/test-ns/sa/default
                +       * `spiffe://<domain>/ns/<namespace>/sa/<serviceaccount>` or
                +       * `<domain>/ns/<namespace>/sa/<serviceaccount>`
                +       * e.g. `spiffe://example.com/ns/test-ns/sa/default`
                        * 
                * * @@ -4880,9 +5096,9 @@ public Builder removeIstioServiceIdentityAdmissionRules(java.lang.String key) { *
                        * Optional. Per-istio-service-identity admission rules. Istio service
                        * identity spec format:
                -       * spiffe://<domain>/ns/<namespace>/sa/<serviceaccount> or
                -       * <domain>/ns/<namespace>/sa/<serviceaccount>
                -       * e.g. spiffe://example.com/ns/test-ns/sa/default
                +       * `spiffe://<domain>/ns/<namespace>/sa/<serviceaccount>` or
                +       * `<domain>/ns/<namespace>/sa/<serviceaccount>`
                +       * e.g. `spiffe://example.com/ns/test-ns/sa/default`
                        * 
                * * @@ -4909,9 +5125,9 @@ public Builder putIstioServiceIdentityAdmissionRules( *
                        * Optional. Per-istio-service-identity admission rules. Istio service
                        * identity spec format:
                -       * spiffe://<domain>/ns/<namespace>/sa/<serviceaccount> or
                -       * <domain>/ns/<namespace>/sa/<serviceaccount>
                -       * e.g. spiffe://example.com/ns/test-ns/sa/default
                +       * `spiffe://<domain>/ns/<namespace>/sa/<serviceaccount>` or
                +       * `<domain>/ns/<namespace>/sa/<serviceaccount>`
                +       * e.g. `spiffe://example.com/ns/test-ns/sa/default`
                        * 
                * * @@ -4942,9 +5158,9 @@ public Builder putAllIstioServiceIdentityAdmissionRules( *
                        * Optional. Per-istio-service-identity admission rules. Istio service
                        * identity spec format:
                -       * spiffe://<domain>/ns/<namespace>/sa/<serviceaccount> or
                -       * <domain>/ns/<namespace>/sa/<serviceaccount>
                -       * e.g. spiffe://example.com/ns/test-ns/sa/default
                +       * `spiffe://<domain>/ns/<namespace>/sa/<serviceaccount>` or
                +       * `<domain>/ns/<namespace>/sa/<serviceaccount>`
                +       * e.g. `spiffe://example.com/ns/test-ns/sa/default`
                        * 
                * * @@ -5429,6 +5645,127 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { return updateTimeBuilder_; } + private java.lang.Object etag_ = ""; + + /** + * + * + *
                +       * Optional. A checksum, returned by the server, that can be sent on update
                +       * requests to ensure the policy has an up-to-date value before attempting to
                +       * update it. See https://google.aip.dev/154.
                +       * 
                + * + * string etag = 11 [(.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. A checksum, returned by the server, that can be sent on update
                +       * requests to ensure the policy has an up-to-date value before attempting to
                +       * update it. See https://google.aip.dev/154.
                +       * 
                + * + * string etag = 11 [(.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. A checksum, returned by the server, that can be sent on update
                +       * requests to ensure the policy has an up-to-date value before attempting to
                +       * update it. See https://google.aip.dev/154.
                +       * 
                + * + * string etag = 11 [(.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_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
                +       * Optional. A checksum, returned by the server, that can be sent on update
                +       * requests to ensure the policy has an up-to-date value before attempting to
                +       * update it. See https://google.aip.dev/154.
                +       * 
                + * + * string etag = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + + /** + * + * + *
                +       * Optional. A checksum, returned by the server, that can be sent on update
                +       * requests to ensure the policy has an up-to-date value before attempting to
                +       * update it. See https://google.aip.dev/154.
                +       * 
                + * + * string etag = 11 [(.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_ |= 0x00000400; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1.Policy) } @@ -5527,8 +5864,10 @@ public interface AdmissionWhitelistPatternOrBuilder * * *
                -   * An [admission allowlist pattern][google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern] exempts images
                -   * from checks by [admission rules][google.cloud.binaryauthorization.v1.AdmissionRule].
                +   * An [admission allowlist
                +   * pattern][google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern]
                +   * exempts images from checks by [admission
                +   * rules][google.cloud.binaryauthorization.v1.AdmissionRule].
                    * 
                * * Protobuf type {@code google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern} @@ -5824,8 +6163,10 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
                -     * An [admission allowlist pattern][google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern] exempts images
                -     * from checks by [admission rules][google.cloud.binaryauthorization.v1.AdmissionRule].
                +     * An [admission allowlist
                +     * pattern][google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern]
                +     * exempts images from checks by [admission
                +     * rules][google.cloud.binaryauthorization.v1.AdmissionRule].
                      * 
                * * Protobuf type {@code google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern} @@ -6227,8 +6568,8 @@ public interface AdmissionRuleOrBuilder * to a policy the principal issuing the policy change request must be able * to read the attestor resource. * - * Note: this field must be non-empty when the evaluation_mode field specifies - * REQUIRE_ATTESTATION, otherwise it must be empty. + * Note: this field must be non-empty when the `evaluation_mode` field + * specifies `REQUIRE_ATTESTATION`, otherwise it must be empty. *
                * * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -6248,8 +6589,8 @@ public interface AdmissionRuleOrBuilder * to a policy the principal issuing the policy change request must be able * to read the attestor resource. * - * Note: this field must be non-empty when the evaluation_mode field specifies - * REQUIRE_ATTESTATION, otherwise it must be empty. + * Note: this field must be non-empty when the `evaluation_mode` field + * specifies `REQUIRE_ATTESTATION`, otherwise it must be empty. *
                * * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -6269,8 +6610,8 @@ public interface AdmissionRuleOrBuilder * to a policy the principal issuing the policy change request must be able * to read the attestor resource. * - * Note: this field must be non-empty when the evaluation_mode field specifies - * REQUIRE_ATTESTATION, otherwise it must be empty. + * Note: this field must be non-empty when the `evaluation_mode` field + * specifies `REQUIRE_ATTESTATION`, otherwise it must be empty. *
                * * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -6291,8 +6632,8 @@ public interface AdmissionRuleOrBuilder * to a policy the principal issuing the policy change request must be able * to read the attestor resource. * - * Note: this field must be non-empty when the evaluation_mode field specifies - * REQUIRE_ATTESTATION, otherwise it must be empty. + * Note: this field must be non-empty when the `evaluation_mode` field + * specifies `REQUIRE_ATTESTATION`, otherwise it must be empty. *
                * * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -6339,13 +6680,15 @@ public interface AdmissionRuleOrBuilder * * *
                -   * An [admission rule][google.cloud.binaryauthorization.v1.AdmissionRule] specifies either that all container images
                -   * used in a pod creation request must be attested to by one or more
                -   * [attestors][google.cloud.binaryauthorization.v1.Attestor], that all pod creations will be allowed, or that all
                -   * pod creations will be denied.
                +   * An [admission rule][google.cloud.binaryauthorization.v1.AdmissionRule]
                +   * specifies either that all container images used in a pod creation request
                +   * must be attested to by one or more
                +   * [attestors][google.cloud.binaryauthorization.v1.Attestor], that all pod
                +   * creations will be allowed, or that all pod creations will be denied.
                    *
                -   * Images matching an [admission allowlist pattern][google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern]
                -   * are exempted from admission rules and will never block a pod creation.
                +   * Images matching an [admission allowlist
                +   * pattern][google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern] are
                +   * exempted from admission rules and will never block a pod creation.
                    * 
                * * Protobuf type {@code google.cloud.binaryauthorization.v1.AdmissionRule} @@ -6409,7 +6752,7 @@ public enum EvaluationMode implements com.google.protobuf.ProtocolMessageEnum { * * *
                -       * This rule allows all all pod creations.
                +       * This rule allows all pod creations.
                        * 
                * * ALWAYS_ALLOW = 1; @@ -6420,7 +6763,7 @@ public enum EvaluationMode implements com.google.protobuf.ProtocolMessageEnum { * *
                        * This rule allows a pod creation if all the attestors listed in
                -       * 'require_attestations_by' have valid attestations for all of the
                +       * `require_attestations_by` have valid attestations for all of the
                        * images in the pod spec.
                        * 
                * @@ -6465,7 +6808,7 @@ public enum EvaluationMode implements com.google.protobuf.ProtocolMessageEnum { * * *
                -       * This rule allows all all pod creations.
                +       * This rule allows all pod creations.
                        * 
                * * ALWAYS_ALLOW = 1; @@ -6477,7 +6820,7 @@ public enum EvaluationMode implements com.google.protobuf.ProtocolMessageEnum { * *
                        * This rule allows a pod creation if all the attestors listed in
                -       * 'require_attestations_by' have valid attestations for all of the
                +       * `require_attestations_by` have valid attestations for all of the
                        * images in the pod spec.
                        * 
                * @@ -6828,8 +7171,8 @@ public int getEvaluationModeValue() { * to a policy the principal issuing the policy change request must be able * to read the attestor resource. * - * Note: this field must be non-empty when the evaluation_mode field specifies - * REQUIRE_ATTESTATION, otherwise it must be empty. + * Note: this field must be non-empty when the `evaluation_mode` field + * specifies `REQUIRE_ATTESTATION`, otherwise it must be empty. *
                * * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -6851,8 +7194,8 @@ public com.google.protobuf.ProtocolStringList getRequireAttestationsByList() { * to a policy the principal issuing the policy change request must be able * to read the attestor resource. * - * Note: this field must be non-empty when the evaluation_mode field specifies - * REQUIRE_ATTESTATION, otherwise it must be empty. + * Note: this field must be non-empty when the `evaluation_mode` field + * specifies `REQUIRE_ATTESTATION`, otherwise it must be empty. *
                * * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -6874,8 +7217,8 @@ public int getRequireAttestationsByCount() { * to a policy the principal issuing the policy change request must be able * to read the attestor resource. * - * Note: this field must be non-empty when the evaluation_mode field specifies - * REQUIRE_ATTESTATION, otherwise it must be empty. + * Note: this field must be non-empty when the `evaluation_mode` field + * specifies `REQUIRE_ATTESTATION`, otherwise it must be empty. *
                * * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -6898,8 +7241,8 @@ public java.lang.String getRequireAttestationsBy(int index) { * to a policy the principal issuing the policy change request must be able * to read the attestor resource. * - * Note: this field must be non-empty when the evaluation_mode field specifies - * REQUIRE_ATTESTATION, otherwise it must be empty. + * Note: this field must be non-empty when the `evaluation_mode` field + * specifies `REQUIRE_ATTESTATION`, otherwise it must be empty. *
                * * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -7172,13 +7515,15 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
                -     * An [admission rule][google.cloud.binaryauthorization.v1.AdmissionRule] specifies either that all container images
                -     * used in a pod creation request must be attested to by one or more
                -     * [attestors][google.cloud.binaryauthorization.v1.Attestor], that all pod creations will be allowed, or that all
                -     * pod creations will be denied.
                +     * An [admission rule][google.cloud.binaryauthorization.v1.AdmissionRule]
                +     * specifies either that all container images used in a pod creation request
                +     * must be attested to by one or more
                +     * [attestors][google.cloud.binaryauthorization.v1.Attestor], that all pod
                +     * creations will be allowed, or that all pod creations will be denied.
                      *
                -     * Images matching an [admission allowlist pattern][google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern]
                -     * are exempted from admission rules and will never block a pod creation.
                +     * Images matching an [admission allowlist
                +     * pattern][google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern] are
                +     * exempted from admission rules and will never block a pod creation.
                      * 
                * * Protobuf type {@code google.cloud.binaryauthorization.v1.AdmissionRule} @@ -7506,8 +7851,8 @@ private void ensureRequireAttestationsByIsMutable() { * to a policy the principal issuing the policy change request must be able * to read the attestor resource. * - * Note: this field must be non-empty when the evaluation_mode field specifies - * REQUIRE_ATTESTATION, otherwise it must be empty. + * Note: this field must be non-empty when the `evaluation_mode` field + * specifies `REQUIRE_ATTESTATION`, otherwise it must be empty. *
                * * @@ -7531,8 +7876,8 @@ public com.google.protobuf.ProtocolStringList getRequireAttestationsByList() { * to a policy the principal issuing the policy change request must be able * to read the attestor resource. * - * Note: this field must be non-empty when the evaluation_mode field specifies - * REQUIRE_ATTESTATION, otherwise it must be empty. + * Note: this field must be non-empty when the `evaluation_mode` field + * specifies `REQUIRE_ATTESTATION`, otherwise it must be empty. *
                * * @@ -7555,8 +7900,8 @@ public int getRequireAttestationsByCount() { * to a policy the principal issuing the policy change request must be able * to read the attestor resource. * - * Note: this field must be non-empty when the evaluation_mode field specifies - * REQUIRE_ATTESTATION, otherwise it must be empty. + * Note: this field must be non-empty when the `evaluation_mode` field + * specifies `REQUIRE_ATTESTATION`, otherwise it must be empty. *
                * * @@ -7580,8 +7925,8 @@ public java.lang.String getRequireAttestationsBy(int index) { * to a policy the principal issuing the policy change request must be able * to read the attestor resource. * - * Note: this field must be non-empty when the evaluation_mode field specifies - * REQUIRE_ATTESTATION, otherwise it must be empty. + * Note: this field must be non-empty when the `evaluation_mode` field + * specifies `REQUIRE_ATTESTATION`, otherwise it must be empty. *
                * * @@ -7605,8 +7950,8 @@ public com.google.protobuf.ByteString getRequireAttestationsByBytes(int index) { * to a policy the principal issuing the policy change request must be able * to read the attestor resource. * - * Note: this field must be non-empty when the evaluation_mode field specifies - * REQUIRE_ATTESTATION, otherwise it must be empty. + * Note: this field must be non-empty when the `evaluation_mode` field + * specifies `REQUIRE_ATTESTATION`, otherwise it must be empty. *
                * * @@ -7638,8 +7983,8 @@ public Builder setRequireAttestationsBy(int index, java.lang.String value) { * to a policy the principal issuing the policy change request must be able * to read the attestor resource. * - * Note: this field must be non-empty when the evaluation_mode field specifies - * REQUIRE_ATTESTATION, otherwise it must be empty. + * Note: this field must be non-empty when the `evaluation_mode` field + * specifies `REQUIRE_ATTESTATION`, otherwise it must be empty. *
                * * @@ -7670,8 +8015,8 @@ public Builder addRequireAttestationsBy(java.lang.String value) { * to a policy the principal issuing the policy change request must be able * to read the attestor resource. * - * Note: this field must be non-empty when the evaluation_mode field specifies - * REQUIRE_ATTESTATION, otherwise it must be empty. + * Note: this field must be non-empty when the `evaluation_mode` field + * specifies `REQUIRE_ATTESTATION`, otherwise it must be empty. *
                * * @@ -7699,8 +8044,8 @@ public Builder addAllRequireAttestationsBy(java.lang.Iterable * to a policy the principal issuing the policy change request must be able * to read the attestor resource. * - * Note: this field must be non-empty when the evaluation_mode field specifies - * REQUIRE_ATTESTATION, otherwise it must be empty. + * Note: this field must be non-empty when the `evaluation_mode` field + * specifies `REQUIRE_ATTESTATION`, otherwise it must be empty. *
                * * @@ -7727,8 +8072,8 @@ public Builder clearRequireAttestationsBy() { * to a policy the principal issuing the policy change request must be able * to read the attestor resource. * - * Note: this field must be non-empty when the evaluation_mode field specifies - * REQUIRE_ATTESTATION, otherwise it must be empty. + * Note: this field must be non-empty when the `evaluation_mode` field + * specifies `REQUIRE_ATTESTATION`, otherwise it must be empty. *
                * * @@ -8072,6 +8417,36 @@ public interface AttestorOrBuilder */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + /** + * + * + *
                +     * Optional. A checksum, returned by the server, that can be sent on update
                +     * requests to ensure the attestor has an up-to-date value before attempting
                +     * to update it. See https://google.aip.dev/154.
                +     * 
                + * + * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
                +     * Optional. A checksum, returned by the server, that can be sent on update
                +     * requests to ensure the attestor has an up-to-date value before attempting
                +     * to update it. See https://google.aip.dev/154.
                +     * 
                + * + * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.AttestorTypeCase getAttestorTypeCase(); } @@ -8080,9 +8455,9 @@ public interface AttestorOrBuilder * * *
                -   * An [attestor][google.cloud.binaryauthorization.v1.Attestor] that attests to container image
                -   * artifacts. An existing attestor cannot be modified except where
                -   * indicated.
                +   * An [attestor][google.cloud.binaryauthorization.v1.Attestor] that attests to
                +   * container image artifacts. An existing attestor cannot be modified except
                +   * where indicated.
                    * 
                * * Protobuf type {@code google.cloud.binaryauthorization.v1.Attestor} @@ -8111,6 +8486,7 @@ private Attestor(com.google.protobuf.GeneratedMessage.Builder builder) { private Attestor() { name_ = ""; description_ = ""; + etag_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -8411,6 +8787,63 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } + public static final int ETAG_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
                +     * Optional. A checksum, returned by the server, that can be sent on update
                +     * requests to ensure the attestor has an up-to-date value before attempting
                +     * to update it. See https://google.aip.dev/154.
                +     * 
                + * + * string etag = 7 [(.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. A checksum, returned by the server, that can be sent on update
                +     * requests to ensure the attestor has an up-to-date value before attempting
                +     * to update it. See https://google.aip.dev/154.
                +     * 
                + * + * string etag = 7 [(.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; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -8440,6 +8873,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessage.writeString(output, 6, description_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, etag_); + } getUnknownFields().writeTo(output); } @@ -8466,6 +8902,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(6, description_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, etag_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -8489,6 +8928,7 @@ public boolean equals(final java.lang.Object obj) { if (hasUpdateTime()) { if (!getUpdateTime().equals(other.getUpdateTime())) return false; } + if (!getEtag().equals(other.getEtag())) return false; if (!getAttestorTypeCase().equals(other.getAttestorTypeCase())) return false; switch (attestorTypeCase_) { case 3: @@ -8516,6 +8956,8 @@ public int hashCode() { hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getUpdateTime().hashCode(); } + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); switch (attestorTypeCase_) { case 3: hash = (37 * hash) + USER_OWNED_GRAFEAS_NOTE_FIELD_NUMBER; @@ -8636,9 +9078,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
                -     * An [attestor][google.cloud.binaryauthorization.v1.Attestor] that attests to container image
                -     * artifacts. An existing attestor cannot be modified except where
                -     * indicated.
                +     * An [attestor][google.cloud.binaryauthorization.v1.Attestor] that attests to
                +     * container image artifacts. An existing attestor cannot be modified except
                +     * where indicated.
                      * 
                * * Protobuf type {@code google.cloud.binaryauthorization.v1.Attestor} @@ -8694,6 +9136,7 @@ public Builder clear() { updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } + etag_ = ""; attestorTypeCase_ = 0; attestorType_ = null; return this; @@ -8750,6 +9193,9 @@ private void buildPartial0( updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.etag_ = etag_; + } result.bitField0_ |= to_bitField0_; } @@ -8792,6 +9238,11 @@ public Builder mergeFrom( if (other.hasUpdateTime()) { mergeUpdateTime(other.getUpdateTime()); } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000010; + onChanged(); + } switch (other.getAttestorTypeCase()) { case USER_OWNED_GRAFEAS_NOTE: { @@ -8856,6 +9307,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 50 + case 58: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -9612,22 +10069,143 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { return updateTimeBuilder_; } - // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1.Attestor) - } + private java.lang.Object etag_ = ""; - // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1.Attestor) - private static final com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor - DEFAULT_INSTANCE; + /** + * + * + *
                +       * Optional. A checksum, returned by the server, that can be sent on update
                +       * requests to ensure the attestor has an up-to-date value before attempting
                +       * to update it. See https://google.aip.dev/154.
                +       * 
                + * + * string etag = 7 [(.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; + } + } - static { - DEFAULT_INSTANCE = - new com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor(); - } + /** + * + * + *
                +       * Optional. A checksum, returned by the server, that can be sent on update
                +       * requests to ensure the attestor has an up-to-date value before attempting
                +       * to update it. See https://google.aip.dev/154.
                +       * 
                + * + * string etag = 7 [(.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; + } + } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor - getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * + * + *
                +       * Optional. A checksum, returned by the server, that can be sent on update
                +       * requests to ensure the attestor has an up-to-date value before attempting
                +       * to update it. See https://google.aip.dev/154.
                +       * 
                + * + * string etag = 7 [(.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_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                +       * Optional. A checksum, returned by the server, that can be sent on update
                +       * requests to ensure the attestor has an up-to-date value before attempting
                +       * to update it. See https://google.aip.dev/154.
                +       * 
                + * + * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
                +       * Optional. A checksum, returned by the server, that can be sent on update
                +       * requests to ensure the attestor has an up-to-date value before attempting
                +       * to update it. See https://google.aip.dev/154.
                +       * 
                + * + * string etag = 7 [(.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_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1.Attestor) + } + + // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1.Attestor) + private static final com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor(); + } + + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor + getDefaultInstance() { + return DEFAULT_INSTANCE; + } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @@ -9678,8 +10256,8 @@ public interface UserOwnedGrafeasNoteOrBuilder * *
                      * Required. The Grafeas resource name of a Attestation.Authority Note,
                -     * created by the user, in the format: `projects/*/notes/*`. This field may
                -     * not be updated.
                +     * created by the user, in the format: `projects/[PROJECT_ID]/notes/*`. This
                +     * field may not be updated. A project ID must be used, not a project number.
                      *
                      * An attestation by this attestor is stored as a Grafeas
                      * Attestation.Authority Occurrence that names a container image and that
                @@ -9697,8 +10275,8 @@ public interface UserOwnedGrafeasNoteOrBuilder
                      *
                      * 
                      * Required. The Grafeas resource name of a Attestation.Authority Note,
                -     * created by the user, in the format: `projects/*/notes/*`. This field may
                -     * not be updated.
                +     * created by the user, in the format: `projects/[PROJECT_ID]/notes/*`. This
                +     * field may not be updated. A project ID must be used, not a project number.
                      *
                      * An attestation by this attestor is stored as a Grafeas
                      * Attestation.Authority Occurrence that names a container image and that
                @@ -9829,12 +10407,13 @@ com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKe
                      *
                      * 
                      * Output only. This field will contain the service account email address
                -     * that this Attestor will use as the principal when querying Container
                +     * that this attestor will use as the principal when querying Container
                      * Analysis. Attestor administrators must grant this service account the
                -     * IAM role needed to read attestations from the [note_reference][Note] in
                -     * Container Analysis (`containeranalysis.notes.occurrences.viewer`).
                +     * IAM role needed to read attestations from the
                +     * [note_reference][google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote.note_reference]
                +     * in Container Analysis (`containeranalysis.notes.occurrences.viewer`).
                      *
                -     * This email address is fixed for the lifetime of the Attestor, but callers
                +     * This email address is fixed for the lifetime of the attestor, but callers
                      * should not make any other assumptions about the service account email;
                      * future versions may use an email based on a different naming pattern.
                      * 
                @@ -9852,12 +10431,13 @@ com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKe * *
                      * Output only. This field will contain the service account email address
                -     * that this Attestor will use as the principal when querying Container
                +     * that this attestor will use as the principal when querying Container
                      * Analysis. Attestor administrators must grant this service account the
                -     * IAM role needed to read attestations from the [note_reference][Note] in
                -     * Container Analysis (`containeranalysis.notes.occurrences.viewer`).
                +     * IAM role needed to read attestations from the
                +     * [note_reference][google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote.note_reference]
                +     * in Container Analysis (`containeranalysis.notes.occurrences.viewer`).
                      *
                -     * This email address is fixed for the lifetime of the Attestor, but callers
                +     * This email address is fixed for the lifetime of the attestor, but callers
                      * should not make any other assumptions about the service account email;
                      * future versions may use an email based on a different naming pattern.
                      * 
                @@ -9875,8 +10455,9 @@ com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKe * * *
                -   * An [user owned Grafeas note][google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote] references a Grafeas
                -   * Attestation.Authority Note created by the user.
                +   * An [user owned Grafeas
                +   * note][google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote] references a
                +   * Grafeas Attestation.Authority Note created by the user.
                    * 
                * * Protobuf type {@code google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote} @@ -9935,8 +10516,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
                      * Required. The Grafeas resource name of a Attestation.Authority Note,
                -     * created by the user, in the format: `projects/*/notes/*`. This field may
                -     * not be updated.
                +     * created by the user, in the format: `projects/[PROJECT_ID]/notes/*`. This
                +     * field may not be updated. A project ID must be used, not a project number.
                      *
                      * An attestation by this attestor is stored as a Grafeas
                      * Attestation.Authority Occurrence that names a container image and that
                @@ -9965,8 +10546,8 @@ public java.lang.String getNoteReference() {
                      *
                      * 
                      * Required. The Grafeas resource name of a Attestation.Authority Note,
                -     * created by the user, in the format: `projects/*/notes/*`. This field may
                -     * not be updated.
                +     * created by the user, in the format: `projects/[PROJECT_ID]/notes/*`. This
                +     * field may not be updated. A project ID must be used, not a project number.
                      *
                      * An attestation by this attestor is stored as a Grafeas
                      * Attestation.Authority Occurrence that names a container image and that
                @@ -10136,12 +10717,13 @@ public int getPublicKeysCount() {
                      *
                      * 
                      * Output only. This field will contain the service account email address
                -     * that this Attestor will use as the principal when querying Container
                +     * that this attestor will use as the principal when querying Container
                      * Analysis. Attestor administrators must grant this service account the
                -     * IAM role needed to read attestations from the [note_reference][Note] in
                -     * Container Analysis (`containeranalysis.notes.occurrences.viewer`).
                +     * IAM role needed to read attestations from the
                +     * [note_reference][google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote.note_reference]
                +     * in Container Analysis (`containeranalysis.notes.occurrences.viewer`).
                      *
                -     * This email address is fixed for the lifetime of the Attestor, but callers
                +     * This email address is fixed for the lifetime of the attestor, but callers
                      * should not make any other assumptions about the service account email;
                      * future versions may use an email based on a different naming pattern.
                      * 
                @@ -10170,12 +10752,13 @@ public java.lang.String getDelegationServiceAccountEmail() { * *
                      * Output only. This field will contain the service account email address
                -     * that this Attestor will use as the principal when querying Container
                +     * that this attestor will use as the principal when querying Container
                      * Analysis. Attestor administrators must grant this service account the
                -     * IAM role needed to read attestations from the [note_reference][Note] in
                -     * Container Analysis (`containeranalysis.notes.occurrences.viewer`).
                +     * IAM role needed to read attestations from the
                +     * [note_reference][google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote.note_reference]
                +     * in Container Analysis (`containeranalysis.notes.occurrences.viewer`).
                      *
                -     * This email address is fixed for the lifetime of the Attestor, but callers
                +     * This email address is fixed for the lifetime of the attestor, but callers
                      * should not make any other assumptions about the service account email;
                      * future versions may use an email based on a different naming pattern.
                      * 
                @@ -10409,8 +10992,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
                -     * An [user owned Grafeas note][google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote] references a Grafeas
                -     * Attestation.Authority Note created by the user.
                +     * An [user owned Grafeas
                +     * note][google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote] references a
                +     * Grafeas Attestation.Authority Note created by the user.
                      * 
                * * Protobuf type {@code google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote} @@ -10663,8 +11247,8 @@ public Builder mergeFrom( * *
                        * Required. The Grafeas resource name of a Attestation.Authority Note,
                -       * created by the user, in the format: `projects/*/notes/*`. This field may
                -       * not be updated.
                +       * created by the user, in the format: `projects/[PROJECT_ID]/notes/*`. This
                +       * field may not be updated. A project ID must be used, not a project number.
                        *
                        * An attestation by this attestor is stored as a Grafeas
                        * Attestation.Authority Occurrence that names a container image and that
                @@ -10692,8 +11276,8 @@ public java.lang.String getNoteReference() {
                        *
                        * 
                        * Required. The Grafeas resource name of a Attestation.Authority Note,
                -       * created by the user, in the format: `projects/*/notes/*`. This field may
                -       * not be updated.
                +       * created by the user, in the format: `projects/[PROJECT_ID]/notes/*`. This
                +       * field may not be updated. A project ID must be used, not a project number.
                        *
                        * An attestation by this attestor is stored as a Grafeas
                        * Attestation.Authority Occurrence that names a container image and that
                @@ -10721,8 +11305,8 @@ public com.google.protobuf.ByteString getNoteReferenceBytes() {
                        *
                        * 
                        * Required. The Grafeas resource name of a Attestation.Authority Note,
                -       * created by the user, in the format: `projects/*/notes/*`. This field may
                -       * not be updated.
                +       * created by the user, in the format: `projects/[PROJECT_ID]/notes/*`. This
                +       * field may not be updated. A project ID must be used, not a project number.
                        *
                        * An attestation by this attestor is stored as a Grafeas
                        * Attestation.Authority Occurrence that names a container image and that
                @@ -10749,8 +11333,8 @@ public Builder setNoteReference(java.lang.String value) {
                        *
                        * 
                        * Required. The Grafeas resource name of a Attestation.Authority Note,
                -       * created by the user, in the format: `projects/*/notes/*`. This field may
                -       * not be updated.
                +       * created by the user, in the format: `projects/[PROJECT_ID]/notes/*`. This
                +       * field may not be updated. A project ID must be used, not a project number.
                        *
                        * An attestation by this attestor is stored as a Grafeas
                        * Attestation.Authority Occurrence that names a container image and that
                @@ -10773,8 +11357,8 @@ public Builder clearNoteReference() {
                        *
                        * 
                        * Required. The Grafeas resource name of a Attestation.Authority Note,
                -       * created by the user, in the format: `projects/*/notes/*`. This field may
                -       * not be updated.
                +       * created by the user, in the format: `projects/[PROJECT_ID]/notes/*`. This
                +       * field may not be updated. A project ID must be used, not a project number.
                        *
                        * An attestation by this attestor is stored as a Grafeas
                        * Attestation.Authority Occurrence that names a container image and that
                @@ -11396,12 +11980,13 @@ public Builder removePublicKeys(int index) {
                        *
                        * 
                        * Output only. This field will contain the service account email address
                -       * that this Attestor will use as the principal when querying Container
                +       * that this attestor will use as the principal when querying Container
                        * Analysis. Attestor administrators must grant this service account the
                -       * IAM role needed to read attestations from the [note_reference][Note] in
                -       * Container Analysis (`containeranalysis.notes.occurrences.viewer`).
                +       * IAM role needed to read attestations from the
                +       * [note_reference][google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote.note_reference]
                +       * in Container Analysis (`containeranalysis.notes.occurrences.viewer`).
                        *
                -       * This email address is fixed for the lifetime of the Attestor, but callers
                +       * This email address is fixed for the lifetime of the attestor, but callers
                        * should not make any other assumptions about the service account email;
                        * future versions may use an email based on a different naming pattern.
                        * 
                @@ -11429,12 +12014,13 @@ public java.lang.String getDelegationServiceAccountEmail() { * *
                        * Output only. This field will contain the service account email address
                -       * that this Attestor will use as the principal when querying Container
                +       * that this attestor will use as the principal when querying Container
                        * Analysis. Attestor administrators must grant this service account the
                -       * IAM role needed to read attestations from the [note_reference][Note] in
                -       * Container Analysis (`containeranalysis.notes.occurrences.viewer`).
                +       * IAM role needed to read attestations from the
                +       * [note_reference][google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote.note_reference]
                +       * in Container Analysis (`containeranalysis.notes.occurrences.viewer`).
                        *
                -       * This email address is fixed for the lifetime of the Attestor, but callers
                +       * This email address is fixed for the lifetime of the attestor, but callers
                        * should not make any other assumptions about the service account email;
                        * future versions may use an email based on a different naming pattern.
                        * 
                @@ -11462,12 +12048,13 @@ public com.google.protobuf.ByteString getDelegationServiceAccountEmailBytes() { * *
                        * Output only. This field will contain the service account email address
                -       * that this Attestor will use as the principal when querying Container
                +       * that this attestor will use as the principal when querying Container
                        * Analysis. Attestor administrators must grant this service account the
                -       * IAM role needed to read attestations from the [note_reference][Note] in
                -       * Container Analysis (`containeranalysis.notes.occurrences.viewer`).
                +       * IAM role needed to read attestations from the
                +       * [note_reference][google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote.note_reference]
                +       * in Container Analysis (`containeranalysis.notes.occurrences.viewer`).
                        *
                -       * This email address is fixed for the lifetime of the Attestor, but callers
                +       * This email address is fixed for the lifetime of the attestor, but callers
                        * should not make any other assumptions about the service account email;
                        * future versions may use an email based on a different naming pattern.
                        * 
                @@ -11494,12 +12081,13 @@ public Builder setDelegationServiceAccountEmail(java.lang.String value) { * *
                        * Output only. This field will contain the service account email address
                -       * that this Attestor will use as the principal when querying Container
                +       * that this attestor will use as the principal when querying Container
                        * Analysis. Attestor administrators must grant this service account the
                -       * IAM role needed to read attestations from the [note_reference][Note] in
                -       * Container Analysis (`containeranalysis.notes.occurrences.viewer`).
                +       * IAM role needed to read attestations from the
                +       * [note_reference][google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote.note_reference]
                +       * in Container Analysis (`containeranalysis.notes.occurrences.viewer`).
                        *
                -       * This email address is fixed for the lifetime of the Attestor, but callers
                +       * This email address is fixed for the lifetime of the attestor, but callers
                        * should not make any other assumptions about the service account email;
                        * future versions may use an email based on a different naming pattern.
                        * 
                @@ -11522,12 +12110,13 @@ public Builder clearDelegationServiceAccountEmail() { * *
                        * Output only. This field will contain the service account email address
                -       * that this Attestor will use as the principal when querying Container
                +       * that this attestor will use as the principal when querying Container
                        * Analysis. Attestor administrators must grant this service account the
                -       * IAM role needed to read attestations from the [note_reference][Note] in
                -       * Container Analysis (`containeranalysis.notes.occurrences.viewer`).
                +       * IAM role needed to read attestations from the
                +       * [note_reference][google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote.note_reference]
                +       * in Container Analysis (`containeranalysis.notes.occurrences.viewer`).
                        *
                -       * This email address is fixed for the lifetime of the Attestor, but callers
                +       * This email address is fixed for the lifetime of the attestor, but callers
                        * should not make any other assumptions about the service account email;
                        * future versions may use an email based on a different naming pattern.
                        * 
                @@ -11680,16 +12269,67 @@ public interface PkixPublicKeyOrBuilder */ com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.SignatureAlgorithm getSignatureAlgorithm(); + + /** + * + * + *
                +     * Optional. The ID of this public key.
                +     * Signatures verified by Binary Authorization must include the ID of the
                +     * public key that can be used to verify them. The ID must match exactly
                +     * contents of the `key_id` field exactly.
                +     *
                +     * The ID may be explicitly provided by the caller, but it MUST be a valid
                +     * RFC3986 URI. If `key_id` is left blank and this `PkixPublicKey` is not used
                +     * in the context of a wrapper (see next paragraph), a default key ID will be
                +     * computed based on the digest of the DER encoding of the public key.
                +     *
                +     * If this `PkixPublicKey` is used in the context of a wrapper that has its
                +     * own notion of key ID (e.g. `AttestorPublicKey`), then this field can
                +     * either match that value exactly, or be left blank, in which case it behaves
                +     * exactly as though it is equal to that wrapper value.
                +     * 
                + * + * string key_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The keyId. + */ + java.lang.String getKeyId(); + + /** + * + * + *
                +     * Optional. The ID of this public key.
                +     * Signatures verified by Binary Authorization must include the ID of the
                +     * public key that can be used to verify them. The ID must match exactly
                +     * contents of the `key_id` field exactly.
                +     *
                +     * The ID may be explicitly provided by the caller, but it MUST be a valid
                +     * RFC3986 URI. If `key_id` is left blank and this `PkixPublicKey` is not used
                +     * in the context of a wrapper (see next paragraph), a default key ID will be
                +     * computed based on the digest of the DER encoding of the public key.
                +     *
                +     * If this `PkixPublicKey` is used in the context of a wrapper that has its
                +     * own notion of key ID (e.g. `AttestorPublicKey`), then this field can
                +     * either match that value exactly, or be left blank, in which case it behaves
                +     * exactly as though it is equal to that wrapper value.
                +     * 
                + * + * string key_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for keyId. + */ + com.google.protobuf.ByteString getKeyIdBytes(); } /** * * *
                -   * A public key in the PkixPublicKey format (see
                -   * https://tools.ietf.org/html/rfc5280#section-4.1.2.7 for details).
                -   * Public keys of this type are typically textually encoded using the PEM
                -   * format.
                +   * A public key in the PkixPublicKey
                +   * [format](https://tools.ietf.org/html/rfc5280#section-4.1.2.7). Public keys of
                +   * this type are typically textually encoded using the PEM format.
                    * 
                * * Protobuf type {@code google.cloud.binaryauthorization.v1.PkixPublicKey} @@ -11718,6 +12358,7 @@ private PkixPublicKey(com.google.protobuf.GeneratedMessage.Builder builder) { private PkixPublicKey() { publicKeyPem_ = ""; signatureAlgorithm_ = 0; + keyId_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -11743,9 +12384,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * Represents a signature algorithm and other information necessary to verify * signatures with a given public key. * This is based primarily on the public key types supported by Tink's - * PemKeyType, which is in turn based on KMS's supported signing algorithms. - * See https://cloud.google.com/kms/docs/algorithms. In the future, BinAuthz - * might support additional public key types independently of Tink and/or KMS. + * PemKeyType, which is in turn based on KMS's supported signing + * [algorithms](https://cloud.google.com/kms/docs/algorithms). In the future, + * Binary Authorization might support additional public key types + * independently of Tink and/or KMS. *
                * * Protobuf enum {@code google.cloud.binaryauthorization.v1.PkixPublicKey.SignatureAlgorithm} @@ -11780,7 +12422,7 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu * * RSA_PSS_3072_SHA256 = 2; */ - RSA_PSS_3072_SHA256(2, 2), + RSA_PSS_3072_SHA256(3, 2), /** * * @@ -11790,7 +12432,7 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu * * RSA_PSS_4096_SHA256 = 3; */ - RSA_PSS_4096_SHA256(3, 3), + RSA_PSS_4096_SHA256(5, 3), /** * * @@ -11800,7 +12442,7 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu * * RSA_PSS_4096_SHA512 = 4; */ - RSA_PSS_4096_SHA512(4, 4), + RSA_PSS_4096_SHA512(7, 4), /** * * @@ -11810,7 +12452,7 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu * * RSA_SIGN_PKCS1_2048_SHA256 = 5; */ - RSA_SIGN_PKCS1_2048_SHA256(5, 5), + RSA_SIGN_PKCS1_2048_SHA256(9, 5), /** * * @@ -11820,7 +12462,7 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu * * RSA_SIGN_PKCS1_3072_SHA256 = 6; */ - RSA_SIGN_PKCS1_3072_SHA256(6, 6), + RSA_SIGN_PKCS1_3072_SHA256(10, 6), /** * * @@ -11830,7 +12472,7 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu * * RSA_SIGN_PKCS1_4096_SHA256 = 7; */ - RSA_SIGN_PKCS1_4096_SHA256(7, 7), + RSA_SIGN_PKCS1_4096_SHA256(11, 7), /** * * @@ -11840,7 +12482,7 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu * * RSA_SIGN_PKCS1_4096_SHA512 = 8; */ - RSA_SIGN_PKCS1_4096_SHA512(8, 8), + RSA_SIGN_PKCS1_4096_SHA512(12, 8), /** * * @@ -11850,7 +12492,7 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu * * ECDSA_P256_SHA256 = 9; */ - ECDSA_P256_SHA256(9, 9), + ECDSA_P256_SHA256(13, 9), /** * * @@ -11860,7 +12502,7 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu * * ECDSA_P384_SHA384 = 10; */ - ECDSA_P384_SHA384(11, 10), + ECDSA_P384_SHA384(15, 10), /** * * @@ -11870,7 +12512,17 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu * * ECDSA_P521_SHA512 = 11; */ - ECDSA_P521_SHA512(13, 11), + ECDSA_P521_SHA512(17, 11), + /** + * + * + *
                +       * ML-DSA-65 Post-Quantum Cryptography signature algorithm.
                +       * 
                + * + * ML_DSA_65 = 13; + */ + ML_DSA_65(19, 13), UNRECOGNIZED(-1, -1), ; @@ -11884,6 +12536,50 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu "SignatureAlgorithm"); } + /** + * + * + *
                +       * RSASSA-PSS 2048 bit key with a SHA256 digest.
                +       * 
                + * + * RSA_SIGN_PSS_2048_SHA256 = 1; + */ + public static final SignatureAlgorithm RSA_SIGN_PSS_2048_SHA256 = RSA_PSS_2048_SHA256; + + /** + * + * + *
                +       * RSASSA-PSS 3072 bit key with a SHA256 digest.
                +       * 
                + * + * RSA_SIGN_PSS_3072_SHA256 = 2; + */ + public static final SignatureAlgorithm RSA_SIGN_PSS_3072_SHA256 = RSA_PSS_3072_SHA256; + + /** + * + * + *
                +       * RSASSA-PSS 4096 bit key with a SHA256 digest.
                +       * 
                + * + * RSA_SIGN_PSS_4096_SHA256 = 3; + */ + public static final SignatureAlgorithm RSA_SIGN_PSS_4096_SHA256 = RSA_PSS_4096_SHA256; + + /** + * + * + *
                +       * RSASSA-PSS 4096 bit key with a SHA512 digest.
                +       * 
                + * + * RSA_SIGN_PSS_4096_SHA512 = 4; + */ + public static final SignatureAlgorithm RSA_SIGN_PSS_4096_SHA512 = RSA_PSS_4096_SHA512; + /** * * @@ -11939,6 +12635,17 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ public static final int RSA_PSS_2048_SHA256_VALUE = 1; + /** + * + * + *
                +       * RSASSA-PSS 2048 bit key with a SHA256 digest.
                +       * 
                + * + * RSA_SIGN_PSS_2048_SHA256 = 1; + */ + public static final int RSA_SIGN_PSS_2048_SHA256_VALUE = 1; + /** * * @@ -11950,6 +12657,17 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ public static final int RSA_PSS_3072_SHA256_VALUE = 2; + /** + * + * + *
                +       * RSASSA-PSS 3072 bit key with a SHA256 digest.
                +       * 
                + * + * RSA_SIGN_PSS_3072_SHA256 = 2; + */ + public static final int RSA_SIGN_PSS_3072_SHA256_VALUE = 2; + /** * * @@ -11961,6 +12679,17 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ public static final int RSA_PSS_4096_SHA256_VALUE = 3; + /** + * + * + *
                +       * RSASSA-PSS 4096 bit key with a SHA256 digest.
                +       * 
                + * + * RSA_SIGN_PSS_4096_SHA256 = 3; + */ + public static final int RSA_SIGN_PSS_4096_SHA256_VALUE = 3; + /** * * @@ -11972,6 +12701,17 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ public static final int RSA_PSS_4096_SHA512_VALUE = 4; + /** + * + * + *
                +       * RSASSA-PSS 4096 bit key with a SHA512 digest.
                +       * 
                + * + * RSA_SIGN_PSS_4096_SHA512 = 4; + */ + public static final int RSA_SIGN_PSS_4096_SHA512_VALUE = 4; + /** * * @@ -12082,6 +12822,17 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ public static final int EC_SIGN_P521_SHA512_VALUE = 11; + /** + * + * + *
                +       * ML-DSA-65 Post-Quantum Cryptography signature algorithm.
                +       * 
                + * + * ML_DSA_65 = 13; + */ + public static final int ML_DSA_65_VALUE = 13; + public final int getNumber() { if (index == -1) { throw new java.lang.IllegalArgumentException( @@ -12130,6 +12881,8 @@ public static SignatureAlgorithm forNumber(int value) { return ECDSA_P384_SHA384; case 11: return ECDSA_P521_SHA512; + case 13: + return ML_DSA_65; default: return null; } @@ -12173,9 +12926,13 @@ private static SignatureAlgorithm[] getStaticValuesArray() { return new SignatureAlgorithm[] { SIGNATURE_ALGORITHM_UNSPECIFIED, RSA_PSS_2048_SHA256, + RSA_SIGN_PSS_2048_SHA256, RSA_PSS_3072_SHA256, + RSA_SIGN_PSS_3072_SHA256, RSA_PSS_4096_SHA256, + RSA_SIGN_PSS_4096_SHA256, RSA_PSS_4096_SHA512, + RSA_SIGN_PSS_4096_SHA512, RSA_SIGN_PKCS1_2048_SHA256, RSA_SIGN_PKCS1_3072_SHA256, RSA_SIGN_PKCS1_4096_SHA256, @@ -12186,6 +12943,7 @@ private static SignatureAlgorithm[] getStaticValuesArray() { EC_SIGN_P384_SHA384, ECDSA_P521_SHA512, EC_SIGN_P521_SHA512, + ML_DSA_65, }; } @@ -12323,6 +13081,85 @@ public int getSignatureAlgorithmValue() { : result; } + public static final int KEY_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object keyId_ = ""; + + /** + * + * + *
                +     * Optional. The ID of this public key.
                +     * Signatures verified by Binary Authorization must include the ID of the
                +     * public key that can be used to verify them. The ID must match exactly
                +     * contents of the `key_id` field exactly.
                +     *
                +     * The ID may be explicitly provided by the caller, but it MUST be a valid
                +     * RFC3986 URI. If `key_id` is left blank and this `PkixPublicKey` is not used
                +     * in the context of a wrapper (see next paragraph), a default key ID will be
                +     * computed based on the digest of the DER encoding of the public key.
                +     *
                +     * If this `PkixPublicKey` is used in the context of a wrapper that has its
                +     * own notion of key ID (e.g. `AttestorPublicKey`), then this field can
                +     * either match that value exactly, or be left blank, in which case it behaves
                +     * exactly as though it is equal to that wrapper value.
                +     * 
                + * + * string key_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The keyId. + */ + @java.lang.Override + public java.lang.String getKeyId() { + java.lang.Object ref = keyId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + keyId_ = s; + return s; + } + } + + /** + * + * + *
                +     * Optional. The ID of this public key.
                +     * Signatures verified by Binary Authorization must include the ID of the
                +     * public key that can be used to verify them. The ID must match exactly
                +     * contents of the `key_id` field exactly.
                +     *
                +     * The ID may be explicitly provided by the caller, but it MUST be a valid
                +     * RFC3986 URI. If `key_id` is left blank and this `PkixPublicKey` is not used
                +     * in the context of a wrapper (see next paragraph), a default key ID will be
                +     * computed based on the digest of the DER encoding of the public key.
                +     *
                +     * If this `PkixPublicKey` is used in the context of a wrapper that has its
                +     * own notion of key ID (e.g. `AttestorPublicKey`), then this field can
                +     * either match that value exactly, or be left blank, in which case it behaves
                +     * exactly as though it is equal to that wrapper value.
                +     * 
                + * + * string key_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for keyId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKeyIdBytes() { + java.lang.Object ref = keyId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + keyId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -12346,6 +13183,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(2, signatureAlgorithm_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(keyId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, keyId_); + } getUnknownFields().writeTo(output); } @@ -12364,6 +13204,9 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, signatureAlgorithm_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(keyId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, keyId_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -12384,6 +13227,7 @@ public boolean equals(final java.lang.Object obj) { if (!getPublicKeyPem().equals(other.getPublicKeyPem())) return false; if (signatureAlgorithm_ != other.signatureAlgorithm_) return false; + if (!getKeyId().equals(other.getKeyId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -12399,6 +13243,8 @@ public int hashCode() { hash = (53 * hash) + getPublicKeyPem().hashCode(); hash = (37 * hash) + SIGNATURE_ALGORITHM_FIELD_NUMBER; hash = (53 * hash) + signatureAlgorithm_; + hash = (37 * hash) + KEY_ID_FIELD_NUMBER; + hash = (53 * hash) + getKeyId().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -12511,10 +13357,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
                -     * A public key in the PkixPublicKey format (see
                -     * https://tools.ietf.org/html/rfc5280#section-4.1.2.7 for details).
                -     * Public keys of this type are typically textually encoded using the PEM
                -     * format.
                +     * A public key in the PkixPublicKey
                +     * [format](https://tools.ietf.org/html/rfc5280#section-4.1.2.7). Public keys of
                +     * this type are typically textually encoded using the PEM format.
                      * 
                * * Protobuf type {@code google.cloud.binaryauthorization.v1.PkixPublicKey} @@ -12553,6 +13398,7 @@ public Builder clear() { bitField0_ = 0; publicKeyPem_ = ""; signatureAlgorithm_ = 0; + keyId_ = ""; return this; } @@ -12600,6 +13446,9 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000002) != 0)) { result.signatureAlgorithm_ = signatureAlgorithm_; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.keyId_ = keyId_; + } } @java.lang.Override @@ -12629,6 +13478,11 @@ public Builder mergeFrom( if (other.signatureAlgorithm_ != 0) { setSignatureAlgorithmValue(other.getSignatureAlgorithmValue()); } + if (!other.getKeyId().isEmpty()) { + keyId_ = other.keyId_; + bitField0_ |= 0x00000004; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -12667,6 +13521,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 16 + case 26: + { + keyId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -12938,6 +13798,182 @@ public Builder clearSignatureAlgorithm() { return this; } + private java.lang.Object keyId_ = ""; + + /** + * + * + *
                +       * Optional. The ID of this public key.
                +       * Signatures verified by Binary Authorization must include the ID of the
                +       * public key that can be used to verify them. The ID must match exactly
                +       * contents of the `key_id` field exactly.
                +       *
                +       * The ID may be explicitly provided by the caller, but it MUST be a valid
                +       * RFC3986 URI. If `key_id` is left blank and this `PkixPublicKey` is not used
                +       * in the context of a wrapper (see next paragraph), a default key ID will be
                +       * computed based on the digest of the DER encoding of the public key.
                +       *
                +       * If this `PkixPublicKey` is used in the context of a wrapper that has its
                +       * own notion of key ID (e.g. `AttestorPublicKey`), then this field can
                +       * either match that value exactly, or be left blank, in which case it behaves
                +       * exactly as though it is equal to that wrapper value.
                +       * 
                + * + * string key_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The keyId. + */ + public java.lang.String getKeyId() { + java.lang.Object ref = keyId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + keyId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                +       * Optional. The ID of this public key.
                +       * Signatures verified by Binary Authorization must include the ID of the
                +       * public key that can be used to verify them. The ID must match exactly
                +       * contents of the `key_id` field exactly.
                +       *
                +       * The ID may be explicitly provided by the caller, but it MUST be a valid
                +       * RFC3986 URI. If `key_id` is left blank and this `PkixPublicKey` is not used
                +       * in the context of a wrapper (see next paragraph), a default key ID will be
                +       * computed based on the digest of the DER encoding of the public key.
                +       *
                +       * If this `PkixPublicKey` is used in the context of a wrapper that has its
                +       * own notion of key ID (e.g. `AttestorPublicKey`), then this field can
                +       * either match that value exactly, or be left blank, in which case it behaves
                +       * exactly as though it is equal to that wrapper value.
                +       * 
                + * + * string key_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for keyId. + */ + public com.google.protobuf.ByteString getKeyIdBytes() { + java.lang.Object ref = keyId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + keyId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                +       * Optional. The ID of this public key.
                +       * Signatures verified by Binary Authorization must include the ID of the
                +       * public key that can be used to verify them. The ID must match exactly
                +       * contents of the `key_id` field exactly.
                +       *
                +       * The ID may be explicitly provided by the caller, but it MUST be a valid
                +       * RFC3986 URI. If `key_id` is left blank and this `PkixPublicKey` is not used
                +       * in the context of a wrapper (see next paragraph), a default key ID will be
                +       * computed based on the digest of the DER encoding of the public key.
                +       *
                +       * If this `PkixPublicKey` is used in the context of a wrapper that has its
                +       * own notion of key ID (e.g. `AttestorPublicKey`), then this field can
                +       * either match that value exactly, or be left blank, in which case it behaves
                +       * exactly as though it is equal to that wrapper value.
                +       * 
                + * + * string key_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The keyId to set. + * @return This builder for chaining. + */ + public Builder setKeyId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + keyId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                +       * Optional. The ID of this public key.
                +       * Signatures verified by Binary Authorization must include the ID of the
                +       * public key that can be used to verify them. The ID must match exactly
                +       * contents of the `key_id` field exactly.
                +       *
                +       * The ID may be explicitly provided by the caller, but it MUST be a valid
                +       * RFC3986 URI. If `key_id` is left blank and this `PkixPublicKey` is not used
                +       * in the context of a wrapper (see next paragraph), a default key ID will be
                +       * computed based on the digest of the DER encoding of the public key.
                +       *
                +       * If this `PkixPublicKey` is used in the context of a wrapper that has its
                +       * own notion of key ID (e.g. `AttestorPublicKey`), then this field can
                +       * either match that value exactly, or be left blank, in which case it behaves
                +       * exactly as though it is equal to that wrapper value.
                +       * 
                + * + * string key_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearKeyId() { + keyId_ = getDefaultInstance().getKeyId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                +       * Optional. The ID of this public key.
                +       * Signatures verified by Binary Authorization must include the ID of the
                +       * public key that can be used to verify them. The ID must match exactly
                +       * contents of the `key_id` field exactly.
                +       *
                +       * The ID may be explicitly provided by the caller, but it MUST be a valid
                +       * RFC3986 URI. If `key_id` is left blank and this `PkixPublicKey` is not used
                +       * in the context of a wrapper (see next paragraph), a default key ID will be
                +       * computed based on the digest of the DER encoding of the public key.
                +       *
                +       * If this `PkixPublicKey` is used in the context of a wrapper that has its
                +       * own notion of key ID (e.g. `AttestorPublicKey`), then this field can
                +       * either match that value exactly, or be left blank, in which case it behaves
                +       * exactly as though it is equal to that wrapper value.
                +       * 
                + * + * string key_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for keyId to set. + * @return This builder for chaining. + */ + public Builder setKeyIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + keyId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1.PkixPublicKey) } @@ -13031,12 +14067,11 @@ public interface AttestorPublicKeyOrBuilder * *
                      * The ID of this public key.
                -     * Signatures verified by BinAuthz must include the ID of the public key that
                -     * can be used to verify them, and that ID must match the contents of this
                -     * field exactly.
                -     * Additional restrictions on this field can be imposed based on which public
                -     * key type is encapsulated. See the documentation on `public_key` cases below
                -     * for details.
                +     * Signatures verified by Binary Authorization must include the ID of the
                +     * public key that can be used to verify them, and that ID must match the
                +     * contents of this field exactly. Additional restrictions on this field can
                +     * be imposed based on which public key type is encapsulated. See the
                +     * documentation on `public_key` cases below for details.
                      * 
                * * string id = 2; @@ -13050,12 +14085,11 @@ public interface AttestorPublicKeyOrBuilder * *
                      * The ID of this public key.
                -     * Signatures verified by BinAuthz must include the ID of the public key that
                -     * can be used to verify them, and that ID must match the contents of this
                -     * field exactly.
                -     * Additional restrictions on this field can be imposed based on which public
                -     * key type is encapsulated. See the documentation on `public_key` cases below
                -     * for details.
                +     * Signatures verified by Binary Authorization must include the ID of the
                +     * public key that can be used to verify them, and that ID must match the
                +     * contents of this field exactly. Additional restrictions on this field can
                +     * be imposed based on which public key type is encapsulated. See the
                +     * documentation on `public_key` cases below for details.
                      * 
                * * string id = 2; @@ -13071,11 +14105,11 @@ public interface AttestorPublicKeyOrBuilder * ASCII-armored representation of a PGP public key, as the entire output by * the command `gpg --export --armor foo@example.com` (either LF or CRLF * line endings). - * When using this field, `id` should be left blank. The BinAuthz API - * handlers will calculate the ID and fill it in automatically. BinAuthz - * computes this ID as the OpenPGP RFC4880 V4 fingerprint, represented as - * upper-case hex. If `id` is provided by the caller, it will be - * overwritten by the API-calculated ID. + * When using this field, `id` should be left blank. The Binary + * Authorization API handlers will calculate the ID and fill it in + * automatically. Binary Authorization computes this ID as the OpenPGP + * RFC4880 V4 fingerprint, represented as upper-case hex. If `id` is + * provided by the caller, it will be overwritten by the API-calculated ID. *
                * * string ascii_armored_pgp_public_key = 3; @@ -13091,11 +14125,11 @@ public interface AttestorPublicKeyOrBuilder * ASCII-armored representation of a PGP public key, as the entire output by * the command `gpg --export --armor foo@example.com` (either LF or CRLF * line endings). - * When using this field, `id` should be left blank. The BinAuthz API - * handlers will calculate the ID and fill it in automatically. BinAuthz - * computes this ID as the OpenPGP RFC4880 V4 fingerprint, represented as - * upper-case hex. If `id` is provided by the caller, it will be - * overwritten by the API-calculated ID. + * When using this field, `id` should be left blank. The Binary + * Authorization API handlers will calculate the ID and fill it in + * automatically. Binary Authorization computes this ID as the OpenPGP + * RFC4880 V4 fingerprint, represented as upper-case hex. If `id` is + * provided by the caller, it will be overwritten by the API-calculated ID. *
                * * string ascii_armored_pgp_public_key = 3; @@ -13111,11 +14145,11 @@ public interface AttestorPublicKeyOrBuilder * ASCII-armored representation of a PGP public key, as the entire output by * the command `gpg --export --armor foo@example.com` (either LF or CRLF * line endings). - * When using this field, `id` should be left blank. The BinAuthz API - * handlers will calculate the ID and fill it in automatically. BinAuthz - * computes this ID as the OpenPGP RFC4880 V4 fingerprint, represented as - * upper-case hex. If `id` is provided by the caller, it will be - * overwritten by the API-calculated ID. + * When using this field, `id` should be left blank. The Binary + * Authorization API handlers will calculate the ID and fill it in + * automatically. Binary Authorization computes this ID as the OpenPGP + * RFC4880 V4 fingerprint, represented as upper-case hex. If `id` is + * provided by the caller, it will be overwritten by the API-calculated ID. *
                * * string ascii_armored_pgp_public_key = 3; @@ -13186,8 +14220,9 @@ public interface AttestorPublicKeyOrBuilder * * *
                -   * An [attestor public key][google.cloud.binaryauthorization.v1.AttestorPublicKey] that will be used to verify
                -   * attestations signed by this attestor.
                +   * An [attestor public
                +   * key][google.cloud.binaryauthorization.v1.AttestorPublicKey] that will be used
                +   * to verify attestations signed by this attestor.
                    * 
                * * Protobuf type {@code google.cloud.binaryauthorization.v1.AttestorPublicKey} @@ -13348,12 +14383,11 @@ public com.google.protobuf.ByteString getCommentBytes() { * *
                      * The ID of this public key.
                -     * Signatures verified by BinAuthz must include the ID of the public key that
                -     * can be used to verify them, and that ID must match the contents of this
                -     * field exactly.
                -     * Additional restrictions on this field can be imposed based on which public
                -     * key type is encapsulated. See the documentation on `public_key` cases below
                -     * for details.
                +     * Signatures verified by Binary Authorization must include the ID of the
                +     * public key that can be used to verify them, and that ID must match the
                +     * contents of this field exactly. Additional restrictions on this field can
                +     * be imposed based on which public key type is encapsulated. See the
                +     * documentation on `public_key` cases below for details.
                      * 
                * * string id = 2; @@ -13378,12 +14412,11 @@ public java.lang.String getId() { * *
                      * The ID of this public key.
                -     * Signatures verified by BinAuthz must include the ID of the public key that
                -     * can be used to verify them, and that ID must match the contents of this
                -     * field exactly.
                -     * Additional restrictions on this field can be imposed based on which public
                -     * key type is encapsulated. See the documentation on `public_key` cases below
                -     * for details.
                +     * Signatures verified by Binary Authorization must include the ID of the
                +     * public key that can be used to verify them, and that ID must match the
                +     * contents of this field exactly. Additional restrictions on this field can
                +     * be imposed based on which public key type is encapsulated. See the
                +     * documentation on `public_key` cases below for details.
                      * 
                * * string id = 2; @@ -13412,11 +14445,11 @@ public com.google.protobuf.ByteString getIdBytes() { * ASCII-armored representation of a PGP public key, as the entire output by * the command `gpg --export --armor foo@example.com` (either LF or CRLF * line endings). - * When using this field, `id` should be left blank. The BinAuthz API - * handlers will calculate the ID and fill it in automatically. BinAuthz - * computes this ID as the OpenPGP RFC4880 V4 fingerprint, represented as - * upper-case hex. If `id` is provided by the caller, it will be - * overwritten by the API-calculated ID. + * When using this field, `id` should be left blank. The Binary + * Authorization API handlers will calculate the ID and fill it in + * automatically. Binary Authorization computes this ID as the OpenPGP + * RFC4880 V4 fingerprint, represented as upper-case hex. If `id` is + * provided by the caller, it will be overwritten by the API-calculated ID. *
                * * string ascii_armored_pgp_public_key = 3; @@ -13434,11 +14467,11 @@ public boolean hasAsciiArmoredPgpPublicKey() { * ASCII-armored representation of a PGP public key, as the entire output by * the command `gpg --export --armor foo@example.com` (either LF or CRLF * line endings). - * When using this field, `id` should be left blank. The BinAuthz API - * handlers will calculate the ID and fill it in automatically. BinAuthz - * computes this ID as the OpenPGP RFC4880 V4 fingerprint, represented as - * upper-case hex. If `id` is provided by the caller, it will be - * overwritten by the API-calculated ID. + * When using this field, `id` should be left blank. The Binary + * Authorization API handlers will calculate the ID and fill it in + * automatically. Binary Authorization computes this ID as the OpenPGP + * RFC4880 V4 fingerprint, represented as upper-case hex. If `id` is + * provided by the caller, it will be overwritten by the API-calculated ID. *
                * * string ascii_armored_pgp_public_key = 3; @@ -13469,11 +14502,11 @@ public java.lang.String getAsciiArmoredPgpPublicKey() { * ASCII-armored representation of a PGP public key, as the entire output by * the command `gpg --export --armor foo@example.com` (either LF or CRLF * line endings). - * When using this field, `id` should be left blank. The BinAuthz API - * handlers will calculate the ID and fill it in automatically. BinAuthz - * computes this ID as the OpenPGP RFC4880 V4 fingerprint, represented as - * upper-case hex. If `id` is provided by the caller, it will be - * overwritten by the API-calculated ID. + * When using this field, `id` should be left blank. The Binary + * Authorization API handlers will calculate the ID and fill it in + * automatically. Binary Authorization computes this ID as the OpenPGP + * RFC4880 V4 fingerprint, represented as upper-case hex. If `id` is + * provided by the caller, it will be overwritten by the API-calculated ID. *
                * * string ascii_armored_pgp_public_key = 3; @@ -13798,8 +14831,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
                -     * An [attestor public key][google.cloud.binaryauthorization.v1.AttestorPublicKey] that will be used to verify
                -     * attestations signed by this attestor.
                +     * An [attestor public
                +     * key][google.cloud.binaryauthorization.v1.AttestorPublicKey] that will be used
                +     * to verify attestations signed by this attestor.
                      * 
                * * Protobuf type {@code google.cloud.binaryauthorization.v1.AttestorPublicKey} @@ -14157,12 +15191,11 @@ public Builder setCommentBytes(com.google.protobuf.ByteString value) { * *
                        * The ID of this public key.
                -       * Signatures verified by BinAuthz must include the ID of the public key that
                -       * can be used to verify them, and that ID must match the contents of this
                -       * field exactly.
                -       * Additional restrictions on this field can be imposed based on which public
                -       * key type is encapsulated. See the documentation on `public_key` cases below
                -       * for details.
                +       * Signatures verified by Binary Authorization must include the ID of the
                +       * public key that can be used to verify them, and that ID must match the
                +       * contents of this field exactly. Additional restrictions on this field can
                +       * be imposed based on which public key type is encapsulated. See the
                +       * documentation on `public_key` cases below for details.
                        * 
                * * string id = 2; @@ -14186,12 +15219,11 @@ public java.lang.String getId() { * *
                        * The ID of this public key.
                -       * Signatures verified by BinAuthz must include the ID of the public key that
                -       * can be used to verify them, and that ID must match the contents of this
                -       * field exactly.
                -       * Additional restrictions on this field can be imposed based on which public
                -       * key type is encapsulated. See the documentation on `public_key` cases below
                -       * for details.
                +       * Signatures verified by Binary Authorization must include the ID of the
                +       * public key that can be used to verify them, and that ID must match the
                +       * contents of this field exactly. Additional restrictions on this field can
                +       * be imposed based on which public key type is encapsulated. See the
                +       * documentation on `public_key` cases below for details.
                        * 
                * * string id = 2; @@ -14215,12 +15247,11 @@ public com.google.protobuf.ByteString getIdBytes() { * *
                        * The ID of this public key.
                -       * Signatures verified by BinAuthz must include the ID of the public key that
                -       * can be used to verify them, and that ID must match the contents of this
                -       * field exactly.
                -       * Additional restrictions on this field can be imposed based on which public
                -       * key type is encapsulated. See the documentation on `public_key` cases below
                -       * for details.
                +       * Signatures verified by Binary Authorization must include the ID of the
                +       * public key that can be used to verify them, and that ID must match the
                +       * contents of this field exactly. Additional restrictions on this field can
                +       * be imposed based on which public key type is encapsulated. See the
                +       * documentation on `public_key` cases below for details.
                        * 
                * * string id = 2; @@ -14243,12 +15274,11 @@ public Builder setId(java.lang.String value) { * *
                        * The ID of this public key.
                -       * Signatures verified by BinAuthz must include the ID of the public key that
                -       * can be used to verify them, and that ID must match the contents of this
                -       * field exactly.
                -       * Additional restrictions on this field can be imposed based on which public
                -       * key type is encapsulated. See the documentation on `public_key` cases below
                -       * for details.
                +       * Signatures verified by Binary Authorization must include the ID of the
                +       * public key that can be used to verify them, and that ID must match the
                +       * contents of this field exactly. Additional restrictions on this field can
                +       * be imposed based on which public key type is encapsulated. See the
                +       * documentation on `public_key` cases below for details.
                        * 
                * * string id = 2; @@ -14267,12 +15297,11 @@ public Builder clearId() { * *
                        * The ID of this public key.
                -       * Signatures verified by BinAuthz must include the ID of the public key that
                -       * can be used to verify them, and that ID must match the contents of this
                -       * field exactly.
                -       * Additional restrictions on this field can be imposed based on which public
                -       * key type is encapsulated. See the documentation on `public_key` cases below
                -       * for details.
                +       * Signatures verified by Binary Authorization must include the ID of the
                +       * public key that can be used to verify them, and that ID must match the
                +       * contents of this field exactly. Additional restrictions on this field can
                +       * be imposed based on which public key type is encapsulated. See the
                +       * documentation on `public_key` cases below for details.
                        * 
                * * string id = 2; @@ -14298,11 +15327,11 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { * ASCII-armored representation of a PGP public key, as the entire output by * the command `gpg --export --armor foo@example.com` (either LF or CRLF * line endings). - * When using this field, `id` should be left blank. The BinAuthz API - * handlers will calculate the ID and fill it in automatically. BinAuthz - * computes this ID as the OpenPGP RFC4880 V4 fingerprint, represented as - * upper-case hex. If `id` is provided by the caller, it will be - * overwritten by the API-calculated ID. + * When using this field, `id` should be left blank. The Binary + * Authorization API handlers will calculate the ID and fill it in + * automatically. Binary Authorization computes this ID as the OpenPGP + * RFC4880 V4 fingerprint, represented as upper-case hex. If `id` is + * provided by the caller, it will be overwritten by the API-calculated ID. *
                * * string ascii_armored_pgp_public_key = 3; @@ -14321,11 +15350,11 @@ public boolean hasAsciiArmoredPgpPublicKey() { * ASCII-armored representation of a PGP public key, as the entire output by * the command `gpg --export --armor foo@example.com` (either LF or CRLF * line endings). - * When using this field, `id` should be left blank. The BinAuthz API - * handlers will calculate the ID and fill it in automatically. BinAuthz - * computes this ID as the OpenPGP RFC4880 V4 fingerprint, represented as - * upper-case hex. If `id` is provided by the caller, it will be - * overwritten by the API-calculated ID. + * When using this field, `id` should be left blank. The Binary + * Authorization API handlers will calculate the ID and fill it in + * automatically. Binary Authorization computes this ID as the OpenPGP + * RFC4880 V4 fingerprint, represented as upper-case hex. If `id` is + * provided by the caller, it will be overwritten by the API-calculated ID. *
                * * string ascii_armored_pgp_public_key = 3; @@ -14357,11 +15386,11 @@ public java.lang.String getAsciiArmoredPgpPublicKey() { * ASCII-armored representation of a PGP public key, as the entire output by * the command `gpg --export --armor foo@example.com` (either LF or CRLF * line endings). - * When using this field, `id` should be left blank. The BinAuthz API - * handlers will calculate the ID and fill it in automatically. BinAuthz - * computes this ID as the OpenPGP RFC4880 V4 fingerprint, represented as - * upper-case hex. If `id` is provided by the caller, it will be - * overwritten by the API-calculated ID. + * When using this field, `id` should be left blank. The Binary + * Authorization API handlers will calculate the ID and fill it in + * automatically. Binary Authorization computes this ID as the OpenPGP + * RFC4880 V4 fingerprint, represented as upper-case hex. If `id` is + * provided by the caller, it will be overwritten by the API-calculated ID. * * * string ascii_armored_pgp_public_key = 3; @@ -14393,11 +15422,11 @@ public com.google.protobuf.ByteString getAsciiArmoredPgpPublicKeyBytes() { * ASCII-armored representation of a PGP public key, as the entire output by * the command `gpg --export --armor foo@example.com` (either LF or CRLF * line endings). - * When using this field, `id` should be left blank. The BinAuthz API - * handlers will calculate the ID and fill it in automatically. BinAuthz - * computes this ID as the OpenPGP RFC4880 V4 fingerprint, represented as - * upper-case hex. If `id` is provided by the caller, it will be - * overwritten by the API-calculated ID. + * When using this field, `id` should be left blank. The Binary + * Authorization API handlers will calculate the ID and fill it in + * automatically. Binary Authorization computes this ID as the OpenPGP + * RFC4880 V4 fingerprint, represented as upper-case hex. If `id` is + * provided by the caller, it will be overwritten by the API-calculated ID. * * * string ascii_armored_pgp_public_key = 3; @@ -14422,11 +15451,11 @@ public Builder setAsciiArmoredPgpPublicKey(java.lang.String value) { * ASCII-armored representation of a PGP public key, as the entire output by * the command `gpg --export --armor foo@example.com` (either LF or CRLF * line endings). - * When using this field, `id` should be left blank. The BinAuthz API - * handlers will calculate the ID and fill it in automatically. BinAuthz - * computes this ID as the OpenPGP RFC4880 V4 fingerprint, represented as - * upper-case hex. If `id` is provided by the caller, it will be - * overwritten by the API-calculated ID. + * When using this field, `id` should be left blank. The Binary + * Authorization API handlers will calculate the ID and fill it in + * automatically. Binary Authorization computes this ID as the OpenPGP + * RFC4880 V4 fingerprint, represented as upper-case hex. If `id` is + * provided by the caller, it will be overwritten by the API-calculated ID. * * * string ascii_armored_pgp_public_key = 3; @@ -14449,11 +15478,11 @@ public Builder clearAsciiArmoredPgpPublicKey() { * ASCII-armored representation of a PGP public key, as the entire output by * the command `gpg --export --armor foo@example.com` (either LF or CRLF * line endings). - * When using this field, `id` should be left blank. The BinAuthz API - * handlers will calculate the ID and fill it in automatically. BinAuthz - * computes this ID as the OpenPGP RFC4880 V4 fingerprint, represented as - * upper-case hex. If `id` is provided by the caller, it will be - * overwritten by the API-calculated ID. + * When using this field, `id` should be left blank. The Binary + * Authorization API handlers will calculate the ID and fill it in + * automatically. Binary Authorization computes this ID as the OpenPGP + * RFC4880 V4 fingerprint, represented as upper-case hex. If `id` is + * provided by the caller, it will be overwritten by the API-calculated ID. * * * string ascii_armored_pgp_public_key = 3; @@ -14871,7 +15900,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n" + "3google/cloud/binaryauthorization/v1/resources.proto\022#google.cloud.binaryauthor" + "ization.v1\032\037google/api/field_behavior.pr" - + "oto\032\031google/api/resource.proto\032\037google/protobuf/timestamp.proto\"\370\014\n" + + "oto\032\031google/api/resource.proto\032\037google/protobuf/timestamp.proto\"\213\r\n" + "\006Policy\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\030\n" + "\013description\030\006 \001(\tB\003\340A\001\022r\n" @@ -14891,37 +15920,39 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "binaryauthorization.v1.Policy.IstioServiceIdentityAdmissionRulesEntryB\003\340A\001\022W\n" + "\026default_admission_rule\030\004 \001(\01322.google.clou" + "d.binaryauthorization.v1.AdmissionRuleB\003\340A\002\0224\n" - + "\013update_time\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\032p\n" + + "\013update_time\030\005" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\021\n" + + "\004etag\030\013 \001(\tB\003\340A\001\032p\n" + "\032ClusterAdmissionRulesEntry\022\013\n" + "\003key\030\001 \001(\t\022A\n" - + "\005value\030\002 \001(\01322.go" - + "ogle.cloud.binaryauthorization.v1.AdmissionRule:\0028\001\032|\n" + + "\005value\030\002" + + " \001(\01322.google.cloud.binaryauthorization.v1.AdmissionRule:\0028\001\032|\n" + "&KubernetesNamespaceAdmissionRulesEntry\022\013\n" + "\003key\030\001 \001(\t\022A\n" - + "\005value\030\002 \001(" - + "\01322.google.cloud.binaryauthorization.v1.AdmissionRule:\0028\001\032\201\001\n" + + "\005value\030\002" + + " \001(\01322.google.cloud.binaryauthorization.v1.AdmissionRule:\0028\001\032\201\001\n" + "+KubernetesServiceAccountAdmissionRulesEntry\022\013\n" + "\003key\030\001 \001(\t\022A\n" - + "\005value\030\002" - + " \001(\01322.google.cloud.binaryauthorization.v1.AdmissionRule:\0028\001\032}\n" + + "\005value\030\002 \001(\01322.googl" + + "e.cloud.binaryauthorization.v1.AdmissionRule:\0028\001\032}\n" + "\'IstioServiceIdentityAdmissionRulesEntry\022\013\n" + "\003key\030\001 \001(\t\022A\n" - + "\005value\030\002" - + " \001(\01322.google.cloud.binaryauthorization.v1.AdmissionRule:\0028\001\"d\n" + + "\005value\030\002 \001(\0132" + + "2.google.cloud.binaryauthorization.v1.AdmissionRule:\0028\001\"d\n" + "\032GlobalPolicyEvaluationMode\022-\n" + ")GLOBAL_POLICY_EVALUATION_MODE_UNSPECIFIED\020\000\022\n\n" + "\006ENABLE\020\001\022\013\n" + "\007DISABLE\020\002:f\352Ac\n" - + ")binaryauthorization.googleapis.com/Policy\022\031projects/{pr" - + "oject}/policy\022\033locations/{location}/policy\"1\n" + + ")binaryauthorization.googleapis.com/P" + + "olicy\022\031projects/{project}/policy\022\033locations/{location}/policy\"1\n" + "\031AdmissionWhitelistPattern\022\024\n" + "\014name_pattern\030\001 \001(\t\"\332\003\n\r" + "AdmissionRule\022_\n" - + "\017evaluation_mode\030\001 \001(\0162A.google.cloud.binaryau" - + "thorization.v1.AdmissionRule.EvaluationModeB\003\340A\002\022$\n" + + "\017evaluation_mode\030\001 \001(\0162A.go" + + "ogle.cloud.binaryauthorization.v1.AdmissionRule.EvaluationModeB\003\340A\002\022$\n" + "\027require_attestations_by\030\002 \003(\tB\003\340A\001\022a\n" - + "\020enforcement_mode\030\003 \001(\0162B.googl" - + "e.cloud.binaryauthorization.v1.AdmissionRule.EnforcementModeB\003\340A\002\"m\n" + + "\020enforcement_mode\030\003 \001(\0162B.google.cloud.binaryauthori" + + "zation.v1.AdmissionRule.EnforcementModeB\003\340A\002\"m\n" + "\016EvaluationMode\022\037\n" + "\033EVALUATION_MODE_UNSPECIFIED\020\000\022\020\n" + "\014ALWAYS_ALLOW\020\001\022\027\n" @@ -14930,32 +15961,38 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017EnforcementMode\022 \n" + "\034ENFORCEMENT_MODE_UNSPECIFIED\020\000\022 \n" + "\034ENFORCED_BLOCK_AND_AUDIT_LOG\020\001\022\031\n" - + "\025DRYRUN_AUDIT_LOG_ONLY\020\002\"\267\002\n" + + "\025DRYRUN_AUDIT_LOG_ONLY\020\002\"\312\002\n" + "\010Attestor\022\021\n" + "\004name\030\001 \001(\tB\003\340A\002\022\030\n" + "\013description\030\006 \001(\tB\003\340A\001\022\\\n" - + "\027user_owned_grafeas_note\030\003 \001(\01329.google.cloud.bin" - + "aryauthorization.v1.UserOwnedGrafeasNoteH\000\0224\n" + + "\027user_owned_grafeas_note\030\003 \001(\013" + + "29.google.cloud.binaryauthorization.v1.UserOwnedGrafeasNoteH\000\0224\n" + "\013update_time\030\004" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003:Y\352AV\n" - + "+binaryauthorizati" - + "on.googleapis.com/Attestor\022\'projects/{project}/attestors/{attestor}B\017\n\r" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\021\n" + + "\004etag\030\007 \001(\tB\003\340A\001:Y\352AV\n" + + "+binaryauthorization" + + ".googleapis.com/Attestor\022\'projects/{project}/attestors/{attestor}B\017\n\r" + "attestor_type\"\264\001\n" + "\024UserOwnedGrafeasNote\022\033\n" + "\016note_reference\030\001 \001(\tB\003\340A\002\022P\n" - + "\013public_keys\030\002 \003(\0132" - + "6.google.cloud.binaryauthorization.v1.AttestorPublicKeyB\003\340A\001\022-\n" - + " delegation_service_account_email\030\003 \001(\tB\003\340A\003\"\277\004\n\r" + + "\013public_keys\030\002 \003(\01326." + + "google.cloud.binaryauthorization.v1.AttestorPublicKeyB\003\340A\001\022-\n" + + " delegation_service_account_email\030\003 \001(\tB\003\340A\003\"\333\005\n\r" + "PkixPublicKey\022\026\n" + "\016public_key_pem\030\001 \001(\t\022b\n" - + "\023signature_algorithm\030\002 \001(\0162E.google.cloud.binary" - + "authorization.v1.PkixPublicKey.SignatureAlgorithm\"\261\003\n" + + "\023signature_algorithm\030\002 \001(\0162E.google.cloud.binaryau" + + "thorization.v1.PkixPublicKey.SignatureAlgorithm\022\023\n" + + "\006key_id\030\003 \001(\tB\003\340A\001\"\270\004\n" + "\022SignatureAlgorithm\022#\n" + "\037SIGNATURE_ALGORITHM_UNSPECIFIED\020\000\022\027\n" - + "\023RSA_PSS_2048_SHA256\020\001\022\027\n" - + "\023RSA_PSS_3072_SHA256\020\002\022\027\n" - + "\023RSA_PSS_4096_SHA256\020\003\022\027\n" - + "\023RSA_PSS_4096_SHA512\020\004\022\036\n" + + "\023RSA_PSS_2048_SHA256\020\001\022\034\n" + + "\030RSA_SIGN_PSS_2048_SHA256\020\001\022\027\n" + + "\023RSA_PSS_3072_SHA256\020\002\022\034\n" + + "\030RSA_SIGN_PSS_3072_SHA256\020\002\022\027\n" + + "\023RSA_PSS_4096_SHA256\020\003\022\034\n" + + "\030RSA_SIGN_PSS_4096_SHA256\020\003\022\027\n" + + "\023RSA_PSS_4096_SHA512\020\004\022\034\n" + + "\030RSA_SIGN_PSS_4096_SHA512\020\004\022\036\n" + "\032RSA_SIGN_PKCS1_2048_SHA256\020\005\022\036\n" + "\032RSA_SIGN_PKCS1_3072_SHA256\020\006\022\036\n" + "\032RSA_SIGN_PKCS1_4096_SHA256\020\007\022\036\n" @@ -14967,19 +16004,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023EC_SIGN_P384_SHA384\020\n" + "\022\025\n" + "\021ECDSA_P521_SHA512\020\013\022\027\n" - + "\023EC_SIGN_P521_SHA512\020\013\032\002\020\001\"\272\001\n" + + "\023EC_SIGN_P521_SHA512\020\013\022\r\n" + + "\tML_DSA_65\020\r" + + "\032\002\020\001\"\272\001\n" + "\021AttestorPublicKey\022\024\n" + "\007comment\030\001 \001(\tB\003\340A\001\022\n\n" + "\002id\030\002 \001(\t\022&\n" + "\034ascii_armored_pgp_public_key\030\003 \001(\tH\000\022M\n" - + "\017pkix_public_key\030\005" - + " \001(\01322.google.cloud.binaryauthorization.v1.PkixPublicKeyH\000B\014\n\n" - + "public_keyB\214\002\n" - + "5com.google.protos.google.cloud.binaryauthorization.v1P\000ZYcloud.google.com/go/bina" - + "ryauthorization/apiv1/binaryauthorizatio" - + "npb;binaryauthorizationpb\370\001\001\252\002#Google.Cl" - + "oud.BinaryAuthorization.V1\312\002#Google\\Clou" - + "d\\BinaryAuthorization\\V1\352\002&Google::Cloud::BinaryAuthorization::V1b\006proto3" + + "\017pkix_public_key\030\005 \001(\013" + + "22.google.cloud.binaryauthorization.v1.PkixPublicKeyH\000B\014\n\n" + + "public_keyB\211\002\n" + + "5com.google.protos.google.cloud.binaryauthorizat" + + "ion.v1P\000ZYcloud.google.com/go/binaryauthorization/apiv1/binaryauthorizationpb;bi" + + "naryauthorizationpb\252\002#Google.Cloud.Binar" + + "yAuthorization.V1\312\002#Google\\Cloud\\BinaryA" + + "uthorization\\V1\352\002&Google::Cloud::BinaryAuthorization::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -15005,6 +16044,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "IstioServiceIdentityAdmissionRules", "DefaultAdmissionRule", "UpdateTime", + "Etag", }); internal_static_google_cloud_binaryauthorization_v1_Policy_ClusterAdmissionRulesEntry_descriptor = internal_static_google_cloud_binaryauthorization_v1_Policy_descriptor.getNestedType(0); @@ -15060,7 +16100,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_binaryauthorization_v1_Attestor_descriptor, new java.lang.String[] { - "Name", "Description", "UserOwnedGrafeasNote", "UpdateTime", "AttestorType", + "Name", "Description", "UserOwnedGrafeasNote", "UpdateTime", "Etag", "AttestorType", }); internal_static_google_cloud_binaryauthorization_v1_UserOwnedGrafeasNote_descriptor = getDescriptor().getMessageType(4); @@ -15076,7 +16116,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_binaryauthorization_v1_PkixPublicKey_descriptor, new java.lang.String[] { - "PublicKeyPem", "SignatureAlgorithm", + "PublicKeyPem", "SignatureAlgorithm", "KeyId", }); internal_static_google_cloud_binaryauthorization_v1_AttestorPublicKey_descriptor = getDescriptor().getMessageType(6); diff --git a/java-binary-authorization/proto-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/Service.java b/java-binary-authorization/proto-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/Service.java index 80a59514b882..3c642b852730 100644 --- a/java-binary-authorization/proto-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/Service.java +++ b/java-binary-authorization/proto-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/Service.java @@ -49,8 +49,9 @@ public interface GetPolicyRequestOrBuilder * * *
                -     * Required. The resource name of the [policy][google.cloud.binaryauthorization.v1.Policy] to retrieve,
                -     * in the format `projects/*/policy`.
                +     * Required. The resource name of the
                +     * [policy][google.cloud.binaryauthorization.v1.Policy] to retrieve, in the
                +     * format `projects/*/policy`.
                      * 
                * * @@ -65,8 +66,9 @@ public interface GetPolicyRequestOrBuilder * * *
                -     * Required. The resource name of the [policy][google.cloud.binaryauthorization.v1.Policy] to retrieve,
                -     * in the format `projects/*/policy`.
                +     * Required. The resource name of the
                +     * [policy][google.cloud.binaryauthorization.v1.Policy] to retrieve, in the
                +     * format `projects/*/policy`.
                      * 
                * * @@ -82,7 +84,8 @@ public interface GetPolicyRequestOrBuilder * * *
                -   * Request message for [BinauthzManagementService.GetPolicy][].
                +   * Request message for
                +   * [BinauthzManagementServiceV1.GetPolicy][google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1.GetPolicy].
                    * 
                * * Protobuf type {@code google.cloud.binaryauthorization.v1.GetPolicyRequest} @@ -137,8 +140,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                -     * Required. The resource name of the [policy][google.cloud.binaryauthorization.v1.Policy] to retrieve,
                -     * in the format `projects/*/policy`.
                +     * Required. The resource name of the
                +     * [policy][google.cloud.binaryauthorization.v1.Policy] to retrieve, in the
                +     * format `projects/*/policy`.
                      * 
                * * @@ -164,8 +168,9 @@ public java.lang.String getName() { * * *
                -     * Required. The resource name of the [policy][google.cloud.binaryauthorization.v1.Policy] to retrieve,
                -     * in the format `projects/*/policy`.
                +     * Required. The resource name of the
                +     * [policy][google.cloud.binaryauthorization.v1.Policy] to retrieve, in the
                +     * format `projects/*/policy`.
                      * 
                * * @@ -360,7 +365,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
                -     * Request message for [BinauthzManagementService.GetPolicy][].
                +     * Request message for
                +     * [BinauthzManagementServiceV1.GetPolicy][google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1.GetPolicy].
                      * 
                * * Protobuf type {@code google.cloud.binaryauthorization.v1.GetPolicyRequest} @@ -528,8 +534,9 @@ public Builder mergeFrom( * * *
                -       * Required. The resource name of the [policy][google.cloud.binaryauthorization.v1.Policy] to retrieve,
                -       * in the format `projects/*/policy`.
                +       * Required. The resource name of the
                +       * [policy][google.cloud.binaryauthorization.v1.Policy] to retrieve, in the
                +       * format `projects/*/policy`.
                        * 
                * * @@ -554,8 +561,9 @@ public java.lang.String getName() { * * *
                -       * Required. The resource name of the [policy][google.cloud.binaryauthorization.v1.Policy] to retrieve,
                -       * in the format `projects/*/policy`.
                +       * Required. The resource name of the
                +       * [policy][google.cloud.binaryauthorization.v1.Policy] to retrieve, in the
                +       * format `projects/*/policy`.
                        * 
                * * @@ -580,8 +588,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
                -       * Required. The resource name of the [policy][google.cloud.binaryauthorization.v1.Policy] to retrieve,
                -       * in the format `projects/*/policy`.
                +       * Required. The resource name of the
                +       * [policy][google.cloud.binaryauthorization.v1.Policy] to retrieve, in the
                +       * format `projects/*/policy`.
                        * 
                * * @@ -605,8 +614,9 @@ public Builder setName(java.lang.String value) { * * *
                -       * Required. The resource name of the [policy][google.cloud.binaryauthorization.v1.Policy] to retrieve,
                -       * in the format `projects/*/policy`.
                +       * Required. The resource name of the
                +       * [policy][google.cloud.binaryauthorization.v1.Policy] to retrieve, in the
                +       * format `projects/*/policy`.
                        * 
                * * @@ -626,8 +636,9 @@ public Builder clearName() { * * *
                -       * Required. The resource name of the [policy][google.cloud.binaryauthorization.v1.Policy] to retrieve,
                -       * in the format `projects/*/policy`.
                +       * Required. The resource name of the
                +       * [policy][google.cloud.binaryauthorization.v1.Policy] to retrieve, in the
                +       * format `projects/*/policy`.
                        * 
                * * @@ -714,9 +725,11 @@ public interface UpdatePolicyRequestOrBuilder * * *
                -     * Required. A new or updated [policy][google.cloud.binaryauthorization.v1.Policy] value. The service will
                -     * overwrite the [policy name][google.cloud.binaryauthorization.v1.Policy.name] field with the resource name in
                -     * the request URL, in the format `projects/*/policy`.
                +     * Required. A new or updated
                +     * [policy][google.cloud.binaryauthorization.v1.Policy] value. The service
                +     * will overwrite the [policy
                +     * name][google.cloud.binaryauthorization.v1.Policy.name] field with the
                +     * resource name in the request URL, in the format `projects/*/policy`.
                      * 
                * * @@ -731,9 +744,11 @@ public interface UpdatePolicyRequestOrBuilder * * *
                -     * Required. A new or updated [policy][google.cloud.binaryauthorization.v1.Policy] value. The service will
                -     * overwrite the [policy name][google.cloud.binaryauthorization.v1.Policy.name] field with the resource name in
                -     * the request URL, in the format `projects/*/policy`.
                +     * Required. A new or updated
                +     * [policy][google.cloud.binaryauthorization.v1.Policy] value. The service
                +     * will overwrite the [policy
                +     * name][google.cloud.binaryauthorization.v1.Policy.name] field with the
                +     * resource name in the request URL, in the format `projects/*/policy`.
                      * 
                * * @@ -748,9 +763,11 @@ public interface UpdatePolicyRequestOrBuilder * * *
                -     * Required. A new or updated [policy][google.cloud.binaryauthorization.v1.Policy] value. The service will
                -     * overwrite the [policy name][google.cloud.binaryauthorization.v1.Policy.name] field with the resource name in
                -     * the request URL, in the format `projects/*/policy`.
                +     * Required. A new or updated
                +     * [policy][google.cloud.binaryauthorization.v1.Policy] value. The service
                +     * will overwrite the [policy
                +     * name][google.cloud.binaryauthorization.v1.Policy.name] field with the
                +     * resource name in the request URL, in the format `projects/*/policy`.
                      * 
                * * @@ -765,7 +782,8 @@ public interface UpdatePolicyRequestOrBuilder * * *
                -   * Request message for [BinauthzManagementService.UpdatePolicy][].
                +   * Request message for
                +   * [BinauthzManagementServiceV1.UpdatePolicy][google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1.UpdatePolicy].
                    * 
                * * Protobuf type {@code google.cloud.binaryauthorization.v1.UpdatePolicyRequest} @@ -818,9 +836,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                -     * Required. A new or updated [policy][google.cloud.binaryauthorization.v1.Policy] value. The service will
                -     * overwrite the [policy name][google.cloud.binaryauthorization.v1.Policy.name] field with the resource name in
                -     * the request URL, in the format `projects/*/policy`.
                +     * Required. A new or updated
                +     * [policy][google.cloud.binaryauthorization.v1.Policy] value. The service
                +     * will overwrite the [policy
                +     * name][google.cloud.binaryauthorization.v1.Policy.name] field with the
                +     * resource name in the request URL, in the format `projects/*/policy`.
                      * 
                * * @@ -838,9 +858,11 @@ public boolean hasPolicy() { * * *
                -     * Required. A new or updated [policy][google.cloud.binaryauthorization.v1.Policy] value. The service will
                -     * overwrite the [policy name][google.cloud.binaryauthorization.v1.Policy.name] field with the resource name in
                -     * the request URL, in the format `projects/*/policy`.
                +     * Required. A new or updated
                +     * [policy][google.cloud.binaryauthorization.v1.Policy] value. The service
                +     * will overwrite the [policy
                +     * name][google.cloud.binaryauthorization.v1.Policy.name] field with the
                +     * resource name in the request URL, in the format `projects/*/policy`.
                      * 
                * * @@ -861,9 +883,11 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy ge * * *
                -     * Required. A new or updated [policy][google.cloud.binaryauthorization.v1.Policy] value. The service will
                -     * overwrite the [policy name][google.cloud.binaryauthorization.v1.Policy.name] field with the resource name in
                -     * the request URL, in the format `projects/*/policy`.
                +     * Required. A new or updated
                +     * [policy][google.cloud.binaryauthorization.v1.Policy] value. The service
                +     * will overwrite the [policy
                +     * name][google.cloud.binaryauthorization.v1.Policy.name] field with the
                +     * resource name in the request URL, in the format `projects/*/policy`.
                      * 
                * * @@ -1058,7 +1082,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
                -     * Request message for [BinauthzManagementService.UpdatePolicy][].
                +     * Request message for
                +     * [BinauthzManagementServiceV1.UpdatePolicy][google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1.UpdatePolicy].
                      * 
                * * Protobuf type {@code google.cloud.binaryauthorization.v1.UpdatePolicyRequest} @@ -1247,9 +1272,11 @@ public Builder mergeFrom( * * *
                -       * Required. A new or updated [policy][google.cloud.binaryauthorization.v1.Policy] value. The service will
                -       * overwrite the [policy name][google.cloud.binaryauthorization.v1.Policy.name] field with the resource name in
                -       * the request URL, in the format `projects/*/policy`.
                +       * Required. A new or updated
                +       * [policy][google.cloud.binaryauthorization.v1.Policy] value. The service
                +       * will overwrite the [policy
                +       * name][google.cloud.binaryauthorization.v1.Policy.name] field with the
                +       * resource name in the request URL, in the format `projects/*/policy`.
                        * 
                * * @@ -1266,9 +1293,11 @@ public boolean hasPolicy() { * * *
                -       * Required. A new or updated [policy][google.cloud.binaryauthorization.v1.Policy] value. The service will
                -       * overwrite the [policy name][google.cloud.binaryauthorization.v1.Policy.name] field with the resource name in
                -       * the request URL, in the format `projects/*/policy`.
                +       * Required. A new or updated
                +       * [policy][google.cloud.binaryauthorization.v1.Policy] value. The service
                +       * will overwrite the [policy
                +       * name][google.cloud.binaryauthorization.v1.Policy.name] field with the
                +       * resource name in the request URL, in the format `projects/*/policy`.
                        * 
                * * @@ -1292,9 +1321,11 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy ge * * *
                -       * Required. A new or updated [policy][google.cloud.binaryauthorization.v1.Policy] value. The service will
                -       * overwrite the [policy name][google.cloud.binaryauthorization.v1.Policy.name] field with the resource name in
                -       * the request URL, in the format `projects/*/policy`.
                +       * Required. A new or updated
                +       * [policy][google.cloud.binaryauthorization.v1.Policy] value. The service
                +       * will overwrite the [policy
                +       * name][google.cloud.binaryauthorization.v1.Policy.name] field with the
                +       * resource name in the request URL, in the format `projects/*/policy`.
                        * 
                * * @@ -1320,9 +1351,11 @@ public Builder setPolicy( * * *
                -       * Required. A new or updated [policy][google.cloud.binaryauthorization.v1.Policy] value. The service will
                -       * overwrite the [policy name][google.cloud.binaryauthorization.v1.Policy.name] field with the resource name in
                -       * the request URL, in the format `projects/*/policy`.
                +       * Required. A new or updated
                +       * [policy][google.cloud.binaryauthorization.v1.Policy] value. The service
                +       * will overwrite the [policy
                +       * name][google.cloud.binaryauthorization.v1.Policy.name] field with the
                +       * resource name in the request URL, in the format `projects/*/policy`.
                        * 
                * * @@ -1346,9 +1379,11 @@ public Builder setPolicy( * * *
                -       * Required. A new or updated [policy][google.cloud.binaryauthorization.v1.Policy] value. The service will
                -       * overwrite the [policy name][google.cloud.binaryauthorization.v1.Policy.name] field with the resource name in
                -       * the request URL, in the format `projects/*/policy`.
                +       * Required. A new or updated
                +       * [policy][google.cloud.binaryauthorization.v1.Policy] value. The service
                +       * will overwrite the [policy
                +       * name][google.cloud.binaryauthorization.v1.Policy.name] field with the
                +       * resource name in the request URL, in the format `projects/*/policy`.
                        * 
                * * @@ -1381,9 +1416,11 @@ public Builder mergePolicy( * * *
                -       * Required. A new or updated [policy][google.cloud.binaryauthorization.v1.Policy] value. The service will
                -       * overwrite the [policy name][google.cloud.binaryauthorization.v1.Policy.name] field with the resource name in
                -       * the request URL, in the format `projects/*/policy`.
                +       * Required. A new or updated
                +       * [policy][google.cloud.binaryauthorization.v1.Policy] value. The service
                +       * will overwrite the [policy
                +       * name][google.cloud.binaryauthorization.v1.Policy.name] field with the
                +       * resource name in the request URL, in the format `projects/*/policy`.
                        * 
                * * @@ -1405,9 +1442,11 @@ public Builder clearPolicy() { * * *
                -       * Required. A new or updated [policy][google.cloud.binaryauthorization.v1.Policy] value. The service will
                -       * overwrite the [policy name][google.cloud.binaryauthorization.v1.Policy.name] field with the resource name in
                -       * the request URL, in the format `projects/*/policy`.
                +       * Required. A new or updated
                +       * [policy][google.cloud.binaryauthorization.v1.Policy] value. The service
                +       * will overwrite the [policy
                +       * name][google.cloud.binaryauthorization.v1.Policy.name] field with the
                +       * resource name in the request URL, in the format `projects/*/policy`.
                        * 
                * * @@ -1425,9 +1464,11 @@ public Builder clearPolicy() { * * *
                -       * Required. A new or updated [policy][google.cloud.binaryauthorization.v1.Policy] value. The service will
                -       * overwrite the [policy name][google.cloud.binaryauthorization.v1.Policy.name] field with the resource name in
                -       * the request URL, in the format `projects/*/policy`.
                +       * Required. A new or updated
                +       * [policy][google.cloud.binaryauthorization.v1.Policy] value. The service
                +       * will overwrite the [policy
                +       * name][google.cloud.binaryauthorization.v1.Policy.name] field with the
                +       * resource name in the request URL, in the format `projects/*/policy`.
                        * 
                * * @@ -1450,9 +1491,11 @@ public Builder clearPolicy() { * * *
                -       * Required. A new or updated [policy][google.cloud.binaryauthorization.v1.Policy] value. The service will
                -       * overwrite the [policy name][google.cloud.binaryauthorization.v1.Policy.name] field with the resource name in
                -       * the request URL, in the format `projects/*/policy`.
                +       * Required. A new or updated
                +       * [policy][google.cloud.binaryauthorization.v1.Policy] value. The service
                +       * will overwrite the [policy
                +       * name][google.cloud.binaryauthorization.v1.Policy.name] field with the
                +       * resource name in the request URL, in the format `projects/*/policy`.
                        * 
                * * @@ -1542,7 +1585,8 @@ public interface CreateAttestorRequestOrBuilder * * *
                -     * Required. The parent of this [attestor][google.cloud.binaryauthorization.v1.Attestor].
                +     * Required. The parent of this
                +     * [attestor][google.cloud.binaryauthorization.v1.Attestor].
                      * 
                * * @@ -1557,7 +1601,8 @@ public interface CreateAttestorRequestOrBuilder * * *
                -     * Required. The parent of this [attestor][google.cloud.binaryauthorization.v1.Attestor].
                +     * Required. The parent of this
                +     * [attestor][google.cloud.binaryauthorization.v1.Attestor].
                      * 
                * * @@ -1598,9 +1643,11 @@ public interface CreateAttestorRequestOrBuilder * * *
                -     * Required. The initial [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
                -     * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name,
                -     * in the format `projects/*/attestors/*`.
                +     * Required. The initial
                +     * [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service
                +     * will overwrite the [attestor
                +     * name][google.cloud.binaryauthorization.v1.Attestor.name] field with the
                +     * resource name, in the format `projects/*/attestors/*`.
                      * 
                * * @@ -1615,9 +1662,11 @@ public interface CreateAttestorRequestOrBuilder * * *
                -     * Required. The initial [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
                -     * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name,
                -     * in the format `projects/*/attestors/*`.
                +     * Required. The initial
                +     * [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service
                +     * will overwrite the [attestor
                +     * name][google.cloud.binaryauthorization.v1.Attestor.name] field with the
                +     * resource name, in the format `projects/*/attestors/*`.
                      * 
                * * @@ -1632,9 +1681,11 @@ public interface CreateAttestorRequestOrBuilder * * *
                -     * Required. The initial [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
                -     * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name,
                -     * in the format `projects/*/attestors/*`.
                +     * Required. The initial
                +     * [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service
                +     * will overwrite the [attestor
                +     * name][google.cloud.binaryauthorization.v1.Attestor.name] field with the
                +     * resource name, in the format `projects/*/attestors/*`.
                      * 
                * * @@ -1649,7 +1700,8 @@ public interface CreateAttestorRequestOrBuilder * * *
                -   * Request message for [BinauthzManagementService.CreateAttestor][].
                +   * Request message for
                +   * [BinauthzManagementServiceV1.CreateAttestor][google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1.CreateAttestor].
                    * 
                * * Protobuf type {@code google.cloud.binaryauthorization.v1.CreateAttestorRequest} @@ -1707,7 +1759,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                -     * Required. The parent of this [attestor][google.cloud.binaryauthorization.v1.Attestor].
                +     * Required. The parent of this
                +     * [attestor][google.cloud.binaryauthorization.v1.Attestor].
                      * 
                * * @@ -1733,7 +1786,8 @@ public java.lang.String getParent() { * * *
                -     * Required. The parent of this [attestor][google.cloud.binaryauthorization.v1.Attestor].
                +     * Required. The parent of this
                +     * [attestor][google.cloud.binaryauthorization.v1.Attestor].
                      * 
                * * @@ -1815,9 +1869,11 @@ public com.google.protobuf.ByteString getAttestorIdBytes() { * * *
                -     * Required. The initial [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
                -     * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name,
                -     * in the format `projects/*/attestors/*`.
                +     * Required. The initial
                +     * [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service
                +     * will overwrite the [attestor
                +     * name][google.cloud.binaryauthorization.v1.Attestor.name] field with the
                +     * resource name, in the format `projects/*/attestors/*`.
                      * 
                * * @@ -1835,9 +1891,11 @@ public boolean hasAttestor() { * * *
                -     * Required. The initial [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
                -     * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name,
                -     * in the format `projects/*/attestors/*`.
                +     * Required. The initial
                +     * [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service
                +     * will overwrite the [attestor
                +     * name][google.cloud.binaryauthorization.v1.Attestor.name] field with the
                +     * resource name, in the format `projects/*/attestors/*`.
                      * 
                * * @@ -1858,9 +1916,11 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor * * *
                -     * Required. The initial [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
                -     * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name,
                -     * in the format `projects/*/attestors/*`.
                +     * Required. The initial
                +     * [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service
                +     * will overwrite the [attestor
                +     * name][google.cloud.binaryauthorization.v1.Attestor.name] field with the
                +     * resource name, in the format `projects/*/attestors/*`.
                      * 
                * * @@ -2085,7 +2145,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
                -     * Request message for [BinauthzManagementService.CreateAttestor][].
                +     * Request message for
                +     * [BinauthzManagementServiceV1.CreateAttestor][google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1.CreateAttestor].
                      * 
                * * Protobuf type {@code google.cloud.binaryauthorization.v1.CreateAttestorRequest} @@ -2301,7 +2362,8 @@ public Builder mergeFrom( * * *
                -       * Required. The parent of this [attestor][google.cloud.binaryauthorization.v1.Attestor].
                +       * Required. The parent of this
                +       * [attestor][google.cloud.binaryauthorization.v1.Attestor].
                        * 
                * * @@ -2326,7 +2388,8 @@ public java.lang.String getParent() { * * *
                -       * Required. The parent of this [attestor][google.cloud.binaryauthorization.v1.Attestor].
                +       * Required. The parent of this
                +       * [attestor][google.cloud.binaryauthorization.v1.Attestor].
                        * 
                * * @@ -2351,7 +2414,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
                -       * Required. The parent of this [attestor][google.cloud.binaryauthorization.v1.Attestor].
                +       * Required. The parent of this
                +       * [attestor][google.cloud.binaryauthorization.v1.Attestor].
                        * 
                * * @@ -2375,7 +2439,8 @@ public Builder setParent(java.lang.String value) { * * *
                -       * Required. The parent of this [attestor][google.cloud.binaryauthorization.v1.Attestor].
                +       * Required. The parent of this
                +       * [attestor][google.cloud.binaryauthorization.v1.Attestor].
                        * 
                * * @@ -2395,7 +2460,8 @@ public Builder clearParent() { * * *
                -       * Required. The parent of this [attestor][google.cloud.binaryauthorization.v1.Attestor].
                +       * Required. The parent of this
                +       * [attestor][google.cloud.binaryauthorization.v1.Attestor].
                        * 
                * * @@ -2538,9 +2604,11 @@ public Builder setAttestorIdBytes(com.google.protobuf.ByteString value) { * * *
                -       * Required. The initial [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
                -       * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name,
                -       * in the format `projects/*/attestors/*`.
                +       * Required. The initial
                +       * [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service
                +       * will overwrite the [attestor
                +       * name][google.cloud.binaryauthorization.v1.Attestor.name] field with the
                +       * resource name, in the format `projects/*/attestors/*`.
                        * 
                * * @@ -2557,9 +2625,11 @@ public boolean hasAttestor() { * * *
                -       * Required. The initial [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
                -       * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name,
                -       * in the format `projects/*/attestors/*`.
                +       * Required. The initial
                +       * [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service
                +       * will overwrite the [attestor
                +       * name][google.cloud.binaryauthorization.v1.Attestor.name] field with the
                +       * resource name, in the format `projects/*/attestors/*`.
                        * 
                * * @@ -2584,9 +2654,11 @@ public boolean hasAttestor() { * * *
                -       * Required. The initial [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
                -       * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name,
                -       * in the format `projects/*/attestors/*`.
                +       * Required. The initial
                +       * [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service
                +       * will overwrite the [attestor
                +       * name][google.cloud.binaryauthorization.v1.Attestor.name] field with the
                +       * resource name, in the format `projects/*/attestors/*`.
                        * 
                * * @@ -2612,9 +2684,11 @@ public Builder setAttestor( * * *
                -       * Required. The initial [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
                -       * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name,
                -       * in the format `projects/*/attestors/*`.
                +       * Required. The initial
                +       * [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service
                +       * will overwrite the [attestor
                +       * name][google.cloud.binaryauthorization.v1.Attestor.name] field with the
                +       * resource name, in the format `projects/*/attestors/*`.
                        * 
                * * @@ -2638,9 +2712,11 @@ public Builder setAttestor( * * *
                -       * Required. The initial [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
                -       * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name,
                -       * in the format `projects/*/attestors/*`.
                +       * Required. The initial
                +       * [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service
                +       * will overwrite the [attestor
                +       * name][google.cloud.binaryauthorization.v1.Attestor.name] field with the
                +       * resource name, in the format `projects/*/attestors/*`.
                        * 
                * * @@ -2673,9 +2749,11 @@ public Builder mergeAttestor( * * *
                -       * Required. The initial [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
                -       * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name,
                -       * in the format `projects/*/attestors/*`.
                +       * Required. The initial
                +       * [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service
                +       * will overwrite the [attestor
                +       * name][google.cloud.binaryauthorization.v1.Attestor.name] field with the
                +       * resource name, in the format `projects/*/attestors/*`.
                        * 
                * * @@ -2697,9 +2775,11 @@ public Builder clearAttestor() { * * *
                -       * Required. The initial [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
                -       * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name,
                -       * in the format `projects/*/attestors/*`.
                +       * Required. The initial
                +       * [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service
                +       * will overwrite the [attestor
                +       * name][google.cloud.binaryauthorization.v1.Attestor.name] field with the
                +       * resource name, in the format `projects/*/attestors/*`.
                        * 
                * * @@ -2717,9 +2797,11 @@ public Builder clearAttestor() { * * *
                -       * Required. The initial [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
                -       * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name,
                -       * in the format `projects/*/attestors/*`.
                +       * Required. The initial
                +       * [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service
                +       * will overwrite the [attestor
                +       * name][google.cloud.binaryauthorization.v1.Attestor.name] field with the
                +       * resource name, in the format `projects/*/attestors/*`.
                        * 
                * * @@ -2742,9 +2824,11 @@ public Builder clearAttestor() { * * *
                -       * Required. The initial [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
                -       * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name,
                -       * in the format `projects/*/attestors/*`.
                +       * Required. The initial
                +       * [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service
                +       * will overwrite the [attestor
                +       * name][google.cloud.binaryauthorization.v1.Attestor.name] field with the
                +       * resource name, in the format `projects/*/attestors/*`.
                        * 
                * * @@ -2835,8 +2919,9 @@ public interface GetAttestorRequestOrBuilder * * *
                -     * Required. The name of the [attestor][google.cloud.binaryauthorization.v1.Attestor] to retrieve, in the format
                -     * `projects/*/attestors/*`.
                +     * Required. The name of the
                +     * [attestor][google.cloud.binaryauthorization.v1.Attestor] to retrieve, in
                +     * the format `projects/*/attestors/*`.
                      * 
                * * @@ -2851,8 +2936,9 @@ public interface GetAttestorRequestOrBuilder * * *
                -     * Required. The name of the [attestor][google.cloud.binaryauthorization.v1.Attestor] to retrieve, in the format
                -     * `projects/*/attestors/*`.
                +     * Required. The name of the
                +     * [attestor][google.cloud.binaryauthorization.v1.Attestor] to retrieve, in
                +     * the format `projects/*/attestors/*`.
                      * 
                * * @@ -2868,7 +2954,8 @@ public interface GetAttestorRequestOrBuilder * * *
                -   * Request message for [BinauthzManagementService.GetAttestor][].
                +   * Request message for
                +   * [BinauthzManagementServiceV1.GetAttestor][google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1.GetAttestor].
                    * 
                * * Protobuf type {@code google.cloud.binaryauthorization.v1.GetAttestorRequest} @@ -2924,8 +3011,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                -     * Required. The name of the [attestor][google.cloud.binaryauthorization.v1.Attestor] to retrieve, in the format
                -     * `projects/*/attestors/*`.
                +     * Required. The name of the
                +     * [attestor][google.cloud.binaryauthorization.v1.Attestor] to retrieve, in
                +     * the format `projects/*/attestors/*`.
                      * 
                * * @@ -2951,8 +3039,9 @@ public java.lang.String getName() { * * *
                -     * Required. The name of the [attestor][google.cloud.binaryauthorization.v1.Attestor] to retrieve, in the format
                -     * `projects/*/attestors/*`.
                +     * Required. The name of the
                +     * [attestor][google.cloud.binaryauthorization.v1.Attestor] to retrieve, in
                +     * the format `projects/*/attestors/*`.
                      * 
                * * @@ -3148,7 +3237,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
                -     * Request message for [BinauthzManagementService.GetAttestor][].
                +     * Request message for
                +     * [BinauthzManagementServiceV1.GetAttestor][google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1.GetAttestor].
                      * 
                * * Protobuf type {@code google.cloud.binaryauthorization.v1.GetAttestorRequest} @@ -3316,8 +3406,9 @@ public Builder mergeFrom( * * *
                -       * Required. The name of the [attestor][google.cloud.binaryauthorization.v1.Attestor] to retrieve, in the format
                -       * `projects/*/attestors/*`.
                +       * Required. The name of the
                +       * [attestor][google.cloud.binaryauthorization.v1.Attestor] to retrieve, in
                +       * the format `projects/*/attestors/*`.
                        * 
                * * @@ -3342,8 +3433,9 @@ public java.lang.String getName() { * * *
                -       * Required. The name of the [attestor][google.cloud.binaryauthorization.v1.Attestor] to retrieve, in the format
                -       * `projects/*/attestors/*`.
                +       * Required. The name of the
                +       * [attestor][google.cloud.binaryauthorization.v1.Attestor] to retrieve, in
                +       * the format `projects/*/attestors/*`.
                        * 
                * * @@ -3368,8 +3460,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
                -       * Required. The name of the [attestor][google.cloud.binaryauthorization.v1.Attestor] to retrieve, in the format
                -       * `projects/*/attestors/*`.
                +       * Required. The name of the
                +       * [attestor][google.cloud.binaryauthorization.v1.Attestor] to retrieve, in
                +       * the format `projects/*/attestors/*`.
                        * 
                * * @@ -3393,8 +3486,9 @@ public Builder setName(java.lang.String value) { * * *
                -       * Required. The name of the [attestor][google.cloud.binaryauthorization.v1.Attestor] to retrieve, in the format
                -       * `projects/*/attestors/*`.
                +       * Required. The name of the
                +       * [attestor][google.cloud.binaryauthorization.v1.Attestor] to retrieve, in
                +       * the format `projects/*/attestors/*`.
                        * 
                * * @@ -3414,8 +3508,9 @@ public Builder clearName() { * * *
                -       * Required. The name of the [attestor][google.cloud.binaryauthorization.v1.Attestor] to retrieve, in the format
                -       * `projects/*/attestors/*`.
                +       * Required. The name of the
                +       * [attestor][google.cloud.binaryauthorization.v1.Attestor] to retrieve, in
                +       * the format `projects/*/attestors/*`.
                        * 
                * * @@ -3502,9 +3597,11 @@ public interface UpdateAttestorRequestOrBuilder * * *
                -     * Required. The updated [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
                -     * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name
                -     * in the request URL, in the format `projects/*/attestors/*`.
                +     * Required. The updated
                +     * [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service
                +     * will overwrite the [attestor
                +     * name][google.cloud.binaryauthorization.v1.Attestor.name] field with the
                +     * resource name in the request URL, in the format `projects/*/attestors/*`.
                      * 
                * * @@ -3519,9 +3616,11 @@ public interface UpdateAttestorRequestOrBuilder * * *
                -     * Required. The updated [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
                -     * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name
                -     * in the request URL, in the format `projects/*/attestors/*`.
                +     * Required. The updated
                +     * [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service
                +     * will overwrite the [attestor
                +     * name][google.cloud.binaryauthorization.v1.Attestor.name] field with the
                +     * resource name in the request URL, in the format `projects/*/attestors/*`.
                      * 
                * * @@ -3536,9 +3635,11 @@ public interface UpdateAttestorRequestOrBuilder * * *
                -     * Required. The updated [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
                -     * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name
                -     * in the request URL, in the format `projects/*/attestors/*`.
                +     * Required. The updated
                +     * [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service
                +     * will overwrite the [attestor
                +     * name][google.cloud.binaryauthorization.v1.Attestor.name] field with the
                +     * resource name in the request URL, in the format `projects/*/attestors/*`.
                      * 
                * * @@ -3553,7 +3654,8 @@ public interface UpdateAttestorRequestOrBuilder * * *
                -   * Request message for [BinauthzManagementService.UpdateAttestor][].
                +   * Request message for
                +   * [BinauthzManagementServiceV1.UpdateAttestor][google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1.UpdateAttestor].
                    * 
                * * Protobuf type {@code google.cloud.binaryauthorization.v1.UpdateAttestorRequest} @@ -3606,9 +3708,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                -     * Required. The updated [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
                -     * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name
                -     * in the request URL, in the format `projects/*/attestors/*`.
                +     * Required. The updated
                +     * [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service
                +     * will overwrite the [attestor
                +     * name][google.cloud.binaryauthorization.v1.Attestor.name] field with the
                +     * resource name in the request URL, in the format `projects/*/attestors/*`.
                      * 
                * * @@ -3626,9 +3730,11 @@ public boolean hasAttestor() { * * *
                -     * Required. The updated [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
                -     * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name
                -     * in the request URL, in the format `projects/*/attestors/*`.
                +     * Required. The updated
                +     * [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service
                +     * will overwrite the [attestor
                +     * name][google.cloud.binaryauthorization.v1.Attestor.name] field with the
                +     * resource name in the request URL, in the format `projects/*/attestors/*`.
                      * 
                * * @@ -3649,9 +3755,11 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor * * *
                -     * Required. The updated [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
                -     * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name
                -     * in the request URL, in the format `projects/*/attestors/*`.
                +     * Required. The updated
                +     * [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service
                +     * will overwrite the [attestor
                +     * name][google.cloud.binaryauthorization.v1.Attestor.name] field with the
                +     * resource name in the request URL, in the format `projects/*/attestors/*`.
                      * 
                * * @@ -3858,7 +3966,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
                -     * Request message for [BinauthzManagementService.UpdateAttestor][].
                +     * Request message for
                +     * [BinauthzManagementServiceV1.UpdateAttestor][google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1.UpdateAttestor].
                      * 
                * * Protobuf type {@code google.cloud.binaryauthorization.v1.UpdateAttestorRequest} @@ -4049,9 +4158,11 @@ public Builder mergeFrom( * * *
                -       * Required. The updated [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
                -       * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name
                -       * in the request URL, in the format `projects/*/attestors/*`.
                +       * Required. The updated
                +       * [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service
                +       * will overwrite the [attestor
                +       * name][google.cloud.binaryauthorization.v1.Attestor.name] field with the
                +       * resource name in the request URL, in the format `projects/*/attestors/*`.
                        * 
                * * @@ -4068,9 +4179,11 @@ public boolean hasAttestor() { * * *
                -       * Required. The updated [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
                -       * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name
                -       * in the request URL, in the format `projects/*/attestors/*`.
                +       * Required. The updated
                +       * [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service
                +       * will overwrite the [attestor
                +       * name][google.cloud.binaryauthorization.v1.Attestor.name] field with the
                +       * resource name in the request URL, in the format `projects/*/attestors/*`.
                        * 
                * * @@ -4095,9 +4208,11 @@ public boolean hasAttestor() { * * *
                -       * Required. The updated [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
                -       * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name
                -       * in the request URL, in the format `projects/*/attestors/*`.
                +       * Required. The updated
                +       * [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service
                +       * will overwrite the [attestor
                +       * name][google.cloud.binaryauthorization.v1.Attestor.name] field with the
                +       * resource name in the request URL, in the format `projects/*/attestors/*`.
                        * 
                * * @@ -4123,9 +4238,11 @@ public Builder setAttestor( * * *
                -       * Required. The updated [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
                -       * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name
                -       * in the request URL, in the format `projects/*/attestors/*`.
                +       * Required. The updated
                +       * [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service
                +       * will overwrite the [attestor
                +       * name][google.cloud.binaryauthorization.v1.Attestor.name] field with the
                +       * resource name in the request URL, in the format `projects/*/attestors/*`.
                        * 
                * * @@ -4149,9 +4266,11 @@ public Builder setAttestor( * * *
                -       * Required. The updated [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
                -       * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name
                -       * in the request URL, in the format `projects/*/attestors/*`.
                +       * Required. The updated
                +       * [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service
                +       * will overwrite the [attestor
                +       * name][google.cloud.binaryauthorization.v1.Attestor.name] field with the
                +       * resource name in the request URL, in the format `projects/*/attestors/*`.
                        * 
                * * @@ -4184,9 +4303,11 @@ public Builder mergeAttestor( * * *
                -       * Required. The updated [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
                -       * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name
                -       * in the request URL, in the format `projects/*/attestors/*`.
                +       * Required. The updated
                +       * [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service
                +       * will overwrite the [attestor
                +       * name][google.cloud.binaryauthorization.v1.Attestor.name] field with the
                +       * resource name in the request URL, in the format `projects/*/attestors/*`.
                        * 
                * * @@ -4208,9 +4329,11 @@ public Builder clearAttestor() { * * *
                -       * Required. The updated [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
                -       * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name
                -       * in the request URL, in the format `projects/*/attestors/*`.
                +       * Required. The updated
                +       * [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service
                +       * will overwrite the [attestor
                +       * name][google.cloud.binaryauthorization.v1.Attestor.name] field with the
                +       * resource name in the request URL, in the format `projects/*/attestors/*`.
                        * 
                * * @@ -4228,9 +4351,11 @@ public Builder clearAttestor() { * * *
                -       * Required. The updated [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
                -       * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name
                -       * in the request URL, in the format `projects/*/attestors/*`.
                +       * Required. The updated
                +       * [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service
                +       * will overwrite the [attestor
                +       * name][google.cloud.binaryauthorization.v1.Attestor.name] field with the
                +       * resource name in the request URL, in the format `projects/*/attestors/*`.
                        * 
                * * @@ -4253,9 +4378,11 @@ public Builder clearAttestor() { * * *
                -       * Required. The updated [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
                -       * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name
                -       * in the request URL, in the format `projects/*/attestors/*`.
                +       * Required. The updated
                +       * [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service
                +       * will overwrite the [attestor
                +       * name][google.cloud.binaryauthorization.v1.Attestor.name] field with the
                +       * resource name in the request URL, in the format `projects/*/attestors/*`.
                        * 
                * * @@ -4347,7 +4474,8 @@ public interface ListAttestorsRequestOrBuilder * *
                      * Required. The resource name of the project associated with the
                -     * [attestors][google.cloud.binaryauthorization.v1.Attestor], in the format `projects/*`.
                +     * [attestors][google.cloud.binaryauthorization.v1.Attestor], in the format
                +     * `projects/*`.
                      * 
                * * @@ -4363,7 +4491,8 @@ public interface ListAttestorsRequestOrBuilder * *
                      * Required. The resource name of the project associated with the
                -     * [attestors][google.cloud.binaryauthorization.v1.Attestor], in the format `projects/*`.
                +     * [attestors][google.cloud.binaryauthorization.v1.Attestor], in the format
                +     * `projects/*`.
                      * 
                * * @@ -4393,8 +4522,9 @@ public interface ListAttestorsRequestOrBuilder * *
                      * A token identifying a page of results the server should return. Typically,
                -     * this is the value of [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1.ListAttestorsResponse.next_page_token] returned
                -     * from the previous call to the `ListAttestors` method.
                +     * this is the value of
                +     * [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1.ListAttestorsResponse.next_page_token]
                +     * returned from the previous call to the `ListAttestors` method.
                      * 
                * * string page_token = 3; @@ -4408,8 +4538,9 @@ public interface ListAttestorsRequestOrBuilder * *
                      * A token identifying a page of results the server should return. Typically,
                -     * this is the value of [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1.ListAttestorsResponse.next_page_token] returned
                -     * from the previous call to the `ListAttestors` method.
                +     * this is the value of
                +     * [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1.ListAttestorsResponse.next_page_token]
                +     * returned from the previous call to the `ListAttestors` method.
                      * 
                * * string page_token = 3; @@ -4423,7 +4554,8 @@ public interface ListAttestorsRequestOrBuilder * * *
                -   * Request message for [BinauthzManagementService.ListAttestors][].
                +   * Request message for
                +   * [BinauthzManagementServiceV1.ListAttestors][google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1.ListAttestors].
                    * 
                * * Protobuf type {@code google.cloud.binaryauthorization.v1.ListAttestorsRequest} @@ -4481,7 +4613,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
                      * Required. The resource name of the project associated with the
                -     * [attestors][google.cloud.binaryauthorization.v1.Attestor], in the format `projects/*`.
                +     * [attestors][google.cloud.binaryauthorization.v1.Attestor], in the format
                +     * `projects/*`.
                      * 
                * * @@ -4508,7 +4641,8 @@ public java.lang.String getParent() { * *
                      * Required. The resource name of the project associated with the
                -     * [attestors][google.cloud.binaryauthorization.v1.Attestor], in the format `projects/*`.
                +     * [attestors][google.cloud.binaryauthorization.v1.Attestor], in the format
                +     * `projects/*`.
                      * 
                * * @@ -4560,8 +4694,9 @@ public int getPageSize() { * *
                      * A token identifying a page of results the server should return. Typically,
                -     * this is the value of [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1.ListAttestorsResponse.next_page_token] returned
                -     * from the previous call to the `ListAttestors` method.
                +     * this is the value of
                +     * [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1.ListAttestorsResponse.next_page_token]
                +     * returned from the previous call to the `ListAttestors` method.
                      * 
                * * string page_token = 3; @@ -4586,8 +4721,9 @@ public java.lang.String getPageToken() { * *
                      * A token identifying a page of results the server should return. Typically,
                -     * this is the value of [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1.ListAttestorsResponse.next_page_token] returned
                -     * from the previous call to the `ListAttestors` method.
                +     * this is the value of
                +     * [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1.ListAttestorsResponse.next_page_token]
                +     * returned from the previous call to the `ListAttestors` method.
                      * 
                * * string page_token = 3; @@ -4799,7 +4935,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
                -     * Request message for [BinauthzManagementService.ListAttestors][].
                +     * Request message for
                +     * [BinauthzManagementServiceV1.ListAttestors][google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1.ListAttestors].
                      * 
                * * Protobuf type {@code google.cloud.binaryauthorization.v1.ListAttestorsRequest} @@ -4999,7 +5136,8 @@ public Builder mergeFrom( * *
                        * Required. The resource name of the project associated with the
                -       * [attestors][google.cloud.binaryauthorization.v1.Attestor], in the format `projects/*`.
                +       * [attestors][google.cloud.binaryauthorization.v1.Attestor], in the format
                +       * `projects/*`.
                        * 
                * * @@ -5025,7 +5163,8 @@ public java.lang.String getParent() { * *
                        * Required. The resource name of the project associated with the
                -       * [attestors][google.cloud.binaryauthorization.v1.Attestor], in the format `projects/*`.
                +       * [attestors][google.cloud.binaryauthorization.v1.Attestor], in the format
                +       * `projects/*`.
                        * 
                * * @@ -5051,7 +5190,8 @@ public com.google.protobuf.ByteString getParentBytes() { * *
                        * Required. The resource name of the project associated with the
                -       * [attestors][google.cloud.binaryauthorization.v1.Attestor], in the format `projects/*`.
                +       * [attestors][google.cloud.binaryauthorization.v1.Attestor], in the format
                +       * `projects/*`.
                        * 
                * * @@ -5076,7 +5216,8 @@ public Builder setParent(java.lang.String value) { * *
                        * Required. The resource name of the project associated with the
                -       * [attestors][google.cloud.binaryauthorization.v1.Attestor], in the format `projects/*`.
                +       * [attestors][google.cloud.binaryauthorization.v1.Attestor], in the format
                +       * `projects/*`.
                        * 
                * * @@ -5097,7 +5238,8 @@ public Builder clearParent() { * *
                        * Required. The resource name of the project associated with the
                -       * [attestors][google.cloud.binaryauthorization.v1.Attestor], in the format `projects/*`.
                +       * [attestors][google.cloud.binaryauthorization.v1.Attestor], in the format
                +       * `projects/*`.
                        * 
                * * @@ -5184,8 +5326,9 @@ public Builder clearPageSize() { * *
                        * A token identifying a page of results the server should return. Typically,
                -       * this is the value of [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1.ListAttestorsResponse.next_page_token] returned
                -       * from the previous call to the `ListAttestors` method.
                +       * this is the value of
                +       * [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1.ListAttestorsResponse.next_page_token]
                +       * returned from the previous call to the `ListAttestors` method.
                        * 
                * * string page_token = 3; @@ -5209,8 +5352,9 @@ public java.lang.String getPageToken() { * *
                        * A token identifying a page of results the server should return. Typically,
                -       * this is the value of [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1.ListAttestorsResponse.next_page_token] returned
                -       * from the previous call to the `ListAttestors` method.
                +       * this is the value of
                +       * [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1.ListAttestorsResponse.next_page_token]
                +       * returned from the previous call to the `ListAttestors` method.
                        * 
                * * string page_token = 3; @@ -5234,8 +5378,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * *
                        * A token identifying a page of results the server should return. Typically,
                -       * this is the value of [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1.ListAttestorsResponse.next_page_token] returned
                -       * from the previous call to the `ListAttestors` method.
                +       * this is the value of
                +       * [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1.ListAttestorsResponse.next_page_token]
                +       * returned from the previous call to the `ListAttestors` method.
                        * 
                * * string page_token = 3; @@ -5258,8 +5403,9 @@ public Builder setPageToken(java.lang.String value) { * *
                        * A token identifying a page of results the server should return. Typically,
                -       * this is the value of [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1.ListAttestorsResponse.next_page_token] returned
                -       * from the previous call to the `ListAttestors` method.
                +       * this is the value of
                +       * [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1.ListAttestorsResponse.next_page_token]
                +       * returned from the previous call to the `ListAttestors` method.
                        * 
                * * string page_token = 3; @@ -5278,8 +5424,9 @@ public Builder clearPageToken() { * *
                        * A token identifying a page of results the server should return. Typically,
                -       * this is the value of [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1.ListAttestorsResponse.next_page_token] returned
                -       * from the previous call to the `ListAttestors` method.
                +       * this is the value of
                +       * [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1.ListAttestorsResponse.next_page_token]
                +       * returned from the previous call to the `ListAttestors` method.
                        * 
                * * string page_token = 3; @@ -5426,8 +5573,9 @@ com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor getAtte * *
                      * A token to retrieve the next page of results. Pass this value in the
                -     * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1.ListAttestorsRequest.page_token] field in the subsequent call to the
                -     * `ListAttestors` method to retrieve the next page of results.
                +     * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1.ListAttestorsRequest.page_token]
                +     * field in the subsequent call to the `ListAttestors` method to retrieve the
                +     * next page of results.
                      * 
                * * string next_page_token = 2; @@ -5441,8 +5589,9 @@ com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor getAtte * *
                      * A token to retrieve the next page of results. Pass this value in the
                -     * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1.ListAttestorsRequest.page_token] field in the subsequent call to the
                -     * `ListAttestors` method to retrieve the next page of results.
                +     * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1.ListAttestorsRequest.page_token]
                +     * field in the subsequent call to the `ListAttestors` method to retrieve the
                +     * next page of results.
                      * 
                * * string next_page_token = 2; @@ -5456,7 +5605,8 @@ com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor getAtte * * *
                -   * Response message for [BinauthzManagementService.ListAttestors][].
                +   * Response message for
                +   * [BinauthzManagementServiceV1.ListAttestors][google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1.ListAttestors].
                    * 
                * * Protobuf type {@code google.cloud.binaryauthorization.v1.ListAttestorsResponse} @@ -5596,8 +5746,9 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor * *
                      * A token to retrieve the next page of results. Pass this value in the
                -     * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1.ListAttestorsRequest.page_token] field in the subsequent call to the
                -     * `ListAttestors` method to retrieve the next page of results.
                +     * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1.ListAttestorsRequest.page_token]
                +     * field in the subsequent call to the `ListAttestors` method to retrieve the
                +     * next page of results.
                      * 
                * * string next_page_token = 2; @@ -5622,8 +5773,9 @@ public java.lang.String getNextPageToken() { * *
                      * A token to retrieve the next page of results. Pass this value in the
                -     * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1.ListAttestorsRequest.page_token] field in the subsequent call to the
                -     * `ListAttestors` method to retrieve the next page of results.
                +     * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1.ListAttestorsRequest.page_token]
                +     * field in the subsequent call to the `ListAttestors` method to retrieve the
                +     * next page of results.
                      * 
                * * string next_page_token = 2; @@ -5840,7 +5992,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
                -     * Response message for [BinauthzManagementService.ListAttestors][].
                +     * Response message for
                +     * [BinauthzManagementServiceV1.ListAttestors][google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1.ListAttestors].
                      * 
                * * Protobuf type {@code google.cloud.binaryauthorization.v1.ListAttestorsResponse} @@ -6476,8 +6629,9 @@ public Builder removeAttestors(int index) { * *
                        * A token to retrieve the next page of results. Pass this value in the
                -       * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1.ListAttestorsRequest.page_token] field in the subsequent call to the
                -       * `ListAttestors` method to retrieve the next page of results.
                +       * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1.ListAttestorsRequest.page_token]
                +       * field in the subsequent call to the `ListAttestors` method to retrieve the
                +       * next page of results.
                        * 
                * * string next_page_token = 2; @@ -6501,8 +6655,9 @@ public java.lang.String getNextPageToken() { * *
                        * A token to retrieve the next page of results. Pass this value in the
                -       * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1.ListAttestorsRequest.page_token] field in the subsequent call to the
                -       * `ListAttestors` method to retrieve the next page of results.
                +       * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1.ListAttestorsRequest.page_token]
                +       * field in the subsequent call to the `ListAttestors` method to retrieve the
                +       * next page of results.
                        * 
                * * string next_page_token = 2; @@ -6526,8 +6681,9 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * *
                        * A token to retrieve the next page of results. Pass this value in the
                -       * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1.ListAttestorsRequest.page_token] field in the subsequent call to the
                -       * `ListAttestors` method to retrieve the next page of results.
                +       * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1.ListAttestorsRequest.page_token]
                +       * field in the subsequent call to the `ListAttestors` method to retrieve the
                +       * next page of results.
                        * 
                * * string next_page_token = 2; @@ -6550,8 +6706,9 @@ public Builder setNextPageToken(java.lang.String value) { * *
                        * A token to retrieve the next page of results. Pass this value in the
                -       * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1.ListAttestorsRequest.page_token] field in the subsequent call to the
                -       * `ListAttestors` method to retrieve the next page of results.
                +       * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1.ListAttestorsRequest.page_token]
                +       * field in the subsequent call to the `ListAttestors` method to retrieve the
                +       * next page of results.
                        * 
                * * string next_page_token = 2; @@ -6570,8 +6727,9 @@ public Builder clearNextPageToken() { * *
                        * A token to retrieve the next page of results. Pass this value in the
                -       * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1.ListAttestorsRequest.page_token] field in the subsequent call to the
                -       * `ListAttestors` method to retrieve the next page of results.
                +       * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1.ListAttestorsRequest.page_token]
                +       * field in the subsequent call to the `ListAttestors` method to retrieve the
                +       * next page of results.
                        * 
                * * string next_page_token = 2; @@ -6657,8 +6815,9 @@ public interface DeleteAttestorRequestOrBuilder * * *
                -     * Required. The name of the [attestors][google.cloud.binaryauthorization.v1.Attestor] to delete, in the format
                -     * `projects/*/attestors/*`.
                +     * Required. The name of the
                +     * [attestors][google.cloud.binaryauthorization.v1.Attestor] to delete, in the
                +     * format `projects/*/attestors/*`.
                      * 
                * * @@ -6673,8 +6832,9 @@ public interface DeleteAttestorRequestOrBuilder * * *
                -     * Required. The name of the [attestors][google.cloud.binaryauthorization.v1.Attestor] to delete, in the format
                -     * `projects/*/attestors/*`.
                +     * Required. The name of the
                +     * [attestors][google.cloud.binaryauthorization.v1.Attestor] to delete, in the
                +     * format `projects/*/attestors/*`.
                      * 
                * * @@ -6690,7 +6850,8 @@ public interface DeleteAttestorRequestOrBuilder * * *
                -   * Request message for [BinauthzManagementService.DeleteAttestor][].
                +   * Request message for
                +   * [BinauthzManagementServiceV1.DeleteAttestor][google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1.DeleteAttestor].
                    * 
                * * Protobuf type {@code google.cloud.binaryauthorization.v1.DeleteAttestorRequest} @@ -6746,8 +6907,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                -     * Required. The name of the [attestors][google.cloud.binaryauthorization.v1.Attestor] to delete, in the format
                -     * `projects/*/attestors/*`.
                +     * Required. The name of the
                +     * [attestors][google.cloud.binaryauthorization.v1.Attestor] to delete, in the
                +     * format `projects/*/attestors/*`.
                      * 
                * * @@ -6773,8 +6935,9 @@ public java.lang.String getName() { * * *
                -     * Required. The name of the [attestors][google.cloud.binaryauthorization.v1.Attestor] to delete, in the format
                -     * `projects/*/attestors/*`.
                +     * Required. The name of the
                +     * [attestors][google.cloud.binaryauthorization.v1.Attestor] to delete, in the
                +     * format `projects/*/attestors/*`.
                      * 
                * * @@ -6982,7 +7145,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
                -     * Request message for [BinauthzManagementService.DeleteAttestor][].
                +     * Request message for
                +     * [BinauthzManagementServiceV1.DeleteAttestor][google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1.DeleteAttestor].
                      * 
                * * Protobuf type {@code google.cloud.binaryauthorization.v1.DeleteAttestorRequest} @@ -7153,8 +7317,9 @@ public Builder mergeFrom( * * *
                -       * Required. The name of the [attestors][google.cloud.binaryauthorization.v1.Attestor] to delete, in the format
                -       * `projects/*/attestors/*`.
                +       * Required. The name of the
                +       * [attestors][google.cloud.binaryauthorization.v1.Attestor] to delete, in the
                +       * format `projects/*/attestors/*`.
                        * 
                * * @@ -7179,8 +7344,9 @@ public java.lang.String getName() { * * *
                -       * Required. The name of the [attestors][google.cloud.binaryauthorization.v1.Attestor] to delete, in the format
                -       * `projects/*/attestors/*`.
                +       * Required. The name of the
                +       * [attestors][google.cloud.binaryauthorization.v1.Attestor] to delete, in the
                +       * format `projects/*/attestors/*`.
                        * 
                * * @@ -7205,8 +7371,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
                -       * Required. The name of the [attestors][google.cloud.binaryauthorization.v1.Attestor] to delete, in the format
                -       * `projects/*/attestors/*`.
                +       * Required. The name of the
                +       * [attestors][google.cloud.binaryauthorization.v1.Attestor] to delete, in the
                +       * format `projects/*/attestors/*`.
                        * 
                * * @@ -7230,8 +7397,9 @@ public Builder setName(java.lang.String value) { * * *
                -       * Required. The name of the [attestors][google.cloud.binaryauthorization.v1.Attestor] to delete, in the format
                -       * `projects/*/attestors/*`.
                +       * Required. The name of the
                +       * [attestors][google.cloud.binaryauthorization.v1.Attestor] to delete, in the
                +       * format `projects/*/attestors/*`.
                        * 
                * * @@ -7251,8 +7419,9 @@ public Builder clearName() { * * *
                -       * Required. The name of the [attestors][google.cloud.binaryauthorization.v1.Attestor] to delete, in the format
                -       * `projects/*/attestors/*`.
                +       * Required. The name of the
                +       * [attestors][google.cloud.binaryauthorization.v1.Attestor] to delete, in the
                +       * format `projects/*/attestors/*`.
                        * 
                * * @@ -8026,7 +8195,8 @@ public interface ValidateAttestationOccurrenceRequestOrBuilder * * *
                -     * Required. The resource name of the [Attestor][google.cloud.binaryauthorization.v1.Attestor] of the
                +     * Required. The resource name of the
                +     * [Attestor][google.cloud.binaryauthorization.v1.Attestor] of the
                      * [occurrence][grafeas.v1.Occurrence], in the format
                      * `projects/*/attestors/*`.
                      * 
                @@ -8041,7 +8211,8 @@ public interface ValidateAttestationOccurrenceRequestOrBuilder * * *
                -     * Required. The resource name of the [Attestor][google.cloud.binaryauthorization.v1.Attestor] of the
                +     * Required. The resource name of the
                +     * [Attestor][google.cloud.binaryauthorization.v1.Attestor] of the
                      * [occurrence][grafeas.v1.Occurrence], in the format
                      * `projects/*/attestors/*`.
                      * 
                @@ -8057,9 +8228,9 @@ public interface ValidateAttestationOccurrenceRequestOrBuilder * *
                      * Required. An [AttestationOccurrence][grafeas.v1.AttestationOccurrence] to
                -     * be checked that it can be verified by the Attestor. It does not have to be
                -     * an existing entity in Container Analysis. It must otherwise be a valid
                -     * AttestationOccurrence.
                +     * be checked that it can be verified by the `Attestor`. It does not have to
                +     * be an existing entity in Container Analysis. It must otherwise be a valid
                +     * `AttestationOccurrence`.
                      * 
                * * @@ -8075,9 +8246,9 @@ public interface ValidateAttestationOccurrenceRequestOrBuilder * *
                      * Required. An [AttestationOccurrence][grafeas.v1.AttestationOccurrence] to
                -     * be checked that it can be verified by the Attestor. It does not have to be
                -     * an existing entity in Container Analysis. It must otherwise be a valid
                -     * AttestationOccurrence.
                +     * be checked that it can be verified by the `Attestor`. It does not have to
                +     * be an existing entity in Container Analysis. It must otherwise be a valid
                +     * `AttestationOccurrence`.
                      * 
                * * @@ -8093,9 +8264,9 @@ public interface ValidateAttestationOccurrenceRequestOrBuilder * *
                      * Required. An [AttestationOccurrence][grafeas.v1.AttestationOccurrence] to
                -     * be checked that it can be verified by the Attestor. It does not have to be
                -     * an existing entity in Container Analysis. It must otherwise be a valid
                -     * AttestationOccurrence.
                +     * be checked that it can be verified by the `Attestor`. It does not have to
                +     * be an existing entity in Container Analysis. It must otherwise be a valid
                +     * `AttestationOccurrence`.
                      * 
                * * @@ -8227,7 +8398,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                -     * Required. The resource name of the [Attestor][google.cloud.binaryauthorization.v1.Attestor] of the
                +     * Required. The resource name of the
                +     * [Attestor][google.cloud.binaryauthorization.v1.Attestor] of the
                      * [occurrence][grafeas.v1.Occurrence], in the format
                      * `projects/*/attestors/*`.
                      * 
                @@ -8253,7 +8425,8 @@ public java.lang.String getAttestor() { * * *
                -     * Required. The resource name of the [Attestor][google.cloud.binaryauthorization.v1.Attestor] of the
                +     * Required. The resource name of the
                +     * [Attestor][google.cloud.binaryauthorization.v1.Attestor] of the
                      * [occurrence][grafeas.v1.Occurrence], in the format
                      * `projects/*/attestors/*`.
                      * 
                @@ -8283,9 +8456,9 @@ public com.google.protobuf.ByteString getAttestorBytes() { * *
                      * Required. An [AttestationOccurrence][grafeas.v1.AttestationOccurrence] to
                -     * be checked that it can be verified by the Attestor. It does not have to be
                -     * an existing entity in Container Analysis. It must otherwise be a valid
                -     * AttestationOccurrence.
                +     * be checked that it can be verified by the `Attestor`. It does not have to
                +     * be an existing entity in Container Analysis. It must otherwise be a valid
                +     * `AttestationOccurrence`.
                      * 
                * * @@ -8304,9 +8477,9 @@ public boolean hasAttestation() { * *
                      * Required. An [AttestationOccurrence][grafeas.v1.AttestationOccurrence] to
                -     * be checked that it can be verified by the Attestor. It does not have to be
                -     * an existing entity in Container Analysis. It must otherwise be a valid
                -     * AttestationOccurrence.
                +     * be checked that it can be verified by the `Attestor`. It does not have to
                +     * be an existing entity in Container Analysis. It must otherwise be a valid
                +     * `AttestationOccurrence`.
                      * 
                * * @@ -8327,9 +8500,9 @@ public io.grafeas.v1.AttestationOccurrence getAttestation() { * *
                      * Required. An [AttestationOccurrence][grafeas.v1.AttestationOccurrence] to
                -     * be checked that it can be verified by the Attestor. It does not have to be
                -     * an existing entity in Container Analysis. It must otherwise be a valid
                -     * AttestationOccurrence.
                +     * be checked that it can be verified by the `Attestor`. It does not have to
                +     * be an existing entity in Container Analysis. It must otherwise be a valid
                +     * `AttestationOccurrence`.
                      * 
                * * @@ -8921,7 +9094,8 @@ public Builder mergeFrom( * * *
                -       * Required. The resource name of the [Attestor][google.cloud.binaryauthorization.v1.Attestor] of the
                +       * Required. The resource name of the
                +       * [Attestor][google.cloud.binaryauthorization.v1.Attestor] of the
                        * [occurrence][grafeas.v1.Occurrence], in the format
                        * `projects/*/attestors/*`.
                        * 
                @@ -8946,7 +9120,8 @@ public java.lang.String getAttestor() { * * *
                -       * Required. The resource name of the [Attestor][google.cloud.binaryauthorization.v1.Attestor] of the
                +       * Required. The resource name of the
                +       * [Attestor][google.cloud.binaryauthorization.v1.Attestor] of the
                        * [occurrence][grafeas.v1.Occurrence], in the format
                        * `projects/*/attestors/*`.
                        * 
                @@ -8971,7 +9146,8 @@ public com.google.protobuf.ByteString getAttestorBytes() { * * *
                -       * Required. The resource name of the [Attestor][google.cloud.binaryauthorization.v1.Attestor] of the
                +       * Required. The resource name of the
                +       * [Attestor][google.cloud.binaryauthorization.v1.Attestor] of the
                        * [occurrence][grafeas.v1.Occurrence], in the format
                        * `projects/*/attestors/*`.
                        * 
                @@ -8995,7 +9171,8 @@ public Builder setAttestor(java.lang.String value) { * * *
                -       * Required. The resource name of the [Attestor][google.cloud.binaryauthorization.v1.Attestor] of the
                +       * Required. The resource name of the
                +       * [Attestor][google.cloud.binaryauthorization.v1.Attestor] of the
                        * [occurrence][grafeas.v1.Occurrence], in the format
                        * `projects/*/attestors/*`.
                        * 
                @@ -9015,7 +9192,8 @@ public Builder clearAttestor() { * * *
                -       * Required. The resource name of the [Attestor][google.cloud.binaryauthorization.v1.Attestor] of the
                +       * Required. The resource name of the
                +       * [Attestor][google.cloud.binaryauthorization.v1.Attestor] of the
                        * [occurrence][grafeas.v1.Occurrence], in the format
                        * `projects/*/attestors/*`.
                        * 
                @@ -9048,9 +9226,9 @@ public Builder setAttestorBytes(com.google.protobuf.ByteString value) { * *
                        * Required. An [AttestationOccurrence][grafeas.v1.AttestationOccurrence] to
                -       * be checked that it can be verified by the Attestor. It does not have to be
                -       * an existing entity in Container Analysis. It must otherwise be a valid
                -       * AttestationOccurrence.
                +       * be checked that it can be verified by the `Attestor`. It does not have to
                +       * be an existing entity in Container Analysis. It must otherwise be a valid
                +       * `AttestationOccurrence`.
                        * 
                * * @@ -9068,9 +9246,9 @@ public boolean hasAttestation() { * *
                        * Required. An [AttestationOccurrence][grafeas.v1.AttestationOccurrence] to
                -       * be checked that it can be verified by the Attestor. It does not have to be
                -       * an existing entity in Container Analysis. It must otherwise be a valid
                -       * AttestationOccurrence.
                +       * be checked that it can be verified by the `Attestor`. It does not have to
                +       * be an existing entity in Container Analysis. It must otherwise be a valid
                +       * `AttestationOccurrence`.
                        * 
                * * @@ -9094,9 +9272,9 @@ public io.grafeas.v1.AttestationOccurrence getAttestation() { * *
                        * Required. An [AttestationOccurrence][grafeas.v1.AttestationOccurrence] to
                -       * be checked that it can be verified by the Attestor. It does not have to be
                -       * an existing entity in Container Analysis. It must otherwise be a valid
                -       * AttestationOccurrence.
                +       * be checked that it can be verified by the `Attestor`. It does not have to
                +       * be an existing entity in Container Analysis. It must otherwise be a valid
                +       * `AttestationOccurrence`.
                        * 
                * * @@ -9122,9 +9300,9 @@ public Builder setAttestation(io.grafeas.v1.AttestationOccurrence value) { * *
                        * Required. An [AttestationOccurrence][grafeas.v1.AttestationOccurrence] to
                -       * be checked that it can be verified by the Attestor. It does not have to be
                -       * an existing entity in Container Analysis. It must otherwise be a valid
                -       * AttestationOccurrence.
                +       * be checked that it can be verified by the `Attestor`. It does not have to
                +       * be an existing entity in Container Analysis. It must otherwise be a valid
                +       * `AttestationOccurrence`.
                        * 
                * * @@ -9147,9 +9325,9 @@ public Builder setAttestation(io.grafeas.v1.AttestationOccurrence.Builder builde * *
                        * Required. An [AttestationOccurrence][grafeas.v1.AttestationOccurrence] to
                -       * be checked that it can be verified by the Attestor. It does not have to be
                -       * an existing entity in Container Analysis. It must otherwise be a valid
                -       * AttestationOccurrence.
                +       * be checked that it can be verified by the `Attestor`. It does not have to
                +       * be an existing entity in Container Analysis. It must otherwise be a valid
                +       * `AttestationOccurrence`.
                        * 
                * * @@ -9180,9 +9358,9 @@ public Builder mergeAttestation(io.grafeas.v1.AttestationOccurrence value) { * *
                        * Required. An [AttestationOccurrence][grafeas.v1.AttestationOccurrence] to
                -       * be checked that it can be verified by the Attestor. It does not have to be
                -       * an existing entity in Container Analysis. It must otherwise be a valid
                -       * AttestationOccurrence.
                +       * be checked that it can be verified by the `Attestor`. It does not have to
                +       * be an existing entity in Container Analysis. It must otherwise be a valid
                +       * `AttestationOccurrence`.
                        * 
                * * @@ -9205,9 +9383,9 @@ public Builder clearAttestation() { * *
                        * Required. An [AttestationOccurrence][grafeas.v1.AttestationOccurrence] to
                -       * be checked that it can be verified by the Attestor. It does not have to be
                -       * an existing entity in Container Analysis. It must otherwise be a valid
                -       * AttestationOccurrence.
                +       * be checked that it can be verified by the `Attestor`. It does not have to
                +       * be an existing entity in Container Analysis. It must otherwise be a valid
                +       * `AttestationOccurrence`.
                        * 
                * * @@ -9225,9 +9403,9 @@ public io.grafeas.v1.AttestationOccurrence.Builder getAttestationBuilder() { * *
                        * Required. An [AttestationOccurrence][grafeas.v1.AttestationOccurrence] to
                -       * be checked that it can be verified by the Attestor. It does not have to be
                -       * an existing entity in Container Analysis. It must otherwise be a valid
                -       * AttestationOccurrence.
                +       * be checked that it can be verified by the `Attestor`. It does not have to
                +       * be an existing entity in Container Analysis. It must otherwise be a valid
                +       * `AttestationOccurrence`.
                        * 
                * * @@ -9249,9 +9427,9 @@ public io.grafeas.v1.AttestationOccurrenceOrBuilder getAttestationOrBuilder() { * *
                        * Required. An [AttestationOccurrence][grafeas.v1.AttestationOccurrence] to
                -       * be checked that it can be verified by the Attestor. It does not have to be
                -       * an existing entity in Container Analysis. It must otherwise be a valid
                -       * AttestationOccurrence.
                +       * be checked that it can be verified by the `Attestor`. It does not have to
                +       * be an existing entity in Container Analysis. It must otherwise be a valid
                +       * `AttestationOccurrence`.
                        * 
                * * @@ -9690,7 +9868,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                -     * The enum returned in the "result" field.
                +     * The enum returned in the `result` field.
                      * 
                * * Protobuf enum {@code @@ -10792,14 +10970,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "stors/*}:validateAttestationOccurrence:\001" + "*\032V\312A\"binaryauthorization.googleapis.com" + "\322A.https://www.googleapis.com/auth/cloud" - + "-platformB\214\002\n5com.google.protos.google.c" + + "-platformB\211\002\n5com.google.protos.google.c" + "loud.binaryauthorization.v1P\000ZYcloud.goo" + "gle.com/go/binaryauthorization/apiv1/bin" + "aryauthorizationpb;binaryauthorizationpb" - + "\370\001\001\252\002#Google.Cloud.BinaryAuthorization.V" - + "1\312\002#Google\\Cloud\\BinaryAuthorization\\V1\352" - + "\002&Google::Cloud::BinaryAuthorization::V1" - + "b\006proto3" + + "\252\002#Google.Cloud.BinaryAuthorization.V1\312\002" + + "#Google\\Cloud\\BinaryAuthorization\\V1\352\002&G" + + "oogle::Cloud::BinaryAuthorization::V1b\006p" + + "roto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-binary-authorization/proto-google-cloud-binary-authorization-v1/src/main/proto/google/cloud/binaryauthorization/v1/resources.proto b/java-binary-authorization/proto-google-cloud-binary-authorization-v1/src/main/proto/google/cloud/binaryauthorization/v1/resources.proto index 4f1397f306f6..45f820539291 100644 --- a/java-binary-authorization/proto-google-cloud-binary-authorization-v1/src/main/proto/google/cloud/binaryauthorization/v1/resources.proto +++ b/java-binary-authorization/proto-google-cloud-binary-authorization-v1/src/main/proto/google/cloud/binaryauthorization/v1/resources.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,7 +20,6 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; -option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.BinaryAuthorization.V1"; option go_package = "cloud.google.com/go/binaryauthorization/apiv1/binaryauthorizationpb;binaryauthorizationpb"; option java_multiple_files = false; @@ -28,7 +27,10 @@ option java_package = "com.google.protos.google.cloud.binaryauthorization.v1"; option php_namespace = "Google\\Cloud\\BinaryAuthorization\\V1"; option ruby_package = "Google::Cloud::BinaryAuthorization::V1"; -// A [policy][google.cloud.binaryauthorization.v1.Policy] for container image binary authorization. +// LINT: LEGACY_NAMES + +// A [policy][google.cloud.binaryauthorization.v1.Policy] for container image +// binary authorization. message Policy { option (google.api.resource) = { type: "binaryauthorization.googleapis.com/Policy" @@ -37,7 +39,7 @@ message Policy { }; enum GlobalPolicyEvaluationMode { - // Not specified: DISABLE is assumed. + // Not specified: `DISABLE` is assumed. GLOBAL_POLICY_EVALUATION_MODE_UNSPECIFIED = 0; // Enables system policy evaluation. @@ -58,47 +60,68 @@ message Policy { // policy for common system-level images. Images not covered by the global // policy will be subject to the project admission policy. This setting // has no effect when specified inside a global admission policy. - GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(google.api.field_behavior) = OPTIONAL]; + GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 + [(google.api.field_behavior) = OPTIONAL]; // Optional. Admission policy allowlisting. A matching admission request will // always be permitted. This feature is typically used to exclude Google or // third-party infrastructure images from Binary Authorization policies. - repeated AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Per-cluster admission rules. Cluster spec format: + repeated AdmissionWhitelistPattern admission_whitelist_patterns = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A valid policy has only one of the following rule maps non-empty, + // i.e. only one of `cluster_admission_rules`, + // `kubernetes_namespace_admission_rules`, + // `kubernetes_service_account_admission_rules`, + // or `istio_service_identity_admission_rules` can be non-empty. + // Per-cluster admission rules. Cluster spec format: // `location.clusterId`. There can be at most one admission rule per cluster // spec. // A `location` is either a compute zone (e.g. us-central1-a) or a region // (e.g. us-central1). // For `clusterId` syntax restrictions see // https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters. - map cluster_admission_rules = 3 [(google.api.field_behavior) = OPTIONAL]; + map cluster_admission_rules = 3 + [(google.api.field_behavior) = OPTIONAL]; - // Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format: - // [a-z.-]+, e.g. 'some-namespace' - map kubernetes_namespace_admission_rules = 10 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Per-kubernetes-namespace admission rules. K8s namespace spec + // format: + // `[a-z.-]+`, e.g. `some-namespace` + map kubernetes_namespace_admission_rules = 10 + [(google.api.field_behavior) = OPTIONAL]; // Optional. Per-kubernetes-service-account admission rules. Service account - // spec format: `namespace:serviceaccount`. e.g. 'test-ns:default' - map kubernetes_service_account_admission_rules = 8 [(google.api.field_behavior) = OPTIONAL]; + // spec format: `namespace:serviceaccount`. e.g. `test-ns:default` + map kubernetes_service_account_admission_rules = 8 + [(google.api.field_behavior) = OPTIONAL]; // Optional. Per-istio-service-identity admission rules. Istio service // identity spec format: - // spiffe:///ns//sa/ or - // /ns//sa/ - // e.g. spiffe://example.com/ns/test-ns/sa/default - map istio_service_identity_admission_rules = 9 [(google.api.field_behavior) = OPTIONAL]; + // `spiffe:///ns//sa/` or + // `/ns//sa/` + // e.g. `spiffe://example.com/ns/test-ns/sa/default` + map istio_service_identity_admission_rules = 9 + [(google.api.field_behavior) = OPTIONAL]; // Required. Default admission rule for a cluster without a per-cluster, per- // kubernetes-service-account, or per-istio-service-identity admission rule. - AdmissionRule default_admission_rule = 4 [(google.api.field_behavior) = REQUIRED]; + AdmissionRule default_admission_rule = 4 + [(google.api.field_behavior) = REQUIRED]; // Output only. Time when the policy was last updated. - google.protobuf.Timestamp update_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. A checksum, returned by the server, that can be sent on update + // requests to ensure the policy has an up-to-date value before attempting to + // update it. See https://google.aip.dev/154. + string etag = 11 [(google.api.field_behavior) = OPTIONAL]; } -// An [admission allowlist pattern][google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern] exempts images -// from checks by [admission rules][google.cloud.binaryauthorization.v1.AdmissionRule]. +// An [admission allowlist +// pattern][google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern] +// exempts images from checks by [admission +// rules][google.cloud.binaryauthorization.v1.AdmissionRule]. message AdmissionWhitelistPattern { // An image name pattern to allowlist, in the form `registry/path/to/image`. // This supports a trailing `*` wildcard, but this is allowed only in @@ -107,23 +130,25 @@ message AdmissionWhitelistPattern { string name_pattern = 1; } -// An [admission rule][google.cloud.binaryauthorization.v1.AdmissionRule] specifies either that all container images -// used in a pod creation request must be attested to by one or more -// [attestors][google.cloud.binaryauthorization.v1.Attestor], that all pod creations will be allowed, or that all -// pod creations will be denied. +// An [admission rule][google.cloud.binaryauthorization.v1.AdmissionRule] +// specifies either that all container images used in a pod creation request +// must be attested to by one or more +// [attestors][google.cloud.binaryauthorization.v1.Attestor], that all pod +// creations will be allowed, or that all pod creations will be denied. // -// Images matching an [admission allowlist pattern][google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern] -// are exempted from admission rules and will never block a pod creation. +// Images matching an [admission allowlist +// pattern][google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern] are +// exempted from admission rules and will never block a pod creation. message AdmissionRule { enum EvaluationMode { // Do not use. EVALUATION_MODE_UNSPECIFIED = 0; - // This rule allows all all pod creations. + // This rule allows all pod creations. ALWAYS_ALLOW = 1; // This rule allows a pod creation if all the attestors listed in - // 'require_attestations_by' have valid attestations for all of the + // `require_attestations_by` have valid attestations for all of the // images in the pod spec. REQUIRE_ATTESTATION = 2; @@ -154,17 +179,18 @@ message AdmissionRule { // to a policy the principal issuing the policy change request must be able // to read the attestor resource. // - // Note: this field must be non-empty when the evaluation_mode field specifies - // REQUIRE_ATTESTATION, otherwise it must be empty. - repeated string require_attestations_by = 2 [(google.api.field_behavior) = OPTIONAL]; + // Note: this field must be non-empty when the `evaluation_mode` field + // specifies `REQUIRE_ATTESTATION`, otherwise it must be empty. + repeated string require_attestations_by = 2 + [(google.api.field_behavior) = OPTIONAL]; // Required. The action when a pod creation is denied by the admission rule. EnforcementMode enforcement_mode = 3 [(google.api.field_behavior) = REQUIRED]; } -// An [attestor][google.cloud.binaryauthorization.v1.Attestor] that attests to container image -// artifacts. An existing attestor cannot be modified except where -// indicated. +// An [attestor][google.cloud.binaryauthorization.v1.Attestor] that attests to +// container image artifacts. An existing attestor cannot be modified except +// where indicated. message Attestor { option (google.api.resource) = { type: "binaryauthorization.googleapis.com/Attestor" @@ -186,15 +212,22 @@ message Attestor { } // Output only. Time when the attestor was last updated. - google.protobuf.Timestamp update_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. A checksum, returned by the server, that can be sent on update + // requests to ensure the attestor has an up-to-date value before attempting + // to update it. See https://google.aip.dev/154. + string etag = 7 [(google.api.field_behavior) = OPTIONAL]; } -// An [user owned Grafeas note][google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote] references a Grafeas -// Attestation.Authority Note created by the user. +// An [user owned Grafeas +// note][google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote] references a +// Grafeas Attestation.Authority Note created by the user. message UserOwnedGrafeasNote { // Required. The Grafeas resource name of a Attestation.Authority Note, - // created by the user, in the format: `projects/*/notes/*`. This field may - // not be updated. + // created by the user, in the format: `projects/[PROJECT_ID]/notes/*`. This + // field may not be updated. A project ID must be used, not a project number. // // An attestation by this attestor is stored as a Grafeas // Attestation.Authority Occurrence that names a container image and that @@ -210,31 +243,34 @@ message UserOwnedGrafeasNote { // // If this field is empty, this attestor always returns that no // valid attestations exist. - repeated AttestorPublicKey public_keys = 2 [(google.api.field_behavior) = OPTIONAL]; + repeated AttestorPublicKey public_keys = 2 + [(google.api.field_behavior) = OPTIONAL]; // Output only. This field will contain the service account email address - // that this Attestor will use as the principal when querying Container + // that this attestor will use as the principal when querying Container // Analysis. Attestor administrators must grant this service account the - // IAM role needed to read attestations from the [note_reference][Note] in - // Container Analysis (`containeranalysis.notes.occurrences.viewer`). + // IAM role needed to read attestations from the + // [note_reference][google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote.note_reference] + // in Container Analysis (`containeranalysis.notes.occurrences.viewer`). // - // This email address is fixed for the lifetime of the Attestor, but callers + // This email address is fixed for the lifetime of the attestor, but callers // should not make any other assumptions about the service account email; // future versions may use an email based on a different naming pattern. - string delegation_service_account_email = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + string delegation_service_account_email = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; } -// A public key in the PkixPublicKey format (see -// https://tools.ietf.org/html/rfc5280#section-4.1.2.7 for details). -// Public keys of this type are typically textually encoded using the PEM -// format. +// A public key in the PkixPublicKey +// [format](https://tools.ietf.org/html/rfc5280#section-4.1.2.7). Public keys of +// this type are typically textually encoded using the PEM format. message PkixPublicKey { // Represents a signature algorithm and other information necessary to verify // signatures with a given public key. // This is based primarily on the public key types supported by Tink's - // PemKeyType, which is in turn based on KMS's supported signing algorithms. - // See https://cloud.google.com/kms/docs/algorithms. In the future, BinAuthz - // might support additional public key types independently of Tink and/or KMS. + // PemKeyType, which is in turn based on KMS's supported signing + // [algorithms](https://cloud.google.com/kms/docs/algorithms). In the future, + // Binary Authorization might support additional public key types + // independently of Tink and/or KMS. enum SignatureAlgorithm { option allow_alias = true; @@ -244,15 +280,27 @@ message PkixPublicKey { // RSASSA-PSS 2048 bit key with a SHA256 digest. RSA_PSS_2048_SHA256 = 1; + // RSASSA-PSS 2048 bit key with a SHA256 digest. + RSA_SIGN_PSS_2048_SHA256 = 1; + // RSASSA-PSS 3072 bit key with a SHA256 digest. RSA_PSS_3072_SHA256 = 2; + // RSASSA-PSS 3072 bit key with a SHA256 digest. + RSA_SIGN_PSS_3072_SHA256 = 2; + // RSASSA-PSS 4096 bit key with a SHA256 digest. RSA_PSS_4096_SHA256 = 3; + // RSASSA-PSS 4096 bit key with a SHA256 digest. + RSA_SIGN_PSS_4096_SHA256 = 3; + // RSASSA-PSS 4096 bit key with a SHA512 digest. RSA_PSS_4096_SHA512 = 4; + // RSASSA-PSS 4096 bit key with a SHA512 digest. + RSA_SIGN_PSS_4096_SHA512 = 4; + // RSASSA-PKCS1-v1_5 with a 2048 bit key and a SHA256 digest. RSA_SIGN_PKCS1_2048_SHA256 = 5; @@ -282,6 +330,9 @@ message PkixPublicKey { // ECDSA on the NIST P-521 curve with a SHA512 digest. EC_SIGN_P521_SHA512 = 11; + + // ML-DSA-65 Post-Quantum Cryptography signature algorithm. + ML_DSA_65 = 13; } // A PEM-encoded public key, as described in @@ -294,32 +345,48 @@ message PkixPublicKey { // identifiers encoded in `public_key_pem` (i.e. this algorithm must match // that of the public key). SignatureAlgorithm signature_algorithm = 2; + + // Optional. The ID of this public key. + // Signatures verified by Binary Authorization must include the ID of the + // public key that can be used to verify them. The ID must match exactly + // contents of the `key_id` field exactly. + // + // The ID may be explicitly provided by the caller, but it MUST be a valid + // RFC3986 URI. If `key_id` is left blank and this `PkixPublicKey` is not used + // in the context of a wrapper (see next paragraph), a default key ID will be + // computed based on the digest of the DER encoding of the public key. + // + // If this `PkixPublicKey` is used in the context of a wrapper that has its + // own notion of key ID (e.g. `AttestorPublicKey`), then this field can + // either match that value exactly, or be left blank, in which case it behaves + // exactly as though it is equal to that wrapper value. + string key_id = 3 [(google.api.field_behavior) = OPTIONAL]; } -// An [attestor public key][google.cloud.binaryauthorization.v1.AttestorPublicKey] that will be used to verify -// attestations signed by this attestor. +// An [attestor public +// key][google.cloud.binaryauthorization.v1.AttestorPublicKey] that will be used +// to verify attestations signed by this attestor. message AttestorPublicKey { // Optional. A descriptive comment. This field may be updated. string comment = 1 [(google.api.field_behavior) = OPTIONAL]; // The ID of this public key. - // Signatures verified by BinAuthz must include the ID of the public key that - // can be used to verify them, and that ID must match the contents of this - // field exactly. - // Additional restrictions on this field can be imposed based on which public - // key type is encapsulated. See the documentation on `public_key` cases below - // for details. + // Signatures verified by Binary Authorization must include the ID of the + // public key that can be used to verify them, and that ID must match the + // contents of this field exactly. Additional restrictions on this field can + // be imposed based on which public key type is encapsulated. See the + // documentation on `public_key` cases below for details. string id = 2; oneof public_key { // ASCII-armored representation of a PGP public key, as the entire output by // the command `gpg --export --armor foo@example.com` (either LF or CRLF // line endings). - // When using this field, `id` should be left blank. The BinAuthz API - // handlers will calculate the ID and fill it in automatically. BinAuthz - // computes this ID as the OpenPGP RFC4880 V4 fingerprint, represented as - // upper-case hex. If `id` is provided by the caller, it will be - // overwritten by the API-calculated ID. + // When using this field, `id` should be left blank. The Binary + // Authorization API handlers will calculate the ID and fill it in + // automatically. Binary Authorization computes this ID as the OpenPGP + // RFC4880 V4 fingerprint, represented as upper-case hex. If `id` is + // provided by the caller, it will be overwritten by the API-calculated ID. string ascii_armored_pgp_public_key = 3; // A raw PKIX SubjectPublicKeyInfo format public key. diff --git a/java-binary-authorization/proto-google-cloud-binary-authorization-v1/src/main/proto/google/cloud/binaryauthorization/v1/service.proto b/java-binary-authorization/proto-google-cloud-binary-authorization-v1/src/main/proto/google/cloud/binaryauthorization/v1/service.proto index 5699574d0fc3..f7381054bf53 100644 --- a/java-binary-authorization/proto-google-cloud-binary-authorization-v1/src/main/proto/google/cloud/binaryauthorization/v1/service.proto +++ b/java-binary-authorization/proto-google-cloud-binary-authorization-v1/src/main/proto/google/cloud/binaryauthorization/v1/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. @@ -24,7 +24,6 @@ import "google/cloud/binaryauthorization/v1/resources.proto"; import "google/protobuf/empty.proto"; import "grafeas/v1/attestation.proto"; -option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.BinaryAuthorization.V1"; option go_package = "cloud.google.com/go/binaryauthorization/apiv1/binaryauthorizationpb;binaryauthorizationpb"; option java_multiple_files = false; @@ -43,15 +42,19 @@ option ruby_package = "Google::Cloud::BinaryAuthorization::V1"; // * [Attestor][google.cloud.binaryauthorization.v1.Attestor] service BinauthzManagementServiceV1 { option (google.api.default_host) = "binaryauthorization.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; - - // A [policy][google.cloud.binaryauthorization.v1.Policy] specifies the [attestors][google.cloud.binaryauthorization.v1.Attestor] that must attest to - // a container image, before the project is allowed to deploy that - // image. There is at most one policy per project. All image admission - // requests are permitted if a project has no policy. + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // A [policy][google.cloud.binaryauthorization.v1.Policy] specifies the + // [attestors][google.cloud.binaryauthorization.v1.Attestor] that must attest + // to a container image, before the project is allowed to deploy that image. + // There is at most one policy per project. All image admission requests are + // permitted if a project has no policy. // - // Gets the [policy][google.cloud.binaryauthorization.v1.Policy] for this project. Returns a default - // [policy][google.cloud.binaryauthorization.v1.Policy] if the project does not have one. + // Gets the [policy][google.cloud.binaryauthorization.v1.Policy] for this + // project. Returns a default + // [policy][google.cloud.binaryauthorization.v1.Policy] if the project does + // not have one. rpc GetPolicy(GetPolicyRequest) returns (Policy) { option (google.api.http) = { get: "/v1/{name=projects/*/policy}" @@ -59,11 +62,12 @@ service BinauthzManagementServiceV1 { option (google.api.method_signature) = "name"; } - // Creates or updates a project's [policy][google.cloud.binaryauthorization.v1.Policy], and returns a copy of the - // new [policy][google.cloud.binaryauthorization.v1.Policy]. A policy is always updated as a whole, to avoid race - // conditions with concurrent policy enforcement (or management!) - // requests. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT - // if the request is malformed. + // Creates or updates a project's + // [policy][google.cloud.binaryauthorization.v1.Policy], and returns a copy of + // the new [policy][google.cloud.binaryauthorization.v1.Policy]. A policy is + // always updated as a whole, to avoid race conditions with concurrent policy + // enforcement (or management!) requests. Returns `NOT_FOUND` if the project + // does not exist, `INVALID_ARGUMENT` if the request is malformed. rpc UpdatePolicy(UpdatePolicyRequest) returns (Policy) { option (google.api.http) = { put: "/v1/{policy.name=projects/*/policy}" @@ -72,9 +76,11 @@ service BinauthzManagementServiceV1 { option (google.api.method_signature) = "policy"; } - // Creates an [attestor][google.cloud.binaryauthorization.v1.Attestor], and returns a copy of the new - // [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the project does not exist, - // INVALID_ARGUMENT if the request is malformed, ALREADY_EXISTS if the + // Creates an [attestor][google.cloud.binaryauthorization.v1.Attestor], and + // returns a copy of the new + // [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns + // `NOT_FOUND` if the project does not exist, `INVALID_ARGUMENT` if the + // request is malformed, `ALREADY_EXISTS` if the // [attestor][google.cloud.binaryauthorization.v1.Attestor] already exists. rpc CreateAttestor(CreateAttestorRequest) returns (Attestor) { option (google.api.http) = { @@ -85,7 +91,8 @@ service BinauthzManagementServiceV1 { } // Gets an [attestor][google.cloud.binaryauthorization.v1.Attestor]. - // Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist. + // Returns `NOT_FOUND` if the + // [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist. rpc GetAttestor(GetAttestorRequest) returns (Attestor) { option (google.api.http) = { get: "/v1/{name=projects/*/attestors/*}" @@ -94,7 +101,8 @@ service BinauthzManagementServiceV1 { } // Updates an [attestor][google.cloud.binaryauthorization.v1.Attestor]. - // Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist. + // Returns `NOT_FOUND` if the + // [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist. rpc UpdateAttestor(UpdateAttestorRequest) returns (Attestor) { option (google.api.http) = { put: "/v1/{attestor.name=projects/*/attestors/*}" @@ -104,7 +112,7 @@ service BinauthzManagementServiceV1 { } // Lists [attestors][google.cloud.binaryauthorization.v1.Attestor]. - // Returns INVALID_ARGUMENT if the project does not exist. + // Returns `INVALID_ARGUMENT` if the project does not exist. rpc ListAttestors(ListAttestorsRequest) returns (ListAttestorsResponse) { option (google.api.http) = { get: "/v1/{parent=projects/*}/attestors" @@ -112,7 +120,8 @@ service BinauthzManagementServiceV1 { option (google.api.method_signature) = "parent"; } - // Deletes an [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the + // Deletes an [attestor][google.cloud.binaryauthorization.v1.Attestor]. + // Returns `NOT_FOUND` if the // [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist. rpc DeleteAttestor(DeleteAttestorRequest) returns (google.protobuf.Empty) { option (google.api.http) = { @@ -125,7 +134,8 @@ service BinauthzManagementServiceV1 { // API for working with the system policy. service SystemPolicyV1 { option (google.api.default_host) = "binaryauthorization.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; // Gets the current system policy in the specified location. rpc GetSystemPolicy(GetSystemPolicyRequest) returns (Policy) { @@ -139,11 +149,13 @@ service SystemPolicyV1 { // BinAuthz Attestor verification service ValidationHelperV1 { option (google.api.default_host) = "binaryauthorization.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; - // Returns whether the given Attestation for the given image URI - // was signed by the given Attestor - rpc ValidateAttestationOccurrence(ValidateAttestationOccurrenceRequest) returns (ValidateAttestationOccurrenceResponse) { + // Returns whether the given `Attestation` for the given image URI + // was signed by the given `Attestor` + rpc ValidateAttestationOccurrence(ValidateAttestationOccurrenceRequest) + returns (ValidateAttestationOccurrenceResponse) { option (google.api.http) = { post: "/v1/{attestor=projects/*/attestors/*}:validateAttestationOccurrence" body: "*" @@ -151,10 +163,12 @@ service ValidationHelperV1 { } } -// Request message for [BinauthzManagementService.GetPolicy][]. +// Request message for +// [BinauthzManagementServiceV1.GetPolicy][google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1.GetPolicy]. message GetPolicyRequest { - // Required. The resource name of the [policy][google.cloud.binaryauthorization.v1.Policy] to retrieve, - // in the format `projects/*/policy`. + // Required. The resource name of the + // [policy][google.cloud.binaryauthorization.v1.Policy] to retrieve, in the + // format `projects/*/policy`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -163,17 +177,22 @@ message GetPolicyRequest { ]; } -// Request message for [BinauthzManagementService.UpdatePolicy][]. +// Request message for +// [BinauthzManagementServiceV1.UpdatePolicy][google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1.UpdatePolicy]. message UpdatePolicyRequest { - // Required. A new or updated [policy][google.cloud.binaryauthorization.v1.Policy] value. The service will - // overwrite the [policy name][google.cloud.binaryauthorization.v1.Policy.name] field with the resource name in - // the request URL, in the format `projects/*/policy`. + // Required. A new or updated + // [policy][google.cloud.binaryauthorization.v1.Policy] value. The service + // will overwrite the [policy + // name][google.cloud.binaryauthorization.v1.Policy.name] field with the + // resource name in the request URL, in the format `projects/*/policy`. Policy policy = 1 [(google.api.field_behavior) = REQUIRED]; } -// Request message for [BinauthzManagementService.CreateAttestor][]. +// Request message for +// [BinauthzManagementServiceV1.CreateAttestor][google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1.CreateAttestor]. message CreateAttestorRequest { - // Required. The parent of this [attestor][google.cloud.binaryauthorization.v1.Attestor]. + // Required. The parent of this + // [attestor][google.cloud.binaryauthorization.v1.Attestor]. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -184,16 +203,20 @@ message CreateAttestorRequest { // Required. The [attestors][google.cloud.binaryauthorization.v1.Attestor] ID. string attestor_id = 2 [(google.api.field_behavior) = REQUIRED]; - // Required. The initial [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will - // overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name, - // in the format `projects/*/attestors/*`. + // Required. The initial + // [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service + // will overwrite the [attestor + // name][google.cloud.binaryauthorization.v1.Attestor.name] field with the + // resource name, in the format `projects/*/attestors/*`. Attestor attestor = 3 [(google.api.field_behavior) = REQUIRED]; } -// Request message for [BinauthzManagementService.GetAttestor][]. +// Request message for +// [BinauthzManagementServiceV1.GetAttestor][google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1.GetAttestor]. message GetAttestorRequest { - // Required. The name of the [attestor][google.cloud.binaryauthorization.v1.Attestor] to retrieve, in the format - // `projects/*/attestors/*`. + // Required. The name of the + // [attestor][google.cloud.binaryauthorization.v1.Attestor] to retrieve, in + // the format `projects/*/attestors/*`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -202,18 +225,23 @@ message GetAttestorRequest { ]; } -// Request message for [BinauthzManagementService.UpdateAttestor][]. +// Request message for +// [BinauthzManagementServiceV1.UpdateAttestor][google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1.UpdateAttestor]. message UpdateAttestorRequest { - // Required. The updated [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will - // overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name - // in the request URL, in the format `projects/*/attestors/*`. + // Required. The updated + // [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service + // will overwrite the [attestor + // name][google.cloud.binaryauthorization.v1.Attestor.name] field with the + // resource name in the request URL, in the format `projects/*/attestors/*`. Attestor attestor = 1 [(google.api.field_behavior) = REQUIRED]; } -// Request message for [BinauthzManagementService.ListAttestors][]. +// Request message for +// [BinauthzManagementServiceV1.ListAttestors][google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1.ListAttestors]. message ListAttestorsRequest { // Required. The resource name of the project associated with the - // [attestors][google.cloud.binaryauthorization.v1.Attestor], in the format `projects/*`. + // [attestors][google.cloud.binaryauthorization.v1.Attestor], in the format + // `projects/*`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -226,26 +254,31 @@ message ListAttestorsRequest { int32 page_size = 2; // A token identifying a page of results the server should return. Typically, - // this is the value of [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1.ListAttestorsResponse.next_page_token] returned - // from the previous call to the `ListAttestors` method. + // this is the value of + // [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1.ListAttestorsResponse.next_page_token] + // returned from the previous call to the `ListAttestors` method. string page_token = 3; } -// Response message for [BinauthzManagementService.ListAttestors][]. +// Response message for +// [BinauthzManagementServiceV1.ListAttestors][google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1.ListAttestors]. message ListAttestorsResponse { // The list of [attestors][google.cloud.binaryauthorization.v1.Attestor]. repeated Attestor attestors = 1; // A token to retrieve the next page of results. Pass this value in the - // [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1.ListAttestorsRequest.page_token] field in the subsequent call to the - // `ListAttestors` method to retrieve the next page of results. + // [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1.ListAttestorsRequest.page_token] + // field in the subsequent call to the `ListAttestors` method to retrieve the + // next page of results. string next_page_token = 2; } -// Request message for [BinauthzManagementService.DeleteAttestor][]. +// Request message for +// [BinauthzManagementServiceV1.DeleteAttestor][google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1.DeleteAttestor]. message DeleteAttestorRequest { - // Required. The name of the [attestors][google.cloud.binaryauthorization.v1.Attestor] to delete, in the format - // `projects/*/attestors/*`. + // Required. The name of the + // [attestors][google.cloud.binaryauthorization.v1.Attestor] to delete, in the + // format `projects/*/attestors/*`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -269,16 +302,18 @@ message GetSystemPolicyRequest { // Request message for // [ValidationHelperV1.ValidateAttestationOccurrence][google.cloud.binaryauthorization.v1.ValidationHelperV1.ValidateAttestationOccurrence]. message ValidateAttestationOccurrenceRequest { - // Required. The resource name of the [Attestor][google.cloud.binaryauthorization.v1.Attestor] of the + // Required. The resource name of the + // [Attestor][google.cloud.binaryauthorization.v1.Attestor] of the // [occurrence][grafeas.v1.Occurrence], in the format // `projects/*/attestors/*`. string attestor = 1 [(google.api.field_behavior) = REQUIRED]; // Required. An [AttestationOccurrence][grafeas.v1.AttestationOccurrence] to - // be checked that it can be verified by the Attestor. It does not have to be - // an existing entity in Container Analysis. It must otherwise be a valid - // AttestationOccurrence. - grafeas.v1.AttestationOccurrence attestation = 2 [(google.api.field_behavior) = REQUIRED]; + // be checked that it can be verified by the `Attestor`. It does not have to + // be an existing entity in Container Analysis. It must otherwise be a valid + // `AttestationOccurrence`. + grafeas.v1.AttestationOccurrence attestation = 2 + [(google.api.field_behavior) = REQUIRED]; // Required. The resource name of the [Note][grafeas.v1.Note] to which the // containing [Occurrence][grafeas.v1.Occurrence] is associated. @@ -292,7 +327,7 @@ message ValidateAttestationOccurrenceRequest { // Response message for // [ValidationHelperV1.ValidateAttestationOccurrence][google.cloud.binaryauthorization.v1.ValidationHelperV1.ValidateAttestationOccurrence]. message ValidateAttestationOccurrenceResponse { - // The enum returned in the "result" field. + // The enum returned in the `result` field. enum Result { // Unspecified. RESULT_UNSPECIFIED = 0; diff --git a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AdmissionRule.java b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AdmissionRule.java index e816d14c38fa..3ccaa6cf8106 100644 --- a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AdmissionRule.java +++ b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AdmissionRule.java @@ -24,12 +24,14 @@ * * *
                - * An [admission rule][google.cloud.binaryauthorization.v1beta1.AdmissionRule] specifies either that all container images
                - * used in a pod creation request must be attested to by one or more
                - * [attestors][google.cloud.binaryauthorization.v1beta1.Attestor], that all pod creations will be allowed, or that all
                - * pod creations will be denied.
                + * An [admission rule][google.cloud.binaryauthorization.v1beta1.AdmissionRule]
                + * specifies either that all container images used in a pod creation request
                + * must be attested to by one or more
                + * [attestors][google.cloud.binaryauthorization.v1beta1.Attestor], that all pod
                + * creations will be allowed, or that all pod creations will be denied.
                  *
                - * Images matching an [admission allowlist pattern][google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern]
                + * Images matching an [admission allowlist
                + * pattern][google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern]
                  * are exempted from admission rules and will never block a pod creation.
                  * 
                * @@ -272,6 +274,8 @@ private EvaluationMode(int value) { * * *
                +   * TODO(wietse) re-word this text to 'per-image' instead of 'per-pod' and to
                +   * allow for three-way evaluation (allow, deny, delegate).
                    * Defines the possible actions when a pod creation is denied by an admission
                    * rule.
                    * 
                @@ -496,19 +500,6 @@ public int getEvaluationModeValue() { com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * - *
                -   * Optional. The resource names of the attestors that must attest to
                -   * a container image, in the format `projects/*/attestors/*`. Each
                -   * attestor must exist before a policy can reference it.  To add an attestor
                -   * to a policy the principal issuing the policy change request must be able
                -   * to read the attestor resource.
                -   *
                -   * Note: this field must be non-empty when the evaluation_mode field specifies
                -   * REQUIRE_ATTESTATION, otherwise it must be empty.
                -   * 
                - * * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @@ -519,19 +510,6 @@ public com.google.protobuf.ProtocolStringList getRequireAttestationsByList() { } /** - * - * - *
                -   * Optional. The resource names of the attestors that must attest to
                -   * a container image, in the format `projects/*/attestors/*`. Each
                -   * attestor must exist before a policy can reference it.  To add an attestor
                -   * to a policy the principal issuing the policy change request must be able
                -   * to read the attestor resource.
                -   *
                -   * Note: this field must be non-empty when the evaluation_mode field specifies
                -   * REQUIRE_ATTESTATION, otherwise it must be empty.
                -   * 
                - * * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @@ -542,19 +520,6 @@ public int getRequireAttestationsByCount() { } /** - * - * - *
                -   * Optional. The resource names of the attestors that must attest to
                -   * a container image, in the format `projects/*/attestors/*`. Each
                -   * attestor must exist before a policy can reference it.  To add an attestor
                -   * to a policy the principal issuing the policy change request must be able
                -   * to read the attestor resource.
                -   *
                -   * Note: this field must be non-empty when the evaluation_mode field specifies
                -   * REQUIRE_ATTESTATION, otherwise it must be empty.
                -   * 
                - * * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @@ -566,19 +531,6 @@ public java.lang.String getRequireAttestationsBy(int index) { } /** - * - * - *
                -   * Optional. The resource names of the attestors that must attest to
                -   * a container image, in the format `projects/*/attestors/*`. Each
                -   * attestor must exist before a policy can reference it.  To add an attestor
                -   * to a policy the principal issuing the policy change request must be able
                -   * to read the attestor resource.
                -   *
                -   * Note: this field must be non-empty when the evaluation_mode field specifies
                -   * REQUIRE_ATTESTATION, otherwise it must be empty.
                -   * 
                - * * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @@ -836,12 +788,14 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
                -   * An [admission rule][google.cloud.binaryauthorization.v1beta1.AdmissionRule] specifies either that all container images
                -   * used in a pod creation request must be attested to by one or more
                -   * [attestors][google.cloud.binaryauthorization.v1beta1.Attestor], that all pod creations will be allowed, or that all
                -   * pod creations will be denied.
                +   * An [admission rule][google.cloud.binaryauthorization.v1beta1.AdmissionRule]
                +   * specifies either that all container images used in a pod creation request
                +   * must be attested to by one or more
                +   * [attestors][google.cloud.binaryauthorization.v1beta1.Attestor], that all pod
                +   * creations will be allowed, or that all pod creations will be denied.
                    *
                -   * Images matching an [admission allowlist pattern][google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern]
                +   * Images matching an [admission allowlist
                +   * pattern][google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern]
                    * are exempted from admission rules and will never block a pod creation.
                    * 
                * @@ -1143,19 +1097,6 @@ private void ensureRequireAttestationsByIsMutable() { } /** - * - * - *
                -     * Optional. The resource names of the attestors that must attest to
                -     * a container image, in the format `projects/*/attestors/*`. Each
                -     * attestor must exist before a policy can reference it.  To add an attestor
                -     * to a policy the principal issuing the policy change request must be able
                -     * to read the attestor resource.
                -     *
                -     * Note: this field must be non-empty when the evaluation_mode field specifies
                -     * REQUIRE_ATTESTATION, otherwise it must be empty.
                -     * 
                - * * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @@ -1167,19 +1108,6 @@ public com.google.protobuf.ProtocolStringList getRequireAttestationsByList() { } /** - * - * - *
                -     * Optional. The resource names of the attestors that must attest to
                -     * a container image, in the format `projects/*/attestors/*`. Each
                -     * attestor must exist before a policy can reference it.  To add an attestor
                -     * to a policy the principal issuing the policy change request must be able
                -     * to read the attestor resource.
                -     *
                -     * Note: this field must be non-empty when the evaluation_mode field specifies
                -     * REQUIRE_ATTESTATION, otherwise it must be empty.
                -     * 
                - * * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @@ -1190,19 +1118,6 @@ public int getRequireAttestationsByCount() { } /** - * - * - *
                -     * Optional. The resource names of the attestors that must attest to
                -     * a container image, in the format `projects/*/attestors/*`. Each
                -     * attestor must exist before a policy can reference it.  To add an attestor
                -     * to a policy the principal issuing the policy change request must be able
                -     * to read the attestor resource.
                -     *
                -     * Note: this field must be non-empty when the evaluation_mode field specifies
                -     * REQUIRE_ATTESTATION, otherwise it must be empty.
                -     * 
                - * * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @@ -1214,19 +1129,6 @@ public java.lang.String getRequireAttestationsBy(int index) { } /** - * - * - *
                -     * Optional. The resource names of the attestors that must attest to
                -     * a container image, in the format `projects/*/attestors/*`. Each
                -     * attestor must exist before a policy can reference it.  To add an attestor
                -     * to a policy the principal issuing the policy change request must be able
                -     * to read the attestor resource.
                -     *
                -     * Note: this field must be non-empty when the evaluation_mode field specifies
                -     * REQUIRE_ATTESTATION, otherwise it must be empty.
                -     * 
                - * * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @@ -1238,19 +1140,6 @@ public com.google.protobuf.ByteString getRequireAttestationsByBytes(int index) { } /** - * - * - *
                -     * Optional. The resource names of the attestors that must attest to
                -     * a container image, in the format `projects/*/attestors/*`. Each
                -     * attestor must exist before a policy can reference it.  To add an attestor
                -     * to a policy the principal issuing the policy change request must be able
                -     * to read the attestor resource.
                -     *
                -     * Note: this field must be non-empty when the evaluation_mode field specifies
                -     * REQUIRE_ATTESTATION, otherwise it must be empty.
                -     * 
                - * * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @@ -1270,19 +1159,6 @@ public Builder setRequireAttestationsBy(int index, java.lang.String value) { } /** - * - * - *
                -     * Optional. The resource names of the attestors that must attest to
                -     * a container image, in the format `projects/*/attestors/*`. Each
                -     * attestor must exist before a policy can reference it.  To add an attestor
                -     * to a policy the principal issuing the policy change request must be able
                -     * to read the attestor resource.
                -     *
                -     * Note: this field must be non-empty when the evaluation_mode field specifies
                -     * REQUIRE_ATTESTATION, otherwise it must be empty.
                -     * 
                - * * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @@ -1301,19 +1177,6 @@ public Builder addRequireAttestationsBy(java.lang.String value) { } /** - * - * - *
                -     * Optional. The resource names of the attestors that must attest to
                -     * a container image, in the format `projects/*/attestors/*`. Each
                -     * attestor must exist before a policy can reference it.  To add an attestor
                -     * to a policy the principal issuing the policy change request must be able
                -     * to read the attestor resource.
                -     *
                -     * Note: this field must be non-empty when the evaluation_mode field specifies
                -     * REQUIRE_ATTESTATION, otherwise it must be empty.
                -     * 
                - * * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @@ -1329,19 +1192,6 @@ public Builder addAllRequireAttestationsBy(java.lang.Iterable } /** - * - * - *
                -     * Optional. The resource names of the attestors that must attest to
                -     * a container image, in the format `projects/*/attestors/*`. Each
                -     * attestor must exist before a policy can reference it.  To add an attestor
                -     * to a policy the principal issuing the policy change request must be able
                -     * to read the attestor resource.
                -     *
                -     * Note: this field must be non-empty when the evaluation_mode field specifies
                -     * REQUIRE_ATTESTATION, otherwise it must be empty.
                -     * 
                - * * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @@ -1356,19 +1206,6 @@ public Builder clearRequireAttestationsBy() { } /** - * - * - *
                -     * Optional. The resource names of the attestors that must attest to
                -     * a container image, in the format `projects/*/attestors/*`. Each
                -     * attestor must exist before a policy can reference it.  To add an attestor
                -     * to a policy the principal issuing the policy change request must be able
                -     * to read the attestor resource.
                -     *
                -     * Note: this field must be non-empty when the evaluation_mode field specifies
                -     * REQUIRE_ATTESTATION, otherwise it must be empty.
                -     * 
                - * * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; * * diff --git a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AdmissionRuleOrBuilder.java b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AdmissionRuleOrBuilder.java index e58599b9a2fe..c2501c960c5c 100644 --- a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AdmissionRuleOrBuilder.java +++ b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AdmissionRuleOrBuilder.java @@ -57,19 +57,6 @@ public interface AdmissionRuleOrBuilder com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode getEvaluationMode(); /** - * - * - *
                -   * Optional. The resource names of the attestors that must attest to
                -   * a container image, in the format `projects/*/attestors/*`. Each
                -   * attestor must exist before a policy can reference it.  To add an attestor
                -   * to a policy the principal issuing the policy change request must be able
                -   * to read the attestor resource.
                -   *
                -   * Note: this field must be non-empty when the evaluation_mode field specifies
                -   * REQUIRE_ATTESTATION, otherwise it must be empty.
                -   * 
                - * * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @@ -78,19 +65,6 @@ public interface AdmissionRuleOrBuilder java.util.List getRequireAttestationsByList(); /** - * - * - *
                -   * Optional. The resource names of the attestors that must attest to
                -   * a container image, in the format `projects/*/attestors/*`. Each
                -   * attestor must exist before a policy can reference it.  To add an attestor
                -   * to a policy the principal issuing the policy change request must be able
                -   * to read the attestor resource.
                -   *
                -   * Note: this field must be non-empty when the evaluation_mode field specifies
                -   * REQUIRE_ATTESTATION, otherwise it must be empty.
                -   * 
                - * * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @@ -99,19 +73,6 @@ public interface AdmissionRuleOrBuilder int getRequireAttestationsByCount(); /** - * - * - *
                -   * Optional. The resource names of the attestors that must attest to
                -   * a container image, in the format `projects/*/attestors/*`. Each
                -   * attestor must exist before a policy can reference it.  To add an attestor
                -   * to a policy the principal issuing the policy change request must be able
                -   * to read the attestor resource.
                -   *
                -   * Note: this field must be non-empty when the evaluation_mode field specifies
                -   * REQUIRE_ATTESTATION, otherwise it must be empty.
                -   * 
                - * * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @@ -121,19 +82,6 @@ public interface AdmissionRuleOrBuilder java.lang.String getRequireAttestationsBy(int index); /** - * - * - *
                -   * Optional. The resource names of the attestors that must attest to
                -   * a container image, in the format `projects/*/attestors/*`. Each
                -   * attestor must exist before a policy can reference it.  To add an attestor
                -   * to a policy the principal issuing the policy change request must be able
                -   * to read the attestor resource.
                -   *
                -   * Note: this field must be non-empty when the evaluation_mode field specifies
                -   * REQUIRE_ATTESTATION, otherwise it must be empty.
                -   * 
                - * * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; * * diff --git a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AdmissionWhitelistPattern.java b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AdmissionWhitelistPattern.java index 65323170cd13..dd9333ff5ff5 100644 --- a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AdmissionWhitelistPattern.java +++ b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AdmissionWhitelistPattern.java @@ -24,8 +24,10 @@ * * *
                - * An [admission allowlist pattern][google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern] exempts images
                - * from checks by [admission rules][google.cloud.binaryauthorization.v1beta1.AdmissionRule].
                + * An [admission allowlist
                + * pattern][google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern]
                + * exempts images from checks by [admission
                + * rules][google.cloud.binaryauthorization.v1beta1.AdmissionRule].
                  * 
                * * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern} @@ -302,8 +304,10 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
                -   * An [admission allowlist pattern][google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern] exempts images
                -   * from checks by [admission rules][google.cloud.binaryauthorization.v1beta1.AdmissionRule].
                +   * An [admission allowlist
                +   * pattern][google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern]
                +   * exempts images from checks by [admission
                +   * rules][google.cloud.binaryauthorization.v1beta1.AdmissionRule].
                    * 
                * * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern} diff --git a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/Attestor.java b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/Attestor.java index 0a91fd2b5cb6..2d1f99fb82b7 100644 --- a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/Attestor.java +++ b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/Attestor.java @@ -24,9 +24,9 @@ * * *
                - * An [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] that attests to container image
                - * artifacts. An existing attestor cannot be modified except where
                - * indicated.
                + * An [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] that attests
                + * to container image artifacts. An existing attestor cannot be modified except
                + * where indicated.
                  * 
                * * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.Attestor} @@ -56,6 +56,7 @@ private Attestor(com.google.protobuf.GeneratedMessage.Builder builder) { private Attestor() { name_ = ""; description_ = ""; + etag_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -345,6 +346,63 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } + public static final int ETAG_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
                +   * Optional. A checksum, returned by the server, that can be sent on update
                +   * requests to ensure the attestor has an up-to-date value before attempting
                +   * to update it. See https://google.aip.dev/154.
                +   * 
                + * + * string etag = 7 [(.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. A checksum, returned by the server, that can be sent on update
                +   * requests to ensure the attestor has an up-to-date value before attempting
                +   * to update it. See https://google.aip.dev/154.
                +   * 
                + * + * string etag = 7 [(.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; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -372,6 +430,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessage.writeString(output, 6, description_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, etag_); + } getUnknownFields().writeTo(output); } @@ -395,6 +456,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(6, description_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, etag_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -417,6 +481,7 @@ public boolean equals(final java.lang.Object obj) { if (hasUpdateTime()) { if (!getUpdateTime().equals(other.getUpdateTime())) return false; } + if (!getEtag().equals(other.getEtag())) return false; if (!getAttestorTypeCase().equals(other.getAttestorTypeCase())) return false; switch (attestorTypeCase_) { case 3: @@ -444,6 +509,8 @@ public int hashCode() { hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getUpdateTime().hashCode(); } + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); switch (attestorTypeCase_) { case 3: hash = (37 * hash) + USER_OWNED_DRYDOCK_NOTE_FIELD_NUMBER; @@ -558,9 +625,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
                -   * An [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] that attests to container image
                -   * artifacts. An existing attestor cannot be modified except where
                -   * indicated.
                +   * An [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] that attests
                +   * to container image artifacts. An existing attestor cannot be modified except
                +   * where indicated.
                    * 
                * * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.Attestor} @@ -614,6 +681,7 @@ public Builder clear() { updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } + etag_ = ""; attestorTypeCase_ = 0; attestorType_ = null; return this; @@ -664,6 +732,9 @@ private void buildPartial0(com.google.cloud.binaryauthorization.v1beta1.Attestor result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.etag_ = etag_; + } result.bitField0_ |= to_bitField0_; } @@ -701,6 +772,11 @@ public Builder mergeFrom(com.google.cloud.binaryauthorization.v1beta1.Attestor o if (other.hasUpdateTime()) { mergeUpdateTime(other.getUpdateTime()); } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000010; + onChanged(); + } switch (other.getAttestorTypeCase()) { case USER_OWNED_DRYDOCK_NOTE: { @@ -764,6 +840,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 50 + case 58: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1490,6 +1572,127 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { return updateTimeBuilder_; } + private java.lang.Object etag_ = ""; + + /** + * + * + *
                +     * Optional. A checksum, returned by the server, that can be sent on update
                +     * requests to ensure the attestor has an up-to-date value before attempting
                +     * to update it. See https://google.aip.dev/154.
                +     * 
                + * + * string etag = 7 [(.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. A checksum, returned by the server, that can be sent on update
                +     * requests to ensure the attestor has an up-to-date value before attempting
                +     * to update it. See https://google.aip.dev/154.
                +     * 
                + * + * string etag = 7 [(.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. A checksum, returned by the server, that can be sent on update
                +     * requests to ensure the attestor has an up-to-date value before attempting
                +     * to update it. See https://google.aip.dev/154.
                +     * 
                + * + * string etag = 7 [(.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_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. A checksum, returned by the server, that can be sent on update
                +     * requests to ensure the attestor has an up-to-date value before attempting
                +     * to update it. See https://google.aip.dev/154.
                +     * 
                + * + * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. A checksum, returned by the server, that can be sent on update
                +     * requests to ensure the attestor has an up-to-date value before attempting
                +     * to update it. See https://google.aip.dev/154.
                +     * 
                + * + * string etag = 7 [(.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_ |= 0x00000010; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1beta1.Attestor) } diff --git a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AttestorOrBuilder.java b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AttestorOrBuilder.java index d61c694dfe8a..f7b7d0381406 100644 --- a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AttestorOrBuilder.java +++ b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AttestorOrBuilder.java @@ -166,5 +166,35 @@ public interface AttestorOrBuilder */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + /** + * + * + *
                +   * Optional. A checksum, returned by the server, that can be sent on update
                +   * requests to ensure the attestor has an up-to-date value before attempting
                +   * to update it. See https://google.aip.dev/154.
                +   * 
                + * + * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
                +   * Optional. A checksum, returned by the server, that can be sent on update
                +   * requests to ensure the attestor has an up-to-date value before attempting
                +   * to update it. See https://google.aip.dev/154.
                +   * 
                + * + * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); + com.google.cloud.binaryauthorization.v1beta1.Attestor.AttestorTypeCase getAttestorTypeCase(); } diff --git a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AttestorPublicKey.java b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AttestorPublicKey.java index f9960c4d6cae..fadf12a9d0a8 100644 --- a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AttestorPublicKey.java +++ b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AttestorPublicKey.java @@ -24,8 +24,9 @@ * * *
                - * An [attestor public key][google.cloud.binaryauthorization.v1beta1.AttestorPublicKey] that will be used to verify
                - * attestations signed by this attestor.
                + * An [attestor public
                + * key][google.cloud.binaryauthorization.v1beta1.AttestorPublicKey] that will be
                + * used to verify attestations signed by this attestor.
                  * 
                * * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.AttestorPublicKey} @@ -617,8 +618,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
                -   * An [attestor public key][google.cloud.binaryauthorization.v1beta1.AttestorPublicKey] that will be used to verify
                -   * attestations signed by this attestor.
                +   * An [attestor public
                +   * key][google.cloud.binaryauthorization.v1beta1.AttestorPublicKey] that will be
                +   * used to verify attestations signed by this attestor.
                    * 
                * * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.AttestorPublicKey} diff --git a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinaryAuthorizationResourcesProto.java b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinaryAuthorizationResourcesProto.java index 6445e5e0c270..61a27ba0f7ad 100644 --- a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinaryAuthorizationResourcesProto.java +++ b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinaryAuthorizationResourcesProto.java @@ -93,121 +93,112 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n" - + "8google/cloud/binaryauthorization/v1beta1/resources.proto\022(google.cloud.binarya" + "\n8google/cloud/binaryauthorization/v1bet" + + "a1/resources.proto\022(google.cloud.binarya" + "uthorization.v1beta1\032\037google/api/field_b" - + "ehavior.proto\032\031google/api/resource.proto\032\037google/protobuf/timestamp.proto\"\261\r\n" - + "\006Policy\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\003\022\030\n" - + "\013description\030\006 \001(\tB\003\340A\001\022w\n" - + "\035global_policy_evaluation_mode\030\007 \001(\0162K.google.cloud.binaryauthorizat" - + "ion.v1beta1.Policy.GlobalPolicyEvaluationModeB\003\340A\001\022n\n" - + "\034admission_whitelist_patterns\030\002 \003(\0132C.google.cloud.binaryauthorizat" - + "ion.v1beta1.AdmissionWhitelistPatternB\003\340A\001\022q\n" - + "\027cluster_admission_rules\030\003 \003(\0132K.go" + + "ehavior.proto\032\031google/api/resource.proto" + + "\032\037google/protobuf/timestamp.proto\"\304\r\n\006Po" + + "licy\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\030\n\013description\030\006" + + " \001(\tB\003\340A\001\022w\n\035global_policy_evaluation_mo" + + "de\030\007 \001(\0162K.google.cloud.binaryauthorizat" + + "ion.v1beta1.Policy.GlobalPolicyEvaluatio" + + "nModeB\003\340A\001\022n\n\034admission_whitelist_patter" + + "ns\030\002 \003(\0132C.google.cloud.binaryauthorizat" + + "ion.v1beta1.AdmissionWhitelistPatternB\003\340" + + "A\001\022q\n\027cluster_admission_rules\030\003 \003(\0132K.go" + "ogle.cloud.binaryauthorization.v1beta1.P" - + "olicy.ClusterAdmissionRulesEntryB\003\340A\001\022\212\001\n" - + "$kubernetes_namespace_admission_rules\030\n" + + "olicy.ClusterAdmissionRulesEntryB\003\340A\001\022\212\001" + + "\n$kubernetes_namespace_admission_rules\030\n" + " \003(\0132W.google.cloud.binaryauthorization." - + "v1beta1.Policy.KubernetesNamespaceAdmissionRulesEntryB\003\340A\001\022\225\001\n" - + "*kubernetes_service_account_admission_rules\030\010 \003(\0132\\.google" + + "v1beta1.Policy.KubernetesNamespaceAdmiss" + + "ionRulesEntryB\003\340A\001\022\225\001\n*kubernetes_servic" + + "e_account_admission_rules\030\010 \003(\0132\\.google" + ".cloud.binaryauthorization.v1beta1.Polic" - + "y.KubernetesServiceAccountAdmissionRulesEntryB\003\340A\001\022\215\001\n" - + "&istio_service_identity_admission_rules\030\t \003(\0132X.google.cloud.binar" - + "yauthorization.v1beta1.Policy.IstioServiceIdentityAdmissionRulesEntryB\003\340A\001\022\\\n" - + "\026default_admission_rule\030\004 \001(\01327.google.clou" - + "d.binaryauthorization.v1beta1.AdmissionRuleB\003\340A\002\0224\n" - + "\013update_time\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\032u\n" - + "\032ClusterAdmissionRulesEntry\022\013\n" - + "\003key\030\001 \001(\t\022F\n" - + "\005value\030\002 \001(\013" - + "27.google.cloud.binaryauthorization.v1beta1.AdmissionRule:\0028\001\032\201\001\n" - + "&KubernetesNamespaceAdmissionRulesEntry\022\013\n" - + "\003key\030\001 \001(\t\022F\n" - + "\005value\030\002" - + " \001(\01327.google.cloud.binaryauthorization.v1beta1.AdmissionRule:\0028\001\032\206\001\n" - + "+KubernetesServiceAccountAdmissionRulesEntry\022\013\n" - + "\003key\030\001 \001(\t\022F\n" - + "\005value\030\002 \001(\01327.google.c" - + "loud.binaryauthorization.v1beta1.AdmissionRule:\0028\001\032\202\001\n" - + "\'IstioServiceIdentityAdmissionRulesEntry\022\013\n" - + "\003key\030\001 \001(\t\022F\n" - + "\005value\030\002 \001" - + "(\01327.google.cloud.binaryauthorization.v1beta1.AdmissionRule:\0028\001\"d\n" - + "\032GlobalPolicyEvaluationMode\022-\n" - + ")GLOBAL_POLICY_EVALUATION_MODE_UNSPECIFIED\020\000\022\n\n" - + "\006ENABLE\020\001\022\013\n" - + "\007DISABLE\020\002:f\352Ac\n" - + ")binaryauthorization.googleap" - + "is.com/Policy\022\031projects/{project}/policy\022\033locations/{location}/policy\"1\n" - + "\031AdmissionWhitelistPattern\022\024\n" - + "\014name_pattern\030\001 \001(\t\"\344\003\n\r" - + "AdmissionRule\022d\n" - + "\017evaluation_mode\030\001 \001(\0162F.google.cloud.binaryauthorization.v" - + "1beta1.AdmissionRule.EvaluationModeB\003\340A\002\022$\n" - + "\027require_attestations_by\030\002 \003(\tB\003\340A\001\022f\n" - + "\020enforcement_mode\030\003 \001(\0162G.google.cloud." - + "binaryauthorization.v1beta1.AdmissionRule.EnforcementModeB\003\340A\002\"m\n" - + "\016EvaluationMode\022\037\n" - + "\033EVALUATION_MODE_UNSPECIFIED\020\000\022\020\n" - + "\014ALWAYS_ALLOW\020\001\022\027\n" - + "\023REQUIRE_ATTESTATION\020\002\022\017\n" - + "\013ALWAYS_DENY\020\003\"p\n" - + "\017EnforcementMode\022 \n" - + "\034ENFORCEMENT_MODE_UNSPECIFIED\020\000\022 \n" - + "\034ENFORCED_BLOCK_AND_AUDIT_LOG\020\001\022\031\n" - + "\025DRYRUN_AUDIT_LOG_ONLY\020\002\"\274\002\n" - + "\010Attestor\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\002\022\030\n" - + "\013description\030\006 \001(\tB\003\340A\001\022a\n" - + "\027user_owned_drydock_note\030\003 \001(\0132>.google.cloud.binary" - + "authorization.v1beta1.UserOwnedDrydockNoteH\000\0224\n" - + "\013update_time\030\004" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003:Y\352AV\n" - + "+binaryauthoriza" - + "tion.googleapis.com/Attestor\022\'projects/{project}/attestors/{attestor}B\017\n\r" - + "attestor_type\"\271\001\n" - + "\024UserOwnedDrydockNote\022\033\n" - + "\016note_reference\030\001 \001(\tB\003\340A\002\022U\n" - + "\013public_keys\030\002 \003(" - + "\0132;.google.cloud.binaryauthorization.v1beta1.AttestorPublicKeyB\003\340A\001\022-\n" - + " delegation_service_account_email\030\003 \001(\tB\003\340A\003\"\304\004\n\r" - + "PkixPublicKey\022\026\n" - + "\016public_key_pem\030\001 \001(\t\022g\n" - + "\023signature_algorithm\030\002 \001(\0162J.google.cloud" - + ".binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm\"\261\003\n" - + "\022SignatureAlgorithm\022#\n" - + "\037SIGNATURE_ALGORITHM_UNSPECIFIED\020\000\022\027\n" - + "\023RSA_PSS_2048_SHA256\020\001\022\027\n" - + "\023RSA_PSS_3072_SHA256\020\002\022\027\n" - + "\023RSA_PSS_4096_SHA256\020\003\022\027\n" - + "\023RSA_PSS_4096_SHA512\020\004\022\036\n" - + "\032RSA_SIGN_PKCS1_2048_SHA256\020\005\022\036\n" - + "\032RSA_SIGN_PKCS1_3072_SHA256\020\006\022\036\n" - + "\032RSA_SIGN_PKCS1_4096_SHA256\020\007\022\036\n" - + "\032RSA_SIGN_PKCS1_4096_SHA512\020\010\022\025\n" - + "\021ECDSA_P256_SHA256\020\t\022\027\n" - + "\023EC_SIGN_P256_SHA256\020\t\022\025\n" - + "\021ECDSA_P384_SHA384\020\n" - + "\022\027\n" - + "\023EC_SIGN_P384_SHA384\020\n" - + "\022\025\n" - + "\021ECDSA_P521_SHA512\020\013\022\027\n" - + "\023EC_SIGN_P521_SHA512\020\013\032\002\020\001\"\277\001\n" - + "\021AttestorPublicKey\022\024\n" - + "\007comment\030\001 \001(\tB\003\340A\001\022\n\n" - + "\002id\030\002 \001(\t\022&\n" - + "\034ascii_armored_pgp_public_key\030\003 \001(\tH\000\022R\n" - + "\017pkix_public_key\030\005" - + " \001(\01327.google.cloud.binaryauthorization.v1beta1.PkixPublicKeyH\000B\014\n" - + "\n" - + "public_keyB\272\002\n" - + ",com.google.cloud.binaryauthorization.v1beta1B!BinaryAuthorizatio" - + "nResourcesProtoP\001Z^cloud.google.com/go/binaryauthorization/apiv1beta1/binaryauth" - + "orizationpb;binaryauthorizationpb\370\001\001\252\002(G" - + "oogle.Cloud.BinaryAuthorization.V1Beta1\312" - + "\002(Google\\Cloud\\BinaryAuthorization\\V1bet" - + "a1\352\002+Google::Cloud::BinaryAuthorization::V1beta1b\006proto3" + + "y.KubernetesServiceAccountAdmissionRules" + + "EntryB\003\340A\001\022\215\001\n&istio_service_identity_ad" + + "mission_rules\030\t \003(\0132X.google.cloud.binar" + + "yauthorization.v1beta1.Policy.IstioServi" + + "ceIdentityAdmissionRulesEntryB\003\340A\001\022\\\n\026de" + + "fault_admission_rule\030\004 \001(\01327.google.clou" + + "d.binaryauthorization.v1beta1.AdmissionR" + + "uleB\003\340A\002\0224\n\013update_time\030\005 \001(\0132\032.google.p" + + "rotobuf.TimestampB\003\340A\003\022\021\n\004etag\030\013 \001(\tB\003\340A" + + "\001\032u\n\032ClusterAdmissionRulesEntry\022\013\n\003key\030\001" + + " \001(\t\022F\n\005value\030\002 \001(\01327.google.cloud.binar" + + "yauthorization.v1beta1.AdmissionRule:\0028\001" + + "\032\201\001\n&KubernetesNamespaceAdmissionRulesEn" + + "try\022\013\n\003key\030\001 \001(\t\022F\n\005value\030\002 \001(\01327.google" + + ".cloud.binaryauthorization.v1beta1.Admis" + + "sionRule:\0028\001\032\206\001\n+KubernetesServiceAccoun" + + "tAdmissionRulesEntry\022\013\n\003key\030\001 \001(\t\022F\n\005val" + + "ue\030\002 \001(\01327.google.cloud.binaryauthorizat" + + "ion.v1beta1.AdmissionRule:\0028\001\032\202\001\n\'IstioS" + + "erviceIdentityAdmissionRulesEntry\022\013\n\003key" + + "\030\001 \001(\t\022F\n\005value\030\002 \001(\01327.google.cloud.bin" + + "aryauthorization.v1beta1.AdmissionRule:\002" + + "8\001\"d\n\032GlobalPolicyEvaluationMode\022-\n)GLOB" + + "AL_POLICY_EVALUATION_MODE_UNSPECIFIED\020\000\022" + + "\n\n\006ENABLE\020\001\022\013\n\007DISABLE\020\002:f\352Ac\n)binaryaut" + + "horization.googleapis.com/Policy\022\031projec" + + "ts/{project}/policy\022\033locations/{location" + + "}/policy\"1\n\031AdmissionWhitelistPattern\022\024\n" + + "\014name_pattern\030\001 \001(\t\"\344\003\n\rAdmissionRule\022d\n" + + "\017evaluation_mode\030\001 \001(\0162F.google.cloud.bi" + + "naryauthorization.v1beta1.AdmissionRule." + + "EvaluationModeB\003\340A\002\022$\n\027require_attestati" + + "ons_by\030\002 \003(\tB\003\340A\001\022f\n\020enforcement_mode\030\003 " + + "\001(\0162G.google.cloud.binaryauthorization.v" + + "1beta1.AdmissionRule.EnforcementModeB\003\340A" + + "\002\"m\n\016EvaluationMode\022\037\n\033EVALUATION_MODE_U" + + "NSPECIFIED\020\000\022\020\n\014ALWAYS_ALLOW\020\001\022\027\n\023REQUIR" + + "E_ATTESTATION\020\002\022\017\n\013ALWAYS_DENY\020\003\"p\n\017Enfo" + + "rcementMode\022 \n\034ENFORCEMENT_MODE_UNSPECIF" + + "IED\020\000\022 \n\034ENFORCED_BLOCK_AND_AUDIT_LOG\020\001\022" + + "\031\n\025DRYRUN_AUDIT_LOG_ONLY\020\002\"\317\002\n\010Attestor\022" + + "\021\n\004name\030\001 \001(\tB\003\340A\002\022\030\n\013description\030\006 \001(\tB" + + "\003\340A\001\022a\n\027user_owned_drydock_note\030\003 \001(\0132>." + + "google.cloud.binaryauthorization.v1beta1" + + ".UserOwnedDrydockNoteH\000\0224\n\013update_time\030\004" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\021\n" + + "\004etag\030\007 \001(\tB\003\340A\001:Y\352AV\n+binaryauthorizati" + + "on.googleapis.com/Attestor\022\'projects/{pr" + + "oject}/attestors/{attestor}B\017\n\rattestor_" + + "type\"\271\001\n\024UserOwnedDrydockNote\022\033\n\016note_re" + + "ference\030\001 \001(\tB\003\340A\002\022U\n\013public_keys\030\002 \003(\0132" + + ";.google.cloud.binaryauthorization.v1bet" + + "a1.AttestorPublicKeyB\003\340A\001\022-\n delegation_" + + "service_account_email\030\003 \001(\tB\003\340A\003\"\313\005\n\rPki" + + "xPublicKey\022\026\n\016public_key_pem\030\001 \001(\t\022g\n\023si" + + "gnature_algorithm\030\002 \001(\0162J.google.cloud.b" + + "inaryauthorization.v1beta1.PkixPublicKey" + + ".SignatureAlgorithm\"\270\004\n\022SignatureAlgorit" + + "hm\022#\n\037SIGNATURE_ALGORITHM_UNSPECIFIED\020\000\022" + + "\027\n\023RSA_PSS_2048_SHA256\020\001\022\034\n\030RSA_SIGN_PSS" + + "_2048_SHA256\020\001\022\027\n\023RSA_PSS_3072_SHA256\020\002\022" + + "\034\n\030RSA_SIGN_PSS_3072_SHA256\020\002\022\027\n\023RSA_PSS" + + "_4096_SHA256\020\003\022\034\n\030RSA_SIGN_PSS_4096_SHA2" + + "56\020\003\022\027\n\023RSA_PSS_4096_SHA512\020\004\022\034\n\030RSA_SIG" + + "N_PSS_4096_SHA512\020\004\022\036\n\032RSA_SIGN_PKCS1_20" + + "48_SHA256\020\005\022\036\n\032RSA_SIGN_PKCS1_3072_SHA25" + + "6\020\006\022\036\n\032RSA_SIGN_PKCS1_4096_SHA256\020\007\022\036\n\032R" + + "SA_SIGN_PKCS1_4096_SHA512\020\010\022\025\n\021ECDSA_P25" + + "6_SHA256\020\t\022\027\n\023EC_SIGN_P256_SHA256\020\t\022\025\n\021E" + + "CDSA_P384_SHA384\020\n\022\027\n\023EC_SIGN_P384_SHA38" + + "4\020\n\022\025\n\021ECDSA_P521_SHA512\020\013\022\027\n\023EC_SIGN_P5" + + "21_SHA512\020\013\022\r\n\tML_DSA_65\020\r\032\002\020\001\"\277\001\n\021Attes" + + "torPublicKey\022\024\n\007comment\030\001 \001(\tB\003\340A\001\022\n\n\002id" + + "\030\002 \001(\t\022&\n\034ascii_armored_pgp_public_key\030\003" + + " \001(\tH\000\022R\n\017pkix_public_key\030\005 \001(\01327.google" + + ".cloud.binaryauthorization.v1beta1.PkixP" + + "ublicKeyH\000B\014\n\npublic_keyB\267\002\n,com.google." + + "cloud.binaryauthorization.v1beta1B!Binar" + + "yAuthorizationResourcesProtoP\001Z^cloud.go" + + "ogle.com/go/binaryauthorization/apiv1bet" + + "a1/binaryauthorizationpb;binaryauthoriza" + + "tionpb\252\002(Google.Cloud.BinaryAuthorizatio" + + "n.V1Beta1\312\002(Google\\Cloud\\BinaryAuthoriza" + + "tion\\V1beta1\352\002+Google::Cloud::BinaryAuth" + + "orization::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -233,6 +224,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "IstioServiceIdentityAdmissionRules", "DefaultAdmissionRule", "UpdateTime", + "Etag", }); internal_static_google_cloud_binaryauthorization_v1beta1_Policy_ClusterAdmissionRulesEntry_descriptor = internal_static_google_cloud_binaryauthorization_v1beta1_Policy_descriptor.getNestedType(0); @@ -288,7 +280,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_binaryauthorization_v1beta1_Attestor_descriptor, new java.lang.String[] { - "Name", "Description", "UserOwnedDrydockNote", "UpdateTime", "AttestorType", + "Name", "Description", "UserOwnedDrydockNote", "UpdateTime", "Etag", "AttestorType", }); internal_static_google_cloud_binaryauthorization_v1beta1_UserOwnedDrydockNote_descriptor = getDescriptor().getMessageType(4); diff --git a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinaryAuthorizationServiceProto.java b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinaryAuthorizationServiceProto.java index 0c36f35653c4..b6aa53bac403 100644 --- a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinaryAuthorizationServiceProto.java +++ b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinaryAuthorizationServiceProto.java @@ -162,15 +162,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\002$\022\"/v1beta1/{name=locations/*/policy}\032V" + "\312A\"binaryauthorization.googleapis.com\322A." + "https://www.googleapis.com/auth/cloud-pl" - + "atformB\270\002\n,com.google.cloud.binaryauthor" + + "atformB\265\002\n,com.google.cloud.binaryauthor" + "ization.v1beta1B\037BinaryAuthorizationServ" + "iceProtoP\001Z^cloud.google.com/go/binaryau" + "thorization/apiv1beta1/binaryauthorizati" - + "onpb;binaryauthorizationpb\370\001\001\252\002(Google.C" - + "loud.BinaryAuthorization.V1Beta1\312\002(Googl" - + "e\\Cloud\\BinaryAuthorization\\V1beta1\352\002+Go" - + "ogle::Cloud::BinaryAuthorization::V1beta" - + "1b\006proto3" + + "onpb;binaryauthorizationpb\252\002(Google.Clou" + + "d.BinaryAuthorization.V1Beta1\312\002(Google\\C" + + "loud\\BinaryAuthorization\\V1beta1\352\002+Googl" + + "e::Cloud::BinaryAuthorization::V1beta1b\006" + + "proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/CreateAttestorRequest.java b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/CreateAttestorRequest.java index 9814be31638a..50b82be46282 100644 --- a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/CreateAttestorRequest.java +++ b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/CreateAttestorRequest.java @@ -81,7 +81,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                -   * Required. The parent of this [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
                +   * Required. The parent of this
                +   * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
                    * 
                * * @@ -107,7 +108,8 @@ public java.lang.String getParent() { * * *
                -   * Required. The parent of this [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
                +   * Required. The parent of this
                +   * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
                    * 
                * * @@ -138,7 +140,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
                -   * Required. The [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] ID.
                +   * Required. The
                +   * [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] ID.
                    * 
                * * string attestor_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -162,7 +165,8 @@ public java.lang.String getAttestorId() { * * *
                -   * Required. The [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] ID.
                +   * Required. The
                +   * [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] ID.
                    * 
                * * string attestor_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -189,9 +193,11 @@ public com.google.protobuf.ByteString getAttestorIdBytes() { * * *
                -   * Required. The initial [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
                -   * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name,
                -   * in the format `projects/*/attestors/*`.
                +   * Required. The initial
                +   * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The
                +   * service will overwrite the [attestor
                +   * name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with
                +   * the resource name, in the format `projects/*/attestors/*`.
                    * 
                * * @@ -209,9 +215,11 @@ public boolean hasAttestor() { * * *
                -   * Required. The initial [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
                -   * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name,
                -   * in the format `projects/*/attestors/*`.
                +   * Required. The initial
                +   * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The
                +   * service will overwrite the [attestor
                +   * name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with
                +   * the resource name, in the format `projects/*/attestors/*`.
                    * 
                * * @@ -231,9 +239,11 @@ public com.google.cloud.binaryauthorization.v1beta1.Attestor getAttestor() { * * *
                -   * Required. The initial [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
                -   * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name,
                -   * in the format `projects/*/attestors/*`.
                +   * Required. The initial
                +   * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The
                +   * service will overwrite the [attestor
                +   * name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with
                +   * the resource name, in the format `projects/*/attestors/*`.
                    * 
                * * @@ -640,7 +650,8 @@ public Builder mergeFrom( * * *
                -     * Required. The parent of this [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
                +     * Required. The parent of this
                +     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
                      * 
                * * @@ -665,7 +676,8 @@ public java.lang.String getParent() { * * *
                -     * Required. The parent of this [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
                +     * Required. The parent of this
                +     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
                      * 
                * * @@ -690,7 +702,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
                -     * Required. The parent of this [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
                +     * Required. The parent of this
                +     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
                      * 
                * * @@ -714,7 +727,8 @@ public Builder setParent(java.lang.String value) { * * *
                -     * Required. The parent of this [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
                +     * Required. The parent of this
                +     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
                      * 
                * * @@ -734,7 +748,8 @@ public Builder clearParent() { * * *
                -     * Required. The parent of this [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
                +     * Required. The parent of this
                +     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
                      * 
                * * @@ -761,7 +776,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
                -     * Required. The [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] ID.
                +     * Required. The
                +     * [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] ID.
                      * 
                * * string attestor_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -784,7 +800,8 @@ public java.lang.String getAttestorId() { * * *
                -     * Required. The [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] ID.
                +     * Required. The
                +     * [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] ID.
                      * 
                * * string attestor_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -807,7 +824,8 @@ public com.google.protobuf.ByteString getAttestorIdBytes() { * * *
                -     * Required. The [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] ID.
                +     * Required. The
                +     * [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] ID.
                      * 
                * * string attestor_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -829,7 +847,8 @@ public Builder setAttestorId(java.lang.String value) { * * *
                -     * Required. The [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] ID.
                +     * Required. The
                +     * [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] ID.
                      * 
                * * string attestor_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -847,7 +866,8 @@ public Builder clearAttestorId() { * * *
                -     * Required. The [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] ID.
                +     * Required. The
                +     * [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] ID.
                      * 
                * * string attestor_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -877,9 +897,11 @@ public Builder setAttestorIdBytes(com.google.protobuf.ByteString value) { * * *
                -     * Required. The initial [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
                -     * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name,
                -     * in the format `projects/*/attestors/*`.
                +     * Required. The initial
                +     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The
                +     * service will overwrite the [attestor
                +     * name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with
                +     * the resource name, in the format `projects/*/attestors/*`.
                      * 
                * * @@ -896,9 +918,11 @@ public boolean hasAttestor() { * * *
                -     * Required. The initial [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
                -     * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name,
                -     * in the format `projects/*/attestors/*`.
                +     * Required. The initial
                +     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The
                +     * service will overwrite the [attestor
                +     * name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with
                +     * the resource name, in the format `projects/*/attestors/*`.
                      * 
                * * @@ -921,9 +945,11 @@ public com.google.cloud.binaryauthorization.v1beta1.Attestor getAttestor() { * * *
                -     * Required. The initial [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
                -     * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name,
                -     * in the format `projects/*/attestors/*`.
                +     * Required. The initial
                +     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The
                +     * service will overwrite the [attestor
                +     * name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with
                +     * the resource name, in the format `projects/*/attestors/*`.
                      * 
                * * @@ -948,9 +974,11 @@ public Builder setAttestor(com.google.cloud.binaryauthorization.v1beta1.Attestor * * *
                -     * Required. The initial [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
                -     * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name,
                -     * in the format `projects/*/attestors/*`.
                +     * Required. The initial
                +     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The
                +     * service will overwrite the [attestor
                +     * name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with
                +     * the resource name, in the format `projects/*/attestors/*`.
                      * 
                * * @@ -973,9 +1001,11 @@ public Builder setAttestor( * * *
                -     * Required. The initial [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
                -     * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name,
                -     * in the format `projects/*/attestors/*`.
                +     * Required. The initial
                +     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The
                +     * service will overwrite the [attestor
                +     * name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with
                +     * the resource name, in the format `projects/*/attestors/*`.
                      * 
                * * @@ -1006,9 +1036,11 @@ public Builder mergeAttestor(com.google.cloud.binaryauthorization.v1beta1.Attest * * *
                -     * Required. The initial [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
                -     * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name,
                -     * in the format `projects/*/attestors/*`.
                +     * Required. The initial
                +     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The
                +     * service will overwrite the [attestor
                +     * name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with
                +     * the resource name, in the format `projects/*/attestors/*`.
                      * 
                * * @@ -1030,9 +1062,11 @@ public Builder clearAttestor() { * * *
                -     * Required. The initial [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
                -     * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name,
                -     * in the format `projects/*/attestors/*`.
                +     * Required. The initial
                +     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The
                +     * service will overwrite the [attestor
                +     * name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with
                +     * the resource name, in the format `projects/*/attestors/*`.
                      * 
                * * @@ -1049,9 +1083,11 @@ public com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder getAttestor * * *
                -     * Required. The initial [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
                -     * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name,
                -     * in the format `projects/*/attestors/*`.
                +     * Required. The initial
                +     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The
                +     * service will overwrite the [attestor
                +     * name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with
                +     * the resource name, in the format `projects/*/attestors/*`.
                      * 
                * * @@ -1072,9 +1108,11 @@ public com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder getAttesto * * *
                -     * Required. The initial [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
                -     * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name,
                -     * in the format `projects/*/attestors/*`.
                +     * Required. The initial
                +     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The
                +     * service will overwrite the [attestor
                +     * name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with
                +     * the resource name, in the format `projects/*/attestors/*`.
                      * 
                * * diff --git a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/CreateAttestorRequestOrBuilder.java b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/CreateAttestorRequestOrBuilder.java index ebbf8db71c06..662d76b594e2 100644 --- a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/CreateAttestorRequestOrBuilder.java +++ b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/CreateAttestorRequestOrBuilder.java @@ -30,7 +30,8 @@ public interface CreateAttestorRequestOrBuilder * * *
                -   * Required. The parent of this [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
                +   * Required. The parent of this
                +   * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
                    * 
                * * @@ -45,7 +46,8 @@ public interface CreateAttestorRequestOrBuilder * * *
                -   * Required. The parent of this [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
                +   * Required. The parent of this
                +   * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
                    * 
                * * @@ -60,7 +62,8 @@ public interface CreateAttestorRequestOrBuilder * * *
                -   * Required. The [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] ID.
                +   * Required. The
                +   * [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] ID.
                    * 
                * * string attestor_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -73,7 +76,8 @@ public interface CreateAttestorRequestOrBuilder * * *
                -   * Required. The [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] ID.
                +   * Required. The
                +   * [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] ID.
                    * 
                * * string attestor_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -86,9 +90,11 @@ public interface CreateAttestorRequestOrBuilder * * *
                -   * Required. The initial [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
                -   * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name,
                -   * in the format `projects/*/attestors/*`.
                +   * Required. The initial
                +   * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The
                +   * service will overwrite the [attestor
                +   * name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with
                +   * the resource name, in the format `projects/*/attestors/*`.
                    * 
                * * @@ -103,9 +109,11 @@ public interface CreateAttestorRequestOrBuilder * * *
                -   * Required. The initial [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
                -   * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name,
                -   * in the format `projects/*/attestors/*`.
                +   * Required. The initial
                +   * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The
                +   * service will overwrite the [attestor
                +   * name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with
                +   * the resource name, in the format `projects/*/attestors/*`.
                    * 
                * * @@ -120,9 +128,11 @@ public interface CreateAttestorRequestOrBuilder * * *
                -   * Required. The initial [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
                -   * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name,
                -   * in the format `projects/*/attestors/*`.
                +   * Required. The initial
                +   * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The
                +   * service will overwrite the [attestor
                +   * name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with
                +   * the resource name, in the format `projects/*/attestors/*`.
                    * 
                * * diff --git a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/DeleteAttestorRequest.java b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/DeleteAttestorRequest.java index 7195f9169a60..0609705bbf54 100644 --- a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/DeleteAttestorRequest.java +++ b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/DeleteAttestorRequest.java @@ -79,8 +79,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                -   * Required. The name of the [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] to delete, in the format
                -   * `projects/*/attestors/*`.
                +   * Required. The name of the
                +   * [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] to delete,
                +   * in the format `projects/*/attestors/*`.
                    * 
                * * @@ -106,8 +107,9 @@ public java.lang.String getName() { * * *
                -   * Required. The name of the [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] to delete, in the format
                -   * `projects/*/attestors/*`.
                +   * Required. The name of the
                +   * [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] to delete,
                +   * in the format `projects/*/attestors/*`.
                    * 
                * * @@ -454,8 +456,9 @@ public Builder mergeFrom( * * *
                -     * Required. The name of the [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] to delete, in the format
                -     * `projects/*/attestors/*`.
                +     * Required. The name of the
                +     * [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] to delete,
                +     * in the format `projects/*/attestors/*`.
                      * 
                * * @@ -480,8 +483,9 @@ public java.lang.String getName() { * * *
                -     * Required. The name of the [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] to delete, in the format
                -     * `projects/*/attestors/*`.
                +     * Required. The name of the
                +     * [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] to delete,
                +     * in the format `projects/*/attestors/*`.
                      * 
                * * @@ -506,8 +510,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
                -     * Required. The name of the [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] to delete, in the format
                -     * `projects/*/attestors/*`.
                +     * Required. The name of the
                +     * [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] to delete,
                +     * in the format `projects/*/attestors/*`.
                      * 
                * * @@ -531,8 +536,9 @@ public Builder setName(java.lang.String value) { * * *
                -     * Required. The name of the [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] to delete, in the format
                -     * `projects/*/attestors/*`.
                +     * Required. The name of the
                +     * [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] to delete,
                +     * in the format `projects/*/attestors/*`.
                      * 
                * * @@ -552,8 +558,9 @@ public Builder clearName() { * * *
                -     * Required. The name of the [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] to delete, in the format
                -     * `projects/*/attestors/*`.
                +     * Required. The name of the
                +     * [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] to delete,
                +     * in the format `projects/*/attestors/*`.
                      * 
                * * diff --git a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/DeleteAttestorRequestOrBuilder.java b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/DeleteAttestorRequestOrBuilder.java index f301fcc16b0f..ed95c2d45d70 100644 --- a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/DeleteAttestorRequestOrBuilder.java +++ b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/DeleteAttestorRequestOrBuilder.java @@ -30,8 +30,9 @@ public interface DeleteAttestorRequestOrBuilder * * *
                -   * Required. The name of the [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] to delete, in the format
                -   * `projects/*/attestors/*`.
                +   * Required. The name of the
                +   * [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] to delete,
                +   * in the format `projects/*/attestors/*`.
                    * 
                * * @@ -46,8 +47,9 @@ public interface DeleteAttestorRequestOrBuilder * * *
                -   * Required. The name of the [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] to delete, in the format
                -   * `projects/*/attestors/*`.
                +   * Required. The name of the
                +   * [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] to delete,
                +   * in the format `projects/*/attestors/*`.
                    * 
                * * diff --git a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetAttestorRequest.java b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetAttestorRequest.java index da2d3c6fac84..c9b3d0fe9923 100644 --- a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetAttestorRequest.java +++ b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetAttestorRequest.java @@ -79,8 +79,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                -   * Required. The name of the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] to retrieve, in the format
                -   * `projects/*/attestors/*`.
                +   * Required. The name of the
                +   * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] to retrieve,
                +   * in the format `projects/*/attestors/*`.
                    * 
                * * @@ -106,8 +107,9 @@ public java.lang.String getName() { * * *
                -   * Required. The name of the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] to retrieve, in the format
                -   * `projects/*/attestors/*`.
                +   * Required. The name of the
                +   * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] to retrieve,
                +   * in the format `projects/*/attestors/*`.
                    * 
                * * @@ -450,8 +452,9 @@ public Builder mergeFrom( * * *
                -     * Required. The name of the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] to retrieve, in the format
                -     * `projects/*/attestors/*`.
                +     * Required. The name of the
                +     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] to retrieve,
                +     * in the format `projects/*/attestors/*`.
                      * 
                * * @@ -476,8 +479,9 @@ public java.lang.String getName() { * * *
                -     * Required. The name of the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] to retrieve, in the format
                -     * `projects/*/attestors/*`.
                +     * Required. The name of the
                +     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] to retrieve,
                +     * in the format `projects/*/attestors/*`.
                      * 
                * * @@ -502,8 +506,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
                -     * Required. The name of the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] to retrieve, in the format
                -     * `projects/*/attestors/*`.
                +     * Required. The name of the
                +     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] to retrieve,
                +     * in the format `projects/*/attestors/*`.
                      * 
                * * @@ -527,8 +532,9 @@ public Builder setName(java.lang.String value) { * * *
                -     * Required. The name of the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] to retrieve, in the format
                -     * `projects/*/attestors/*`.
                +     * Required. The name of the
                +     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] to retrieve,
                +     * in the format `projects/*/attestors/*`.
                      * 
                * * @@ -548,8 +554,9 @@ public Builder clearName() { * * *
                -     * Required. The name of the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] to retrieve, in the format
                -     * `projects/*/attestors/*`.
                +     * Required. The name of the
                +     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] to retrieve,
                +     * in the format `projects/*/attestors/*`.
                      * 
                * * diff --git a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetAttestorRequestOrBuilder.java b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetAttestorRequestOrBuilder.java index c4f309d60859..4acad1f6e69a 100644 --- a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetAttestorRequestOrBuilder.java +++ b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetAttestorRequestOrBuilder.java @@ -30,8 +30,9 @@ public interface GetAttestorRequestOrBuilder * * *
                -   * Required. The name of the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] to retrieve, in the format
                -   * `projects/*/attestors/*`.
                +   * Required. The name of the
                +   * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] to retrieve,
                +   * in the format `projects/*/attestors/*`.
                    * 
                * * @@ -46,8 +47,9 @@ public interface GetAttestorRequestOrBuilder * * *
                -   * Required. The name of the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] to retrieve, in the format
                -   * `projects/*/attestors/*`.
                +   * Required. The name of the
                +   * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] to retrieve,
                +   * in the format `projects/*/attestors/*`.
                    * 
                * * diff --git a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetPolicyRequest.java b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetPolicyRequest.java index a5cb8c42c14c..331c8c3db010 100644 --- a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetPolicyRequest.java +++ b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetPolicyRequest.java @@ -79,8 +79,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                -   * Required. The resource name of the [policy][google.cloud.binaryauthorization.v1beta1.Policy] to retrieve,
                -   * in the format `projects/*/policy`.
                +   * Required. The resource name of the
                +   * [policy][google.cloud.binaryauthorization.v1beta1.Policy] to retrieve, in
                +   * the format `projects/*/policy`.
                    * 
                * * @@ -106,8 +107,9 @@ public java.lang.String getName() { * * *
                -   * Required. The resource name of the [policy][google.cloud.binaryauthorization.v1beta1.Policy] to retrieve,
                -   * in the format `projects/*/policy`.
                +   * Required. The resource name of the
                +   * [policy][google.cloud.binaryauthorization.v1beta1.Policy] to retrieve, in
                +   * the format `projects/*/policy`.
                    * 
                * * @@ -449,8 +451,9 @@ public Builder mergeFrom( * * *
                -     * Required. The resource name of the [policy][google.cloud.binaryauthorization.v1beta1.Policy] to retrieve,
                -     * in the format `projects/*/policy`.
                +     * Required. The resource name of the
                +     * [policy][google.cloud.binaryauthorization.v1beta1.Policy] to retrieve, in
                +     * the format `projects/*/policy`.
                      * 
                * * @@ -475,8 +478,9 @@ public java.lang.String getName() { * * *
                -     * Required. The resource name of the [policy][google.cloud.binaryauthorization.v1beta1.Policy] to retrieve,
                -     * in the format `projects/*/policy`.
                +     * Required. The resource name of the
                +     * [policy][google.cloud.binaryauthorization.v1beta1.Policy] to retrieve, in
                +     * the format `projects/*/policy`.
                      * 
                * * @@ -501,8 +505,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
                -     * Required. The resource name of the [policy][google.cloud.binaryauthorization.v1beta1.Policy] to retrieve,
                -     * in the format `projects/*/policy`.
                +     * Required. The resource name of the
                +     * [policy][google.cloud.binaryauthorization.v1beta1.Policy] to retrieve, in
                +     * the format `projects/*/policy`.
                      * 
                * * @@ -526,8 +531,9 @@ public Builder setName(java.lang.String value) { * * *
                -     * Required. The resource name of the [policy][google.cloud.binaryauthorization.v1beta1.Policy] to retrieve,
                -     * in the format `projects/*/policy`.
                +     * Required. The resource name of the
                +     * [policy][google.cloud.binaryauthorization.v1beta1.Policy] to retrieve, in
                +     * the format `projects/*/policy`.
                      * 
                * * @@ -547,8 +553,9 @@ public Builder clearName() { * * *
                -     * Required. The resource name of the [policy][google.cloud.binaryauthorization.v1beta1.Policy] to retrieve,
                -     * in the format `projects/*/policy`.
                +     * Required. The resource name of the
                +     * [policy][google.cloud.binaryauthorization.v1beta1.Policy] to retrieve, in
                +     * the format `projects/*/policy`.
                      * 
                * * diff --git a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetPolicyRequestOrBuilder.java b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetPolicyRequestOrBuilder.java index 0d5141c457ad..938961b120e8 100644 --- a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetPolicyRequestOrBuilder.java +++ b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetPolicyRequestOrBuilder.java @@ -30,8 +30,9 @@ public interface GetPolicyRequestOrBuilder * * *
                -   * Required. The resource name of the [policy][google.cloud.binaryauthorization.v1beta1.Policy] to retrieve,
                -   * in the format `projects/*/policy`.
                +   * Required. The resource name of the
                +   * [policy][google.cloud.binaryauthorization.v1beta1.Policy] to retrieve, in
                +   * the format `projects/*/policy`.
                    * 
                * * @@ -46,8 +47,9 @@ public interface GetPolicyRequestOrBuilder * * *
                -   * Required. The resource name of the [policy][google.cloud.binaryauthorization.v1beta1.Policy] to retrieve,
                -   * in the format `projects/*/policy`.
                +   * Required. The resource name of the
                +   * [policy][google.cloud.binaryauthorization.v1beta1.Policy] to retrieve, in
                +   * the format `projects/*/policy`.
                    * 
                * * diff --git a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsRequest.java b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsRequest.java index 7231b8f01216..95056c57e3ec 100644 --- a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsRequest.java +++ b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsRequest.java @@ -81,7 +81,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
                    * Required. The resource name of the project associated with the
                -   * [attestors][google.cloud.binaryauthorization.v1beta1.Attestor], in the format `projects/*`.
                +   * [attestors][google.cloud.binaryauthorization.v1beta1.Attestor], in the
                +   * format `projects/*`.
                    * 
                * * @@ -108,7 +109,8 @@ public java.lang.String getParent() { * *
                    * Required. The resource name of the project associated with the
                -   * [attestors][google.cloud.binaryauthorization.v1beta1.Attestor], in the format `projects/*`.
                +   * [attestors][google.cloud.binaryauthorization.v1beta1.Attestor], in the
                +   * format `projects/*`.
                    * 
                * * @@ -160,8 +162,9 @@ public int getPageSize() { * *
                    * A token identifying a page of results the server should return. Typically,
                -   * this is the value of [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.next_page_token] returned
                -   * from the previous call to the `ListAttestors` method.
                +   * this is the value of
                +   * [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.next_page_token]
                +   * returned from the previous call to the `ListAttestors` method.
                    * 
                * * string page_token = 3; @@ -186,8 +189,9 @@ public java.lang.String getPageToken() { * *
                    * A token identifying a page of results the server should return. Typically,
                -   * this is the value of [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.next_page_token] returned
                -   * from the previous call to the `ListAttestors` method.
                +   * this is the value of
                +   * [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.next_page_token]
                +   * returned from the previous call to the `ListAttestors` method.
                    * 
                * * string page_token = 3; @@ -577,7 +581,8 @@ public Builder mergeFrom( * *
                      * Required. The resource name of the project associated with the
                -     * [attestors][google.cloud.binaryauthorization.v1beta1.Attestor], in the format `projects/*`.
                +     * [attestors][google.cloud.binaryauthorization.v1beta1.Attestor], in the
                +     * format `projects/*`.
                      * 
                * * @@ -603,7 +608,8 @@ public java.lang.String getParent() { * *
                      * Required. The resource name of the project associated with the
                -     * [attestors][google.cloud.binaryauthorization.v1beta1.Attestor], in the format `projects/*`.
                +     * [attestors][google.cloud.binaryauthorization.v1beta1.Attestor], in the
                +     * format `projects/*`.
                      * 
                * * @@ -629,7 +635,8 @@ public com.google.protobuf.ByteString getParentBytes() { * *
                      * Required. The resource name of the project associated with the
                -     * [attestors][google.cloud.binaryauthorization.v1beta1.Attestor], in the format `projects/*`.
                +     * [attestors][google.cloud.binaryauthorization.v1beta1.Attestor], in the
                +     * format `projects/*`.
                      * 
                * * @@ -654,7 +661,8 @@ public Builder setParent(java.lang.String value) { * *
                      * Required. The resource name of the project associated with the
                -     * [attestors][google.cloud.binaryauthorization.v1beta1.Attestor], in the format `projects/*`.
                +     * [attestors][google.cloud.binaryauthorization.v1beta1.Attestor], in the
                +     * format `projects/*`.
                      * 
                * * @@ -675,7 +683,8 @@ public Builder clearParent() { * *
                      * Required. The resource name of the project associated with the
                -     * [attestors][google.cloud.binaryauthorization.v1beta1.Attestor], in the format `projects/*`.
                +     * [attestors][google.cloud.binaryauthorization.v1beta1.Attestor], in the
                +     * format `projects/*`.
                      * 
                * * @@ -762,8 +771,9 @@ public Builder clearPageSize() { * *
                      * A token identifying a page of results the server should return. Typically,
                -     * this is the value of [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.next_page_token] returned
                -     * from the previous call to the `ListAttestors` method.
                +     * this is the value of
                +     * [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.next_page_token]
                +     * returned from the previous call to the `ListAttestors` method.
                      * 
                * * string page_token = 3; @@ -787,8 +797,9 @@ public java.lang.String getPageToken() { * *
                      * A token identifying a page of results the server should return. Typically,
                -     * this is the value of [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.next_page_token] returned
                -     * from the previous call to the `ListAttestors` method.
                +     * this is the value of
                +     * [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.next_page_token]
                +     * returned from the previous call to the `ListAttestors` method.
                      * 
                * * string page_token = 3; @@ -812,8 +823,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * *
                      * A token identifying a page of results the server should return. Typically,
                -     * this is the value of [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.next_page_token] returned
                -     * from the previous call to the `ListAttestors` method.
                +     * this is the value of
                +     * [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.next_page_token]
                +     * returned from the previous call to the `ListAttestors` method.
                      * 
                * * string page_token = 3; @@ -836,8 +848,9 @@ public Builder setPageToken(java.lang.String value) { * *
                      * A token identifying a page of results the server should return. Typically,
                -     * this is the value of [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.next_page_token] returned
                -     * from the previous call to the `ListAttestors` method.
                +     * this is the value of
                +     * [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.next_page_token]
                +     * returned from the previous call to the `ListAttestors` method.
                      * 
                * * string page_token = 3; @@ -856,8 +869,9 @@ public Builder clearPageToken() { * *
                      * A token identifying a page of results the server should return. Typically,
                -     * this is the value of [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.next_page_token] returned
                -     * from the previous call to the `ListAttestors` method.
                +     * this is the value of
                +     * [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.next_page_token]
                +     * returned from the previous call to the `ListAttestors` method.
                      * 
                * * string page_token = 3; diff --git a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsRequestOrBuilder.java b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsRequestOrBuilder.java index 864335660bb8..9b5b16d23011 100644 --- a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsRequestOrBuilder.java +++ b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsRequestOrBuilder.java @@ -31,7 +31,8 @@ public interface ListAttestorsRequestOrBuilder * *
                    * Required. The resource name of the project associated with the
                -   * [attestors][google.cloud.binaryauthorization.v1beta1.Attestor], in the format `projects/*`.
                +   * [attestors][google.cloud.binaryauthorization.v1beta1.Attestor], in the
                +   * format `projects/*`.
                    * 
                * * @@ -47,7 +48,8 @@ public interface ListAttestorsRequestOrBuilder * *
                    * Required. The resource name of the project associated with the
                -   * [attestors][google.cloud.binaryauthorization.v1beta1.Attestor], in the format `projects/*`.
                +   * [attestors][google.cloud.binaryauthorization.v1beta1.Attestor], in the
                +   * format `projects/*`.
                    * 
                * * @@ -77,8 +79,9 @@ public interface ListAttestorsRequestOrBuilder * *
                    * A token identifying a page of results the server should return. Typically,
                -   * this is the value of [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.next_page_token] returned
                -   * from the previous call to the `ListAttestors` method.
                +   * this is the value of
                +   * [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.next_page_token]
                +   * returned from the previous call to the `ListAttestors` method.
                    * 
                * * string page_token = 3; @@ -92,8 +95,9 @@ public interface ListAttestorsRequestOrBuilder * *
                    * A token identifying a page of results the server should return. Typically,
                -   * this is the value of [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.next_page_token] returned
                -   * from the previous call to the `ListAttestors` method.
                +   * this is the value of
                +   * [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.next_page_token]
                +   * returned from the previous call to the `ListAttestors` method.
                    * 
                * * string page_token = 3; diff --git a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsResponse.java b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsResponse.java index 6c31fe61cfc4..315e1a02bb26 100644 --- a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsResponse.java +++ b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsResponse.java @@ -158,8 +158,9 @@ public com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder getAttesto * *
                    * A token to retrieve the next page of results. Pass this value in the
                -   * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.page_token] field in the subsequent call to the
                -   * `ListAttestors` method to retrieve the next page of results.
                +   * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.page_token]
                +   * field in the subsequent call to the `ListAttestors` method to retrieve the
                +   * next page of results.
                    * 
                * * string next_page_token = 2; @@ -184,8 +185,9 @@ public java.lang.String getNextPageToken() { * *
                    * A token to retrieve the next page of results. Pass this value in the
                -   * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.page_token] field in the subsequent call to the
                -   * `ListAttestors` method to retrieve the next page of results.
                +   * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.page_token]
                +   * field in the subsequent call to the `ListAttestors` method to retrieve the
                +   * next page of results.
                    * 
                * * string next_page_token = 2; @@ -981,8 +983,9 @@ public com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder addAttestor * *
                      * A token to retrieve the next page of results. Pass this value in the
                -     * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.page_token] field in the subsequent call to the
                -     * `ListAttestors` method to retrieve the next page of results.
                +     * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.page_token]
                +     * field in the subsequent call to the `ListAttestors` method to retrieve the
                +     * next page of results.
                      * 
                * * string next_page_token = 2; @@ -1006,8 +1009,9 @@ public java.lang.String getNextPageToken() { * *
                      * A token to retrieve the next page of results. Pass this value in the
                -     * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.page_token] field in the subsequent call to the
                -     * `ListAttestors` method to retrieve the next page of results.
                +     * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.page_token]
                +     * field in the subsequent call to the `ListAttestors` method to retrieve the
                +     * next page of results.
                      * 
                * * string next_page_token = 2; @@ -1031,8 +1035,9 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * *
                      * A token to retrieve the next page of results. Pass this value in the
                -     * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.page_token] field in the subsequent call to the
                -     * `ListAttestors` method to retrieve the next page of results.
                +     * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.page_token]
                +     * field in the subsequent call to the `ListAttestors` method to retrieve the
                +     * next page of results.
                      * 
                * * string next_page_token = 2; @@ -1055,8 +1060,9 @@ public Builder setNextPageToken(java.lang.String value) { * *
                      * A token to retrieve the next page of results. Pass this value in the
                -     * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.page_token] field in the subsequent call to the
                -     * `ListAttestors` method to retrieve the next page of results.
                +     * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.page_token]
                +     * field in the subsequent call to the `ListAttestors` method to retrieve the
                +     * next page of results.
                      * 
                * * string next_page_token = 2; @@ -1075,8 +1081,9 @@ public Builder clearNextPageToken() { * *
                      * A token to retrieve the next page of results. Pass this value in the
                -     * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.page_token] field in the subsequent call to the
                -     * `ListAttestors` method to retrieve the next page of results.
                +     * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.page_token]
                +     * field in the subsequent call to the `ListAttestors` method to retrieve the
                +     * next page of results.
                      * 
                * * string next_page_token = 2; diff --git a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsResponseOrBuilder.java b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsResponseOrBuilder.java index a9cfc5196879..2da40db96ffc 100644 --- a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsResponseOrBuilder.java +++ b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsResponseOrBuilder.java @@ -87,8 +87,9 @@ public interface ListAttestorsResponseOrBuilder * *
                    * A token to retrieve the next page of results. Pass this value in the
                -   * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.page_token] field in the subsequent call to the
                -   * `ListAttestors` method to retrieve the next page of results.
                +   * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.page_token]
                +   * field in the subsequent call to the `ListAttestors` method to retrieve the
                +   * next page of results.
                    * 
                * * string next_page_token = 2; @@ -102,8 +103,9 @@ public interface ListAttestorsResponseOrBuilder * *
                    * A token to retrieve the next page of results. Pass this value in the
                -   * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.page_token] field in the subsequent call to the
                -   * `ListAttestors` method to retrieve the next page of results.
                +   * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.page_token]
                +   * field in the subsequent call to the `ListAttestors` method to retrieve the
                +   * next page of results.
                    * 
                * * string next_page_token = 2; diff --git a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/PkixPublicKey.java b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/PkixPublicKey.java index 17e419270c2c..9b1cf2ef78a5 100644 --- a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/PkixPublicKey.java +++ b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/PkixPublicKey.java @@ -118,7 +118,7 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu * * RSA_PSS_3072_SHA256 = 2; */ - RSA_PSS_3072_SHA256(2, 2), + RSA_PSS_3072_SHA256(3, 2), /** * * @@ -128,7 +128,7 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu * * RSA_PSS_4096_SHA256 = 3; */ - RSA_PSS_4096_SHA256(3, 3), + RSA_PSS_4096_SHA256(5, 3), /** * * @@ -138,7 +138,7 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu * * RSA_PSS_4096_SHA512 = 4; */ - RSA_PSS_4096_SHA512(4, 4), + RSA_PSS_4096_SHA512(7, 4), /** * * @@ -148,7 +148,7 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu * * RSA_SIGN_PKCS1_2048_SHA256 = 5; */ - RSA_SIGN_PKCS1_2048_SHA256(5, 5), + RSA_SIGN_PKCS1_2048_SHA256(9, 5), /** * * @@ -158,7 +158,7 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu * * RSA_SIGN_PKCS1_3072_SHA256 = 6; */ - RSA_SIGN_PKCS1_3072_SHA256(6, 6), + RSA_SIGN_PKCS1_3072_SHA256(10, 6), /** * * @@ -168,7 +168,7 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu * * RSA_SIGN_PKCS1_4096_SHA256 = 7; */ - RSA_SIGN_PKCS1_4096_SHA256(7, 7), + RSA_SIGN_PKCS1_4096_SHA256(11, 7), /** * * @@ -178,7 +178,7 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu * * RSA_SIGN_PKCS1_4096_SHA512 = 8; */ - RSA_SIGN_PKCS1_4096_SHA512(8, 8), + RSA_SIGN_PKCS1_4096_SHA512(12, 8), /** * * @@ -188,7 +188,7 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu * * ECDSA_P256_SHA256 = 9; */ - ECDSA_P256_SHA256(9, 9), + ECDSA_P256_SHA256(13, 9), /** * * @@ -198,7 +198,7 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu * * ECDSA_P384_SHA384 = 10; */ - ECDSA_P384_SHA384(11, 10), + ECDSA_P384_SHA384(15, 10), /** * * @@ -208,7 +208,17 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu * * ECDSA_P521_SHA512 = 11; */ - ECDSA_P521_SHA512(13, 11), + ECDSA_P521_SHA512(17, 11), + /** + * + * + *
                +     * ML-DSA-65 Post-Quantum Cryptography signature algorithm.
                +     * 
                + * + * ML_DSA_65 = 13; + */ + ML_DSA_65(19, 13), UNRECOGNIZED(-1, -1), ; @@ -222,6 +232,50 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu "SignatureAlgorithm"); } + /** + * + * + *
                +     * RSASSA-PSS 2048 bit key with a SHA256 digest.
                +     * 
                + * + * RSA_SIGN_PSS_2048_SHA256 = 1; + */ + public static final SignatureAlgorithm RSA_SIGN_PSS_2048_SHA256 = RSA_PSS_2048_SHA256; + + /** + * + * + *
                +     * RSASSA-PSS 3072 bit key with a SHA256 digest.
                +     * 
                + * + * RSA_SIGN_PSS_3072_SHA256 = 2; + */ + public static final SignatureAlgorithm RSA_SIGN_PSS_3072_SHA256 = RSA_PSS_3072_SHA256; + + /** + * + * + *
                +     * RSASSA-PSS 4096 bit key with a SHA256 digest.
                +     * 
                + * + * RSA_SIGN_PSS_4096_SHA256 = 3; + */ + public static final SignatureAlgorithm RSA_SIGN_PSS_4096_SHA256 = RSA_PSS_4096_SHA256; + + /** + * + * + *
                +     * RSASSA-PSS 4096 bit key with a SHA512 digest.
                +     * 
                + * + * RSA_SIGN_PSS_4096_SHA512 = 4; + */ + public static final SignatureAlgorithm RSA_SIGN_PSS_4096_SHA512 = RSA_PSS_4096_SHA512; + /** * * @@ -277,6 +331,17 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ public static final int RSA_PSS_2048_SHA256_VALUE = 1; + /** + * + * + *
                +     * RSASSA-PSS 2048 bit key with a SHA256 digest.
                +     * 
                + * + * RSA_SIGN_PSS_2048_SHA256 = 1; + */ + public static final int RSA_SIGN_PSS_2048_SHA256_VALUE = 1; + /** * * @@ -288,6 +353,17 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ public static final int RSA_PSS_3072_SHA256_VALUE = 2; + /** + * + * + *
                +     * RSASSA-PSS 3072 bit key with a SHA256 digest.
                +     * 
                + * + * RSA_SIGN_PSS_3072_SHA256 = 2; + */ + public static final int RSA_SIGN_PSS_3072_SHA256_VALUE = 2; + /** * * @@ -299,6 +375,17 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ public static final int RSA_PSS_4096_SHA256_VALUE = 3; + /** + * + * + *
                +     * RSASSA-PSS 4096 bit key with a SHA256 digest.
                +     * 
                + * + * RSA_SIGN_PSS_4096_SHA256 = 3; + */ + public static final int RSA_SIGN_PSS_4096_SHA256_VALUE = 3; + /** * * @@ -310,6 +397,17 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ public static final int RSA_PSS_4096_SHA512_VALUE = 4; + /** + * + * + *
                +     * RSASSA-PSS 4096 bit key with a SHA512 digest.
                +     * 
                + * + * RSA_SIGN_PSS_4096_SHA512 = 4; + */ + public static final int RSA_SIGN_PSS_4096_SHA512_VALUE = 4; + /** * * @@ -420,6 +518,17 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ public static final int EC_SIGN_P521_SHA512_VALUE = 11; + /** + * + * + *
                +     * ML-DSA-65 Post-Quantum Cryptography signature algorithm.
                +     * 
                + * + * ML_DSA_65 = 13; + */ + public static final int ML_DSA_65_VALUE = 13; + public final int getNumber() { if (index == -1) { throw new java.lang.IllegalArgumentException( @@ -468,6 +577,8 @@ public static SignatureAlgorithm forNumber(int value) { return ECDSA_P384_SHA384; case 11: return ECDSA_P521_SHA512; + case 13: + return ML_DSA_65; default: return null; } @@ -510,9 +621,13 @@ private static SignatureAlgorithm[] getStaticValuesArray() { return new SignatureAlgorithm[] { SIGNATURE_ALGORITHM_UNSPECIFIED, RSA_PSS_2048_SHA256, + RSA_SIGN_PSS_2048_SHA256, RSA_PSS_3072_SHA256, + RSA_SIGN_PSS_3072_SHA256, RSA_PSS_4096_SHA256, + RSA_SIGN_PSS_4096_SHA256, RSA_PSS_4096_SHA512, + RSA_SIGN_PSS_4096_SHA512, RSA_SIGN_PKCS1_2048_SHA256, RSA_SIGN_PKCS1_3072_SHA256, RSA_SIGN_PKCS1_4096_SHA256, @@ -523,6 +638,7 @@ private static SignatureAlgorithm[] getStaticValuesArray() { EC_SIGN_P384_SHA384, ECDSA_P521_SHA512, EC_SIGN_P521_SHA512, + ML_DSA_65, }; } diff --git a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/Policy.java b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/Policy.java index 0f099db88731..01c5dd53a967 100644 --- a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/Policy.java +++ b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/Policy.java @@ -24,7 +24,8 @@ * * *
                - * A [policy][google.cloud.binaryauthorization.v1beta1.Policy] for Binary Authorization.
                + * A [policy][google.cloud.binaryauthorization.v1beta1.Policy] for Binary
                + * Authorization.
                  * 
                * * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.Policy} @@ -56,6 +57,7 @@ private Policy() { description_ = ""; globalPolicyEvaluationMode_ = 0; admissionWhitelistPatterns_ = java.util.Collections.emptyList(); + etag_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -720,7 +722,8 @@ public int getKubernetesNamespaceAdmissionRulesCount() { * * *
                -   * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
                +   * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec
                +   * format:
                    * `[a-z.-]+`, e.g. `some-namespace`
                    * 
                * @@ -748,7 +751,8 @@ public boolean containsKubernetesNamespaceAdmissionRules(java.lang.String key) { * * *
                -   * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
                +   * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec
                +   * format:
                    * `[a-z.-]+`, e.g. `some-namespace`
                    * 
                * @@ -766,7 +770,8 @@ public boolean containsKubernetesNamespaceAdmissionRules(java.lang.String key) { * * *
                -   * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
                +   * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec
                +   * format:
                    * `[a-z.-]+`, e.g. `some-namespace`
                    * 
                * @@ -792,7 +797,8 @@ public boolean containsKubernetesNamespaceAdmissionRules(java.lang.String key) { * * *
                -   * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
                +   * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec
                +   * format:
                    * `[a-z.-]+`, e.g. `some-namespace`
                    * 
                * @@ -1213,6 +1219,63 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } + public static final int ETAG_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
                +   * Optional. A checksum, returned by the server, that can be sent on update
                +   * requests to ensure the policy has an up-to-date value before attempting to
                +   * update it. See https://google.aip.dev/154.
                +   * 
                + * + * string etag = 11 [(.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. A checksum, returned by the server, that can be sent on update
                +   * requests to ensure the policy has an up-to-date value before attempting to
                +   * update it. See https://google.aip.dev/154.
                +   * 
                + * + * string etag = 11 [(.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; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1268,6 +1331,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io internalGetKubernetesNamespaceAdmissionRules(), KubernetesNamespaceAdmissionRulesDefaultEntryHolder.defaultEntry, 10); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 11, etag_); + } getUnknownFields().writeTo(output); } @@ -1359,6 +1425,9 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 10, kubernetesNamespaceAdmissionRules__); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(11, etag_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1396,6 +1465,7 @@ public boolean equals(final java.lang.Object obj) { 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; } @@ -1441,6 +1511,8 @@ public int hashCode() { 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; @@ -1546,7 +1618,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
                -   * A [policy][google.cloud.binaryauthorization.v1beta1.Policy] for Binary Authorization.
                +   * A [policy][google.cloud.binaryauthorization.v1beta1.Policy] for Binary
                +   * Authorization.
                    * 
                * * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.Policy} @@ -1650,6 +1723,7 @@ public Builder clear() { updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } + etag_ = ""; return this; } @@ -1742,6 +1816,9 @@ private void buildPartial0(com.google.cloud.binaryauthorization.v1beta1.Policy r result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.etag_ = etag_; + } result.bitField0_ |= to_bitField0_; } @@ -1815,6 +1892,11 @@ public Builder mergeFrom(com.google.cloud.binaryauthorization.v1beta1.Policy oth if (other.hasUpdateTime()) { mergeUpdateTime(other.getUpdateTime()); } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000400; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1957,6 +2039,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000020; break; } // case 82 + case 90: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 90 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3193,7 +3281,8 @@ public int getKubernetesNamespaceAdmissionRulesCount() { * * *
                -     * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
                +     * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec
                +     * format:
                      * `[a-z.-]+`, e.g. `some-namespace`
                      * 
                * @@ -3222,7 +3311,8 @@ public boolean containsKubernetesNamespaceAdmissionRules(java.lang.String key) { * * *
                -     * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
                +     * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec
                +     * format:
                      * `[a-z.-]+`, e.g. `some-namespace`
                      * 
                * @@ -3241,7 +3331,8 @@ public boolean containsKubernetesNamespaceAdmissionRules(java.lang.String key) { * * *
                -     * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
                +     * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec
                +     * format:
                      * `[a-z.-]+`, e.g. `some-namespace`
                      * 
                * @@ -3270,7 +3361,8 @@ public boolean containsKubernetesNamespaceAdmissionRules(java.lang.String key) { * * *
                -     * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
                +     * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec
                +     * format:
                      * `[a-z.-]+`, e.g. `some-namespace`
                      * 
                * @@ -3303,7 +3395,8 @@ public Builder clearKubernetesNamespaceAdmissionRules() { * * *
                -     * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
                +     * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec
                +     * format:
                      * `[a-z.-]+`, e.g. `some-namespace`
                      * 
                * @@ -3332,7 +3425,8 @@ public Builder removeKubernetesNamespaceAdmissionRules(java.lang.String key) { * * *
                -     * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
                +     * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec
                +     * format:
                      * `[a-z.-]+`, e.g. `some-namespace`
                      * 
                * @@ -3357,7 +3451,8 @@ public Builder putKubernetesNamespaceAdmissionRules( * * *
                -     * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
                +     * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec
                +     * format:
                      * `[a-z.-]+`, e.g. `some-namespace`
                      * 
                * @@ -3384,7 +3479,8 @@ public Builder putAllKubernetesNamespaceAdmissionRules( * * *
                -     * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
                +     * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec
                +     * format:
                      * `[a-z.-]+`, e.g. `some-namespace`
                      * 
                * @@ -4452,6 +4548,127 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { return updateTimeBuilder_; } + private java.lang.Object etag_ = ""; + + /** + * + * + *
                +     * Optional. A checksum, returned by the server, that can be sent on update
                +     * requests to ensure the policy has an up-to-date value before attempting to
                +     * update it. See https://google.aip.dev/154.
                +     * 
                + * + * string etag = 11 [(.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. A checksum, returned by the server, that can be sent on update
                +     * requests to ensure the policy has an up-to-date value before attempting to
                +     * update it. See https://google.aip.dev/154.
                +     * 
                + * + * string etag = 11 [(.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. A checksum, returned by the server, that can be sent on update
                +     * requests to ensure the policy has an up-to-date value before attempting to
                +     * update it. See https://google.aip.dev/154.
                +     * 
                + * + * string etag = 11 [(.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_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. A checksum, returned by the server, that can be sent on update
                +     * requests to ensure the policy has an up-to-date value before attempting to
                +     * update it. See https://google.aip.dev/154.
                +     * 
                + * + * string etag = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. A checksum, returned by the server, that can be sent on update
                +     * requests to ensure the policy has an up-to-date value before attempting to
                +     * update it. See https://google.aip.dev/154.
                +     * 
                + * + * string etag = 11 [(.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_ |= 0x00000400; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1beta1.Policy) } diff --git a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/PolicyOrBuilder.java b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/PolicyOrBuilder.java index bf1bd5314ade..ba49957833bd 100644 --- a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/PolicyOrBuilder.java +++ b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/PolicyOrBuilder.java @@ -307,7 +307,8 @@ com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getClusterAdmissionRu * * *
                -   * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
                +   * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec
                +   * format:
                    * `[a-z.-]+`, e.g. `some-namespace`
                    * 
                * @@ -321,7 +322,8 @@ com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getClusterAdmissionRu * * *
                -   * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
                +   * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec
                +   * format:
                    * `[a-z.-]+`, e.g. `some-namespace`
                    * 
                * @@ -340,7 +342,8 @@ com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getClusterAdmissionRu * * *
                -   * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
                +   * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec
                +   * format:
                    * `[a-z.-]+`, e.g. `some-namespace`
                    * 
                * @@ -355,7 +358,8 @@ com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getClusterAdmissionRu * * *
                -   * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
                +   * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec
                +   * format:
                    * `[a-z.-]+`, e.g. `some-namespace`
                    * 
                * @@ -374,7 +378,8 @@ com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getClusterAdmissionRu * * *
                -   * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
                +   * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec
                +   * format:
                    * `[a-z.-]+`, e.g. `some-namespace`
                    * 
                * @@ -650,4 +655,34 @@ com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getClusterAdmissionRu *
                */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
                +   * Optional. A checksum, returned by the server, that can be sent on update
                +   * requests to ensure the policy has an up-to-date value before attempting to
                +   * update it. See https://google.aip.dev/154.
                +   * 
                + * + * string etag = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
                +   * Optional. A checksum, returned by the server, that can be sent on update
                +   * requests to ensure the policy has an up-to-date value before attempting to
                +   * update it. See https://google.aip.dev/154.
                +   * 
                + * + * string etag = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); } diff --git a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdateAttestorRequest.java b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdateAttestorRequest.java index 22b6423f474f..cf8009621c9d 100644 --- a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdateAttestorRequest.java +++ b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdateAttestorRequest.java @@ -76,9 +76,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                -   * Required. The updated [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
                -   * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name
                -   * in the request URL, in the format `projects/*/attestors/*`.
                +   * Required. The updated
                +   * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The
                +   * service will overwrite the [attestor
                +   * name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with
                +   * the resource name in the request URL, in the format
                +   * `projects/*/attestors/*`.
                    * 
                * * @@ -96,9 +99,12 @@ public boolean hasAttestor() { * * *
                -   * Required. The updated [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
                -   * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name
                -   * in the request URL, in the format `projects/*/attestors/*`.
                +   * Required. The updated
                +   * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The
                +   * service will overwrite the [attestor
                +   * name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with
                +   * the resource name in the request URL, in the format
                +   * `projects/*/attestors/*`.
                    * 
                * * @@ -118,9 +124,12 @@ public com.google.cloud.binaryauthorization.v1beta1.Attestor getAttestor() { * * *
                -   * Required. The updated [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
                -   * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name
                -   * in the request URL, in the format `projects/*/attestors/*`.
                +   * Required. The updated
                +   * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The
                +   * service will overwrite the [attestor
                +   * name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with
                +   * the resource name in the request URL, in the format
                +   * `projects/*/attestors/*`.
                    * 
                * * @@ -484,9 +493,12 @@ public Builder mergeFrom( * * *
                -     * Required. The updated [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
                -     * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name
                -     * in the request URL, in the format `projects/*/attestors/*`.
                +     * Required. The updated
                +     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The
                +     * service will overwrite the [attestor
                +     * name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with
                +     * the resource name in the request URL, in the format
                +     * `projects/*/attestors/*`.
                      * 
                * * @@ -503,9 +515,12 @@ public boolean hasAttestor() { * * *
                -     * Required. The updated [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
                -     * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name
                -     * in the request URL, in the format `projects/*/attestors/*`.
                +     * Required. The updated
                +     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The
                +     * service will overwrite the [attestor
                +     * name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with
                +     * the resource name in the request URL, in the format
                +     * `projects/*/attestors/*`.
                      * 
                * * @@ -528,9 +543,12 @@ public com.google.cloud.binaryauthorization.v1beta1.Attestor getAttestor() { * * *
                -     * Required. The updated [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
                -     * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name
                -     * in the request URL, in the format `projects/*/attestors/*`.
                +     * Required. The updated
                +     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The
                +     * service will overwrite the [attestor
                +     * name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with
                +     * the resource name in the request URL, in the format
                +     * `projects/*/attestors/*`.
                      * 
                * * @@ -555,9 +573,12 @@ public Builder setAttestor(com.google.cloud.binaryauthorization.v1beta1.Attestor * * *
                -     * Required. The updated [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
                -     * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name
                -     * in the request URL, in the format `projects/*/attestors/*`.
                +     * Required. The updated
                +     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The
                +     * service will overwrite the [attestor
                +     * name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with
                +     * the resource name in the request URL, in the format
                +     * `projects/*/attestors/*`.
                      * 
                * * @@ -580,9 +601,12 @@ public Builder setAttestor( * * *
                -     * Required. The updated [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
                -     * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name
                -     * in the request URL, in the format `projects/*/attestors/*`.
                +     * Required. The updated
                +     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The
                +     * service will overwrite the [attestor
                +     * name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with
                +     * the resource name in the request URL, in the format
                +     * `projects/*/attestors/*`.
                      * 
                * * @@ -613,9 +637,12 @@ public Builder mergeAttestor(com.google.cloud.binaryauthorization.v1beta1.Attest * * *
                -     * Required. The updated [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
                -     * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name
                -     * in the request URL, in the format `projects/*/attestors/*`.
                +     * Required. The updated
                +     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The
                +     * service will overwrite the [attestor
                +     * name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with
                +     * the resource name in the request URL, in the format
                +     * `projects/*/attestors/*`.
                      * 
                * * @@ -637,9 +664,12 @@ public Builder clearAttestor() { * * *
                -     * Required. The updated [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
                -     * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name
                -     * in the request URL, in the format `projects/*/attestors/*`.
                +     * Required. The updated
                +     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The
                +     * service will overwrite the [attestor
                +     * name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with
                +     * the resource name in the request URL, in the format
                +     * `projects/*/attestors/*`.
                      * 
                * * @@ -656,9 +686,12 @@ public com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder getAttestor * * *
                -     * Required. The updated [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
                -     * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name
                -     * in the request URL, in the format `projects/*/attestors/*`.
                +     * Required. The updated
                +     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The
                +     * service will overwrite the [attestor
                +     * name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with
                +     * the resource name in the request URL, in the format
                +     * `projects/*/attestors/*`.
                      * 
                * * @@ -679,9 +712,12 @@ public com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder getAttesto * * *
                -     * Required. The updated [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
                -     * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name
                -     * in the request URL, in the format `projects/*/attestors/*`.
                +     * Required. The updated
                +     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The
                +     * service will overwrite the [attestor
                +     * name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with
                +     * the resource name in the request URL, in the format
                +     * `projects/*/attestors/*`.
                      * 
                * * diff --git a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdateAttestorRequestOrBuilder.java b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdateAttestorRequestOrBuilder.java index 8c12b15e5676..1bd2451d09d0 100644 --- a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdateAttestorRequestOrBuilder.java +++ b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdateAttestorRequestOrBuilder.java @@ -30,9 +30,12 @@ public interface UpdateAttestorRequestOrBuilder * * *
                -   * Required. The updated [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
                -   * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name
                -   * in the request URL, in the format `projects/*/attestors/*`.
                +   * Required. The updated
                +   * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The
                +   * service will overwrite the [attestor
                +   * name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with
                +   * the resource name in the request URL, in the format
                +   * `projects/*/attestors/*`.
                    * 
                * * @@ -47,9 +50,12 @@ public interface UpdateAttestorRequestOrBuilder * * *
                -   * Required. The updated [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
                -   * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name
                -   * in the request URL, in the format `projects/*/attestors/*`.
                +   * Required. The updated
                +   * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The
                +   * service will overwrite the [attestor
                +   * name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with
                +   * the resource name in the request URL, in the format
                +   * `projects/*/attestors/*`.
                    * 
                * * @@ -64,9 +70,12 @@ public interface UpdateAttestorRequestOrBuilder * * *
                -   * Required. The updated [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
                -   * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name
                -   * in the request URL, in the format `projects/*/attestors/*`.
                +   * Required. The updated
                +   * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The
                +   * service will overwrite the [attestor
                +   * name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with
                +   * the resource name in the request URL, in the format
                +   * `projects/*/attestors/*`.
                    * 
                * * diff --git a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdatePolicyRequest.java b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdatePolicyRequest.java index cf7a2b86a38f..cc4bb4157c03 100644 --- a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdatePolicyRequest.java +++ b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdatePolicyRequest.java @@ -76,9 +76,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                -   * Required. A new or updated [policy][google.cloud.binaryauthorization.v1beta1.Policy] value. The service will
                -   * overwrite the [policy name][google.cloud.binaryauthorization.v1beta1.Policy.name] field with the resource name in
                -   * the request URL, in the format `projects/*/policy`.
                +   * Required. A new or updated
                +   * [policy][google.cloud.binaryauthorization.v1beta1.Policy] value. The
                +   * service will overwrite the [policy
                +   * name][google.cloud.binaryauthorization.v1beta1.Policy.name] field with the
                +   * resource name in the request URL, in the format `projects/*/policy`.
                    * 
                * * @@ -96,9 +98,11 @@ public boolean hasPolicy() { * * *
                -   * Required. A new or updated [policy][google.cloud.binaryauthorization.v1beta1.Policy] value. The service will
                -   * overwrite the [policy name][google.cloud.binaryauthorization.v1beta1.Policy.name] field with the resource name in
                -   * the request URL, in the format `projects/*/policy`.
                +   * Required. A new or updated
                +   * [policy][google.cloud.binaryauthorization.v1beta1.Policy] value. The
                +   * service will overwrite the [policy
                +   * name][google.cloud.binaryauthorization.v1beta1.Policy.name] field with the
                +   * resource name in the request URL, in the format `projects/*/policy`.
                    * 
                * * @@ -118,9 +122,11 @@ public com.google.cloud.binaryauthorization.v1beta1.Policy getPolicy() { * * *
                -   * Required. A new or updated [policy][google.cloud.binaryauthorization.v1beta1.Policy] value. The service will
                -   * overwrite the [policy name][google.cloud.binaryauthorization.v1beta1.Policy.name] field with the resource name in
                -   * the request URL, in the format `projects/*/policy`.
                +   * Required. A new or updated
                +   * [policy][google.cloud.binaryauthorization.v1beta1.Policy] value. The
                +   * service will overwrite the [policy
                +   * name][google.cloud.binaryauthorization.v1beta1.Policy.name] field with the
                +   * resource name in the request URL, in the format `projects/*/policy`.
                    * 
                * * @@ -479,9 +485,11 @@ public Builder mergeFrom( * * *
                -     * Required. A new or updated [policy][google.cloud.binaryauthorization.v1beta1.Policy] value. The service will
                -     * overwrite the [policy name][google.cloud.binaryauthorization.v1beta1.Policy.name] field with the resource name in
                -     * the request URL, in the format `projects/*/policy`.
                +     * Required. A new or updated
                +     * [policy][google.cloud.binaryauthorization.v1beta1.Policy] value. The
                +     * service will overwrite the [policy
                +     * name][google.cloud.binaryauthorization.v1beta1.Policy.name] field with the
                +     * resource name in the request URL, in the format `projects/*/policy`.
                      * 
                * * @@ -498,9 +506,11 @@ public boolean hasPolicy() { * * *
                -     * Required. A new or updated [policy][google.cloud.binaryauthorization.v1beta1.Policy] value. The service will
                -     * overwrite the [policy name][google.cloud.binaryauthorization.v1beta1.Policy.name] field with the resource name in
                -     * the request URL, in the format `projects/*/policy`.
                +     * Required. A new or updated
                +     * [policy][google.cloud.binaryauthorization.v1beta1.Policy] value. The
                +     * service will overwrite the [policy
                +     * name][google.cloud.binaryauthorization.v1beta1.Policy.name] field with the
                +     * resource name in the request URL, in the format `projects/*/policy`.
                      * 
                * * @@ -523,9 +533,11 @@ public com.google.cloud.binaryauthorization.v1beta1.Policy getPolicy() { * * *
                -     * Required. A new or updated [policy][google.cloud.binaryauthorization.v1beta1.Policy] value. The service will
                -     * overwrite the [policy name][google.cloud.binaryauthorization.v1beta1.Policy.name] field with the resource name in
                -     * the request URL, in the format `projects/*/policy`.
                +     * Required. A new or updated
                +     * [policy][google.cloud.binaryauthorization.v1beta1.Policy] value. The
                +     * service will overwrite the [policy
                +     * name][google.cloud.binaryauthorization.v1beta1.Policy.name] field with the
                +     * resource name in the request URL, in the format `projects/*/policy`.
                      * 
                * * @@ -550,9 +562,11 @@ public Builder setPolicy(com.google.cloud.binaryauthorization.v1beta1.Policy val * * *
                -     * Required. A new or updated [policy][google.cloud.binaryauthorization.v1beta1.Policy] value. The service will
                -     * overwrite the [policy name][google.cloud.binaryauthorization.v1beta1.Policy.name] field with the resource name in
                -     * the request URL, in the format `projects/*/policy`.
                +     * Required. A new or updated
                +     * [policy][google.cloud.binaryauthorization.v1beta1.Policy] value. The
                +     * service will overwrite the [policy
                +     * name][google.cloud.binaryauthorization.v1beta1.Policy.name] field with the
                +     * resource name in the request URL, in the format `projects/*/policy`.
                      * 
                * * @@ -575,9 +589,11 @@ public Builder setPolicy( * * *
                -     * Required. A new or updated [policy][google.cloud.binaryauthorization.v1beta1.Policy] value. The service will
                -     * overwrite the [policy name][google.cloud.binaryauthorization.v1beta1.Policy.name] field with the resource name in
                -     * the request URL, in the format `projects/*/policy`.
                +     * Required. A new or updated
                +     * [policy][google.cloud.binaryauthorization.v1beta1.Policy] value. The
                +     * service will overwrite the [policy
                +     * name][google.cloud.binaryauthorization.v1beta1.Policy.name] field with the
                +     * resource name in the request URL, in the format `projects/*/policy`.
                      * 
                * * @@ -608,9 +624,11 @@ public Builder mergePolicy(com.google.cloud.binaryauthorization.v1beta1.Policy v * * *
                -     * Required. A new or updated [policy][google.cloud.binaryauthorization.v1beta1.Policy] value. The service will
                -     * overwrite the [policy name][google.cloud.binaryauthorization.v1beta1.Policy.name] field with the resource name in
                -     * the request URL, in the format `projects/*/policy`.
                +     * Required. A new or updated
                +     * [policy][google.cloud.binaryauthorization.v1beta1.Policy] value. The
                +     * service will overwrite the [policy
                +     * name][google.cloud.binaryauthorization.v1beta1.Policy.name] field with the
                +     * resource name in the request URL, in the format `projects/*/policy`.
                      * 
                * * @@ -632,9 +650,11 @@ public Builder clearPolicy() { * * *
                -     * Required. A new or updated [policy][google.cloud.binaryauthorization.v1beta1.Policy] value. The service will
                -     * overwrite the [policy name][google.cloud.binaryauthorization.v1beta1.Policy.name] field with the resource name in
                -     * the request URL, in the format `projects/*/policy`.
                +     * Required. A new or updated
                +     * [policy][google.cloud.binaryauthorization.v1beta1.Policy] value. The
                +     * service will overwrite the [policy
                +     * name][google.cloud.binaryauthorization.v1beta1.Policy.name] field with the
                +     * resource name in the request URL, in the format `projects/*/policy`.
                      * 
                * * @@ -651,9 +671,11 @@ public com.google.cloud.binaryauthorization.v1beta1.Policy.Builder getPolicyBuil * * *
                -     * Required. A new or updated [policy][google.cloud.binaryauthorization.v1beta1.Policy] value. The service will
                -     * overwrite the [policy name][google.cloud.binaryauthorization.v1beta1.Policy.name] field with the resource name in
                -     * the request URL, in the format `projects/*/policy`.
                +     * Required. A new or updated
                +     * [policy][google.cloud.binaryauthorization.v1beta1.Policy] value. The
                +     * service will overwrite the [policy
                +     * name][google.cloud.binaryauthorization.v1beta1.Policy.name] field with the
                +     * resource name in the request URL, in the format `projects/*/policy`.
                      * 
                * * @@ -674,9 +696,11 @@ public com.google.cloud.binaryauthorization.v1beta1.PolicyOrBuilder getPolicyOrB * * *
                -     * Required. A new or updated [policy][google.cloud.binaryauthorization.v1beta1.Policy] value. The service will
                -     * overwrite the [policy name][google.cloud.binaryauthorization.v1beta1.Policy.name] field with the resource name in
                -     * the request URL, in the format `projects/*/policy`.
                +     * Required. A new or updated
                +     * [policy][google.cloud.binaryauthorization.v1beta1.Policy] value. The
                +     * service will overwrite the [policy
                +     * name][google.cloud.binaryauthorization.v1beta1.Policy.name] field with the
                +     * resource name in the request URL, in the format `projects/*/policy`.
                      * 
                * * diff --git a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdatePolicyRequestOrBuilder.java b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdatePolicyRequestOrBuilder.java index 09537ff76970..f137595c7c1d 100644 --- a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdatePolicyRequestOrBuilder.java +++ b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdatePolicyRequestOrBuilder.java @@ -30,9 +30,11 @@ public interface UpdatePolicyRequestOrBuilder * * *
                -   * Required. A new or updated [policy][google.cloud.binaryauthorization.v1beta1.Policy] value. The service will
                -   * overwrite the [policy name][google.cloud.binaryauthorization.v1beta1.Policy.name] field with the resource name in
                -   * the request URL, in the format `projects/*/policy`.
                +   * Required. A new or updated
                +   * [policy][google.cloud.binaryauthorization.v1beta1.Policy] value. The
                +   * service will overwrite the [policy
                +   * name][google.cloud.binaryauthorization.v1beta1.Policy.name] field with the
                +   * resource name in the request URL, in the format `projects/*/policy`.
                    * 
                * * @@ -47,9 +49,11 @@ public interface UpdatePolicyRequestOrBuilder * * *
                -   * Required. A new or updated [policy][google.cloud.binaryauthorization.v1beta1.Policy] value. The service will
                -   * overwrite the [policy name][google.cloud.binaryauthorization.v1beta1.Policy.name] field with the resource name in
                -   * the request URL, in the format `projects/*/policy`.
                +   * Required. A new or updated
                +   * [policy][google.cloud.binaryauthorization.v1beta1.Policy] value. The
                +   * service will overwrite the [policy
                +   * name][google.cloud.binaryauthorization.v1beta1.Policy.name] field with the
                +   * resource name in the request URL, in the format `projects/*/policy`.
                    * 
                * * @@ -64,9 +68,11 @@ public interface UpdatePolicyRequestOrBuilder * * *
                -   * Required. A new or updated [policy][google.cloud.binaryauthorization.v1beta1.Policy] value. The service will
                -   * overwrite the [policy name][google.cloud.binaryauthorization.v1beta1.Policy.name] field with the resource name in
                -   * the request URL, in the format `projects/*/policy`.
                +   * Required. A new or updated
                +   * [policy][google.cloud.binaryauthorization.v1beta1.Policy] value. The
                +   * service will overwrite the [policy
                +   * name][google.cloud.binaryauthorization.v1beta1.Policy.name] field with the
                +   * resource name in the request URL, in the format `projects/*/policy`.
                    * 
                * * diff --git a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UserOwnedDrydockNote.java b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UserOwnedDrydockNote.java index de27af53bf83..02a2f0e6d92c 100644 --- a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UserOwnedDrydockNote.java +++ b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UserOwnedDrydockNote.java @@ -24,8 +24,9 @@ * * *
                - * An [user owned drydock note][google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote] references a Drydock
                - * ATTESTATION_AUTHORITY Note created by the user.
                + * An [user owned drydock
                + * note][google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote]
                + * references a Drydock ATTESTATION_AUTHORITY Note created by the user.
                  * 
                * * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote} @@ -527,8 +528,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
                -   * An [user owned drydock note][google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote] references a Drydock
                -   * ATTESTATION_AUTHORITY Note created by the user.
                +   * An [user owned drydock
                +   * note][google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote]
                +   * references a Drydock ATTESTATION_AUTHORITY Note created by the user.
                    * 
                * * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote} diff --git a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/proto/google/cloud/binaryauthorization/v1beta1/resources.proto b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/proto/google/cloud/binaryauthorization/v1beta1/resources.proto index 02bc0a26c14b..8d716b47a57d 100644 --- a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/proto/google/cloud/binaryauthorization/v1beta1/resources.proto +++ b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/proto/google/cloud/binaryauthorization/v1beta1/resources.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,7 +20,6 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; -option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.BinaryAuthorization.V1Beta1"; option go_package = "cloud.google.com/go/binaryauthorization/apiv1beta1/binaryauthorizationpb;binaryauthorizationpb"; option java_multiple_files = true; @@ -29,7 +28,10 @@ option java_package = "com.google.cloud.binaryauthorization.v1beta1"; option php_namespace = "Google\\Cloud\\BinaryAuthorization\\V1beta1"; option ruby_package = "Google::Cloud::BinaryAuthorization::V1beta1"; -// A [policy][google.cloud.binaryauthorization.v1beta1.Policy] for Binary Authorization. +// LINT: LEGACY_NAMES + +// A [policy][google.cloud.binaryauthorization.v1beta1.Policy] for Binary +// Authorization. message Policy { option (google.api.resource) = { type: "binaryauthorization.googleapis.com/Policy" @@ -59,12 +61,14 @@ message Policy { // policy for common system-level images. Images not covered by the global // policy will be subject to the project admission policy. This setting // has no effect when specified inside a global admission policy. - GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(google.api.field_behavior) = OPTIONAL]; + GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 + [(google.api.field_behavior) = OPTIONAL]; // Optional. Admission policy allowlisting. A matching admission request will // always be permitted. This feature is typically used to exclude Google or // third-party infrastructure images from Binary Authorization policies. - repeated AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(google.api.field_behavior) = OPTIONAL]; + repeated AdmissionWhitelistPattern admission_whitelist_patterns = 2 + [(google.api.field_behavior) = OPTIONAL]; // Optional. Per-cluster admission rules. Cluster spec format: // `location.clusterId`. There can be at most one admission rule per cluster @@ -73,33 +77,47 @@ message Policy { // (e.g. us-central1). // For `clusterId` syntax restrictions see // https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters. - map cluster_admission_rules = 3 [(google.api.field_behavior) = OPTIONAL]; + map cluster_admission_rules = 3 + [(google.api.field_behavior) = OPTIONAL]; - // Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format: + // Optional. Per-kubernetes-namespace admission rules. K8s namespace spec + // format: // `[a-z.-]+`, e.g. `some-namespace` - map kubernetes_namespace_admission_rules = 10 [(google.api.field_behavior) = OPTIONAL]; + map kubernetes_namespace_admission_rules = 10 + [(google.api.field_behavior) = OPTIONAL]; // Optional. Per-kubernetes-service-account admission rules. Service account // spec format: `namespace:serviceaccount`. e.g. `test-ns:default` - map kubernetes_service_account_admission_rules = 8 [(google.api.field_behavior) = OPTIONAL]; + map kubernetes_service_account_admission_rules = 8 + [(google.api.field_behavior) = OPTIONAL]; // Optional. Per-istio-service-identity admission rules. Istio service // identity spec format: // `spiffe:///ns//sa/` or // `/ns//sa/` // e.g. `spiffe://example.com/ns/test-ns/sa/default` - map istio_service_identity_admission_rules = 9 [(google.api.field_behavior) = OPTIONAL]; + map istio_service_identity_admission_rules = 9 + [(google.api.field_behavior) = OPTIONAL]; // Required. Default admission rule for a cluster without a per-cluster, per- // kubernetes-service-account, or per-istio-service-identity admission rule. - AdmissionRule default_admission_rule = 4 [(google.api.field_behavior) = REQUIRED]; + AdmissionRule default_admission_rule = 4 + [(google.api.field_behavior) = REQUIRED]; // Output only. Time when the policy was last updated. - google.protobuf.Timestamp update_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. A checksum, returned by the server, that can be sent on update + // requests to ensure the policy has an up-to-date value before attempting to + // update it. See https://google.aip.dev/154. + string etag = 11 [(google.api.field_behavior) = OPTIONAL]; } -// An [admission allowlist pattern][google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern] exempts images -// from checks by [admission rules][google.cloud.binaryauthorization.v1beta1.AdmissionRule]. +// An [admission allowlist +// pattern][google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern] +// exempts images from checks by [admission +// rules][google.cloud.binaryauthorization.v1beta1.AdmissionRule]. message AdmissionWhitelistPattern { // An image name pattern to allowlist, in the form `registry/path/to/image`. // This supports a trailing `*` as a wildcard, but this is allowed only in @@ -111,12 +129,14 @@ message AdmissionWhitelistPattern { string name_pattern = 1; } -// An [admission rule][google.cloud.binaryauthorization.v1beta1.AdmissionRule] specifies either that all container images -// used in a pod creation request must be attested to by one or more -// [attestors][google.cloud.binaryauthorization.v1beta1.Attestor], that all pod creations will be allowed, or that all -// pod creations will be denied. +// An [admission rule][google.cloud.binaryauthorization.v1beta1.AdmissionRule] +// specifies either that all container images used in a pod creation request +// must be attested to by one or more +// [attestors][google.cloud.binaryauthorization.v1beta1.Attestor], that all pod +// creations will be allowed, or that all pod creations will be denied. // -// Images matching an [admission allowlist pattern][google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern] +// Images matching an [admission allowlist +// pattern][google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern] // are exempted from admission rules and will never block a pod creation. message AdmissionRule { enum EvaluationMode { @@ -135,6 +155,8 @@ message AdmissionRule { ALWAYS_DENY = 3; } + // TODO(wietse) re-word this text to 'per-image' instead of 'per-pod' and to + // allow for three-way evaluation (allow, deny, delegate). // Defines the possible actions when a pod creation is denied by an admission // rule. enum EnforcementMode { @@ -152,23 +174,16 @@ message AdmissionRule { // Required. How this admission rule will be evaluated. EvaluationMode evaluation_mode = 1 [(google.api.field_behavior) = REQUIRED]; - // Optional. The resource names of the attestors that must attest to - // a container image, in the format `projects/*/attestors/*`. Each - // attestor must exist before a policy can reference it. To add an attestor - // to a policy the principal issuing the policy change request must be able - // to read the attestor resource. - // - // Note: this field must be non-empty when the evaluation_mode field specifies - // REQUIRE_ATTESTATION, otherwise it must be empty. - repeated string require_attestations_by = 2 [(google.api.field_behavior) = OPTIONAL]; + repeated string require_attestations_by = 2 + [(google.api.field_behavior) = OPTIONAL]; // Required. The action when a pod creation is denied by the admission rule. EnforcementMode enforcement_mode = 3 [(google.api.field_behavior) = REQUIRED]; } -// An [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] that attests to container image -// artifacts. An existing attestor cannot be modified except where -// indicated. +// An [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] that attests +// to container image artifacts. An existing attestor cannot be modified except +// where indicated. message Attestor { option (google.api.resource) = { type: "binaryauthorization.googleapis.com/Attestor" @@ -183,22 +198,29 @@ message Attestor { // The field may be displayed in chooser dialogs. string description = 6 [(google.api.field_behavior) = OPTIONAL]; - // Required. Identifies an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] that attests to a - // container image artifact. This determines how an attestation will - // be stored, and how it will be used during policy - // enforcement. Updates may not change the attestor type, but individual - // attestor fields may be updated. + // Required. Identifies an + // [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] that attests + // to a container image artifact. This determines how an attestation will be + // stored, and how it will be used during policy enforcement. Updates may not + // change the attestor type, but individual attestor fields may be updated. oneof attestor_type { // A Drydock ATTESTATION_AUTHORITY Note, created by the user. UserOwnedDrydockNote user_owned_drydock_note = 3; } // Output only. Time when the attestor was last updated. - google.protobuf.Timestamp update_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. A checksum, returned by the server, that can be sent on update + // requests to ensure the attestor has an up-to-date value before attempting + // to update it. See https://google.aip.dev/154. + string etag = 7 [(google.api.field_behavior) = OPTIONAL]; } -// An [user owned drydock note][google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote] references a Drydock -// ATTESTATION_AUTHORITY Note created by the user. +// An [user owned drydock +// note][google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote] +// references a Drydock ATTESTATION_AUTHORITY Note created by the user. message UserOwnedDrydockNote { // Required. The Drydock resource name of a ATTESTATION_AUTHORITY Note, // created by the user, in the format: `projects/*/notes/*` (or the legacy @@ -218,7 +240,8 @@ message UserOwnedDrydockNote { // // If this field is empty, this attestor always returns that no // valid attestations exist. - repeated AttestorPublicKey public_keys = 2 [(google.api.field_behavior) = OPTIONAL]; + repeated AttestorPublicKey public_keys = 2 + [(google.api.field_behavior) = OPTIONAL]; // Output only. This field will contain the service account email address // that this Attestor will use as the principal when querying Container @@ -229,7 +252,8 @@ message UserOwnedDrydockNote { // This email address is fixed for the lifetime of the Attestor, but callers // should not make any other assumptions about the service account email; // future versions may use an email based on a different naming pattern. - string delegation_service_account_email = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + string delegation_service_account_email = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // A public key in the PkixPublicKey format (see @@ -252,15 +276,27 @@ message PkixPublicKey { // RSASSA-PSS 2048 bit key with a SHA256 digest. RSA_PSS_2048_SHA256 = 1; + // RSASSA-PSS 2048 bit key with a SHA256 digest. + RSA_SIGN_PSS_2048_SHA256 = 1; + // RSASSA-PSS 3072 bit key with a SHA256 digest. RSA_PSS_3072_SHA256 = 2; + // RSASSA-PSS 3072 bit key with a SHA256 digest. + RSA_SIGN_PSS_3072_SHA256 = 2; + // RSASSA-PSS 4096 bit key with a SHA256 digest. RSA_PSS_4096_SHA256 = 3; + // RSASSA-PSS 4096 bit key with a SHA256 digest. + RSA_SIGN_PSS_4096_SHA256 = 3; + // RSASSA-PSS 4096 bit key with a SHA512 digest. RSA_PSS_4096_SHA512 = 4; + // RSASSA-PSS 4096 bit key with a SHA512 digest. + RSA_SIGN_PSS_4096_SHA512 = 4; + // RSASSA-PKCS1-v1_5 with a 2048 bit key and a SHA256 digest. RSA_SIGN_PKCS1_2048_SHA256 = 5; @@ -290,6 +326,9 @@ message PkixPublicKey { // ECDSA on the NIST P-521 curve with a SHA512 digest. EC_SIGN_P521_SHA512 = 11; + + // ML-DSA-65 Post-Quantum Cryptography signature algorithm. + ML_DSA_65 = 13; } // A PEM-encoded public key, as described in @@ -304,8 +343,9 @@ message PkixPublicKey { SignatureAlgorithm signature_algorithm = 2; } -// An [attestor public key][google.cloud.binaryauthorization.v1beta1.AttestorPublicKey] that will be used to verify -// attestations signed by this attestor. +// An [attestor public +// key][google.cloud.binaryauthorization.v1beta1.AttestorPublicKey] that will be +// used to verify attestations signed by this attestor. message AttestorPublicKey { // Optional. A descriptive comment. This field may be updated. string comment = 1 [(google.api.field_behavior) = OPTIONAL]; diff --git a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/proto/google/cloud/binaryauthorization/v1beta1/service.proto b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/proto/google/cloud/binaryauthorization/v1beta1/service.proto index cdf7aabb7e7c..22f38d8555cd 100644 --- a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/proto/google/cloud/binaryauthorization/v1beta1/service.proto +++ b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/proto/google/cloud/binaryauthorization/v1beta1/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. @@ -23,7 +23,6 @@ import "google/api/resource.proto"; import "google/cloud/binaryauthorization/v1beta1/resources.proto"; import "google/protobuf/empty.proto"; -option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.BinaryAuthorization.V1Beta1"; option go_package = "cloud.google.com/go/binaryauthorization/apiv1beta1/binaryauthorizationpb;binaryauthorizationpb"; option java_multiple_files = true; @@ -43,15 +42,19 @@ option ruby_package = "Google::Cloud::BinaryAuthorization::V1beta1"; // * [Attestor][google.cloud.binaryauthorization.v1beta1.Attestor] service BinauthzManagementServiceV1Beta1 { option (google.api.default_host) = "binaryauthorization.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; - // A [policy][google.cloud.binaryauthorization.v1beta1.Policy] specifies the [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] that must attest to - // a container image, before the project is allowed to deploy that + // A [policy][google.cloud.binaryauthorization.v1beta1.Policy] specifies the + // [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] that must + // attest to a container image, before the project is allowed to deploy that // image. There is at most one policy per project. All image admission // requests are permitted if a project has no policy. // - // Gets the [policy][google.cloud.binaryauthorization.v1beta1.Policy] for this project. Returns a default - // [policy][google.cloud.binaryauthorization.v1beta1.Policy] if the project does not have one. + // Gets the [policy][google.cloud.binaryauthorization.v1beta1.Policy] for this + // project. Returns a default + // [policy][google.cloud.binaryauthorization.v1beta1.Policy] if the project + // does not have one. rpc GetPolicy(GetPolicyRequest) returns (Policy) { option (google.api.http) = { get: "/v1beta1/{name=projects/*/policy}" @@ -59,11 +62,13 @@ service BinauthzManagementServiceV1Beta1 { option (google.api.method_signature) = "name"; } - // Creates or updates a project's [policy][google.cloud.binaryauthorization.v1beta1.Policy], and returns a copy of the - // new [policy][google.cloud.binaryauthorization.v1beta1.Policy]. A policy is always updated as a whole, to avoid race - // conditions with concurrent policy enforcement (or management!) - // requests. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT - // if the request is malformed. + // Creates or updates a project's + // [policy][google.cloud.binaryauthorization.v1beta1.Policy], and returns a + // copy of the new [policy][google.cloud.binaryauthorization.v1beta1.Policy]. + // A policy is always updated as a whole, to avoid race conditions with + // concurrent policy enforcement (or management!) requests. Returns NOT_FOUND + // if the project does not exist, INVALID_ARGUMENT if the request is + // malformed. rpc UpdatePolicy(UpdatePolicyRequest) returns (Policy) { option (google.api.http) = { put: "/v1beta1/{policy.name=projects/*/policy}" @@ -72,10 +77,13 @@ service BinauthzManagementServiceV1Beta1 { option (google.api.method_signature) = "policy"; } - // Creates an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor], and returns a copy of the new - // [attestor][google.cloud.binaryauthorization.v1beta1.Attestor]. Returns NOT_FOUND if the project does not exist, - // INVALID_ARGUMENT if the request is malformed, ALREADY_EXISTS if the - // [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] already exists. + // Creates an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor], + // and returns a copy of the new + // [attestor][google.cloud.binaryauthorization.v1beta1.Attestor]. Returns + // NOT_FOUND if the project does not exist, INVALID_ARGUMENT if the request is + // malformed, ALREADY_EXISTS if the + // [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] already + // exists. rpc CreateAttestor(CreateAttestorRequest) returns (Attestor) { option (google.api.http) = { post: "/v1beta1/{parent=projects/*}/attestors" @@ -85,7 +93,9 @@ service BinauthzManagementServiceV1Beta1 { } // Gets an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor]. - // Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not exist. + // Returns NOT_FOUND if the + // [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not + // exist. rpc GetAttestor(GetAttestorRequest) returns (Attestor) { option (google.api.http) = { get: "/v1beta1/{name=projects/*/attestors/*}" @@ -94,7 +104,9 @@ service BinauthzManagementServiceV1Beta1 { } // Updates an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor]. - // Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not exist. + // Returns NOT_FOUND if the + // [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not + // exist. rpc UpdateAttestor(UpdateAttestorRequest) returns (Attestor) { option (google.api.http) = { put: "/v1beta1/{attestor.name=projects/*/attestors/*}" @@ -112,8 +124,10 @@ service BinauthzManagementServiceV1Beta1 { option (google.api.method_signature) = "parent"; } - // Deletes an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor]. Returns NOT_FOUND if the - // [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not exist. + // Deletes an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor]. + // Returns NOT_FOUND if the + // [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not + // exist. rpc DeleteAttestor(DeleteAttestorRequest) returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v1beta1/{name=projects/*/attestors/*}" @@ -122,22 +136,11 @@ service BinauthzManagementServiceV1Beta1 { } } -// Request message for [BinauthzManagementService.GetPolicy][]. -message GetPolicyRequest { - // Required. The resource name of the [policy][google.cloud.binaryauthorization.v1beta1.Policy] to retrieve, - // in the format `projects/*/policy`. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "binaryauthorization.googleapis.com/Policy" - } - ]; -} - // API for working with the system policy. service SystemPolicyV1Beta1 { option (google.api.default_host) = "binaryauthorization.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; // Gets the current system policy in the specified location. rpc GetSystemPolicy(GetSystemPolicyRequest) returns (Policy) { @@ -148,17 +151,33 @@ service SystemPolicyV1Beta1 { } } +// Request message for [BinauthzManagementService.GetPolicy][]. +message GetPolicyRequest { + // Required. The resource name of the + // [policy][google.cloud.binaryauthorization.v1beta1.Policy] to retrieve, in + // the format `projects/*/policy`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "binaryauthorization.googleapis.com/Policy" + } + ]; +} + // Request message for [BinauthzManagementService.UpdatePolicy][]. message UpdatePolicyRequest { - // Required. A new or updated [policy][google.cloud.binaryauthorization.v1beta1.Policy] value. The service will - // overwrite the [policy name][google.cloud.binaryauthorization.v1beta1.Policy.name] field with the resource name in - // the request URL, in the format `projects/*/policy`. + // Required. A new or updated + // [policy][google.cloud.binaryauthorization.v1beta1.Policy] value. The + // service will overwrite the [policy + // name][google.cloud.binaryauthorization.v1beta1.Policy.name] field with the + // resource name in the request URL, in the format `projects/*/policy`. Policy policy = 1 [(google.api.field_behavior) = REQUIRED]; } // Request message for [BinauthzManagementService.CreateAttestor][]. message CreateAttestorRequest { - // Required. The parent of this [attestor][google.cloud.binaryauthorization.v1beta1.Attestor]. + // Required. The parent of this + // [attestor][google.cloud.binaryauthorization.v1beta1.Attestor]. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -166,19 +185,23 @@ message CreateAttestorRequest { } ]; - // Required. The [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] ID. + // Required. The + // [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] ID. string attestor_id = 2 [(google.api.field_behavior) = REQUIRED]; - // Required. The initial [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will - // overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name, - // in the format `projects/*/attestors/*`. + // Required. The initial + // [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The + // service will overwrite the [attestor + // name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with + // the resource name, in the format `projects/*/attestors/*`. Attestor attestor = 3 [(google.api.field_behavior) = REQUIRED]; } // Request message for [BinauthzManagementService.GetAttestor][]. message GetAttestorRequest { - // Required. The name of the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] to retrieve, in the format - // `projects/*/attestors/*`. + // Required. The name of the + // [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] to retrieve, + // in the format `projects/*/attestors/*`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -189,16 +212,20 @@ message GetAttestorRequest { // Request message for [BinauthzManagementService.UpdateAttestor][]. message UpdateAttestorRequest { - // Required. The updated [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will - // overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name - // in the request URL, in the format `projects/*/attestors/*`. + // Required. The updated + // [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The + // service will overwrite the [attestor + // name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with + // the resource name in the request URL, in the format + // `projects/*/attestors/*`. Attestor attestor = 1 [(google.api.field_behavior) = REQUIRED]; } // Request message for [BinauthzManagementService.ListAttestors][]. message ListAttestorsRequest { // Required. The resource name of the project associated with the - // [attestors][google.cloud.binaryauthorization.v1beta1.Attestor], in the format `projects/*`. + // [attestors][google.cloud.binaryauthorization.v1beta1.Attestor], in the + // format `projects/*`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -211,8 +238,9 @@ message ListAttestorsRequest { int32 page_size = 2; // A token identifying a page of results the server should return. Typically, - // this is the value of [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.next_page_token] returned - // from the previous call to the `ListAttestors` method. + // this is the value of + // [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.next_page_token] + // returned from the previous call to the `ListAttestors` method. string page_token = 3; } @@ -222,15 +250,17 @@ message ListAttestorsResponse { repeated Attestor attestors = 1; // A token to retrieve the next page of results. Pass this value in the - // [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.page_token] field in the subsequent call to the - // `ListAttestors` method to retrieve the next page of results. + // [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.page_token] + // field in the subsequent call to the `ListAttestors` method to retrieve the + // next page of results. string next_page_token = 2; } // Request message for [BinauthzManagementService.DeleteAttestor][]. message DeleteAttestorRequest { - // Required. The name of the [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] to delete, in the format - // `projects/*/attestors/*`. + // Required. The name of the + // [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] to delete, + // in the format `projects/*/attestors/*`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/EvaluationServiceClient.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/EvaluationServiceClient.java index 23bd4e3991d8..c872692fc3e5 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/EvaluationServiceClient.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/EvaluationServiceClient.java @@ -1015,6 +1015,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * .toString()) * .setGoldenRunMethod(GoldenRunMethod.forNumber(0)) * .setGenerateLatencyReport(true) + * .setEvaluationRunCachingSettings(EvaluationRunCachingSettings.newBuilder().build()) * .build(); * RunEvaluationResponse response = evaluationServiceClient.runEvaluationAsync(request).get(); * } @@ -1062,6 +1063,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * .toString()) * .setGoldenRunMethod(GoldenRunMethod.forNumber(0)) * .setGenerateLatencyReport(true) + * .setEvaluationRunCachingSettings(EvaluationRunCachingSettings.newBuilder().build()) * .build(); * OperationFuture future = * evaluationServiceClient.runEvaluationOperationCallable().futureCall(request); @@ -1110,6 +1112,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * .toString()) * .setGoldenRunMethod(GoldenRunMethod.forNumber(0)) * .setGenerateLatencyReport(true) + * .setEvaluationRunCachingSettings(EvaluationRunCachingSettings.newBuilder().build()) * .build(); * ApiFuture future = * evaluationServiceClient.runEvaluationCallable().futureCall(request); diff --git a/java-ces/google-cloud-ces/src/main/resources/META-INF/native-image/com.google.cloud.ces.v1beta/reflect-config.json b/java-ces/google-cloud-ces/src/main/resources/META-INF/native-image/com.google.cloud.ces.v1beta/reflect-config.json index 37099af918d3..58c0c3124e51 100644 --- a/java-ces/google-cloud-ces/src/main/resources/META-INF/native-image/com.google.cloud.ces.v1beta/reflect-config.json +++ b/java-ces/google-cloud-ces/src/main/resources/META-INF/native-image/com.google.cloud.ces.v1beta/reflect-config.json @@ -1268,6 +1268,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.ces.v1beta.ChannelProfile$InstagramConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.ChannelProfile$InstagramConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.ces.v1beta.ChannelProfile$PersonaProperty", "queryAllDeclaredConstructors": true, @@ -1349,6 +1367,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.ces.v1beta.ChannelProfile$WhatsAppConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.ChannelProfile$WhatsAppConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.ces.v1beta.Chunk", "queryAllDeclaredConstructors": true, @@ -3635,6 +3671,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationRunCachingSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationRunCachingSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationRunCachingSettings$EvaluationRunCachingMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.ces.v1beta.EvaluationSettings", "queryAllDeclaredConstructors": true, @@ -4274,6 +4337,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$QualityReportGenerationConfig$LossAttributionAlgorithm", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$RefineInstructions", "queryAllDeclaredConstructors": true, @@ -4508,6 +4580,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.ces.v1beta.GenerateEvaluationRequest$EvaluationType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.ces.v1beta.GetAgentRequest", "queryAllDeclaredConstructors": true, @@ -5273,6 +5354,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.ces.v1beta.InstagramCredentials", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.InstagramCredentials$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.ces.v1beta.InterruptionSignal", "queryAllDeclaredConstructors": true, @@ -7838,6 +7937,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.ces.v1beta.WhatsAppCredentials", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.WhatsAppCredentials$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.ces.v1beta.WidgetTool", "queryAllDeclaredConstructors": true, diff --git a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/AgentServiceClientHttpJsonTest.java b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/AgentServiceClientHttpJsonTest.java index 9e99da2218f5..7a1b32f636cd 100644 --- a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/AgentServiceClientHttpJsonTest.java +++ b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/AgentServiceClientHttpJsonTest.java @@ -4195,6 +4195,8 @@ public void getDeploymentTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") .setExperimentConfig(ExperimentConfig.newBuilder().build()) + .setWhatsappCredentials(WhatsAppCredentials.newBuilder().build()) + .setInstagramCredentials(InstagramCredentials.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -4248,6 +4250,8 @@ public void getDeploymentTest2() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") .setExperimentConfig(ExperimentConfig.newBuilder().build()) + .setWhatsappCredentials(WhatsAppCredentials.newBuilder().build()) + .setInstagramCredentials(InstagramCredentials.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -4303,6 +4307,8 @@ public void createDeploymentTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") .setExperimentConfig(ExperimentConfig.newBuilder().build()) + .setWhatsappCredentials(WhatsAppCredentials.newBuilder().build()) + .setInstagramCredentials(InstagramCredentials.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -4358,6 +4364,8 @@ public void createDeploymentTest2() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") .setExperimentConfig(ExperimentConfig.newBuilder().build()) + .setWhatsappCredentials(WhatsAppCredentials.newBuilder().build()) + .setInstagramCredentials(InstagramCredentials.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -4413,6 +4421,8 @@ public void createDeploymentTest3() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") .setExperimentConfig(ExperimentConfig.newBuilder().build()) + .setWhatsappCredentials(WhatsAppCredentials.newBuilder().build()) + .setInstagramCredentials(InstagramCredentials.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -4470,6 +4480,8 @@ public void createDeploymentTest4() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") .setExperimentConfig(ExperimentConfig.newBuilder().build()) + .setWhatsappCredentials(WhatsAppCredentials.newBuilder().build()) + .setInstagramCredentials(InstagramCredentials.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -4527,6 +4539,8 @@ public void updateDeploymentTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") .setExperimentConfig(ExperimentConfig.newBuilder().build()) + .setWhatsappCredentials(WhatsAppCredentials.newBuilder().build()) + .setInstagramCredentials(InstagramCredentials.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -4542,6 +4556,8 @@ public void updateDeploymentTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") .setExperimentConfig(ExperimentConfig.newBuilder().build()) + .setWhatsappCredentials(WhatsAppCredentials.newBuilder().build()) + .setInstagramCredentials(InstagramCredentials.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -4583,6 +4599,8 @@ public void updateDeploymentExceptionTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") .setExperimentConfig(ExperimentConfig.newBuilder().build()) + .setWhatsappCredentials(WhatsAppCredentials.newBuilder().build()) + .setInstagramCredentials(InstagramCredentials.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateDeployment(deployment, updateMask); @@ -4781,6 +4799,7 @@ public void getToolsetTest() throws Exception { .setName(ToolsetName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOLSET]").toString()) .setDisplayName("displayName1714148973") .setDescription("description-1724546052") + .setTimeout(Duration.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") @@ -4832,6 +4851,7 @@ public void getToolsetTest2() throws Exception { .setName(ToolsetName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOLSET]").toString()) .setDisplayName("displayName1714148973") .setDescription("description-1724546052") + .setTimeout(Duration.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") @@ -4885,6 +4905,7 @@ public void createToolsetTest() throws Exception { .setName(ToolsetName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOLSET]").toString()) .setDisplayName("displayName1714148973") .setDescription("description-1724546052") + .setTimeout(Duration.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") @@ -4938,6 +4959,7 @@ public void createToolsetTest2() throws Exception { .setName(ToolsetName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOLSET]").toString()) .setDisplayName("displayName1714148973") .setDescription("description-1724546052") + .setTimeout(Duration.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") @@ -4991,6 +5013,7 @@ public void createToolsetTest3() throws Exception { .setName(ToolsetName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOLSET]").toString()) .setDisplayName("displayName1714148973") .setDescription("description-1724546052") + .setTimeout(Duration.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") @@ -5046,6 +5069,7 @@ public void createToolsetTest4() throws Exception { .setName(ToolsetName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOLSET]").toString()) .setDisplayName("displayName1714148973") .setDescription("description-1724546052") + .setTimeout(Duration.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") @@ -5101,6 +5125,7 @@ public void updateToolsetTest() throws Exception { .setName(ToolsetName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOLSET]").toString()) .setDisplayName("displayName1714148973") .setDescription("description-1724546052") + .setTimeout(Duration.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") @@ -5114,6 +5139,7 @@ public void updateToolsetTest() throws Exception { .setName(ToolsetName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOLSET]").toString()) .setDisplayName("displayName1714148973") .setDescription("description-1724546052") + .setTimeout(Duration.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") @@ -5153,6 +5179,7 @@ public void updateToolsetExceptionTest() throws Exception { .setName(ToolsetName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOLSET]").toString()) .setDisplayName("displayName1714148973") .setDescription("description-1724546052") + .setTimeout(Duration.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") diff --git a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/AgentServiceClientTest.java b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/AgentServiceClientTest.java index 4734d122a1ce..f70df1db3313 100644 --- a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/AgentServiceClientTest.java +++ b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/AgentServiceClientTest.java @@ -3654,6 +3654,8 @@ public void getDeploymentTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") .setExperimentConfig(ExperimentConfig.newBuilder().build()) + .setWhatsappCredentials(WhatsAppCredentials.newBuilder().build()) + .setInstagramCredentials(InstagramCredentials.newBuilder().build()) .build(); mockAgentService.addResponse(expectedResponse); @@ -3701,6 +3703,8 @@ public void getDeploymentTest2() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") .setExperimentConfig(ExperimentConfig.newBuilder().build()) + .setWhatsappCredentials(WhatsAppCredentials.newBuilder().build()) + .setInstagramCredentials(InstagramCredentials.newBuilder().build()) .build(); mockAgentService.addResponse(expectedResponse); @@ -3748,6 +3752,8 @@ public void createDeploymentTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") .setExperimentConfig(ExperimentConfig.newBuilder().build()) + .setWhatsappCredentials(WhatsAppCredentials.newBuilder().build()) + .setInstagramCredentials(InstagramCredentials.newBuilder().build()) .build(); mockAgentService.addResponse(expectedResponse); @@ -3798,6 +3804,8 @@ public void createDeploymentTest2() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") .setExperimentConfig(ExperimentConfig.newBuilder().build()) + .setWhatsappCredentials(WhatsAppCredentials.newBuilder().build()) + .setInstagramCredentials(InstagramCredentials.newBuilder().build()) .build(); mockAgentService.addResponse(expectedResponse); @@ -3848,6 +3856,8 @@ public void createDeploymentTest3() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") .setExperimentConfig(ExperimentConfig.newBuilder().build()) + .setWhatsappCredentials(WhatsAppCredentials.newBuilder().build()) + .setInstagramCredentials(InstagramCredentials.newBuilder().build()) .build(); mockAgentService.addResponse(expectedResponse); @@ -3901,6 +3911,8 @@ public void createDeploymentTest4() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") .setExperimentConfig(ExperimentConfig.newBuilder().build()) + .setWhatsappCredentials(WhatsAppCredentials.newBuilder().build()) + .setInstagramCredentials(InstagramCredentials.newBuilder().build()) .build(); mockAgentService.addResponse(expectedResponse); @@ -3954,6 +3966,8 @@ public void updateDeploymentTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") .setExperimentConfig(ExperimentConfig.newBuilder().build()) + .setWhatsappCredentials(WhatsAppCredentials.newBuilder().build()) + .setInstagramCredentials(InstagramCredentials.newBuilder().build()) .build(); mockAgentService.addResponse(expectedResponse); @@ -4153,6 +4167,7 @@ public void getToolsetTest() throws Exception { .setName(ToolsetName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOLSET]").toString()) .setDisplayName("displayName1714148973") .setDescription("description-1724546052") + .setTimeout(Duration.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") @@ -4198,6 +4213,7 @@ public void getToolsetTest2() throws Exception { .setName(ToolsetName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOLSET]").toString()) .setDisplayName("displayName1714148973") .setDescription("description-1724546052") + .setTimeout(Duration.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") @@ -4243,6 +4259,7 @@ public void createToolsetTest() throws Exception { .setName(ToolsetName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOLSET]").toString()) .setDisplayName("displayName1714148973") .setDescription("description-1724546052") + .setTimeout(Duration.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") @@ -4291,6 +4308,7 @@ public void createToolsetTest2() throws Exception { .setName(ToolsetName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOLSET]").toString()) .setDisplayName("displayName1714148973") .setDescription("description-1724546052") + .setTimeout(Duration.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") @@ -4339,6 +4357,7 @@ public void createToolsetTest3() throws Exception { .setName(ToolsetName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOLSET]").toString()) .setDisplayName("displayName1714148973") .setDescription("description-1724546052") + .setTimeout(Duration.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") @@ -4390,6 +4409,7 @@ public void createToolsetTest4() throws Exception { .setName(ToolsetName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOLSET]").toString()) .setDisplayName("displayName1714148973") .setDescription("description-1724546052") + .setTimeout(Duration.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") @@ -4441,6 +4461,7 @@ public void updateToolsetTest() throws Exception { .setName(ToolsetName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOLSET]").toString()) .setDisplayName("displayName1714148973") .setDescription("description-1724546052") + .setTimeout(Duration.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentServiceProto.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentServiceProto.java index 7a0cb055b458..39728a3ca362 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentServiceProto.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentServiceProto.java @@ -697,7 +697,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030RestoreAppVersionRequest\0223\n" + "\004name\030\001 \001(\tB%\340A\002\372A\037\n" + "\035ces.googleapis.com/AppVersion\"\033\n" - + "\031RestoreAppVersionResponse\"\356\024\n" + + "\031RestoreAppVersionResponse\"\340\026\n" + "\032GenerateAppResourceRequest\022/\n" + "\005agent\030\002 \001(\0132\036.google.cloud.ces.v1beta.AgentH\000\022-\n" + "\004tool\030\004 \001(\0132\035.google.cloud.ces.v1beta.ToolH\000\0223\n" @@ -760,28 +760,34 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032EvaluationGenerationConfig\022H\n\n" + "dataset_id\030\001 \001(\tB4\340A\001\372A.\n" + ",contactcenterinsights.googleapis.com/Dataset\032$\n" - + "\"EvaluationPersonasGenerationConfig\032a\n" + + "\"EvaluationPersonasGenerationConfig\032\322\002\n" + "\035QualityReportGenerationConfig\022@\n" + "\016evaluation_run\030\001 \001(\tB(\340A\002\372A\"\n" - + " ces.googleapis.com/EvaluationRun\032\\\n" + + " ces.googleapis.com/EvaluationRun\022\202\001\n" + + "\talgorithm\030\002 \001(\0162j.google.cloud.ces.v1beta.GenerateA" + + "ppResourceRequest.QualityReportGenerationConfig.LossAttributionAlgorithmB\003\340A\001\"j\n" + + "\030LossAttributionAlgorithm\022*\n" + + "&LOSS_ATTRIBUTION_ALGORITHM_UNSPECIFIED\020\000\022\017\n" + + "\013APP_CENTRIC\020\001\022\021\n\r" + + "AGENT_CENTRIC\020\002\032\\\n" + "\025HillClimbingFixConfig\022C\n" - + "\016quality_report\030\001" - + " \001(\0132&.google.cloud.ces.v1beta.QualityReportB\003\340A\002B\n\n" + + "\016quality_report\030\001 \001(\0132&.goo" + + "gle.cloud.ces.v1beta.QualityReportB\003\340A\002B\n\n" + "\010resource\"\264\007\n" + "\033GenerateAppResourceResponse\022/\n" + "\005agent\030\001 \001(\0132\036.google.cloud.ces.v1beta.AgentH\000\0223\n" + "\007toolset\030\003 \001(\0132 .google.cloud.ces.v1beta.ToolsetH\000\022<\n" + "\014app_snapshot\030\004 \001(\0132$.google.cloud.ces.v1beta.AppSnapshotH\000\022K\n" - + "\005tools\030\005 \001(\0132:.google.cloud.ces." - + "v1beta.GenerateAppResourceResponse.ToolsH\000\022W\n" - + "\013evaluations\030\006 \001(\0132@.google.cloud.c" - + "es.v1beta.GenerateAppResourceResponse.EvaluationsH\000\022Z\n\r" - + "app_resources\030\007 \001(\0132A.goo" - + "gle.cloud.ces.v1beta.GenerateAppResourceResponse.AppResourcesH\000\022@\n" + + "\005tools\030\005 \001(\0132:.google.cloud.ce" + + "s.v1beta.GenerateAppResourceResponse.ToolsH\000\022W\n" + + "\013evaluations\030\006 \001(\0132@.google.cloud" + + ".ces.v1beta.GenerateAppResourceResponse.EvaluationsH\000\022Z\n\r" + + "app_resources\030\007 \001(\0132A.g" + + "oogle.cloud.ces.v1beta.GenerateAppResourceResponse.AppResourcesH\000\022@\n" + "\016quality_report\030\010" + " \001(\0132&.google.cloud.ces.v1beta.QualityReportH\000\022e\n" - + "\024generate_result_info\030\002 \001(\0132" - + "G.google.cloud.ces.v1beta.GenerateAppResourceResponse.GenerateResultInfo\032G\n" + + "\024generate_result_info\030\002 \001(" + + "\0132G.google.cloud.ces.v1beta.GenerateAppResourceResponse.GenerateResultInfo\032G\n" + "\013Evaluations\0228\n" + "\013evaluations\030\001 \003(\0132#.google.cloud.ces.v1beta.Evaluation\0325\n" + "\005Tools\022,\n" @@ -793,22 +799,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013explanation\030\001 \001(\tB\024\n" + "\022generated_resource\"\211\003\n\r" + "QualityReport\022G\n" - + "\006issues\030\001 \003(\01322.goo" - + "gle.cloud.ces.v1beta.QualityReport.AgentIssuesB\003\340A\001\022\034\n" + + "\006issues\030\001 \003(\01322.g" + + "oogle.cloud.ces.v1beta.QualityReport.AgentIssuesB\003\340A\001\022\034\n" + "\017evaluation_runs\030\002 \003(\tB\003\340A\001\022I\n" - + "\016general_issues\030\003" - + " \003(\0132,.google.cloud.ces.v1beta.QualityReport.IssueB\003\340A\001\032`\n" + + "\016general_issues\030\003 \003(\0132,.google.clo" + + "ud.ces.v1beta.QualityReport.IssueB\003\340A\001\032`\n" + "\005Issue\022\030\n" + "\013description\030\001 \001(\tB\003\340A\001\022\035\n" + "\020occurrence_count\030\002 \001(\005B\003\340A\001\022\036\n" + "\021proposed_solution\030\003 \001(\tB\003\340A\001\032d\n" + "\013AgentIssues\022\022\n" + "\005agent\030\001 \001(\tB\003\340A\001\022A\n" - + "\006issues\030\002" - + " \003(\0132,.google.cloud.ces.v1beta.QualityReport.IssueB\003\340A\001\"\353\004\n" + + "\006issues\030\002 \003(\0132,.google.clo" + + "ud.ces.v1beta.QualityReport.IssueB\003\340A\001\"\353\004\n" + "$GenerateAppResourceOperationMetadata\022j\n" - + "\017generation_type\030\001 \001(\0162L.google.cloud.ce" - + "s.v1beta.GenerateAppResourceOperationMetadata.GenerationTypeB\003\340A\003\022\024\n" + + "\017generation_type\030\001 \001(\0162L.google.cloud." + + "ces.v1beta.GenerateAppResourceOperationMetadata.GenerationTypeB\003\340A\003\022\024\n" + "\007message\030\002 \001(\tB\003\340A\003\0224\n" + "\013create_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0221\n" + "\010end_time\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\023\n" @@ -842,256 +848,256 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB+\340A\002\372A%\n" + "#ces.googleapis.com/SecuritySettings\"\240\001\n" + "\035UpdateSecuritySettingsRequest\022I\n" - + "\021security_settings\030\001 " - + "\001(\0132).google.cloud.ces.v1beta.SecuritySettingsB\003\340A\002\0224\n" + + "\021security_settings\030\001" + + " \001(\0132).google.cloud.ces.v1beta.SecuritySettingsB\003\340A\002\0224\n" + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\0012\326M\n" + "\014AgentService\022\236\001\n" - + "\010ListApps\022(.google.cloud.ces.v1beta.ListAppsRequest\032).google.cloud.ces.v1b" - + "eta.ListAppsResponse\"=\332A\006parent\202\323\344\223\002.\022,/" - + "v1beta/{parent=projects/*/locations/*}/apps\022\213\001\n" - + "\006GetApp\022&.google.cloud.ces.v1beta.GetAppRequest\032\034.google.cloud.ces.v1beta" - + ".App\";\332A\004name\202\323\344\223\002.\022,/v1beta/{name=projects/*/locations/*/apps/*}\022\314\001\n" - + "\tCreateApp\022" - + ").google.cloud.ces.v1beta.CreateAppRequest\032\035.google.longrunning.Operation\"u\312A\030\n" + + "\010ListApps\022(.google.cloud.ces.v1beta.ListAppsRequest\032).google.cloud.ces.v" + + "1beta.ListAppsResponse\"=\332A\006parent\202\323\344\223\002.\022" + + ",/v1beta/{parent=projects/*/locations/*}/apps\022\213\001\n" + + "\006GetApp\022&.google.cloud.ces.v1beta.GetAppRequest\032\034.google.cloud.ces.v1be" + + "ta.App\";\332A\004name\202\323\344\223\002.\022,/v1beta/{name=projects/*/locations/*/apps/*}\022\314\001\n" + + "\tCreateApp\022).google.cloud.ces.v1beta.CreateAppReq" + + "uest\032\035.google.longrunning.Operation\"u\312A\030\n" + "\003App\022\021OperationMetadata\332A\021parent,app,app_id\332A\n" + "parent,app\202\323\344\223\0023\",/v1beta/{parent=projects/*/locations/*}/apps:\003app\022\245\001\n" - + "\tUpdateApp\022).google.cloud.ces.v1beta.UpdateA" - + "ppRequest\032\034.google.cloud.ces.v1beta.App\"" - + "O\332A\017app,update_mask\202\323\344\223\002720/v1beta/{app." - + "name=projects/*/locations/*/apps/*}:\003app\022\277\001\n" - + "\tDeleteApp\022).google.cloud.ces.v1beta" - + ".DeleteAppRequest\032\035.google.longrunning.Operation\"h\312A*\n" - + "\025google.protobuf.Empty\022\021Op" - + "erationMetadata\332A\004name\202\323\344\223\002.*,/v1beta/{name=projects/*/locations/*/apps/*}\022\310\001\n" - + "\tExportApp\022).google.cloud.ces.v1beta.Expor" - + "tAppRequest\032\035.google.longrunning.Operation\"q\312A&\n" - + "\021ExportAppResponse\022\021OperationMet" - + "adata\332A\004name\202\323\344\223\002;\"6/v1beta/{name=projec" - + "ts/*/locations/*/apps/*}:exportApp:\001*\022\337\001\n" - + "\tImportApp\022).google.cloud.ces.v1beta.Im" - + "portAppRequest\032\035.google.longrunning.Operation\"\207\001\312A&\n" - + "\021ImportAppResponse\022\021Operatio" - + "nMetadata\332A\032parent,display_name,app_id\202\323" - + "\344\223\002;\"6/v1beta/{parent=projects/*/locations/*}/apps:importApp:\001*\022\274\001\n" - + "\023GetSecuritySettings\0223.google.cloud.ces.v1beta.GetSec" - + "uritySettingsRequest\032).google.cloud.ces." - + "v1beta.SecuritySettings\"E\332A\004name\202\323\344\223\0028\0226" - + "/v1beta/{name=projects/*/locations/*/securitySettings}\022\201\002\n" - + "\026UpdateSecuritySettings\0226.google.cloud.ces.v1beta.UpdateSecuri" - + "tySettingsRequest\032).google.cloud.ces.v1b" - + "eta.SecuritySettings\"\203\001\332A\035security_setti" - + "ngs,update_mask\202\323\344\223\002]2H/v1beta/{security" - + "_settings.name=projects/*/locations/*/securitySettings}:\021security_settings\022\255\001\n\n" - + "ListAgents\022*.google.cloud.ces.v1beta.List" - + "AgentsRequest\032+.google.cloud.ces.v1beta.", - "ListAgentsResponse\"F\332A\006parent\202\323\344\223\0027\0225/v1" - + "beta/{parent=projects/*/locations/*/apps" - + "/*}/agents\022\232\001\n\010GetAgent\022(.google.cloud.c" - + "es.v1beta.GetAgentRequest\032\036.google.cloud" - + ".ces.v1beta.Agent\"D\332A\004name\202\323\344\223\0027\0225/v1bet" - + "a/{name=projects/*/locations/*/apps/*/ag" - + "ents/*}\022\307\001\n\013CreateAgent\022+.google.cloud.c" - + "es.v1beta.CreateAgentRequest\032\036.google.cl" - + "oud.ces.v1beta.Agent\"k\332A\025parent,agent,ag" - + "ent_id\332A\014parent,agent\202\323\344\223\002>\"5/v1beta/{pa" - + "rent=projects/*/locations/*/apps/*}/agen" - + "ts:\005agent\022\272\001\n\013UpdateAgent\022+.google.cloud" - + ".ces.v1beta.UpdateAgentRequest\032\036.google." - + "cloud.ces.v1beta.Agent\"^\332A\021agent,update_" - + "mask\202\323\344\223\002D2;/v1beta/{agent.name=projects" - + "/*/locations/*/apps/*/agents/*}:\005agent\022\230" - + "\001\n\013DeleteAgent\022+.google.cloud.ces.v1beta" - + ".DeleteAgentRequest\032\026.google.protobuf.Em" - + "pty\"D\332A\004name\202\323\344\223\0027*5/v1beta/{name=projec" - + "ts/*/locations/*/apps/*/agents/*}\022\265\001\n\014Li" - + "stExamples\022,.google.cloud.ces.v1beta.Lis" - + "tExamplesRequest\032-.google.cloud.ces.v1be" - + "ta.ListExamplesResponse\"H\332A\006parent\202\323\344\223\0029" - + "\0227/v1beta/{parent=projects/*/locations/*" - + "/apps/*}/examples\022\242\001\n\nGetExample\022*.googl" - + "e.cloud.ces.v1beta.GetExampleRequest\032 .g" - + "oogle.cloud.ces.v1beta.Example\"F\332A\004name\202" - + "\323\344\223\0029\0227/v1beta/{name=projects/*/location" - + "s/*/apps/*/examples/*}\022\327\001\n\rCreateExample" - + "\022-.google.cloud.ces.v1beta.CreateExample" - + "Request\032 .google.cloud.ces.v1beta.Exampl" - + "e\"u\332A\031parent,example,example_id\332A\016parent" - + ",example\202\323\344\223\002B\"7/v1beta/{parent=projects" - + "/*/locations/*/apps/*}/examples:\007example" - + "\022\310\001\n\rUpdateExample\022-.google.cloud.ces.v1" - + "beta.UpdateExampleRequest\032 .google.cloud" - + ".ces.v1beta.Example\"f\332A\023example,update_m" - + "ask\202\323\344\223\002J2?/v1beta/{example.name=project" - + "s/*/locations/*/apps/*/examples/*}:\007exam" - + "ple\022\236\001\n\rDeleteExample\022-.google.cloud.ces" - + ".v1beta.DeleteExampleRequest\032\026.google.pr" - + "otobuf.Empty\"F\332A\004name\202\323\344\223\0029*7/v1beta/{na" - + "me=projects/*/locations/*/apps/*/example" - + "s/*}\022\251\001\n\tListTools\022).google.cloud.ces.v1" - + "beta.ListToolsRequest\032*.google.cloud.ces" - + ".v1beta.ListToolsResponse\"E\332A\006parent\202\323\344\223" - + "\0026\0224/v1beta/{parent=projects/*/locations" - + "/*/apps/*}/tools\022\226\001\n\007GetTool\022\'.google.cl" - + "oud.ces.v1beta.GetToolRequest\032\035.google.c" - + "loud.ces.v1beta.Tool\"C\332A\004name\202\323\344\223\0026\0224/v1" - + "beta/{name=projects/*/locations/*/apps/*" - + "/tools/*}\022\311\001\n\021ListConversations\0221.google" - + ".cloud.ces.v1beta.ListConversationsReque" - + "st\0322.google.cloud.ces.v1beta.ListConvers" - + "ationsResponse\"M\332A\006parent\202\323\344\223\002>\022\022*\"5/v1beta/{" + + "parent=projects/*/locations/*/apps/*}/ag" + + "ents:\005agent\022\272\001\n\013UpdateAgent\022+.google.clo" + + "ud.ces.v1beta.UpdateAgentRequest\032\036.googl" + + "e.cloud.ces.v1beta.Agent\"^\332A\021agent,updat" + + "e_mask\202\323\344\223\002D2;/v1beta/{agent.name=projec" + + "ts/*/locations/*/apps/*/agents/*}:\005agent" + + "\022\230\001\n\013DeleteAgent\022+.google.cloud.ces.v1be" + + "ta.DeleteAgentRequest\032\026.google.protobuf." + + "Empty\"D\332A\004name\202\323\344\223\0027*5/v1beta/{name=proj" + + "ects/*/locations/*/apps/*/agents/*}\022\265\001\n\014" + + "ListExamples\022,.google.cloud.ces.v1beta.L" + + "istExamplesRequest\032-.google.cloud.ces.v1" + + "beta.ListExamplesResponse\"H\332A\006parent\202\323\344\223" + + "\0029\0227/v1beta/{parent=projects/*/locations" + + "/*/apps/*}/examples\022\242\001\n\nGetExample\022*.goo" + + "gle.cloud.ces.v1beta.GetExampleRequest\032 " + + ".google.cloud.ces.v1beta.Example\"F\332A\004nam" + + "e\202\323\344\223\0029\0227/v1beta/{name=projects/*/locati" + + "ons/*/apps/*/examples/*}\022\327\001\n\rCreateExamp" + + "le\022-.google.cloud.ces.v1beta.CreateExamp" + + "leRequest\032 .google.cloud.ces.v1beta.Exam" + + "ple\"u\332A\031parent,example,example_id\332A\016pare" + + "nt,example\202\323\344\223\002B\"7/v1beta/{parent=projec" + + "ts/*/locations/*/apps/*}/examples:\007examp" + + "le\022\310\001\n\rUpdateExample\022-.google.cloud.ces." + + "v1beta.UpdateExampleRequest\032 .google.clo" + + "ud.ces.v1beta.Example\"f\332A\023example,update" + + "_mask\202\323\344\223\002J2?/v1beta/{example.name=proje" + + "cts/*/locations/*/apps/*/examples/*}:\007ex" + + "ample\022\236\001\n\rDeleteExample\022-.google.cloud.c" + + "es.v1beta.DeleteExampleRequest\032\026.google." + + "protobuf.Empty\"F\332A\004name\202\323\344\223\0029*7/v1beta/{" + + "name=projects/*/locations/*/apps/*/examp" + + "les/*}\022\251\001\n\tListTools\022).google.cloud.ces." + + "v1beta.ListToolsRequest\032*.google.cloud.c" + + "es.v1beta.ListToolsResponse\"E\332A\006parent\202\323" + + "\344\223\0026\0224/v1beta/{parent=projects/*/locatio" + + "ns/*/apps/*}/tools\022\226\001\n\007GetTool\022\'.google." + + "cloud.ces.v1beta.GetToolRequest\032\035.google" + + ".cloud.ces.v1beta.Tool\"C\332A\004name\202\323\344\223\0026\0224/" + "v1beta/{name=projects/*/locations/*/apps" - + "/*/tools/*}\022\275\001\n\016ListGuardrails\022..google." - + "cloud.ces.v1beta.ListGuardrailsRequest\032/" - + ".google.cloud.ces.v1beta.ListGuardrailsR" - + "esponse\"J\332A\006parent\202\323\344\223\002;\0229/v1beta/{paren" - + "t=projects/*/locations/*/apps/*}/guardra" - + "ils\022\252\001\n\014GetGuardrail\022,.google.cloud.ces." - + "v1beta.GetGuardrailRequest\032\".google.clou" - + "d.ces.v1beta.Guardrail\"H\332A\004name\202\323\344\223\002;\0229/" - + "v1beta/{name=projects/*/locations/*/apps" - + "/*/guardrails/*}\022\347\001\n\017CreateGuardrail\022/.g" - + "oogle.cloud.ces.v1beta.CreateGuardrailRe" - + "quest\032\".google.cloud.ces.v1beta.Guardrai" - + "l\"\177\332A\035parent,guardrail,guardrail_id\332A\020pa" - + "rent,guardrail\202\323\344\223\002F\"9/v1beta/{parent=pr" - + "ojects/*/locations/*/apps/*}/guardrails:" - + "\tguardrail\022\326\001\n\017UpdateGuardrail\022/.google." - + "cloud.ces.v1beta.UpdateGuardrailRequest\032" - + "\".google.cloud.ces.v1beta.Guardrail\"n\332A\025" - + "guardrail,update_mask\202\323\344\223\002P2C/v1beta/{gu" - + "ardrail.name=projects/*/locations/*/apps" - + "/*/guardrails/*}:\tguardrail\022\244\001\n\017DeleteGu" - + "ardrail\022/.google.cloud.ces.v1beta.Delete" - + "GuardrailRequest\032\026.google.protobuf.Empty" - + "\"H\332A\004name\202\323\344\223\002;*9/v1beta/{name=projects/" - + "*/locations/*/apps/*/guardrails/*}\022\301\001\n\017L" - + "istDeployments\022/.google.cloud.ces.v1beta" - + ".ListDeploymentsRequest\0320.google.cloud.c" - + "es.v1beta.ListDeploymentsResponse\"K\332A\006pa" - + "rent\202\323\344\223\002<\022:/v1beta/{parent=projects/*/l" - + "ocations/*/apps/*}/deployments\022\256\001\n\rGetDe" - + "ployment\022-.google.cloud.ces.v1beta.GetDe" - + "ploymentRequest\032#.google.cloud.ces.v1bet" - + "a.Deployment\"I\332A\004name\202\323\344\223\002<\022:/v1beta/{na" - + "me=projects/*/locations/*/apps/*/deploym" - + "ents/*}\022\360\001\n\020CreateDeployment\0220.google.cl" - + "oud.ces.v1beta.CreateDeploymentRequest\032#" - + ".google.cloud.ces.v1beta.Deployment\"\204\001\332A" - + "\037parent,deployment,deployment_id\332A\021paren" - + "t,deployment\202\323\344\223\002H\":/v1beta/{parent=proj" - + "ects/*/locations/*/apps/*}/deployments:\n" - + "deployment\022\335\001\n\020UpdateDeployment\0220.google" - + ".cloud.ces.v1beta.UpdateDeploymentReques" - + "t\032#.google.cloud.ces.v1beta.Deployment\"r" - + "\332A\026deployment,update_mask\202\323\344\223\002S2E/v1beta" - + "/{deployment.name=projects/*/locations/*" - + "/apps/*/deployments/*}:\ndeployment\022\247\001\n\020D" - + "eleteDeployment\0220.google.cloud.ces.v1bet" - + "a.DeleteDeploymentRequest\032\026.google.proto" - + "buf.Empty\"I\332A\004name\202\323\344\223\002<*:/v1beta/{name=" - + "projects/*/locations/*/apps/*/deployment" - + "s/*}\022\265\001\n\014ListToolsets\022,.google.cloud.ces" - + ".v1beta.ListToolsetsRequest\032-.google.clo" - + "ud.ces.v1beta.ListToolsetsResponse\"H\332A\006p" - + "arent\202\323\344\223\0029\0227/v1beta/{parent=projects/*/" - + "locations/*/apps/*}/toolsets\022\242\001\n\nGetTool" - + "set\022*.google.cloud.ces.v1beta.GetToolset" - + "Request\032 .google.cloud.ces.v1beta.Toolse" - + "t\"F\332A\004name\202\323\344\223\0029\0227/v1beta/{name=projects" - + "/*/locations/*/apps/*/toolsets/*}\022\327\001\n\rCr" - + "eateToolset\022-.google.cloud.ces.v1beta.Cr" - + "eateToolsetRequest\032 .google.cloud.ces.v1" - + "beta.Toolset\"u\332A\031parent,toolset,toolset_" - + "id\332A\016parent,toolset\202\323\344\223\002B\"7/v1beta/{pare" - + "nt=projects/*/locations/*/apps/*}/toolse" - + "ts:\007toolset\022\310\001\n\rUpdateToolset\022-.google.c" - + "loud.ces.v1beta.UpdateToolsetRequest\032 .g" - + "oogle.cloud.ces.v1beta.Toolset\"f\332A\023tools" - + "et,update_mask\202\323\344\223\002J2?/v1beta/{toolset.n" - + "ame=projects/*/locations/*/apps/*/toolse" - + "ts/*}:\007toolset\022\236\001\n\rDeleteToolset\022-.googl" - + "e.cloud.ces.v1beta.DeleteToolsetRequest\032" - + "\026.google.protobuf.Empty\"F\332A\004name\202\323\344\223\0029*7" - + "/v1beta/{name=projects/*/locations/*/app" - + "s/*/toolsets/*}\022\276\001\n\017ListAppVersions\022/.go" - + "ogle.cloud.ces.v1beta.ListAppVersionsReq" - + "uest\0320.google.cloud.ces.v1beta.ListAppVe" - + "rsionsResponse\"H\332A\006parent\202\323\344\223\0029\0227/v1beta" - + "/{parent=projects/*/locations/*/apps/*}/" - + "versions\022\253\001\n\rGetAppVersion\022-.google.clou" - + "d.ces.v1beta.GetAppVersionRequest\032#.goog" - + "le.cloud.ces.v1beta.AppVersion\"F\332A\004name\202" - + "\323\344\223\0029\0227/v1beta/{name=projects/*/location" - + "s/*/apps/*/versions/*}\022\361\001\n\020CreateAppVers" - + "ion\0220.google.cloud.ces.v1beta.CreateAppV" - + "ersionRequest\032#.google.cloud.ces.v1beta." - + "AppVersion\"\205\001\332A!parent,app_version,app_v" - + "ersion_id\332A\022parent,app_version\202\323\344\223\002F\"7/v" - + "1beta/{parent=projects/*/locations/*/app" - + "s/*}/versions:\013app_version\022\244\001\n\020DeleteApp" - + "Version\0220.google.cloud.ces.v1beta.Delete" - + "AppVersionRequest\032\026.google.protobuf.Empt" - + "y\"F\332A\004name\202\323\344\223\0029*7/v1beta/{name=projects" - + "/*/locations/*/apps/*/versions/*}\022\352\001\n\021Re" - + "storeAppVersion\0221.google.cloud.ces.v1bet" - + "a.RestoreAppVersionRequest\032\035.google.long" - + "running.Operation\"\202\001\312A.\n\031RestoreAppVersi" - + "onResponse\022\021OperationMetadata\332A\004name\202\323\344\223" - + "\002D\"?/v1beta/{name=projects/*/locations/*" - + "/apps/*/versions/*}:restore:\001*\022\210\002\n\023Gener" - + "ateAppResource\0223.google.cloud.ces.v1beta" - + ".GenerateAppResourceRequest\032\035.google.lon" - + "grunning.Operation\"\234\001\312AC\n\033GenerateAppRes" - + "ourceResponse\022$GenerateAppResourceOperat" - + "ionMetadata\332A\006parent\202\323\344\223\002G\"B/v1beta/{par" - + "ent=projects/*/locations/*/apps/*}:gener" - + "ateAppResource:\001*\022\275\001\n\016ListChangelogs\022..g" - + "oogle.cloud.ces.v1beta.ListChangelogsReq" - + "uest\032/.google.cloud.ces.v1beta.ListChang" - + "elogsResponse\"J\332A\006parent\202\323\344\223\002;\0229/v1beta/" - + "{parent=projects/*/locations/*/apps/*}/c" - + "hangelogs\022\252\001\n\014GetChangelog\022,.google.clou" - + "d.ces.v1beta.GetChangelogRequest\032\".googl" - + "e.cloud.ces.v1beta.Changelog\"H\332A\004name\202\323\344" - + "\223\002;\0229/v1beta/{name=projects/*/locations/" - + "*/apps/*/changelogs/*}\032j\312A\022ces.googleapi" - + "s.com\322ARhttps://www.googleapis.com/auth/" - + "ces,https://www.googleapis.com/auth/clou" - + "d-platformB\316\001\n\033com.google.cloud.ces.v1be" - + "taB\021AgentServiceProtoP\001Z-cloud.google.co" - + "m/go/ces/apiv1beta/cespb;cespb\352Aj\n,conta" - + "ctcenterinsights.googleapis.com/Dataset\022" - + ":projects/{project}/locations/{location}" - + "/datasets/{dataset}b\006proto3" + + "/*/tools/*}\022\311\001\n\021ListConversations\0221.goog" + + "le.cloud.ces.v1beta.ListConversationsReq" + + "uest\0322.google.cloud.ces.v1beta.ListConve" + + "rsationsResponse\"M\332A\006parent\202\323\344\223\002>\022\022* - * Optional. Disables user barge-in while the agent is speaking. If true, user - * input during agent response playback will be ignored. - * - * Deprecated: `disable_barge_in` is deprecated in favor of + * Optional. Deprecated: `disable_barge_in` is deprecated in favor of * [`disable_barge_in_control`][google.cloud.ces.v1beta.ChannelProfile.disable_barge_in_control] * in ChannelProfile. + * + * Disables user barge-in while the agent is speaking. If true, user input + * during agent response playback will be ignored. * * * bool disable_barge_in = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; @@ -453,12 +453,12 @@ public Builder mergeFrom( * * *
                -     * Optional. Disables user barge-in while the agent is speaking. If true, user
                -     * input during agent response playback will be ignored.
                -     *
                -     * Deprecated: `disable_barge_in` is deprecated in favor of
                +     * Optional. Deprecated: `disable_barge_in` is deprecated in favor of
                      * [`disable_barge_in_control`][google.cloud.ces.v1beta.ChannelProfile.disable_barge_in_control]
                      * in ChannelProfile.
                +     *
                +     * Disables user barge-in while the agent is speaking. If true, user input
                +     * during agent response playback will be ignored.
                      * 
                * * bool disable_barge_in = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; @@ -478,12 +478,12 @@ public boolean getDisableBargeIn() { * * *
                -     * Optional. Disables user barge-in while the agent is speaking. If true, user
                -     * input during agent response playback will be ignored.
                -     *
                -     * Deprecated: `disable_barge_in` is deprecated in favor of
                +     * Optional. Deprecated: `disable_barge_in` is deprecated in favor of
                      * [`disable_barge_in_control`][google.cloud.ces.v1beta.ChannelProfile.disable_barge_in_control]
                      * in ChannelProfile.
                +     *
                +     * Disables user barge-in while the agent is speaking. If true, user input
                +     * during agent response playback will be ignored.
                      * 
                * * bool disable_barge_in = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; @@ -507,12 +507,12 @@ public Builder setDisableBargeIn(boolean value) { * * *
                -     * Optional. Disables user barge-in while the agent is speaking. If true, user
                -     * input during agent response playback will be ignored.
                -     *
                -     * Deprecated: `disable_barge_in` is deprecated in favor of
                +     * Optional. Deprecated: `disable_barge_in` is deprecated in favor of
                      * [`disable_barge_in_control`][google.cloud.ces.v1beta.ChannelProfile.disable_barge_in_control]
                      * in ChannelProfile.
                +     *
                +     * Disables user barge-in while the agent is speaking. If true, user input
                +     * during agent response playback will be ignored.
                      * 
                * * bool disable_barge_in = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/BargeInConfigOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/BargeInConfigOrBuilder.java index 0957fe19a2e1..316f9df8c4c8 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/BargeInConfigOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/BargeInConfigOrBuilder.java @@ -30,12 +30,12 @@ public interface BargeInConfigOrBuilder * * *
                -   * Optional. Disables user barge-in while the agent is speaking. If true, user
                -   * input during agent response playback will be ignored.
                -   *
                -   * Deprecated: `disable_barge_in` is deprecated in favor of
                +   * Optional. Deprecated: `disable_barge_in` is deprecated in favor of
                    * [`disable_barge_in_control`][google.cloud.ces.v1beta.ChannelProfile.disable_barge_in_control]
                    * in ChannelProfile.
                +   *
                +   * Disables user barge-in while the agent is speaking. If true, user input
                +   * during agent response playback will be ignored.
                    * 
                * * bool disable_barge_in = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ChannelProfile.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ChannelProfile.java index 99fa0f365c34..6210f7cd7515 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ChannelProfile.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ChannelProfile.java @@ -143,6 +143,16 @@ public enum ChannelType implements com.google.protobuf.ProtocolMessageEnum { * CONTACT_CENTER_AS_A_SERVICE = 6; */ CONTACT_CENTER_AS_A_SERVICE(6), + /** + * + * + *
                +     * Contact Center as a Service (CCaaS Chat) channel.
                +     * 
                + * + * CONTACT_CENTER_AS_A_SERVICE_CHAT = 11; + */ + CONTACT_CENTER_AS_A_SERVICE_CHAT(11), /** * * @@ -163,6 +173,26 @@ public enum ChannelType implements com.google.protobuf.ProtocolMessageEnum { * CONTACT_CENTER_INTEGRATION = 8; */ CONTACT_CENTER_INTEGRATION(8), + /** + * + * + *
                +     * WhatsApp channel.
                +     * 
                + * + * WHATSAPP = 9; + */ + WHATSAPP(9), + /** + * + * + *
                +     * Instagram channel.
                +     * 
                + * + * INSTAGRAM = 10; + */ + INSTAGRAM(10), UNRECOGNIZED(-1), ; @@ -242,6 +272,17 @@ public enum ChannelType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CONTACT_CENTER_AS_A_SERVICE_VALUE = 6; + /** + * + * + *
                +     * Contact Center as a Service (CCaaS Chat) channel.
                +     * 
                + * + * CONTACT_CENTER_AS_A_SERVICE_CHAT = 11; + */ + public static final int CONTACT_CENTER_AS_A_SERVICE_CHAT_VALUE = 11; + /** * * @@ -264,6 +305,28 @@ public enum ChannelType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CONTACT_CENTER_INTEGRATION_VALUE = 8; + /** + * + * + *
                +     * WhatsApp channel.
                +     * 
                + * + * WHATSAPP = 9; + */ + public static final int WHATSAPP_VALUE = 9; + + /** + * + * + *
                +     * Instagram channel.
                +     * 
                + * + * INSTAGRAM = 10; + */ + public static final int INSTAGRAM_VALUE = 10; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -300,10 +363,16 @@ public static ChannelType forNumber(int value) { return GOOGLE_TELEPHONY_PLATFORM; case 6: return CONTACT_CENTER_AS_A_SERVICE; + case 11: + return CONTACT_CENTER_AS_A_SERVICE_CHAT; case 7: return FIVE9; case 8: return CONTACT_CENTER_INTEGRATION; + case 9: + return WHATSAPP; + case 10: + return INSTAGRAM; default: return null; } @@ -4117,867 +4186,4296 @@ public com.google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfig getDefaultInst } } - private int bitField0_; - public static final int PROFILE_ID_FIELD_NUMBER = 1; + public interface WhatsAppConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig) + com.google.protobuf.MessageOrBuilder { - @SuppressWarnings("serial") - private volatile java.lang.Object profileId_ = ""; + /** + * + * + *
                +     * Required. The WhatsApp Business Account ID.
                +     * 
                + * + * string waba_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The wabaId. + */ + java.lang.String getWabaId(); - /** - * - * - *
                -   * Optional. The unique identifier of the channel profile.
                -   * 
                - * - * string profile_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The profileId. - */ - @java.lang.Override - public java.lang.String getProfileId() { - java.lang.Object ref = profileId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - profileId_ = s; - return s; - } - } + /** + * + * + *
                +     * Required. The WhatsApp Business Account ID.
                +     * 
                + * + * string waba_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for wabaId. + */ + com.google.protobuf.ByteString getWabaIdBytes(); - /** - * - * - *
                -   * Optional. The unique identifier of the channel profile.
                -   * 
                - * - * string profile_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for profileId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getProfileIdBytes() { - java.lang.Object ref = profileId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - profileId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * + * + *
                +     * Required. The Meta phone number ID.
                +     * 
                + * + * string phone_number_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The phoneNumberId. + */ + java.lang.String getPhoneNumberId(); - public static final int CHANNEL_TYPE_FIELD_NUMBER = 3; - private int channelType_ = 0; + /** + * + * + *
                +     * Required. The Meta phone number ID.
                +     * 
                + * + * string phone_number_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for phoneNumberId. + */ + com.google.protobuf.ByteString getPhoneNumberIdBytes(); - /** - * - * - *
                -   * Optional. The type of the channel profile.
                -   * 
                - * - * - * .google.cloud.ces.v1beta.ChannelProfile.ChannelType channel_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The enum numeric value on the wire for channelType. - */ - @java.lang.Override - public int getChannelTypeValue() { - return channelType_; - } + /** + * + * + *
                +     * Optional. The phone number in E.164 format.
                +     * 
                + * + * string phone_number = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The phoneNumber. + */ + java.lang.String getPhoneNumber(); - /** - * - * - *
                -   * Optional. The type of the channel profile.
                -   * 
                - * - * - * .google.cloud.ces.v1beta.ChannelProfile.ChannelType channel_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The channelType. - */ - @java.lang.Override - public com.google.cloud.ces.v1beta.ChannelProfile.ChannelType getChannelType() { - com.google.cloud.ces.v1beta.ChannelProfile.ChannelType result = - com.google.cloud.ces.v1beta.ChannelProfile.ChannelType.forNumber(channelType_); - return result == null - ? com.google.cloud.ces.v1beta.ChannelProfile.ChannelType.UNRECOGNIZED - : result; - } + /** + * + * + *
                +     * Optional. The phone number in E.164 format.
                +     * 
                + * + * string phone_number = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for phoneNumber. + */ + com.google.protobuf.ByteString getPhoneNumberBytes(); - public static final int PERSONA_PROPERTY_FIELD_NUMBER = 2; - private com.google.cloud.ces.v1beta.ChannelProfile.PersonaProperty personaProperty_; + /** + * + * + *
                +     * Output only. The fetched Meta business page name.
                +     * 
                + * + * string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); - /** - * - * - *
                -   * Optional. The persona property of the channel profile.
                -   * 
                - * - * - * .google.cloud.ces.v1beta.ChannelProfile.PersonaProperty persona_property = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the personaProperty field is set. - */ - @java.lang.Override - public boolean hasPersonaProperty() { - return ((bitField0_ & 0x00000001) != 0); + /** + * + * + *
                +     * Output only. The fetched Meta business page name.
                +     * 
                + * + * string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
                +     * Output only. The fetched Meta business profile thumbnail URL.
                +     * 
                + * + * string thumbnail_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The thumbnailUrl. + */ + java.lang.String getThumbnailUrl(); + + /** + * + * + *
                +     * Output only. The fetched Meta business profile thumbnail URL.
                +     * 
                + * + * string thumbnail_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for thumbnailUrl. + */ + com.google.protobuf.ByteString getThumbnailUrlBytes(); + + /** + * + * + *
                +     * Output only. The description of the Meta business page or profile.
                +     * 
                + * + * string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
                +     * Output only. The description of the Meta business page or profile.
                +     * 
                + * + * string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); } /** * * *
                -   * Optional. The persona property of the channel profile.
                +   * Configuration specific to WhatsApp deployments.
                    * 
                * - * - * .google.cloud.ces.v1beta.ChannelProfile.PersonaProperty persona_property = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The personaProperty. - */ - @java.lang.Override - public com.google.cloud.ces.v1beta.ChannelProfile.PersonaProperty getPersonaProperty() { - return personaProperty_ == null - ? com.google.cloud.ces.v1beta.ChannelProfile.PersonaProperty.getDefaultInstance() - : personaProperty_; - } - - /** - * - * - *
                -   * Optional. The persona property of the channel profile.
                -   * 
                - * - * - * .google.cloud.ces.v1beta.ChannelProfile.PersonaProperty persona_property = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.ces.v1beta.ChannelProfile.PersonaPropertyOrBuilder - getPersonaPropertyOrBuilder() { - return personaProperty_ == null - ? com.google.cloud.ces.v1beta.ChannelProfile.PersonaProperty.getDefaultInstance() - : personaProperty_; - } - - public static final int DISABLE_DTMF_FIELD_NUMBER = 4; - private boolean disableDtmf_ = false; - - /** - * - * - *
                -   * Optional. Whether to disable DTMF (dual-tone multi-frequency).
                -   * 
                - * - * bool disable_dtmf = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The disableDtmf. + * Protobuf type {@code google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig} */ - @java.lang.Override - public boolean getDisableDtmf() { - return disableDtmf_; - } - - public static final int DISABLE_BARGE_IN_CONTROL_FIELD_NUMBER = 5; - private boolean disableBargeInControl_ = false; + public static final class WhatsAppConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig) + WhatsAppConfigOrBuilder { + private static final long serialVersionUID = 0L; - /** - * - * - *
                -   * Optional. Whether to disable user barge-in control in the conversation.
                -   * - **true**: User interruptions are disabled while the agent is speaking.
                -   * - **false**: The agent retains automatic control over when the user can
                -   * interrupt.
                -   * 
                - * - * bool disable_barge_in_control = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The disableBargeInControl. - */ - @java.lang.Override - public boolean getDisableBargeInControl() { - return disableBargeInControl_; - } + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "WhatsAppConfig"); + } - public static final int WEB_WIDGET_CONFIG_FIELD_NUMBER = 7; - private com.google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfig webWidgetConfig_; + // Use WhatsAppConfig.newBuilder() to construct. + private WhatsAppConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } - /** - * - * - *
                -   * Optional. The configuration for the web widget.
                -   * 
                - * - * - * .google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfig web_widget_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the webWidgetConfig field is set. - */ - @java.lang.Override - public boolean hasWebWidgetConfig() { - return ((bitField0_ & 0x00000002) != 0); - } + private WhatsAppConfig() { + wabaId_ = ""; + phoneNumberId_ = ""; + phoneNumber_ = ""; + displayName_ = ""; + thumbnailUrl_ = ""; + description_ = ""; + } - /** - * - * - *
                -   * Optional. The configuration for the web widget.
                -   * 
                - * - * - * .google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfig web_widget_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The webWidgetConfig. - */ - @java.lang.Override - public com.google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfig getWebWidgetConfig() { - return webWidgetConfig_ == null - ? com.google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfig.getDefaultInstance() - : webWidgetConfig_; - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.CommonProto + .internal_static_google_cloud_ces_v1beta_ChannelProfile_WhatsAppConfig_descriptor; + } - /** - * - * - *
                -   * Optional. The configuration for the web widget.
                -   * 
                - * - * - * .google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfig web_widget_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfigOrBuilder - getWebWidgetConfigOrBuilder() { - return webWidgetConfig_ == null - ? com.google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfig.getDefaultInstance() - : webWidgetConfig_; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.CommonProto + .internal_static_google_cloud_ces_v1beta_ChannelProfile_WhatsAppConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig.class, + com.google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig.Builder.class); + } - public static final int NOISE_SUPPRESSION_LEVEL_FIELD_NUMBER = 8; + public static final int WABA_ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object noiseSuppressionLevel_ = ""; + @SuppressWarnings("serial") + private volatile java.lang.Object wabaId_ = ""; - /** - * - * - *
                -   * Optional. The noise suppression level of the channel profile.
                -   * Available values are "low", "moderate", "high", "very_high".
                -   * 
                - * - * string noise_suppression_level = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The noiseSuppressionLevel. - */ - @java.lang.Override - public java.lang.String getNoiseSuppressionLevel() { - java.lang.Object ref = noiseSuppressionLevel_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - noiseSuppressionLevel_ = s; - return s; + /** + * + * + *
                +     * Required. The WhatsApp Business Account ID.
                +     * 
                + * + * string waba_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The wabaId. + */ + @java.lang.Override + public java.lang.String getWabaId() { + java.lang.Object ref = wabaId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + wabaId_ = s; + return s; + } } - } - /** - * - * - *
                -   * Optional. The noise suppression level of the channel profile.
                -   * Available values are "low", "moderate", "high", "very_high".
                -   * 
                - * - * string noise_suppression_level = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for noiseSuppressionLevel. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNoiseSuppressionLevelBytes() { - java.lang.Object ref = noiseSuppressionLevel_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - noiseSuppressionLevel_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + /** + * + * + *
                +     * Required. The WhatsApp Business Account ID.
                +     * 
                + * + * string waba_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for wabaId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getWabaIdBytes() { + java.lang.Object ref = wabaId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + wabaId_ = 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; + public static final int PHONE_NUMBER_ID_FIELD_NUMBER = 2; - memoizedIsInitialized = 1; - return true; - } + @SuppressWarnings("serial") + private volatile java.lang.Object phoneNumberId_ = ""; - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(profileId_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, profileId_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(2, getPersonaProperty()); - } - if (channelType_ - != com.google.cloud.ces.v1beta.ChannelProfile.ChannelType.UNKNOWN.getNumber()) { - output.writeEnum(3, channelType_); - } - if (disableDtmf_ != false) { - output.writeBool(4, disableDtmf_); - } - if (disableBargeInControl_ != false) { - output.writeBool(5, disableBargeInControl_); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(7, getWebWidgetConfig()); + /** + * + * + *
                +     * Required. The Meta phone number ID.
                +     * 
                + * + * string phone_number_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The phoneNumberId. + */ + @java.lang.Override + public java.lang.String getPhoneNumberId() { + java.lang.Object ref = phoneNumberId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + phoneNumberId_ = s; + return s; + } } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(noiseSuppressionLevel_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 8, noiseSuppressionLevel_); + + /** + * + * + *
                +     * Required. The Meta phone number ID.
                +     * 
                + * + * string phone_number_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for phoneNumberId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPhoneNumberIdBytes() { + java.lang.Object ref = phoneNumberId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + phoneNumberId_ = 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 PHONE_NUMBER_FIELD_NUMBER = 3; - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(profileId_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, profileId_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPersonaProperty()); - } - if (channelType_ - != com.google.cloud.ces.v1beta.ChannelProfile.ChannelType.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, channelType_); - } - if (disableDtmf_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, disableDtmf_); - } - if (disableBargeInControl_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, disableBargeInControl_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getWebWidgetConfig()); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(noiseSuppressionLevel_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(8, noiseSuppressionLevel_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + @SuppressWarnings("serial") + private volatile java.lang.Object phoneNumber_ = ""; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.ces.v1beta.ChannelProfile)) { - return super.equals(obj); + /** + * + * + *
                +     * Optional. The phone number in E.164 format.
                +     * 
                + * + * string phone_number = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The phoneNumber. + */ + @java.lang.Override + public java.lang.String getPhoneNumber() { + java.lang.Object ref = phoneNumber_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + phoneNumber_ = s; + return s; + } } - com.google.cloud.ces.v1beta.ChannelProfile other = - (com.google.cloud.ces.v1beta.ChannelProfile) obj; - if (!getProfileId().equals(other.getProfileId())) return false; - if (channelType_ != other.channelType_) return false; - if (hasPersonaProperty() != other.hasPersonaProperty()) return false; - if (hasPersonaProperty()) { - if (!getPersonaProperty().equals(other.getPersonaProperty())) return false; - } - if (getDisableDtmf() != other.getDisableDtmf()) return false; - if (getDisableBargeInControl() != other.getDisableBargeInControl()) return false; - if (hasWebWidgetConfig() != other.hasWebWidgetConfig()) return false; - if (hasWebWidgetConfig()) { - if (!getWebWidgetConfig().equals(other.getWebWidgetConfig())) return false; + /** + * + * + *
                +     * Optional. The phone number in E.164 format.
                +     * 
                + * + * string phone_number = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for phoneNumber. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPhoneNumberBytes() { + java.lang.Object ref = phoneNumber_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + phoneNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - if (!getNoiseSuppressionLevel().equals(other.getNoiseSuppressionLevel())) return false; - if (!getUnknownFields().equals(other.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) + PROFILE_ID_FIELD_NUMBER; - hash = (53 * hash) + getProfileId().hashCode(); - hash = (37 * hash) + CHANNEL_TYPE_FIELD_NUMBER; - hash = (53 * hash) + channelType_; - if (hasPersonaProperty()) { - hash = (37 * hash) + PERSONA_PROPERTY_FIELD_NUMBER; - hash = (53 * hash) + getPersonaProperty().hashCode(); + public static final int DISPLAY_NAME_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
                +     * Output only. The fetched Meta business page name.
                +     * 
                + * + * string display_name = 4 [(.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; + } } - hash = (37 * hash) + DISABLE_DTMF_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableDtmf()); - hash = (37 * hash) + DISABLE_BARGE_IN_CONTROL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableBargeInControl()); - if (hasWebWidgetConfig()) { - hash = (37 * hash) + WEB_WIDGET_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getWebWidgetConfig().hashCode(); + + /** + * + * + *
                +     * Output only. The fetched Meta business page name.
                +     * 
                + * + * string display_name = 4 [(.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; + } } - hash = (37 * hash) + NOISE_SUPPRESSION_LEVEL_FIELD_NUMBER; - hash = (53 * hash) + getNoiseSuppressionLevel().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - public static com.google.cloud.ces.v1beta.ChannelProfile parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public static final int THUMBNAIL_URL_FIELD_NUMBER = 5; - public static com.google.cloud.ces.v1beta.ChannelProfile parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + @SuppressWarnings("serial") + private volatile java.lang.Object thumbnailUrl_ = ""; - public static com.google.cloud.ces.v1beta.ChannelProfile parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + /** + * + * + *
                +     * Output only. The fetched Meta business profile thumbnail URL.
                +     * 
                + * + * string thumbnail_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The thumbnailUrl. + */ + @java.lang.Override + public java.lang.String getThumbnailUrl() { + java.lang.Object ref = thumbnailUrl_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + thumbnailUrl_ = s; + return s; + } + } - public static com.google.cloud.ces.v1beta.ChannelProfile parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + /** + * + * + *
                +     * Output only. The fetched Meta business profile thumbnail URL.
                +     * 
                + * + * string thumbnail_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for thumbnailUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString getThumbnailUrlBytes() { + java.lang.Object ref = thumbnailUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + thumbnailUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static com.google.cloud.ces.v1beta.ChannelProfile parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public static final int DESCRIPTION_FIELD_NUMBER = 6; - public static com.google.cloud.ces.v1beta.ChannelProfile parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.ces.v1beta.ChannelProfile parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.ces.v1beta.ChannelProfile parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.ces.v1beta.ChannelProfile parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.ces.v1beta.ChannelProfile parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.ces.v1beta.ChannelProfile parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.ces.v1beta.ChannelProfile parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.ces.v1beta.ChannelProfile prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 ChannelProfile configures the agent's behavior for a specific communication
                -   * channel, such as web UI or telephony.
                -   * 
                - * - * Protobuf type {@code google.cloud.ces.v1beta.ChannelProfile} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.ChannelProfile) - com.google.cloud.ces.v1beta.ChannelProfileOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.ces.v1beta.CommonProto - .internal_static_google_cloud_ces_v1beta_ChannelProfile_descriptor; - } + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + /** + * + * + *
                +     * Output only. The description of the Meta business page or profile.
                +     * 
                + * + * string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The description. + */ @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.ces.v1beta.CommonProto - .internal_static_google_cloud_ces_v1beta_ChannelProfile_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.ces.v1beta.ChannelProfile.class, - com.google.cloud.ces.v1beta.ChannelProfile.Builder.class); - } - - // Construct using com.google.cloud.ces.v1beta.ChannelProfile.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetPersonaPropertyFieldBuilder(); - internalGetWebWidgetConfigFieldBuilder(); + 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. The description of the Meta business page or profile.
                +     * 
                + * + * string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for description. + */ @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - profileId_ = ""; - channelType_ = 0; - personaProperty_ = null; - if (personaPropertyBuilder_ != null) { - personaPropertyBuilder_.dispose(); - personaPropertyBuilder_ = null; - } - disableDtmf_ = false; - disableBargeInControl_ = false; - webWidgetConfig_ = null; - if (webWidgetConfigBuilder_ != null) { - webWidgetConfigBuilder_.dispose(); - webWidgetConfigBuilder_ = null; + 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; } - noiseSuppressionLevel_ = ""; - return this; } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.ces.v1beta.CommonProto - .internal_static_google_cloud_ces_v1beta_ChannelProfile_descriptor; - } + private byte memoizedIsInitialized = -1; @java.lang.Override - public com.google.cloud.ces.v1beta.ChannelProfile getDefaultInstanceForType() { - return com.google.cloud.ces.v1beta.ChannelProfile.getDefaultInstance(); - } + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - @java.lang.Override - public com.google.cloud.ces.v1beta.ChannelProfile build() { - com.google.cloud.ces.v1beta.ChannelProfile result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; + memoizedIsInitialized = 1; + return true; } @java.lang.Override - public com.google.cloud.ces.v1beta.ChannelProfile buildPartial() { - com.google.cloud.ces.v1beta.ChannelProfile result = - new com.google.cloud.ces.v1beta.ChannelProfile(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.ces.v1beta.ChannelProfile result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.profileId_ = profileId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.channelType_ = channelType_; + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(wabaId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, wabaId_); } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.personaProperty_ = - personaPropertyBuilder_ == null ? personaProperty_ : personaPropertyBuilder_.build(); - to_bitField0_ |= 0x00000001; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(phoneNumberId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, phoneNumberId_); } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.disableDtmf_ = disableDtmf_; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(phoneNumber_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, phoneNumber_); } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.disableBargeInControl_ = disableBargeInControl_; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, displayName_); } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.webWidgetConfig_ = - webWidgetConfigBuilder_ == null ? webWidgetConfig_ : webWidgetConfigBuilder_.build(); - to_bitField0_ |= 0x00000002; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(thumbnailUrl_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, thumbnailUrl_); } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.noiseSuppressionLevel_ = noiseSuppressionLevel_; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, description_); } - result.bitField0_ |= to_bitField0_; + getUnknownFields().writeTo(output); } @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.ces.v1beta.ChannelProfile) { - return mergeFrom((com.google.cloud.ces.v1beta.ChannelProfile) other); - } else { - super.mergeFrom(other); - return this; - } - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - public Builder mergeFrom(com.google.cloud.ces.v1beta.ChannelProfile other) { - if (other == com.google.cloud.ces.v1beta.ChannelProfile.getDefaultInstance()) return this; - if (!other.getProfileId().isEmpty()) { - profileId_ = other.profileId_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.channelType_ != 0) { - setChannelTypeValue(other.getChannelTypeValue()); + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(wabaId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, wabaId_); } - if (other.hasPersonaProperty()) { - mergePersonaProperty(other.getPersonaProperty()); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(phoneNumberId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, phoneNumberId_); } - if (other.getDisableDtmf() != false) { - setDisableDtmf(other.getDisableDtmf()); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(phoneNumber_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, phoneNumber_); } - if (other.getDisableBargeInControl() != false) { - setDisableBargeInControl(other.getDisableBargeInControl()); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, displayName_); } - if (other.hasWebWidgetConfig()) { - mergeWebWidgetConfig(other.getWebWidgetConfig()); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(thumbnailUrl_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, thumbnailUrl_); } - if (!other.getNoiseSuppressionLevel().isEmpty()) { - noiseSuppressionLevel_ = other.noiseSuppressionLevel_; - bitField0_ |= 0x00000040; - onChanged(); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, description_); } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; } @java.lang.Override - public final boolean isInitialized() { + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig other = + (com.google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig) obj; + + if (!getWabaId().equals(other.getWabaId())) return false; + if (!getPhoneNumberId().equals(other.getPhoneNumberId())) return false; + if (!getPhoneNumber().equals(other.getPhoneNumber())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getThumbnailUrl().equals(other.getThumbnailUrl())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override - public Builder mergeFrom( + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + WABA_ID_FIELD_NUMBER; + hash = (53 * hash) + getWabaId().hashCode(); + hash = (37 * hash) + PHONE_NUMBER_ID_FIELD_NUMBER; + hash = (53 * hash) + getPhoneNumberId().hashCode(); + hash = (37 * hash) + PHONE_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getPhoneNumber().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + THUMBNAIL_URL_FIELD_NUMBER; + hash = (53 * hash) + getThumbnailUrl().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 specific to WhatsApp deployments.
                +     * 
                + * + * Protobuf type {@code google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig) + com.google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.CommonProto + .internal_static_google_cloud_ces_v1beta_ChannelProfile_WhatsAppConfig_descriptor; } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - profileId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage( - internalGetPersonaPropertyFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 18 - case 24: - { - channelType_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 24 - case 32: - { - disableDtmf_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: - { - disableBargeInControl_ = input.readBool(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 58: - { - input.readMessage( - internalGetWebWidgetConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 58 - case 66: - { - noiseSuppressionLevel_ = 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 { + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.CommonProto + .internal_static_google_cloud_ces_v1beta_ChannelProfile_WhatsAppConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig.class, + com.google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + wabaId_ = ""; + phoneNumberId_ = ""; + phoneNumber_ = ""; + displayName_ = ""; + thumbnailUrl_ = ""; + description_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.CommonProto + .internal_static_google_cloud_ces_v1beta_ChannelProfile_WhatsAppConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig build() { + com.google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig buildPartial() { + com.google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig result = + new com.google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.wabaId_ = wabaId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.phoneNumberId_ = phoneNumberId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.phoneNumber_ = phoneNumber_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.thumbnailUrl_ = thumbnailUrl_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.description_ = description_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig) { + return mergeFrom((com.google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig other) { + if (other == com.google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig.getDefaultInstance()) + return this; + if (!other.getWabaId().isEmpty()) { + wabaId_ = other.wabaId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getPhoneNumberId().isEmpty()) { + phoneNumberId_ = other.phoneNumberId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getPhoneNumber().isEmpty()) { + phoneNumber_ = other.phoneNumber_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getThumbnailUrl().isEmpty()) { + thumbnailUrl_ = other.thumbnailUrl_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000020; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); - } // finally + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + wabaId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + phoneNumberId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + phoneNumber_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + thumbnailUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + description_ = 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 wabaId_ = ""; + + /** + * + * + *
                +       * Required. The WhatsApp Business Account ID.
                +       * 
                + * + * string waba_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The wabaId. + */ + public java.lang.String getWabaId() { + java.lang.Object ref = wabaId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + wabaId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                +       * Required. The WhatsApp Business Account ID.
                +       * 
                + * + * string waba_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for wabaId. + */ + public com.google.protobuf.ByteString getWabaIdBytes() { + java.lang.Object ref = wabaId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + wabaId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                +       * Required. The WhatsApp Business Account ID.
                +       * 
                + * + * string waba_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The wabaId to set. + * @return This builder for chaining. + */ + public Builder setWabaId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + wabaId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                +       * Required. The WhatsApp Business Account ID.
                +       * 
                + * + * string waba_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearWabaId() { + wabaId_ = getDefaultInstance().getWabaId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                +       * Required. The WhatsApp Business Account ID.
                +       * 
                + * + * string waba_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for wabaId to set. + * @return This builder for chaining. + */ + public Builder setWabaIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + wabaId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object phoneNumberId_ = ""; + + /** + * + * + *
                +       * Required. The Meta phone number ID.
                +       * 
                + * + * string phone_number_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The phoneNumberId. + */ + public java.lang.String getPhoneNumberId() { + java.lang.Object ref = phoneNumberId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + phoneNumberId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                +       * Required. The Meta phone number ID.
                +       * 
                + * + * string phone_number_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for phoneNumberId. + */ + public com.google.protobuf.ByteString getPhoneNumberIdBytes() { + java.lang.Object ref = phoneNumberId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + phoneNumberId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                +       * Required. The Meta phone number ID.
                +       * 
                + * + * string phone_number_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The phoneNumberId to set. + * @return This builder for chaining. + */ + public Builder setPhoneNumberId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + phoneNumberId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                +       * Required. The Meta phone number ID.
                +       * 
                + * + * string phone_number_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearPhoneNumberId() { + phoneNumberId_ = getDefaultInstance().getPhoneNumberId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                +       * Required. The Meta phone number ID.
                +       * 
                + * + * string phone_number_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for phoneNumberId to set. + * @return This builder for chaining. + */ + public Builder setPhoneNumberIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + phoneNumberId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object phoneNumber_ = ""; + + /** + * + * + *
                +       * Optional. The phone number in E.164 format.
                +       * 
                + * + * string phone_number = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The phoneNumber. + */ + public java.lang.String getPhoneNumber() { + java.lang.Object ref = phoneNumber_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + phoneNumber_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                +       * Optional. The phone number in E.164 format.
                +       * 
                + * + * string phone_number = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for phoneNumber. + */ + public com.google.protobuf.ByteString getPhoneNumberBytes() { + java.lang.Object ref = phoneNumber_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + phoneNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                +       * Optional. The phone number in E.164 format.
                +       * 
                + * + * string phone_number = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The phoneNumber to set. + * @return This builder for chaining. + */ + public Builder setPhoneNumber(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + phoneNumber_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                +       * Optional. The phone number in E.164 format.
                +       * 
                + * + * string phone_number = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPhoneNumber() { + phoneNumber_ = getDefaultInstance().getPhoneNumber(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                +       * Optional. The phone number in E.164 format.
                +       * 
                + * + * string phone_number = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for phoneNumber to set. + * @return This builder for chaining. + */ + public Builder setPhoneNumberBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + phoneNumber_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
                +       * Output only. The fetched Meta business page name.
                +       * 
                + * + * string display_name = 4 [(.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. The fetched Meta business page name.
                +       * 
                + * + * string display_name = 4 [(.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. The fetched Meta business page name.
                +       * 
                + * + * string display_name = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                +       * Output only. The fetched Meta business page name.
                +       * 
                + * + * string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
                +       * Output only. The fetched Meta business page name.
                +       * 
                + * + * string display_name = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object thumbnailUrl_ = ""; + + /** + * + * + *
                +       * Output only. The fetched Meta business profile thumbnail URL.
                +       * 
                + * + * string thumbnail_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The thumbnailUrl. + */ + public java.lang.String getThumbnailUrl() { + java.lang.Object ref = thumbnailUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + thumbnailUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                +       * Output only. The fetched Meta business profile thumbnail URL.
                +       * 
                + * + * string thumbnail_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for thumbnailUrl. + */ + public com.google.protobuf.ByteString getThumbnailUrlBytes() { + java.lang.Object ref = thumbnailUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + thumbnailUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                +       * Output only. The fetched Meta business profile thumbnail URL.
                +       * 
                + * + * string thumbnail_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The thumbnailUrl to set. + * @return This builder for chaining. + */ + public Builder setThumbnailUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + thumbnailUrl_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                +       * Output only. The fetched Meta business profile thumbnail URL.
                +       * 
                + * + * string thumbnail_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearThumbnailUrl() { + thumbnailUrl_ = getDefaultInstance().getThumbnailUrl(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
                +       * Output only. The fetched Meta business profile thumbnail URL.
                +       * 
                + * + * string thumbnail_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for thumbnailUrl to set. + * @return This builder for chaining. + */ + public Builder setThumbnailUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + thumbnailUrl_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
                +       * Output only. The description of the Meta business page or profile.
                +       * 
                + * + * string description = 6 [(.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. The description of the Meta business page or profile.
                +       * 
                + * + * string description = 6 [(.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. The description of the Meta business page or profile.
                +       * 
                + * + * string description = 6 [(.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_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                +       * Output only. The description of the Meta business page or profile.
                +       * 
                + * + * string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
                +       * Output only. The description of the Meta business page or profile.
                +       * 
                + * + * string description = 6 [(.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_ |= 0x00000020; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig) + private static final com.google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig(); + } + + public static com.google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WhatsAppConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface InstagramConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.ChannelProfile.InstagramConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                +     * Required. The Instagram Account ID.
                +     * 
                + * + * string instagram_account_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The instagramAccountId. + */ + java.lang.String getInstagramAccountId(); + + /** + * + * + *
                +     * Required. The Instagram Account ID.
                +     * 
                + * + * string instagram_account_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for instagramAccountId. + */ + com.google.protobuf.ByteString getInstagramAccountIdBytes(); + + /** + * + * + *
                +     * Output only. The fetched Meta business page name.
                +     * 
                + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
                +     * Output only. The fetched Meta business page name.
                +     * 
                + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
                +     * Output only. The fetched Meta business profile thumbnail URL.
                +     * 
                + * + * string thumbnail_url = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The thumbnailUrl. + */ + java.lang.String getThumbnailUrl(); + + /** + * + * + *
                +     * Output only. The fetched Meta business profile thumbnail URL.
                +     * 
                + * + * string thumbnail_url = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for thumbnailUrl. + */ + com.google.protobuf.ByteString getThumbnailUrlBytes(); + + /** + * + * + *
                +     * Output only. The description of the Meta business page or profile.
                +     * 
                + * + * string description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
                +     * Output only. The description of the Meta business page or profile.
                +     * 
                + * + * string description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + } + + /** + * + * + *
                +   * Configuration specific to Instagram deployments.
                +   * 
                + * + * Protobuf type {@code google.cloud.ces.v1beta.ChannelProfile.InstagramConfig} + */ + public static final class InstagramConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.ChannelProfile.InstagramConfig) + InstagramConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "InstagramConfig"); + } + + // Use InstagramConfig.newBuilder() to construct. + private InstagramConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private InstagramConfig() { + instagramAccountId_ = ""; + displayName_ = ""; + thumbnailUrl_ = ""; + description_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.CommonProto + .internal_static_google_cloud_ces_v1beta_ChannelProfile_InstagramConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.CommonProto + .internal_static_google_cloud_ces_v1beta_ChannelProfile_InstagramConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.ChannelProfile.InstagramConfig.class, + com.google.cloud.ces.v1beta.ChannelProfile.InstagramConfig.Builder.class); + } + + public static final int INSTAGRAM_ACCOUNT_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object instagramAccountId_ = ""; + + /** + * + * + *
                +     * Required. The Instagram Account ID.
                +     * 
                + * + * string instagram_account_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The instagramAccountId. + */ + @java.lang.Override + public java.lang.String getInstagramAccountId() { + java.lang.Object ref = instagramAccountId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instagramAccountId_ = s; + return s; + } + } + + /** + * + * + *
                +     * Required. The Instagram Account ID.
                +     * 
                + * + * string instagram_account_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for instagramAccountId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInstagramAccountIdBytes() { + java.lang.Object ref = instagramAccountId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instagramAccountId_ = 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. The fetched Meta business page name.
                +     * 
                + * + * 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. The fetched Meta business page name.
                +     * 
                + * + * 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 THUMBNAIL_URL_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object thumbnailUrl_ = ""; + + /** + * + * + *
                +     * Output only. The fetched Meta business profile thumbnail URL.
                +     * 
                + * + * string thumbnail_url = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The thumbnailUrl. + */ + @java.lang.Override + public java.lang.String getThumbnailUrl() { + java.lang.Object ref = thumbnailUrl_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + thumbnailUrl_ = s; + return s; + } + } + + /** + * + * + *
                +     * Output only. The fetched Meta business profile thumbnail URL.
                +     * 
                + * + * string thumbnail_url = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for thumbnailUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString getThumbnailUrlBytes() { + java.lang.Object ref = thumbnailUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + thumbnailUrl_ = 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. The description of the Meta business page or profile.
                +     * 
                + * + * 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. The description of the Meta business page or profile.
                +     * 
                + * + * 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; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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(instagramAccountId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, instagramAccountId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(thumbnailUrl_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, thumbnailUrl_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, description_); + } + 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(instagramAccountId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, instagramAccountId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(thumbnailUrl_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, thumbnailUrl_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, description_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1beta.ChannelProfile.InstagramConfig)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.ChannelProfile.InstagramConfig other = + (com.google.cloud.ces.v1beta.ChannelProfile.InstagramConfig) obj; + + if (!getInstagramAccountId().equals(other.getInstagramAccountId())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getThumbnailUrl().equals(other.getThumbnailUrl())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getUnknownFields().equals(other.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) + INSTAGRAM_ACCOUNT_ID_FIELD_NUMBER; + hash = (53 * hash) + getInstagramAccountId().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + THUMBNAIL_URL_FIELD_NUMBER; + hash = (53 * hash) + getThumbnailUrl().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.ChannelProfile.InstagramConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ChannelProfile.InstagramConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ChannelProfile.InstagramConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ChannelProfile.InstagramConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ChannelProfile.InstagramConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ChannelProfile.InstagramConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ChannelProfile.InstagramConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ChannelProfile.InstagramConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ChannelProfile.InstagramConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ChannelProfile.InstagramConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ChannelProfile.InstagramConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ChannelProfile.InstagramConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.ces.v1beta.ChannelProfile.InstagramConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 specific to Instagram deployments.
                +     * 
                + * + * Protobuf type {@code google.cloud.ces.v1beta.ChannelProfile.InstagramConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.ChannelProfile.InstagramConfig) + com.google.cloud.ces.v1beta.ChannelProfile.InstagramConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.CommonProto + .internal_static_google_cloud_ces_v1beta_ChannelProfile_InstagramConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.CommonProto + .internal_static_google_cloud_ces_v1beta_ChannelProfile_InstagramConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.ChannelProfile.InstagramConfig.class, + com.google.cloud.ces.v1beta.ChannelProfile.InstagramConfig.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.ChannelProfile.InstagramConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + instagramAccountId_ = ""; + displayName_ = ""; + thumbnailUrl_ = ""; + description_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.CommonProto + .internal_static_google_cloud_ces_v1beta_ChannelProfile_InstagramConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ChannelProfile.InstagramConfig + getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.ChannelProfile.InstagramConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ChannelProfile.InstagramConfig build() { + com.google.cloud.ces.v1beta.ChannelProfile.InstagramConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ChannelProfile.InstagramConfig buildPartial() { + com.google.cloud.ces.v1beta.ChannelProfile.InstagramConfig result = + new com.google.cloud.ces.v1beta.ChannelProfile.InstagramConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.ces.v1beta.ChannelProfile.InstagramConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.instagramAccountId_ = instagramAccountId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.thumbnailUrl_ = thumbnailUrl_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.description_ = description_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.ChannelProfile.InstagramConfig) { + return mergeFrom((com.google.cloud.ces.v1beta.ChannelProfile.InstagramConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.ChannelProfile.InstagramConfig other) { + if (other + == com.google.cloud.ces.v1beta.ChannelProfile.InstagramConfig.getDefaultInstance()) + return this; + if (!other.getInstagramAccountId().isEmpty()) { + instagramAccountId_ = other.instagramAccountId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getThumbnailUrl().isEmpty()) { + thumbnailUrl_ = other.thumbnailUrl_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + 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: + { + instagramAccountId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + thumbnailUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + description_ = 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 instagramAccountId_ = ""; + + /** + * + * + *
                +       * Required. The Instagram Account ID.
                +       * 
                + * + * string instagram_account_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The instagramAccountId. + */ + public java.lang.String getInstagramAccountId() { + java.lang.Object ref = instagramAccountId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instagramAccountId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                +       * Required. The Instagram Account ID.
                +       * 
                + * + * string instagram_account_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for instagramAccountId. + */ + public com.google.protobuf.ByteString getInstagramAccountIdBytes() { + java.lang.Object ref = instagramAccountId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instagramAccountId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                +       * Required. The Instagram Account ID.
                +       * 
                + * + * string instagram_account_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The instagramAccountId to set. + * @return This builder for chaining. + */ + public Builder setInstagramAccountId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + instagramAccountId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                +       * Required. The Instagram Account ID.
                +       * 
                + * + * string instagram_account_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearInstagramAccountId() { + instagramAccountId_ = getDefaultInstance().getInstagramAccountId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                +       * Required. The Instagram Account ID.
                +       * 
                + * + * string instagram_account_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for instagramAccountId to set. + * @return This builder for chaining. + */ + public Builder setInstagramAccountIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instagramAccountId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
                +       * Output only. The fetched Meta business page name.
                +       * 
                + * + * 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. The fetched Meta business page name.
                +       * 
                + * + * 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. The fetched Meta business page name.
                +       * 
                + * + * 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. The fetched Meta business page name.
                +       * 
                + * + * 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. The fetched Meta business page name.
                +       * 
                + * + * 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 thumbnailUrl_ = ""; + + /** + * + * + *
                +       * Output only. The fetched Meta business profile thumbnail URL.
                +       * 
                + * + * string thumbnail_url = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The thumbnailUrl. + */ + public java.lang.String getThumbnailUrl() { + java.lang.Object ref = thumbnailUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + thumbnailUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                +       * Output only. The fetched Meta business profile thumbnail URL.
                +       * 
                + * + * string thumbnail_url = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for thumbnailUrl. + */ + public com.google.protobuf.ByteString getThumbnailUrlBytes() { + java.lang.Object ref = thumbnailUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + thumbnailUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                +       * Output only. The fetched Meta business profile thumbnail URL.
                +       * 
                + * + * string thumbnail_url = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The thumbnailUrl to set. + * @return This builder for chaining. + */ + public Builder setThumbnailUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + thumbnailUrl_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                +       * Output only. The fetched Meta business profile thumbnail URL.
                +       * 
                + * + * string thumbnail_url = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearThumbnailUrl() { + thumbnailUrl_ = getDefaultInstance().getThumbnailUrl(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                +       * Output only. The fetched Meta business profile thumbnail URL.
                +       * 
                + * + * string thumbnail_url = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for thumbnailUrl to set. + * @return This builder for chaining. + */ + public Builder setThumbnailUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + thumbnailUrl_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
                +       * Output only. The description of the Meta business page or profile.
                +       * 
                + * + * 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. The description of the Meta business page or profile.
                +       * 
                + * + * 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. The description of the Meta business page or profile.
                +       * 
                + * + * 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. The description of the Meta business page or profile.
                +       * 
                + * + * 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. The description of the Meta business page or profile.
                +       * 
                + * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.ChannelProfile.InstagramConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.ChannelProfile.InstagramConfig) + private static final com.google.cloud.ces.v1beta.ChannelProfile.InstagramConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.ChannelProfile.InstagramConfig(); + } + + public static com.google.cloud.ces.v1beta.ChannelProfile.InstagramConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InstagramConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ChannelProfile.InstagramConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int PROFILE_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object profileId_ = ""; + + /** + * + * + *
                +   * Optional. The unique identifier of the channel profile.
                +   * 
                + * + * string profile_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The profileId. + */ + @java.lang.Override + public java.lang.String getProfileId() { + java.lang.Object ref = profileId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + profileId_ = s; + return s; + } + } + + /** + * + * + *
                +   * Optional. The unique identifier of the channel profile.
                +   * 
                + * + * string profile_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for profileId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProfileIdBytes() { + java.lang.Object ref = profileId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + profileId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CHANNEL_TYPE_FIELD_NUMBER = 3; + private int channelType_ = 0; + + /** + * + * + *
                +   * Optional. The type of the channel profile.
                +   * 
                + * + * + * .google.cloud.ces.v1beta.ChannelProfile.ChannelType channel_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for channelType. + */ + @java.lang.Override + public int getChannelTypeValue() { + return channelType_; + } + + /** + * + * + *
                +   * Optional. The type of the channel profile.
                +   * 
                + * + * + * .google.cloud.ces.v1beta.ChannelProfile.ChannelType channel_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The channelType. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.ChannelProfile.ChannelType getChannelType() { + com.google.cloud.ces.v1beta.ChannelProfile.ChannelType result = + com.google.cloud.ces.v1beta.ChannelProfile.ChannelType.forNumber(channelType_); + return result == null + ? com.google.cloud.ces.v1beta.ChannelProfile.ChannelType.UNRECOGNIZED + : result; + } + + public static final int PERSONA_PROPERTY_FIELD_NUMBER = 2; + private com.google.cloud.ces.v1beta.ChannelProfile.PersonaProperty personaProperty_; + + /** + * + * + *
                +   * Optional. The persona property of the channel profile.
                +   * 
                + * + * + * .google.cloud.ces.v1beta.ChannelProfile.PersonaProperty persona_property = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the personaProperty field is set. + */ + @java.lang.Override + public boolean hasPersonaProperty() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                +   * Optional. The persona property of the channel profile.
                +   * 
                + * + * + * .google.cloud.ces.v1beta.ChannelProfile.PersonaProperty persona_property = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The personaProperty. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.ChannelProfile.PersonaProperty getPersonaProperty() { + return personaProperty_ == null + ? com.google.cloud.ces.v1beta.ChannelProfile.PersonaProperty.getDefaultInstance() + : personaProperty_; + } + + /** + * + * + *
                +   * Optional. The persona property of the channel profile.
                +   * 
                + * + * + * .google.cloud.ces.v1beta.ChannelProfile.PersonaProperty persona_property = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.ChannelProfile.PersonaPropertyOrBuilder + getPersonaPropertyOrBuilder() { + return personaProperty_ == null + ? com.google.cloud.ces.v1beta.ChannelProfile.PersonaProperty.getDefaultInstance() + : personaProperty_; + } + + public static final int DISABLE_DTMF_FIELD_NUMBER = 4; + private boolean disableDtmf_ = false; + + /** + * + * + *
                +   * Optional. Whether to disable DTMF (dual-tone multi-frequency).
                +   * 
                + * + * bool disable_dtmf = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disableDtmf. + */ + @java.lang.Override + public boolean getDisableDtmf() { + return disableDtmf_; + } + + public static final int DISABLE_BARGE_IN_CONTROL_FIELD_NUMBER = 5; + private boolean disableBargeInControl_ = false; + + /** + * + * + *
                +   * Optional. Whether to disable user barge-in control in the conversation.
                +   * - **true**: User interruptions are disabled while the agent is speaking.
                +   * - **false**: The agent retains automatic control over when the user can
                +   * interrupt.
                +   * 
                + * + * bool disable_barge_in_control = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disableBargeInControl. + */ + @java.lang.Override + public boolean getDisableBargeInControl() { + return disableBargeInControl_; + } + + public static final int WEB_WIDGET_CONFIG_FIELD_NUMBER = 7; + private com.google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfig webWidgetConfig_; + + /** + * + * + *
                +   * Optional. The configuration for the web widget.
                +   * 
                + * + * + * .google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfig web_widget_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the webWidgetConfig field is set. + */ + @java.lang.Override + public boolean hasWebWidgetConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                +   * Optional. The configuration for the web widget.
                +   * 
                + * + * + * .google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfig web_widget_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The webWidgetConfig. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfig getWebWidgetConfig() { + return webWidgetConfig_ == null + ? com.google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfig.getDefaultInstance() + : webWidgetConfig_; + } + + /** + * + * + *
                +   * Optional. The configuration for the web widget.
                +   * 
                + * + * + * .google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfig web_widget_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfigOrBuilder + getWebWidgetConfigOrBuilder() { + return webWidgetConfig_ == null + ? com.google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfig.getDefaultInstance() + : webWidgetConfig_; + } + + public static final int NOISE_SUPPRESSION_LEVEL_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object noiseSuppressionLevel_ = ""; + + /** + * + * + *
                +   * Optional. The noise suppression level of the channel profile.
                +   * Available values are "low", "moderate", "high", "very_high".
                +   * 
                + * + * string noise_suppression_level = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The noiseSuppressionLevel. + */ + @java.lang.Override + public java.lang.String getNoiseSuppressionLevel() { + java.lang.Object ref = noiseSuppressionLevel_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + noiseSuppressionLevel_ = s; + return s; + } + } + + /** + * + * + *
                +   * Optional. The noise suppression level of the channel profile.
                +   * Available values are "low", "moderate", "high", "very_high".
                +   * 
                + * + * string noise_suppression_level = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for noiseSuppressionLevel. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNoiseSuppressionLevelBytes() { + java.lang.Object ref = noiseSuppressionLevel_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + noiseSuppressionLevel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WHATSAPP_CONFIG_FIELD_NUMBER = 9; + private com.google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig whatsappConfig_; + + /** + * + * + *
                +   * Optional. Configuration specific to WhatsApp deployments.
                +   * 
                + * + * + * .google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig whatsapp_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the whatsappConfig field is set. + */ + @java.lang.Override + public boolean hasWhatsappConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                +   * Optional. Configuration specific to WhatsApp deployments.
                +   * 
                + * + * + * .google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig whatsapp_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The whatsappConfig. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig getWhatsappConfig() { + return whatsappConfig_ == null + ? com.google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig.getDefaultInstance() + : whatsappConfig_; + } + + /** + * + * + *
                +   * Optional. Configuration specific to WhatsApp deployments.
                +   * 
                + * + * + * .google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig whatsapp_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfigOrBuilder + getWhatsappConfigOrBuilder() { + return whatsappConfig_ == null + ? com.google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig.getDefaultInstance() + : whatsappConfig_; + } + + public static final int INSTAGRAM_CONFIG_FIELD_NUMBER = 10; + private com.google.cloud.ces.v1beta.ChannelProfile.InstagramConfig instagramConfig_; + + /** + * + * + *
                +   * Optional. Configuration specific to Instagram deployments.
                +   * 
                + * + * + * .google.cloud.ces.v1beta.ChannelProfile.InstagramConfig instagram_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the instagramConfig field is set. + */ + @java.lang.Override + public boolean hasInstagramConfig() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
                +   * Optional. Configuration specific to Instagram deployments.
                +   * 
                + * + * + * .google.cloud.ces.v1beta.ChannelProfile.InstagramConfig instagram_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The instagramConfig. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.ChannelProfile.InstagramConfig getInstagramConfig() { + return instagramConfig_ == null + ? com.google.cloud.ces.v1beta.ChannelProfile.InstagramConfig.getDefaultInstance() + : instagramConfig_; + } + + /** + * + * + *
                +   * Optional. Configuration specific to Instagram deployments.
                +   * 
                + * + * + * .google.cloud.ces.v1beta.ChannelProfile.InstagramConfig instagram_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.ChannelProfile.InstagramConfigOrBuilder + getInstagramConfigOrBuilder() { + return instagramConfig_ == null + ? com.google.cloud.ces.v1beta.ChannelProfile.InstagramConfig.getDefaultInstance() + : instagramConfig_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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(profileId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, profileId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getPersonaProperty()); + } + if (channelType_ + != com.google.cloud.ces.v1beta.ChannelProfile.ChannelType.UNKNOWN.getNumber()) { + output.writeEnum(3, channelType_); + } + if (disableDtmf_ != false) { + output.writeBool(4, disableDtmf_); + } + if (disableBargeInControl_ != false) { + output.writeBool(5, disableBargeInControl_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(7, getWebWidgetConfig()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(noiseSuppressionLevel_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 8, noiseSuppressionLevel_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(9, getWhatsappConfig()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(10, getInstagramConfig()); + } + 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(profileId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, profileId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPersonaProperty()); + } + if (channelType_ + != com.google.cloud.ces.v1beta.ChannelProfile.ChannelType.UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, channelType_); + } + if (disableDtmf_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, disableDtmf_); + } + if (disableBargeInControl_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, disableBargeInControl_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getWebWidgetConfig()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(noiseSuppressionLevel_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(8, noiseSuppressionLevel_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getWhatsappConfig()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getInstagramConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1beta.ChannelProfile)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.ChannelProfile other = + (com.google.cloud.ces.v1beta.ChannelProfile) obj; + + if (!getProfileId().equals(other.getProfileId())) return false; + if (channelType_ != other.channelType_) return false; + if (hasPersonaProperty() != other.hasPersonaProperty()) return false; + if (hasPersonaProperty()) { + if (!getPersonaProperty().equals(other.getPersonaProperty())) return false; + } + if (getDisableDtmf() != other.getDisableDtmf()) return false; + if (getDisableBargeInControl() != other.getDisableBargeInControl()) return false; + if (hasWebWidgetConfig() != other.hasWebWidgetConfig()) return false; + if (hasWebWidgetConfig()) { + if (!getWebWidgetConfig().equals(other.getWebWidgetConfig())) return false; + } + if (!getNoiseSuppressionLevel().equals(other.getNoiseSuppressionLevel())) return false; + if (hasWhatsappConfig() != other.hasWhatsappConfig()) return false; + if (hasWhatsappConfig()) { + if (!getWhatsappConfig().equals(other.getWhatsappConfig())) return false; + } + if (hasInstagramConfig() != other.hasInstagramConfig()) return false; + if (hasInstagramConfig()) { + if (!getInstagramConfig().equals(other.getInstagramConfig())) return false; + } + if (!getUnknownFields().equals(other.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) + PROFILE_ID_FIELD_NUMBER; + hash = (53 * hash) + getProfileId().hashCode(); + hash = (37 * hash) + CHANNEL_TYPE_FIELD_NUMBER; + hash = (53 * hash) + channelType_; + if (hasPersonaProperty()) { + hash = (37 * hash) + PERSONA_PROPERTY_FIELD_NUMBER; + hash = (53 * hash) + getPersonaProperty().hashCode(); + } + hash = (37 * hash) + DISABLE_DTMF_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableDtmf()); + hash = (37 * hash) + DISABLE_BARGE_IN_CONTROL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableBargeInControl()); + if (hasWebWidgetConfig()) { + hash = (37 * hash) + WEB_WIDGET_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getWebWidgetConfig().hashCode(); + } + hash = (37 * hash) + NOISE_SUPPRESSION_LEVEL_FIELD_NUMBER; + hash = (53 * hash) + getNoiseSuppressionLevel().hashCode(); + if (hasWhatsappConfig()) { + hash = (37 * hash) + WHATSAPP_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getWhatsappConfig().hashCode(); + } + if (hasInstagramConfig()) { + hash = (37 * hash) + INSTAGRAM_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getInstagramConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.ChannelProfile parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ChannelProfile parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ChannelProfile parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ChannelProfile parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ChannelProfile parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ChannelProfile parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ChannelProfile parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ChannelProfile parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ChannelProfile parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ChannelProfile parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ChannelProfile parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ChannelProfile parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1beta.ChannelProfile prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 ChannelProfile configures the agent's behavior for a specific communication
                +   * channel, such as web UI or telephony.
                +   * 
                + * + * Protobuf type {@code google.cloud.ces.v1beta.ChannelProfile} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.ChannelProfile) + com.google.cloud.ces.v1beta.ChannelProfileOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.CommonProto + .internal_static_google_cloud_ces_v1beta_ChannelProfile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.CommonProto + .internal_static_google_cloud_ces_v1beta_ChannelProfile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.ChannelProfile.class, + com.google.cloud.ces.v1beta.ChannelProfile.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.ChannelProfile.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetPersonaPropertyFieldBuilder(); + internalGetWebWidgetConfigFieldBuilder(); + internalGetWhatsappConfigFieldBuilder(); + internalGetInstagramConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + profileId_ = ""; + channelType_ = 0; + personaProperty_ = null; + if (personaPropertyBuilder_ != null) { + personaPropertyBuilder_.dispose(); + personaPropertyBuilder_ = null; + } + disableDtmf_ = false; + disableBargeInControl_ = false; + webWidgetConfig_ = null; + if (webWidgetConfigBuilder_ != null) { + webWidgetConfigBuilder_.dispose(); + webWidgetConfigBuilder_ = null; + } + noiseSuppressionLevel_ = ""; + whatsappConfig_ = null; + if (whatsappConfigBuilder_ != null) { + whatsappConfigBuilder_.dispose(); + whatsappConfigBuilder_ = null; + } + instagramConfig_ = null; + if (instagramConfigBuilder_ != null) { + instagramConfigBuilder_.dispose(); + instagramConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.CommonProto + .internal_static_google_cloud_ces_v1beta_ChannelProfile_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ChannelProfile getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.ChannelProfile.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ChannelProfile build() { + com.google.cloud.ces.v1beta.ChannelProfile result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ChannelProfile buildPartial() { + com.google.cloud.ces.v1beta.ChannelProfile result = + new com.google.cloud.ces.v1beta.ChannelProfile(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1beta.ChannelProfile result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.profileId_ = profileId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.channelType_ = channelType_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.personaProperty_ = + personaPropertyBuilder_ == null ? personaProperty_ : personaPropertyBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.disableDtmf_ = disableDtmf_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.disableBargeInControl_ = disableBargeInControl_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.webWidgetConfig_ = + webWidgetConfigBuilder_ == null ? webWidgetConfig_ : webWidgetConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.noiseSuppressionLevel_ = noiseSuppressionLevel_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.whatsappConfig_ = + whatsappConfigBuilder_ == null ? whatsappConfig_ : whatsappConfigBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.instagramConfig_ = + instagramConfigBuilder_ == null ? instagramConfig_ : instagramConfigBuilder_.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.ces.v1beta.ChannelProfile) { + return mergeFrom((com.google.cloud.ces.v1beta.ChannelProfile) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.ChannelProfile other) { + if (other == com.google.cloud.ces.v1beta.ChannelProfile.getDefaultInstance()) return this; + if (!other.getProfileId().isEmpty()) { + profileId_ = other.profileId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.channelType_ != 0) { + setChannelTypeValue(other.getChannelTypeValue()); + } + if (other.hasPersonaProperty()) { + mergePersonaProperty(other.getPersonaProperty()); + } + if (other.getDisableDtmf() != false) { + setDisableDtmf(other.getDisableDtmf()); + } + if (other.getDisableBargeInControl() != false) { + setDisableBargeInControl(other.getDisableBargeInControl()); + } + if (other.hasWebWidgetConfig()) { + mergeWebWidgetConfig(other.getWebWidgetConfig()); + } + if (!other.getNoiseSuppressionLevel().isEmpty()) { + noiseSuppressionLevel_ = other.noiseSuppressionLevel_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (other.hasWhatsappConfig()) { + mergeWhatsappConfig(other.getWhatsappConfig()); + } + if (other.hasInstagramConfig()) { + mergeInstagramConfig(other.getInstagramConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + profileId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetPersonaPropertyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 24: + { + channelType_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 24 + case 32: + { + disableDtmf_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + disableBargeInControl_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 58: + { + input.readMessage( + internalGetWebWidgetConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 58 + case 66: + { + noiseSuppressionLevel_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 66 + case 74: + { + input.readMessage( + internalGetWhatsappConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 74 + case 82: + { + input.readMessage( + internalGetInstagramConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + 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 profileId_ = ""; + + /** + * + * + *
                +     * Optional. The unique identifier of the channel profile.
                +     * 
                + * + * string profile_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The profileId. + */ + public java.lang.String getProfileId() { + java.lang.Object ref = profileId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + profileId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                +     * Optional. The unique identifier of the channel profile.
                +     * 
                + * + * string profile_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for profileId. + */ + public com.google.protobuf.ByteString getProfileIdBytes() { + java.lang.Object ref = profileId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + profileId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                +     * Optional. The unique identifier of the channel profile.
                +     * 
                + * + * string profile_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The profileId to set. + * @return This builder for chaining. + */ + public Builder setProfileId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + profileId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. The unique identifier of the channel profile.
                +     * 
                + * + * string profile_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearProfileId() { + profileId_ = getDefaultInstance().getProfileId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. The unique identifier of the channel profile.
                +     * 
                + * + * string profile_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for profileId to set. + * @return This builder for chaining. + */ + public Builder setProfileIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + profileId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int channelType_ = 0; + + /** + * + * + *
                +     * Optional. The type of the channel profile.
                +     * 
                + * + * + * .google.cloud.ces.v1beta.ChannelProfile.ChannelType channel_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for channelType. + */ + @java.lang.Override + public int getChannelTypeValue() { + return channelType_; + } + + /** + * + * + *
                +     * Optional. The type of the channel profile.
                +     * 
                + * + * + * .google.cloud.ces.v1beta.ChannelProfile.ChannelType channel_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for channelType to set. + * @return This builder for chaining. + */ + public Builder setChannelTypeValue(int value) { + channelType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. The type of the channel profile.
                +     * 
                + * + * + * .google.cloud.ces.v1beta.ChannelProfile.ChannelType channel_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The channelType. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.ChannelProfile.ChannelType getChannelType() { + com.google.cloud.ces.v1beta.ChannelProfile.ChannelType result = + com.google.cloud.ces.v1beta.ChannelProfile.ChannelType.forNumber(channelType_); + return result == null + ? com.google.cloud.ces.v1beta.ChannelProfile.ChannelType.UNRECOGNIZED + : result; + } + + /** + * + * + *
                +     * Optional. The type of the channel profile.
                +     * 
                + * + * + * .google.cloud.ces.v1beta.ChannelProfile.ChannelType channel_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The channelType to set. + * @return This builder for chaining. + */ + public Builder setChannelType(com.google.cloud.ces.v1beta.ChannelProfile.ChannelType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + channelType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. The type of the channel profile.
                +     * 
                + * + * + * .google.cloud.ces.v1beta.ChannelProfile.ChannelType channel_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearChannelType() { + bitField0_ = (bitField0_ & ~0x00000002); + channelType_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.ces.v1beta.ChannelProfile.PersonaProperty personaProperty_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.ChannelProfile.PersonaProperty, + com.google.cloud.ces.v1beta.ChannelProfile.PersonaProperty.Builder, + com.google.cloud.ces.v1beta.ChannelProfile.PersonaPropertyOrBuilder> + personaPropertyBuilder_; + + /** + * + * + *
                +     * Optional. The persona property of the channel profile.
                +     * 
                + * + * + * .google.cloud.ces.v1beta.ChannelProfile.PersonaProperty persona_property = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the personaProperty field is set. + */ + public boolean hasPersonaProperty() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                +     * Optional. The persona property of the channel profile.
                +     * 
                + * + * + * .google.cloud.ces.v1beta.ChannelProfile.PersonaProperty persona_property = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The personaProperty. + */ + public com.google.cloud.ces.v1beta.ChannelProfile.PersonaProperty getPersonaProperty() { + if (personaPropertyBuilder_ == null) { + return personaProperty_ == null + ? com.google.cloud.ces.v1beta.ChannelProfile.PersonaProperty.getDefaultInstance() + : personaProperty_; + } else { + return personaPropertyBuilder_.getMessage(); + } + } + + /** + * + * + *
                +     * Optional. The persona property of the channel profile.
                +     * 
                + * + * + * .google.cloud.ces.v1beta.ChannelProfile.PersonaProperty persona_property = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPersonaProperty( + com.google.cloud.ces.v1beta.ChannelProfile.PersonaProperty value) { + if (personaPropertyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + personaProperty_ = value; + } else { + personaPropertyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); return this; } - private int bitField0_; - - private java.lang.Object profileId_ = ""; - /** * * *
                -     * Optional. The unique identifier of the channel profile.
                +     * Optional. The persona property of the channel profile.
                      * 
                * - * string profile_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The profileId. + * + * .google.cloud.ces.v1beta.ChannelProfile.PersonaProperty persona_property = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.lang.String getProfileId() { - java.lang.Object ref = profileId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - profileId_ = s; - return s; + public Builder setPersonaProperty( + com.google.cloud.ces.v1beta.ChannelProfile.PersonaProperty.Builder builderForValue) { + if (personaPropertyBuilder_ == null) { + personaProperty_ = builderForValue.build(); } else { - return (java.lang.String) ref; + personaPropertyBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00000004; + onChanged(); + return this; } /** * * *
                -     * Optional. The unique identifier of the channel profile.
                +     * Optional. The persona property of the channel profile.
                      * 
                * - * string profile_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for profileId. + * + * .google.cloud.ces.v1beta.ChannelProfile.PersonaProperty persona_property = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.protobuf.ByteString getProfileIdBytes() { - java.lang.Object ref = profileId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - profileId_ = b; - return b; + public Builder mergePersonaProperty( + com.google.cloud.ces.v1beta.ChannelProfile.PersonaProperty value) { + if (personaPropertyBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && personaProperty_ != null + && personaProperty_ + != com.google.cloud.ces.v1beta.ChannelProfile.PersonaProperty + .getDefaultInstance()) { + getPersonaPropertyBuilder().mergeFrom(value); + } else { + personaProperty_ = value; + } } else { - return (com.google.protobuf.ByteString) ref; + personaPropertyBuilder_.mergeFrom(value); + } + if (personaProperty_ != null) { + bitField0_ |= 0x00000004; + onChanged(); } + return this; } /** * * *
                -     * Optional. The unique identifier of the channel profile.
                +     * Optional. The persona property of the channel profile.
                      * 
                * - * string profile_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The profileId to set. - * @return This builder for chaining. + * + * .google.cloud.ces.v1beta.ChannelProfile.PersonaProperty persona_property = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setProfileId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder clearPersonaProperty() { + bitField0_ = (bitField0_ & ~0x00000004); + personaProperty_ = null; + if (personaPropertyBuilder_ != null) { + personaPropertyBuilder_.dispose(); + personaPropertyBuilder_ = null; } - profileId_ = value; - bitField0_ |= 0x00000001; onChanged(); return this; } @@ -4986,80 +8484,104 @@ public Builder setProfileId(java.lang.String value) { * * *
                -     * Optional. The unique identifier of the channel profile.
                +     * Optional. The persona property of the channel profile.
                      * 
                * - * string profile_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. + * + * .google.cloud.ces.v1beta.ChannelProfile.PersonaProperty persona_property = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder clearProfileId() { - profileId_ = getDefaultInstance().getProfileId(); - bitField0_ = (bitField0_ & ~0x00000001); + public com.google.cloud.ces.v1beta.ChannelProfile.PersonaProperty.Builder + getPersonaPropertyBuilder() { + bitField0_ |= 0x00000004; onChanged(); - return this; + return internalGetPersonaPropertyFieldBuilder().getBuilder(); } /** * * *
                -     * Optional. The unique identifier of the channel profile.
                +     * Optional. The persona property of the channel profile.
                      * 
                * - * string profile_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for profileId to set. - * @return This builder for chaining. + * + * .google.cloud.ces.v1beta.ChannelProfile.PersonaProperty persona_property = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setProfileIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public com.google.cloud.ces.v1beta.ChannelProfile.PersonaPropertyOrBuilder + getPersonaPropertyOrBuilder() { + if (personaPropertyBuilder_ != null) { + return personaPropertyBuilder_.getMessageOrBuilder(); + } else { + return personaProperty_ == null + ? com.google.cloud.ces.v1beta.ChannelProfile.PersonaProperty.getDefaultInstance() + : personaProperty_; } - checkByteStringIsUtf8(value); - profileId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; } - private int channelType_ = 0; - /** * * *
                -     * Optional. The type of the channel profile.
                +     * Optional. The persona property of the channel profile.
                      * 
                * * - * .google.cloud.ces.v1beta.ChannelProfile.ChannelType channel_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.ChannelProfile.PersonaProperty persona_property = 2 [(.google.api.field_behavior) = OPTIONAL]; * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.ChannelProfile.PersonaProperty, + com.google.cloud.ces.v1beta.ChannelProfile.PersonaProperty.Builder, + com.google.cloud.ces.v1beta.ChannelProfile.PersonaPropertyOrBuilder> + internalGetPersonaPropertyFieldBuilder() { + if (personaPropertyBuilder_ == null) { + personaPropertyBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.ChannelProfile.PersonaProperty, + com.google.cloud.ces.v1beta.ChannelProfile.PersonaProperty.Builder, + com.google.cloud.ces.v1beta.ChannelProfile.PersonaPropertyOrBuilder>( + getPersonaProperty(), getParentForChildren(), isClean()); + personaProperty_ = null; + } + return personaPropertyBuilder_; + } + + private boolean disableDtmf_; + + /** * - * @return The enum numeric value on the wire for channelType. + * + *
                +     * Optional. Whether to disable DTMF (dual-tone multi-frequency).
                +     * 
                + * + * bool disable_dtmf = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disableDtmf. */ @java.lang.Override - public int getChannelTypeValue() { - return channelType_; + public boolean getDisableDtmf() { + return disableDtmf_; } /** * * *
                -     * Optional. The type of the channel profile.
                +     * Optional. Whether to disable DTMF (dual-tone multi-frequency).
                      * 
                * - * - * .google.cloud.ces.v1beta.ChannelProfile.ChannelType channel_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * bool disable_dtmf = 4 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The enum numeric value on the wire for channelType to set. + * @param value The disableDtmf to set. * @return This builder for chaining. */ - public Builder setChannelTypeValue(int value) { - channelType_ = value; - bitField0_ |= 0x00000002; + public Builder setDisableDtmf(boolean value) { + + disableDtmf_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -5068,44 +8590,60 @@ public Builder setChannelTypeValue(int value) { * * *
                -     * Optional. The type of the channel profile.
                +     * Optional. Whether to disable DTMF (dual-tone multi-frequency).
                      * 
                * - * - * .google.cloud.ces.v1beta.ChannelProfile.ChannelType channel_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * bool disable_dtmf = 4 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The channelType. + * @return This builder for chaining. + */ + public Builder clearDisableDtmf() { + bitField0_ = (bitField0_ & ~0x00000008); + disableDtmf_ = false; + onChanged(); + return this; + } + + private boolean disableBargeInControl_; + + /** + * + * + *
                +     * Optional. Whether to disable user barge-in control in the conversation.
                +     * - **true**: User interruptions are disabled while the agent is speaking.
                +     * - **false**: The agent retains automatic control over when the user can
                +     * interrupt.
                +     * 
                + * + * bool disable_barge_in_control = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disableBargeInControl. */ @java.lang.Override - public com.google.cloud.ces.v1beta.ChannelProfile.ChannelType getChannelType() { - com.google.cloud.ces.v1beta.ChannelProfile.ChannelType result = - com.google.cloud.ces.v1beta.ChannelProfile.ChannelType.forNumber(channelType_); - return result == null - ? com.google.cloud.ces.v1beta.ChannelProfile.ChannelType.UNRECOGNIZED - : result; + public boolean getDisableBargeInControl() { + return disableBargeInControl_; } /** * * *
                -     * Optional. The type of the channel profile.
                +     * Optional. Whether to disable user barge-in control in the conversation.
                +     * - **true**: User interruptions are disabled while the agent is speaking.
                +     * - **false**: The agent retains automatic control over when the user can
                +     * interrupt.
                      * 
                * - * - * .google.cloud.ces.v1beta.ChannelProfile.ChannelType channel_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * bool disable_barge_in_control = 5 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The channelType to set. + * @param value The disableBargeInControl to set. * @return This builder for chaining. */ - public Builder setChannelType(com.google.cloud.ces.v1beta.ChannelProfile.ChannelType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - channelType_ = value.getNumber(); + public Builder setDisableBargeInControl(boolean value) { + + disableBargeInControl_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -5114,66 +8652,67 @@ public Builder setChannelType(com.google.cloud.ces.v1beta.ChannelProfile.Channel * * *
                -     * Optional. The type of the channel profile.
                +     * Optional. Whether to disable user barge-in control in the conversation.
                +     * - **true**: User interruptions are disabled while the agent is speaking.
                +     * - **false**: The agent retains automatic control over when the user can
                +     * interrupt.
                      * 
                * - * - * .google.cloud.ces.v1beta.ChannelProfile.ChannelType channel_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * bool disable_barge_in_control = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ - public Builder clearChannelType() { - bitField0_ = (bitField0_ & ~0x00000002); - channelType_ = 0; + public Builder clearDisableBargeInControl() { + bitField0_ = (bitField0_ & ~0x00000010); + disableBargeInControl_ = false; onChanged(); return this; } - private com.google.cloud.ces.v1beta.ChannelProfile.PersonaProperty personaProperty_; + private com.google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfig webWidgetConfig_; private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.ces.v1beta.ChannelProfile.PersonaProperty, - com.google.cloud.ces.v1beta.ChannelProfile.PersonaProperty.Builder, - com.google.cloud.ces.v1beta.ChannelProfile.PersonaPropertyOrBuilder> - personaPropertyBuilder_; + com.google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfig, + com.google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfig.Builder, + com.google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfigOrBuilder> + webWidgetConfigBuilder_; /** * * *
                -     * Optional. The persona property of the channel profile.
                +     * Optional. The configuration for the web widget.
                      * 
                * * - * .google.cloud.ces.v1beta.ChannelProfile.PersonaProperty persona_property = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfig web_widget_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the personaProperty field is set. + * @return Whether the webWidgetConfig field is set. */ - public boolean hasPersonaProperty() { - return ((bitField0_ & 0x00000004) != 0); + public boolean hasWebWidgetConfig() { + return ((bitField0_ & 0x00000020) != 0); } /** * * *
                -     * Optional. The persona property of the channel profile.
                +     * Optional. The configuration for the web widget.
                      * 
                * * - * .google.cloud.ces.v1beta.ChannelProfile.PersonaProperty persona_property = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfig web_widget_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The personaProperty. + * @return The webWidgetConfig. */ - public com.google.cloud.ces.v1beta.ChannelProfile.PersonaProperty getPersonaProperty() { - if (personaPropertyBuilder_ == null) { - return personaProperty_ == null - ? com.google.cloud.ces.v1beta.ChannelProfile.PersonaProperty.getDefaultInstance() - : personaProperty_; + public com.google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfig getWebWidgetConfig() { + if (webWidgetConfigBuilder_ == null) { + return webWidgetConfig_ == null + ? com.google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfig.getDefaultInstance() + : webWidgetConfig_; } else { - return personaPropertyBuilder_.getMessage(); + return webWidgetConfigBuilder_.getMessage(); } } @@ -5181,24 +8720,24 @@ public com.google.cloud.ces.v1beta.ChannelProfile.PersonaProperty getPersonaProp * * *
                -     * Optional. The persona property of the channel profile.
                +     * Optional. The configuration for the web widget.
                      * 
                * * - * .google.cloud.ces.v1beta.ChannelProfile.PersonaProperty persona_property = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfig web_widget_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setPersonaProperty( - com.google.cloud.ces.v1beta.ChannelProfile.PersonaProperty value) { - if (personaPropertyBuilder_ == null) { + public Builder setWebWidgetConfig( + com.google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfig value) { + if (webWidgetConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - personaProperty_ = value; + webWidgetConfig_ = value; } else { - personaPropertyBuilder_.setMessage(value); + webWidgetConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -5207,21 +8746,21 @@ public Builder setPersonaProperty( * * *
                -     * Optional. The persona property of the channel profile.
                +     * Optional. The configuration for the web widget.
                      * 
                * * - * .google.cloud.ces.v1beta.ChannelProfile.PersonaProperty persona_property = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfig web_widget_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setPersonaProperty( - com.google.cloud.ces.v1beta.ChannelProfile.PersonaProperty.Builder builderForValue) { - if (personaPropertyBuilder_ == null) { - personaProperty_ = builderForValue.build(); + public Builder setWebWidgetConfig( + com.google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfig.Builder builderForValue) { + if (webWidgetConfigBuilder_ == null) { + webWidgetConfig_ = builderForValue.build(); } else { - personaPropertyBuilder_.setMessage(builderForValue.build()); + webWidgetConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -5230,30 +8769,30 @@ public Builder setPersonaProperty( * * *
                -     * Optional. The persona property of the channel profile.
                +     * Optional. The configuration for the web widget.
                      * 
                * * - * .google.cloud.ces.v1beta.ChannelProfile.PersonaProperty persona_property = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfig web_widget_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergePersonaProperty( - com.google.cloud.ces.v1beta.ChannelProfile.PersonaProperty value) { - if (personaPropertyBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && personaProperty_ != null - && personaProperty_ - != com.google.cloud.ces.v1beta.ChannelProfile.PersonaProperty + public Builder mergeWebWidgetConfig( + com.google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfig value) { + if (webWidgetConfigBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && webWidgetConfig_ != null + && webWidgetConfig_ + != com.google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfig .getDefaultInstance()) { - getPersonaPropertyBuilder().mergeFrom(value); + getWebWidgetConfigBuilder().mergeFrom(value); } else { - personaProperty_ = value; + webWidgetConfig_ = value; } } else { - personaPropertyBuilder_.mergeFrom(value); + webWidgetConfigBuilder_.mergeFrom(value); } - if (personaProperty_ != null) { - bitField0_ |= 0x00000004; + if (webWidgetConfig_ != null) { + bitField0_ |= 0x00000020; onChanged(); } return this; @@ -5263,19 +8802,19 @@ public Builder mergePersonaProperty( * * *
                -     * Optional. The persona property of the channel profile.
                +     * Optional. The configuration for the web widget.
                      * 
                * * - * .google.cloud.ces.v1beta.ChannelProfile.PersonaProperty persona_property = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfig web_widget_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearPersonaProperty() { - bitField0_ = (bitField0_ & ~0x00000004); - personaProperty_ = null; - if (personaPropertyBuilder_ != null) { - personaPropertyBuilder_.dispose(); - personaPropertyBuilder_ = null; + public Builder clearWebWidgetConfig() { + bitField0_ = (bitField0_ & ~0x00000020); + webWidgetConfig_ = null; + if (webWidgetConfigBuilder_ != null) { + webWidgetConfigBuilder_.dispose(); + webWidgetConfigBuilder_ = null; } onChanged(); return this; @@ -5285,39 +8824,39 @@ public Builder clearPersonaProperty() { * * *
                -     * Optional. The persona property of the channel profile.
                +     * Optional. The configuration for the web widget.
                      * 
                * * - * .google.cloud.ces.v1beta.ChannelProfile.PersonaProperty persona_property = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfig web_widget_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.ces.v1beta.ChannelProfile.PersonaProperty.Builder - getPersonaPropertyBuilder() { - bitField0_ |= 0x00000004; + public com.google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfig.Builder + getWebWidgetConfigBuilder() { + bitField0_ |= 0x00000020; onChanged(); - return internalGetPersonaPropertyFieldBuilder().getBuilder(); + return internalGetWebWidgetConfigFieldBuilder().getBuilder(); } /** * * *
                -     * Optional. The persona property of the channel profile.
                +     * Optional. The configuration for the web widget.
                      * 
                * * - * .google.cloud.ces.v1beta.ChannelProfile.PersonaProperty persona_property = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfig web_widget_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.ces.v1beta.ChannelProfile.PersonaPropertyOrBuilder - getPersonaPropertyOrBuilder() { - if (personaPropertyBuilder_ != null) { - return personaPropertyBuilder_.getMessageOrBuilder(); + public com.google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfigOrBuilder + getWebWidgetConfigOrBuilder() { + if (webWidgetConfigBuilder_ != null) { + return webWidgetConfigBuilder_.getMessageOrBuilder(); } else { - return personaProperty_ == null - ? com.google.cloud.ces.v1beta.ChannelProfile.PersonaProperty.getDefaultInstance() - : personaProperty_; + return webWidgetConfig_ == null + ? com.google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfig.getDefaultInstance() + : webWidgetConfig_; } } @@ -5325,126 +8864,118 @@ public Builder clearPersonaProperty() { * * *
                -     * Optional. The persona property of the channel profile.
                +     * Optional. The configuration for the web widget.
                      * 
                * * - * .google.cloud.ces.v1beta.ChannelProfile.PersonaProperty persona_property = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfig web_widget_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.ces.v1beta.ChannelProfile.PersonaProperty, - com.google.cloud.ces.v1beta.ChannelProfile.PersonaProperty.Builder, - com.google.cloud.ces.v1beta.ChannelProfile.PersonaPropertyOrBuilder> - internalGetPersonaPropertyFieldBuilder() { - if (personaPropertyBuilder_ == null) { - personaPropertyBuilder_ = + com.google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfig, + com.google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfig.Builder, + com.google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfigOrBuilder> + internalGetWebWidgetConfigFieldBuilder() { + if (webWidgetConfigBuilder_ == null) { + webWidgetConfigBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.ces.v1beta.ChannelProfile.PersonaProperty, - com.google.cloud.ces.v1beta.ChannelProfile.PersonaProperty.Builder, - com.google.cloud.ces.v1beta.ChannelProfile.PersonaPropertyOrBuilder>( - getPersonaProperty(), getParentForChildren(), isClean()); - personaProperty_ = null; + com.google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfig, + com.google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfig.Builder, + com.google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfigOrBuilder>( + getWebWidgetConfig(), getParentForChildren(), isClean()); + webWidgetConfig_ = null; } - return personaPropertyBuilder_; + return webWidgetConfigBuilder_; } - private boolean disableDtmf_; + private java.lang.Object noiseSuppressionLevel_ = ""; /** * * *
                -     * Optional. Whether to disable DTMF (dual-tone multi-frequency).
                +     * Optional. The noise suppression level of the channel profile.
                +     * Available values are "low", "moderate", "high", "very_high".
                      * 
                * - * bool disable_dtmf = 4 [(.google.api.field_behavior) = OPTIONAL]; + * string noise_suppression_level = 8 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The disableDtmf. + * @return The noiseSuppressionLevel. */ - @java.lang.Override - public boolean getDisableDtmf() { - return disableDtmf_; + public java.lang.String getNoiseSuppressionLevel() { + java.lang.Object ref = noiseSuppressionLevel_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + noiseSuppressionLevel_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** * * *
                -     * Optional. Whether to disable DTMF (dual-tone multi-frequency).
                +     * Optional. The noise suppression level of the channel profile.
                +     * Available values are "low", "moderate", "high", "very_high".
                      * 
                * - * bool disable_dtmf = 4 [(.google.api.field_behavior) = OPTIONAL]; + * string noise_suppression_level = 8 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The disableDtmf to set. - * @return This builder for chaining. + * @return The bytes for noiseSuppressionLevel. */ - public Builder setDisableDtmf(boolean value) { - - disableDtmf_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; + public com.google.protobuf.ByteString getNoiseSuppressionLevelBytes() { + java.lang.Object ref = noiseSuppressionLevel_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + noiseSuppressionLevel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** * * *
                -     * Optional. Whether to disable DTMF (dual-tone multi-frequency).
                +     * Optional. The noise suppression level of the channel profile.
                +     * Available values are "low", "moderate", "high", "very_high".
                      * 
                * - * bool disable_dtmf = 4 [(.google.api.field_behavior) = OPTIONAL]; + * string noise_suppression_level = 8 [(.google.api.field_behavior) = OPTIONAL]; * + * @param value The noiseSuppressionLevel to set. * @return This builder for chaining. */ - public Builder clearDisableDtmf() { - bitField0_ = (bitField0_ & ~0x00000008); - disableDtmf_ = false; - onChanged(); - return this; - } - - private boolean disableBargeInControl_; - - /** - * - * - *
                -     * Optional. Whether to disable user barge-in control in the conversation.
                -     * - **true**: User interruptions are disabled while the agent is speaking.
                -     * - **false**: The agent retains automatic control over when the user can
                -     * interrupt.
                -     * 
                - * - * bool disable_barge_in_control = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The disableBargeInControl. - */ - @java.lang.Override - public boolean getDisableBargeInControl() { - return disableBargeInControl_; + public Builder setNoiseSuppressionLevel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + noiseSuppressionLevel_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; } /** * * *
                -     * Optional. Whether to disable user barge-in control in the conversation.
                -     * - **true**: User interruptions are disabled while the agent is speaking.
                -     * - **false**: The agent retains automatic control over when the user can
                -     * interrupt.
                +     * Optional. The noise suppression level of the channel profile.
                +     * Available values are "low", "moderate", "high", "very_high".
                      * 
                * - * bool disable_barge_in_control = 5 [(.google.api.field_behavior) = OPTIONAL]; + * string noise_suppression_level = 8 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The disableBargeInControl to set. * @return This builder for chaining. */ - public Builder setDisableBargeInControl(boolean value) { - - disableBargeInControl_ = value; - bitField0_ |= 0x00000010; + public Builder clearNoiseSuppressionLevel() { + noiseSuppressionLevel_ = getDefaultInstance().getNoiseSuppressionLevel(); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -5453,67 +8984,70 @@ public Builder setDisableBargeInControl(boolean value) { * * *
                -     * Optional. Whether to disable user barge-in control in the conversation.
                -     * - **true**: User interruptions are disabled while the agent is speaking.
                -     * - **false**: The agent retains automatic control over when the user can
                -     * interrupt.
                +     * Optional. The noise suppression level of the channel profile.
                +     * Available values are "low", "moderate", "high", "very_high".
                      * 
                * - * bool disable_barge_in_control = 5 [(.google.api.field_behavior) = OPTIONAL]; + * string noise_suppression_level = 8 [(.google.api.field_behavior) = OPTIONAL]; * + * @param value The bytes for noiseSuppressionLevel to set. * @return This builder for chaining. */ - public Builder clearDisableBargeInControl() { - bitField0_ = (bitField0_ & ~0x00000010); - disableBargeInControl_ = false; + public Builder setNoiseSuppressionLevelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + noiseSuppressionLevel_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } - private com.google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfig webWidgetConfig_; + private com.google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig whatsappConfig_; private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfig, - com.google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfig.Builder, - com.google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfigOrBuilder> - webWidgetConfigBuilder_; + com.google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig, + com.google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig.Builder, + com.google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfigOrBuilder> + whatsappConfigBuilder_; /** * * *
                -     * Optional. The configuration for the web widget.
                +     * Optional. Configuration specific to WhatsApp deployments.
                      * 
                * * - * .google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfig web_widget_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig whatsapp_config = 9 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the webWidgetConfig field is set. + * @return Whether the whatsappConfig field is set. */ - public boolean hasWebWidgetConfig() { - return ((bitField0_ & 0x00000020) != 0); + public boolean hasWhatsappConfig() { + return ((bitField0_ & 0x00000080) != 0); } /** * * *
                -     * Optional. The configuration for the web widget.
                +     * Optional. Configuration specific to WhatsApp deployments.
                      * 
                * * - * .google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfig web_widget_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig whatsapp_config = 9 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The webWidgetConfig. + * @return The whatsappConfig. */ - public com.google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfig getWebWidgetConfig() { - if (webWidgetConfigBuilder_ == null) { - return webWidgetConfig_ == null - ? com.google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfig.getDefaultInstance() - : webWidgetConfig_; + public com.google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig getWhatsappConfig() { + if (whatsappConfigBuilder_ == null) { + return whatsappConfig_ == null + ? com.google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig.getDefaultInstance() + : whatsappConfig_; } else { - return webWidgetConfigBuilder_.getMessage(); + return whatsappConfigBuilder_.getMessage(); } } @@ -5521,24 +9055,24 @@ public com.google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfig getWebWidgetCo * * *
                -     * Optional. The configuration for the web widget.
                +     * Optional. Configuration specific to WhatsApp deployments.
                      * 
                * * - * .google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfig web_widget_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig whatsapp_config = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setWebWidgetConfig( - com.google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfig value) { - if (webWidgetConfigBuilder_ == null) { + public Builder setWhatsappConfig( + com.google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig value) { + if (whatsappConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - webWidgetConfig_ = value; + whatsappConfig_ = value; } else { - webWidgetConfigBuilder_.setMessage(value); + whatsappConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -5547,21 +9081,21 @@ public Builder setWebWidgetConfig( * * *
                -     * Optional. The configuration for the web widget.
                +     * Optional. Configuration specific to WhatsApp deployments.
                      * 
                * * - * .google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfig web_widget_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig whatsapp_config = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setWebWidgetConfig( - com.google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfig.Builder builderForValue) { - if (webWidgetConfigBuilder_ == null) { - webWidgetConfig_ = builderForValue.build(); + public Builder setWhatsappConfig( + com.google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig.Builder builderForValue) { + if (whatsappConfigBuilder_ == null) { + whatsappConfig_ = builderForValue.build(); } else { - webWidgetConfigBuilder_.setMessage(builderForValue.build()); + whatsappConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -5570,30 +9104,29 @@ public Builder setWebWidgetConfig( * * *
                -     * Optional. The configuration for the web widget.
                +     * Optional. Configuration specific to WhatsApp deployments.
                      * 
                * * - * .google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfig web_widget_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig whatsapp_config = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeWebWidgetConfig( - com.google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfig value) { - if (webWidgetConfigBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && webWidgetConfig_ != null - && webWidgetConfig_ - != com.google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfig - .getDefaultInstance()) { - getWebWidgetConfigBuilder().mergeFrom(value); + public Builder mergeWhatsappConfig( + com.google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig value) { + if (whatsappConfigBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && whatsappConfig_ != null + && whatsappConfig_ + != com.google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig.getDefaultInstance()) { + getWhatsappConfigBuilder().mergeFrom(value); } else { - webWidgetConfig_ = value; + whatsappConfig_ = value; } } else { - webWidgetConfigBuilder_.mergeFrom(value); + whatsappConfigBuilder_.mergeFrom(value); } - if (webWidgetConfig_ != null) { - bitField0_ |= 0x00000020; + if (whatsappConfig_ != null) { + bitField0_ |= 0x00000080; onChanged(); } return this; @@ -5603,19 +9136,19 @@ public Builder mergeWebWidgetConfig( * * *
                -     * Optional. The configuration for the web widget.
                +     * Optional. Configuration specific to WhatsApp deployments.
                      * 
                * * - * .google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfig web_widget_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig whatsapp_config = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearWebWidgetConfig() { - bitField0_ = (bitField0_ & ~0x00000020); - webWidgetConfig_ = null; - if (webWidgetConfigBuilder_ != null) { - webWidgetConfigBuilder_.dispose(); - webWidgetConfigBuilder_ = null; + public Builder clearWhatsappConfig() { + bitField0_ = (bitField0_ & ~0x00000080); + whatsappConfig_ = null; + if (whatsappConfigBuilder_ != null) { + whatsappConfigBuilder_.dispose(); + whatsappConfigBuilder_ = null; } onChanged(); return this; @@ -5625,39 +9158,39 @@ public Builder clearWebWidgetConfig() { * * *
                -     * Optional. The configuration for the web widget.
                +     * Optional. Configuration specific to WhatsApp deployments.
                      * 
                * * - * .google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfig web_widget_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig whatsapp_config = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfig.Builder - getWebWidgetConfigBuilder() { - bitField0_ |= 0x00000020; + public com.google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig.Builder + getWhatsappConfigBuilder() { + bitField0_ |= 0x00000080; onChanged(); - return internalGetWebWidgetConfigFieldBuilder().getBuilder(); + return internalGetWhatsappConfigFieldBuilder().getBuilder(); } /** * * *
                -     * Optional. The configuration for the web widget.
                +     * Optional. Configuration specific to WhatsApp deployments.
                      * 
                * * - * .google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfig web_widget_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig whatsapp_config = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfigOrBuilder - getWebWidgetConfigOrBuilder() { - if (webWidgetConfigBuilder_ != null) { - return webWidgetConfigBuilder_.getMessageOrBuilder(); + public com.google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfigOrBuilder + getWhatsappConfigOrBuilder() { + if (whatsappConfigBuilder_ != null) { + return whatsappConfigBuilder_.getMessageOrBuilder(); } else { - return webWidgetConfig_ == null - ? com.google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfig.getDefaultInstance() - : webWidgetConfig_; + return whatsappConfig_ == null + ? com.google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig.getDefaultInstance() + : whatsappConfig_; } } @@ -5665,77 +9198,74 @@ public Builder clearWebWidgetConfig() { * * *
                -     * Optional. The configuration for the web widget.
                +     * Optional. Configuration specific to WhatsApp deployments.
                      * 
                * * - * .google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfig web_widget_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig whatsapp_config = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfig, - com.google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfig.Builder, - com.google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfigOrBuilder> - internalGetWebWidgetConfigFieldBuilder() { - if (webWidgetConfigBuilder_ == null) { - webWidgetConfigBuilder_ = + com.google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig, + com.google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig.Builder, + com.google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfigOrBuilder> + internalGetWhatsappConfigFieldBuilder() { + if (whatsappConfigBuilder_ == null) { + whatsappConfigBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfig, - com.google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfig.Builder, - com.google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfigOrBuilder>( - getWebWidgetConfig(), getParentForChildren(), isClean()); - webWidgetConfig_ = null; + com.google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig, + com.google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig.Builder, + com.google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfigOrBuilder>( + getWhatsappConfig(), getParentForChildren(), isClean()); + whatsappConfig_ = null; } - return webWidgetConfigBuilder_; + return whatsappConfigBuilder_; } - private java.lang.Object noiseSuppressionLevel_ = ""; + private com.google.cloud.ces.v1beta.ChannelProfile.InstagramConfig instagramConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.ChannelProfile.InstagramConfig, + com.google.cloud.ces.v1beta.ChannelProfile.InstagramConfig.Builder, + com.google.cloud.ces.v1beta.ChannelProfile.InstagramConfigOrBuilder> + instagramConfigBuilder_; /** * * *
                -     * Optional. The noise suppression level of the channel profile.
                -     * Available values are "low", "moderate", "high", "very_high".
                +     * Optional. Configuration specific to Instagram deployments.
                      * 
                * - * string noise_suppression_level = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.ces.v1beta.ChannelProfile.InstagramConfig instagram_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @return The noiseSuppressionLevel. + * @return Whether the instagramConfig field is set. */ - public java.lang.String getNoiseSuppressionLevel() { - java.lang.Object ref = noiseSuppressionLevel_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - noiseSuppressionLevel_ = s; - return s; - } else { - return (java.lang.String) ref; - } + public boolean hasInstagramConfig() { + return ((bitField0_ & 0x00000100) != 0); } /** * * *
                -     * Optional. The noise suppression level of the channel profile.
                -     * Available values are "low", "moderate", "high", "very_high".
                +     * Optional. Configuration specific to Instagram deployments.
                      * 
                * - * string noise_suppression_level = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.ces.v1beta.ChannelProfile.InstagramConfig instagram_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @return The bytes for noiseSuppressionLevel. + * @return The instagramConfig. */ - public com.google.protobuf.ByteString getNoiseSuppressionLevelBytes() { - java.lang.Object ref = noiseSuppressionLevel_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - noiseSuppressionLevel_ = b; - return b; + public com.google.cloud.ces.v1beta.ChannelProfile.InstagramConfig getInstagramConfig() { + if (instagramConfigBuilder_ == null) { + return instagramConfig_ == null + ? com.google.cloud.ces.v1beta.ChannelProfile.InstagramConfig.getDefaultInstance() + : instagramConfig_; } else { - return (com.google.protobuf.ByteString) ref; + return instagramConfigBuilder_.getMessage(); } } @@ -5743,21 +9273,24 @@ public com.google.protobuf.ByteString getNoiseSuppressionLevelBytes() { * * *
                -     * Optional. The noise suppression level of the channel profile.
                -     * Available values are "low", "moderate", "high", "very_high".
                +     * Optional. Configuration specific to Instagram deployments.
                      * 
                * - * string noise_suppression_level = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The noiseSuppressionLevel to set. - * @return This builder for chaining. + * + * .google.cloud.ces.v1beta.ChannelProfile.InstagramConfig instagram_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setNoiseSuppressionLevel(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder setInstagramConfig( + com.google.cloud.ces.v1beta.ChannelProfile.InstagramConfig value) { + if (instagramConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + instagramConfig_ = value; + } else { + instagramConfigBuilder_.setMessage(value); } - noiseSuppressionLevel_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -5766,17 +9299,21 @@ public Builder setNoiseSuppressionLevel(java.lang.String value) { * * *
                -     * Optional. The noise suppression level of the channel profile.
                -     * Available values are "low", "moderate", "high", "very_high".
                +     * Optional. Configuration specific to Instagram deployments.
                      * 
                * - * string noise_suppression_level = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. + * + * .google.cloud.ces.v1beta.ChannelProfile.InstagramConfig instagram_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder clearNoiseSuppressionLevel() { - noiseSuppressionLevel_ = getDefaultInstance().getNoiseSuppressionLevel(); - bitField0_ = (bitField0_ & ~0x00000040); + public Builder setInstagramConfig( + com.google.cloud.ces.v1beta.ChannelProfile.InstagramConfig.Builder builderForValue) { + if (instagramConfigBuilder_ == null) { + instagramConfig_ = builderForValue.build(); + } else { + instagramConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -5785,26 +9322,125 @@ public Builder clearNoiseSuppressionLevel() { * * *
                -     * Optional. The noise suppression level of the channel profile.
                -     * Available values are "low", "moderate", "high", "very_high".
                +     * Optional. Configuration specific to Instagram deployments.
                      * 
                * - * string noise_suppression_level = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.ces.v1beta.ChannelProfile.InstagramConfig instagram_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeInstagramConfig( + com.google.cloud.ces.v1beta.ChannelProfile.InstagramConfig value) { + if (instagramConfigBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && instagramConfig_ != null + && instagramConfig_ + != com.google.cloud.ces.v1beta.ChannelProfile.InstagramConfig + .getDefaultInstance()) { + getInstagramConfigBuilder().mergeFrom(value); + } else { + instagramConfig_ = value; + } + } else { + instagramConfigBuilder_.mergeFrom(value); + } + if (instagramConfig_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } + return this; + } + + /** * - * @param value The bytes for noiseSuppressionLevel to set. - * @return This builder for chaining. + * + *
                +     * Optional. Configuration specific to Instagram deployments.
                +     * 
                + * + * + * .google.cloud.ces.v1beta.ChannelProfile.InstagramConfig instagram_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setNoiseSuppressionLevelBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public Builder clearInstagramConfig() { + bitField0_ = (bitField0_ & ~0x00000100); + instagramConfig_ = null; + if (instagramConfigBuilder_ != null) { + instagramConfigBuilder_.dispose(); + instagramConfigBuilder_ = null; } - checkByteStringIsUtf8(value); - noiseSuppressionLevel_ = value; - bitField0_ |= 0x00000040; onChanged(); return this; } + /** + * + * + *
                +     * Optional. Configuration specific to Instagram deployments.
                +     * 
                + * + * + * .google.cloud.ces.v1beta.ChannelProfile.InstagramConfig instagram_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.ChannelProfile.InstagramConfig.Builder + getInstagramConfigBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return internalGetInstagramConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
                +     * Optional. Configuration specific to Instagram deployments.
                +     * 
                + * + * + * .google.cloud.ces.v1beta.ChannelProfile.InstagramConfig instagram_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.ChannelProfile.InstagramConfigOrBuilder + getInstagramConfigOrBuilder() { + if (instagramConfigBuilder_ != null) { + return instagramConfigBuilder_.getMessageOrBuilder(); + } else { + return instagramConfig_ == null + ? com.google.cloud.ces.v1beta.ChannelProfile.InstagramConfig.getDefaultInstance() + : instagramConfig_; + } + } + + /** + * + * + *
                +     * Optional. Configuration specific to Instagram deployments.
                +     * 
                + * + * + * .google.cloud.ces.v1beta.ChannelProfile.InstagramConfig instagram_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.ChannelProfile.InstagramConfig, + com.google.cloud.ces.v1beta.ChannelProfile.InstagramConfig.Builder, + com.google.cloud.ces.v1beta.ChannelProfile.InstagramConfigOrBuilder> + internalGetInstagramConfigFieldBuilder() { + if (instagramConfigBuilder_ == null) { + instagramConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.ChannelProfile.InstagramConfig, + com.google.cloud.ces.v1beta.ChannelProfile.InstagramConfig.Builder, + com.google.cloud.ces.v1beta.ChannelProfile.InstagramConfigOrBuilder>( + getInstagramConfig(), getParentForChildren(), isClean()); + instagramConfig_ = null; + } + return instagramConfigBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.ChannelProfile) } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ChannelProfileOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ChannelProfileOrBuilder.java index 65d3c38b2c02..0a1d3477fc28 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ChannelProfileOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ChannelProfileOrBuilder.java @@ -224,4 +224,90 @@ public interface ChannelProfileOrBuilder * @return The bytes for noiseSuppressionLevel. */ com.google.protobuf.ByteString getNoiseSuppressionLevelBytes(); + + /** + * + * + *
                +   * Optional. Configuration specific to WhatsApp deployments.
                +   * 
                + * + * + * .google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig whatsapp_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the whatsappConfig field is set. + */ + boolean hasWhatsappConfig(); + + /** + * + * + *
                +   * Optional. Configuration specific to WhatsApp deployments.
                +   * 
                + * + * + * .google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig whatsapp_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The whatsappConfig. + */ + com.google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig getWhatsappConfig(); + + /** + * + * + *
                +   * Optional. Configuration specific to WhatsApp deployments.
                +   * 
                + * + * + * .google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfig whatsapp_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfigOrBuilder getWhatsappConfigOrBuilder(); + + /** + * + * + *
                +   * Optional. Configuration specific to Instagram deployments.
                +   * 
                + * + * + * .google.cloud.ces.v1beta.ChannelProfile.InstagramConfig instagram_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the instagramConfig field is set. + */ + boolean hasInstagramConfig(); + + /** + * + * + *
                +   * Optional. Configuration specific to Instagram deployments.
                +   * 
                + * + * + * .google.cloud.ces.v1beta.ChannelProfile.InstagramConfig instagram_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The instagramConfig. + */ + com.google.cloud.ces.v1beta.ChannelProfile.InstagramConfig getInstagramConfig(); + + /** + * + * + *
                +   * Optional. Configuration specific to Instagram deployments.
                +   * 
                + * + * + * .google.cloud.ces.v1beta.ChannelProfile.InstagramConfig instagram_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1beta.ChannelProfile.InstagramConfigOrBuilder getInstagramConfigOrBuilder(); } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ChannelProfileProto.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ChannelProfileProto.java index 66c88d9f0fea..009b4c121628 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ChannelProfileProto.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ChannelProfileProto.java @@ -56,6 +56,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_ces_v1beta_Deployment_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_ces_v1beta_Deployment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_WhatsAppCredentials_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_WhatsAppCredentials_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_InstagramCredentials_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_InstagramCredentials_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -89,7 +97,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007PENDING\020\001\022\013\n" + "\007RUNNING\020\002\022\010\n" + "\004DONE\020\003\022\013\n" - + "\007EXPIRED\020\004\"\223\004\n\n" + + "\007EXPIRED\020\004\"\275\005\n\n" + "Deployment\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\031\n" + "\014display_name\030\010 \001(\tB\003\340A\002\022:\n" @@ -102,12 +110,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\021\n" + "\004etag\030\007 \001(\tB\003\340A\003\022I\n" + "\021experiment_config\030\t" - + " \001(\0132).google.cloud.ces.v1beta.ExperimentConfigB\003\340A\001:\211\001\352A\205\001\n" - + "\035ces.googleapis.com/Deployment\022Kprojects/{project}/locations/{location}/apps/{ap" - + "p}/deployments/{deployment}*\013deployments2\n" - + "deploymentBc\n" - + "\033com.google.cloud.ces.v1betaB\023ChannelProfileProtoP\001Z-cloud.google" - + ".com/go/ces/apiv1beta/cespb;cespbb\006proto3" + + " \001(\0132).google.cloud.ces.v1beta.ExperimentConfigB\003\340A\001\022R\n" + + "\024whatsapp_credentials\030\n" + + " \001(\0132,.google.cloud.ces.v1beta.WhatsAppCredentialsB\006\340A\001\340A\004\022T\n" + + "\025instagram_credentials\030\013 \001(\0132-.google.clo" + + "ud.ces.v1beta.InstagramCredentialsB\006\340A\001\340A\004:\211\001\352A\205\001\n" + + "\035ces.googleapis.com/Deployment\022Kprojects/{project}/locations/{location" + + "}/apps/{app}/deployments/{deployment}*\013deployments2\n" + + "deployment\"\270\001\n" + + "\023WhatsAppCredentials\022\026\n" + + "\tauth_code\030\001 \001(\tB\003\340A\002\022\020\n" + + "\003pin\030\002 \001(\tB\003\340A\002\022\031\n" + + "\014phone_number\030\003 \001(\tB\003\340A\002\022 \n" + + "\023business_account_id\030\004 \001(\tB\003\340A\002\022\024\n" + + "\007waba_id\030\005 \001(\tB\003\340A\002\022$\n" + + "\027conversation_profile_id\030\006 \001(\tB\003\340A\002\"T\n" + + "\024InstagramCredentials\022\026\n" + + "\tauth_code\030\001 \001(\tB\003\340A\002\022$\n" + + "\027conversation_profile_id\030\002 \001(\tB\003\340A\002Bc\n" + + "\033com.google.cloud.ces.v1betaB\023ChannelProfileProtoP\001Z-cloud.goo" + + "gle.com/go/ces/apiv1beta/cespb;cespbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -157,6 +179,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateTime", "Etag", "ExperimentConfig", + "WhatsappCredentials", + "InstagramCredentials", + }); + internal_static_google_cloud_ces_v1beta_WhatsAppCredentials_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_ces_v1beta_WhatsAppCredentials_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_WhatsAppCredentials_descriptor, + new java.lang.String[] { + "AuthCode", + "Pin", + "PhoneNumber", + "BusinessAccountId", + "WabaId", + "ConversationProfileId", + }); + internal_static_google_cloud_ces_v1beta_InstagramCredentials_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_ces_v1beta_InstagramCredentials_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_InstagramCredentials_descriptor, + new java.lang.String[] { + "AuthCode", "ConversationProfileId", }); descriptor.resolveAllFeaturesImmutable(); com.google.api.FieldBehaviorProto.getDescriptor(); diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CommonProto.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CommonProto.java index a718019c08d3..aacd9b06ed57 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CommonProto.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CommonProto.java @@ -96,10 +96,22 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_ces_v1beta_ChannelProfile_WebWidgetConfig_SecuritySettings_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_ces_v1beta_ChannelProfile_WebWidgetConfig_SecuritySettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_ChannelProfile_WhatsAppConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_ChannelProfile_WhatsAppConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_ChannelProfile_InstagramConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_ChannelProfile_InstagramConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_ces_v1beta_Span_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_ces_v1beta_Span_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_EvaluationRunCachingSettings_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_EvaluationRunCachingSettings_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -152,7 +164,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004cert\030\002 \001(\014B\003\340A\002\"Z\n" + "\026ServiceDirectoryConfig\022@\n" + "\007service\030\001 \001(\tB/\340A\002\372A)\n" - + "\'servicedirectory.googleapis.com/Service\"\337\n\n" + + "\'servicedirectory.googleapis.com/Service\"\213\017\n" + "\016ChannelProfile\022\027\n\n" + "profile_id\030\001 \001(\tB\003\340A\001\022N\n" + "\014channel_type\030\003" @@ -163,22 +175,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030disable_barge_in_control\030\005 \001(\010B\003\340A\001\022W\n" + "\021web_widget_config\030\007" + " \001(\01327.google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfigB\003\340A\001\022$\n" - + "\027noise_suppression_level\030\010 \001(\tB\003\340A\001\032\231\001\n" + + "\027noise_suppression_level\030\010 \001(\tB\003\340A\001\022T\n" + + "\017whatsapp_config\030\t \001(\01326.google.cloud.ces.v" + + "1beta.ChannelProfile.WhatsAppConfigB\003\340A\001\022V\n" + + "\020instagram_config\030\n" + + " \001(\01327.google.clou" + + "d.ces.v1beta.ChannelProfile.InstagramConfigB\003\340A\001\032\231\001\n" + "\017PersonaProperty\022U\n" - + "\007persona\030\001 \001(\0162?.google" - + ".cloud.ces.v1beta.ChannelProfile.PersonaProperty.PersonaB\003\340A\001\"/\n" + + "\007persona\030\001" + + " \001(\0162?.google.cloud.ces.v1beta.ChannelProfile.PersonaProperty.PersonaB\003\340A\001\"/\n" + "\007Persona\022\013\n" + "\007UNKNOWN\020\000\022\013\n" + "\007CONCISE\020\001\022\n\n" + "\006CHATTY\020\002\032\205\005\n" + "\017WebWidgetConfig\022W\n" - + "\010modality\030\001 \001(\0162@.google.cl" - + "oud.ces.v1beta.ChannelProfile.WebWidgetConfig.ModalityB\003\340A\001\022Q\n" - + "\005theme\030\002 \001(\0162=.goo" - + "gle.cloud.ces.v1beta.ChannelProfile.WebWidgetConfig.ThemeB\003\340A\001\022\035\n" + + "\010modality\030\001 \001" + + "(\0162@.google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfig.ModalityB\003\340A\001\022Q\n" + + "\005theme\030\002" + + " \001(\0162=.google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfig.ThemeB\003\340A\001\022\035\n" + "\020web_widget_title\030\003 \001(\tB\003\340A\001\022h\n" - + "\021security_settings\030\004 \001(\0132H.google.cloud.ces.v1beta.ChannelProfil" - + "e.WebWidgetConfig.SecuritySettingsB\003\340A\001\032\224\001\n" + + "\021security_settings\030\004 \001(\0132H.google.cloud.ces.v1beta" + + ".ChannelProfile.WebWidgetConfig.SecuritySettingsB\003\340A\001\032\224\001\n" + "\020SecuritySettings\022!\n" + "\024enable_public_access\030\001 \001(\010B\003\340A\001\022 \n" + "\023enable_origin_check\030\004 \001(\010B\003\340A\001\022\034\n" @@ -187,22 +204,39 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010Modality\022\030\n" + "\024MODALITY_UNSPECIFIED\020\000\022\022\n" + "\016CHAT_AND_VOICE\020\001\022\016\n\n" - + "VOICE_ONLY\020\002\022\r\n" + + "VOICE_ONLY\020\002\022\r" + + "\n" + "\tCHAT_ONLY\020\003\022\030\n" + "\024CHAT_VOICE_AND_VIDEO\020\004\"3\n" + "\005Theme\022\025\n" + "\021THEME_UNSPECIFIED\020\000\022\t\n" + "\005LIGHT\020\001\022\010\n" - + "\004DARK\020\002\"\246\001\n" + + "\004DARK\020\002\032\260\001\n" + + "\016WhatsAppConfig\022\024\n" + + "\007waba_id\030\001 \001(\tB\003\340A\002\022\034\n" + + "\017phone_number_id\030\002 \001(\tB\003\340A\002\022\031\n" + + "\014phone_number\030\003 \001(\tB\003\340A\001\022\031\n" + + "\014display_name\030\004 \001(\tB\003\340A\003\022\032\n\r" + + "thumbnail_url\030\005 \001(\tB\003\340A\003\022\030\n" + + "\013description\030\006 \001(\tB\003\340A\003\032\205\001\n" + + "\017InstagramConfig\022!\n" + + "\024instagram_account_id\030\001 \001(\tB\003\340A\002\022\031\n" + + "\014display_name\030\002 \001(\tB\003\340A\003\022\032\n\r" + + "thumbnail_url\030\003 \001(\tB\003\340A\003\022\030\n" + + "\013description\030\004 \001(\tB\003\340A\003\"\351\001\n" + "\013ChannelType\022\013\n" + "\007UNKNOWN\020\000\022\n\n" + "\006WEB_UI\020\002\022\007\n" + "\003API\020\003\022\n\n" + "\006TWILIO\020\004\022\035\n" + "\031GOOGLE_TELEPHONY_PLATFORM\020\005\022\037\n" - + "\033CONTACT_CENTER_AS_A_SERVICE\020\006\022\t\n" + + "\033CONTACT_CENTER_AS_A_SERVICE\020\006\022$\n" + + " CONTACT_CENTER_AS_A_SERVICE_CHAT\020\013\022\t\n" + "\005FIVE9\020\007\022\036\n" - + "\032CONTACT_CENTER_INTEGRATION\020\010\"\236\002\n" + + "\032CONTACT_CENTER_INTEGRATION\020\010\022\014\n" + + "\010WHATSAPP\020\t\022\r\n" + + "\tINSTAGRAM\020\n" + + "\"\236\002\n" + "\004Span\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\0223\n\n" + "start_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0221\n" @@ -210,15 +244,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010duration\030\006 \001(\0132\031.google.protobuf.DurationB\003\340A\003\0220\n\n" + "attributes\030\004 \001(\0132\027.google.protobuf.StructB\003\340A\003\0227\n" + "\013child_spans\030\005" - + " \003(\0132\035.google.cloud.ces.v1beta.SpanB\003\340A\003*R\n\r" + + " \003(\0132\035.google.cloud.ces.v1beta.SpanB\003\340A\003\"\374\001\n" + + "\034EvaluationRunCachingSettings\022m\n" + + "\020run_caching_mode\030\001 \001(\0162N.google" + + ".cloud.ces.v1beta.EvaluationRunCachingSettings.EvaluationRunCachingModeB\003\340A\001\"m\n" + + "\030EvaluationRunCachingMode\022+\n" + + "\'EVALUATION_RUN_CACHING_MODE_UNSPECIFIED\020\000\022\r\n" + + "\tFORCE_RUN\020\001\022\025\n" + + "\021SKIP_IF_UNCHANGED\020\002*R\n\r" + "ExecutionType\022\036\n" + "\032EXECUTION_TYPE_UNSPECIFIED\020\000\022\017\n" + "\013SYNCHRONOUS\020\001\022\020\n" + "\014ASYNCHRONOUS\020\002B\332\001\n" - + "\033com.google.clou" - + "d.ces.v1betaB\013CommonProtoP\001Z-cloud.google.com/go/ces/apiv1beta/cespb;cespb\352A|\n" - + "\'servicedirectory.googleapis.com/Service\022Qprojects/{project}/locations/{location}/" - + "namespaces/{namespace}/services/{service}b\006proto3" + + "\033com.google.cloud.ces.v1betaB\013CommonProtoP\001Z-" + + "cloud.google.com/go/ces/apiv1beta/cespb;cespb\352A|\n" + + "\'servicedirectory.googleapis.com/Service\022Qprojects/{project}/locations/" + + "{location}/namespaces/{namespace}/services/{service}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -322,6 +363,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DisableBargeInControl", "WebWidgetConfig", "NoiseSuppressionLevel", + "WhatsappConfig", + "InstagramConfig", }); internal_static_google_cloud_ces_v1beta_ChannelProfile_PersonaProperty_descriptor = internal_static_google_cloud_ces_v1beta_ChannelProfile_descriptor.getNestedType(0); @@ -348,6 +391,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "EnablePublicAccess", "EnableOriginCheck", "AllowedOrigins", "EnableRecaptcha", }); + internal_static_google_cloud_ces_v1beta_ChannelProfile_WhatsAppConfig_descriptor = + internal_static_google_cloud_ces_v1beta_ChannelProfile_descriptor.getNestedType(2); + internal_static_google_cloud_ces_v1beta_ChannelProfile_WhatsAppConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_ChannelProfile_WhatsAppConfig_descriptor, + new java.lang.String[] { + "WabaId", + "PhoneNumberId", + "PhoneNumber", + "DisplayName", + "ThumbnailUrl", + "Description", + }); + internal_static_google_cloud_ces_v1beta_ChannelProfile_InstagramConfig_descriptor = + internal_static_google_cloud_ces_v1beta_ChannelProfile_descriptor.getNestedType(3); + internal_static_google_cloud_ces_v1beta_ChannelProfile_InstagramConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_ChannelProfile_InstagramConfig_descriptor, + new java.lang.String[] { + "InstagramAccountId", "DisplayName", "ThumbnailUrl", "Description", + }); internal_static_google_cloud_ces_v1beta_Span_descriptor = getDescriptor().getMessageType(6); internal_static_google_cloud_ces_v1beta_Span_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( @@ -355,6 +419,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", "StartTime", "EndTime", "Duration", "Attributes", "ChildSpans", }); + internal_static_google_cloud_ces_v1beta_EvaluationRunCachingSettings_descriptor = + getDescriptor().getMessageType(7); + internal_static_google_cloud_ces_v1beta_EvaluationRunCachingSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_EvaluationRunCachingSettings_descriptor, + new java.lang.String[] { + "RunCachingMode", + }); descriptor.resolveAllFeaturesImmutable(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/Deployment.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/Deployment.java index 245ddaef6186..dfbd1cbcee27 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/Deployment.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/Deployment.java @@ -529,6 +529,132 @@ public com.google.cloud.ces.v1beta.ExperimentConfigOrBuilder getExperimentConfig : experimentConfig_; } + public static final int WHATSAPP_CREDENTIALS_FIELD_NUMBER = 10; + private com.google.cloud.ces.v1beta.WhatsAppCredentials whatsappCredentials_; + + /** + * + * + *
                +   * Optional. Input only. Ephemeral WhatsApp credentials required when
                +   * configuring a WhatsApp channel profile.
                +   * 
                + * + * + * .google.cloud.ces.v1beta.WhatsAppCredentials whatsapp_credentials = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return Whether the whatsappCredentials field is set. + */ + @java.lang.Override + public boolean hasWhatsappCredentials() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
                +   * Optional. Input only. Ephemeral WhatsApp credentials required when
                +   * configuring a WhatsApp channel profile.
                +   * 
                + * + * + * .google.cloud.ces.v1beta.WhatsAppCredentials whatsapp_credentials = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The whatsappCredentials. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.WhatsAppCredentials getWhatsappCredentials() { + return whatsappCredentials_ == null + ? com.google.cloud.ces.v1beta.WhatsAppCredentials.getDefaultInstance() + : whatsappCredentials_; + } + + /** + * + * + *
                +   * Optional. Input only. Ephemeral WhatsApp credentials required when
                +   * configuring a WhatsApp channel profile.
                +   * 
                + * + * + * .google.cloud.ces.v1beta.WhatsAppCredentials whatsapp_credentials = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.WhatsAppCredentialsOrBuilder + getWhatsappCredentialsOrBuilder() { + return whatsappCredentials_ == null + ? com.google.cloud.ces.v1beta.WhatsAppCredentials.getDefaultInstance() + : whatsappCredentials_; + } + + public static final int INSTAGRAM_CREDENTIALS_FIELD_NUMBER = 11; + private com.google.cloud.ces.v1beta.InstagramCredentials instagramCredentials_; + + /** + * + * + *
                +   * Optional. Input only. Ephemeral Instagram credentials required when
                +   * configuring a Instagram channel profile.
                +   * 
                + * + * + * .google.cloud.ces.v1beta.InstagramCredentials instagram_credentials = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return Whether the instagramCredentials field is set. + */ + @java.lang.Override + public boolean hasInstagramCredentials() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
                +   * Optional. Input only. Ephemeral Instagram credentials required when
                +   * configuring a Instagram channel profile.
                +   * 
                + * + * + * .google.cloud.ces.v1beta.InstagramCredentials instagram_credentials = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The instagramCredentials. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.InstagramCredentials getInstagramCredentials() { + return instagramCredentials_ == null + ? com.google.cloud.ces.v1beta.InstagramCredentials.getDefaultInstance() + : instagramCredentials_; + } + + /** + * + * + *
                +   * Optional. Input only. Ephemeral Instagram credentials required when
                +   * configuring a Instagram channel profile.
                +   * 
                + * + * + * .google.cloud.ces.v1beta.InstagramCredentials instagram_credentials = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.InstagramCredentialsOrBuilder + getInstagramCredentialsOrBuilder() { + return instagramCredentials_ == null + ? com.google.cloud.ces.v1beta.InstagramCredentials.getDefaultInstance() + : instagramCredentials_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -567,6 +693,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(9, getExperimentConfig()); } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(10, getWhatsappCredentials()); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(11, getInstagramCredentials()); + } getUnknownFields().writeTo(output); } @@ -600,6 +732,14 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getExperimentConfig()); } + if (((bitField0_ & 0x00000010) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(10, getWhatsappCredentials()); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(11, getInstagramCredentials()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -635,6 +775,14 @@ public boolean equals(final java.lang.Object obj) { if (hasExperimentConfig()) { if (!getExperimentConfig().equals(other.getExperimentConfig())) return false; } + if (hasWhatsappCredentials() != other.hasWhatsappCredentials()) return false; + if (hasWhatsappCredentials()) { + if (!getWhatsappCredentials().equals(other.getWhatsappCredentials())) return false; + } + if (hasInstagramCredentials() != other.hasInstagramCredentials()) return false; + if (hasInstagramCredentials()) { + if (!getInstagramCredentials().equals(other.getInstagramCredentials())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -670,6 +818,14 @@ public int hashCode() { hash = (37 * hash) + EXPERIMENT_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getExperimentConfig().hashCode(); } + if (hasWhatsappCredentials()) { + hash = (37 * hash) + WHATSAPP_CREDENTIALS_FIELD_NUMBER; + hash = (53 * hash) + getWhatsappCredentials().hashCode(); + } + if (hasInstagramCredentials()) { + hash = (37 * hash) + INSTAGRAM_CREDENTIALS_FIELD_NUMBER; + hash = (53 * hash) + getInstagramCredentials().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -816,6 +972,8 @@ private void maybeForceBuilderInitialization() { internalGetCreateTimeFieldBuilder(); internalGetUpdateTimeFieldBuilder(); internalGetExperimentConfigFieldBuilder(); + internalGetWhatsappCredentialsFieldBuilder(); + internalGetInstagramCredentialsFieldBuilder(); } } @@ -847,6 +1005,16 @@ public Builder clear() { experimentConfigBuilder_.dispose(); experimentConfigBuilder_ = null; } + whatsappCredentials_ = null; + if (whatsappCredentialsBuilder_ != null) { + whatsappCredentialsBuilder_.dispose(); + whatsappCredentialsBuilder_ = null; + } + instagramCredentials_ = null; + if (instagramCredentialsBuilder_ != null) { + instagramCredentialsBuilder_.dispose(); + instagramCredentialsBuilder_ = null; + } return this; } @@ -914,6 +1082,20 @@ private void buildPartial0(com.google.cloud.ces.v1beta.Deployment result) { experimentConfigBuilder_ == null ? experimentConfig_ : experimentConfigBuilder_.build(); to_bitField0_ |= 0x00000008; } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.whatsappCredentials_ = + whatsappCredentialsBuilder_ == null + ? whatsappCredentials_ + : whatsappCredentialsBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.instagramCredentials_ = + instagramCredentialsBuilder_ == null + ? instagramCredentials_ + : instagramCredentialsBuilder_.build(); + to_bitField0_ |= 0x00000020; + } result.bitField0_ |= to_bitField0_; } @@ -961,6 +1143,12 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.Deployment other) { if (other.hasExperimentConfig()) { mergeExperimentConfig(other.getExperimentConfig()); } + if (other.hasWhatsappCredentials()) { + mergeWhatsappCredentials(other.getWhatsappCredentials()); + } + if (other.hasInstagramCredentials()) { + mergeInstagramCredentials(other.getInstagramCredentials()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1039,6 +1227,20 @@ public Builder mergeFrom( bitField0_ |= 0x00000080; break; } // case 74 + case 82: + { + input.readMessage( + internalGetWhatsappCredentialsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 82 + case 90: + { + input.readMessage( + internalGetInstagramCredentialsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 90 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2403,6 +2605,456 @@ public com.google.cloud.ces.v1beta.ExperimentConfigOrBuilder getExperimentConfig return experimentConfigBuilder_; } + private com.google.cloud.ces.v1beta.WhatsAppCredentials whatsappCredentials_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.WhatsAppCredentials, + com.google.cloud.ces.v1beta.WhatsAppCredentials.Builder, + com.google.cloud.ces.v1beta.WhatsAppCredentialsOrBuilder> + whatsappCredentialsBuilder_; + + /** + * + * + *
                +     * Optional. Input only. Ephemeral WhatsApp credentials required when
                +     * configuring a WhatsApp channel profile.
                +     * 
                + * + * + * .google.cloud.ces.v1beta.WhatsAppCredentials whatsapp_credentials = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return Whether the whatsappCredentials field is set. + */ + public boolean hasWhatsappCredentials() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
                +     * Optional. Input only. Ephemeral WhatsApp credentials required when
                +     * configuring a WhatsApp channel profile.
                +     * 
                + * + * + * .google.cloud.ces.v1beta.WhatsAppCredentials whatsapp_credentials = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The whatsappCredentials. + */ + public com.google.cloud.ces.v1beta.WhatsAppCredentials getWhatsappCredentials() { + if (whatsappCredentialsBuilder_ == null) { + return whatsappCredentials_ == null + ? com.google.cloud.ces.v1beta.WhatsAppCredentials.getDefaultInstance() + : whatsappCredentials_; + } else { + return whatsappCredentialsBuilder_.getMessage(); + } + } + + /** + * + * + *
                +     * Optional. Input only. Ephemeral WhatsApp credentials required when
                +     * configuring a WhatsApp channel profile.
                +     * 
                + * + * + * .google.cloud.ces.v1beta.WhatsAppCredentials whatsapp_credentials = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public Builder setWhatsappCredentials(com.google.cloud.ces.v1beta.WhatsAppCredentials value) { + if (whatsappCredentialsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + whatsappCredentials_ = value; + } else { + whatsappCredentialsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. Input only. Ephemeral WhatsApp credentials required when
                +     * configuring a WhatsApp channel profile.
                +     * 
                + * + * + * .google.cloud.ces.v1beta.WhatsAppCredentials whatsapp_credentials = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public Builder setWhatsappCredentials( + com.google.cloud.ces.v1beta.WhatsAppCredentials.Builder builderForValue) { + if (whatsappCredentialsBuilder_ == null) { + whatsappCredentials_ = builderForValue.build(); + } else { + whatsappCredentialsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. Input only. Ephemeral WhatsApp credentials required when
                +     * configuring a WhatsApp channel profile.
                +     * 
                + * + * + * .google.cloud.ces.v1beta.WhatsAppCredentials whatsapp_credentials = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public Builder mergeWhatsappCredentials(com.google.cloud.ces.v1beta.WhatsAppCredentials value) { + if (whatsappCredentialsBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && whatsappCredentials_ != null + && whatsappCredentials_ + != com.google.cloud.ces.v1beta.WhatsAppCredentials.getDefaultInstance()) { + getWhatsappCredentialsBuilder().mergeFrom(value); + } else { + whatsappCredentials_ = value; + } + } else { + whatsappCredentialsBuilder_.mergeFrom(value); + } + if (whatsappCredentials_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } + return this; + } + + /** + * + * + *
                +     * Optional. Input only. Ephemeral WhatsApp credentials required when
                +     * configuring a WhatsApp channel profile.
                +     * 
                + * + * + * .google.cloud.ces.v1beta.WhatsAppCredentials whatsapp_credentials = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public Builder clearWhatsappCredentials() { + bitField0_ = (bitField0_ & ~0x00000100); + whatsappCredentials_ = null; + if (whatsappCredentialsBuilder_ != null) { + whatsappCredentialsBuilder_.dispose(); + whatsappCredentialsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. Input only. Ephemeral WhatsApp credentials required when
                +     * configuring a WhatsApp channel profile.
                +     * 
                + * + * + * .google.cloud.ces.v1beta.WhatsAppCredentials whatsapp_credentials = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1beta.WhatsAppCredentials.Builder getWhatsappCredentialsBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return internalGetWhatsappCredentialsFieldBuilder().getBuilder(); + } + + /** + * + * + *
                +     * Optional. Input only. Ephemeral WhatsApp credentials required when
                +     * configuring a WhatsApp channel profile.
                +     * 
                + * + * + * .google.cloud.ces.v1beta.WhatsAppCredentials whatsapp_credentials = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1beta.WhatsAppCredentialsOrBuilder + getWhatsappCredentialsOrBuilder() { + if (whatsappCredentialsBuilder_ != null) { + return whatsappCredentialsBuilder_.getMessageOrBuilder(); + } else { + return whatsappCredentials_ == null + ? com.google.cloud.ces.v1beta.WhatsAppCredentials.getDefaultInstance() + : whatsappCredentials_; + } + } + + /** + * + * + *
                +     * Optional. Input only. Ephemeral WhatsApp credentials required when
                +     * configuring a WhatsApp channel profile.
                +     * 
                + * + * + * .google.cloud.ces.v1beta.WhatsAppCredentials whatsapp_credentials = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.WhatsAppCredentials, + com.google.cloud.ces.v1beta.WhatsAppCredentials.Builder, + com.google.cloud.ces.v1beta.WhatsAppCredentialsOrBuilder> + internalGetWhatsappCredentialsFieldBuilder() { + if (whatsappCredentialsBuilder_ == null) { + whatsappCredentialsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.WhatsAppCredentials, + com.google.cloud.ces.v1beta.WhatsAppCredentials.Builder, + com.google.cloud.ces.v1beta.WhatsAppCredentialsOrBuilder>( + getWhatsappCredentials(), getParentForChildren(), isClean()); + whatsappCredentials_ = null; + } + return whatsappCredentialsBuilder_; + } + + private com.google.cloud.ces.v1beta.InstagramCredentials instagramCredentials_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.InstagramCredentials, + com.google.cloud.ces.v1beta.InstagramCredentials.Builder, + com.google.cloud.ces.v1beta.InstagramCredentialsOrBuilder> + instagramCredentialsBuilder_; + + /** + * + * + *
                +     * Optional. Input only. Ephemeral Instagram credentials required when
                +     * configuring a Instagram channel profile.
                +     * 
                + * + * + * .google.cloud.ces.v1beta.InstagramCredentials instagram_credentials = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return Whether the instagramCredentials field is set. + */ + public boolean hasInstagramCredentials() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
                +     * Optional. Input only. Ephemeral Instagram credentials required when
                +     * configuring a Instagram channel profile.
                +     * 
                + * + * + * .google.cloud.ces.v1beta.InstagramCredentials instagram_credentials = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The instagramCredentials. + */ + public com.google.cloud.ces.v1beta.InstagramCredentials getInstagramCredentials() { + if (instagramCredentialsBuilder_ == null) { + return instagramCredentials_ == null + ? com.google.cloud.ces.v1beta.InstagramCredentials.getDefaultInstance() + : instagramCredentials_; + } else { + return instagramCredentialsBuilder_.getMessage(); + } + } + + /** + * + * + *
                +     * Optional. Input only. Ephemeral Instagram credentials required when
                +     * configuring a Instagram channel profile.
                +     * 
                + * + * + * .google.cloud.ces.v1beta.InstagramCredentials instagram_credentials = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public Builder setInstagramCredentials(com.google.cloud.ces.v1beta.InstagramCredentials value) { + if (instagramCredentialsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + instagramCredentials_ = value; + } else { + instagramCredentialsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. Input only. Ephemeral Instagram credentials required when
                +     * configuring a Instagram channel profile.
                +     * 
                + * + * + * .google.cloud.ces.v1beta.InstagramCredentials instagram_credentials = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public Builder setInstagramCredentials( + com.google.cloud.ces.v1beta.InstagramCredentials.Builder builderForValue) { + if (instagramCredentialsBuilder_ == null) { + instagramCredentials_ = builderForValue.build(); + } else { + instagramCredentialsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. Input only. Ephemeral Instagram credentials required when
                +     * configuring a Instagram channel profile.
                +     * 
                + * + * + * .google.cloud.ces.v1beta.InstagramCredentials instagram_credentials = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public Builder mergeInstagramCredentials( + com.google.cloud.ces.v1beta.InstagramCredentials value) { + if (instagramCredentialsBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && instagramCredentials_ != null + && instagramCredentials_ + != com.google.cloud.ces.v1beta.InstagramCredentials.getDefaultInstance()) { + getInstagramCredentialsBuilder().mergeFrom(value); + } else { + instagramCredentials_ = value; + } + } else { + instagramCredentialsBuilder_.mergeFrom(value); + } + if (instagramCredentials_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + + /** + * + * + *
                +     * Optional. Input only. Ephemeral Instagram credentials required when
                +     * configuring a Instagram channel profile.
                +     * 
                + * + * + * .google.cloud.ces.v1beta.InstagramCredentials instagram_credentials = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public Builder clearInstagramCredentials() { + bitField0_ = (bitField0_ & ~0x00000200); + instagramCredentials_ = null; + if (instagramCredentialsBuilder_ != null) { + instagramCredentialsBuilder_.dispose(); + instagramCredentialsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. Input only. Ephemeral Instagram credentials required when
                +     * configuring a Instagram channel profile.
                +     * 
                + * + * + * .google.cloud.ces.v1beta.InstagramCredentials instagram_credentials = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1beta.InstagramCredentials.Builder + getInstagramCredentialsBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return internalGetInstagramCredentialsFieldBuilder().getBuilder(); + } + + /** + * + * + *
                +     * Optional. Input only. Ephemeral Instagram credentials required when
                +     * configuring a Instagram channel profile.
                +     * 
                + * + * + * .google.cloud.ces.v1beta.InstagramCredentials instagram_credentials = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1beta.InstagramCredentialsOrBuilder + getInstagramCredentialsOrBuilder() { + if (instagramCredentialsBuilder_ != null) { + return instagramCredentialsBuilder_.getMessageOrBuilder(); + } else { + return instagramCredentials_ == null + ? com.google.cloud.ces.v1beta.InstagramCredentials.getDefaultInstance() + : instagramCredentials_; + } + } + + /** + * + * + *
                +     * Optional. Input only. Ephemeral Instagram credentials required when
                +     * configuring a Instagram channel profile.
                +     * 
                + * + * + * .google.cloud.ces.v1beta.InstagramCredentials instagram_credentials = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.InstagramCredentials, + com.google.cloud.ces.v1beta.InstagramCredentials.Builder, + com.google.cloud.ces.v1beta.InstagramCredentialsOrBuilder> + internalGetInstagramCredentialsFieldBuilder() { + if (instagramCredentialsBuilder_ == null) { + instagramCredentialsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.InstagramCredentials, + com.google.cloud.ces.v1beta.InstagramCredentials.Builder, + com.google.cloud.ces.v1beta.InstagramCredentialsOrBuilder>( + getInstagramCredentials(), getParentForChildren(), isClean()); + instagramCredentials_ = null; + } + return instagramCredentialsBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.Deployment) } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DeploymentOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DeploymentOrBuilder.java index 6999db8701d1..efd5820dcd2b 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DeploymentOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DeploymentOrBuilder.java @@ -315,4 +315,96 @@ public interface DeploymentOrBuilder *
                */ com.google.cloud.ces.v1beta.ExperimentConfigOrBuilder getExperimentConfigOrBuilder(); + + /** + * + * + *
                +   * Optional. Input only. Ephemeral WhatsApp credentials required when
                +   * configuring a WhatsApp channel profile.
                +   * 
                + * + * + * .google.cloud.ces.v1beta.WhatsAppCredentials whatsapp_credentials = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return Whether the whatsappCredentials field is set. + */ + boolean hasWhatsappCredentials(); + + /** + * + * + *
                +   * Optional. Input only. Ephemeral WhatsApp credentials required when
                +   * configuring a WhatsApp channel profile.
                +   * 
                + * + * + * .google.cloud.ces.v1beta.WhatsAppCredentials whatsapp_credentials = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The whatsappCredentials. + */ + com.google.cloud.ces.v1beta.WhatsAppCredentials getWhatsappCredentials(); + + /** + * + * + *
                +   * Optional. Input only. Ephemeral WhatsApp credentials required when
                +   * configuring a WhatsApp channel profile.
                +   * 
                + * + * + * .google.cloud.ces.v1beta.WhatsAppCredentials whatsapp_credentials = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + com.google.cloud.ces.v1beta.WhatsAppCredentialsOrBuilder getWhatsappCredentialsOrBuilder(); + + /** + * + * + *
                +   * Optional. Input only. Ephemeral Instagram credentials required when
                +   * configuring a Instagram channel profile.
                +   * 
                + * + * + * .google.cloud.ces.v1beta.InstagramCredentials instagram_credentials = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return Whether the instagramCredentials field is set. + */ + boolean hasInstagramCredentials(); + + /** + * + * + *
                +   * Optional. Input only. Ephemeral Instagram credentials required when
                +   * configuring a Instagram channel profile.
                +   * 
                + * + * + * .google.cloud.ces.v1beta.InstagramCredentials instagram_credentials = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The instagramCredentials. + */ + com.google.cloud.ces.v1beta.InstagramCredentials getInstagramCredentials(); + + /** + * + * + *
                +   * Optional. Input only. Ephemeral Instagram credentials required when
                +   * configuring a Instagram channel profile.
                +   * 
                + * + * + * .google.cloud.ces.v1beta.InstagramCredentials instagram_credentials = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + com.google.cloud.ces.v1beta.InstagramCredentialsOrBuilder getInstagramCredentialsOrBuilder(); } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationMetricsThresholds.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationMetricsThresholds.java index 67f894cebb33..97ac0ea432d9 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationMetricsThresholds.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationMetricsThresholds.java @@ -4770,7 +4770,7 @@ public boolean hasGoldenEvaluationMetricsThresholds() { *
                * * @deprecated google.cloud.ces.v1beta.EvaluationMetricsThresholds.hallucination_metric_behavior - * is deprecated. See google/cloud/ces/v1beta/app.proto;l=599 + * is deprecated. See google/cloud/ces/v1beta/app.proto;l=623 * @return The enum numeric value on the wire for hallucinationMetricBehavior. */ @java.lang.Override @@ -4792,7 +4792,7 @@ public int getHallucinationMetricBehaviorValue() { *
                * * @deprecated google.cloud.ces.v1beta.EvaluationMetricsThresholds.hallucination_metric_behavior - * is deprecated. See google/cloud/ces/v1beta/app.proto;l=599 + * is deprecated. See google/cloud/ces/v1beta/app.proto;l=623 * @return The hallucinationMetricBehavior. */ @java.lang.Override @@ -5586,7 +5586,7 @@ public Builder clearGoldenEvaluationMetricsThresholds() { *
                * * @deprecated google.cloud.ces.v1beta.EvaluationMetricsThresholds.hallucination_metric_behavior - * is deprecated. See google/cloud/ces/v1beta/app.proto;l=599 + * is deprecated. See google/cloud/ces/v1beta/app.proto;l=623 * @return The enum numeric value on the wire for hallucinationMetricBehavior. */ @java.lang.Override @@ -5608,7 +5608,7 @@ public int getHallucinationMetricBehaviorValue() { *
                * * @deprecated google.cloud.ces.v1beta.EvaluationMetricsThresholds.hallucination_metric_behavior - * is deprecated. See google/cloud/ces/v1beta/app.proto;l=599 + * is deprecated. See google/cloud/ces/v1beta/app.proto;l=623 * @param value The enum numeric value on the wire for hallucinationMetricBehavior to set. * @return This builder for chaining. */ @@ -5633,7 +5633,7 @@ public Builder setHallucinationMetricBehaviorValue(int value) { * * * @deprecated google.cloud.ces.v1beta.EvaluationMetricsThresholds.hallucination_metric_behavior - * is deprecated. See google/cloud/ces/v1beta/app.proto;l=599 + * is deprecated. See google/cloud/ces/v1beta/app.proto;l=623 * @return The hallucinationMetricBehavior. */ @java.lang.Override @@ -5662,7 +5662,7 @@ public Builder setHallucinationMetricBehaviorValue(int value) { * * * @deprecated google.cloud.ces.v1beta.EvaluationMetricsThresholds.hallucination_metric_behavior - * is deprecated. See google/cloud/ces/v1beta/app.proto;l=599 + * is deprecated. See google/cloud/ces/v1beta/app.proto;l=623 * @param value The hallucinationMetricBehavior to set. * @return This builder for chaining. */ @@ -5691,7 +5691,7 @@ public Builder setHallucinationMetricBehavior( * * * @deprecated google.cloud.ces.v1beta.EvaluationMetricsThresholds.hallucination_metric_behavior - * is deprecated. See google/cloud/ces/v1beta/app.proto;l=599 + * is deprecated. See google/cloud/ces/v1beta/app.proto;l=623 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationMetricsThresholdsOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationMetricsThresholdsOrBuilder.java index 80e1b513d9e3..a2afd8d8870f 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationMetricsThresholdsOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationMetricsThresholdsOrBuilder.java @@ -84,7 +84,7 @@ public interface EvaluationMetricsThresholdsOrBuilder * * * @deprecated google.cloud.ces.v1beta.EvaluationMetricsThresholds.hallucination_metric_behavior - * is deprecated. See google/cloud/ces/v1beta/app.proto;l=599 + * is deprecated. See google/cloud/ces/v1beta/app.proto;l=623 * @return The enum numeric value on the wire for hallucinationMetricBehavior. */ @java.lang.Deprecated @@ -103,7 +103,7 @@ public interface EvaluationMetricsThresholdsOrBuilder * * * @deprecated google.cloud.ces.v1beta.EvaluationMetricsThresholds.hallucination_metric_behavior - * is deprecated. See google/cloud/ces/v1beta/app.proto;l=599 + * is deprecated. See google/cloud/ces/v1beta/app.proto;l=623 * @return The hallucinationMetricBehavior. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationProto.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationProto.java index 9c8b5d768ec0..b381249386d4 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationProto.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationProto.java @@ -845,7 +845,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032METRIC_CALCULATION_FAILURE\020\003\022\035\n" + "\031EVALUATION_UPDATE_FAILURE\020\004\022\023\n" + "\017QUOTA_EXHAUSTED\020\005\022\033\n" - + "\027USER_SIMULATION_FAILURE\020\006\"\354\005\n" + + "\027USER_SIMULATION_FAILURE\020\006\"\321\006\n" + "\024RunEvaluationRequest\022+\n" + "\003app\030\001 \001(\tB\036\340A\002\372A\030\n" + "\026ces.googleapis.com/App\022:\n" @@ -867,7 +867,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ")ces.googleapis.com/ScheduledEvaluationRun\022H\n" + "\021golden_run_method\030\r" + " \001(\0162(.google.cloud.ces.v1beta.GoldenRunMethodB\003\340A\001\022$\n" - + "\027generate_latency_report\030\016 \001(\010B\003\340A\001B\014\n\n" + + "\027generate_latency_report\030\016 \001(\010B\003\340A\001\022c\n" + + "\037evaluation_run_caching_settings\030\017 \001(\01325.google.cloud.ces" + + ".v1beta.EvaluationRunCachingSettingsB\003\340A\001B\014\n\n" + "_run_count\"\351\010\n" + "\026ScheduledEvaluationRun\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\031\n" @@ -875,8 +877,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007request\030\003" + " \001(\0132-.google.cloud.ces.v1beta.RunEvaluationRequestB\003\340A\002\022\030\n" + "\013description\030\004 \001(\tB\003\340A\001\022`\n" - + "\021scheduling_config\030\005 \001(\0132@.google.c" - + "loud.ces.v1beta.ScheduledEvaluationRun.SchedulingConfigB\003\340A\002\022\023\n" + + "\021scheduling_config\030\005 \001(\0132@.google.cloud.ces.v1beta.Sch" + + "eduledEvaluationRun.SchedulingConfigB\003\340A\002\022\023\n" + "\006active\030\006 \001(\010B\003\340A\001\022D\n" + "\022last_completed_run\030\007 \001(\tB(\340A\003\372A\"\n" + " ces.googleapis.com/EvaluationRun\022\035\n" @@ -892,9 +894,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\tB\003\340A\003\022\021\n" + "\004etag\030\016 \001(\tB\003\340A\003\032\235\002\n" + "\020SchedulingConfig\022b\n" - + "\tfrequency\030\001 \001(\0162J.g" - + "oogle.cloud.ces.v1beta.ScheduledEvaluationRun.SchedulingConfig.FrequencyB\003\340A\002\0223\n" - + "\n" + + "\tfrequency\030\001 \001(\0162J.google.cloud.ces.v1b" + + "eta.ScheduledEvaluationRun.SchedulingConfig.FrequencyB\003\340A\002\0223\n\n" + "start_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\002\022\031\n" + "\014days_of_week\030\003 \003(\005B\003\340A\001\"U\n" + "\tFrequency\022\031\n" @@ -903,9 +904,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005DAILY\020\002\022\n\n" + "\006WEEKLY\020\003\022\014\n" + "\010BIWEEKLY\020\004:\307\001\352A\303\001\n" - + ")ces.googleapis.com/ScheduledEvaluationRun\022eprojects/{project}/locat" - + "ions/{location}/apps/{app}/scheduledEvaluationRuns/{scheduled_evaluation_run}*\027s" - + "cheduledEvaluationRuns2\026scheduledEvaluationRun\"A\n" + + ")ces.googleapis.com/ScheduledEvaluationRun\022epro" + + "jects/{project}/locations/{location}/apps/{app}/scheduledEvaluationRuns/{schedul" + + "ed_evaluation_run}*\027scheduledEvaluationRuns2\026scheduledEvaluationRun\"A\n" + "\020PersonaRunConfig\022\024\n" + "\007persona\030\001 \001(\tB\003\340A\001\022\027\n\n" + "task_count\030\002 \001(\005B\003\340A\001\"\233\003\n" @@ -914,8 +915,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021assistant_session\030\002 \001(\tB\003\340A\003\022\033\n" + "\016report_summary\030\003 \001(\tB\003\340A\003\022\037\n" + "\022should_suggest_fix\030\005 \001(\010B\003\340A\003\022S\n" - + "\006status\030\004 \001(" - + "\0162>.google.cloud.ces.v1beta.OptimizationConfig.OptimizationStatusB\003\340A\003\022\032\n\r" + + "\006status\030\004 \001(\0162>.google.cloud.ce" + + "s.v1beta.OptimizationConfig.OptimizationStatusB\003\340A\003\022\032\n\r" + "error_message\030\006 \001(\tB\003\340A\003\0221\n" + "\013loss_report\030\007 \001(\0132\027.google.protobuf.StructB\003\340A\003\"`\n" + "\022OptimizationStatus\022#\n" @@ -923,8 +924,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007RUNNING\020\001\022\r\n" + "\tCOMPLETED\020\002\022\t\n" + "\005ERROR\020\003B_\n" - + "\033com.google.cloud.ces.v1betaB\017EvaluationProtoP\001Z-cloud.google.com/go/c" - + "es/apiv1beta/cespb;cespbb\006proto3" + + "\033com.google.cloud.ces.v1betaB\017EvaluationProtoP\001Z-" + + "cloud.google.com/go/ces/apiv1beta/cespb;cespbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1523,6 +1524,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ScheduledEvaluationRun", "GoldenRunMethod", "GenerateLatencyReport", + "EvaluationRunCachingSettings", }); internal_static_google_cloud_ces_v1beta_ScheduledEvaluationRun_descriptor = getDescriptor().getMessageType(10); diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationRunCachingSettings.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationRunCachingSettings.java new file mode 100644 index 000000000000..217e1fe27bc0 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationRunCachingSettings.java @@ -0,0 +1,781 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/common.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1beta; + +/** + * + * + *
                + * Settings for evaluation run caching.
                + * 
                + * + * Protobuf type {@code google.cloud.ces.v1beta.EvaluationRunCachingSettings} + */ +@com.google.protobuf.Generated +public final class EvaluationRunCachingSettings extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.EvaluationRunCachingSettings) + EvaluationRunCachingSettingsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "EvaluationRunCachingSettings"); + } + + // Use EvaluationRunCachingSettings.newBuilder() to construct. + private EvaluationRunCachingSettings(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private EvaluationRunCachingSettings() { + runCachingMode_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.CommonProto + .internal_static_google_cloud_ces_v1beta_EvaluationRunCachingSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.CommonProto + .internal_static_google_cloud_ces_v1beta_EvaluationRunCachingSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.EvaluationRunCachingSettings.class, + com.google.cloud.ces.v1beta.EvaluationRunCachingSettings.Builder.class); + } + + /** + * + * + *
                +   * The evaluation result caching behavior. Controls whether to return the last
                +   * completed evaluation result (if existing) or to execute a new evaluation.
                +   * 
                + * + * Protobuf enum {@code + * google.cloud.ces.v1beta.EvaluationRunCachingSettings.EvaluationRunCachingMode} + */ + public enum EvaluationRunCachingMode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                +     * The run caching mode is unspecified.
                +     * 
                + * + * EVALUATION_RUN_CACHING_MODE_UNSPECIFIED = 0; + */ + EVALUATION_RUN_CACHING_MODE_UNSPECIFIED(0), + /** + * + * + *
                +     * Always execute a full live simulation regardless of whether changelogs
                +     * exist.
                +     * 
                + * + * FORCE_RUN = 1; + */ + FORCE_RUN(1), + /** + * + * + *
                +     * Skip execution and copy previous verified results if no dependencies have
                +     * mutated, the evaluation channel/run method are the same.
                +     * 
                + * + * SKIP_IF_UNCHANGED = 2; + */ + SKIP_IF_UNCHANGED(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "EvaluationRunCachingMode"); + } + + /** + * + * + *
                +     * The run caching mode is unspecified.
                +     * 
                + * + * EVALUATION_RUN_CACHING_MODE_UNSPECIFIED = 0; + */ + public static final int EVALUATION_RUN_CACHING_MODE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                +     * Always execute a full live simulation regardless of whether changelogs
                +     * exist.
                +     * 
                + * + * FORCE_RUN = 1; + */ + public static final int FORCE_RUN_VALUE = 1; + + /** + * + * + *
                +     * Skip execution and copy previous verified results if no dependencies have
                +     * mutated, the evaluation channel/run method are the same.
                +     * 
                + * + * SKIP_IF_UNCHANGED = 2; + */ + public static final int SKIP_IF_UNCHANGED_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 EvaluationRunCachingMode 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 EvaluationRunCachingMode forNumber(int value) { + switch (value) { + case 0: + return EVALUATION_RUN_CACHING_MODE_UNSPECIFIED; + case 1: + return FORCE_RUN; + case 2: + return SKIP_IF_UNCHANGED; + 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 EvaluationRunCachingMode findValueByNumber(int number) { + return EvaluationRunCachingMode.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.ces.v1beta.EvaluationRunCachingSettings.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final EvaluationRunCachingMode[] VALUES = values(); + + public static EvaluationRunCachingMode 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 EvaluationRunCachingMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1beta.EvaluationRunCachingSettings.EvaluationRunCachingMode) + } + + public static final int RUN_CACHING_MODE_FIELD_NUMBER = 1; + private int runCachingMode_ = 0; + + /** + * + * + *
                +   * Optional. The caching mode to use for the evaluation run. If not set,
                +   * default to FORCE_RUN.
                +   * 
                + * + * + * .google.cloud.ces.v1beta.EvaluationRunCachingSettings.EvaluationRunCachingMode run_caching_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for runCachingMode. + */ + @java.lang.Override + public int getRunCachingModeValue() { + return runCachingMode_; + } + + /** + * + * + *
                +   * Optional. The caching mode to use for the evaluation run. If not set,
                +   * default to FORCE_RUN.
                +   * 
                + * + * + * .google.cloud.ces.v1beta.EvaluationRunCachingSettings.EvaluationRunCachingMode run_caching_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The runCachingMode. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.EvaluationRunCachingSettings.EvaluationRunCachingMode + getRunCachingMode() { + com.google.cloud.ces.v1beta.EvaluationRunCachingSettings.EvaluationRunCachingMode result = + com.google.cloud.ces.v1beta.EvaluationRunCachingSettings.EvaluationRunCachingMode.forNumber( + runCachingMode_); + return result == null + ? com.google.cloud.ces.v1beta.EvaluationRunCachingSettings.EvaluationRunCachingMode + .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 (runCachingMode_ + != com.google.cloud.ces.v1beta.EvaluationRunCachingSettings.EvaluationRunCachingMode + .EVALUATION_RUN_CACHING_MODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, runCachingMode_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (runCachingMode_ + != com.google.cloud.ces.v1beta.EvaluationRunCachingSettings.EvaluationRunCachingMode + .EVALUATION_RUN_CACHING_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, runCachingMode_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1beta.EvaluationRunCachingSettings)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.EvaluationRunCachingSettings other = + (com.google.cloud.ces.v1beta.EvaluationRunCachingSettings) obj; + + if (runCachingMode_ != other.runCachingMode_) return false; + if (!getUnknownFields().equals(other.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) + RUN_CACHING_MODE_FIELD_NUMBER; + hash = (53 * hash) + runCachingMode_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.EvaluationRunCachingSettings parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.EvaluationRunCachingSettings parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.EvaluationRunCachingSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.EvaluationRunCachingSettings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.EvaluationRunCachingSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.EvaluationRunCachingSettings parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.EvaluationRunCachingSettings parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.EvaluationRunCachingSettings parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.EvaluationRunCachingSettings parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.EvaluationRunCachingSettings parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.EvaluationRunCachingSettings parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.EvaluationRunCachingSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.ces.v1beta.EvaluationRunCachingSettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 evaluation run caching.
                +   * 
                + * + * Protobuf type {@code google.cloud.ces.v1beta.EvaluationRunCachingSettings} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.EvaluationRunCachingSettings) + com.google.cloud.ces.v1beta.EvaluationRunCachingSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.CommonProto + .internal_static_google_cloud_ces_v1beta_EvaluationRunCachingSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.CommonProto + .internal_static_google_cloud_ces_v1beta_EvaluationRunCachingSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.EvaluationRunCachingSettings.class, + com.google.cloud.ces.v1beta.EvaluationRunCachingSettings.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.EvaluationRunCachingSettings.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + runCachingMode_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.CommonProto + .internal_static_google_cloud_ces_v1beta_EvaluationRunCachingSettings_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.EvaluationRunCachingSettings getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.EvaluationRunCachingSettings.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.EvaluationRunCachingSettings build() { + com.google.cloud.ces.v1beta.EvaluationRunCachingSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.EvaluationRunCachingSettings buildPartial() { + com.google.cloud.ces.v1beta.EvaluationRunCachingSettings result = + new com.google.cloud.ces.v1beta.EvaluationRunCachingSettings(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1beta.EvaluationRunCachingSettings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.runCachingMode_ = runCachingMode_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.EvaluationRunCachingSettings) { + return mergeFrom((com.google.cloud.ces.v1beta.EvaluationRunCachingSettings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.EvaluationRunCachingSettings other) { + if (other == com.google.cloud.ces.v1beta.EvaluationRunCachingSettings.getDefaultInstance()) + return this; + if (other.runCachingMode_ != 0) { + setRunCachingModeValue(other.getRunCachingModeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + runCachingMode_ = 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 runCachingMode_ = 0; + + /** + * + * + *
                +     * Optional. The caching mode to use for the evaluation run. If not set,
                +     * default to FORCE_RUN.
                +     * 
                + * + * + * .google.cloud.ces.v1beta.EvaluationRunCachingSettings.EvaluationRunCachingMode run_caching_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for runCachingMode. + */ + @java.lang.Override + public int getRunCachingModeValue() { + return runCachingMode_; + } + + /** + * + * + *
                +     * Optional. The caching mode to use for the evaluation run. If not set,
                +     * default to FORCE_RUN.
                +     * 
                + * + * + * .google.cloud.ces.v1beta.EvaluationRunCachingSettings.EvaluationRunCachingMode run_caching_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for runCachingMode to set. + * @return This builder for chaining. + */ + public Builder setRunCachingModeValue(int value) { + runCachingMode_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. The caching mode to use for the evaluation run. If not set,
                +     * default to FORCE_RUN.
                +     * 
                + * + * + * .google.cloud.ces.v1beta.EvaluationRunCachingSettings.EvaluationRunCachingMode run_caching_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The runCachingMode. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.EvaluationRunCachingSettings.EvaluationRunCachingMode + getRunCachingMode() { + com.google.cloud.ces.v1beta.EvaluationRunCachingSettings.EvaluationRunCachingMode result = + com.google.cloud.ces.v1beta.EvaluationRunCachingSettings.EvaluationRunCachingMode + .forNumber(runCachingMode_); + return result == null + ? com.google.cloud.ces.v1beta.EvaluationRunCachingSettings.EvaluationRunCachingMode + .UNRECOGNIZED + : result; + } + + /** + * + * + *
                +     * Optional. The caching mode to use for the evaluation run. If not set,
                +     * default to FORCE_RUN.
                +     * 
                + * + * + * .google.cloud.ces.v1beta.EvaluationRunCachingSettings.EvaluationRunCachingMode run_caching_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The runCachingMode to set. + * @return This builder for chaining. + */ + public Builder setRunCachingMode( + com.google.cloud.ces.v1beta.EvaluationRunCachingSettings.EvaluationRunCachingMode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + runCachingMode_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. The caching mode to use for the evaluation run. If not set,
                +     * default to FORCE_RUN.
                +     * 
                + * + * + * .google.cloud.ces.v1beta.EvaluationRunCachingSettings.EvaluationRunCachingMode run_caching_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearRunCachingMode() { + bitField0_ = (bitField0_ & ~0x00000001); + runCachingMode_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.EvaluationRunCachingSettings) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.EvaluationRunCachingSettings) + private static final com.google.cloud.ces.v1beta.EvaluationRunCachingSettings DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.EvaluationRunCachingSettings(); + } + + public static com.google.cloud.ces.v1beta.EvaluationRunCachingSettings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EvaluationRunCachingSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.EvaluationRunCachingSettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationRunCachingSettingsOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationRunCachingSettingsOrBuilder.java new file mode 100644 index 000000000000..9ae2ce093c13 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationRunCachingSettingsOrBuilder.java @@ -0,0 +1,61 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/common.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public interface EvaluationRunCachingSettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.EvaluationRunCachingSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                +   * Optional. The caching mode to use for the evaluation run. If not set,
                +   * default to FORCE_RUN.
                +   * 
                + * + * + * .google.cloud.ces.v1beta.EvaluationRunCachingSettings.EvaluationRunCachingMode run_caching_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for runCachingMode. + */ + int getRunCachingModeValue(); + + /** + * + * + *
                +   * Optional. The caching mode to use for the evaluation run. If not set,
                +   * default to FORCE_RUN.
                +   * 
                + * + * + * .google.cloud.ces.v1beta.EvaluationRunCachingSettings.EvaluationRunCachingMode run_caching_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The runCachingMode. + */ + com.google.cloud.ces.v1beta.EvaluationRunCachingSettings.EvaluationRunCachingMode + getRunCachingMode(); +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationServiceProto.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationServiceProto.java index 5c11cad410ec..a2ca86043a62 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationServiceProto.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationServiceProto.java @@ -321,26 +321,33 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026ces.googleapis.com/App\022\032\n\r" + "evaluation_id\030\002 \001(\tB\003\340A\001\022<\n\n" + "evaluation\030\003 \001(\0132#.go" - + "ogle.cloud.ces.v1beta.EvaluationB\003\340A\002\"\237\001\n" + + "ogle.cloud.ces.v1beta.EvaluationB\003\340A\002\"\315\002\n" + "\031GenerateEvaluationRequest\022=\n" + "\014conversation\030\001 \001(\tB\'\340A\002\372A!\n" + "\037ces.googleapis.com/Conversation\022C\n" + "\006source\030\002 \001(\0162,.google.clou" - + "d.ces.v1beta.Conversation.SourceB\005\030\001\340A\001\"\373\004\n" + + "d.ces.v1beta.Conversation.SourceB\005\030\001\340A\001\022_\n" + + "\017evaluation_type\030\003 \001(\0162A.google.cloud." + + "ces.v1beta.GenerateEvaluationRequest.EvaluationTypeB\003\340A\001\"K\n" + + "\016EvaluationType\022\037\n" + + "\033EVALUATION_TYPE_UNSPECIFIED\020\000\022\n\n" + + "\006GOLDEN\020\001\022\014\n" + + "\010SCENARIO\020\002\"\373\004\n" + "\030ImportEvaluationsRequest\022_\n" - + "\021conversation_list\030\002 \001(\0132B.google.cloud.ces.v1bet" - + "a.ImportEvaluationsRequest.ConversationListH\000\022\021\n" + + "\021conversation_list\030\002 \001(\0132B.google.c" + + "loud.ces.v1beta.ImportEvaluationsRequest.ConversationListH\000\022\021\n" + "\007gcs_uri\030\003 \001(\tH\000\022\025\n" + "\013csv_content\030\004 \001(\014H\000\022.\n" + "\006parent\030\001 \001(\tB\036\340A\002\372A\030\n" + "\026ces.googleapis.com/App\022\\\n" - + "\016import_options\030\005 \001(\0132" - + "?.google.cloud.ces.v1beta.ImportEvaluationsRequest.ImportOptionsB\003\340A\001\032.\n" + + "\016import_options\030\005 \001(\0132?.google.cloud.ces.v1beta." + + "ImportEvaluationsRequest.ImportOptionsB\003\340A\001\032.\n" + "\020ConversationList\022\032\n\r" + "conversations\030\001 \003(\tB\003\340A\001\032\213\002\n\r" + "ImportOptions\022\205\001\n" - + "\034conflict_resolution_strategy\030\001 \001(\0162Z.google.cloud.ces.v1beta" - + ".ImportEvaluationsRequest.ImportOptions.ConflictResolutionStrategyB\003\340A\001\"r\n" + + "\034conflict_resolution_strategy\030\001 \001(\0162Z.google.cl" + + "oud.ces.v1beta.ImportEvaluationsRequest." + + "ImportOptions.ConflictResolutionStrategyB\003\340A\001\"r\n" + "\032ConflictResolutionStrategy\022,\n" + "(CONFLICT_RESOLUTION_STRATEGY_UNSPECIFIED\020\000\022\r\n" + "\tOVERWRITE\020\001\022\010\n" @@ -372,8 +379,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013update_mask\030\002" + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\"\243\001\n" + "\036UpdateEvaluationDatasetRequest\022K\n" - + "\022evaluation_dataset\030\001 \001(\0132*.google.c" - + "loud.ces.v1beta.EvaluationDatasetB\003\340A\002\0224\n" + + "\022evaluation_dataset\030\001 " + + "\001(\0132*.google.cloud.ces.v1beta.EvaluationDatasetB\003\340A\002\0224\n" + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\"u\n" + "\027DeleteEvaluationRequest\0223\n" + "\004name\030\001 \001(\tB%\340A\002\372A\037\n" @@ -420,8 +427,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + "\010order_by\030\005 \001(\tB\003\340A\001\"\272\001\n" + "\035ListEvaluationDatasetsRequest\022<\n" - + "\006parent\030\001 \001(\tB,\340A\002" - + "\372A&\022$ces.googleapis.com/EvaluationDataset\022\026\n" + + "\006parent\030\001 \001(" + + "\tB,\340A\002\372A&\022$ces.googleapis.com/EvaluationDataset\022\026\n" + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" @@ -452,25 +459,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006parent\030\001 \001(\tB\036\340A\002\372A\030\n" + "\026ces.googleapis.com/App\022(\n" + "\033scheduled_evaluation_run_id\030\002 \001(\tB\003\340A\001\022V\n" - + "\030scheduled_evaluation_run\030\003" - + " \001(\0132/.google.cloud.ces.v1beta.ScheduledEvaluationRunB\003\340A\002\"c\n" + + "\030scheduled_evaluation_run\030\003 \001(\0132/.google.cloud" + + ".ces.v1beta.ScheduledEvaluationRunB\003\340A\002\"c\n" + " GetScheduledEvaluationRunRequest\022?\n" + "\004name\030\001 \001(\tB1\340A\002\372A+\n" + ")ces.googleapis.com/ScheduledEvaluationRun\"\304\001\n" + "\"ListScheduledEvaluationRunsRequest\022A\n" - + "\006parent\030\001 \001(" - + "\tB1\340A\002\372A+\022)ces.googleapis.com/ScheduledEvaluationRun\022\026\n" + + "\006parent\030\001 \001(\tB1\340A\002" + + "\372A+\022)ces.googleapis.com/ScheduledEvaluationRun\022\026\n" + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + "\010order_by\030\005 \001(\tB\003\340A\001\"\222\001\n" + "#ListScheduledEvaluationRunsResponse\022R\n" - + "\031scheduled_evaluation_runs\030\001 \003(\013" - + "2/.google.cloud.ces.v1beta.ScheduledEvaluationRun\022\027\n" + + "\031scheduled_evaluation_runs\030\001" + + " \003(\0132/.google.cloud.ces.v1beta.ScheduledEvaluationRun\022\027\n" + "\017next_page_token\030\002 \001(\t\"\263\001\n" + "#UpdateScheduledEvaluationRunRequest\022V\n" - + "\030scheduled_evaluation_run\030\001 \001(\0132/.google.cl" - + "oud.ces.v1beta.ScheduledEvaluationRunB\003\340A\002\0224\n" + + "\030scheduled_evaluation_run\030\001 \001" + + "(\0132/.google.cloud.ces.v1beta.ScheduledEvaluationRunB\003\340A\002\0224\n" + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\"y\n" + "#DeleteScheduledEvaluationRunRequest\022?\n" + "\004name\030\001 \001(\tB1\340A\002\372A+\n" @@ -499,8 +506,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026evaluation_expectation\030\003" + " \001(\0132..google.cloud.ces.v1beta.EvaluationExpectationB\003\340A\002\"\257\001\n" + "\"UpdateEvaluationExpectationRequest\022S\n" - + "\026evaluation_expectation\030\001" - + " \001(\0132..google.cloud.ces.v1beta.EvaluationExpectationB\003\340A\002\0224\n" + + "\026evaluation_expectation\030\001 \001(\0132..google.clo" + + "ud.ces.v1beta.EvaluationExpectationB\003\340A\002\0224\n" + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\"w\n" + "\"DeleteEvaluationExpectationRequest\022>\n" + "\004name\030\001 \001(\tB0\340A\002\372A*\n" @@ -510,8 +517,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB0\340A\002\372A*\n" + "(ces.googleapis.com/EvaluationExpectation\"\302\001\n" + "!ListEvaluationExpectationsRequest\022@\n" - + "\006parent\030\001 \001(\tB0\340A\002\372" - + "A*\022(ces.googleapis.com/EvaluationExpectation\022\026\n" + + "\006parent\030\001 \001(" + + "\tB0\340A\002\372A*\022(ces.googleapis.com/EvaluationExpectation\022\026\n" + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" @@ -521,8 +528,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\0132..google.cloud.ces.v1beta.EvaluationExpectation\022\027\n" + "\017next_page_token\030\002 \001(\t\"\271\001\n\r" + "ExportOptions\022O\n\r" - + "export_format\030\001 " - + "\001(\01623.google.cloud.ces.v1beta.ExportOptions.ExportFormatB\003\340A\001\022\024\n" + + "export_format\030\001" + + " \001(\01623.google.cloud.ces.v1beta.ExportOptions.ExportFormatB\003\340A\001\022\024\n" + "\007gcs_uri\030\002 \001(\tB\003\340A\001\"A\n" + "\014ExportFormat\022\035\n" + "\031EXPORT_FORMAT_UNSPECIFIED\020\000\022\010\n" @@ -533,15 +540,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026ces.googleapis.com/App\0224\n" + "\005names\030\002 \003(\tB%\340A\002\372A\037\n" + "\035ces.googleapis.com/Evaluation\022C\n" - + "\016export_options\030\003" - + " \001(\0132&.google.cloud.ces.v1beta.ExportOptionsB\003\340A\001\022\'\n" + + "\016export_options\030\003 \001(\0132" + + "&.google.cloud.ces.v1beta.ExportOptionsB\003\340A\001\022\'\n" + "\032include_evaluation_results\030\004 \001(\010B\003\340A\001\022 \n" + "\023include_evaluations\030\005 \001(\010B\003\340A\001\"\212\002\n" + "\031ExportEvaluationsResponse\022\035\n" + "\023evaluations_content\030\001 \001(\014H\000\022\031\n" + "\017evaluations_uri\030\002 \001(\tH\000\022j\n" - + "\022failed_evaluations\030\003 \003(\0132I.google.cloud.ces" - + ".v1beta.ExportEvaluationsResponse.FailedEvaluationsEntryB\003\340A\003\0328\n" + + "\022failed_evaluations\030\003 \003(\0132I.go" + + "ogle.cloud.ces.v1beta.ExportEvaluationsResponse.FailedEvaluationsEntryB\003\340A\003\0328\n" + "\026FailedEvaluationsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001B\r\n" @@ -551,8 +558,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\035ces.googleapis.com/Evaluation\022:\n" + "\005names\030\002 \003(\tB+\340A\002\372A%\n" + "#ces.googleapis.com/EvaluationResult\022C\n" - + "\016export_options\030\003" - + " \001(\0132&.google.cloud.ces.v1beta.ExportOptionsB\003\340A\001\"\177\n" + + "\016export_options\030\003 \001" + + "(\0132&.google.cloud.ces.v1beta.ExportOptionsB\003\340A\001\"\177\n" + "\037ExportEvaluationResultsResponse\022$\n" + "\032evaluation_results_content\030\001 \001(\014H\000\022 \n" + "\026evaluation_results_uri\030\002 \001(\tH\000B\024\n" @@ -562,8 +569,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026ces.googleapis.com/App\0227\n" + "\005names\030\002 \003(\tB(\340A\002\372A\"\n" + " ces.googleapis.com/EvaluationRun\022C\n" - + "\016export_options\030\003 " - + "\001(\0132&.google.cloud.ces.v1beta.ExportOptionsB\003\340A\001\"s\n" + + "\016export_options\030\003" + + " \001(\0132&.google.cloud.ces.v1beta.ExportOptionsB\003\340A\001\"s\n" + "\034ExportEvaluationRunsResponse\022!\n" + "\027evaluation_runs_content\030\001 \001(\014H\000\022\035\n" + "\023evaluation_runs_uri\030\002 \001(\tH\000B\021\n" @@ -572,190 +579,189 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "(ExportEvaluationResultsOperationMetadata\"-\n" + "+RunEvaluationResultMetricsOperationMetadata2\271C\n" + "\021EvaluationService\022\344\001\n\r" - + "RunEvaluation\022-.google.cloud.ces.v1b" - + "eta.RunEvaluationRequest\032\035.google.longrunning.Operation\"\204\001\312A7\n" - + "\025RunEvaluationResponse\022\036RunEvaluationOperationMetadata\332A\003a" - + "pp\202\323\344\223\002>\"9/v1beta/{app=projects/*/locations/*/apps/*}:runEvaluation:\001*\022\370\001\n" - + "\025UploadEvaluationAudio\0225.google.cloud.ces.v1be" - + "ta.UploadEvaluationAudioRequest\0326.google.cloud.ces.v1beta.UploadEvaluationAudioR" - + "esponse\"p\332A\022name,audio_content\202\323\344\223\002U\"P/v" - + "1beta/{name=projects/*/locations/*/apps/" - + "*/evaluations/*}:uploadEvaluationAudio:\001*\022\360\001\n" - + "\020CreateEvaluation\0220.google.cloud.ces.v1beta.CreateEvaluationRequest\032#.googl" - + "e.cloud.ces.v1beta.Evaluation\"\204\001\332A\037paren" - + "t,evaluation,evaluation_id\332A\021parent,eval" - + "uation\202\323\344\223\002H\":/v1beta/{parent=projects/*/locations/*/apps/*}/evaluations:\n" + + "RunEvaluation\022-.google" + + ".cloud.ces.v1beta.RunEvaluationRequest\032\035.google.longrunning.Operation\"\204\001\312A7\n" + + "\025RunEvaluationResponse\022\036RunEvaluationOperati" + + "onMetadata\332A\003app\202\323\344\223\002>\"9/v1beta/{app=pro" + + "jects/*/locations/*/apps/*}:runEvaluation:\001*\022\370\001\n" + + "\025UploadEvaluationAudio\0225.google.cloud.ces.v1beta.UploadEvaluationAudioRe" + + "quest\0326.google.cloud.ces.v1beta.UploadEv" + + "aluationAudioResponse\"p\332A\022name,audio_con" + + "tent\202\323\344\223\002U\"P/v1beta/{name=projects/*/loc" + + "ations/*/apps/*/evaluations/*}:uploadEvaluationAudio:\001*\022\360\001\n" + + "\020CreateEvaluation\0220.google.cloud.ces.v1beta.CreateEvaluationR" + + "equest\032#.google.cloud.ces.v1beta.Evaluat" + + "ion\"\204\001\332A\037parent,evaluation,evaluation_id" + + "\332A\021parent,evaluation\202\323\344\223\002H\":/v1beta/{par" + + "ent=projects/*/locations/*/apps/*}/evaluations:\n" + "evaluation\022\217\002\n" - + "\022GenerateEvaluation\0222.google.clo" - + "ud.ces.v1beta.GenerateEvaluationRequest\032\035.google.longrunning.Operation\"\245\001\312A1\n\n" - + "Evaluation\022#GenerateEvaluationOperationMet" - + "adata\332A\014conversation\202\323\344\223\002\\\"W/v1beta/{con" - + "versation=projects/*/locations/*/apps/*/" - + "conversations/*}:generateEvaluation:\001*\022\376\001\n" - + "\021ImportEvaluations\0221.google.cloud.ces." - + "v1beta.ImportEvaluationsRequest\032\035.google.longrunning.Operation\"\226\001\312A?\n" - + "\031ImportEvaluationsResponse\022\"ImportEvaluationsOperat" - + "ionMetadata\332A\006parent\202\323\344\223\002E\"@/v1beta/{par" - + "ent=projects/*/locations/*/apps/*}:importEvaluations:\001*\022\254\002\n" - + "\027CreateEvaluationDataset\0227.google.cloud.ces.v1beta.CreateEval" - + "uationDatasetRequest\032*.google.cloud.ces." - + "v1beta.EvaluationDataset\"\253\001\332A/parent,eva" - + "luation_dataset,evaluation_dataset_id\332A\031" - + "parent,evaluation_dataset\202\323\344\223\002W\"A/v1beta" - + "/{parent=projects/*/locations/*/apps/*}/" - + "evaluationDatasets:\022evaluation_dataset\022\335\001\n" - + "\020UpdateEvaluation\0220.google.cloud.ces.v" - + "1beta.UpdateEvaluationRequest\032#.google.c" - + "loud.ces.v1beta.Evaluation\"r\332A\026evaluatio" - + "n,update_mask\202\323\344\223\002S2E/v1beta/{evaluation" - + ".name=projects/*/locations/*/apps/*/evaluations/*}:\n" + + "\022GenerateEvaluation\0222.google.cloud.ces.v1beta.GenerateEval" + + "uationRequest\032\035.google.longrunning.Operation\"\245\001\312A1\n\n" + + "Evaluation\022#GenerateEvaluati" + + "onOperationMetadata\332A\014conversation\202\323\344\223\002\\" + + "\"W/v1beta/{conversation=projects/*/locat" + + "ions/*/apps/*/conversations/*}:generateEvaluation:\001*\022\376\001\n" + + "\021ImportEvaluations\0221.google.cloud.ces.v1beta.ImportEvaluationsRe" + + "quest\032\035.google.longrunning.Operation\"\226\001\312A?\n" + + "\031ImportEvaluationsResponse\022\"ImportEva" + + "luationsOperationMetadata\332A\006parent\202\323\344\223\002E" + + "\"@/v1beta/{parent=projects/*/locations/*/apps/*}:importEvaluations:\001*\022\254\002\n" + + "\027CreateEvaluationDataset\0227.google.cloud.ces.v1b" + + "eta.CreateEvaluationDatasetRequest\032*.goo" + + "gle.cloud.ces.v1beta.EvaluationDataset\"\253" + + "\001\332A/parent,evaluation_dataset,evaluation" + + "_dataset_id\332A\031parent,evaluation_dataset\202" + + "\323\344\223\002W\"A/v1beta/{parent=projects/*/locati" + + "ons/*/apps/*}/evaluationDatasets:\022evaluation_dataset\022\335\001\n" + + "\020UpdateEvaluation\0220.google.cloud.ces.v1beta.UpdateEvaluationRequ" + + "est\032#.google.cloud.ces.v1beta.Evaluation" + + "\"r\332A\026evaluation,update_mask\202\323\344\223\002S2E/v1be" + + "ta/{evaluation.name=projects/*/locations/*/apps/*/evaluations/*}:\n" + "evaluation\022\222\002\n" - + "\027UpdateEvaluationDataset\0227.google.cloud.ces.v1beta.Upd" - + "ateEvaluationDatasetRequest\032*.google.clo" - + "ud.ces.v1beta.EvaluationDataset\"\221\001\332A\036eva" - + "luation_dataset,update_mask\202\323\344\223\002j2T/v1be" - + "ta/{evaluation_dataset.name=projects/*/l" - + "ocations/*/apps/*/evaluationDatasets/*}:\022evaluation_dataset\022\247\001\n" - + "\020DeleteEvaluation\0220.google.cloud.ces.v1beta.DeleteEvaluat" - + "ionRequest\032\026.google.protobuf.Empty\"I\332A\004n" - + "ame\202\323\344\223\002<*:/v1beta/{name=projects/*/locations/*/apps/*/evaluations/*}\022\275\001\n" - + "\026DeleteEvaluationResult\0226.google.cloud.ces.v1be" - + "ta.DeleteEvaluationResultRequest\032\026.googl" - + "e.protobuf.Empty\"S\332A\004name\202\323\344\223\002F*D/v1beta" - + "/{name=projects/*/locations/*/apps/*/evaluations/*/results/*}\022\274\001\n" - + "\027DeleteEvaluationDataset\0227.google.cloud.ces.v1beta.Dele" - + "teEvaluationDatasetRequest\032\026.google.prot" - + "obuf.Empty\"P\332A\004name\202\323\344\223\002C*A/v1beta/{name" - + "=projects/*/locations/*/apps/*/evaluationDatasets/*}\022\370\001\n" - + "\023DeleteEvaluationRun\0223.google.cloud.ces.v1beta.DeleteEvaluationR" - + "unRequest\032\035.google.longrunning.Operation\"\214\001\312A=\n" - + "\025google.protobuf.Empty\022$DeleteEva" - + "luationRunOperationMetadata\332A\004name\202\323\344\223\002?" - + "*=/v1beta/{name=projects/*/locations/*/apps/*/evaluationRuns/*}\022\256\001\n\r" - + "GetEvaluation\022-.google.cloud.ces.v1beta.GetEvaluatio" - + "nRequest\032#.google.cloud.ces.v1beta.Evalu" - + "ation\"I\332A\004name\202\323\344\223\002<\022:/v1beta/{name=proj" - + "ects/*/locations/*/apps/*/evaluations/*}\022\312\001\n" - + "\023GetEvaluationResult\0223.google.cloud.ces.v1beta.GetEvaluationResultRequest\032)." - + "google.cloud.ces.v1beta.EvaluationResult" - + "\"S\332A\004name\202\323\344\223\002F\022D/v1beta/{name=projects/" - + "*/locations/*/apps/*/evaluations/*/results/*}\022\312\001\n" - + "\024GetEvaluationDataset\0224.google.cloud.ces.v1beta.GetEvaluationDatasetReq" - + "uest\032*.google.cloud.ces.v1beta.Evaluatio" - + "nDataset\"P\332A\004name\202\323\344\223\002C\022A/v1beta/{name=p" - + "rojects/*/locations/*/apps/*/evaluationDatasets/*}\022\272\001\n" - + "\020GetEvaluationRun\0220.google.cloud.ces.v1beta.GetEvaluationRunReques" - + "t\032&.google.cloud.ces.v1beta.EvaluationRu" - + "n\"L\332A\004name\202\323\344\223\002?\022=/v1beta/{name=projects" - + "/*/locations/*/apps/*/evaluationRuns/*}\022\301\001\n" - + "\017ListEvaluations\022/.google.cloud.ces.v1beta.ListEvaluationsRequest\0320.google.cl" - + "oud.ces.v1beta.ListEvaluationsResponse\"K" - + "\332A\006parent\202\323\344\223\002<\022:/v1beta/{parent=projects/*/locations/*/apps/*}/evaluations\022\335\001\n" - + "\025ListEvaluationResults\0225.google.cloud.ces" - + ".v1beta.ListEvaluationResultsRequest\0326.google.cloud.ces.v1beta.ListEvaluationRes" - + "ultsResponse\"U\332A\006parent\202\323\344\223\002F\022D/v1beta/{" - + "parent=projects/*/locations/*/apps/*/evaluations/*}/results\022\335\001\n" - + "\026ListEvaluationDatasets\0226.google.cloud.ces.v1beta.ListEva" - + "luationDatasetsRequest\0327.google.cloud.ces.v1beta.ListEvaluationDatasetsResponse\"" - + "R\332A\006parent\202\323\344\223\002C\022A/v1beta/{parent=projec" - + "ts/*/locations/*/apps/*}/evaluationDatasets\022\315\001\n" - + "\022ListEvaluationRuns\0222.google.cloud.ces.v1beta.ListEvaluationRunsRequest\0323" - + ".google.cloud.ces.v1beta.ListEvaluationR" - + "unsResponse\"N\332A\006parent\202\323\344\223\002?\022=/v1beta/{p" - + "arent=projects/*/locations/*/apps/*}/evaluationRuns\022\355\001\n" - + "\032ListEvaluationExpectations\022:.google.cloud.ces.v1beta.ListEvaluat" - + "ionExpectationsRequest\032;.google.cloud.ces.v1beta.ListEvaluationExpectationsRespo" - + "nse\"V\332A\006parent\202\323\344\223\002G\022E/v1beta/{parent=pr" - + "ojects/*/locations/*/apps/*}/evaluationExpectations\022\332\001\n" - + "\030GetEvaluationExpectation\0228.google.cloud.ces.v1beta.GetEvaluation" - + "ExpectationRequest\032..google.cloud.ces.v1" - + "beta.EvaluationExpectation\"T\332A\004name\202\323\344\223\002" - + "G\022E/v1beta/{name=projects/*/locations/*/apps/*/evaluationExpectations/*}\022\314\002\n" - + "\033CreateEvaluationExpectation\022;.google.cloud." - + "ces.v1beta.CreateEvaluationExpectationRequest\032..google.cloud.ces.v1beta.Evaluati" - + "onExpectation\"\277\001\332A7parent,evaluation_exp" - + "ectation,evaluation_expectation_id\332A\035par" - + "ent,evaluation_expectation\202\323\344\223\002_\"E/v1bet" - + "a/{parent=projects/*/locations/*/apps/*}" - + "/evaluationExpectations:\026evaluation_expectation\022\256\002\n" - + "\033UpdateEvaluationExpectation\022;.google.cloud.ces.v1beta.UpdateEvaluati" - + "onExpectationRequest\032..google.cloud.ces." - + "v1beta.EvaluationExpectation\"\241\001\332A\"evalua" - + "tion_expectation,update_mask\202\323\344\223\002v2\\/v1b" - + "eta/{evaluation_expectation.name=project" - + "s/*/locations/*/apps/*/evaluationExpectations/*}:\026evaluation_expectation\022\310\001\n" - + "\033DeleteEvaluationExpectation\022;.google.cloud." - + "ces.v1beta.DeleteEvaluationExpectationRe" - + "quest\032\026.google.protobuf.Empty\"T\332A\004name\202\323" - + "\344\223\002G*E/v1beta/{name=projects/*/locations/*/apps/*/evaluationExpectations/*}\022\330\002\n" - + "\034CreateScheduledEvaluationRun\022<.google.cl" - + "oud.ces.v1beta.CreateScheduledEvaluationRunRequest\032/.google.cloud.ces.v1beta.Sch" - + "eduledEvaluationRun\"\310\001\332A;parent,schedule" - + "d_evaluation_run,scheduled_evaluation_ru" - + "n_id\332A\037parent,scheduled_evaluation_run\202\323" - + "\344\223\002b\"F/v1beta/{parent=projects/*/locatio" - + "ns/*/apps/*}/scheduledEvaluationRuns:\030scheduled_evaluation_run\022\336\001\n" - + "\031GetScheduledEvaluationRun\0229.google.cloud.ces.v1beta.G" - + "etScheduledEvaluationRunRequest\032/.google.cloud.ces.v1beta.ScheduledEvaluationRun" - + "\"U\332A\004name\202\323\344\223\002H\022F/v1beta/{name=projects/" - + "*/locations/*/apps/*/scheduledEvaluationRuns/*}\022\361\001\n" - + "\033ListScheduledEvaluationRuns\022;.google.cloud.ces.v1beta.ListScheduledE" - + "valuationRunsRequest\032<.google.cloud.ces.v1beta.ListScheduledEvaluationRunsRespon" - + "se\"W\332A\006parent\202\323\344\223\002H\022F/v1beta/{parent=pro" - + "jects/*/locations/*/apps/*}/scheduledEvaluationRuns\022\270\002\n" - + "\034UpdateScheduledEvaluationRun\022<.google.cloud.ces.v1beta.UpdateSch" - + "eduledEvaluationRunRequest\032/.google.clou" - + "d.ces.v1beta.ScheduledEvaluationRun\"\250\001\332A" - + "$scheduled_evaluation_run,update_mask\202\323\344", - "\223\002{2_/v1beta/{scheduled_evaluation_run.n" - + "ame=projects/*/locations/*/apps/*/schedu" - + "ledEvaluationRuns/*}:\030scheduled_evaluati" - + "on_run\022\313\001\n\034DeleteScheduledEvaluationRun\022" - + "<.google.cloud.ces.v1beta.DeleteSchedule" - + "dEvaluationRunRequest\032\026.google.protobuf." - + "Empty\"U\332A\004name\202\323\344\223\002H*F/v1beta/{name=proj" - + "ects/*/locations/*/apps/*/scheduledEvalu" - + "ationRuns/*}\022\306\001\n\020TestPersonaVoice\0220.goog" - + "le.cloud.ces.v1beta.TestPersonaVoiceRequ" - + "est\0321.google.cloud.ces.v1beta.TestPerson" - + "aVoiceResponse\"M\332A\003app\202\323\344\223\002A\" + * Optional. The caching settings to use for the evaluation run. + * + * + * + * .google.cloud.ces.v1beta.EvaluationRunCachingSettings evaluation_run_caching_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the evaluationRunCachingSettings field is set. + */ + @java.lang.Override + public boolean hasEvaluationRunCachingSettings() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                +   * Optional. The caching settings to use for the evaluation run.
                +   * 
                + * + * + * .google.cloud.ces.v1beta.EvaluationRunCachingSettings evaluation_run_caching_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The evaluationRunCachingSettings. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.EvaluationRunCachingSettings + getEvaluationRunCachingSettings() { + return evaluationRunCachingSettings_ == null + ? com.google.cloud.ces.v1beta.EvaluationRunCachingSettings.getDefaultInstance() + : evaluationRunCachingSettings_; + } + + /** + * + * + *
                +   * Optional. The caching settings to use for the evaluation run.
                +   * 
                + * + * + * .google.cloud.ces.v1beta.EvaluationRunCachingSettings evaluation_run_caching_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.EvaluationRunCachingSettingsOrBuilder + getEvaluationRunCachingSettingsOrBuilder() { + return evaluationRunCachingSettings_ == null + ? com.google.cloud.ces.v1beta.EvaluationRunCachingSettings.getDefaultInstance() + : evaluationRunCachingSettings_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -752,6 +813,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(6, scenarioExecutionMode_); } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(7, getEvaluationRunCachingSettings()); + } getUnknownFields().writeTo(output); } @@ -797,6 +861,11 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, scenarioExecutionMode_); } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, getEvaluationRunCachingSettings()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -824,6 +893,11 @@ public boolean equals(final java.lang.Object obj) { if (!getMetricsConfig().equals(other.getMetricsConfig())) return false; } if (scenarioExecutionMode_ != other.scenarioExecutionMode_) return false; + if (hasEvaluationRunCachingSettings() != other.hasEvaluationRunCachingSettings()) return false; + if (hasEvaluationRunCachingSettings()) { + if (!getEvaluationRunCachingSettings().equals(other.getEvaluationRunCachingSettings())) + return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -849,6 +923,10 @@ public int hashCode() { } hash = (37 * hash) + SCENARIO_EXECUTION_MODE_FIELD_NUMBER; hash = (53 * hash) + scenarioExecutionMode_; + if (hasEvaluationRunCachingSettings()) { + hash = (37 * hash) + EVALUATION_RUN_CACHING_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getEvaluationRunCachingSettings().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -991,6 +1069,7 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { internalGetMetricsConfigFieldBuilder(); + internalGetEvaluationRunCachingSettingsFieldBuilder(); } } @@ -1008,6 +1087,11 @@ public Builder clear() { metricsConfigBuilder_ = null; } scenarioExecutionMode_ = 0; + evaluationRunCachingSettings_ = null; + if (evaluationRunCachingSettingsBuilder_ != null) { + evaluationRunCachingSettingsBuilder_.dispose(); + evaluationRunCachingSettingsBuilder_ = null; + } return this; } @@ -1065,6 +1149,13 @@ private void buildPartial0(com.google.cloud.ces.v1beta.EvaluationSettings result if (((from_bitField0_ & 0x00000020) != 0)) { result.scenarioExecutionMode_ = scenarioExecutionMode_; } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.evaluationRunCachingSettings_ = + evaluationRunCachingSettingsBuilder_ == null + ? evaluationRunCachingSettings_ + : evaluationRunCachingSettingsBuilder_.build(); + to_bitField0_ |= 0x00000002; + } result.bitField0_ |= to_bitField0_; } @@ -1100,6 +1191,9 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.EvaluationSettings other) { if (other.scenarioExecutionMode_ != 0) { setScenarioExecutionModeValue(other.getScenarioExecutionModeValue()); } + if (other.hasEvaluationRunCachingSettings()) { + mergeEvaluationRunCachingSettings(other.getEvaluationRunCachingSettings()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1163,6 +1257,14 @@ public Builder mergeFrom( bitField0_ |= 0x00000020; break; } // case 48 + case 58: + { + input.readMessage( + internalGetEvaluationRunCachingSettingsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1964,6 +2066,225 @@ public Builder clearScenarioExecutionMode() { return this; } + private com.google.cloud.ces.v1beta.EvaluationRunCachingSettings evaluationRunCachingSettings_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.EvaluationRunCachingSettings, + com.google.cloud.ces.v1beta.EvaluationRunCachingSettings.Builder, + com.google.cloud.ces.v1beta.EvaluationRunCachingSettingsOrBuilder> + evaluationRunCachingSettingsBuilder_; + + /** + * + * + *
                +     * Optional. The caching settings to use for the evaluation run.
                +     * 
                + * + * + * .google.cloud.ces.v1beta.EvaluationRunCachingSettings evaluation_run_caching_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the evaluationRunCachingSettings field is set. + */ + public boolean hasEvaluationRunCachingSettings() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
                +     * Optional. The caching settings to use for the evaluation run.
                +     * 
                + * + * + * .google.cloud.ces.v1beta.EvaluationRunCachingSettings evaluation_run_caching_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The evaluationRunCachingSettings. + */ + public com.google.cloud.ces.v1beta.EvaluationRunCachingSettings + getEvaluationRunCachingSettings() { + if (evaluationRunCachingSettingsBuilder_ == null) { + return evaluationRunCachingSettings_ == null + ? com.google.cloud.ces.v1beta.EvaluationRunCachingSettings.getDefaultInstance() + : evaluationRunCachingSettings_; + } else { + return evaluationRunCachingSettingsBuilder_.getMessage(); + } + } + + /** + * + * + *
                +     * Optional. The caching settings to use for the evaluation run.
                +     * 
                + * + * + * .google.cloud.ces.v1beta.EvaluationRunCachingSettings evaluation_run_caching_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEvaluationRunCachingSettings( + com.google.cloud.ces.v1beta.EvaluationRunCachingSettings value) { + if (evaluationRunCachingSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + evaluationRunCachingSettings_ = value; + } else { + evaluationRunCachingSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. The caching settings to use for the evaluation run.
                +     * 
                + * + * + * .google.cloud.ces.v1beta.EvaluationRunCachingSettings evaluation_run_caching_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEvaluationRunCachingSettings( + com.google.cloud.ces.v1beta.EvaluationRunCachingSettings.Builder builderForValue) { + if (evaluationRunCachingSettingsBuilder_ == null) { + evaluationRunCachingSettings_ = builderForValue.build(); + } else { + evaluationRunCachingSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. The caching settings to use for the evaluation run.
                +     * 
                + * + * + * .google.cloud.ces.v1beta.EvaluationRunCachingSettings evaluation_run_caching_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeEvaluationRunCachingSettings( + com.google.cloud.ces.v1beta.EvaluationRunCachingSettings value) { + if (evaluationRunCachingSettingsBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && evaluationRunCachingSettings_ != null + && evaluationRunCachingSettings_ + != com.google.cloud.ces.v1beta.EvaluationRunCachingSettings.getDefaultInstance()) { + getEvaluationRunCachingSettingsBuilder().mergeFrom(value); + } else { + evaluationRunCachingSettings_ = value; + } + } else { + evaluationRunCachingSettingsBuilder_.mergeFrom(value); + } + if (evaluationRunCachingSettings_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
                +     * Optional. The caching settings to use for the evaluation run.
                +     * 
                + * + * + * .google.cloud.ces.v1beta.EvaluationRunCachingSettings evaluation_run_caching_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearEvaluationRunCachingSettings() { + bitField0_ = (bitField0_ & ~0x00000040); + evaluationRunCachingSettings_ = null; + if (evaluationRunCachingSettingsBuilder_ != null) { + evaluationRunCachingSettingsBuilder_.dispose(); + evaluationRunCachingSettingsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. The caching settings to use for the evaluation run.
                +     * 
                + * + * + * .google.cloud.ces.v1beta.EvaluationRunCachingSettings evaluation_run_caching_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.EvaluationRunCachingSettings.Builder + getEvaluationRunCachingSettingsBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetEvaluationRunCachingSettingsFieldBuilder().getBuilder(); + } + + /** + * + * + *
                +     * Optional. The caching settings to use for the evaluation run.
                +     * 
                + * + * + * .google.cloud.ces.v1beta.EvaluationRunCachingSettings evaluation_run_caching_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.EvaluationRunCachingSettingsOrBuilder + getEvaluationRunCachingSettingsOrBuilder() { + if (evaluationRunCachingSettingsBuilder_ != null) { + return evaluationRunCachingSettingsBuilder_.getMessageOrBuilder(); + } else { + return evaluationRunCachingSettings_ == null + ? com.google.cloud.ces.v1beta.EvaluationRunCachingSettings.getDefaultInstance() + : evaluationRunCachingSettings_; + } + } + + /** + * + * + *
                +     * Optional. The caching settings to use for the evaluation run.
                +     * 
                + * + * + * .google.cloud.ces.v1beta.EvaluationRunCachingSettings evaluation_run_caching_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.EvaluationRunCachingSettings, + com.google.cloud.ces.v1beta.EvaluationRunCachingSettings.Builder, + com.google.cloud.ces.v1beta.EvaluationRunCachingSettingsOrBuilder> + internalGetEvaluationRunCachingSettingsFieldBuilder() { + if (evaluationRunCachingSettingsBuilder_ == null) { + evaluationRunCachingSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.EvaluationRunCachingSettings, + com.google.cloud.ces.v1beta.EvaluationRunCachingSettings.Builder, + com.google.cloud.ces.v1beta.EvaluationRunCachingSettingsOrBuilder>( + getEvaluationRunCachingSettings(), getParentForChildren(), isClean()); + evaluationRunCachingSettings_ = null; + } + return evaluationRunCachingSettingsBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.EvaluationSettings) } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationSettingsOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationSettingsOrBuilder.java index 6f9c2b6ccf0a..c6de3f79477c 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationSettingsOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationSettingsOrBuilder.java @@ -227,4 +227,48 @@ public interface EvaluationSettingsOrBuilder * @return The scenarioExecutionMode. */ com.google.cloud.ces.v1beta.EvaluationSettings.ScenarioExecutionMode getScenarioExecutionMode(); + + /** + * + * + *
                +   * Optional. The caching settings to use for the evaluation run.
                +   * 
                + * + * + * .google.cloud.ces.v1beta.EvaluationRunCachingSettings evaluation_run_caching_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the evaluationRunCachingSettings field is set. + */ + boolean hasEvaluationRunCachingSettings(); + + /** + * + * + *
                +   * Optional. The caching settings to use for the evaluation run.
                +   * 
                + * + * + * .google.cloud.ces.v1beta.EvaluationRunCachingSettings evaluation_run_caching_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The evaluationRunCachingSettings. + */ + com.google.cloud.ces.v1beta.EvaluationRunCachingSettings getEvaluationRunCachingSettings(); + + /** + * + * + *
                +   * Optional. The caching settings to use for the evaluation run.
                +   * 
                + * + * + * .google.cloud.ces.v1beta.EvaluationRunCachingSettings evaluation_run_caching_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1beta.EvaluationRunCachingSettingsOrBuilder + getEvaluationRunCachingSettingsOrBuilder(); } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExperimentConfig.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExperimentConfig.java index 9bb83df8ce1a..b647c25e227d 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExperimentConfig.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExperimentConfig.java @@ -92,7 +92,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * * *
                -     * Pending state. Experiment is pending and not valid.
                +     * Deprecated: This state is no longer used.
                      * 
                * * PENDING = 1; @@ -112,7 +112,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * * *
                -     * Done state. Experiment is done and no longer valid.
                +     * Deprecated: This state is no longer used.
                      * 
                * * DONE = 3; @@ -122,7 +122,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * * *
                -     * Expired state. Experiment is expired and no longer valid.
                +     * Deprecated: This state is no longer used.
                      * 
                * * EXPIRED = 4; @@ -156,7 +156,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * * *
                -     * Pending state. Experiment is pending and not valid.
                +     * Deprecated: This state is no longer used.
                      * 
                * * PENDING = 1; @@ -178,7 +178,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * * *
                -     * Done state. Experiment is done and no longer valid.
                +     * Deprecated: This state is no longer used.
                      * 
                * * DONE = 3; @@ -189,7 +189,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * * *
                -     * Expired state. Experiment is expired and no longer valid.
                +     * Deprecated: This state is no longer used.
                      * 
                * * EXPIRED = 4; diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GenerateAppResourceRequest.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GenerateAppResourceRequest.java index d850bd815ba4..6bd14b0dc108 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GenerateAppResourceRequest.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GenerateAppResourceRequest.java @@ -9700,6 +9700,38 @@ public interface QualityReportGenerationConfigOrBuilder * @return The bytes for evaluationRun. */ com.google.protobuf.ByteString getEvaluationRunBytes(); + + /** + * + * + *
                +     * Optional. The loss attribution algorithm to use.
                +     * 
                + * + * + * .google.cloud.ces.v1beta.GenerateAppResourceRequest.QualityReportGenerationConfig.LossAttributionAlgorithm algorithm = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for algorithm. + */ + int getAlgorithmValue(); + + /** + * + * + *
                +     * Optional. The loss attribution algorithm to use.
                +     * 
                + * + * + * .google.cloud.ces.v1beta.GenerateAppResourceRequest.QualityReportGenerationConfig.LossAttributionAlgorithm algorithm = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The algorithm. + */ + com.google.cloud.ces.v1beta.GenerateAppResourceRequest.QualityReportGenerationConfig + .LossAttributionAlgorithm + getAlgorithm(); } /** @@ -9736,6 +9768,7 @@ private QualityReportGenerationConfig(com.google.protobuf.GeneratedMessage.Build private QualityReportGenerationConfig() { evaluationRun_ = ""; + algorithm_ = 0; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -9755,6 +9788,182 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .Builder.class); } + /** + * + * + *
                +     * The algorithm to use for loss attribution.
                +     * 
                + * + * Protobuf enum {@code + * google.cloud.ces.v1beta.GenerateAppResourceRequest.QualityReportGenerationConfig.LossAttributionAlgorithm} + */ + public enum LossAttributionAlgorithm implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                +       * Unspecified.
                +       * 
                + * + * LOSS_ATTRIBUTION_ALGORITHM_UNSPECIFIED = 0; + */ + LOSS_ATTRIBUTION_ALGORITHM_UNSPECIFIED(0), + /** + * + * + *
                +       * App-centric loss attribution. Treats the app as a single unit.
                +       * 
                + * + * APP_CENTRIC = 1; + */ + APP_CENTRIC(1), + /** + * + * + *
                +       * Agent-centric loss attribution. Attributes loss to individual agents.
                +       * 
                + * + * AGENT_CENTRIC = 2; + */ + AGENT_CENTRIC(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "LossAttributionAlgorithm"); + } + + /** + * + * + *
                +       * Unspecified.
                +       * 
                + * + * LOSS_ATTRIBUTION_ALGORITHM_UNSPECIFIED = 0; + */ + public static final int LOSS_ATTRIBUTION_ALGORITHM_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                +       * App-centric loss attribution. Treats the app as a single unit.
                +       * 
                + * + * APP_CENTRIC = 1; + */ + public static final int APP_CENTRIC_VALUE = 1; + + /** + * + * + *
                +       * Agent-centric loss attribution. Attributes loss to individual agents.
                +       * 
                + * + * AGENT_CENTRIC = 2; + */ + public static final int AGENT_CENTRIC_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 LossAttributionAlgorithm 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 LossAttributionAlgorithm forNumber(int value) { + switch (value) { + case 0: + return LOSS_ATTRIBUTION_ALGORITHM_UNSPECIFIED; + case 1: + return APP_CENTRIC; + case 2: + return AGENT_CENTRIC; + 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 LossAttributionAlgorithm findValueByNumber(int number) { + return LossAttributionAlgorithm.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.ces.v1beta.GenerateAppResourceRequest.QualityReportGenerationConfig + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final LossAttributionAlgorithm[] VALUES = values(); + + public static LossAttributionAlgorithm 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 LossAttributionAlgorithm(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1beta.GenerateAppResourceRequest.QualityReportGenerationConfig.LossAttributionAlgorithm) + } + public static final int EVALUATION_RUN_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -9812,6 +10021,55 @@ public com.google.protobuf.ByteString getEvaluationRunBytes() { } } + public static final int ALGORITHM_FIELD_NUMBER = 2; + private int algorithm_ = 0; + + /** + * + * + *
                +     * Optional. The loss attribution algorithm to use.
                +     * 
                + * + * + * .google.cloud.ces.v1beta.GenerateAppResourceRequest.QualityReportGenerationConfig.LossAttributionAlgorithm algorithm = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for algorithm. + */ + @java.lang.Override + public int getAlgorithmValue() { + return algorithm_; + } + + /** + * + * + *
                +     * Optional. The loss attribution algorithm to use.
                +     * 
                + * + * + * .google.cloud.ces.v1beta.GenerateAppResourceRequest.QualityReportGenerationConfig.LossAttributionAlgorithm algorithm = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The algorithm. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.GenerateAppResourceRequest.QualityReportGenerationConfig + .LossAttributionAlgorithm + getAlgorithm() { + com.google.cloud.ces.v1beta.GenerateAppResourceRequest.QualityReportGenerationConfig + .LossAttributionAlgorithm + result = + com.google.cloud.ces.v1beta.GenerateAppResourceRequest.QualityReportGenerationConfig + .LossAttributionAlgorithm.forNumber(algorithm_); + return result == null + ? com.google.cloud.ces.v1beta.GenerateAppResourceRequest.QualityReportGenerationConfig + .LossAttributionAlgorithm.UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -9829,6 +10087,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(evaluationRun_)) { com.google.protobuf.GeneratedMessage.writeString(output, 1, evaluationRun_); } + if (algorithm_ + != com.google.cloud.ces.v1beta.GenerateAppResourceRequest.QualityReportGenerationConfig + .LossAttributionAlgorithm.LOSS_ATTRIBUTION_ALGORITHM_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, algorithm_); + } getUnknownFields().writeTo(output); } @@ -9841,6 +10105,12 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(evaluationRun_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, evaluationRun_); } + if (algorithm_ + != com.google.cloud.ces.v1beta.GenerateAppResourceRequest.QualityReportGenerationConfig + .LossAttributionAlgorithm.LOSS_ATTRIBUTION_ALGORITHM_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, algorithm_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -9861,6 +10131,7 @@ public boolean equals(final java.lang.Object obj) { obj; if (!getEvaluationRun().equals(other.getEvaluationRun())) return false; + if (algorithm_ != other.algorithm_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -9874,6 +10145,8 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + EVALUATION_RUN_FIELD_NUMBER; hash = (53 * hash) + getEvaluationRun().hashCode(); + hash = (37 * hash) + ALGORITHM_FIELD_NUMBER; + hash = (53 * hash) + algorithm_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -10040,6 +10313,7 @@ public Builder clear() { super.clear(); bitField0_ = 0; evaluationRun_ = ""; + algorithm_ = 0; return this; } @@ -10088,6 +10362,9 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000001) != 0)) { result.evaluationRun_ = evaluationRun_; } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.algorithm_ = algorithm_; + } } @java.lang.Override @@ -10115,6 +10392,9 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; onChanged(); } + if (other.algorithm_ != 0) { + setAlgorithmValue(other.getAlgorithmValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -10147,6 +10427,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 10 + case 16: + { + algorithm_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -10287,6 +10573,122 @@ public Builder setEvaluationRunBytes(com.google.protobuf.ByteString value) { return this; } + private int algorithm_ = 0; + + /** + * + * + *
                +       * Optional. The loss attribution algorithm to use.
                +       * 
                + * + * + * .google.cloud.ces.v1beta.GenerateAppResourceRequest.QualityReportGenerationConfig.LossAttributionAlgorithm algorithm = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for algorithm. + */ + @java.lang.Override + public int getAlgorithmValue() { + return algorithm_; + } + + /** + * + * + *
                +       * Optional. The loss attribution algorithm to use.
                +       * 
                + * + * + * .google.cloud.ces.v1beta.GenerateAppResourceRequest.QualityReportGenerationConfig.LossAttributionAlgorithm algorithm = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for algorithm to set. + * @return This builder for chaining. + */ + public Builder setAlgorithmValue(int value) { + algorithm_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                +       * Optional. The loss attribution algorithm to use.
                +       * 
                + * + * + * .google.cloud.ces.v1beta.GenerateAppResourceRequest.QualityReportGenerationConfig.LossAttributionAlgorithm algorithm = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The algorithm. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.GenerateAppResourceRequest.QualityReportGenerationConfig + .LossAttributionAlgorithm + getAlgorithm() { + com.google.cloud.ces.v1beta.GenerateAppResourceRequest.QualityReportGenerationConfig + .LossAttributionAlgorithm + result = + com.google.cloud.ces.v1beta.GenerateAppResourceRequest.QualityReportGenerationConfig + .LossAttributionAlgorithm.forNumber(algorithm_); + return result == null + ? com.google.cloud.ces.v1beta.GenerateAppResourceRequest.QualityReportGenerationConfig + .LossAttributionAlgorithm.UNRECOGNIZED + : result; + } + + /** + * + * + *
                +       * Optional. The loss attribution algorithm to use.
                +       * 
                + * + * + * .google.cloud.ces.v1beta.GenerateAppResourceRequest.QualityReportGenerationConfig.LossAttributionAlgorithm algorithm = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The algorithm to set. + * @return This builder for chaining. + */ + public Builder setAlgorithm( + com.google.cloud.ces.v1beta.GenerateAppResourceRequest.QualityReportGenerationConfig + .LossAttributionAlgorithm + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + algorithm_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                +       * Optional. The loss attribution algorithm to use.
                +       * 
                + * + * + * .google.cloud.ces.v1beta.GenerateAppResourceRequest.QualityReportGenerationConfig.LossAttributionAlgorithm algorithm = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearAlgorithm() { + bitField0_ = (bitField0_ & ~0x00000002); + algorithm_ = 0; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.GenerateAppResourceRequest.QualityReportGenerationConfig) } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GenerateEvaluationRequest.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GenerateEvaluationRequest.java index 51fd82d767d3..2e48dc3bebd2 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GenerateEvaluationRequest.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GenerateEvaluationRequest.java @@ -55,6 +55,7 @@ private GenerateEvaluationRequest(com.google.protobuf.GeneratedMessage.Builder + * The type of evaluation to generate. + * + * + * Protobuf enum {@code google.cloud.ces.v1beta.GenerateEvaluationRequest.EvaluationType} + */ + public enum EvaluationType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                +     * Unspecified type. Defaults to GOLDEN.
                +     * 
                + * + * EVALUATION_TYPE_UNSPECIFIED = 0; + */ + EVALUATION_TYPE_UNSPECIFIED(0), + /** + * + * + *
                +     * Golden evaluation.
                +     * 
                + * + * GOLDEN = 1; + */ + GOLDEN(1), + /** + * + * + *
                +     * Scenario evaluation.
                +     * 
                + * + * SCENARIO = 2; + */ + SCENARIO(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "EvaluationType"); + } + + /** + * + * + *
                +     * Unspecified type. Defaults to GOLDEN.
                +     * 
                + * + * EVALUATION_TYPE_UNSPECIFIED = 0; + */ + public static final int EVALUATION_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                +     * Golden evaluation.
                +     * 
                + * + * GOLDEN = 1; + */ + public static final int GOLDEN_VALUE = 1; + + /** + * + * + *
                +     * Scenario evaluation.
                +     * 
                + * + * SCENARIO = 2; + */ + public static final int SCENARIO_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 EvaluationType 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 EvaluationType forNumber(int value) { + switch (value) { + case 0: + return EVALUATION_TYPE_UNSPECIFIED; + case 1: + return GOLDEN; + case 2: + return SCENARIO; + 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 EvaluationType findValueByNumber(int number) { + return EvaluationType.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.ces.v1beta.GenerateEvaluationRequest.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final EvaluationType[] VALUES = values(); + + public static EvaluationType 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 EvaluationType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1beta.GenerateEvaluationRequest.EvaluationType) + } + public static final int CONVERSATION_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -149,7 +321,7 @@ public com.google.protobuf.ByteString getConversationBytes() { * * * @deprecated google.cloud.ces.v1beta.GenerateEvaluationRequest.source is deprecated. See - * google/cloud/ces/v1beta/evaluation_service.proto;l=531 + * google/cloud/ces/v1beta/evaluation_service.proto;l=543 * @return The enum numeric value on the wire for source. */ @java.lang.Override @@ -171,7 +343,7 @@ public int getSourceValue() { * * * @deprecated google.cloud.ces.v1beta.GenerateEvaluationRequest.source is deprecated. See - * google/cloud/ces/v1beta/evaluation_service.proto;l=531 + * google/cloud/ces/v1beta/evaluation_service.proto;l=543 * @return The source. */ @java.lang.Override @@ -182,6 +354,52 @@ public com.google.cloud.ces.v1beta.Conversation.Source getSource() { return result == null ? com.google.cloud.ces.v1beta.Conversation.Source.UNRECOGNIZED : result; } + public static final int EVALUATION_TYPE_FIELD_NUMBER = 3; + private int evaluationType_ = 0; + + /** + * + * + *
                +   * Optional. The type of evaluation to generate. Defaults to GOLDEN if
                +   * unspecified.
                +   * 
                + * + * + * .google.cloud.ces.v1beta.GenerateEvaluationRequest.EvaluationType evaluation_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for evaluationType. + */ + @java.lang.Override + public int getEvaluationTypeValue() { + return evaluationType_; + } + + /** + * + * + *
                +   * Optional. The type of evaluation to generate. Defaults to GOLDEN if
                +   * unspecified.
                +   * 
                + * + * + * .google.cloud.ces.v1beta.GenerateEvaluationRequest.EvaluationType evaluation_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The evaluationType. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.GenerateEvaluationRequest.EvaluationType getEvaluationType() { + com.google.cloud.ces.v1beta.GenerateEvaluationRequest.EvaluationType result = + com.google.cloud.ces.v1beta.GenerateEvaluationRequest.EvaluationType.forNumber( + evaluationType_); + return result == null + ? com.google.cloud.ces.v1beta.GenerateEvaluationRequest.EvaluationType.UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -202,6 +420,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (source_ != com.google.cloud.ces.v1beta.Conversation.Source.SOURCE_UNSPECIFIED.getNumber()) { output.writeEnum(2, source_); } + if (evaluationType_ + != com.google.cloud.ces.v1beta.GenerateEvaluationRequest.EvaluationType + .EVALUATION_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, evaluationType_); + } getUnknownFields().writeTo(output); } @@ -217,6 +441,12 @@ public int getSerializedSize() { if (source_ != com.google.cloud.ces.v1beta.Conversation.Source.SOURCE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, source_); } + if (evaluationType_ + != com.google.cloud.ces.v1beta.GenerateEvaluationRequest.EvaluationType + .EVALUATION_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, evaluationType_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -235,6 +465,7 @@ public boolean equals(final java.lang.Object obj) { if (!getConversation().equals(other.getConversation())) return false; if (source_ != other.source_) return false; + if (evaluationType_ != other.evaluationType_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -250,6 +481,8 @@ public int hashCode() { hash = (53 * hash) + getConversation().hashCode(); hash = (37 * hash) + SOURCE_FIELD_NUMBER; hash = (53 * hash) + source_; + hash = (37 * hash) + EVALUATION_TYPE_FIELD_NUMBER; + hash = (53 * hash) + evaluationType_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -394,6 +627,7 @@ public Builder clear() { bitField0_ = 0; conversation_ = ""; source_ = 0; + evaluationType_ = 0; return this; } @@ -436,6 +670,9 @@ private void buildPartial0(com.google.cloud.ces.v1beta.GenerateEvaluationRequest if (((from_bitField0_ & 0x00000002) != 0)) { result.source_ = source_; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.evaluationType_ = evaluationType_; + } } @java.lang.Override @@ -459,6 +696,9 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.GenerateEvaluationRequest o if (other.source_ != 0) { setSourceValue(other.getSourceValue()); } + if (other.evaluationType_ != 0) { + setEvaluationTypeValue(other.getEvaluationTypeValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -497,6 +737,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 16 + case 24: + { + evaluationType_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -662,7 +908,7 @@ public Builder setConversationBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.cloud.ces.v1beta.GenerateEvaluationRequest.source is deprecated. See - * google/cloud/ces/v1beta/evaluation_service.proto;l=531 + * google/cloud/ces/v1beta/evaluation_service.proto;l=543 * @return The enum numeric value on the wire for source. */ @java.lang.Override @@ -684,7 +930,7 @@ public int getSourceValue() { * * * @deprecated google.cloud.ces.v1beta.GenerateEvaluationRequest.source is deprecated. See - * google/cloud/ces/v1beta/evaluation_service.proto;l=531 + * google/cloud/ces/v1beta/evaluation_service.proto;l=543 * @param value The enum numeric value on the wire for source to set. * @return This builder for chaining. */ @@ -709,7 +955,7 @@ public Builder setSourceValue(int value) { * * * @deprecated google.cloud.ces.v1beta.GenerateEvaluationRequest.source is deprecated. See - * google/cloud/ces/v1beta/evaluation_service.proto;l=531 + * google/cloud/ces/v1beta/evaluation_service.proto;l=543 * @return The source. */ @java.lang.Override @@ -733,7 +979,7 @@ public com.google.cloud.ces.v1beta.Conversation.Source getSource() { * * * @deprecated google.cloud.ces.v1beta.GenerateEvaluationRequest.source is deprecated. See - * google/cloud/ces/v1beta/evaluation_service.proto;l=531 + * google/cloud/ces/v1beta/evaluation_service.proto;l=543 * @param value The source to set. * @return This builder for chaining. */ @@ -761,7 +1007,7 @@ public Builder setSource(com.google.cloud.ces.v1beta.Conversation.Source value) * * * @deprecated google.cloud.ces.v1beta.GenerateEvaluationRequest.source is deprecated. See - * google/cloud/ces/v1beta/evaluation_service.proto;l=531 + * google/cloud/ces/v1beta/evaluation_service.proto;l=543 * @return This builder for chaining. */ @java.lang.Deprecated @@ -772,6 +1018,121 @@ public Builder clearSource() { return this; } + private int evaluationType_ = 0; + + /** + * + * + *
                +     * Optional. The type of evaluation to generate. Defaults to GOLDEN if
                +     * unspecified.
                +     * 
                + * + * + * .google.cloud.ces.v1beta.GenerateEvaluationRequest.EvaluationType evaluation_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for evaluationType. + */ + @java.lang.Override + public int getEvaluationTypeValue() { + return evaluationType_; + } + + /** + * + * + *
                +     * Optional. The type of evaluation to generate. Defaults to GOLDEN if
                +     * unspecified.
                +     * 
                + * + * + * .google.cloud.ces.v1beta.GenerateEvaluationRequest.EvaluationType evaluation_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for evaluationType to set. + * @return This builder for chaining. + */ + public Builder setEvaluationTypeValue(int value) { + evaluationType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. The type of evaluation to generate. Defaults to GOLDEN if
                +     * unspecified.
                +     * 
                + * + * + * .google.cloud.ces.v1beta.GenerateEvaluationRequest.EvaluationType evaluation_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The evaluationType. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.GenerateEvaluationRequest.EvaluationType + getEvaluationType() { + com.google.cloud.ces.v1beta.GenerateEvaluationRequest.EvaluationType result = + com.google.cloud.ces.v1beta.GenerateEvaluationRequest.EvaluationType.forNumber( + evaluationType_); + return result == null + ? com.google.cloud.ces.v1beta.GenerateEvaluationRequest.EvaluationType.UNRECOGNIZED + : result; + } + + /** + * + * + *
                +     * Optional. The type of evaluation to generate. Defaults to GOLDEN if
                +     * unspecified.
                +     * 
                + * + * + * .google.cloud.ces.v1beta.GenerateEvaluationRequest.EvaluationType evaluation_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The evaluationType to set. + * @return This builder for chaining. + */ + public Builder setEvaluationType( + com.google.cloud.ces.v1beta.GenerateEvaluationRequest.EvaluationType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + evaluationType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. The type of evaluation to generate. Defaults to GOLDEN if
                +     * unspecified.
                +     * 
                + * + * + * .google.cloud.ces.v1beta.GenerateEvaluationRequest.EvaluationType evaluation_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearEvaluationType() { + bitField0_ = (bitField0_ & ~0x00000004); + evaluationType_ = 0; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.GenerateEvaluationRequest) } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GenerateEvaluationRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GenerateEvaluationRequestOrBuilder.java index 16df4ed27d51..1927f55e14f3 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GenerateEvaluationRequestOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GenerateEvaluationRequestOrBuilder.java @@ -73,7 +73,7 @@ public interface GenerateEvaluationRequestOrBuilder * * * @deprecated google.cloud.ces.v1beta.GenerateEvaluationRequest.source is deprecated. See - * google/cloud/ces/v1beta/evaluation_service.proto;l=531 + * google/cloud/ces/v1beta/evaluation_service.proto;l=543 * @return The enum numeric value on the wire for source. */ @java.lang.Deprecated @@ -92,9 +92,41 @@ public interface GenerateEvaluationRequestOrBuilder * * * @deprecated google.cloud.ces.v1beta.GenerateEvaluationRequest.source is deprecated. See - * google/cloud/ces/v1beta/evaluation_service.proto;l=531 + * google/cloud/ces/v1beta/evaluation_service.proto;l=543 * @return The source. */ @java.lang.Deprecated com.google.cloud.ces.v1beta.Conversation.Source getSource(); + + /** + * + * + *
                +   * Optional. The type of evaluation to generate. Defaults to GOLDEN if
                +   * unspecified.
                +   * 
                + * + * + * .google.cloud.ces.v1beta.GenerateEvaluationRequest.EvaluationType evaluation_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for evaluationType. + */ + int getEvaluationTypeValue(); + + /** + * + * + *
                +   * Optional. The type of evaluation to generate. Defaults to GOLDEN if
                +   * unspecified.
                +   * 
                + * + * + * .google.cloud.ces.v1beta.GenerateEvaluationRequest.EvaluationType evaluation_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The evaluationType. + */ + com.google.cloud.ces.v1beta.GenerateEvaluationRequest.EvaluationType getEvaluationType(); } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/InstagramCredentials.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/InstagramCredentials.java new file mode 100644 index 000000000000..7314bcdc7b28 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/InstagramCredentials.java @@ -0,0 +1,785 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/deployment.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1beta; + +/** + * + * + *
                + * Ephemeral Meta credentials for Instagram native integration.
                + * 
                + * + * Protobuf type {@code google.cloud.ces.v1beta.InstagramCredentials} + */ +@com.google.protobuf.Generated +public final class InstagramCredentials extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.InstagramCredentials) + InstagramCredentialsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "InstagramCredentials"); + } + + // Use InstagramCredentials.newBuilder() to construct. + private InstagramCredentials(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private InstagramCredentials() { + authCode_ = ""; + conversationProfileId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.ChannelProfileProto + .internal_static_google_cloud_ces_v1beta_InstagramCredentials_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.ChannelProfileProto + .internal_static_google_cloud_ces_v1beta_InstagramCredentials_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.InstagramCredentials.class, + com.google.cloud.ces.v1beta.InstagramCredentials.Builder.class); + } + + public static final int AUTH_CODE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object authCode_ = ""; + + /** + * + * + *
                +   * Required. The Meta auth code provided by the embedded signup flow.
                +   * 
                + * + * string auth_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The authCode. + */ + @java.lang.Override + public java.lang.String getAuthCode() { + java.lang.Object ref = authCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + authCode_ = s; + return s; + } + } + + /** + * + * + *
                +   * Required. The Meta auth code provided by the embedded signup flow.
                +   * 
                + * + * string auth_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for authCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAuthCodeBytes() { + java.lang.Object ref = authCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + authCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONVERSATION_PROFILE_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object conversationProfileId_ = ""; + + /** + * + * + *
                +   * Required. The Conversation Profile ID to use for the deployment.
                +   * 
                + * + * string conversation_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The conversationProfileId. + */ + @java.lang.Override + public java.lang.String getConversationProfileId() { + java.lang.Object ref = conversationProfileId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + conversationProfileId_ = s; + return s; + } + } + + /** + * + * + *
                +   * Required. The Conversation Profile ID to use for the deployment.
                +   * 
                + * + * string conversation_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for conversationProfileId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getConversationProfileIdBytes() { + java.lang.Object ref = conversationProfileId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + conversationProfileId_ = 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(authCode_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, authCode_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(conversationProfileId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, conversationProfileId_); + } + 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(authCode_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, authCode_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(conversationProfileId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, conversationProfileId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1beta.InstagramCredentials)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.InstagramCredentials other = + (com.google.cloud.ces.v1beta.InstagramCredentials) obj; + + if (!getAuthCode().equals(other.getAuthCode())) return false; + if (!getConversationProfileId().equals(other.getConversationProfileId())) return false; + if (!getUnknownFields().equals(other.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_CODE_FIELD_NUMBER; + hash = (53 * hash) + getAuthCode().hashCode(); + hash = (37 * hash) + CONVERSATION_PROFILE_ID_FIELD_NUMBER; + hash = (53 * hash) + getConversationProfileId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.InstagramCredentials parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.InstagramCredentials parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.InstagramCredentials parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.InstagramCredentials parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.InstagramCredentials parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.InstagramCredentials parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.InstagramCredentials parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.InstagramCredentials parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.InstagramCredentials parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.InstagramCredentials parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.InstagramCredentials parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.InstagramCredentials parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1beta.InstagramCredentials prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                +   * Ephemeral Meta credentials for Instagram native integration.
                +   * 
                + * + * Protobuf type {@code google.cloud.ces.v1beta.InstagramCredentials} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.InstagramCredentials) + com.google.cloud.ces.v1beta.InstagramCredentialsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.ChannelProfileProto + .internal_static_google_cloud_ces_v1beta_InstagramCredentials_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.ChannelProfileProto + .internal_static_google_cloud_ces_v1beta_InstagramCredentials_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.InstagramCredentials.class, + com.google.cloud.ces.v1beta.InstagramCredentials.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.InstagramCredentials.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + authCode_ = ""; + conversationProfileId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.ChannelProfileProto + .internal_static_google_cloud_ces_v1beta_InstagramCredentials_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.InstagramCredentials getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.InstagramCredentials.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.InstagramCredentials build() { + com.google.cloud.ces.v1beta.InstagramCredentials result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.InstagramCredentials buildPartial() { + com.google.cloud.ces.v1beta.InstagramCredentials result = + new com.google.cloud.ces.v1beta.InstagramCredentials(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1beta.InstagramCredentials result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.authCode_ = authCode_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.conversationProfileId_ = conversationProfileId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.InstagramCredentials) { + return mergeFrom((com.google.cloud.ces.v1beta.InstagramCredentials) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.InstagramCredentials other) { + if (other == com.google.cloud.ces.v1beta.InstagramCredentials.getDefaultInstance()) + return this; + if (!other.getAuthCode().isEmpty()) { + authCode_ = other.authCode_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getConversationProfileId().isEmpty()) { + conversationProfileId_ = other.conversationProfileId_; + 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: + { + authCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + conversationProfileId_ = 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 authCode_ = ""; + + /** + * + * + *
                +     * Required. The Meta auth code provided by the embedded signup flow.
                +     * 
                + * + * string auth_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The authCode. + */ + public java.lang.String getAuthCode() { + java.lang.Object ref = authCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + authCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                +     * Required. The Meta auth code provided by the embedded signup flow.
                +     * 
                + * + * string auth_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for authCode. + */ + public com.google.protobuf.ByteString getAuthCodeBytes() { + java.lang.Object ref = authCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + authCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                +     * Required. The Meta auth code provided by the embedded signup flow.
                +     * 
                + * + * string auth_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The authCode to set. + * @return This builder for chaining. + */ + public Builder setAuthCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + authCode_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The Meta auth code provided by the embedded signup flow.
                +     * 
                + * + * string auth_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearAuthCode() { + authCode_ = getDefaultInstance().getAuthCode(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The Meta auth code provided by the embedded signup flow.
                +     * 
                + * + * string auth_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for authCode to set. + * @return This builder for chaining. + */ + public Builder setAuthCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + authCode_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object conversationProfileId_ = ""; + + /** + * + * + *
                +     * Required. The Conversation Profile ID to use for the deployment.
                +     * 
                + * + * string conversation_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The conversationProfileId. + */ + public java.lang.String getConversationProfileId() { + java.lang.Object ref = conversationProfileId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + conversationProfileId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                +     * Required. The Conversation Profile ID to use for the deployment.
                +     * 
                + * + * string conversation_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for conversationProfileId. + */ + public com.google.protobuf.ByteString getConversationProfileIdBytes() { + java.lang.Object ref = conversationProfileId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + conversationProfileId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                +     * Required. The Conversation Profile ID to use for the deployment.
                +     * 
                + * + * string conversation_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The conversationProfileId to set. + * @return This builder for chaining. + */ + public Builder setConversationProfileId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + conversationProfileId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The Conversation Profile ID to use for the deployment.
                +     * 
                + * + * string conversation_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearConversationProfileId() { + conversationProfileId_ = getDefaultInstance().getConversationProfileId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The Conversation Profile ID to use for the deployment.
                +     * 
                + * + * string conversation_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for conversationProfileId to set. + * @return This builder for chaining. + */ + public Builder setConversationProfileIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + conversationProfileId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.InstagramCredentials) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.InstagramCredentials) + private static final com.google.cloud.ces.v1beta.InstagramCredentials DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.InstagramCredentials(); + } + + public static com.google.cloud.ces.v1beta.InstagramCredentials getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InstagramCredentials parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.InstagramCredentials getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/InstagramCredentialsOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/InstagramCredentialsOrBuilder.java new file mode 100644 index 000000000000..07a9acac232a --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/InstagramCredentialsOrBuilder.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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/deployment.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public interface InstagramCredentialsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.InstagramCredentials) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                +   * Required. The Meta auth code provided by the embedded signup flow.
                +   * 
                + * + * string auth_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The authCode. + */ + java.lang.String getAuthCode(); + + /** + * + * + *
                +   * Required. The Meta auth code provided by the embedded signup flow.
                +   * 
                + * + * string auth_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for authCode. + */ + com.google.protobuf.ByteString getAuthCodeBytes(); + + /** + * + * + *
                +   * Required. The Conversation Profile ID to use for the deployment.
                +   * 
                + * + * string conversation_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The conversationProfileId. + */ + java.lang.String getConversationProfileId(); + + /** + * + * + *
                +   * Required. The Conversation Profile ID to use for the deployment.
                +   * 
                + * + * string conversation_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for conversationProfileId. + */ + com.google.protobuf.ByteString getConversationProfileIdBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ListEvaluationsRequest.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ListEvaluationsRequest.java index 5535a0d89aca..792a35d6dd63 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ListEvaluationsRequest.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ListEvaluationsRequest.java @@ -230,7 +230,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * string filter = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.ces.v1beta.ListEvaluationsRequest.filter is deprecated. See - * google/cloud/ces/v1beta/evaluation_service.proto;l=823 + * google/cloud/ces/v1beta/evaluation_service.proto;l=839 * @return The filter. */ @java.lang.Override @@ -258,7 +258,7 @@ public java.lang.String getFilter() { * string filter = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.ces.v1beta.ListEvaluationsRequest.filter is deprecated. See - * google/cloud/ces/v1beta/evaluation_service.proto;l=823 + * google/cloud/ces/v1beta/evaluation_service.proto;l=839 * @return The bytes for filter. */ @java.lang.Override @@ -1269,7 +1269,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * string filter = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.ces.v1beta.ListEvaluationsRequest.filter is deprecated. See - * google/cloud/ces/v1beta/evaluation_service.proto;l=823 + * google/cloud/ces/v1beta/evaluation_service.proto;l=839 * @return The filter. */ @java.lang.Deprecated @@ -1296,7 +1296,7 @@ public java.lang.String getFilter() { * string filter = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.ces.v1beta.ListEvaluationsRequest.filter is deprecated. See - * google/cloud/ces/v1beta/evaluation_service.proto;l=823 + * google/cloud/ces/v1beta/evaluation_service.proto;l=839 * @return The bytes for filter. */ @java.lang.Deprecated @@ -1323,7 +1323,7 @@ public com.google.protobuf.ByteString getFilterBytes() { * string filter = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.ces.v1beta.ListEvaluationsRequest.filter is deprecated. See - * google/cloud/ces/v1beta/evaluation_service.proto;l=823 + * google/cloud/ces/v1beta/evaluation_service.proto;l=839 * @param value The filter to set. * @return This builder for chaining. */ @@ -1349,7 +1349,7 @@ public Builder setFilter(java.lang.String value) { * string filter = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.ces.v1beta.ListEvaluationsRequest.filter is deprecated. See - * google/cloud/ces/v1beta/evaluation_service.proto;l=823 + * google/cloud/ces/v1beta/evaluation_service.proto;l=839 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1371,7 +1371,7 @@ public Builder clearFilter() { * string filter = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.ces.v1beta.ListEvaluationsRequest.filter is deprecated. See - * google/cloud/ces/v1beta/evaluation_service.proto;l=823 + * google/cloud/ces/v1beta/evaluation_service.proto;l=839 * @param value The bytes for filter to set. * @return This builder for chaining. */ diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ListEvaluationsRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ListEvaluationsRequestOrBuilder.java index e1ea9f0d750d..9927d9607d19 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ListEvaluationsRequestOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ListEvaluationsRequestOrBuilder.java @@ -115,7 +115,7 @@ public interface ListEvaluationsRequestOrBuilder * string filter = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.ces.v1beta.ListEvaluationsRequest.filter is deprecated. See - * google/cloud/ces/v1beta/evaluation_service.proto;l=823 + * google/cloud/ces/v1beta/evaluation_service.proto;l=839 * @return The filter. */ @java.lang.Deprecated @@ -132,7 +132,7 @@ public interface ListEvaluationsRequestOrBuilder * string filter = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.ces.v1beta.ListEvaluationsRequest.filter is deprecated. See - * google/cloud/ces/v1beta/evaluation_service.proto;l=823 + * google/cloud/ces/v1beta/evaluation_service.proto;l=839 * @return The bytes for filter. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/LoggingSettings.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/LoggingSettings.java index b566307d8fdd..995f334792d7 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/LoggingSettings.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/LoggingSettings.java @@ -329,6 +329,72 @@ public com.google.cloud.ces.v1beta.BigQueryExportSettings getBigqueryExportSetti : bigqueryExportSettings_; } + public static final int UNREDACTED_BIGQUERY_EXPORT_SETTINGS_FIELD_NUMBER = 9; + private com.google.cloud.ces.v1beta.BigQueryExportSettings unredactedBigqueryExportSettings_; + + /** + * + * + *
                +   * Optional. Configures the BigQuery export behaviors for the app.
                +   * The unredacted conversation data will be exported to BigQuery tables if it
                +   * is enabled.
                +   * 
                + * + * + * .google.cloud.ces.v1beta.BigQueryExportSettings unredacted_bigquery_export_settings = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the unredactedBigqueryExportSettings field is set. + */ + @java.lang.Override + public boolean hasUnredactedBigqueryExportSettings() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
                +   * Optional. Configures the BigQuery export behaviors for the app.
                +   * The unredacted conversation data will be exported to BigQuery tables if it
                +   * is enabled.
                +   * 
                + * + * + * .google.cloud.ces.v1beta.BigQueryExportSettings unredacted_bigquery_export_settings = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The unredactedBigqueryExportSettings. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.BigQueryExportSettings getUnredactedBigqueryExportSettings() { + return unredactedBigqueryExportSettings_ == null + ? com.google.cloud.ces.v1beta.BigQueryExportSettings.getDefaultInstance() + : unredactedBigqueryExportSettings_; + } + + /** + * + * + *
                +   * Optional. Configures the BigQuery export behaviors for the app.
                +   * The unredacted conversation data will be exported to BigQuery tables if it
                +   * is enabled.
                +   * 
                + * + * + * .google.cloud.ces.v1beta.BigQueryExportSettings unredacted_bigquery_export_settings = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.BigQueryExportSettingsOrBuilder + getUnredactedBigqueryExportSettingsOrBuilder() { + return unredactedBigqueryExportSettings_ == null + ? com.google.cloud.ces.v1beta.BigQueryExportSettings.getDefaultInstance() + : unredactedBigqueryExportSettings_; + } + public static final int CLOUD_LOGGING_SETTINGS_FIELD_NUMBER = 4; private com.google.cloud.ces.v1beta.CloudLoggingSettings cloudLoggingSettings_; @@ -347,7 +413,7 @@ public com.google.cloud.ces.v1beta.BigQueryExportSettings getBigqueryExportSetti */ @java.lang.Override public boolean hasCloudLoggingSettings() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** @@ -408,7 +474,7 @@ public com.google.cloud.ces.v1beta.CloudLoggingSettings getCloudLoggingSettings( */ @java.lang.Override public boolean hasConversationLoggingSettings() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** @@ -472,7 +538,7 @@ public com.google.cloud.ces.v1beta.ConversationLoggingSettings getConversationLo */ @java.lang.Override public boolean hasEvaluationAudioRecordingConfig() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** @@ -537,7 +603,7 @@ public com.google.cloud.ces.v1beta.AudioRecordingConfig getEvaluationAudioRecord */ @java.lang.Override public boolean hasMetricAnalysisSettings() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** @@ -604,21 +670,24 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(3, getBigqueryExportSettings()); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(4, getCloudLoggingSettings()); } - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000040) != 0)) { output.writeMessage(5, getConversationLoggingSettings()); } - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000080) != 0)) { output.writeMessage(6, getEvaluationAudioRecordingConfig()); } - if (((bitField0_ & 0x00000080) != 0)) { + if (((bitField0_ & 0x00000100) != 0)) { output.writeMessage(7, getMetricAnalysisSettings()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(8, getUnredactedAudioRecordingConfig()); } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(9, getUnredactedBigqueryExportSettings()); + } getUnknownFields().writeTo(output); } @@ -639,21 +708,21 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getBigqueryExportSettings()); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCloudLoggingSettings()); } - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 5, getConversationLoggingSettings()); } - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 6, getEvaluationAudioRecordingConfig()); } - if (((bitField0_ & 0x00000080) != 0)) { + if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getMetricAnalysisSettings()); } @@ -662,6 +731,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 8, getUnredactedAudioRecordingConfig()); } + if (((bitField0_ & 0x00000010) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, getUnredactedBigqueryExportSettings()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -696,6 +770,12 @@ public boolean equals(final java.lang.Object obj) { if (hasBigqueryExportSettings()) { if (!getBigqueryExportSettings().equals(other.getBigqueryExportSettings())) return false; } + if (hasUnredactedBigqueryExportSettings() != other.hasUnredactedBigqueryExportSettings()) + return false; + if (hasUnredactedBigqueryExportSettings()) { + if (!getUnredactedBigqueryExportSettings() + .equals(other.getUnredactedBigqueryExportSettings())) return false; + } if (hasCloudLoggingSettings() != other.hasCloudLoggingSettings()) return false; if (hasCloudLoggingSettings()) { if (!getCloudLoggingSettings().equals(other.getCloudLoggingSettings())) return false; @@ -742,6 +822,10 @@ public int hashCode() { hash = (37 * hash) + BIGQUERY_EXPORT_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getBigqueryExportSettings().hashCode(); } + if (hasUnredactedBigqueryExportSettings()) { + hash = (37 * hash) + UNREDACTED_BIGQUERY_EXPORT_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getUnredactedBigqueryExportSettings().hashCode(); + } if (hasCloudLoggingSettings()) { hash = (37 * hash) + CLOUD_LOGGING_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getCloudLoggingSettings().hashCode(); @@ -903,6 +987,7 @@ private void maybeForceBuilderInitialization() { internalGetAudioRecordingConfigFieldBuilder(); internalGetUnredactedAudioRecordingConfigFieldBuilder(); internalGetBigqueryExportSettingsFieldBuilder(); + internalGetUnredactedBigqueryExportSettingsFieldBuilder(); internalGetCloudLoggingSettingsFieldBuilder(); internalGetConversationLoggingSettingsFieldBuilder(); internalGetEvaluationAudioRecordingConfigFieldBuilder(); @@ -934,6 +1019,11 @@ public Builder clear() { bigqueryExportSettingsBuilder_.dispose(); bigqueryExportSettingsBuilder_ = null; } + unredactedBigqueryExportSettings_ = null; + if (unredactedBigqueryExportSettingsBuilder_ != null) { + unredactedBigqueryExportSettingsBuilder_.dispose(); + unredactedBigqueryExportSettingsBuilder_ = null; + } cloudLoggingSettings_ = null; if (cloudLoggingSettingsBuilder_ != null) { cloudLoggingSettingsBuilder_.dispose(); @@ -1018,32 +1108,39 @@ private void buildPartial0(com.google.cloud.ces.v1beta.LoggingSettings result) { to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000010) != 0)) { + result.unredactedBigqueryExportSettings_ = + unredactedBigqueryExportSettingsBuilder_ == null + ? unredactedBigqueryExportSettings_ + : unredactedBigqueryExportSettingsBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000020) != 0)) { result.cloudLoggingSettings_ = cloudLoggingSettingsBuilder_ == null ? cloudLoggingSettings_ : cloudLoggingSettingsBuilder_.build(); - to_bitField0_ |= 0x00000010; + to_bitField0_ |= 0x00000020; } - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.conversationLoggingSettings_ = conversationLoggingSettingsBuilder_ == null ? conversationLoggingSettings_ : conversationLoggingSettingsBuilder_.build(); - to_bitField0_ |= 0x00000020; + to_bitField0_ |= 0x00000040; } - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { result.evaluationAudioRecordingConfig_ = evaluationAudioRecordingConfigBuilder_ == null ? evaluationAudioRecordingConfig_ : evaluationAudioRecordingConfigBuilder_.build(); - to_bitField0_ |= 0x00000040; + to_bitField0_ |= 0x00000080; } - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { result.metricAnalysisSettings_ = metricAnalysisSettingsBuilder_ == null ? metricAnalysisSettings_ : metricAnalysisSettingsBuilder_.build(); - to_bitField0_ |= 0x00000080; + to_bitField0_ |= 0x00000100; } result.bitField0_ |= to_bitField0_; } @@ -1072,6 +1169,9 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.LoggingSettings other) { if (other.hasBigqueryExportSettings()) { mergeBigqueryExportSettings(other.getBigqueryExportSettings()); } + if (other.hasUnredactedBigqueryExportSettings()) { + mergeUnredactedBigqueryExportSettings(other.getUnredactedBigqueryExportSettings()); + } if (other.hasCloudLoggingSettings()) { mergeCloudLoggingSettings(other.getCloudLoggingSettings()); } @@ -1136,7 +1236,7 @@ public Builder mergeFrom( { input.readMessage( internalGetCloudLoggingSettingsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; break; } // case 34 case 42: @@ -1144,7 +1244,7 @@ public Builder mergeFrom( input.readMessage( internalGetConversationLoggingSettingsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 42 case 50: @@ -1152,7 +1252,7 @@ public Builder mergeFrom( input.readMessage( internalGetEvaluationAudioRecordingConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case 50 case 58: @@ -1160,7 +1260,7 @@ public Builder mergeFrom( input.readMessage( internalGetMetricAnalysisSettingsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 58 case 66: @@ -1171,6 +1271,14 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 66 + case 74: + { + input.readMessage( + internalGetUnredactedBigqueryExportSettingsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 74 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2120,6 +2228,243 @@ public Builder clearBigqueryExportSettings() { return bigqueryExportSettingsBuilder_; } + private com.google.cloud.ces.v1beta.BigQueryExportSettings unredactedBigqueryExportSettings_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.BigQueryExportSettings, + com.google.cloud.ces.v1beta.BigQueryExportSettings.Builder, + com.google.cloud.ces.v1beta.BigQueryExportSettingsOrBuilder> + unredactedBigqueryExportSettingsBuilder_; + + /** + * + * + *
                +     * Optional. Configures the BigQuery export behaviors for the app.
                +     * The unredacted conversation data will be exported to BigQuery tables if it
                +     * is enabled.
                +     * 
                + * + * + * .google.cloud.ces.v1beta.BigQueryExportSettings unredacted_bigquery_export_settings = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the unredactedBigqueryExportSettings field is set. + */ + public boolean hasUnredactedBigqueryExportSettings() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
                +     * Optional. Configures the BigQuery export behaviors for the app.
                +     * The unredacted conversation data will be exported to BigQuery tables if it
                +     * is enabled.
                +     * 
                + * + * + * .google.cloud.ces.v1beta.BigQueryExportSettings unredacted_bigquery_export_settings = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The unredactedBigqueryExportSettings. + */ + public com.google.cloud.ces.v1beta.BigQueryExportSettings + getUnredactedBigqueryExportSettings() { + if (unredactedBigqueryExportSettingsBuilder_ == null) { + return unredactedBigqueryExportSettings_ == null + ? com.google.cloud.ces.v1beta.BigQueryExportSettings.getDefaultInstance() + : unredactedBigqueryExportSettings_; + } else { + return unredactedBigqueryExportSettingsBuilder_.getMessage(); + } + } + + /** + * + * + *
                +     * Optional. Configures the BigQuery export behaviors for the app.
                +     * The unredacted conversation data will be exported to BigQuery tables if it
                +     * is enabled.
                +     * 
                + * + * + * .google.cloud.ces.v1beta.BigQueryExportSettings unredacted_bigquery_export_settings = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUnredactedBigqueryExportSettings( + com.google.cloud.ces.v1beta.BigQueryExportSettings value) { + if (unredactedBigqueryExportSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + unredactedBigqueryExportSettings_ = value; + } else { + unredactedBigqueryExportSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. Configures the BigQuery export behaviors for the app.
                +     * The unredacted conversation data will be exported to BigQuery tables if it
                +     * is enabled.
                +     * 
                + * + * + * .google.cloud.ces.v1beta.BigQueryExportSettings unredacted_bigquery_export_settings = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUnredactedBigqueryExportSettings( + com.google.cloud.ces.v1beta.BigQueryExportSettings.Builder builderForValue) { + if (unredactedBigqueryExportSettingsBuilder_ == null) { + unredactedBigqueryExportSettings_ = builderForValue.build(); + } else { + unredactedBigqueryExportSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. Configures the BigQuery export behaviors for the app.
                +     * The unredacted conversation data will be exported to BigQuery tables if it
                +     * is enabled.
                +     * 
                + * + * + * .google.cloud.ces.v1beta.BigQueryExportSettings unredacted_bigquery_export_settings = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUnredactedBigqueryExportSettings( + com.google.cloud.ces.v1beta.BigQueryExportSettings value) { + if (unredactedBigqueryExportSettingsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && unredactedBigqueryExportSettings_ != null + && unredactedBigqueryExportSettings_ + != com.google.cloud.ces.v1beta.BigQueryExportSettings.getDefaultInstance()) { + getUnredactedBigqueryExportSettingsBuilder().mergeFrom(value); + } else { + unredactedBigqueryExportSettings_ = value; + } + } else { + unredactedBigqueryExportSettingsBuilder_.mergeFrom(value); + } + if (unredactedBigqueryExportSettings_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
                +     * Optional. Configures the BigQuery export behaviors for the app.
                +     * The unredacted conversation data will be exported to BigQuery tables if it
                +     * is enabled.
                +     * 
                + * + * + * .google.cloud.ces.v1beta.BigQueryExportSettings unredacted_bigquery_export_settings = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUnredactedBigqueryExportSettings() { + bitField0_ = (bitField0_ & ~0x00000010); + unredactedBigqueryExportSettings_ = null; + if (unredactedBigqueryExportSettingsBuilder_ != null) { + unredactedBigqueryExportSettingsBuilder_.dispose(); + unredactedBigqueryExportSettingsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. Configures the BigQuery export behaviors for the app.
                +     * The unredacted conversation data will be exported to BigQuery tables if it
                +     * is enabled.
                +     * 
                + * + * + * .google.cloud.ces.v1beta.BigQueryExportSettings unredacted_bigquery_export_settings = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.BigQueryExportSettings.Builder + getUnredactedBigqueryExportSettingsBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetUnredactedBigqueryExportSettingsFieldBuilder().getBuilder(); + } + + /** + * + * + *
                +     * Optional. Configures the BigQuery export behaviors for the app.
                +     * The unredacted conversation data will be exported to BigQuery tables if it
                +     * is enabled.
                +     * 
                + * + * + * .google.cloud.ces.v1beta.BigQueryExportSettings unredacted_bigquery_export_settings = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.BigQueryExportSettingsOrBuilder + getUnredactedBigqueryExportSettingsOrBuilder() { + if (unredactedBigqueryExportSettingsBuilder_ != null) { + return unredactedBigqueryExportSettingsBuilder_.getMessageOrBuilder(); + } else { + return unredactedBigqueryExportSettings_ == null + ? com.google.cloud.ces.v1beta.BigQueryExportSettings.getDefaultInstance() + : unredactedBigqueryExportSettings_; + } + } + + /** + * + * + *
                +     * Optional. Configures the BigQuery export behaviors for the app.
                +     * The unredacted conversation data will be exported to BigQuery tables if it
                +     * is enabled.
                +     * 
                + * + * + * .google.cloud.ces.v1beta.BigQueryExportSettings unredacted_bigquery_export_settings = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.BigQueryExportSettings, + com.google.cloud.ces.v1beta.BigQueryExportSettings.Builder, + com.google.cloud.ces.v1beta.BigQueryExportSettingsOrBuilder> + internalGetUnredactedBigqueryExportSettingsFieldBuilder() { + if (unredactedBigqueryExportSettingsBuilder_ == null) { + unredactedBigqueryExportSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.BigQueryExportSettings, + com.google.cloud.ces.v1beta.BigQueryExportSettings.Builder, + com.google.cloud.ces.v1beta.BigQueryExportSettingsOrBuilder>( + getUnredactedBigqueryExportSettings(), getParentForChildren(), isClean()); + unredactedBigqueryExportSettings_ = null; + } + return unredactedBigqueryExportSettingsBuilder_; + } + private com.google.cloud.ces.v1beta.CloudLoggingSettings cloudLoggingSettings_; private com.google.protobuf.SingleFieldBuilder< com.google.cloud.ces.v1beta.CloudLoggingSettings, @@ -2141,7 +2486,7 @@ public Builder clearBigqueryExportSettings() { * @return Whether the cloudLoggingSettings field is set. */ public boolean hasCloudLoggingSettings() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** @@ -2187,7 +2532,7 @@ public Builder setCloudLoggingSettings(com.google.cloud.ces.v1beta.CloudLoggingS } else { cloudLoggingSettingsBuilder_.setMessage(value); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2210,7 +2555,7 @@ public Builder setCloudLoggingSettings( } else { cloudLoggingSettingsBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2229,7 +2574,7 @@ public Builder setCloudLoggingSettings( public Builder mergeCloudLoggingSettings( com.google.cloud.ces.v1beta.CloudLoggingSettings value) { if (cloudLoggingSettingsBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) + if (((bitField0_ & 0x00000020) != 0) && cloudLoggingSettings_ != null && cloudLoggingSettings_ != com.google.cloud.ces.v1beta.CloudLoggingSettings.getDefaultInstance()) { @@ -2241,7 +2586,7 @@ public Builder mergeCloudLoggingSettings( cloudLoggingSettingsBuilder_.mergeFrom(value); } if (cloudLoggingSettings_ != null) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); } return this; @@ -2259,7 +2604,7 @@ public Builder mergeCloudLoggingSettings( * */ public Builder clearCloudLoggingSettings() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); cloudLoggingSettings_ = null; if (cloudLoggingSettingsBuilder_ != null) { cloudLoggingSettingsBuilder_.dispose(); @@ -2282,7 +2627,7 @@ public Builder clearCloudLoggingSettings() { */ public com.google.cloud.ces.v1beta.CloudLoggingSettings.Builder getCloudLoggingSettingsBuilder() { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return internalGetCloudLoggingSettingsFieldBuilder().getBuilder(); } @@ -2359,7 +2704,7 @@ public Builder clearCloudLoggingSettings() { * @return Whether the conversationLoggingSettings field is set. */ public boolean hasConversationLoggingSettings() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** @@ -2409,7 +2754,7 @@ public Builder setConversationLoggingSettings( } else { conversationLoggingSettingsBuilder_.setMessage(value); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2433,7 +2778,7 @@ public Builder setConversationLoggingSettings( } else { conversationLoggingSettingsBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2453,7 +2798,7 @@ public Builder setConversationLoggingSettings( public Builder mergeConversationLoggingSettings( com.google.cloud.ces.v1beta.ConversationLoggingSettings value) { if (conversationLoggingSettingsBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) + if (((bitField0_ & 0x00000040) != 0) && conversationLoggingSettings_ != null && conversationLoggingSettings_ != com.google.cloud.ces.v1beta.ConversationLoggingSettings.getDefaultInstance()) { @@ -2465,7 +2810,7 @@ public Builder mergeConversationLoggingSettings( conversationLoggingSettingsBuilder_.mergeFrom(value); } if (conversationLoggingSettings_ != null) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); } return this; @@ -2484,7 +2829,7 @@ public Builder mergeConversationLoggingSettings( * */ public Builder clearConversationLoggingSettings() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); conversationLoggingSettings_ = null; if (conversationLoggingSettingsBuilder_ != null) { conversationLoggingSettingsBuilder_.dispose(); @@ -2508,7 +2853,7 @@ public Builder clearConversationLoggingSettings() { */ public com.google.cloud.ces.v1beta.ConversationLoggingSettings.Builder getConversationLoggingSettingsBuilder() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return internalGetConversationLoggingSettingsFieldBuilder().getBuilder(); } @@ -2588,7 +2933,7 @@ public Builder clearConversationLoggingSettings() { * @return Whether the evaluationAudioRecordingConfig field is set. */ public boolean hasEvaluationAudioRecordingConfig() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** @@ -2639,7 +2984,7 @@ public Builder setEvaluationAudioRecordingConfig( } else { evaluationAudioRecordingConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2664,7 +3009,7 @@ public Builder setEvaluationAudioRecordingConfig( } else { evaluationAudioRecordingConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2685,7 +3030,7 @@ public Builder setEvaluationAudioRecordingConfig( public Builder mergeEvaluationAudioRecordingConfig( com.google.cloud.ces.v1beta.AudioRecordingConfig value) { if (evaluationAudioRecordingConfigBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) + if (((bitField0_ & 0x00000080) != 0) && evaluationAudioRecordingConfig_ != null && evaluationAudioRecordingConfig_ != com.google.cloud.ces.v1beta.AudioRecordingConfig.getDefaultInstance()) { @@ -2697,7 +3042,7 @@ public Builder mergeEvaluationAudioRecordingConfig( evaluationAudioRecordingConfigBuilder_.mergeFrom(value); } if (evaluationAudioRecordingConfig_ != null) { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); } return this; @@ -2717,7 +3062,7 @@ public Builder mergeEvaluationAudioRecordingConfig( * */ public Builder clearEvaluationAudioRecordingConfig() { - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); evaluationAudioRecordingConfig_ = null; if (evaluationAudioRecordingConfigBuilder_ != null) { evaluationAudioRecordingConfigBuilder_.dispose(); @@ -2742,7 +3087,7 @@ public Builder clearEvaluationAudioRecordingConfig() { */ public com.google.cloud.ces.v1beta.AudioRecordingConfig.Builder getEvaluationAudioRecordingConfigBuilder() { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return internalGetEvaluationAudioRecordingConfigFieldBuilder().getBuilder(); } @@ -2823,7 +3168,7 @@ public Builder clearEvaluationAudioRecordingConfig() { * @return Whether the metricAnalysisSettings field is set. */ public boolean hasMetricAnalysisSettings() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** @@ -2872,7 +3217,7 @@ public Builder setMetricAnalysisSettings( } else { metricAnalysisSettingsBuilder_.setMessage(value); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2896,7 +3241,7 @@ public Builder setMetricAnalysisSettings( } else { metricAnalysisSettingsBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2916,7 +3261,7 @@ public Builder setMetricAnalysisSettings( public Builder mergeMetricAnalysisSettings( com.google.cloud.ces.v1beta.MetricAnalysisSettings value) { if (metricAnalysisSettingsBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) + if (((bitField0_ & 0x00000100) != 0) && metricAnalysisSettings_ != null && metricAnalysisSettings_ != com.google.cloud.ces.v1beta.MetricAnalysisSettings.getDefaultInstance()) { @@ -2928,7 +3273,7 @@ public Builder mergeMetricAnalysisSettings( metricAnalysisSettingsBuilder_.mergeFrom(value); } if (metricAnalysisSettings_ != null) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); } return this; @@ -2947,7 +3292,7 @@ public Builder mergeMetricAnalysisSettings( * */ public Builder clearMetricAnalysisSettings() { - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); metricAnalysisSettings_ = null; if (metricAnalysisSettingsBuilder_ != null) { metricAnalysisSettingsBuilder_.dispose(); @@ -2971,7 +3316,7 @@ public Builder clearMetricAnalysisSettings() { */ public com.google.cloud.ces.v1beta.MetricAnalysisSettings.Builder getMetricAnalysisSettingsBuilder() { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return internalGetMetricAnalysisSettingsFieldBuilder().getBuilder(); } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/LoggingSettingsOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/LoggingSettingsOrBuilder.java index 497eb4972333..fd5b84094368 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/LoggingSettingsOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/LoggingSettingsOrBuilder.java @@ -220,6 +220,56 @@ public interface LoggingSettingsOrBuilder */ com.google.cloud.ces.v1beta.BigQueryExportSettingsOrBuilder getBigqueryExportSettingsOrBuilder(); + /** + * + * + *
                +   * Optional. Configures the BigQuery export behaviors for the app.
                +   * The unredacted conversation data will be exported to BigQuery tables if it
                +   * is enabled.
                +   * 
                + * + * + * .google.cloud.ces.v1beta.BigQueryExportSettings unredacted_bigquery_export_settings = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the unredactedBigqueryExportSettings field is set. + */ + boolean hasUnredactedBigqueryExportSettings(); + + /** + * + * + *
                +   * Optional. Configures the BigQuery export behaviors for the app.
                +   * The unredacted conversation data will be exported to BigQuery tables if it
                +   * is enabled.
                +   * 
                + * + * + * .google.cloud.ces.v1beta.BigQueryExportSettings unredacted_bigquery_export_settings = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The unredactedBigqueryExportSettings. + */ + com.google.cloud.ces.v1beta.BigQueryExportSettings getUnredactedBigqueryExportSettings(); + + /** + * + * + *
                +   * Optional. Configures the BigQuery export behaviors for the app.
                +   * The unredacted conversation data will be exported to BigQuery tables if it
                +   * is enabled.
                +   * 
                + * + * + * .google.cloud.ces.v1beta.BigQueryExportSettings unredacted_bigquery_export_settings = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1beta.BigQueryExportSettingsOrBuilder + getUnredactedBigqueryExportSettingsOrBuilder(); + /** * * diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/RunEvaluationRequest.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/RunEvaluationRequest.java index 7de327b7ffc8..108e5a78026f 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/RunEvaluationRequest.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/RunEvaluationRequest.java @@ -775,6 +775,67 @@ public boolean getGenerateLatencyReport() { return generateLatencyReport_; } + public static final int EVALUATION_RUN_CACHING_SETTINGS_FIELD_NUMBER = 15; + private com.google.cloud.ces.v1beta.EvaluationRunCachingSettings evaluationRunCachingSettings_; + + /** + * + * + *
                +   * Optional. The caching settings to use for the evaluation run.
                +   * 
                + * + * + * .google.cloud.ces.v1beta.EvaluationRunCachingSettings evaluation_run_caching_settings = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the evaluationRunCachingSettings field is set. + */ + @java.lang.Override + public boolean hasEvaluationRunCachingSettings() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
                +   * Optional. The caching settings to use for the evaluation run.
                +   * 
                + * + * + * .google.cloud.ces.v1beta.EvaluationRunCachingSettings evaluation_run_caching_settings = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The evaluationRunCachingSettings. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.EvaluationRunCachingSettings + getEvaluationRunCachingSettings() { + return evaluationRunCachingSettings_ == null + ? com.google.cloud.ces.v1beta.EvaluationRunCachingSettings.getDefaultInstance() + : evaluationRunCachingSettings_; + } + + /** + * + * + *
                +   * Optional. The caching settings to use for the evaluation run.
                +   * 
                + * + * + * .google.cloud.ces.v1beta.EvaluationRunCachingSettings evaluation_run_caching_settings = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.EvaluationRunCachingSettingsOrBuilder + getEvaluationRunCachingSettingsOrBuilder() { + return evaluationRunCachingSettings_ == null + ? com.google.cloud.ces.v1beta.EvaluationRunCachingSettings.getDefaultInstance() + : evaluationRunCachingSettings_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -826,6 +887,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (generateLatencyReport_ != false) { output.writeBool(14, generateLatencyReport_); } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(15, getEvaluationRunCachingSettings()); + } getUnknownFields().writeTo(output); } @@ -878,6 +942,11 @@ public int getSerializedSize() { if (generateLatencyReport_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(14, generateLatencyReport_); } + if (((bitField0_ & 0x00000008) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 15, getEvaluationRunCachingSettings()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -915,6 +984,11 @@ public boolean equals(final java.lang.Object obj) { if (!getScheduledEvaluationRun().equals(other.getScheduledEvaluationRun())) return false; if (goldenRunMethod_ != other.goldenRunMethod_) return false; if (getGenerateLatencyReport() != other.getGenerateLatencyReport()) return false; + if (hasEvaluationRunCachingSettings() != other.hasEvaluationRunCachingSettings()) return false; + if (hasEvaluationRunCachingSettings()) { + if (!getEvaluationRunCachingSettings().equals(other.getEvaluationRunCachingSettings())) + return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -960,6 +1034,10 @@ public int hashCode() { hash = (53 * hash) + goldenRunMethod_; hash = (37 * hash) + GENERATE_LATENCY_REPORT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getGenerateLatencyReport()); + if (hasEvaluationRunCachingSettings()) { + hash = (37 * hash) + EVALUATION_RUN_CACHING_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getEvaluationRunCachingSettings().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1105,6 +1183,7 @@ private void maybeForceBuilderInitialization() { internalGetConfigFieldBuilder(); internalGetPersonaRunConfigsFieldBuilder(); internalGetOptimizationConfigFieldBuilder(); + internalGetEvaluationRunCachingSettingsFieldBuilder(); } } @@ -1138,6 +1217,11 @@ public Builder clear() { scheduledEvaluationRun_ = ""; goldenRunMethod_ = 0; generateLatencyReport_ = false; + evaluationRunCachingSettings_ = null; + if (evaluationRunCachingSettingsBuilder_ != null) { + evaluationRunCachingSettingsBuilder_.dispose(); + evaluationRunCachingSettingsBuilder_ = null; + } return this; } @@ -1229,6 +1313,13 @@ private void buildPartial0(com.google.cloud.ces.v1beta.RunEvaluationRequest resu if (((from_bitField0_ & 0x00000800) != 0)) { result.generateLatencyReport_ = generateLatencyReport_; } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.evaluationRunCachingSettings_ = + evaluationRunCachingSettingsBuilder_ == null + ? evaluationRunCachingSettings_ + : evaluationRunCachingSettingsBuilder_.build(); + to_bitField0_ |= 0x00000008; + } result.bitField0_ |= to_bitField0_; } @@ -1322,6 +1413,9 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.RunEvaluationRequest other) if (other.getGenerateLatencyReport() != false) { setGenerateLatencyReport(other.getGenerateLatencyReport()); } + if (other.hasEvaluationRunCachingSettings()) { + mergeEvaluationRunCachingSettings(other.getEvaluationRunCachingSettings()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1429,6 +1523,14 @@ public Builder mergeFrom( bitField0_ |= 0x00000800; break; } // case 112 + case 122: + { + input.readMessage( + internalGetEvaluationRunCachingSettingsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00001000; + break; + } // case 122 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3413,6 +3515,225 @@ public Builder clearGenerateLatencyReport() { return this; } + private com.google.cloud.ces.v1beta.EvaluationRunCachingSettings evaluationRunCachingSettings_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.EvaluationRunCachingSettings, + com.google.cloud.ces.v1beta.EvaluationRunCachingSettings.Builder, + com.google.cloud.ces.v1beta.EvaluationRunCachingSettingsOrBuilder> + evaluationRunCachingSettingsBuilder_; + + /** + * + * + *
                +     * Optional. The caching settings to use for the evaluation run.
                +     * 
                + * + * + * .google.cloud.ces.v1beta.EvaluationRunCachingSettings evaluation_run_caching_settings = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the evaluationRunCachingSettings field is set. + */ + public boolean hasEvaluationRunCachingSettings() { + return ((bitField0_ & 0x00001000) != 0); + } + + /** + * + * + *
                +     * Optional. The caching settings to use for the evaluation run.
                +     * 
                + * + * + * .google.cloud.ces.v1beta.EvaluationRunCachingSettings evaluation_run_caching_settings = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The evaluationRunCachingSettings. + */ + public com.google.cloud.ces.v1beta.EvaluationRunCachingSettings + getEvaluationRunCachingSettings() { + if (evaluationRunCachingSettingsBuilder_ == null) { + return evaluationRunCachingSettings_ == null + ? com.google.cloud.ces.v1beta.EvaluationRunCachingSettings.getDefaultInstance() + : evaluationRunCachingSettings_; + } else { + return evaluationRunCachingSettingsBuilder_.getMessage(); + } + } + + /** + * + * + *
                +     * Optional. The caching settings to use for the evaluation run.
                +     * 
                + * + * + * .google.cloud.ces.v1beta.EvaluationRunCachingSettings evaluation_run_caching_settings = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEvaluationRunCachingSettings( + com.google.cloud.ces.v1beta.EvaluationRunCachingSettings value) { + if (evaluationRunCachingSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + evaluationRunCachingSettings_ = value; + } else { + evaluationRunCachingSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. The caching settings to use for the evaluation run.
                +     * 
                + * + * + * .google.cloud.ces.v1beta.EvaluationRunCachingSettings evaluation_run_caching_settings = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEvaluationRunCachingSettings( + com.google.cloud.ces.v1beta.EvaluationRunCachingSettings.Builder builderForValue) { + if (evaluationRunCachingSettingsBuilder_ == null) { + evaluationRunCachingSettings_ = builderForValue.build(); + } else { + evaluationRunCachingSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. The caching settings to use for the evaluation run.
                +     * 
                + * + * + * .google.cloud.ces.v1beta.EvaluationRunCachingSettings evaluation_run_caching_settings = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeEvaluationRunCachingSettings( + com.google.cloud.ces.v1beta.EvaluationRunCachingSettings value) { + if (evaluationRunCachingSettingsBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0) + && evaluationRunCachingSettings_ != null + && evaluationRunCachingSettings_ + != com.google.cloud.ces.v1beta.EvaluationRunCachingSettings.getDefaultInstance()) { + getEvaluationRunCachingSettingsBuilder().mergeFrom(value); + } else { + evaluationRunCachingSettings_ = value; + } + } else { + evaluationRunCachingSettingsBuilder_.mergeFrom(value); + } + if (evaluationRunCachingSettings_ != null) { + bitField0_ |= 0x00001000; + onChanged(); + } + return this; + } + + /** + * + * + *
                +     * Optional. The caching settings to use for the evaluation run.
                +     * 
                + * + * + * .google.cloud.ces.v1beta.EvaluationRunCachingSettings evaluation_run_caching_settings = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearEvaluationRunCachingSettings() { + bitField0_ = (bitField0_ & ~0x00001000); + evaluationRunCachingSettings_ = null; + if (evaluationRunCachingSettingsBuilder_ != null) { + evaluationRunCachingSettingsBuilder_.dispose(); + evaluationRunCachingSettingsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. The caching settings to use for the evaluation run.
                +     * 
                + * + * + * .google.cloud.ces.v1beta.EvaluationRunCachingSettings evaluation_run_caching_settings = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.EvaluationRunCachingSettings.Builder + getEvaluationRunCachingSettingsBuilder() { + bitField0_ |= 0x00001000; + onChanged(); + return internalGetEvaluationRunCachingSettingsFieldBuilder().getBuilder(); + } + + /** + * + * + *
                +     * Optional. The caching settings to use for the evaluation run.
                +     * 
                + * + * + * .google.cloud.ces.v1beta.EvaluationRunCachingSettings evaluation_run_caching_settings = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.EvaluationRunCachingSettingsOrBuilder + getEvaluationRunCachingSettingsOrBuilder() { + if (evaluationRunCachingSettingsBuilder_ != null) { + return evaluationRunCachingSettingsBuilder_.getMessageOrBuilder(); + } else { + return evaluationRunCachingSettings_ == null + ? com.google.cloud.ces.v1beta.EvaluationRunCachingSettings.getDefaultInstance() + : evaluationRunCachingSettings_; + } + } + + /** + * + * + *
                +     * Optional. The caching settings to use for the evaluation run.
                +     * 
                + * + * + * .google.cloud.ces.v1beta.EvaluationRunCachingSettings evaluation_run_caching_settings = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.EvaluationRunCachingSettings, + com.google.cloud.ces.v1beta.EvaluationRunCachingSettings.Builder, + com.google.cloud.ces.v1beta.EvaluationRunCachingSettingsOrBuilder> + internalGetEvaluationRunCachingSettingsFieldBuilder() { + if (evaluationRunCachingSettingsBuilder_ == null) { + evaluationRunCachingSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.EvaluationRunCachingSettings, + com.google.cloud.ces.v1beta.EvaluationRunCachingSettings.Builder, + com.google.cloud.ces.v1beta.EvaluationRunCachingSettingsOrBuilder>( + getEvaluationRunCachingSettings(), getParentForChildren(), isClean()); + evaluationRunCachingSettings_ = null; + } + return evaluationRunCachingSettingsBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.RunEvaluationRequest) } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/RunEvaluationRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/RunEvaluationRequestOrBuilder.java index 2716b7c3eda0..de7fbcacfd91 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/RunEvaluationRequestOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/RunEvaluationRequestOrBuilder.java @@ -493,4 +493,48 @@ public interface RunEvaluationRequestOrBuilder * @return The generateLatencyReport. */ boolean getGenerateLatencyReport(); + + /** + * + * + *
                +   * Optional. The caching settings to use for the evaluation run.
                +   * 
                + * + * + * .google.cloud.ces.v1beta.EvaluationRunCachingSettings evaluation_run_caching_settings = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the evaluationRunCachingSettings field is set. + */ + boolean hasEvaluationRunCachingSettings(); + + /** + * + * + *
                +   * Optional. The caching settings to use for the evaluation run.
                +   * 
                + * + * + * .google.cloud.ces.v1beta.EvaluationRunCachingSettings evaluation_run_caching_settings = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The evaluationRunCachingSettings. + */ + com.google.cloud.ces.v1beta.EvaluationRunCachingSettings getEvaluationRunCachingSettings(); + + /** + * + * + *
                +   * Optional. The caching settings to use for the evaluation run.
                +   * 
                + * + * + * .google.cloud.ces.v1beta.EvaluationRunCachingSettings evaluation_run_caching_settings = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1beta.EvaluationRunCachingSettingsOrBuilder + getEvaluationRunCachingSettingsOrBuilder(); } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/SessionOutput.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/SessionOutput.java index df39ade171ed..a15c4eceffe2 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/SessionOutput.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/SessionOutput.java @@ -51,7 +51,9 @@ private SessionOutput(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } - private SessionOutput() {} + private SessionOutput() { + context_ = java.util.Collections.emptyList(); + } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.ces.v1beta.SessionServiceProto @@ -1931,6 +1933,81 @@ public com.google.cloud.ces.v1beta.SessionOutput.DiagnosticInfo getDiagnosticInf : diagnosticInfo_; } + public static final int CONTEXT_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") + private java.util.List context_; + + /** + * + * + *
                +   * Context messages for external supervision guardrails.
                +   * 
                + * + * repeated .google.protobuf.Any context = 12; + */ + @java.lang.Override + public java.util.List getContextList() { + return context_; + } + + /** + * + * + *
                +   * Context messages for external supervision guardrails.
                +   * 
                + * + * repeated .google.protobuf.Any context = 12; + */ + @java.lang.Override + public java.util.List getContextOrBuilderList() { + return context_; + } + + /** + * + * + *
                +   * Context messages for external supervision guardrails.
                +   * 
                + * + * repeated .google.protobuf.Any context = 12; + */ + @java.lang.Override + public int getContextCount() { + return context_.size(); + } + + /** + * + * + *
                +   * Context messages for external supervision guardrails.
                +   * 
                + * + * repeated .google.protobuf.Any context = 12; + */ + @java.lang.Override + public com.google.protobuf.Any getContext(int index) { + return context_.get(index); + } + + /** + * + * + *
                +   * Context messages for external supervision guardrails.
                +   * 
                + * + * repeated .google.protobuf.Any context = 12; + */ + @java.lang.Override + public com.google.protobuf.AnyOrBuilder getContextOrBuilder(int index) { + return context_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1975,6 +2052,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (outputTypeCase_ == 11) { output.writeMessage(11, (com.google.protobuf.Struct) outputType_); } + for (int i = 0; i < context_.size(); i++) { + output.writeMessage(12, context_.get(i)); + } getUnknownFields().writeTo(output); } @@ -2026,6 +2106,9 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 11, (com.google.protobuf.Struct) outputType_); } + for (int i = 0; i < context_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, context_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2048,6 +2131,7 @@ public boolean equals(final java.lang.Object obj) { if (hasDiagnosticInfo()) { if (!getDiagnosticInfo().equals(other.getDiagnosticInfo())) return false; } + if (!getContextList().equals(other.getContextList())) return false; if (!getOutputTypeCase().equals(other.getOutputTypeCase())) return false; switch (outputTypeCase_) { case 1: @@ -2093,6 +2177,10 @@ public int hashCode() { hash = (37 * hash) + DIAGNOSTIC_INFO_FIELD_NUMBER; hash = (53 * hash) + getDiagnosticInfo().hashCode(); } + if (getContextCount() > 0) { + hash = (37 * hash) + CONTEXT_FIELD_NUMBER; + hash = (53 * hash) + getContextList().hashCode(); + } switch (outputTypeCase_) { case 1: hash = (37 * hash) + TEXT_FIELD_NUMBER; @@ -2267,6 +2355,7 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { internalGetDiagnosticInfoFieldBuilder(); + internalGetContextFieldBuilder(); } } @@ -2296,6 +2385,13 @@ public Builder clear() { diagnosticInfoBuilder_.dispose(); diagnosticInfoBuilder_ = null; } + if (contextBuilder_ == null) { + context_ = java.util.Collections.emptyList(); + } else { + context_ = null; + contextBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000400); outputTypeCase_ = 0; outputType_ = null; return this; @@ -2325,6 +2421,7 @@ public com.google.cloud.ces.v1beta.SessionOutput build() { public com.google.cloud.ces.v1beta.SessionOutput buildPartial() { com.google.cloud.ces.v1beta.SessionOutput result = new com.google.cloud.ces.v1beta.SessionOutput(this); + buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -2333,6 +2430,18 @@ public com.google.cloud.ces.v1beta.SessionOutput buildPartial() { return result; } + private void buildPartialRepeatedFields(com.google.cloud.ces.v1beta.SessionOutput result) { + if (contextBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0)) { + context_ = java.util.Collections.unmodifiableList(context_); + bitField0_ = (bitField0_ & ~0x00000400); + } + result.context_ = context_; + } else { + result.context_ = contextBuilder_.build(); + } + } + private void buildPartial0(com.google.cloud.ces.v1beta.SessionOutput result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000080) != 0)) { @@ -2391,6 +2500,33 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.SessionOutput other) { if (other.hasDiagnosticInfo()) { mergeDiagnosticInfo(other.getDiagnosticInfo()); } + if (contextBuilder_ == null) { + if (!other.context_.isEmpty()) { + if (context_.isEmpty()) { + context_ = other.context_; + bitField0_ = (bitField0_ & ~0x00000400); + } else { + ensureContextIsMutable(); + context_.addAll(other.context_); + } + onChanged(); + } + } else { + if (!other.context_.isEmpty()) { + if (contextBuilder_.isEmpty()) { + contextBuilder_.dispose(); + contextBuilder_ = null; + context_ = other.context_; + bitField0_ = (bitField0_ & ~0x00000400); + contextBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetContextFieldBuilder() + : null; + } else { + contextBuilder_.addAllMessages(other.context_); + } + } + } switch (other.getOutputTypeCase()) { case TEXT: { @@ -2527,6 +2663,18 @@ public Builder mergeFrom( outputTypeCase_ = 11; break; } // case 90 + case 98: + { + com.google.protobuf.Any m = + input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); + if (contextBuilder_ == null) { + ensureContextIsMutable(); + context_.add(m); + } else { + contextBuilder_.addMessage(m); + } + break; + } // case 98 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4234,6 +4382,366 @@ public Builder clearDiagnosticInfo() { return diagnosticInfoBuilder_; } + private java.util.List context_ = java.util.Collections.emptyList(); + + private void ensureContextIsMutable() { + if (!((bitField0_ & 0x00000400) != 0)) { + context_ = new java.util.ArrayList(context_); + bitField0_ |= 0x00000400; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.protobuf.Any, + com.google.protobuf.Any.Builder, + com.google.protobuf.AnyOrBuilder> + contextBuilder_; + + /** + * + * + *
                +     * Context messages for external supervision guardrails.
                +     * 
                + * + * repeated .google.protobuf.Any context = 12; + */ + public java.util.List getContextList() { + if (contextBuilder_ == null) { + return java.util.Collections.unmodifiableList(context_); + } else { + return contextBuilder_.getMessageList(); + } + } + + /** + * + * + *
                +     * Context messages for external supervision guardrails.
                +     * 
                + * + * repeated .google.protobuf.Any context = 12; + */ + public int getContextCount() { + if (contextBuilder_ == null) { + return context_.size(); + } else { + return contextBuilder_.getCount(); + } + } + + /** + * + * + *
                +     * Context messages for external supervision guardrails.
                +     * 
                + * + * repeated .google.protobuf.Any context = 12; + */ + public com.google.protobuf.Any getContext(int index) { + if (contextBuilder_ == null) { + return context_.get(index); + } else { + return contextBuilder_.getMessage(index); + } + } + + /** + * + * + *
                +     * Context messages for external supervision guardrails.
                +     * 
                + * + * repeated .google.protobuf.Any context = 12; + */ + public Builder setContext(int index, com.google.protobuf.Any value) { + if (contextBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContextIsMutable(); + context_.set(index, value); + onChanged(); + } else { + contextBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                +     * Context messages for external supervision guardrails.
                +     * 
                + * + * repeated .google.protobuf.Any context = 12; + */ + public Builder setContext(int index, com.google.protobuf.Any.Builder builderForValue) { + if (contextBuilder_ == null) { + ensureContextIsMutable(); + context_.set(index, builderForValue.build()); + onChanged(); + } else { + contextBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                +     * Context messages for external supervision guardrails.
                +     * 
                + * + * repeated .google.protobuf.Any context = 12; + */ + public Builder addContext(com.google.protobuf.Any value) { + if (contextBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContextIsMutable(); + context_.add(value); + onChanged(); + } else { + contextBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                +     * Context messages for external supervision guardrails.
                +     * 
                + * + * repeated .google.protobuf.Any context = 12; + */ + public Builder addContext(int index, com.google.protobuf.Any value) { + if (contextBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContextIsMutable(); + context_.add(index, value); + onChanged(); + } else { + contextBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                +     * Context messages for external supervision guardrails.
                +     * 
                + * + * repeated .google.protobuf.Any context = 12; + */ + public Builder addContext(com.google.protobuf.Any.Builder builderForValue) { + if (contextBuilder_ == null) { + ensureContextIsMutable(); + context_.add(builderForValue.build()); + onChanged(); + } else { + contextBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                +     * Context messages for external supervision guardrails.
                +     * 
                + * + * repeated .google.protobuf.Any context = 12; + */ + public Builder addContext(int index, com.google.protobuf.Any.Builder builderForValue) { + if (contextBuilder_ == null) { + ensureContextIsMutable(); + context_.add(index, builderForValue.build()); + onChanged(); + } else { + contextBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                +     * Context messages for external supervision guardrails.
                +     * 
                + * + * repeated .google.protobuf.Any context = 12; + */ + public Builder addAllContext(java.lang.Iterable values) { + if (contextBuilder_ == null) { + ensureContextIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, context_); + onChanged(); + } else { + contextBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                +     * Context messages for external supervision guardrails.
                +     * 
                + * + * repeated .google.protobuf.Any context = 12; + */ + public Builder clearContext() { + if (contextBuilder_ == null) { + context_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + } else { + contextBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                +     * Context messages for external supervision guardrails.
                +     * 
                + * + * repeated .google.protobuf.Any context = 12; + */ + public Builder removeContext(int index) { + if (contextBuilder_ == null) { + ensureContextIsMutable(); + context_.remove(index); + onChanged(); + } else { + contextBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                +     * Context messages for external supervision guardrails.
                +     * 
                + * + * repeated .google.protobuf.Any context = 12; + */ + public com.google.protobuf.Any.Builder getContextBuilder(int index) { + return internalGetContextFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                +     * Context messages for external supervision guardrails.
                +     * 
                + * + * repeated .google.protobuf.Any context = 12; + */ + public com.google.protobuf.AnyOrBuilder getContextOrBuilder(int index) { + if (contextBuilder_ == null) { + return context_.get(index); + } else { + return contextBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                +     * Context messages for external supervision guardrails.
                +     * 
                + * + * repeated .google.protobuf.Any context = 12; + */ + public java.util.List getContextOrBuilderList() { + if (contextBuilder_ != null) { + return contextBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(context_); + } + } + + /** + * + * + *
                +     * Context messages for external supervision guardrails.
                +     * 
                + * + * repeated .google.protobuf.Any context = 12; + */ + public com.google.protobuf.Any.Builder addContextBuilder() { + return internalGetContextFieldBuilder() + .addBuilder(com.google.protobuf.Any.getDefaultInstance()); + } + + /** + * + * + *
                +     * Context messages for external supervision guardrails.
                +     * 
                + * + * repeated .google.protobuf.Any context = 12; + */ + public com.google.protobuf.Any.Builder addContextBuilder(int index) { + return internalGetContextFieldBuilder() + .addBuilder(index, com.google.protobuf.Any.getDefaultInstance()); + } + + /** + * + * + *
                +     * Context messages for external supervision guardrails.
                +     * 
                + * + * repeated .google.protobuf.Any context = 12; + */ + public java.util.List getContextBuilderList() { + return internalGetContextFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.protobuf.Any, + com.google.protobuf.Any.Builder, + com.google.protobuf.AnyOrBuilder> + internalGetContextFieldBuilder() { + if (contextBuilder_ == null) { + contextBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.protobuf.Any, + com.google.protobuf.Any.Builder, + com.google.protobuf.AnyOrBuilder>( + context_, ((bitField0_ & 0x00000400) != 0), getParentForChildren(), isClean()); + context_ = null; + } + return contextBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.SessionOutput) } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/SessionOutputOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/SessionOutputOrBuilder.java index 755b5ba469c2..74ff22075152 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/SessionOutputOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/SessionOutputOrBuilder.java @@ -360,5 +360,60 @@ public interface SessionOutputOrBuilder */ com.google.cloud.ces.v1beta.SessionOutput.DiagnosticInfoOrBuilder getDiagnosticInfoOrBuilder(); + /** + * + * + *
                +   * Context messages for external supervision guardrails.
                +   * 
                + * + * repeated .google.protobuf.Any context = 12; + */ + java.util.List getContextList(); + + /** + * + * + *
                +   * Context messages for external supervision guardrails.
                +   * 
                + * + * repeated .google.protobuf.Any context = 12; + */ + com.google.protobuf.Any getContext(int index); + + /** + * + * + *
                +   * Context messages for external supervision guardrails.
                +   * 
                + * + * repeated .google.protobuf.Any context = 12; + */ + int getContextCount(); + + /** + * + * + *
                +   * Context messages for external supervision guardrails.
                +   * 
                + * + * repeated .google.protobuf.Any context = 12; + */ + java.util.List getContextOrBuilderList(); + + /** + * + * + *
                +   * Context messages for external supervision guardrails.
                +   * 
                + * + * repeated .google.protobuf.Any context = 12; + */ + com.google.protobuf.AnyOrBuilder getContextOrBuilder(int index); + com.google.cloud.ces.v1beta.SessionOutput.OutputTypeCase getOutputTypeCase(); } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/SessionServiceProto.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/SessionServiceProto.java index 8948c1e00bcf..4d438bdf0888 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/SessionServiceProto.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/SessionServiceProto.java @@ -219,7 +219,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005event\030\t" + " \001(\0132\036.google.cloud.ces.v1beta.EventB\003\340A\001H\000\022\032\n\r" + "will_continue\030\010 \001(\010B\003\340A\001B\014\n\n" - + "input_type\"\352\004\n\r" + + "input_type\"\221\005\n\r" + "SessionOutput\022\016\n" + "\004text\030\001 \001(\tH\000\022\017\n" + "\005audio\030\002 \001(\014H\000\0228\n\n" @@ -232,7 +232,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "turn_index\030\006 \001(\005\022\026\n" + "\016turn_completed\030\004 \001(\010\022S\n" + "\017diagnostic_info\030\007 \001(\01325.google.cloud.ces." - + "v1beta.SessionOutput.DiagnosticInfoB\003\340A\001\032v\n" + + "v1beta.SessionOutput.DiagnosticInfoB\003\340A\001\022%\n" + + "\007context\030\014 \003(\0132\024.google.protobuf.Any\032v\n" + "\016DiagnosticInfo\0222\n" + "\010messages\030\001 \003(\0132 .google.cloud.ces.v1beta.Message\0220\n" + "\troot_span\030\003 \001(\0132\035.google.cloud.ces.v1beta.SpanB\r\n" @@ -251,8 +252,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022RunSessionResponse\0227\n" + "\007outputs\030\001 \003(\0132&.google.cloud.ces.v1beta.SessionOutput\"\257\001\n" + "\030BidiSessionClientMessage\022=\n" - + "\006config\030\001 \001(\013" - + "2&.google.cloud.ces.v1beta.SessionConfigB\003\340A\001H\000\022D\n" + + "\006config\030\001 \001(\0132" + + "&.google.cloud.ces.v1beta.SessionConfigB\003\340A\001H\000\022D\n" + "\016realtime_input\030\002" + " \001(\0132%.google.cloud.ces.v1beta.SessionInputB\003\340A\001H\000B\016\n" + "\014message_type\"\213\003\n" @@ -274,25 +275,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005MULAW\020\002\022\010\n" + "\004ALAW\020\0032\327\005\n" + "\016SessionService\022\276\001\n\n" - + "RunSession\022*.google.cloud.ces.v1beta.RunS" - + "essionRequest\032+.google.cloud.ces.v1beta." - + "RunSessionResponse\"W\202\323\344\223\002Q\"L/v1beta/{con" - + "fig.session=projects/*/locations/*/apps/*/sessions/*}:runSession:\001*\022\314\001\n" - + "\020StreamRunSession\022*.google.cloud.ces.v1beta.RunSe" + + "RunSession\022*.google.cloud.ces.v1beta.RunSe" + "ssionRequest\032+.google.cloud.ces.v1beta.R" - + "unSessionResponse\"]\202\323\344\223\002W\"R/v1beta/{conf" - + "ig.session=projects/*/locations/*/apps/*/sessions/*}:streamRunSession:\001*0\001\022\310\001\n" - + "\016BidiRunSession\0221.google.cloud.ces.v1beta." - + "BidiSessionClientMessage\0321.google.cloud." - + "ces.v1beta.BidiSessionServerMessage\"L\212\323\344\223\002F\022D\n" - + "\016config.session\0222{session=projects" - + "/*/locations/*/apps/*/sessions/*}(\0010\001\032j\312" - + "A\022ces.googleapis.com\322ARhttps://www.googl" - + "eapis.com/auth/ces,https://www.googleapis.com/auth/cloud-platformB\311\001\n" - + "\033com.google.cloud.ces.v1betaB\023SessionServiceProtoP\001" - + "Z-cloud.google.com/go/ces/apiv1beta/cespb;cespb\352Ac\n" - + "\032ces.googleapis.com/Session\022Eprojects/{project}/locations/{location}/" - + "apps/{app}/sessions/{session}b\006proto3" + + "unSessionResponse\"W\202\323\344\223\002Q\"L/v1beta/{conf" + + "ig.session=projects/*/locations/*/apps/*/sessions/*}:runSession:\001*\022\314\001\n" + + "\020StreamRunSession\022*.google.cloud.ces.v1beta.RunSes" + + "sionRequest\032+.google.cloud.ces.v1beta.Ru" + + "nSessionResponse\"]\202\323\344\223\002W\"R/v1beta/{confi" + + "g.session=projects/*/locations/*/apps/*/sessions/*}:streamRunSession:\001*0\001\022\310\001\n" + + "\016BidiRunSession\0221.google.cloud.ces.v1beta.B" + + "idiSessionClientMessage\0321.google.cloud.c" + + "es.v1beta.BidiSessionServerMessage\"L\212\323\344\223\002F\022D\n" + + "\016config.session\0222{session=projects/" + + "*/locations/*/apps/*/sessions/*}(\0010\001\032j\312A" + + "\022ces.googleapis.com\322ARhttps://www.google" + + "apis.com/auth/ces,https://www.googleapis.com/auth/cloud-platformB\311\001\n" + + "\033com.google.cloud.ces.v1betaB\023SessionServiceProtoP\001Z" + + "-cloud.google.com/go/ces/apiv1beta/cespb;cespb\352Ac\n" + + "\032ces.googleapis.com/Session\022Eprojects/{project}/locations/{location}/a" + + "pps/{app}/sessions/{session}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -440,6 +441,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TurnIndex", "TurnCompleted", "DiagnosticInfo", + "Context", "OutputType", }); internal_static_google_cloud_ces_v1beta_SessionOutput_DiagnosticInfo_descriptor = diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/SynthesizeSpeechConfig.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/SynthesizeSpeechConfig.java index 5438b09a1706..48c7bc156e74 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/SynthesizeSpeechConfig.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/SynthesizeSpeechConfig.java @@ -53,6 +53,9 @@ private SynthesizeSpeechConfig(com.google.protobuf.GeneratedMessage.Builder b private SynthesizeSpeechConfig() { voice_ = ""; + voiceSampleGcsUri_ = ""; + model_ = ""; + instruction_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -133,6 +136,69 @@ public com.google.protobuf.ByteString getVoiceBytes() { } } + public static final int VOICE_SAMPLE_GCS_URI_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object voiceSampleGcsUri_ = ""; + + /** + * + * + *
                +   * Optional. The Cloud Storage URI to the audio sample for voice cloning. The
                +   * audio sample should be a mono-channel, 24kHz WAV file.
                +   *
                +   * Note: Please make sure the CES service agent
                +   * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com` has
                +   * `storage.objects.get` permission to the Cloud Storage object.
                +   * 
                + * + * string voice_sample_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The voiceSampleGcsUri. + */ + @java.lang.Override + public java.lang.String getVoiceSampleGcsUri() { + java.lang.Object ref = voiceSampleGcsUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + voiceSampleGcsUri_ = s; + return s; + } + } + + /** + * + * + *
                +   * Optional. The Cloud Storage URI to the audio sample for voice cloning. The
                +   * audio sample should be a mono-channel, 24kHz WAV file.
                +   *
                +   * Note: Please make sure the CES service agent
                +   * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com` has
                +   * `storage.objects.get` permission to the Cloud Storage object.
                +   * 
                + * + * string voice_sample_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for voiceSampleGcsUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVoiceSampleGcsUriBytes() { + java.lang.Object ref = voiceSampleGcsUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + voiceSampleGcsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int SPEAKING_RATE_FIELD_NUMBER = 2; private double speakingRate_ = 0D; @@ -155,6 +221,120 @@ public double getSpeakingRate() { return speakingRate_; } + public static final int MODEL_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object model_ = ""; + + /** + * + * + *
                +   * Optional. The model used to synthesize audio.
                +   * Currently supported values:
                +   * - "gemini-3.1-flash-tts-preview"
                +   * If empty, Chirp3-HD is used.
                +   * 
                + * + * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The model. + */ + @java.lang.Override + public java.lang.String getModel() { + java.lang.Object ref = model_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + model_ = s; + return s; + } + } + + /** + * + * + *
                +   * Optional. The model used to synthesize audio.
                +   * Currently supported values:
                +   * - "gemini-3.1-flash-tts-preview"
                +   * If empty, Chirp3-HD is used.
                +   * 
                + * + * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for model. + */ + @java.lang.Override + public com.google.protobuf.ByteString getModelBytes() { + java.lang.Object ref = model_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + model_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INSTRUCTION_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object instruction_ = ""; + + /** + * + * + *
                +   * Optional. The instruction used to synthesize speech when using a generative
                +   * model.
                +   * 
                + * + * string instruction = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The instruction. + */ + @java.lang.Override + public java.lang.String getInstruction() { + java.lang.Object ref = instruction_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instruction_ = s; + return s; + } + } + + /** + * + * + *
                +   * Optional. The instruction used to synthesize speech when using a generative
                +   * model.
                +   * 
                + * + * string instruction = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for instruction. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInstructionBytes() { + java.lang.Object ref = instruction_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instruction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -175,6 +355,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (java.lang.Double.doubleToRawLongBits(speakingRate_) != 0) { output.writeDouble(2, speakingRate_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(voiceSampleGcsUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, voiceSampleGcsUri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(model_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, model_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(instruction_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, instruction_); + } getUnknownFields().writeTo(output); } @@ -190,6 +379,15 @@ public int getSerializedSize() { if (java.lang.Double.doubleToRawLongBits(speakingRate_) != 0) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, speakingRate_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(voiceSampleGcsUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, voiceSampleGcsUri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(model_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, model_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(instruction_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, instruction_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -207,8 +405,11 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.ces.v1beta.SynthesizeSpeechConfig) obj; if (!getVoice().equals(other.getVoice())) return false; + if (!getVoiceSampleGcsUri().equals(other.getVoiceSampleGcsUri())) return false; if (java.lang.Double.doubleToLongBits(getSpeakingRate()) != java.lang.Double.doubleToLongBits(other.getSpeakingRate())) return false; + if (!getModel().equals(other.getModel())) return false; + if (!getInstruction().equals(other.getInstruction())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -222,11 +423,17 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + VOICE_FIELD_NUMBER; hash = (53 * hash) + getVoice().hashCode(); + hash = (37 * hash) + VOICE_SAMPLE_GCS_URI_FIELD_NUMBER; + hash = (53 * hash) + getVoiceSampleGcsUri().hashCode(); hash = (37 * hash) + SPEAKING_RATE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getSpeakingRate())); + hash = (37 * hash) + MODEL_FIELD_NUMBER; + hash = (53 * hash) + getModel().hashCode(); + hash = (37 * hash) + INSTRUCTION_FIELD_NUMBER; + hash = (53 * hash) + getInstruction().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -368,7 +575,10 @@ public Builder clear() { super.clear(); bitField0_ = 0; voice_ = ""; + voiceSampleGcsUri_ = ""; speakingRate_ = 0D; + model_ = ""; + instruction_ = ""; return this; } @@ -409,8 +619,17 @@ private void buildPartial0(com.google.cloud.ces.v1beta.SynthesizeSpeechConfig re result.voice_ = voice_; } if (((from_bitField0_ & 0x00000002) != 0)) { + result.voiceSampleGcsUri_ = voiceSampleGcsUri_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { result.speakingRate_ = speakingRate_; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.model_ = model_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.instruction_ = instruction_; + } } @java.lang.Override @@ -431,9 +650,24 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.SynthesizeSpeechConfig othe bitField0_ |= 0x00000001; onChanged(); } + if (!other.getVoiceSampleGcsUri().isEmpty()) { + voiceSampleGcsUri_ = other.voiceSampleGcsUri_; + bitField0_ |= 0x00000002; + onChanged(); + } if (java.lang.Double.doubleToRawLongBits(other.getSpeakingRate()) != 0) { setSpeakingRate(other.getSpeakingRate()); } + if (!other.getModel().isEmpty()) { + model_ = other.model_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getInstruction().isEmpty()) { + instruction_ = other.instruction_; + bitField0_ |= 0x00000010; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -469,9 +703,27 @@ public Builder mergeFrom( case 17: { speakingRate_ = input.readDouble(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; break; } // case 17 + case 26: + { + voiceSampleGcsUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26 + case 34: + { + model_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + instruction_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -627,6 +879,142 @@ public Builder setVoiceBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object voiceSampleGcsUri_ = ""; + + /** + * + * + *
                +     * Optional. The Cloud Storage URI to the audio sample for voice cloning. The
                +     * audio sample should be a mono-channel, 24kHz WAV file.
                +     *
                +     * Note: Please make sure the CES service agent
                +     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com` has
                +     * `storage.objects.get` permission to the Cloud Storage object.
                +     * 
                + * + * string voice_sample_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The voiceSampleGcsUri. + */ + public java.lang.String getVoiceSampleGcsUri() { + java.lang.Object ref = voiceSampleGcsUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + voiceSampleGcsUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                +     * Optional. The Cloud Storage URI to the audio sample for voice cloning. The
                +     * audio sample should be a mono-channel, 24kHz WAV file.
                +     *
                +     * Note: Please make sure the CES service agent
                +     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com` has
                +     * `storage.objects.get` permission to the Cloud Storage object.
                +     * 
                + * + * string voice_sample_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for voiceSampleGcsUri. + */ + public com.google.protobuf.ByteString getVoiceSampleGcsUriBytes() { + java.lang.Object ref = voiceSampleGcsUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + voiceSampleGcsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                +     * Optional. The Cloud Storage URI to the audio sample for voice cloning. The
                +     * audio sample should be a mono-channel, 24kHz WAV file.
                +     *
                +     * Note: Please make sure the CES service agent
                +     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com` has
                +     * `storage.objects.get` permission to the Cloud Storage object.
                +     * 
                + * + * string voice_sample_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The voiceSampleGcsUri to set. + * @return This builder for chaining. + */ + public Builder setVoiceSampleGcsUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + voiceSampleGcsUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. The Cloud Storage URI to the audio sample for voice cloning. The
                +     * audio sample should be a mono-channel, 24kHz WAV file.
                +     *
                +     * Note: Please make sure the CES service agent
                +     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com` has
                +     * `storage.objects.get` permission to the Cloud Storage object.
                +     * 
                + * + * string voice_sample_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearVoiceSampleGcsUri() { + voiceSampleGcsUri_ = getDefaultInstance().getVoiceSampleGcsUri(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. The Cloud Storage URI to the audio sample for voice cloning. The
                +     * audio sample should be a mono-channel, 24kHz WAV file.
                +     *
                +     * Note: Please make sure the CES service agent
                +     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com` has
                +     * `storage.objects.get` permission to the Cloud Storage object.
                +     * 
                + * + * string voice_sample_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for voiceSampleGcsUri to set. + * @return This builder for chaining. + */ + public Builder setVoiceSampleGcsUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + voiceSampleGcsUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + private double speakingRate_; /** @@ -666,7 +1054,7 @@ public double getSpeakingRate() { public Builder setSpeakingRate(double value) { speakingRate_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -686,12 +1074,254 @@ public Builder setSpeakingRate(double value) { * @return This builder for chaining. */ public Builder clearSpeakingRate() { - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); speakingRate_ = 0D; onChanged(); return this; } + private java.lang.Object model_ = ""; + + /** + * + * + *
                +     * Optional. The model used to synthesize audio.
                +     * Currently supported values:
                +     * - "gemini-3.1-flash-tts-preview"
                +     * If empty, Chirp3-HD is used.
                +     * 
                + * + * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The model. + */ + public java.lang.String getModel() { + java.lang.Object ref = model_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + model_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                +     * Optional. The model used to synthesize audio.
                +     * Currently supported values:
                +     * - "gemini-3.1-flash-tts-preview"
                +     * If empty, Chirp3-HD is used.
                +     * 
                + * + * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for model. + */ + public com.google.protobuf.ByteString getModelBytes() { + java.lang.Object ref = model_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + model_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                +     * Optional. The model used to synthesize audio.
                +     * Currently supported values:
                +     * - "gemini-3.1-flash-tts-preview"
                +     * If empty, Chirp3-HD is used.
                +     * 
                + * + * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The model to set. + * @return This builder for chaining. + */ + public Builder setModel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + model_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. The model used to synthesize audio.
                +     * Currently supported values:
                +     * - "gemini-3.1-flash-tts-preview"
                +     * If empty, Chirp3-HD is used.
                +     * 
                + * + * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearModel() { + model_ = getDefaultInstance().getModel(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. The model used to synthesize audio.
                +     * Currently supported values:
                +     * - "gemini-3.1-flash-tts-preview"
                +     * If empty, Chirp3-HD is used.
                +     * 
                + * + * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for model to set. + * @return This builder for chaining. + */ + public Builder setModelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + model_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object instruction_ = ""; + + /** + * + * + *
                +     * Optional. The instruction used to synthesize speech when using a generative
                +     * model.
                +     * 
                + * + * string instruction = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The instruction. + */ + public java.lang.String getInstruction() { + java.lang.Object ref = instruction_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instruction_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                +     * Optional. The instruction used to synthesize speech when using a generative
                +     * model.
                +     * 
                + * + * string instruction = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for instruction. + */ + public com.google.protobuf.ByteString getInstructionBytes() { + java.lang.Object ref = instruction_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instruction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                +     * Optional. The instruction used to synthesize speech when using a generative
                +     * model.
                +     * 
                + * + * string instruction = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The instruction to set. + * @return This builder for chaining. + */ + public Builder setInstruction(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + instruction_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. The instruction used to synthesize speech when using a generative
                +     * model.
                +     * 
                + * + * string instruction = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearInstruction() { + instruction_ = getDefaultInstance().getInstruction(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. The instruction used to synthesize speech when using a generative
                +     * model.
                +     * 
                + * + * string instruction = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for instruction to set. + * @return This builder for chaining. + */ + public Builder setInstructionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instruction_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.SynthesizeSpeechConfig) } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/SynthesizeSpeechConfigOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/SynthesizeSpeechConfigOrBuilder.java index dfec5b6f9f9a..7a1709c2feb3 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/SynthesizeSpeechConfigOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/SynthesizeSpeechConfigOrBuilder.java @@ -62,6 +62,42 @@ public interface SynthesizeSpeechConfigOrBuilder */ com.google.protobuf.ByteString getVoiceBytes(); + /** + * + * + *
                +   * Optional. The Cloud Storage URI to the audio sample for voice cloning. The
                +   * audio sample should be a mono-channel, 24kHz WAV file.
                +   *
                +   * Note: Please make sure the CES service agent
                +   * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com` has
                +   * `storage.objects.get` permission to the Cloud Storage object.
                +   * 
                + * + * string voice_sample_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The voiceSampleGcsUri. + */ + java.lang.String getVoiceSampleGcsUri(); + + /** + * + * + *
                +   * Optional. The Cloud Storage URI to the audio sample for voice cloning. The
                +   * audio sample should be a mono-channel, 24kHz WAV file.
                +   *
                +   * Note: Please make sure the CES service agent
                +   * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com` has
                +   * `storage.objects.get` permission to the Cloud Storage object.
                +   * 
                + * + * string voice_sample_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for voiceSampleGcsUri. + */ + com.google.protobuf.ByteString getVoiceSampleGcsUriBytes(); + /** * * @@ -77,4 +113,64 @@ public interface SynthesizeSpeechConfigOrBuilder * @return The speakingRate. */ double getSpeakingRate(); + + /** + * + * + *
                +   * Optional. The model used to synthesize audio.
                +   * Currently supported values:
                +   * - "gemini-3.1-flash-tts-preview"
                +   * If empty, Chirp3-HD is used.
                +   * 
                + * + * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The model. + */ + java.lang.String getModel(); + + /** + * + * + *
                +   * Optional. The model used to synthesize audio.
                +   * Currently supported values:
                +   * - "gemini-3.1-flash-tts-preview"
                +   * If empty, Chirp3-HD is used.
                +   * 
                + * + * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for model. + */ + com.google.protobuf.ByteString getModelBytes(); + + /** + * + * + *
                +   * Optional. The instruction used to synthesize speech when using a generative
                +   * model.
                +   * 
                + * + * string instruction = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The instruction. + */ + java.lang.String getInstruction(); + + /** + * + * + *
                +   * Optional. The instruction used to synthesize speech when using a generative
                +   * model.
                +   * 
                + * + * string instruction = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for instruction. + */ + com.google.protobuf.ByteString getInstructionBytes(); } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/Toolset.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/Toolset.java index b401acabfa7f..7b00c58bff35 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/Toolset.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/Toolset.java @@ -483,6 +483,61 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } + public static final int TIMEOUT_FIELD_NUMBER = 12; + private com.google.protobuf.Duration timeout_; + + /** + * + * + *
                +   * Optional. The timeout for the toolset execution. If not set, the default
                +   * timeout is 30 seconds for `SYNCHRONOUS` toolsets and 60 seconds for
                +   * `ASYNCHRONOUS` toolsets.
                +   * 
                + * + * .google.protobuf.Duration timeout = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the timeout field is set. + */ + @java.lang.Override + public boolean hasTimeout() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                +   * Optional. The timeout for the toolset execution. If not set, the default
                +   * timeout is 30 seconds for `SYNCHRONOUS` toolsets and 60 seconds for
                +   * `ASYNCHRONOUS` toolsets.
                +   * 
                + * + * .google.protobuf.Duration timeout = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The timeout. + */ + @java.lang.Override + public com.google.protobuf.Duration getTimeout() { + return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; + } + + /** + * + * + *
                +   * Optional. The timeout for the toolset execution. If not set, the default
                +   * timeout is 30 seconds for `SYNCHRONOUS` toolsets and 60 seconds for
                +   * `ASYNCHRONOUS` toolsets.
                +   * 
                + * + * .google.protobuf.Duration timeout = 12 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { + return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; + } + public static final int CREATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createTime_; @@ -500,7 +555,7 @@ public com.google.protobuf.ByteString getDescriptionBytes() { */ @java.lang.Override public boolean hasCreateTime() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000002) != 0); } /** @@ -552,7 +607,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { */ @java.lang.Override public boolean hasUpdateTime() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** @@ -703,7 +758,7 @@ public com.google.cloud.ces.v1beta.ExecutionType getExecutionType() { */ @java.lang.Override public boolean hasToolFakeConfig() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** @@ -764,10 +819,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_); } - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getCreateTime()); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(4, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { @@ -789,9 +844,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessage.writeString(output, 10, description_); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(11, getToolFakeConfig()); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(12, getTimeout()); + } getUnknownFields().writeTo(output); } @@ -807,10 +865,10 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_); } - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { @@ -838,9 +896,12 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(10, description_); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getToolFakeConfig()); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getTimeout()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -859,6 +920,10 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (!getDisplayName().equals(other.getDisplayName())) return false; if (!getDescription().equals(other.getDescription())) return false; + if (hasTimeout() != other.hasTimeout()) return false; + if (hasTimeout()) { + if (!getTimeout().equals(other.getTimeout())) return false; + } if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { if (!getCreateTime().equals(other.getCreateTime())) return false; @@ -904,6 +969,10 @@ public int hashCode() { hash = (53 * hash) + getDisplayName().hashCode(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); + if (hasTimeout()) { + hash = (37 * hash) + TIMEOUT_FIELD_NUMBER; + hash = (53 * hash) + getTimeout().hashCode(); + } if (hasCreateTime()) { hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getCreateTime().hashCode(); @@ -1077,6 +1146,7 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetTimeoutFieldBuilder(); internalGetCreateTimeFieldBuilder(); internalGetUpdateTimeFieldBuilder(); internalGetToolFakeConfigFieldBuilder(); @@ -1099,6 +1169,11 @@ public Builder clear() { name_ = ""; displayName_ = ""; description_ = ""; + timeout_ = null; + if (timeoutBuilder_ != null) { + timeoutBuilder_.dispose(); + timeoutBuilder_ = null; + } createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); @@ -1165,23 +1240,27 @@ private void buildPartial0(com.google.cloud.ces.v1beta.Toolset result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000040) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.timeout_ = timeoutBuilder_ == null ? timeout_ : timeoutBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000080) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000100) != 0)) { - result.etag_ = etag_; + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000200) != 0)) { - result.executionType_ = executionType_; + result.etag_ = etag_; } if (((from_bitField0_ & 0x00000400) != 0)) { + result.executionType_ = executionType_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { result.toolFakeConfig_ = toolFakeConfigBuilder_ == null ? toolFakeConfig_ : toolFakeConfigBuilder_.build(); - to_bitField0_ |= 0x00000004; + to_bitField0_ |= 0x00000008; } result.bitField0_ |= to_bitField0_; } @@ -1227,6 +1306,9 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.Toolset other) { bitField0_ |= 0x00000020; onChanged(); } + if (other.hasTimeout()) { + mergeTimeout(other.getTimeout()); + } if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -1235,7 +1317,7 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.Toolset other) { } if (!other.getEtag().isEmpty()) { etag_ = other.etag_; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); } if (other.executionType_ != 0) { @@ -1307,20 +1389,20 @@ public Builder mergeFrom( { input.readMessage( internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case 26 case 34: { input.readMessage( internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 34 case 42: { etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; break; } // case 42 case 50: @@ -1347,7 +1429,7 @@ public Builder mergeFrom( case 72: { executionType_ = input.readEnum(); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; break; } // case 72 case 82: @@ -1360,9 +1442,15 @@ public Builder mergeFrom( { input.readMessage( internalGetToolFakeConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; break; } // case 90 + case 98: + { + input.readMessage(internalGetTimeoutFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 98 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2478,6 +2566,223 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.protobuf.Duration timeout_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + timeoutBuilder_; + + /** + * + * + *
                +     * Optional. The timeout for the toolset execution. If not set, the default
                +     * timeout is 30 seconds for `SYNCHRONOUS` toolsets and 60 seconds for
                +     * `ASYNCHRONOUS` toolsets.
                +     * 
                + * + * .google.protobuf.Duration timeout = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the timeout field is set. + */ + public boolean hasTimeout() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
                +     * Optional. The timeout for the toolset execution. If not set, the default
                +     * timeout is 30 seconds for `SYNCHRONOUS` toolsets and 60 seconds for
                +     * `ASYNCHRONOUS` toolsets.
                +     * 
                + * + * .google.protobuf.Duration timeout = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The timeout. + */ + public com.google.protobuf.Duration getTimeout() { + if (timeoutBuilder_ == null) { + return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; + } else { + return timeoutBuilder_.getMessage(); + } + } + + /** + * + * + *
                +     * Optional. The timeout for the toolset execution. If not set, the default
                +     * timeout is 30 seconds for `SYNCHRONOUS` toolsets and 60 seconds for
                +     * `ASYNCHRONOUS` toolsets.
                +     * 
                + * + * .google.protobuf.Duration timeout = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTimeout(com.google.protobuf.Duration value) { + if (timeoutBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + timeout_ = value; + } else { + timeoutBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. The timeout for the toolset execution. If not set, the default
                +     * timeout is 30 seconds for `SYNCHRONOUS` toolsets and 60 seconds for
                +     * `ASYNCHRONOUS` toolsets.
                +     * 
                + * + * .google.protobuf.Duration timeout = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTimeout(com.google.protobuf.Duration.Builder builderForValue) { + if (timeoutBuilder_ == null) { + timeout_ = builderForValue.build(); + } else { + timeoutBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. The timeout for the toolset execution. If not set, the default
                +     * timeout is 30 seconds for `SYNCHRONOUS` toolsets and 60 seconds for
                +     * `ASYNCHRONOUS` toolsets.
                +     * 
                + * + * .google.protobuf.Duration timeout = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeTimeout(com.google.protobuf.Duration value) { + if (timeoutBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && timeout_ != null + && timeout_ != com.google.protobuf.Duration.getDefaultInstance()) { + getTimeoutBuilder().mergeFrom(value); + } else { + timeout_ = value; + } + } else { + timeoutBuilder_.mergeFrom(value); + } + if (timeout_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
                +     * Optional. The timeout for the toolset execution. If not set, the default
                +     * timeout is 30 seconds for `SYNCHRONOUS` toolsets and 60 seconds for
                +     * `ASYNCHRONOUS` toolsets.
                +     * 
                + * + * .google.protobuf.Duration timeout = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearTimeout() { + bitField0_ = (bitField0_ & ~0x00000040); + timeout_ = null; + if (timeoutBuilder_ != null) { + timeoutBuilder_.dispose(); + timeoutBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. The timeout for the toolset execution. If not set, the default
                +     * timeout is 30 seconds for `SYNCHRONOUS` toolsets and 60 seconds for
                +     * `ASYNCHRONOUS` toolsets.
                +     * 
                + * + * .google.protobuf.Duration timeout = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Duration.Builder getTimeoutBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetTimeoutFieldBuilder().getBuilder(); + } + + /** + * + * + *
                +     * Optional. The timeout for the toolset execution. If not set, the default
                +     * timeout is 30 seconds for `SYNCHRONOUS` toolsets and 60 seconds for
                +     * `ASYNCHRONOUS` toolsets.
                +     * 
                + * + * .google.protobuf.Duration timeout = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { + if (timeoutBuilder_ != null) { + return timeoutBuilder_.getMessageOrBuilder(); + } else { + return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; + } + } + + /** + * + * + *
                +     * Optional. The timeout for the toolset execution. If not set, the default
                +     * timeout is 30 seconds for `SYNCHRONOUS` toolsets and 60 seconds for
                +     * `ASYNCHRONOUS` toolsets.
                +     * 
                + * + * .google.protobuf.Duration timeout = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + internalGetTimeoutFieldBuilder() { + if (timeoutBuilder_ == null) { + timeoutBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getTimeout(), getParentForChildren(), isClean()); + timeout_ = null; + } + return timeoutBuilder_; + } + private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, @@ -2499,7 +2804,7 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** @@ -2545,7 +2850,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2567,7 +2872,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { createTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2585,7 +2890,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) + if (((bitField0_ & 0x00000080) != 0) && createTime_ != null && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); @@ -2596,7 +2901,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { createTimeBuilder_.mergeFrom(value); } if (createTime_ != null) { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); } return this; @@ -2614,7 +2919,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); @@ -2636,7 +2941,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return internalGetCreateTimeFieldBuilder().getBuilder(); } @@ -2711,7 +3016,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** @@ -2757,7 +3062,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { } else { updateTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2779,7 +3084,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2797,7 +3102,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) + if (((bitField0_ & 0x00000100) != 0) && updateTime_ != null && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); @@ -2808,7 +3113,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { updateTimeBuilder_.mergeFrom(value); } if (updateTime_ != null) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); } return this; @@ -2826,7 +3131,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); updateTime_ = null; if (updateTimeBuilder_ != null) { updateTimeBuilder_.dispose(); @@ -2848,7 +3153,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return internalGetUpdateTimeFieldBuilder().getBuilder(); } @@ -2973,7 +3278,7 @@ public Builder setEtag(java.lang.String value) { throw new NullPointerException(); } etag_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -2993,7 +3298,7 @@ public Builder setEtag(java.lang.String value) { */ public Builder clearEtag() { etag_ = getDefaultInstance().getEtag(); - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } @@ -3018,7 +3323,7 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); etag_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -3059,7 +3364,7 @@ public int getExecutionTypeValue() { */ public Builder setExecutionTypeValue(int value) { executionType_ = value; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -3102,7 +3407,7 @@ public Builder setExecutionType(com.google.cloud.ces.v1beta.ExecutionType value) if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; executionType_ = value.getNumber(); onChanged(); return this; @@ -3122,7 +3427,7 @@ public Builder setExecutionType(com.google.cloud.ces.v1beta.ExecutionType value) * @return This builder for chaining. */ public Builder clearExecutionType() { - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); executionType_ = 0; onChanged(); return this; @@ -3149,7 +3454,7 @@ public Builder clearExecutionType() { * @return Whether the toolFakeConfig field is set. */ public boolean hasToolFakeConfig() { - return ((bitField0_ & 0x00000400) != 0); + return ((bitField0_ & 0x00000800) != 0); } /** @@ -3195,7 +3500,7 @@ public Builder setToolFakeConfig(com.google.cloud.ces.v1beta.ToolFakeConfig valu } else { toolFakeConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -3218,7 +3523,7 @@ public Builder setToolFakeConfig( } else { toolFakeConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -3236,7 +3541,7 @@ public Builder setToolFakeConfig( */ public Builder mergeToolFakeConfig(com.google.cloud.ces.v1beta.ToolFakeConfig value) { if (toolFakeConfigBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) + if (((bitField0_ & 0x00000800) != 0) && toolFakeConfig_ != null && toolFakeConfig_ != com.google.cloud.ces.v1beta.ToolFakeConfig.getDefaultInstance()) { getToolFakeConfigBuilder().mergeFrom(value); @@ -3247,7 +3552,7 @@ public Builder mergeToolFakeConfig(com.google.cloud.ces.v1beta.ToolFakeConfig va toolFakeConfigBuilder_.mergeFrom(value); } if (toolFakeConfig_ != null) { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); } return this; @@ -3265,7 +3570,7 @@ public Builder mergeToolFakeConfig(com.google.cloud.ces.v1beta.ToolFakeConfig va * */ public Builder clearToolFakeConfig() { - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); toolFakeConfig_ = null; if (toolFakeConfigBuilder_ != null) { toolFakeConfigBuilder_.dispose(); @@ -3287,7 +3592,7 @@ public Builder clearToolFakeConfig() { * */ public com.google.cloud.ces.v1beta.ToolFakeConfig.Builder getToolFakeConfigBuilder() { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return internalGetToolFakeConfigFieldBuilder().getBuilder(); } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ToolsetOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ToolsetOrBuilder.java index aecabc53cdfb..e92bc8d848cf 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ToolsetOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ToolsetOrBuilder.java @@ -248,6 +248,49 @@ public interface ToolsetOrBuilder */ com.google.protobuf.ByteString getDescriptionBytes(); + /** + * + * + *
                +   * Optional. The timeout for the toolset execution. If not set, the default
                +   * timeout is 30 seconds for `SYNCHRONOUS` toolsets and 60 seconds for
                +   * `ASYNCHRONOUS` toolsets.
                +   * 
                + * + * .google.protobuf.Duration timeout = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the timeout field is set. + */ + boolean hasTimeout(); + + /** + * + * + *
                +   * Optional. The timeout for the toolset execution. If not set, the default
                +   * timeout is 30 seconds for `SYNCHRONOUS` toolsets and 60 seconds for
                +   * `ASYNCHRONOUS` toolsets.
                +   * 
                + * + * .google.protobuf.Duration timeout = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The timeout. + */ + com.google.protobuf.Duration getTimeout(); + + /** + * + * + *
                +   * Optional. The timeout for the toolset execution. If not set, the default
                +   * timeout is 30 seconds for `SYNCHRONOUS` toolsets and 60 seconds for
                +   * `ASYNCHRONOUS` toolsets.
                +   * 
                + * + * .google.protobuf.Duration timeout = 12 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder(); + /** * * diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ToolsetProto.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ToolsetProto.java index 817720770669..b654cd6b7f0b 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ToolsetProto.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ToolsetProto.java @@ -60,18 +60,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "roto\032$google/cloud/ces/v1beta/common.proto\032/google/cloud/ces/v1beta/connector_to" + "olset.proto\032#google/cloud/ces/v1beta/fakes.proto\032)google/cloud/ces/v1beta/mcp_to" + "olset.proto\032.google/cloud/ces/v1beta/ope" - + "n_api_toolset.proto\032\037google/protobuf/timestamp.proto\"\273\005\n" + + "n_api_toolset.proto\032\036google/protobuf/dur" + + "ation.proto\032\037google/protobuf/timestamp.proto\"\354\005\n" + "\007Toolset\022?\n" - + "\013mcp_toolset\030\006" - + " \001(\0132#.google.cloud.ces.v1beta.McpToolsetB\003\340A\001H\000\022H\n" - + "\020open_api_toolset\030\007 \001(\0132\'.go" - + "ogle.cloud.ces.v1beta.OpenApiToolsetB\003\340A\001H\000\022K\n" - + "\021connector_toolset\030\010 \001(\0132).google." - + "cloud.ces.v1beta.ConnectorToolsetB\003\340A\001H\000\022\021\n" + + "\013mcp_toolset\030\006 \001(\0132#." + + "google.cloud.ces.v1beta.McpToolsetB\003\340A\001H\000\022H\n" + + "\020open_api_toolset\030\007" + + " \001(\0132\'.google.cloud.ces.v1beta.OpenApiToolsetB\003\340A\001H\000\022K\n" + + "\021connector_toolset\030\010" + + " \001(\0132).google.cloud.ces.v1beta.ConnectorToolsetB\003\340A\001H\000\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\031\n" + "\014display_name\030\002 \001(\tB\003\340A\001\022\030\n" + "\013description\030\n" - + " \001(\tB\003\340A\001\0224\n" + + " \001(\tB\003\340A\001\022/\n" + + "\007timeout\030\014 \001(\0132\031.google.protobuf.DurationB\003\340A\001\0224\n" + "\013create_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\004" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\014\n" @@ -80,11 +82,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0162&.google.cloud.ces.v1beta.ExecutionTypeB\003\340A\001\022F\n" + "\020tool_fake_config\030\013" + " \001(\0132\'.google.cloud.ces.v1beta.ToolFakeConfigB\003\340A\001:y\352Av\n" - + "\032ces.googleapis.com/Toolset\022Eprojects/{project}/locations/{" - + "location}/apps/{app}/toolsets/{toolset}*\010toolsets2\007toolsetB\016\n" + + "\032ces.googleapis.com/Toolset\022Eprojects/{project}/locations/" + + "{location}/apps/{app}/toolsets/{toolset}*\010toolsets2\007toolsetB\016\n" + "\014toolset_typeB\\\n" - + "\033com.google.cloud.ces.v1betaB\014ToolsetProtoP" - + "\001Z-cloud.google.com/go/ces/apiv1beta/cespb;cespbb\006proto3" + + "\033com.google.cloud.ces.v1betaB\014ToolsetProto" + + "P\001Z-cloud.google.com/go/ces/apiv1beta/cespb;cespbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -97,6 +99,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.ces.v1beta.FakesProto.getDescriptor(), com.google.cloud.ces.v1beta.McpToolsetProto.getDescriptor(), com.google.cloud.ces.v1beta.OpenApiToolsetProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); internal_static_google_cloud_ces_v1beta_Toolset_descriptor = getDescriptor().getMessageType(0); @@ -110,6 +113,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "DisplayName", "Description", + "Timeout", "CreateTime", "UpdateTime", "Etag", @@ -125,6 +129,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.ces.v1beta.FakesProto.getDescriptor(); com.google.cloud.ces.v1beta.McpToolsetProto.getDescriptor(); com.google.cloud.ces.v1beta.OpenApiToolsetProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/WhatsAppCredentials.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/WhatsAppCredentials.java new file mode 100644 index 000000000000..8f32610c1dca --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/WhatsAppCredentials.java @@ -0,0 +1,1541 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/deployment.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1beta; + +/** + * + * + *
                + * Ephemeral Meta credentials for WhatsApp native integration.
                + * 
                + * + * Protobuf type {@code google.cloud.ces.v1beta.WhatsAppCredentials} + */ +@com.google.protobuf.Generated +public final class WhatsAppCredentials extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.WhatsAppCredentials) + WhatsAppCredentialsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "WhatsAppCredentials"); + } + + // Use WhatsAppCredentials.newBuilder() to construct. + private WhatsAppCredentials(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private WhatsAppCredentials() { + authCode_ = ""; + pin_ = ""; + phoneNumber_ = ""; + businessAccountId_ = ""; + wabaId_ = ""; + conversationProfileId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.ChannelProfileProto + .internal_static_google_cloud_ces_v1beta_WhatsAppCredentials_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.ChannelProfileProto + .internal_static_google_cloud_ces_v1beta_WhatsAppCredentials_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.WhatsAppCredentials.class, + com.google.cloud.ces.v1beta.WhatsAppCredentials.Builder.class); + } + + public static final int AUTH_CODE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object authCode_ = ""; + + /** + * + * + *
                +   * Required. The Meta auth code provided by the embedded signup flow.
                +   * 
                + * + * string auth_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The authCode. + */ + @java.lang.Override + public java.lang.String getAuthCode() { + java.lang.Object ref = authCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + authCode_ = s; + return s; + } + } + + /** + * + * + *
                +   * Required. The Meta auth code provided by the embedded signup flow.
                +   * 
                + * + * string auth_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for authCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAuthCodeBytes() { + java.lang.Object ref = authCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + authCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PIN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object pin_ = ""; + + /** + * + * + *
                +   * Required. The 6-digit PIN created by the user for two-step verification.
                +   * 
                + * + * string pin = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The pin. + */ + @java.lang.Override + public java.lang.String getPin() { + java.lang.Object ref = pin_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pin_ = s; + return s; + } + } + + /** + * + * + *
                +   * Required. The 6-digit PIN created by the user for two-step verification.
                +   * 
                + * + * string pin = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for pin. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPinBytes() { + java.lang.Object ref = pin_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pin_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PHONE_NUMBER_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object phoneNumber_ = ""; + + /** + * + * + *
                +   * Required. The phone number to register with WhatsApp.
                +   * 
                + * + * string phone_number = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The phoneNumber. + */ + @java.lang.Override + public java.lang.String getPhoneNumber() { + java.lang.Object ref = phoneNumber_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + phoneNumber_ = s; + return s; + } + } + + /** + * + * + *
                +   * Required. The phone number to register with WhatsApp.
                +   * 
                + * + * string phone_number = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for phoneNumber. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPhoneNumberBytes() { + java.lang.Object ref = phoneNumber_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + phoneNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BUSINESS_ACCOUNT_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object businessAccountId_ = ""; + + /** + * + * + *
                +   * Required. The Business Account ID to use for the phone number.
                +   * 
                + * + * string business_account_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The businessAccountId. + */ + @java.lang.Override + public java.lang.String getBusinessAccountId() { + java.lang.Object ref = businessAccountId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + businessAccountId_ = s; + return s; + } + } + + /** + * + * + *
                +   * Required. The Business Account ID to use for the phone number.
                +   * 
                + * + * string business_account_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for businessAccountId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBusinessAccountIdBytes() { + java.lang.Object ref = businessAccountId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + businessAccountId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WABA_ID_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object wabaId_ = ""; + + /** + * + * + *
                +   * Required. The WhatsApp Business Account ID.
                +   * 
                + * + * string waba_id = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The wabaId. + */ + @java.lang.Override + public java.lang.String getWabaId() { + java.lang.Object ref = wabaId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + wabaId_ = s; + return s; + } + } + + /** + * + * + *
                +   * Required. The WhatsApp Business Account ID.
                +   * 
                + * + * string waba_id = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for wabaId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getWabaIdBytes() { + java.lang.Object ref = wabaId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + wabaId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONVERSATION_PROFILE_ID_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object conversationProfileId_ = ""; + + /** + * + * + *
                +   * Required. The Conversation Profile ID to use for the deployment.
                +   * 
                + * + * string conversation_profile_id = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The conversationProfileId. + */ + @java.lang.Override + public java.lang.String getConversationProfileId() { + java.lang.Object ref = conversationProfileId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + conversationProfileId_ = s; + return s; + } + } + + /** + * + * + *
                +   * Required. The Conversation Profile ID to use for the deployment.
                +   * 
                + * + * string conversation_profile_id = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for conversationProfileId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getConversationProfileIdBytes() { + java.lang.Object ref = conversationProfileId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + conversationProfileId_ = 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(authCode_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, authCode_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pin_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, pin_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(phoneNumber_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, phoneNumber_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(businessAccountId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, businessAccountId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(wabaId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, wabaId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(conversationProfileId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, conversationProfileId_); + } + 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(authCode_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, authCode_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pin_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, pin_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(phoneNumber_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, phoneNumber_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(businessAccountId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, businessAccountId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(wabaId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, wabaId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(conversationProfileId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, conversationProfileId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1beta.WhatsAppCredentials)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.WhatsAppCredentials other = + (com.google.cloud.ces.v1beta.WhatsAppCredentials) obj; + + if (!getAuthCode().equals(other.getAuthCode())) return false; + if (!getPin().equals(other.getPin())) return false; + if (!getPhoneNumber().equals(other.getPhoneNumber())) return false; + if (!getBusinessAccountId().equals(other.getBusinessAccountId())) return false; + if (!getWabaId().equals(other.getWabaId())) return false; + if (!getConversationProfileId().equals(other.getConversationProfileId())) return false; + if (!getUnknownFields().equals(other.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_CODE_FIELD_NUMBER; + hash = (53 * hash) + getAuthCode().hashCode(); + hash = (37 * hash) + PIN_FIELD_NUMBER; + hash = (53 * hash) + getPin().hashCode(); + hash = (37 * hash) + PHONE_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getPhoneNumber().hashCode(); + hash = (37 * hash) + BUSINESS_ACCOUNT_ID_FIELD_NUMBER; + hash = (53 * hash) + getBusinessAccountId().hashCode(); + hash = (37 * hash) + WABA_ID_FIELD_NUMBER; + hash = (53 * hash) + getWabaId().hashCode(); + hash = (37 * hash) + CONVERSATION_PROFILE_ID_FIELD_NUMBER; + hash = (53 * hash) + getConversationProfileId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.WhatsAppCredentials parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.WhatsAppCredentials parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.WhatsAppCredentials parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.WhatsAppCredentials parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.WhatsAppCredentials parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.WhatsAppCredentials parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.WhatsAppCredentials parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.WhatsAppCredentials parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.WhatsAppCredentials parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.WhatsAppCredentials parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.WhatsAppCredentials parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.WhatsAppCredentials parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1beta.WhatsAppCredentials prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                +   * Ephemeral Meta credentials for WhatsApp native integration.
                +   * 
                + * + * Protobuf type {@code google.cloud.ces.v1beta.WhatsAppCredentials} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.WhatsAppCredentials) + com.google.cloud.ces.v1beta.WhatsAppCredentialsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.ChannelProfileProto + .internal_static_google_cloud_ces_v1beta_WhatsAppCredentials_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.ChannelProfileProto + .internal_static_google_cloud_ces_v1beta_WhatsAppCredentials_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.WhatsAppCredentials.class, + com.google.cloud.ces.v1beta.WhatsAppCredentials.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.WhatsAppCredentials.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + authCode_ = ""; + pin_ = ""; + phoneNumber_ = ""; + businessAccountId_ = ""; + wabaId_ = ""; + conversationProfileId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.ChannelProfileProto + .internal_static_google_cloud_ces_v1beta_WhatsAppCredentials_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.WhatsAppCredentials getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.WhatsAppCredentials.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.WhatsAppCredentials build() { + com.google.cloud.ces.v1beta.WhatsAppCredentials result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.WhatsAppCredentials buildPartial() { + com.google.cloud.ces.v1beta.WhatsAppCredentials result = + new com.google.cloud.ces.v1beta.WhatsAppCredentials(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1beta.WhatsAppCredentials result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.authCode_ = authCode_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pin_ = pin_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.phoneNumber_ = phoneNumber_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.businessAccountId_ = businessAccountId_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.wabaId_ = wabaId_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.conversationProfileId_ = conversationProfileId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.WhatsAppCredentials) { + return mergeFrom((com.google.cloud.ces.v1beta.WhatsAppCredentials) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.WhatsAppCredentials other) { + if (other == com.google.cloud.ces.v1beta.WhatsAppCredentials.getDefaultInstance()) + return this; + if (!other.getAuthCode().isEmpty()) { + authCode_ = other.authCode_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getPin().isEmpty()) { + pin_ = other.pin_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getPhoneNumber().isEmpty()) { + phoneNumber_ = other.phoneNumber_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getBusinessAccountId().isEmpty()) { + businessAccountId_ = other.businessAccountId_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getWabaId().isEmpty()) { + wabaId_ = other.wabaId_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getConversationProfileId().isEmpty()) { + conversationProfileId_ = other.conversationProfileId_; + 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: + { + authCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + pin_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + phoneNumber_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + businessAccountId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + wabaId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + conversationProfileId_ = 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 authCode_ = ""; + + /** + * + * + *
                +     * Required. The Meta auth code provided by the embedded signup flow.
                +     * 
                + * + * string auth_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The authCode. + */ + public java.lang.String getAuthCode() { + java.lang.Object ref = authCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + authCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                +     * Required. The Meta auth code provided by the embedded signup flow.
                +     * 
                + * + * string auth_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for authCode. + */ + public com.google.protobuf.ByteString getAuthCodeBytes() { + java.lang.Object ref = authCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + authCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                +     * Required. The Meta auth code provided by the embedded signup flow.
                +     * 
                + * + * string auth_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The authCode to set. + * @return This builder for chaining. + */ + public Builder setAuthCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + authCode_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The Meta auth code provided by the embedded signup flow.
                +     * 
                + * + * string auth_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearAuthCode() { + authCode_ = getDefaultInstance().getAuthCode(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The Meta auth code provided by the embedded signup flow.
                +     * 
                + * + * string auth_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for authCode to set. + * @return This builder for chaining. + */ + public Builder setAuthCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + authCode_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object pin_ = ""; + + /** + * + * + *
                +     * Required. The 6-digit PIN created by the user for two-step verification.
                +     * 
                + * + * string pin = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The pin. + */ + public java.lang.String getPin() { + java.lang.Object ref = pin_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pin_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                +     * Required. The 6-digit PIN created by the user for two-step verification.
                +     * 
                + * + * string pin = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for pin. + */ + public com.google.protobuf.ByteString getPinBytes() { + java.lang.Object ref = pin_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pin_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                +     * Required. The 6-digit PIN created by the user for two-step verification.
                +     * 
                + * + * string pin = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The pin to set. + * @return This builder for chaining. + */ + public Builder setPin(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pin_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The 6-digit PIN created by the user for two-step verification.
                +     * 
                + * + * string pin = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearPin() { + pin_ = getDefaultInstance().getPin(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The 6-digit PIN created by the user for two-step verification.
                +     * 
                + * + * string pin = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for pin to set. + * @return This builder for chaining. + */ + public Builder setPinBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pin_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object phoneNumber_ = ""; + + /** + * + * + *
                +     * Required. The phone number to register with WhatsApp.
                +     * 
                + * + * string phone_number = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The phoneNumber. + */ + public java.lang.String getPhoneNumber() { + java.lang.Object ref = phoneNumber_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + phoneNumber_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                +     * Required. The phone number to register with WhatsApp.
                +     * 
                + * + * string phone_number = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for phoneNumber. + */ + public com.google.protobuf.ByteString getPhoneNumberBytes() { + java.lang.Object ref = phoneNumber_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + phoneNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                +     * Required. The phone number to register with WhatsApp.
                +     * 
                + * + * string phone_number = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The phoneNumber to set. + * @return This builder for chaining. + */ + public Builder setPhoneNumber(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + phoneNumber_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The phone number to register with WhatsApp.
                +     * 
                + * + * string phone_number = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearPhoneNumber() { + phoneNumber_ = getDefaultInstance().getPhoneNumber(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The phone number to register with WhatsApp.
                +     * 
                + * + * string phone_number = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for phoneNumber to set. + * @return This builder for chaining. + */ + public Builder setPhoneNumberBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + phoneNumber_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object businessAccountId_ = ""; + + /** + * + * + *
                +     * Required. The Business Account ID to use for the phone number.
                +     * 
                + * + * string business_account_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The businessAccountId. + */ + public java.lang.String getBusinessAccountId() { + java.lang.Object ref = businessAccountId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + businessAccountId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                +     * Required. The Business Account ID to use for the phone number.
                +     * 
                + * + * string business_account_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for businessAccountId. + */ + public com.google.protobuf.ByteString getBusinessAccountIdBytes() { + java.lang.Object ref = businessAccountId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + businessAccountId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                +     * Required. The Business Account ID to use for the phone number.
                +     * 
                + * + * string business_account_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The businessAccountId to set. + * @return This builder for chaining. + */ + public Builder setBusinessAccountId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + businessAccountId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The Business Account ID to use for the phone number.
                +     * 
                + * + * string business_account_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearBusinessAccountId() { + businessAccountId_ = getDefaultInstance().getBusinessAccountId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The Business Account ID to use for the phone number.
                +     * 
                + * + * string business_account_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for businessAccountId to set. + * @return This builder for chaining. + */ + public Builder setBusinessAccountIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + businessAccountId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object wabaId_ = ""; + + /** + * + * + *
                +     * Required. The WhatsApp Business Account ID.
                +     * 
                + * + * string waba_id = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The wabaId. + */ + public java.lang.String getWabaId() { + java.lang.Object ref = wabaId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + wabaId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                +     * Required. The WhatsApp Business Account ID.
                +     * 
                + * + * string waba_id = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for wabaId. + */ + public com.google.protobuf.ByteString getWabaIdBytes() { + java.lang.Object ref = wabaId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + wabaId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                +     * Required. The WhatsApp Business Account ID.
                +     * 
                + * + * string waba_id = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The wabaId to set. + * @return This builder for chaining. + */ + public Builder setWabaId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + wabaId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The WhatsApp Business Account ID.
                +     * 
                + * + * string waba_id = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearWabaId() { + wabaId_ = getDefaultInstance().getWabaId(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The WhatsApp Business Account ID.
                +     * 
                + * + * string waba_id = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for wabaId to set. + * @return This builder for chaining. + */ + public Builder setWabaIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + wabaId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object conversationProfileId_ = ""; + + /** + * + * + *
                +     * Required. The Conversation Profile ID to use for the deployment.
                +     * 
                + * + * string conversation_profile_id = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The conversationProfileId. + */ + public java.lang.String getConversationProfileId() { + java.lang.Object ref = conversationProfileId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + conversationProfileId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                +     * Required. The Conversation Profile ID to use for the deployment.
                +     * 
                + * + * string conversation_profile_id = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for conversationProfileId. + */ + public com.google.protobuf.ByteString getConversationProfileIdBytes() { + java.lang.Object ref = conversationProfileId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + conversationProfileId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                +     * Required. The Conversation Profile ID to use for the deployment.
                +     * 
                + * + * string conversation_profile_id = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The conversationProfileId to set. + * @return This builder for chaining. + */ + public Builder setConversationProfileId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + conversationProfileId_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The Conversation Profile ID to use for the deployment.
                +     * 
                + * + * string conversation_profile_id = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearConversationProfileId() { + conversationProfileId_ = getDefaultInstance().getConversationProfileId(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The Conversation Profile ID to use for the deployment.
                +     * 
                + * + * string conversation_profile_id = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for conversationProfileId to set. + * @return This builder for chaining. + */ + public Builder setConversationProfileIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + conversationProfileId_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.WhatsAppCredentials) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.WhatsAppCredentials) + private static final com.google.cloud.ces.v1beta.WhatsAppCredentials DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.WhatsAppCredentials(); + } + + public static com.google.cloud.ces.v1beta.WhatsAppCredentials getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WhatsAppCredentials parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.WhatsAppCredentials getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/WhatsAppCredentialsOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/WhatsAppCredentialsOrBuilder.java new file mode 100644 index 000000000000..9975886a7ca5 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/WhatsAppCredentialsOrBuilder.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/ces/v1beta/deployment.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public interface WhatsAppCredentialsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.WhatsAppCredentials) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                +   * Required. The Meta auth code provided by the embedded signup flow.
                +   * 
                + * + * string auth_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The authCode. + */ + java.lang.String getAuthCode(); + + /** + * + * + *
                +   * Required. The Meta auth code provided by the embedded signup flow.
                +   * 
                + * + * string auth_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for authCode. + */ + com.google.protobuf.ByteString getAuthCodeBytes(); + + /** + * + * + *
                +   * Required. The 6-digit PIN created by the user for two-step verification.
                +   * 
                + * + * string pin = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The pin. + */ + java.lang.String getPin(); + + /** + * + * + *
                +   * Required. The 6-digit PIN created by the user for two-step verification.
                +   * 
                + * + * string pin = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for pin. + */ + com.google.protobuf.ByteString getPinBytes(); + + /** + * + * + *
                +   * Required. The phone number to register with WhatsApp.
                +   * 
                + * + * string phone_number = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The phoneNumber. + */ + java.lang.String getPhoneNumber(); + + /** + * + * + *
                +   * Required. The phone number to register with WhatsApp.
                +   * 
                + * + * string phone_number = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for phoneNumber. + */ + com.google.protobuf.ByteString getPhoneNumberBytes(); + + /** + * + * + *
                +   * Required. The Business Account ID to use for the phone number.
                +   * 
                + * + * string business_account_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The businessAccountId. + */ + java.lang.String getBusinessAccountId(); + + /** + * + * + *
                +   * Required. The Business Account ID to use for the phone number.
                +   * 
                + * + * string business_account_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for businessAccountId. + */ + com.google.protobuf.ByteString getBusinessAccountIdBytes(); + + /** + * + * + *
                +   * Required. The WhatsApp Business Account ID.
                +   * 
                + * + * string waba_id = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The wabaId. + */ + java.lang.String getWabaId(); + + /** + * + * + *
                +   * Required. The WhatsApp Business Account ID.
                +   * 
                + * + * string waba_id = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for wabaId. + */ + com.google.protobuf.ByteString getWabaIdBytes(); + + /** + * + * + *
                +   * Required. The Conversation Profile ID to use for the deployment.
                +   * 
                + * + * string conversation_profile_id = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The conversationProfileId. + */ + java.lang.String getConversationProfileId(); + + /** + * + * + *
                +   * Required. The Conversation Profile ID to use for the deployment.
                +   * 
                + * + * string conversation_profile_id = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for conversationProfileId. + */ + com.google.protobuf.ByteString getConversationProfileIdBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/agent_service.proto b/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/agent_service.proto index 3481d0b8f3a0..917af2d3587f 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/agent_service.proto +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/agent_service.proto @@ -1812,6 +1812,18 @@ message GenerateAppResourceRequest { // The configuration to be used for quality report generation. message QualityReportGenerationConfig { + // The algorithm to use for loss attribution. + enum LossAttributionAlgorithm { + // Unspecified. + LOSS_ATTRIBUTION_ALGORITHM_UNSPECIFIED = 0; + + // App-centric loss attribution. Treats the app as a single unit. + APP_CENTRIC = 1; + + // Agent-centric loss attribution. Attributes loss to individual agents. + AGENT_CENTRIC = 2; + } + // Required. The evaluation run used to inform quality report analysis. string evaluation_run = 1 [ (google.api.field_behavior) = REQUIRED, @@ -1819,6 +1831,10 @@ message GenerateAppResourceRequest { type: "ces.googleapis.com/EvaluationRun" } ]; + + // Optional. The loss attribution algorithm to use. + LossAttributionAlgorithm algorithm = 2 + [(google.api.field_behavior) = OPTIONAL]; } // The configuration to be used for hill climbing fixes. diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/app.proto b/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/app.proto index 5b57aa9bf6be..f298a123684d 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/app.proto +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/app.proto @@ -353,12 +353,12 @@ message AmbientSoundConfig { // Configuration for how the user barge-in activities should be handled. message BargeInConfig { - // Optional. Disables user barge-in while the agent is speaking. If true, user - // input during agent response playback will be ignored. - // - // Deprecated: `disable_barge_in` is deprecated in favor of + // Optional. Deprecated: `disable_barge_in` is deprecated in favor of // [`disable_barge_in_control`][google.cloud.ces.v1beta.ChannelProfile.disable_barge_in_control] // in ChannelProfile. + // + // Disables user barge-in while the agent is speaking. If true, user input + // during agent response playback will be ignored. bool disable_barge_in = 1 [deprecated = true, (google.api.field_behavior) = OPTIONAL]; @@ -379,11 +379,29 @@ message SynthesizeSpeechConfig { // Text-to-Speech. string voice = 1 [(google.api.field_behavior) = OPTIONAL]; + // Optional. The Cloud Storage URI to the audio sample for voice cloning. The + // audio sample should be a mono-channel, 24kHz WAV file. + // + // Note: Please make sure the CES service agent + // `service-@gcp-sa-ces.iam.gserviceaccount.com` has + // `storage.objects.get` permission to the Cloud Storage object. + string voice_sample_gcs_uri = 3 [(google.api.field_behavior) = OPTIONAL]; + // Optional. The speaking rate/speed in the range [0.25, 2.0]. 1.0 is the // normal native speed supported by the specific voice. 2.0 is twice as fast, // and 0.5 is half as fast. Values outside of the range [0.25, 2.0] will // return an error. double speaking_rate = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The model used to synthesize audio. + // Currently supported values: + // - "gemini-3.1-flash-tts-preview" + // If empty, Chirp3-HD is used. + string model = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The instruction used to synthesize speech when using a generative + // model. + string instruction = 5 [(google.api.field_behavior) = OPTIONAL]; } // Settings to describe the conversation data collection behaviors for LLM @@ -419,6 +437,12 @@ message LoggingSettings { BigQueryExportSettings bigquery_export_settings = 3 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Configures the BigQuery export behaviors for the app. + // The unredacted conversation data will be exported to BigQuery tables if it + // is enabled. + BigQueryExportSettings unredacted_bigquery_export_settings = 9 + [(google.api.field_behavior) = OPTIONAL]; + // Optional. Settings to describe the Cloud Logging behaviors for the app. CloudLoggingSettings cloud_logging_settings = 4 [(google.api.field_behavior) = OPTIONAL]; @@ -662,6 +686,10 @@ message EvaluationSettings { // will default to QUALITY_OPTIMIZED. ScenarioExecutionMode scenario_execution_mode = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The caching settings to use for the evaluation run. + EvaluationRunCachingSettings evaluation_run_caching_settings = 7 + [(google.api.field_behavior) = OPTIONAL]; } // Settings for custom client certificates. diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/common.proto b/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/common.proto index a1c4b162a189..72c51b6889f7 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/common.proto +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/common.proto @@ -273,6 +273,42 @@ message ChannelProfile { [(google.api.field_behavior) = OPTIONAL]; } + // Configuration specific to WhatsApp deployments. + message WhatsAppConfig { + // Required. The WhatsApp Business Account ID. + string waba_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The Meta phone number ID. + string phone_number_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The phone number in E.164 format. + string phone_number = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The fetched Meta business page name. + string display_name = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The fetched Meta business profile thumbnail URL. + string thumbnail_url = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The description of the Meta business page or profile. + string description = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Configuration specific to Instagram deployments. + message InstagramConfig { + // Required. The Instagram Account ID. + string instagram_account_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Output only. The fetched Meta business page name. + string display_name = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The fetched Meta business profile thumbnail URL. + string thumbnail_url = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The description of the Meta business page or profile. + string description = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + // The type of the channel profile. enum ChannelType { // Unknown channel type. @@ -293,11 +329,20 @@ message ChannelProfile { // Contact Center as a Service (CCaaS) channel. CONTACT_CENTER_AS_A_SERVICE = 6; + // Contact Center as a Service (CCaaS Chat) channel. + CONTACT_CENTER_AS_A_SERVICE_CHAT = 11; + // Five9 channel. FIVE9 = 7; // Third party contact center integration channel. CONTACT_CENTER_INTEGRATION = 8; + + // WhatsApp channel. + WHATSAPP = 9; + + // Instagram channel. + INSTAGRAM = 10; } // Optional. The unique identifier of the channel profile. @@ -325,6 +370,13 @@ message ChannelProfile { // Optional. The noise suppression level of the channel profile. // Available values are "low", "moderate", "high", "very_high". string noise_suppression_level = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Configuration specific to WhatsApp deployments. + WhatsAppConfig whatsapp_config = 9 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Configuration specific to Instagram deployments. + InstagramConfig instagram_config = 10 + [(google.api.field_behavior) = OPTIONAL]; } // A span is a unit of work or a single operation during the request processing. @@ -351,3 +403,26 @@ message Span { // Output only. The child spans that are nested under this span. repeated Span child_spans = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; } + +// Settings for evaluation run caching. +message EvaluationRunCachingSettings { + // The evaluation result caching behavior. Controls whether to return the last + // completed evaluation result (if existing) or to execute a new evaluation. + enum EvaluationRunCachingMode { + // The run caching mode is unspecified. + EVALUATION_RUN_CACHING_MODE_UNSPECIFIED = 0; + + // Always execute a full live simulation regardless of whether changelogs + // exist. + FORCE_RUN = 1; + + // Skip execution and copy previous verified results if no dependencies have + // mutated, the evaluation channel/run method are the same. + SKIP_IF_UNCHANGED = 2; + } + + // Optional. The caching mode to use for the evaluation run. If not set, + // default to FORCE_RUN. + EvaluationRunCachingMode run_caching_mode = 1 + [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/deployment.proto b/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/deployment.proto index dfec28ff76bb..c60556f2cf59 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/deployment.proto +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/deployment.proto @@ -64,16 +64,16 @@ message ExperimentConfig { // Unspecified state. STATE_UNSPECIFIED = 0; - // Pending state. Experiment is pending and not valid. + // Deprecated: This state is no longer used. PENDING = 1; // Running state. Experiment is running and valid. RUNNING = 2; - // Done state. Experiment is done and no longer valid. + // Deprecated: This state is no longer used. DONE = 3; - // Expired state. Experiment is expired and no longer valid. + // Deprecated: This state is no longer used. EXPIRED = 4; } @@ -128,4 +128,48 @@ message Deployment { // Optional. Experiment configuration for the deployment. ExperimentConfig experiment_config = 9 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Input only. Ephemeral WhatsApp credentials required when + // configuring a WhatsApp channel profile. + WhatsAppCredentials whatsapp_credentials = 10 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = INPUT_ONLY + ]; + + // Optional. Input only. Ephemeral Instagram credentials required when + // configuring a Instagram channel profile. + InstagramCredentials instagram_credentials = 11 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = INPUT_ONLY + ]; +} + +// Ephemeral Meta credentials for WhatsApp native integration. +message WhatsAppCredentials { + // Required. The Meta auth code provided by the embedded signup flow. + string auth_code = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The 6-digit PIN created by the user for two-step verification. + string pin = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The phone number to register with WhatsApp. + string phone_number = 3 [(google.api.field_behavior) = REQUIRED]; + + // Required. The Business Account ID to use for the phone number. + string business_account_id = 4 [(google.api.field_behavior) = REQUIRED]; + + // Required. The WhatsApp Business Account ID. + string waba_id = 5 [(google.api.field_behavior) = REQUIRED]; + + // Required. The Conversation Profile ID to use for the deployment. + string conversation_profile_id = 6 [(google.api.field_behavior) = REQUIRED]; +} + +// Ephemeral Meta credentials for Instagram native integration. +message InstagramCredentials { + // Required. The Meta auth code provided by the embedded signup flow. + string auth_code = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The Conversation Profile ID to use for the deployment. + string conversation_profile_id = 2 [(google.api.field_behavior) = REQUIRED]; } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/evaluation.proto b/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/evaluation.proto index 3eac2b275ed3..ac379e6c6fa1 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/evaluation.proto +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/evaluation.proto @@ -1635,6 +1635,10 @@ message RunEvaluationRequest { // Optional. Whether to generate a latency report for the evaluation run. bool generate_latency_report = 14 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The caching settings to use for the evaluation run. + EvaluationRunCachingSettings evaluation_run_caching_settings = 15 + [(google.api.field_behavior) = OPTIONAL]; } // Represents a scheduled evaluation run configuration. diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/evaluation_service.proto b/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/evaluation_service.proto index d574aaf1db27..d8b27f9b9acd 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/evaluation_service.proto +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/evaluation_service.proto @@ -517,6 +517,18 @@ message CreateEvaluationRequest { // Request message for // [EvaluationService.GenerateEvaluation][google.cloud.ces.v1beta.EvaluationService.GenerateEvaluation]. message GenerateEvaluationRequest { + // The type of evaluation to generate. + enum EvaluationType { + // Unspecified type. Defaults to GOLDEN. + EVALUATION_TYPE_UNSPECIFIED = 0; + + // Golden evaluation. + GOLDEN = 1; + + // Scenario evaluation. + SCENARIO = 2; + } + // Required. The conversation to create the golden evaluation for. // Format: // `projects/{project}/locations/{location}/apps/{app}/conversations/{conversation}` @@ -531,6 +543,10 @@ message GenerateEvaluationRequest { // will be searched. Conversation.Source source = 2 [deprecated = true, (google.api.field_behavior) = OPTIONAL]; + + // Optional. The type of evaluation to generate. Defaults to GOLDEN if + // unspecified. + EvaluationType evaluation_type = 3 [(google.api.field_behavior) = OPTIONAL]; } // Request message for diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/session_service.proto b/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/session_service.proto index 4eac3b0e6166..4cec5e6174f3 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/session_service.proto +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/session_service.proto @@ -434,6 +434,9 @@ message SessionOutput { // processing of the input. Only populated in the last SessionOutput (with // `turn_completed=true`) for each turn. DiagnosticInfo diagnostic_info = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Context messages for external supervision guardrails. + repeated google.protobuf.Any context = 12; } // Speech recognition result for the audio input. diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/toolset.proto b/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/toolset.proto index 68456ef50b21..ef1f16d95f76 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/toolset.proto +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/toolset.proto @@ -23,6 +23,7 @@ import "google/cloud/ces/v1beta/connector_toolset.proto"; import "google/cloud/ces/v1beta/fakes.proto"; import "google/cloud/ces/v1beta/mcp_toolset.proto"; import "google/cloud/ces/v1beta/open_api_toolset.proto"; +import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; option go_package = "cloud.google.com/go/ces/apiv1beta/cespb;cespb"; @@ -69,6 +70,12 @@ message Toolset { // Optional. The description of the toolset. string description = 10 [(google.api.field_behavior) = OPTIONAL]; + // Optional. The timeout for the toolset execution. If not set, the default + // timeout is 30 seconds for `SYNCHRONOUS` toolsets and 60 seconds for + // `ASYNCHRONOUS` toolsets. + google.protobuf.Duration timeout = 12 + [(google.api.field_behavior) = OPTIONAL]; + // Output only. Timestamp when the toolset was created. google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/evaluationservice/runevaluation/AsyncRunEvaluation.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/evaluationservice/runevaluation/AsyncRunEvaluation.java index ccf3351bb003..006f66037abb 100644 --- a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/evaluationservice/runevaluation/AsyncRunEvaluation.java +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/evaluationservice/runevaluation/AsyncRunEvaluation.java @@ -22,6 +22,7 @@ import com.google.cloud.ces.v1beta.AppVersionName; import com.google.cloud.ces.v1beta.EvaluationConfig; import com.google.cloud.ces.v1beta.EvaluationDatasetName; +import com.google.cloud.ces.v1beta.EvaluationRunCachingSettings; import com.google.cloud.ces.v1beta.EvaluationServiceClient; import com.google.cloud.ces.v1beta.GoldenRunMethod; import com.google.cloud.ces.v1beta.OptimizationConfig; @@ -65,6 +66,7 @@ public static void asyncRunEvaluation() throws Exception { .toString()) .setGoldenRunMethod(GoldenRunMethod.forNumber(0)) .setGenerateLatencyReport(true) + .setEvaluationRunCachingSettings(EvaluationRunCachingSettings.newBuilder().build()) .build(); ApiFuture future = evaluationServiceClient.runEvaluationCallable().futureCall(request); diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/evaluationservice/runevaluation/AsyncRunEvaluationLRO.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/evaluationservice/runevaluation/AsyncRunEvaluationLRO.java index 7ec0e3ec893c..80b6b53dcd9d 100644 --- a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/evaluationservice/runevaluation/AsyncRunEvaluationLRO.java +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/evaluationservice/runevaluation/AsyncRunEvaluationLRO.java @@ -22,6 +22,7 @@ import com.google.cloud.ces.v1beta.AppVersionName; import com.google.cloud.ces.v1beta.EvaluationConfig; import com.google.cloud.ces.v1beta.EvaluationDatasetName; +import com.google.cloud.ces.v1beta.EvaluationRunCachingSettings; import com.google.cloud.ces.v1beta.EvaluationServiceClient; import com.google.cloud.ces.v1beta.GoldenRunMethod; import com.google.cloud.ces.v1beta.OptimizationConfig; @@ -66,6 +67,7 @@ public static void asyncRunEvaluationLRO() throws Exception { .toString()) .setGoldenRunMethod(GoldenRunMethod.forNumber(0)) .setGenerateLatencyReport(true) + .setEvaluationRunCachingSettings(EvaluationRunCachingSettings.newBuilder().build()) .build(); OperationFuture future = evaluationServiceClient.runEvaluationOperationCallable().futureCall(request); diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/evaluationservice/runevaluation/SyncRunEvaluation.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/evaluationservice/runevaluation/SyncRunEvaluation.java index b862f3108127..cafb12a0ae99 100644 --- a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/evaluationservice/runevaluation/SyncRunEvaluation.java +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/evaluationservice/runevaluation/SyncRunEvaluation.java @@ -21,6 +21,7 @@ import com.google.cloud.ces.v1beta.AppVersionName; import com.google.cloud.ces.v1beta.EvaluationConfig; import com.google.cloud.ces.v1beta.EvaluationDatasetName; +import com.google.cloud.ces.v1beta.EvaluationRunCachingSettings; import com.google.cloud.ces.v1beta.EvaluationServiceClient; import com.google.cloud.ces.v1beta.GoldenRunMethod; import com.google.cloud.ces.v1beta.OptimizationConfig; @@ -64,6 +65,7 @@ public static void syncRunEvaluation() throws Exception { .toString()) .setGoldenRunMethod(GoldenRunMethod.forNumber(0)) .setGenerateLatencyReport(true) + .setEvaluationRunCachingSettings(EvaluationRunCachingSettings.newBuilder().build()) .build(); RunEvaluationResponse response = evaluationServiceClient.runEvaluationAsync(request).get(); } diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/FindingsRefinementServiceClient.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/FindingsRefinementServiceClient.java new file mode 100644 index 000000000000..cfd84c5dc052 --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/FindingsRefinementServiceClient.java @@ -0,0 +1,1827 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.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.chronicle.v1.stub.FindingsRefinementServiceStub; +import com.google.cloud.chronicle.v1.stub.FindingsRefinementServiceStubSettings; +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; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: FindingsRefinementService provides an interface for filtering out findings + * that are unlikely to be real threats to prevent them from triggering alerts or notifications. + * + *

                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 (FindingsRefinementServiceClient findingsRefinementServiceClient =
                + *     FindingsRefinementServiceClient.create()) {
                + *   FindingsRefinementName name =
                + *       FindingsRefinementName.of(
                + *           "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FINDINGS_REFINEMENT]");
                + *   FindingsRefinement response = findingsRefinementServiceClient.getFindingsRefinement(name);
                + * }
                + * }
                + * + *

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

                GetFindingsRefinement

                Gets a single findings refinement.

                + *

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

                + *
                  + *
                • getFindingsRefinement(GetFindingsRefinementRequest request) + *

                + *

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

                + *
                  + *
                • getFindingsRefinement(FindingsRefinementName name) + *

                • getFindingsRefinement(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.

                + *
                  + *
                • getFindingsRefinementCallable() + *

                + *

                ListFindingsRefinements

                Lists a collection of findings refinements.

                + *

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

                + *
                  + *
                • listFindingsRefinements(ListFindingsRefinementsRequest request) + *

                + *

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

                + *
                  + *
                • listFindingsRefinements(InstanceName parent) + *

                • listFindingsRefinements(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.

                + *
                  + *
                • listFindingsRefinementsPagedCallable() + *

                • listFindingsRefinementsCallable() + *

                + *

                CreateFindingsRefinement

                Creates a new findings refinement.

                + *

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

                + *
                  + *
                • createFindingsRefinement(CreateFindingsRefinementRequest request) + *

                + *

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

                + *
                  + *
                • createFindingsRefinement(InstanceName parent, FindingsRefinement findingsRefinement) + *

                • createFindingsRefinement(String parent, FindingsRefinement findingsRefinement) + *

                + *

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

                + *
                  + *
                • createFindingsRefinementCallable() + *

                + *

                UpdateFindingsRefinement

                Updates a findings refinement.

                + *

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

                + *
                  + *
                • updateFindingsRefinement(UpdateFindingsRefinementRequest request) + *

                + *

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

                + *
                  + *
                • updateFindingsRefinement(FindingsRefinement findingsRefinement, 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.

                + *
                  + *
                • updateFindingsRefinementCallable() + *

                + *

                GetFindingsRefinementDeployment

                Gets a findings refinement deployment.

                + *

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

                + *
                  + *
                • getFindingsRefinementDeployment(GetFindingsRefinementDeploymentRequest request) + *

                + *

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

                + *
                  + *
                • getFindingsRefinementDeployment(FindingsRefinementDeploymentName name) + *

                • getFindingsRefinementDeployment(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.

                + *
                  + *
                • getFindingsRefinementDeploymentCallable() + *

                + *

                UpdateFindingsRefinementDeployment

                Updates a findings refinement deployment.

                + *

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

                + *
                  + *
                • updateFindingsRefinementDeployment(UpdateFindingsRefinementDeploymentRequest request) + *

                + *

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

                + *
                  + *
                • updateFindingsRefinementDeployment(FindingsRefinementDeployment findingsRefinementDeployment, 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.

                + *
                  + *
                • updateFindingsRefinementDeploymentCallable() + *

                + *

                ListAllFindingsRefinementDeployments

                Lists all findings refinement deployments.

                + *

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

                + *
                  + *
                • listAllFindingsRefinementDeployments(ListAllFindingsRefinementDeploymentsRequest request) + *

                + *

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

                + *
                  + *
                • listAllFindingsRefinementDeployments(InstanceName instance) + *

                • listAllFindingsRefinementDeployments(String instance) + *

                + *

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

                + *
                  + *
                • listAllFindingsRefinementDeploymentsPagedCallable() + *

                • listAllFindingsRefinementDeploymentsCallable() + *

                + *

                ComputeFindingsRefinementActivity

                Returns findings refinement activity for a specific findings refinement.

                + *

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

                + *
                  + *
                • computeFindingsRefinementActivity(ComputeFindingsRefinementActivityRequest request) + *

                + *

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

                + *
                  + *
                • computeFindingsRefinementActivity(FindingsRefinementName name) + *

                • computeFindingsRefinementActivity(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.

                + *
                  + *
                • computeFindingsRefinementActivityCallable() + *

                + *

                ComputeAllFindingsRefinementActivities

                Returns findings refinement activity for all findings refinements.

                + *

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

                + *
                  + *
                • computeAllFindingsRefinementActivities(ComputeAllFindingsRefinementActivitiesRequest request) + *

                + *

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

                + *
                  + *
                • computeAllFindingsRefinementActivities(InstanceName instance) + *

                • computeAllFindingsRefinementActivities(String instance) + *

                + *

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

                + *
                  + *
                • computeAllFindingsRefinementActivitiesCallable() + *

                + *
                + * + *

                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 + * FindingsRefinementServiceSettings 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
                + * FindingsRefinementServiceSettings findingsRefinementServiceSettings =
                + *     FindingsRefinementServiceSettings.newBuilder()
                + *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
                + *         .build();
                + * FindingsRefinementServiceClient findingsRefinementServiceClient =
                + *     FindingsRefinementServiceClient.create(findingsRefinementServiceSettings);
                + * }
                + * + *

                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
                + * FindingsRefinementServiceSettings findingsRefinementServiceSettings =
                + *     FindingsRefinementServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
                + * FindingsRefinementServiceClient findingsRefinementServiceClient =
                + *     FindingsRefinementServiceClient.create(findingsRefinementServiceSettings);
                + * }
                + * + *

                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
                + * FindingsRefinementServiceSettings findingsRefinementServiceSettings =
                + *     FindingsRefinementServiceSettings.newHttpJsonBuilder().build();
                + * FindingsRefinementServiceClient findingsRefinementServiceClient =
                + *     FindingsRefinementServiceClient.create(findingsRefinementServiceSettings);
                + * }
                + * + *

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

                Sample code: + * + *

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

                Sample code: + * + *

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

                Sample code: + * + *

                {@code
                +   * // This snippet has been automatically generated and should be regarded as a code template only.
                +   * // It will require modifications to work:
                +   * // - It may require correct/in-range values for request initialization.
                +   * // - It may require specifying regional endpoints when creating the service client as shown in
                +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                +   * try (FindingsRefinementServiceClient findingsRefinementServiceClient =
                +   *     FindingsRefinementServiceClient.create()) {
                +   *   GetFindingsRefinementRequest request =
                +   *       GetFindingsRefinementRequest.newBuilder()
                +   *           .setName(
                +   *               FindingsRefinementName.of(
                +   *                       "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FINDINGS_REFINEMENT]")
                +   *                   .toString())
                +   *           .build();
                +   *   FindingsRefinement response = findingsRefinementServiceClient.getFindingsRefinement(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 FindingsRefinement getFindingsRefinement(GetFindingsRefinementRequest request) { + return getFindingsRefinementCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a single findings refinement. + * + *

                Sample code: + * + *

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

                Sample code: + * + *

                {@code
                +   * // This snippet has been automatically generated and should be regarded as a code template only.
                +   * // It will require modifications to work:
                +   * // - It may require correct/in-range values for request initialization.
                +   * // - It may require specifying regional endpoints when creating the service client as shown in
                +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                +   * try (FindingsRefinementServiceClient findingsRefinementServiceClient =
                +   *     FindingsRefinementServiceClient.create()) {
                +   *   InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
                +   *   for (FindingsRefinement element :
                +   *       findingsRefinementServiceClient.listFindingsRefinements(parent).iterateAll()) {
                +   *     // doThingsWith(element);
                +   *   }
                +   * }
                +   * }
                + * + * @param parent Required. The parent, which owns this collection of findings refinements. Format: + * projects/{project}/locations/{location}/instances/{instance} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListFindingsRefinementsPagedResponse listFindingsRefinements(InstanceName parent) { + ListFindingsRefinementsRequest request = + ListFindingsRefinementsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listFindingsRefinements(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists a collection of findings refinements. + * + *

                Sample code: + * + *

                {@code
                +   * // This snippet has been automatically generated and should be regarded as a code template only.
                +   * // It will require modifications to work:
                +   * // - It may require correct/in-range values for request initialization.
                +   * // - It may require specifying regional endpoints when creating the service client as shown in
                +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                +   * try (FindingsRefinementServiceClient findingsRefinementServiceClient =
                +   *     FindingsRefinementServiceClient.create()) {
                +   *   String parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString();
                +   *   for (FindingsRefinement element :
                +   *       findingsRefinementServiceClient.listFindingsRefinements(parent).iterateAll()) {
                +   *     // doThingsWith(element);
                +   *   }
                +   * }
                +   * }
                + * + * @param parent Required. The parent, which owns this collection of findings refinements. Format: + * projects/{project}/locations/{location}/instances/{instance} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListFindingsRefinementsPagedResponse listFindingsRefinements(String parent) { + ListFindingsRefinementsRequest request = + ListFindingsRefinementsRequest.newBuilder().setParent(parent).build(); + return listFindingsRefinements(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists a collection of findings refinements. + * + *

                Sample code: + * + *

                {@code
                +   * // This snippet has been automatically generated and should be regarded as a code template only.
                +   * // It will require modifications to work:
                +   * // - It may require correct/in-range values for request initialization.
                +   * // - It may require specifying regional endpoints when creating the service client as shown in
                +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                +   * try (FindingsRefinementServiceClient findingsRefinementServiceClient =
                +   *     FindingsRefinementServiceClient.create()) {
                +   *   ListFindingsRefinementsRequest request =
                +   *       ListFindingsRefinementsRequest.newBuilder()
                +   *           .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
                +   *           .setPageSize(883849137)
                +   *           .setPageToken("pageToken873572522")
                +   *           .build();
                +   *   for (FindingsRefinement element :
                +   *       findingsRefinementServiceClient.listFindingsRefinements(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 ListFindingsRefinementsPagedResponse listFindingsRefinements( + ListFindingsRefinementsRequest request) { + return listFindingsRefinementsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists a collection of findings refinements. + * + *

                Sample code: + * + *

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

                Sample code: + * + *

                {@code
                +   * // This snippet has been automatically generated and should be regarded as a code template only.
                +   * // It will require modifications to work:
                +   * // - It may require correct/in-range values for request initialization.
                +   * // - It may require specifying regional endpoints when creating the service client as shown in
                +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                +   * try (FindingsRefinementServiceClient findingsRefinementServiceClient =
                +   *     FindingsRefinementServiceClient.create()) {
                +   *   ListFindingsRefinementsRequest request =
                +   *       ListFindingsRefinementsRequest.newBuilder()
                +   *           .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
                +   *           .setPageSize(883849137)
                +   *           .setPageToken("pageToken873572522")
                +   *           .build();
                +   *   while (true) {
                +   *     ListFindingsRefinementsResponse response =
                +   *         findingsRefinementServiceClient.listFindingsRefinementsCallable().call(request);
                +   *     for (FindingsRefinement element : response.getFindingsRefinementsList()) {
                +   *       // doThingsWith(element);
                +   *     }
                +   *     String nextPageToken = response.getNextPageToken();
                +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
                +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
                +   *     } else {
                +   *       break;
                +   *     }
                +   *   }
                +   * }
                +   * }
                + */ + public final UnaryCallable + listFindingsRefinementsCallable() { + return stub.listFindingsRefinementsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new findings refinement. + * + *

                Sample code: + * + *

                {@code
                +   * // This snippet has been automatically generated and should be regarded as a code template only.
                +   * // It will require modifications to work:
                +   * // - It may require correct/in-range values for request initialization.
                +   * // - It may require specifying regional endpoints when creating the service client as shown in
                +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                +   * try (FindingsRefinementServiceClient findingsRefinementServiceClient =
                +   *     FindingsRefinementServiceClient.create()) {
                +   *   InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
                +   *   FindingsRefinement findingsRefinement = FindingsRefinement.newBuilder().build();
                +   *   FindingsRefinement response =
                +   *       findingsRefinementServiceClient.createFindingsRefinement(parent, findingsRefinement);
                +   * }
                +   * }
                + * + * @param parent Required. The parent resource where this findings refinement will be created. + * Format: projects/{project}/locations/{location}/instances/{instance} + * @param findingsRefinement Required. The findings refinement to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final FindingsRefinement createFindingsRefinement( + InstanceName parent, FindingsRefinement findingsRefinement) { + CreateFindingsRefinementRequest request = + CreateFindingsRefinementRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setFindingsRefinement(findingsRefinement) + .build(); + return createFindingsRefinement(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new findings refinement. + * + *

                Sample code: + * + *

                {@code
                +   * // This snippet has been automatically generated and should be regarded as a code template only.
                +   * // It will require modifications to work:
                +   * // - It may require correct/in-range values for request initialization.
                +   * // - It may require specifying regional endpoints when creating the service client as shown in
                +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                +   * try (FindingsRefinementServiceClient findingsRefinementServiceClient =
                +   *     FindingsRefinementServiceClient.create()) {
                +   *   String parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString();
                +   *   FindingsRefinement findingsRefinement = FindingsRefinement.newBuilder().build();
                +   *   FindingsRefinement response =
                +   *       findingsRefinementServiceClient.createFindingsRefinement(parent, findingsRefinement);
                +   * }
                +   * }
                + * + * @param parent Required. The parent resource where this findings refinement will be created. + * Format: projects/{project}/locations/{location}/instances/{instance} + * @param findingsRefinement Required. The findings refinement to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final FindingsRefinement createFindingsRefinement( + String parent, FindingsRefinement findingsRefinement) { + CreateFindingsRefinementRequest request = + CreateFindingsRefinementRequest.newBuilder() + .setParent(parent) + .setFindingsRefinement(findingsRefinement) + .build(); + return createFindingsRefinement(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new findings refinement. + * + *

                Sample code: + * + *

                {@code
                +   * // This snippet has been automatically generated and should be regarded as a code template only.
                +   * // It will require modifications to work:
                +   * // - It may require correct/in-range values for request initialization.
                +   * // - It may require specifying regional endpoints when creating the service client as shown in
                +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                +   * try (FindingsRefinementServiceClient findingsRefinementServiceClient =
                +   *     FindingsRefinementServiceClient.create()) {
                +   *   CreateFindingsRefinementRequest request =
                +   *       CreateFindingsRefinementRequest.newBuilder()
                +   *           .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
                +   *           .setFindingsRefinement(FindingsRefinement.newBuilder().build())
                +   *           .build();
                +   *   FindingsRefinement response =
                +   *       findingsRefinementServiceClient.createFindingsRefinement(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 FindingsRefinement createFindingsRefinement( + CreateFindingsRefinementRequest request) { + return createFindingsRefinementCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new findings refinement. + * + *

                Sample code: + * + *

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

                Sample code: + * + *

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

                The findings refinement's `name` field is used to identify the findings refinement to + * update. Format: + * projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement} + * @param updateMask Optional. The list of fields to update. If `*` is provided, all fields + * will be updated. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final FindingsRefinement updateFindingsRefinement( + FindingsRefinement findingsRefinement, FieldMask updateMask) { + UpdateFindingsRefinementRequest request = + UpdateFindingsRefinementRequest.newBuilder() + .setFindingsRefinement(findingsRefinement) + .setUpdateMask(updateMask) + .build(); + return updateFindingsRefinement(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a findings refinement. + * + *

                Sample code: + * + *

                {@code
                +   * // This snippet has been automatically generated and should be regarded as a code template only.
                +   * // It will require modifications to work:
                +   * // - It may require correct/in-range values for request initialization.
                +   * // - It may require specifying regional endpoints when creating the service client as shown in
                +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                +   * try (FindingsRefinementServiceClient findingsRefinementServiceClient =
                +   *     FindingsRefinementServiceClient.create()) {
                +   *   UpdateFindingsRefinementRequest request =
                +   *       UpdateFindingsRefinementRequest.newBuilder()
                +   *           .setFindingsRefinement(FindingsRefinement.newBuilder().build())
                +   *           .setUpdateMask(FieldMask.newBuilder().build())
                +   *           .build();
                +   *   FindingsRefinement response =
                +   *       findingsRefinementServiceClient.updateFindingsRefinement(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 FindingsRefinement updateFindingsRefinement( + UpdateFindingsRefinementRequest request) { + return updateFindingsRefinementCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a findings refinement. + * + *

                Sample code: + * + *

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

                Sample code: + * + *

                {@code
                +   * // This snippet has been automatically generated and should be regarded as a code template only.
                +   * // It will require modifications to work:
                +   * // - It may require correct/in-range values for request initialization.
                +   * // - It may require specifying regional endpoints when creating the service client as shown in
                +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                +   * try (FindingsRefinementServiceClient findingsRefinementServiceClient =
                +   *     FindingsRefinementServiceClient.create()) {
                +   *   FindingsRefinementDeploymentName name =
                +   *       FindingsRefinementDeploymentName.of(
                +   *           "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FINDINGS_REFINEMENT]");
                +   *   FindingsRefinementDeployment response =
                +   *       findingsRefinementServiceClient.getFindingsRefinementDeployment(name);
                +   * }
                +   * }
                + * + * @param name Required. The name of the findings refinement to retrieve. Format: + * projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}/deployment + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final FindingsRefinementDeployment getFindingsRefinementDeployment( + FindingsRefinementDeploymentName name) { + GetFindingsRefinementDeploymentRequest request = + GetFindingsRefinementDeploymentRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getFindingsRefinementDeployment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a findings refinement deployment. + * + *

                Sample code: + * + *

                {@code
                +   * // This snippet has been automatically generated and should be regarded as a code template only.
                +   * // It will require modifications to work:
                +   * // - It may require correct/in-range values for request initialization.
                +   * // - It may require specifying regional endpoints when creating the service client as shown in
                +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                +   * try (FindingsRefinementServiceClient findingsRefinementServiceClient =
                +   *     FindingsRefinementServiceClient.create()) {
                +   *   String name =
                +   *       FindingsRefinementDeploymentName.of(
                +   *               "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FINDINGS_REFINEMENT]")
                +   *           .toString();
                +   *   FindingsRefinementDeployment response =
                +   *       findingsRefinementServiceClient.getFindingsRefinementDeployment(name);
                +   * }
                +   * }
                + * + * @param name Required. The name of the findings refinement to retrieve. Format: + * projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}/deployment + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final FindingsRefinementDeployment getFindingsRefinementDeployment(String name) { + GetFindingsRefinementDeploymentRequest request = + GetFindingsRefinementDeploymentRequest.newBuilder().setName(name).build(); + return getFindingsRefinementDeployment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a findings refinement deployment. + * + *

                Sample code: + * + *

                {@code
                +   * // This snippet has been automatically generated and should be regarded as a code template only.
                +   * // It will require modifications to work:
                +   * // - It may require correct/in-range values for request initialization.
                +   * // - It may require specifying regional endpoints when creating the service client as shown in
                +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                +   * try (FindingsRefinementServiceClient findingsRefinementServiceClient =
                +   *     FindingsRefinementServiceClient.create()) {
                +   *   GetFindingsRefinementDeploymentRequest request =
                +   *       GetFindingsRefinementDeploymentRequest.newBuilder()
                +   *           .setName(
                +   *               FindingsRefinementDeploymentName.of(
                +   *                       "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FINDINGS_REFINEMENT]")
                +   *                   .toString())
                +   *           .build();
                +   *   FindingsRefinementDeployment response =
                +   *       findingsRefinementServiceClient.getFindingsRefinementDeployment(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 FindingsRefinementDeployment getFindingsRefinementDeployment( + GetFindingsRefinementDeploymentRequest request) { + return getFindingsRefinementDeploymentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a findings refinement deployment. + * + *

                Sample code: + * + *

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

                Sample code: + * + *

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

                The findings refinement deployment's `name` field is used to identify the findings + * refinement deployment to update. Format: + * projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}/deployment + * @param updateMask Required. The list of fields to update. If `*` is provided, all fields + * will be updated. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final FindingsRefinementDeployment updateFindingsRefinementDeployment( + FindingsRefinementDeployment findingsRefinementDeployment, FieldMask updateMask) { + UpdateFindingsRefinementDeploymentRequest request = + UpdateFindingsRefinementDeploymentRequest.newBuilder() + .setFindingsRefinementDeployment(findingsRefinementDeployment) + .setUpdateMask(updateMask) + .build(); + return updateFindingsRefinementDeployment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a findings refinement deployment. + * + *

                Sample code: + * + *

                {@code
                +   * // This snippet has been automatically generated and should be regarded as a code template only.
                +   * // It will require modifications to work:
                +   * // - It may require correct/in-range values for request initialization.
                +   * // - It may require specifying regional endpoints when creating the service client as shown in
                +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                +   * try (FindingsRefinementServiceClient findingsRefinementServiceClient =
                +   *     FindingsRefinementServiceClient.create()) {
                +   *   UpdateFindingsRefinementDeploymentRequest request =
                +   *       UpdateFindingsRefinementDeploymentRequest.newBuilder()
                +   *           .setFindingsRefinementDeployment(FindingsRefinementDeployment.newBuilder().build())
                +   *           .setUpdateMask(FieldMask.newBuilder().build())
                +   *           .build();
                +   *   FindingsRefinementDeployment response =
                +   *       findingsRefinementServiceClient.updateFindingsRefinementDeployment(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 FindingsRefinementDeployment updateFindingsRefinementDeployment( + UpdateFindingsRefinementDeploymentRequest request) { + return updateFindingsRefinementDeploymentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a findings refinement deployment. + * + *

                Sample code: + * + *

                {@code
                +   * // This snippet has been automatically generated and should be regarded as a code template only.
                +   * // It will require modifications to work:
                +   * // - It may require correct/in-range values for request initialization.
                +   * // - It may require specifying regional endpoints when creating the service client as shown in
                +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                +   * try (FindingsRefinementServiceClient findingsRefinementServiceClient =
                +   *     FindingsRefinementServiceClient.create()) {
                +   *   UpdateFindingsRefinementDeploymentRequest request =
                +   *       UpdateFindingsRefinementDeploymentRequest.newBuilder()
                +   *           .setFindingsRefinementDeployment(FindingsRefinementDeployment.newBuilder().build())
                +   *           .setUpdateMask(FieldMask.newBuilder().build())
                +   *           .build();
                +   *   ApiFuture future =
                +   *       findingsRefinementServiceClient
                +   *           .updateFindingsRefinementDeploymentCallable()
                +   *           .futureCall(request);
                +   *   // Do something.
                +   *   FindingsRefinementDeployment response = future.get();
                +   * }
                +   * }
                + */ + public final UnaryCallable< + UpdateFindingsRefinementDeploymentRequest, FindingsRefinementDeployment> + updateFindingsRefinementDeploymentCallable() { + return stub.updateFindingsRefinementDeploymentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all findings refinement deployments. + * + *

                Sample code: + * + *

                {@code
                +   * // This snippet has been automatically generated and should be regarded as a code template only.
                +   * // It will require modifications to work:
                +   * // - It may require correct/in-range values for request initialization.
                +   * // - It may require specifying regional endpoints when creating the service client as shown in
                +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                +   * try (FindingsRefinementServiceClient findingsRefinementServiceClient =
                +   *     FindingsRefinementServiceClient.create()) {
                +   *   InstanceName instance = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
                +   *   for (FindingsRefinementDeployment element :
                +   *       findingsRefinementServiceClient
                +   *           .listAllFindingsRefinementDeployments(instance)
                +   *           .iterateAll()) {
                +   *     // doThingsWith(element);
                +   *   }
                +   * }
                +   * }
                + * + * @param instance Required. The name of the parent resource, which is the SecOps instance to list + * all findings refinement deployments over. Format: + * projects/{project}/locations/{location}/instances/{instance} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAllFindingsRefinementDeploymentsPagedResponse + listAllFindingsRefinementDeployments(InstanceName instance) { + ListAllFindingsRefinementDeploymentsRequest request = + ListAllFindingsRefinementDeploymentsRequest.newBuilder() + .setInstance(instance == null ? null : instance.toString()) + .build(); + return listAllFindingsRefinementDeployments(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all findings refinement deployments. + * + *

                Sample code: + * + *

                {@code
                +   * // This snippet has been automatically generated and should be regarded as a code template only.
                +   * // It will require modifications to work:
                +   * // - It may require correct/in-range values for request initialization.
                +   * // - It may require specifying regional endpoints when creating the service client as shown in
                +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                +   * try (FindingsRefinementServiceClient findingsRefinementServiceClient =
                +   *     FindingsRefinementServiceClient.create()) {
                +   *   String instance = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString();
                +   *   for (FindingsRefinementDeployment element :
                +   *       findingsRefinementServiceClient
                +   *           .listAllFindingsRefinementDeployments(instance)
                +   *           .iterateAll()) {
                +   *     // doThingsWith(element);
                +   *   }
                +   * }
                +   * }
                + * + * @param instance Required. The name of the parent resource, which is the SecOps instance to list + * all findings refinement deployments over. Format: + * projects/{project}/locations/{location}/instances/{instance} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAllFindingsRefinementDeploymentsPagedResponse + listAllFindingsRefinementDeployments(String instance) { + ListAllFindingsRefinementDeploymentsRequest request = + ListAllFindingsRefinementDeploymentsRequest.newBuilder().setInstance(instance).build(); + return listAllFindingsRefinementDeployments(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all findings refinement deployments. + * + *

                Sample code: + * + *

                {@code
                +   * // This snippet has been automatically generated and should be regarded as a code template only.
                +   * // It will require modifications to work:
                +   * // - It may require correct/in-range values for request initialization.
                +   * // - It may require specifying regional endpoints when creating the service client as shown in
                +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                +   * try (FindingsRefinementServiceClient findingsRefinementServiceClient =
                +   *     FindingsRefinementServiceClient.create()) {
                +   *   ListAllFindingsRefinementDeploymentsRequest request =
                +   *       ListAllFindingsRefinementDeploymentsRequest.newBuilder()
                +   *           .setInstance(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
                +   *           .setPageSize(883849137)
                +   *           .setPageToken("pageToken873572522")
                +   *           .setFilter("filter-1274492040")
                +   *           .build();
                +   *   for (FindingsRefinementDeployment element :
                +   *       findingsRefinementServiceClient
                +   *           .listAllFindingsRefinementDeployments(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 ListAllFindingsRefinementDeploymentsPagedResponse + listAllFindingsRefinementDeployments(ListAllFindingsRefinementDeploymentsRequest request) { + return listAllFindingsRefinementDeploymentsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all findings refinement deployments. + * + *

                Sample code: + * + *

                {@code
                +   * // This snippet has been automatically generated and should be regarded as a code template only.
                +   * // It will require modifications to work:
                +   * // - It may require correct/in-range values for request initialization.
                +   * // - It may require specifying regional endpoints when creating the service client as shown in
                +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                +   * try (FindingsRefinementServiceClient findingsRefinementServiceClient =
                +   *     FindingsRefinementServiceClient.create()) {
                +   *   ListAllFindingsRefinementDeploymentsRequest request =
                +   *       ListAllFindingsRefinementDeploymentsRequest.newBuilder()
                +   *           .setInstance(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
                +   *           .setPageSize(883849137)
                +   *           .setPageToken("pageToken873572522")
                +   *           .setFilter("filter-1274492040")
                +   *           .build();
                +   *   ApiFuture future =
                +   *       findingsRefinementServiceClient
                +   *           .listAllFindingsRefinementDeploymentsPagedCallable()
                +   *           .futureCall(request);
                +   *   // Do something.
                +   *   for (FindingsRefinementDeployment element : future.get().iterateAll()) {
                +   *     // doThingsWith(element);
                +   *   }
                +   * }
                +   * }
                + */ + public final UnaryCallable< + ListAllFindingsRefinementDeploymentsRequest, + ListAllFindingsRefinementDeploymentsPagedResponse> + listAllFindingsRefinementDeploymentsPagedCallable() { + return stub.listAllFindingsRefinementDeploymentsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all findings refinement deployments. + * + *

                Sample code: + * + *

                {@code
                +   * // This snippet has been automatically generated and should be regarded as a code template only.
                +   * // It will require modifications to work:
                +   * // - It may require correct/in-range values for request initialization.
                +   * // - It may require specifying regional endpoints when creating the service client as shown in
                +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                +   * try (FindingsRefinementServiceClient findingsRefinementServiceClient =
                +   *     FindingsRefinementServiceClient.create()) {
                +   *   ListAllFindingsRefinementDeploymentsRequest request =
                +   *       ListAllFindingsRefinementDeploymentsRequest.newBuilder()
                +   *           .setInstance(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
                +   *           .setPageSize(883849137)
                +   *           .setPageToken("pageToken873572522")
                +   *           .setFilter("filter-1274492040")
                +   *           .build();
                +   *   while (true) {
                +   *     ListAllFindingsRefinementDeploymentsResponse response =
                +   *         findingsRefinementServiceClient
                +   *             .listAllFindingsRefinementDeploymentsCallable()
                +   *             .call(request);
                +   *     for (FindingsRefinementDeployment element :
                +   *         response.getAllFindingsRefinementDeploymentsList()) {
                +   *       // doThingsWith(element);
                +   *     }
                +   *     String nextPageToken = response.getNextPageToken();
                +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
                +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
                +   *     } else {
                +   *       break;
                +   *     }
                +   *   }
                +   * }
                +   * }
                + */ + public final UnaryCallable< + ListAllFindingsRefinementDeploymentsRequest, ListAllFindingsRefinementDeploymentsResponse> + listAllFindingsRefinementDeploymentsCallable() { + return stub.listAllFindingsRefinementDeploymentsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns findings refinement activity for a specific findings refinement. + * + *

                Sample code: + * + *

                {@code
                +   * // This snippet has been automatically generated and should be regarded as a code template only.
                +   * // It will require modifications to work:
                +   * // - It may require correct/in-range values for request initialization.
                +   * // - It may require specifying regional endpoints when creating the service client as shown in
                +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                +   * try (FindingsRefinementServiceClient findingsRefinementServiceClient =
                +   *     FindingsRefinementServiceClient.create()) {
                +   *   FindingsRefinementName name =
                +   *       FindingsRefinementName.of(
                +   *           "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FINDINGS_REFINEMENT]");
                +   *   ComputeFindingsRefinementActivityResponse response =
                +   *       findingsRefinementServiceClient.computeFindingsRefinementActivity(name);
                +   * }
                +   * }
                + * + * @param name Required. Full resource name for the findings refinement to fetch the activity for. + * Format: + * projects/{project}/locations/{region}/instances/{instance}/findingsRefinements/{findings_refinement} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ComputeFindingsRefinementActivityResponse computeFindingsRefinementActivity( + FindingsRefinementName name) { + ComputeFindingsRefinementActivityRequest request = + ComputeFindingsRefinementActivityRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return computeFindingsRefinementActivity(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns findings refinement activity for a specific findings refinement. + * + *

                Sample code: + * + *

                {@code
                +   * // This snippet has been automatically generated and should be regarded as a code template only.
                +   * // It will require modifications to work:
                +   * // - It may require correct/in-range values for request initialization.
                +   * // - It may require specifying regional endpoints when creating the service client as shown in
                +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                +   * try (FindingsRefinementServiceClient findingsRefinementServiceClient =
                +   *     FindingsRefinementServiceClient.create()) {
                +   *   String name =
                +   *       FindingsRefinementName.of(
                +   *               "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FINDINGS_REFINEMENT]")
                +   *           .toString();
                +   *   ComputeFindingsRefinementActivityResponse response =
                +   *       findingsRefinementServiceClient.computeFindingsRefinementActivity(name);
                +   * }
                +   * }
                + * + * @param name Required. Full resource name for the findings refinement to fetch the activity for. + * Format: + * projects/{project}/locations/{region}/instances/{instance}/findingsRefinements/{findings_refinement} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ComputeFindingsRefinementActivityResponse computeFindingsRefinementActivity( + String name) { + ComputeFindingsRefinementActivityRequest request = + ComputeFindingsRefinementActivityRequest.newBuilder().setName(name).build(); + return computeFindingsRefinementActivity(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns findings refinement activity for a specific findings refinement. + * + *

                Sample code: + * + *

                {@code
                +   * // This snippet has been automatically generated and should be regarded as a code template only.
                +   * // It will require modifications to work:
                +   * // - It may require correct/in-range values for request initialization.
                +   * // - It may require specifying regional endpoints when creating the service client as shown in
                +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                +   * try (FindingsRefinementServiceClient findingsRefinementServiceClient =
                +   *     FindingsRefinementServiceClient.create()) {
                +   *   ComputeFindingsRefinementActivityRequest request =
                +   *       ComputeFindingsRefinementActivityRequest.newBuilder()
                +   *           .setName(
                +   *               FindingsRefinementName.of(
                +   *                       "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FINDINGS_REFINEMENT]")
                +   *                   .toString())
                +   *           .setInterval(Interval.newBuilder().build())
                +   *           .build();
                +   *   ComputeFindingsRefinementActivityResponse response =
                +   *       findingsRefinementServiceClient.computeFindingsRefinementActivity(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 ComputeFindingsRefinementActivityResponse computeFindingsRefinementActivity( + ComputeFindingsRefinementActivityRequest request) { + return computeFindingsRefinementActivityCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns findings refinement activity for a specific findings refinement. + * + *

                Sample code: + * + *

                {@code
                +   * // This snippet has been automatically generated and should be regarded as a code template only.
                +   * // It will require modifications to work:
                +   * // - It may require correct/in-range values for request initialization.
                +   * // - It may require specifying regional endpoints when creating the service client as shown in
                +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                +   * try (FindingsRefinementServiceClient findingsRefinementServiceClient =
                +   *     FindingsRefinementServiceClient.create()) {
                +   *   ComputeFindingsRefinementActivityRequest request =
                +   *       ComputeFindingsRefinementActivityRequest.newBuilder()
                +   *           .setName(
                +   *               FindingsRefinementName.of(
                +   *                       "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FINDINGS_REFINEMENT]")
                +   *                   .toString())
                +   *           .setInterval(Interval.newBuilder().build())
                +   *           .build();
                +   *   ApiFuture future =
                +   *       findingsRefinementServiceClient
                +   *           .computeFindingsRefinementActivityCallable()
                +   *           .futureCall(request);
                +   *   // Do something.
                +   *   ComputeFindingsRefinementActivityResponse response = future.get();
                +   * }
                +   * }
                + */ + public final UnaryCallable< + ComputeFindingsRefinementActivityRequest, ComputeFindingsRefinementActivityResponse> + computeFindingsRefinementActivityCallable() { + return stub.computeFindingsRefinementActivityCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns findings refinement activity for all findings refinements. + * + *

                Sample code: + * + *

                {@code
                +   * // This snippet has been automatically generated and should be regarded as a code template only.
                +   * // It will require modifications to work:
                +   * // - It may require correct/in-range values for request initialization.
                +   * // - It may require specifying regional endpoints when creating the service client as shown in
                +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                +   * try (FindingsRefinementServiceClient findingsRefinementServiceClient =
                +   *     FindingsRefinementServiceClient.create()) {
                +   *   InstanceName instance = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
                +   *   ComputeAllFindingsRefinementActivitiesResponse response =
                +   *       findingsRefinementServiceClient.computeAllFindingsRefinementActivities(instance);
                +   * }
                +   * }
                + * + * @param instance Required. The ID of the Instance to retrieve counts for. Format: + * projects/{project}/locations/{location}/instances/{instance} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ComputeAllFindingsRefinementActivitiesResponse + computeAllFindingsRefinementActivities(InstanceName instance) { + ComputeAllFindingsRefinementActivitiesRequest request = + ComputeAllFindingsRefinementActivitiesRequest.newBuilder() + .setInstance(instance == null ? null : instance.toString()) + .build(); + return computeAllFindingsRefinementActivities(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns findings refinement activity for all findings refinements. + * + *

                Sample code: + * + *

                {@code
                +   * // This snippet has been automatically generated and should be regarded as a code template only.
                +   * // It will require modifications to work:
                +   * // - It may require correct/in-range values for request initialization.
                +   * // - It may require specifying regional endpoints when creating the service client as shown in
                +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                +   * try (FindingsRefinementServiceClient findingsRefinementServiceClient =
                +   *     FindingsRefinementServiceClient.create()) {
                +   *   String instance = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString();
                +   *   ComputeAllFindingsRefinementActivitiesResponse response =
                +   *       findingsRefinementServiceClient.computeAllFindingsRefinementActivities(instance);
                +   * }
                +   * }
                + * + * @param instance Required. The ID of the Instance to retrieve counts for. Format: + * projects/{project}/locations/{location}/instances/{instance} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ComputeAllFindingsRefinementActivitiesResponse + computeAllFindingsRefinementActivities(String instance) { + ComputeAllFindingsRefinementActivitiesRequest request = + ComputeAllFindingsRefinementActivitiesRequest.newBuilder().setInstance(instance).build(); + return computeAllFindingsRefinementActivities(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns findings refinement activity for all findings refinements. + * + *

                Sample code: + * + *

                {@code
                +   * // This snippet has been automatically generated and should be regarded as a code template only.
                +   * // It will require modifications to work:
                +   * // - It may require correct/in-range values for request initialization.
                +   * // - It may require specifying regional endpoints when creating the service client as shown in
                +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                +   * try (FindingsRefinementServiceClient findingsRefinementServiceClient =
                +   *     FindingsRefinementServiceClient.create()) {
                +   *   ComputeAllFindingsRefinementActivitiesRequest request =
                +   *       ComputeAllFindingsRefinementActivitiesRequest.newBuilder()
                +   *           .setInstance(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
                +   *           .setInterval(Interval.newBuilder().build())
                +   *           .build();
                +   *   ComputeAllFindingsRefinementActivitiesResponse response =
                +   *       findingsRefinementServiceClient.computeAllFindingsRefinementActivities(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 ComputeAllFindingsRefinementActivitiesResponse + computeAllFindingsRefinementActivities( + ComputeAllFindingsRefinementActivitiesRequest request) { + return computeAllFindingsRefinementActivitiesCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns findings refinement activity for all findings refinements. + * + *

                Sample code: + * + *

                {@code
                +   * // This snippet has been automatically generated and should be regarded as a code template only.
                +   * // It will require modifications to work:
                +   * // - It may require correct/in-range values for request initialization.
                +   * // - It may require specifying regional endpoints when creating the service client as shown in
                +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                +   * try (FindingsRefinementServiceClient findingsRefinementServiceClient =
                +   *     FindingsRefinementServiceClient.create()) {
                +   *   ComputeAllFindingsRefinementActivitiesRequest request =
                +   *       ComputeAllFindingsRefinementActivitiesRequest.newBuilder()
                +   *           .setInstance(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
                +   *           .setInterval(Interval.newBuilder().build())
                +   *           .build();
                +   *   ApiFuture future =
                +   *       findingsRefinementServiceClient
                +   *           .computeAllFindingsRefinementActivitiesCallable()
                +   *           .futureCall(request);
                +   *   // Do something.
                +   *   ComputeAllFindingsRefinementActivitiesResponse response = future.get();
                +   * }
                +   * }
                + */ + public final UnaryCallable< + ComputeAllFindingsRefinementActivitiesRequest, + ComputeAllFindingsRefinementActivitiesResponse> + computeAllFindingsRefinementActivitiesCallable() { + return stub.computeAllFindingsRefinementActivitiesCallable(); + } + + @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 ListFindingsRefinementsPagedResponse + extends AbstractPagedListResponse< + ListFindingsRefinementsRequest, + ListFindingsRefinementsResponse, + FindingsRefinement, + ListFindingsRefinementsPage, + ListFindingsRefinementsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListFindingsRefinementsRequest, ListFindingsRefinementsResponse, FindingsRefinement> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListFindingsRefinementsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListFindingsRefinementsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListFindingsRefinementsPagedResponse(ListFindingsRefinementsPage page) { + super(page, ListFindingsRefinementsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListFindingsRefinementsPage + extends AbstractPage< + ListFindingsRefinementsRequest, + ListFindingsRefinementsResponse, + FindingsRefinement, + ListFindingsRefinementsPage> { + + private ListFindingsRefinementsPage( + PageContext< + ListFindingsRefinementsRequest, ListFindingsRefinementsResponse, FindingsRefinement> + context, + ListFindingsRefinementsResponse response) { + super(context, response); + } + + private static ListFindingsRefinementsPage createEmptyPage() { + return new ListFindingsRefinementsPage(null, null); + } + + @Override + protected ListFindingsRefinementsPage createPage( + PageContext< + ListFindingsRefinementsRequest, ListFindingsRefinementsResponse, FindingsRefinement> + context, + ListFindingsRefinementsResponse response) { + return new ListFindingsRefinementsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListFindingsRefinementsRequest, ListFindingsRefinementsResponse, FindingsRefinement> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListFindingsRefinementsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListFindingsRefinementsRequest, + ListFindingsRefinementsResponse, + FindingsRefinement, + ListFindingsRefinementsPage, + ListFindingsRefinementsFixedSizeCollection> { + + private ListFindingsRefinementsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListFindingsRefinementsFixedSizeCollection createEmptyCollection() { + return new ListFindingsRefinementsFixedSizeCollection(null, 0); + } + + @Override + protected ListFindingsRefinementsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListFindingsRefinementsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListAllFindingsRefinementDeploymentsPagedResponse + extends AbstractPagedListResponse< + ListAllFindingsRefinementDeploymentsRequest, + ListAllFindingsRefinementDeploymentsResponse, + FindingsRefinementDeployment, + ListAllFindingsRefinementDeploymentsPage, + ListAllFindingsRefinementDeploymentsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListAllFindingsRefinementDeploymentsRequest, + ListAllFindingsRefinementDeploymentsResponse, + FindingsRefinementDeployment> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListAllFindingsRefinementDeploymentsPage.createEmptyPage() + .createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListAllFindingsRefinementDeploymentsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListAllFindingsRefinementDeploymentsPagedResponse( + ListAllFindingsRefinementDeploymentsPage page) { + super(page, ListAllFindingsRefinementDeploymentsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListAllFindingsRefinementDeploymentsPage + extends AbstractPage< + ListAllFindingsRefinementDeploymentsRequest, + ListAllFindingsRefinementDeploymentsResponse, + FindingsRefinementDeployment, + ListAllFindingsRefinementDeploymentsPage> { + + private ListAllFindingsRefinementDeploymentsPage( + PageContext< + ListAllFindingsRefinementDeploymentsRequest, + ListAllFindingsRefinementDeploymentsResponse, + FindingsRefinementDeployment> + context, + ListAllFindingsRefinementDeploymentsResponse response) { + super(context, response); + } + + private static ListAllFindingsRefinementDeploymentsPage createEmptyPage() { + return new ListAllFindingsRefinementDeploymentsPage(null, null); + } + + @Override + protected ListAllFindingsRefinementDeploymentsPage createPage( + PageContext< + ListAllFindingsRefinementDeploymentsRequest, + ListAllFindingsRefinementDeploymentsResponse, + FindingsRefinementDeployment> + context, + ListAllFindingsRefinementDeploymentsResponse response) { + return new ListAllFindingsRefinementDeploymentsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListAllFindingsRefinementDeploymentsRequest, + ListAllFindingsRefinementDeploymentsResponse, + FindingsRefinementDeployment> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListAllFindingsRefinementDeploymentsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListAllFindingsRefinementDeploymentsRequest, + ListAllFindingsRefinementDeploymentsResponse, + FindingsRefinementDeployment, + ListAllFindingsRefinementDeploymentsPage, + ListAllFindingsRefinementDeploymentsFixedSizeCollection> { + + private ListAllFindingsRefinementDeploymentsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListAllFindingsRefinementDeploymentsFixedSizeCollection createEmptyCollection() { + return new ListAllFindingsRefinementDeploymentsFixedSizeCollection(null, 0); + } + + @Override + protected ListAllFindingsRefinementDeploymentsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListAllFindingsRefinementDeploymentsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/FindingsRefinementServiceSettings.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/FindingsRefinementServiceSettings.java new file mode 100644 index 000000000000..0071daa0f34c --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/FindingsRefinementServiceSettings.java @@ -0,0 +1,360 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1; + +import static com.google.cloud.chronicle.v1.FindingsRefinementServiceClient.ListAllFindingsRefinementDeploymentsPagedResponse; +import static com.google.cloud.chronicle.v1.FindingsRefinementServiceClient.ListFindingsRefinementsPagedResponse; + +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.chronicle.v1.stub.FindingsRefinementServiceStubSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link FindingsRefinementServiceClient}. + * + *

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

                  + *
                • The default service address (chronicle.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 getFindingsRefinement: + * + *

                {@code
                + * // This snippet has been automatically generated and should be regarded as a code template only.
                + * // It will require modifications to work:
                + * // - It may require correct/in-range values for request initialization.
                + * // - It may require specifying regional endpoints when creating the service client as shown in
                + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                + * FindingsRefinementServiceSettings.Builder findingsRefinementServiceSettingsBuilder =
                + *     FindingsRefinementServiceSettings.newBuilder();
                + * findingsRefinementServiceSettingsBuilder
                + *     .getFindingsRefinementSettings()
                + *     .setRetrySettings(
                + *         findingsRefinementServiceSettingsBuilder
                + *             .getFindingsRefinementSettings()
                + *             .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());
                + * FindingsRefinementServiceSettings findingsRefinementServiceSettings =
                + *     findingsRefinementServiceSettingsBuilder.build();
                + * }
                + * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + */ +@Generated("by gapic-generator-java") +public class FindingsRefinementServiceSettings + extends ClientSettings { + + /** Returns the object with the settings used for calls to getFindingsRefinement. */ + public UnaryCallSettings + getFindingsRefinementSettings() { + return ((FindingsRefinementServiceStubSettings) getStubSettings()) + .getFindingsRefinementSettings(); + } + + /** Returns the object with the settings used for calls to listFindingsRefinements. */ + public PagedCallSettings< + ListFindingsRefinementsRequest, + ListFindingsRefinementsResponse, + ListFindingsRefinementsPagedResponse> + listFindingsRefinementsSettings() { + return ((FindingsRefinementServiceStubSettings) getStubSettings()) + .listFindingsRefinementsSettings(); + } + + /** Returns the object with the settings used for calls to createFindingsRefinement. */ + public UnaryCallSettings + createFindingsRefinementSettings() { + return ((FindingsRefinementServiceStubSettings) getStubSettings()) + .createFindingsRefinementSettings(); + } + + /** Returns the object with the settings used for calls to updateFindingsRefinement. */ + public UnaryCallSettings + updateFindingsRefinementSettings() { + return ((FindingsRefinementServiceStubSettings) getStubSettings()) + .updateFindingsRefinementSettings(); + } + + /** Returns the object with the settings used for calls to getFindingsRefinementDeployment. */ + public UnaryCallSettings + getFindingsRefinementDeploymentSettings() { + return ((FindingsRefinementServiceStubSettings) getStubSettings()) + .getFindingsRefinementDeploymentSettings(); + } + + /** Returns the object with the settings used for calls to updateFindingsRefinementDeployment. */ + public UnaryCallSettings + updateFindingsRefinementDeploymentSettings() { + return ((FindingsRefinementServiceStubSettings) getStubSettings()) + .updateFindingsRefinementDeploymentSettings(); + } + + /** + * Returns the object with the settings used for calls to listAllFindingsRefinementDeployments. + */ + public PagedCallSettings< + ListAllFindingsRefinementDeploymentsRequest, + ListAllFindingsRefinementDeploymentsResponse, + ListAllFindingsRefinementDeploymentsPagedResponse> + listAllFindingsRefinementDeploymentsSettings() { + return ((FindingsRefinementServiceStubSettings) getStubSettings()) + .listAllFindingsRefinementDeploymentsSettings(); + } + + /** Returns the object with the settings used for calls to computeFindingsRefinementActivity. */ + public UnaryCallSettings< + ComputeFindingsRefinementActivityRequest, ComputeFindingsRefinementActivityResponse> + computeFindingsRefinementActivitySettings() { + return ((FindingsRefinementServiceStubSettings) getStubSettings()) + .computeFindingsRefinementActivitySettings(); + } + + /** + * Returns the object with the settings used for calls to computeAllFindingsRefinementActivities. + */ + public UnaryCallSettings< + ComputeAllFindingsRefinementActivitiesRequest, + ComputeAllFindingsRefinementActivitiesResponse> + computeAllFindingsRefinementActivitiesSettings() { + return ((FindingsRefinementServiceStubSettings) getStubSettings()) + .computeAllFindingsRefinementActivitiesSettings(); + } + + public static final FindingsRefinementServiceSettings create( + FindingsRefinementServiceStubSettings stub) throws IOException { + return new FindingsRefinementServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return FindingsRefinementServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return FindingsRefinementServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return FindingsRefinementServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return FindingsRefinementServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return FindingsRefinementServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return FindingsRefinementServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return FindingsRefinementServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return FindingsRefinementServiceStubSettings.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(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 FindingsRefinementServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for FindingsRefinementServiceSettings. */ + public static class Builder + extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(FindingsRefinementServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(FindingsRefinementServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(FindingsRefinementServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(FindingsRefinementServiceStubSettings.newBuilder()); + } + + private static Builder createHttpJsonDefault() { + return new Builder(FindingsRefinementServiceStubSettings.newHttpJsonBuilder()); + } + + public FindingsRefinementServiceStubSettings.Builder getStubSettingsBuilder() { + return ((FindingsRefinementServiceStubSettings.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 getFindingsRefinement. */ + public UnaryCallSettings.Builder + getFindingsRefinementSettings() { + return getStubSettingsBuilder().getFindingsRefinementSettings(); + } + + /** Returns the builder for the settings used for calls to listFindingsRefinements. */ + public PagedCallSettings.Builder< + ListFindingsRefinementsRequest, + ListFindingsRefinementsResponse, + ListFindingsRefinementsPagedResponse> + listFindingsRefinementsSettings() { + return getStubSettingsBuilder().listFindingsRefinementsSettings(); + } + + /** Returns the builder for the settings used for calls to createFindingsRefinement. */ + public UnaryCallSettings.Builder + createFindingsRefinementSettings() { + return getStubSettingsBuilder().createFindingsRefinementSettings(); + } + + /** Returns the builder for the settings used for calls to updateFindingsRefinement. */ + public UnaryCallSettings.Builder + updateFindingsRefinementSettings() { + return getStubSettingsBuilder().updateFindingsRefinementSettings(); + } + + /** Returns the builder for the settings used for calls to getFindingsRefinementDeployment. */ + public UnaryCallSettings.Builder< + GetFindingsRefinementDeploymentRequest, FindingsRefinementDeployment> + getFindingsRefinementDeploymentSettings() { + return getStubSettingsBuilder().getFindingsRefinementDeploymentSettings(); + } + + /** + * Returns the builder for the settings used for calls to updateFindingsRefinementDeployment. + */ + public UnaryCallSettings.Builder< + UpdateFindingsRefinementDeploymentRequest, FindingsRefinementDeployment> + updateFindingsRefinementDeploymentSettings() { + return getStubSettingsBuilder().updateFindingsRefinementDeploymentSettings(); + } + + /** + * Returns the builder for the settings used for calls to listAllFindingsRefinementDeployments. + */ + public PagedCallSettings.Builder< + ListAllFindingsRefinementDeploymentsRequest, + ListAllFindingsRefinementDeploymentsResponse, + ListAllFindingsRefinementDeploymentsPagedResponse> + listAllFindingsRefinementDeploymentsSettings() { + return getStubSettingsBuilder().listAllFindingsRefinementDeploymentsSettings(); + } + + /** Returns the builder for the settings used for calls to computeFindingsRefinementActivity. */ + public UnaryCallSettings.Builder< + ComputeFindingsRefinementActivityRequest, ComputeFindingsRefinementActivityResponse> + computeFindingsRefinementActivitySettings() { + return getStubSettingsBuilder().computeFindingsRefinementActivitySettings(); + } + + /** + * Returns the builder for the settings used for calls to + * computeAllFindingsRefinementActivities. + */ + public UnaryCallSettings.Builder< + ComputeAllFindingsRefinementActivitiesRequest, + ComputeAllFindingsRefinementActivitiesResponse> + computeAllFindingsRefinementActivitiesSettings() { + return getStubSettingsBuilder().computeAllFindingsRefinementActivitiesSettings(); + } + + @Override + public FindingsRefinementServiceSettings build() throws IOException { + return new FindingsRefinementServiceSettings(this); + } + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/gapic_metadata.json b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/gapic_metadata.json index e6b7c170b89b..a23886e96562 100644 --- a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/gapic_metadata.json +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/gapic_metadata.json @@ -188,6 +188,42 @@ } } }, + "FindingsRefinementService": { + "clients": { + "grpc": { + "libraryClient": "FindingsRefinementServiceClient", + "rpcs": { + "ComputeAllFindingsRefinementActivities": { + "methods": ["computeAllFindingsRefinementActivities", "computeAllFindingsRefinementActivities", "computeAllFindingsRefinementActivities", "computeAllFindingsRefinementActivitiesCallable"] + }, + "ComputeFindingsRefinementActivity": { + "methods": ["computeFindingsRefinementActivity", "computeFindingsRefinementActivity", "computeFindingsRefinementActivity", "computeFindingsRefinementActivityCallable"] + }, + "CreateFindingsRefinement": { + "methods": ["createFindingsRefinement", "createFindingsRefinement", "createFindingsRefinement", "createFindingsRefinementCallable"] + }, + "GetFindingsRefinement": { + "methods": ["getFindingsRefinement", "getFindingsRefinement", "getFindingsRefinement", "getFindingsRefinementCallable"] + }, + "GetFindingsRefinementDeployment": { + "methods": ["getFindingsRefinementDeployment", "getFindingsRefinementDeployment", "getFindingsRefinementDeployment", "getFindingsRefinementDeploymentCallable"] + }, + "ListAllFindingsRefinementDeployments": { + "methods": ["listAllFindingsRefinementDeployments", "listAllFindingsRefinementDeployments", "listAllFindingsRefinementDeployments", "listAllFindingsRefinementDeploymentsPagedCallable", "listAllFindingsRefinementDeploymentsCallable"] + }, + "ListFindingsRefinements": { + "methods": ["listFindingsRefinements", "listFindingsRefinements", "listFindingsRefinements", "listFindingsRefinementsPagedCallable", "listFindingsRefinementsCallable"] + }, + "UpdateFindingsRefinement": { + "methods": ["updateFindingsRefinement", "updateFindingsRefinement", "updateFindingsRefinementCallable"] + }, + "UpdateFindingsRefinementDeployment": { + "methods": ["updateFindingsRefinementDeployment", "updateFindingsRefinementDeployment", "updateFindingsRefinementDeploymentCallable"] + } + } + } + } + }, "InstanceService": { "clients": { "grpc": { diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/package-info.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/package-info.java index 0d902ffffd26..743761d9fb51 100644 --- a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/package-info.java +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/package-info.java @@ -164,6 +164,29 @@ * } * } * + *

                ======================= FindingsRefinementServiceClient ======================= + * + *

                Service Description: FindingsRefinementService provides an interface for filtering out + * findings that are unlikely to be real threats to prevent them from triggering alerts or + * notifications. + * + *

                Sample for FindingsRefinementServiceClient: + * + *

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

                ======================= InstanceServiceClient ======================= * *

                Service Description: InstanceService provides the entry interface for the Chronicle API. diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/FindingsRefinementServiceStub.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/FindingsRefinementServiceStub.java new file mode 100644 index 000000000000..da3c527d9549 --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/FindingsRefinementServiceStub.java @@ -0,0 +1,120 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1.stub; + +import static com.google.cloud.chronicle.v1.FindingsRefinementServiceClient.ListAllFindingsRefinementDeploymentsPagedResponse; +import static com.google.cloud.chronicle.v1.FindingsRefinementServiceClient.ListFindingsRefinementsPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesRequest; +import com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesResponse; +import com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityRequest; +import com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityResponse; +import com.google.cloud.chronicle.v1.CreateFindingsRefinementRequest; +import com.google.cloud.chronicle.v1.FindingsRefinement; +import com.google.cloud.chronicle.v1.FindingsRefinementDeployment; +import com.google.cloud.chronicle.v1.GetFindingsRefinementDeploymentRequest; +import com.google.cloud.chronicle.v1.GetFindingsRefinementRequest; +import com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsRequest; +import com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsResponse; +import com.google.cloud.chronicle.v1.ListFindingsRefinementsRequest; +import com.google.cloud.chronicle.v1.ListFindingsRefinementsResponse; +import com.google.cloud.chronicle.v1.UpdateFindingsRefinementDeploymentRequest; +import com.google.cloud.chronicle.v1.UpdateFindingsRefinementRequest; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the FindingsRefinementService service API. + * + *

                This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class FindingsRefinementServiceStub implements BackgroundResource { + + public UnaryCallable + getFindingsRefinementCallable() { + throw new UnsupportedOperationException("Not implemented: getFindingsRefinementCallable()"); + } + + public UnaryCallable + listFindingsRefinementsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listFindingsRefinementsPagedCallable()"); + } + + public UnaryCallable + listFindingsRefinementsCallable() { + throw new UnsupportedOperationException("Not implemented: listFindingsRefinementsCallable()"); + } + + public UnaryCallable + createFindingsRefinementCallable() { + throw new UnsupportedOperationException("Not implemented: createFindingsRefinementCallable()"); + } + + public UnaryCallable + updateFindingsRefinementCallable() { + throw new UnsupportedOperationException("Not implemented: updateFindingsRefinementCallable()"); + } + + public UnaryCallable + getFindingsRefinementDeploymentCallable() { + throw new UnsupportedOperationException( + "Not implemented: getFindingsRefinementDeploymentCallable()"); + } + + public UnaryCallable + updateFindingsRefinementDeploymentCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateFindingsRefinementDeploymentCallable()"); + } + + public UnaryCallable< + ListAllFindingsRefinementDeploymentsRequest, + ListAllFindingsRefinementDeploymentsPagedResponse> + listAllFindingsRefinementDeploymentsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listAllFindingsRefinementDeploymentsPagedCallable()"); + } + + public UnaryCallable< + ListAllFindingsRefinementDeploymentsRequest, ListAllFindingsRefinementDeploymentsResponse> + listAllFindingsRefinementDeploymentsCallable() { + throw new UnsupportedOperationException( + "Not implemented: listAllFindingsRefinementDeploymentsCallable()"); + } + + public UnaryCallable< + ComputeFindingsRefinementActivityRequest, ComputeFindingsRefinementActivityResponse> + computeFindingsRefinementActivityCallable() { + throw new UnsupportedOperationException( + "Not implemented: computeFindingsRefinementActivityCallable()"); + } + + public UnaryCallable< + ComputeAllFindingsRefinementActivitiesRequest, + ComputeAllFindingsRefinementActivitiesResponse> + computeAllFindingsRefinementActivitiesCallable() { + throw new UnsupportedOperationException( + "Not implemented: computeAllFindingsRefinementActivitiesCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/FindingsRefinementServiceStubSettings.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/FindingsRefinementServiceStubSettings.java new file mode 100644 index 000000000000..2782e8bdae59 --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/FindingsRefinementServiceStubSettings.java @@ -0,0 +1,866 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1.stub; + +import static com.google.cloud.chronicle.v1.FindingsRefinementServiceClient.ListAllFindingsRefinementDeploymentsPagedResponse; +import static com.google.cloud.chronicle.v1.FindingsRefinementServiceClient.ListFindingsRefinementsPagedResponse; + +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.chronicle.v1.ComputeAllFindingsRefinementActivitiesRequest; +import com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesResponse; +import com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityRequest; +import com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityResponse; +import com.google.cloud.chronicle.v1.CreateFindingsRefinementRequest; +import com.google.cloud.chronicle.v1.FindingsRefinement; +import com.google.cloud.chronicle.v1.FindingsRefinementDeployment; +import com.google.cloud.chronicle.v1.GetFindingsRefinementDeploymentRequest; +import com.google.cloud.chronicle.v1.GetFindingsRefinementRequest; +import com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsRequest; +import com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsResponse; +import com.google.cloud.chronicle.v1.ListFindingsRefinementsRequest; +import com.google.cloud.chronicle.v1.ListFindingsRefinementsResponse; +import com.google.cloud.chronicle.v1.UpdateFindingsRefinementDeploymentRequest; +import com.google.cloud.chronicle.v1.UpdateFindingsRefinementRequest; +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.time.Duration; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link FindingsRefinementServiceStub}. + * + *

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

                  + *
                • The default service address (chronicle.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 getFindingsRefinement: + * + *

                {@code
                + * // This snippet has been automatically generated and should be regarded as a code template only.
                + * // It will require modifications to work:
                + * // - It may require correct/in-range values for request initialization.
                + * // - It may require specifying regional endpoints when creating the service client as shown in
                + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                + * FindingsRefinementServiceStubSettings.Builder findingsRefinementServiceSettingsBuilder =
                + *     FindingsRefinementServiceStubSettings.newBuilder();
                + * findingsRefinementServiceSettingsBuilder
                + *     .getFindingsRefinementSettings()
                + *     .setRetrySettings(
                + *         findingsRefinementServiceSettingsBuilder
                + *             .getFindingsRefinementSettings()
                + *             .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());
                + * FindingsRefinementServiceStubSettings findingsRefinementServiceSettings =
                + *     findingsRefinementServiceSettingsBuilder.build();
                + * }
                + * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + */ +@Generated("by gapic-generator-java") +@SuppressWarnings("CanonicalDuration") +public class FindingsRefinementServiceStubSettings + extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder() + .add("https://www.googleapis.com/auth/chronicle") + .add("https://www.googleapis.com/auth/chronicle.readonly") + .add("https://www.googleapis.com/auth/cloud-platform") + .build(); + + private final UnaryCallSettings + getFindingsRefinementSettings; + private final PagedCallSettings< + ListFindingsRefinementsRequest, + ListFindingsRefinementsResponse, + ListFindingsRefinementsPagedResponse> + listFindingsRefinementsSettings; + private final UnaryCallSettings + createFindingsRefinementSettings; + private final UnaryCallSettings + updateFindingsRefinementSettings; + private final UnaryCallSettings< + GetFindingsRefinementDeploymentRequest, FindingsRefinementDeployment> + getFindingsRefinementDeploymentSettings; + private final UnaryCallSettings< + UpdateFindingsRefinementDeploymentRequest, FindingsRefinementDeployment> + updateFindingsRefinementDeploymentSettings; + private final PagedCallSettings< + ListAllFindingsRefinementDeploymentsRequest, + ListAllFindingsRefinementDeploymentsResponse, + ListAllFindingsRefinementDeploymentsPagedResponse> + listAllFindingsRefinementDeploymentsSettings; + private final UnaryCallSettings< + ComputeFindingsRefinementActivityRequest, ComputeFindingsRefinementActivityResponse> + computeFindingsRefinementActivitySettings; + private final UnaryCallSettings< + ComputeAllFindingsRefinementActivitiesRequest, + ComputeAllFindingsRefinementActivitiesResponse> + computeAllFindingsRefinementActivitiesSettings; + + private static final PagedListDescriptor< + ListFindingsRefinementsRequest, ListFindingsRefinementsResponse, FindingsRefinement> + LIST_FINDINGS_REFINEMENTS_PAGE_STR_DESC = + new PagedListDescriptor< + ListFindingsRefinementsRequest, + ListFindingsRefinementsResponse, + FindingsRefinement>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListFindingsRefinementsRequest injectToken( + ListFindingsRefinementsRequest payload, String token) { + return ListFindingsRefinementsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListFindingsRefinementsRequest injectPageSize( + ListFindingsRefinementsRequest payload, int pageSize) { + return ListFindingsRefinementsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListFindingsRefinementsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListFindingsRefinementsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListFindingsRefinementsResponse payload) { + return payload.getFindingsRefinementsList(); + } + }; + + private static final PagedListDescriptor< + ListAllFindingsRefinementDeploymentsRequest, + ListAllFindingsRefinementDeploymentsResponse, + FindingsRefinementDeployment> + LIST_ALL_FINDINGS_REFINEMENT_DEPLOYMENTS_PAGE_STR_DESC = + new PagedListDescriptor< + ListAllFindingsRefinementDeploymentsRequest, + ListAllFindingsRefinementDeploymentsResponse, + FindingsRefinementDeployment>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListAllFindingsRefinementDeploymentsRequest injectToken( + ListAllFindingsRefinementDeploymentsRequest payload, String token) { + return ListAllFindingsRefinementDeploymentsRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListAllFindingsRefinementDeploymentsRequest injectPageSize( + ListAllFindingsRefinementDeploymentsRequest payload, int pageSize) { + return ListAllFindingsRefinementDeploymentsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListAllFindingsRefinementDeploymentsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListAllFindingsRefinementDeploymentsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListAllFindingsRefinementDeploymentsResponse payload) { + return payload.getAllFindingsRefinementDeploymentsList(); + } + }; + + private static final PagedListResponseFactory< + ListFindingsRefinementsRequest, + ListFindingsRefinementsResponse, + ListFindingsRefinementsPagedResponse> + LIST_FINDINGS_REFINEMENTS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListFindingsRefinementsRequest, + ListFindingsRefinementsResponse, + ListFindingsRefinementsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + ListFindingsRefinementsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListFindingsRefinementsRequest, + ListFindingsRefinementsResponse, + FindingsRefinement> + pageContext = + PageContext.create( + callable, LIST_FINDINGS_REFINEMENTS_PAGE_STR_DESC, request, context); + return ListFindingsRefinementsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListAllFindingsRefinementDeploymentsRequest, + ListAllFindingsRefinementDeploymentsResponse, + ListAllFindingsRefinementDeploymentsPagedResponse> + LIST_ALL_FINDINGS_REFINEMENT_DEPLOYMENTS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListAllFindingsRefinementDeploymentsRequest, + ListAllFindingsRefinementDeploymentsResponse, + ListAllFindingsRefinementDeploymentsPagedResponse>() { + @Override + public ApiFuture + getFuturePagedResponse( + UnaryCallable< + ListAllFindingsRefinementDeploymentsRequest, + ListAllFindingsRefinementDeploymentsResponse> + callable, + ListAllFindingsRefinementDeploymentsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListAllFindingsRefinementDeploymentsRequest, + ListAllFindingsRefinementDeploymentsResponse, + FindingsRefinementDeployment> + pageContext = + PageContext.create( + callable, + LIST_ALL_FINDINGS_REFINEMENT_DEPLOYMENTS_PAGE_STR_DESC, + request, + context); + return ListAllFindingsRefinementDeploymentsPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to getFindingsRefinement. */ + public UnaryCallSettings + getFindingsRefinementSettings() { + return getFindingsRefinementSettings; + } + + /** Returns the object with the settings used for calls to listFindingsRefinements. */ + public PagedCallSettings< + ListFindingsRefinementsRequest, + ListFindingsRefinementsResponse, + ListFindingsRefinementsPagedResponse> + listFindingsRefinementsSettings() { + return listFindingsRefinementsSettings; + } + + /** Returns the object with the settings used for calls to createFindingsRefinement. */ + public UnaryCallSettings + createFindingsRefinementSettings() { + return createFindingsRefinementSettings; + } + + /** Returns the object with the settings used for calls to updateFindingsRefinement. */ + public UnaryCallSettings + updateFindingsRefinementSettings() { + return updateFindingsRefinementSettings; + } + + /** Returns the object with the settings used for calls to getFindingsRefinementDeployment. */ + public UnaryCallSettings + getFindingsRefinementDeploymentSettings() { + return getFindingsRefinementDeploymentSettings; + } + + /** Returns the object with the settings used for calls to updateFindingsRefinementDeployment. */ + public UnaryCallSettings + updateFindingsRefinementDeploymentSettings() { + return updateFindingsRefinementDeploymentSettings; + } + + /** + * Returns the object with the settings used for calls to listAllFindingsRefinementDeployments. + */ + public PagedCallSettings< + ListAllFindingsRefinementDeploymentsRequest, + ListAllFindingsRefinementDeploymentsResponse, + ListAllFindingsRefinementDeploymentsPagedResponse> + listAllFindingsRefinementDeploymentsSettings() { + return listAllFindingsRefinementDeploymentsSettings; + } + + /** Returns the object with the settings used for calls to computeFindingsRefinementActivity. */ + public UnaryCallSettings< + ComputeFindingsRefinementActivityRequest, ComputeFindingsRefinementActivityResponse> + computeFindingsRefinementActivitySettings() { + return computeFindingsRefinementActivitySettings; + } + + /** + * Returns the object with the settings used for calls to computeAllFindingsRefinementActivities. + */ + public UnaryCallSettings< + ComputeAllFindingsRefinementActivitiesRequest, + ComputeAllFindingsRefinementActivitiesResponse> + computeAllFindingsRefinementActivitiesSettings() { + return computeAllFindingsRefinementActivitiesSettings; + } + + public FindingsRefinementServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcFindingsRefinementServiceStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonFindingsRefinementServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "chronicle"; + } + + /** 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 "chronicle.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "chronicle.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(FindingsRefinementServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(FindingsRefinementServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return FindingsRefinementServiceStubSettings.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(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 FindingsRefinementServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + getFindingsRefinementSettings = settingsBuilder.getFindingsRefinementSettings().build(); + listFindingsRefinementsSettings = settingsBuilder.listFindingsRefinementsSettings().build(); + createFindingsRefinementSettings = settingsBuilder.createFindingsRefinementSettings().build(); + updateFindingsRefinementSettings = settingsBuilder.updateFindingsRefinementSettings().build(); + getFindingsRefinementDeploymentSettings = + settingsBuilder.getFindingsRefinementDeploymentSettings().build(); + updateFindingsRefinementDeploymentSettings = + settingsBuilder.updateFindingsRefinementDeploymentSettings().build(); + listAllFindingsRefinementDeploymentsSettings = + settingsBuilder.listAllFindingsRefinementDeploymentsSettings().build(); + computeFindingsRefinementActivitySettings = + settingsBuilder.computeFindingsRefinementActivitySettings().build(); + computeAllFindingsRefinementActivitiesSettings = + settingsBuilder.computeAllFindingsRefinementActivitiesSettings().build(); + } + + @Override + protected LibraryMetadata getLibraryMetadata() { + return LibraryMetadata.newBuilder() + .setArtifactName("com.google.cloud:google-cloud-chronicle") + .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) + .build(); + } + + /** Builder for FindingsRefinementServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + getFindingsRefinementSettings; + private final PagedCallSettings.Builder< + ListFindingsRefinementsRequest, + ListFindingsRefinementsResponse, + ListFindingsRefinementsPagedResponse> + listFindingsRefinementsSettings; + private final UnaryCallSettings.Builder + createFindingsRefinementSettings; + private final UnaryCallSettings.Builder + updateFindingsRefinementSettings; + private final UnaryCallSettings.Builder< + GetFindingsRefinementDeploymentRequest, FindingsRefinementDeployment> + getFindingsRefinementDeploymentSettings; + private final UnaryCallSettings.Builder< + UpdateFindingsRefinementDeploymentRequest, FindingsRefinementDeployment> + updateFindingsRefinementDeploymentSettings; + private final PagedCallSettings.Builder< + ListAllFindingsRefinementDeploymentsRequest, + ListAllFindingsRefinementDeploymentsResponse, + ListAllFindingsRefinementDeploymentsPagedResponse> + listAllFindingsRefinementDeploymentsSettings; + private final UnaryCallSettings.Builder< + ComputeFindingsRefinementActivityRequest, ComputeFindingsRefinementActivityResponse> + computeFindingsRefinementActivitySettings; + private final UnaryCallSettings.Builder< + ComputeAllFindingsRefinementActivitiesRequest, + ComputeAllFindingsRefinementActivitiesResponse> + computeAllFindingsRefinementActivitiesSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "retry_policy_10_codes", + ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); + definitions.put( + "retry_policy_13_codes", + ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); + definitions.put( + "retry_policy_11_codes", + ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); + definitions.put( + "no_retry_14_codes", ImmutableSet.copyOf(Lists.newArrayList())); + definitions.put( + "retry_policy_12_codes", + ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(1000L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelayDuration(Duration.ofMillis(60000L)) + .setInitialRpcTimeoutDuration(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(60000L)) + .setTotalTimeoutDuration(Duration.ofMillis(60000L)) + .build(); + definitions.put("retry_policy_10_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(1000L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelayDuration(Duration.ofMillis(60000L)) + .setInitialRpcTimeoutDuration(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(60000L)) + .setTotalTimeoutDuration(Duration.ofMillis(60000L)) + .build(); + definitions.put("retry_policy_13_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(1000L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelayDuration(Duration.ofMillis(120000L)) + .setInitialRpcTimeoutDuration(Duration.ofMillis(120000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(120000L)) + .setTotalTimeoutDuration(Duration.ofMillis(120000L)) + .build(); + definitions.put("retry_policy_11_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRpcTimeoutDuration(Duration.ofMillis(120000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(120000L)) + .setTotalTimeoutDuration(Duration.ofMillis(120000L)) + .build(); + definitions.put("no_retry_14_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(1000L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelayDuration(Duration.ofMillis(600000L)) + .setInitialRpcTimeoutDuration(Duration.ofMillis(600000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(600000L)) + .setTotalTimeoutDuration(Duration.ofMillis(600000L)) + .build(); + definitions.put("retry_policy_12_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + getFindingsRefinementSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listFindingsRefinementsSettings = + PagedCallSettings.newBuilder(LIST_FINDINGS_REFINEMENTS_PAGE_STR_FACT); + createFindingsRefinementSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateFindingsRefinementSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getFindingsRefinementDeploymentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateFindingsRefinementDeploymentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listAllFindingsRefinementDeploymentsSettings = + PagedCallSettings.newBuilder(LIST_ALL_FINDINGS_REFINEMENT_DEPLOYMENTS_PAGE_STR_FACT); + computeFindingsRefinementActivitySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + computeAllFindingsRefinementActivitiesSettings = + UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getFindingsRefinementSettings, + listFindingsRefinementsSettings, + createFindingsRefinementSettings, + updateFindingsRefinementSettings, + getFindingsRefinementDeploymentSettings, + updateFindingsRefinementDeploymentSettings, + listAllFindingsRefinementDeploymentsSettings, + computeFindingsRefinementActivitySettings, + computeAllFindingsRefinementActivitiesSettings); + initDefaults(this); + } + + protected Builder(FindingsRefinementServiceStubSettings settings) { + super(settings); + + getFindingsRefinementSettings = settings.getFindingsRefinementSettings.toBuilder(); + listFindingsRefinementsSettings = settings.listFindingsRefinementsSettings.toBuilder(); + createFindingsRefinementSettings = settings.createFindingsRefinementSettings.toBuilder(); + updateFindingsRefinementSettings = settings.updateFindingsRefinementSettings.toBuilder(); + getFindingsRefinementDeploymentSettings = + settings.getFindingsRefinementDeploymentSettings.toBuilder(); + updateFindingsRefinementDeploymentSettings = + settings.updateFindingsRefinementDeploymentSettings.toBuilder(); + listAllFindingsRefinementDeploymentsSettings = + settings.listAllFindingsRefinementDeploymentsSettings.toBuilder(); + computeFindingsRefinementActivitySettings = + settings.computeFindingsRefinementActivitySettings.toBuilder(); + computeAllFindingsRefinementActivitiesSettings = + settings.computeAllFindingsRefinementActivitiesSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getFindingsRefinementSettings, + listFindingsRefinementsSettings, + createFindingsRefinementSettings, + updateFindingsRefinementSettings, + getFindingsRefinementDeploymentSettings, + updateFindingsRefinementDeploymentSettings, + listAllFindingsRefinementDeploymentsSettings, + computeFindingsRefinementActivitySettings, + computeAllFindingsRefinementActivitiesSettings); + } + + 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 + .getFindingsRefinementSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_10_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_10_params")); + + builder + .listFindingsRefinementsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_10_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_10_params")); + + builder + .createFindingsRefinementSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_13_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_13_params")); + + builder + .updateFindingsRefinementSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_13_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_13_params")); + + builder + .getFindingsRefinementDeploymentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_11_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_11_params")); + + builder + .updateFindingsRefinementDeploymentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_14_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_14_params")); + + builder + .listAllFindingsRefinementDeploymentsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_11_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_11_params")); + + builder + .computeFindingsRefinementActivitySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_12_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_12_params")); + + builder + .computeAllFindingsRefinementActivitiesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_12_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_12_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 getFindingsRefinement. */ + public UnaryCallSettings.Builder + getFindingsRefinementSettings() { + return getFindingsRefinementSettings; + } + + /** Returns the builder for the settings used for calls to listFindingsRefinements. */ + public PagedCallSettings.Builder< + ListFindingsRefinementsRequest, + ListFindingsRefinementsResponse, + ListFindingsRefinementsPagedResponse> + listFindingsRefinementsSettings() { + return listFindingsRefinementsSettings; + } + + /** Returns the builder for the settings used for calls to createFindingsRefinement. */ + public UnaryCallSettings.Builder + createFindingsRefinementSettings() { + return createFindingsRefinementSettings; + } + + /** Returns the builder for the settings used for calls to updateFindingsRefinement. */ + public UnaryCallSettings.Builder + updateFindingsRefinementSettings() { + return updateFindingsRefinementSettings; + } + + /** Returns the builder for the settings used for calls to getFindingsRefinementDeployment. */ + public UnaryCallSettings.Builder< + GetFindingsRefinementDeploymentRequest, FindingsRefinementDeployment> + getFindingsRefinementDeploymentSettings() { + return getFindingsRefinementDeploymentSettings; + } + + /** + * Returns the builder for the settings used for calls to updateFindingsRefinementDeployment. + */ + public UnaryCallSettings.Builder< + UpdateFindingsRefinementDeploymentRequest, FindingsRefinementDeployment> + updateFindingsRefinementDeploymentSettings() { + return updateFindingsRefinementDeploymentSettings; + } + + /** + * Returns the builder for the settings used for calls to listAllFindingsRefinementDeployments. + */ + public PagedCallSettings.Builder< + ListAllFindingsRefinementDeploymentsRequest, + ListAllFindingsRefinementDeploymentsResponse, + ListAllFindingsRefinementDeploymentsPagedResponse> + listAllFindingsRefinementDeploymentsSettings() { + return listAllFindingsRefinementDeploymentsSettings; + } + + /** Returns the builder for the settings used for calls to computeFindingsRefinementActivity. */ + public UnaryCallSettings.Builder< + ComputeFindingsRefinementActivityRequest, ComputeFindingsRefinementActivityResponse> + computeFindingsRefinementActivitySettings() { + return computeFindingsRefinementActivitySettings; + } + + /** + * Returns the builder for the settings used for calls to + * computeAllFindingsRefinementActivities. + */ + public UnaryCallSettings.Builder< + ComputeAllFindingsRefinementActivitiesRequest, + ComputeAllFindingsRefinementActivitiesResponse> + computeAllFindingsRefinementActivitiesSettings() { + return computeAllFindingsRefinementActivitiesSettings; + } + + @Override + public FindingsRefinementServiceStubSettings build() throws IOException { + return new FindingsRefinementServiceStubSettings(this); + } + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/GrpcFindingsRefinementServiceCallableFactory.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/GrpcFindingsRefinementServiceCallableFactory.java new file mode 100644 index 000000000000..5e290911cfd2 --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/GrpcFindingsRefinementServiceCallableFactory.java @@ -0,0 +1,113 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1.stub; + +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the FindingsRefinementService service API. + * + *

                This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class GrpcFindingsRefinementServiceCallableFactory 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-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/GrpcFindingsRefinementServiceStub.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/GrpcFindingsRefinementServiceStub.java new file mode 100644 index 000000000000..f7be6fe8b4b4 --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/GrpcFindingsRefinementServiceStub.java @@ -0,0 +1,574 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1.stub; + +import static com.google.cloud.chronicle.v1.FindingsRefinementServiceClient.ListAllFindingsRefinementDeploymentsPagedResponse; +import static com.google.cloud.chronicle.v1.FindingsRefinementServiceClient.ListFindingsRefinementsPagedResponse; + +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.chronicle.v1.ComputeAllFindingsRefinementActivitiesRequest; +import com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesResponse; +import com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityRequest; +import com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityResponse; +import com.google.cloud.chronicle.v1.CreateFindingsRefinementRequest; +import com.google.cloud.chronicle.v1.FindingsRefinement; +import com.google.cloud.chronicle.v1.FindingsRefinementDeployment; +import com.google.cloud.chronicle.v1.GetFindingsRefinementDeploymentRequest; +import com.google.cloud.chronicle.v1.GetFindingsRefinementRequest; +import com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsRequest; +import com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsResponse; +import com.google.cloud.chronicle.v1.ListFindingsRefinementsRequest; +import com.google.cloud.chronicle.v1.ListFindingsRefinementsResponse; +import com.google.cloud.chronicle.v1.UpdateFindingsRefinementDeploymentRequest; +import com.google.cloud.chronicle.v1.UpdateFindingsRefinementRequest; +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; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the FindingsRefinementService service API. + * + *

                This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class GrpcFindingsRefinementServiceStub extends FindingsRefinementServiceStub { + private static final MethodDescriptor + getFindingsRefinementMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.chronicle.v1.FindingsRefinementService/GetFindingsRefinement") + .setRequestMarshaller( + ProtoUtils.marshaller(GetFindingsRefinementRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(FindingsRefinement.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + ListFindingsRefinementsRequest, ListFindingsRefinementsResponse> + listFindingsRefinementsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.chronicle.v1.FindingsRefinementService/ListFindingsRefinements") + .setRequestMarshaller( + ProtoUtils.marshaller(ListFindingsRefinementsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListFindingsRefinementsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createFindingsRefinementMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.chronicle.v1.FindingsRefinementService/CreateFindingsRefinement") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateFindingsRefinementRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(FindingsRefinement.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateFindingsRefinementMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.chronicle.v1.FindingsRefinementService/UpdateFindingsRefinement") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateFindingsRefinementRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(FindingsRefinement.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + GetFindingsRefinementDeploymentRequest, FindingsRefinementDeployment> + getFindingsRefinementDeploymentMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.chronicle.v1.FindingsRefinementService/GetFindingsRefinementDeployment") + .setRequestMarshaller( + ProtoUtils.marshaller( + GetFindingsRefinementDeploymentRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(FindingsRefinementDeployment.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + UpdateFindingsRefinementDeploymentRequest, FindingsRefinementDeployment> + updateFindingsRefinementDeploymentMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.chronicle.v1.FindingsRefinementService/UpdateFindingsRefinementDeployment") + .setRequestMarshaller( + ProtoUtils.marshaller( + UpdateFindingsRefinementDeploymentRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(FindingsRefinementDeployment.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + ListAllFindingsRefinementDeploymentsRequest, ListAllFindingsRefinementDeploymentsResponse> + listAllFindingsRefinementDeploymentsMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.chronicle.v1.FindingsRefinementService/ListAllFindingsRefinementDeployments") + .setRequestMarshaller( + ProtoUtils.marshaller( + ListAllFindingsRefinementDeploymentsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller( + ListAllFindingsRefinementDeploymentsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + ComputeFindingsRefinementActivityRequest, ComputeFindingsRefinementActivityResponse> + computeFindingsRefinementActivityMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.chronicle.v1.FindingsRefinementService/ComputeFindingsRefinementActivity") + .setRequestMarshaller( + ProtoUtils.marshaller( + ComputeFindingsRefinementActivityRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller( + ComputeFindingsRefinementActivityResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + ComputeAllFindingsRefinementActivitiesRequest, + ComputeAllFindingsRefinementActivitiesResponse> + computeAllFindingsRefinementActivitiesMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.chronicle.v1.FindingsRefinementService/ComputeAllFindingsRefinementActivities") + .setRequestMarshaller( + ProtoUtils.marshaller( + ComputeAllFindingsRefinementActivitiesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller( + ComputeAllFindingsRefinementActivitiesResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private final UnaryCallable + getFindingsRefinementCallable; + private final UnaryCallable + listFindingsRefinementsCallable; + private final UnaryCallable + listFindingsRefinementsPagedCallable; + private final UnaryCallable + createFindingsRefinementCallable; + private final UnaryCallable + updateFindingsRefinementCallable; + private final UnaryCallable + getFindingsRefinementDeploymentCallable; + private final UnaryCallable< + UpdateFindingsRefinementDeploymentRequest, FindingsRefinementDeployment> + updateFindingsRefinementDeploymentCallable; + private final UnaryCallable< + ListAllFindingsRefinementDeploymentsRequest, ListAllFindingsRefinementDeploymentsResponse> + listAllFindingsRefinementDeploymentsCallable; + private final UnaryCallable< + ListAllFindingsRefinementDeploymentsRequest, + ListAllFindingsRefinementDeploymentsPagedResponse> + listAllFindingsRefinementDeploymentsPagedCallable; + private final UnaryCallable< + ComputeFindingsRefinementActivityRequest, ComputeFindingsRefinementActivityResponse> + computeFindingsRefinementActivityCallable; + private final UnaryCallable< + ComputeAllFindingsRefinementActivitiesRequest, + ComputeAllFindingsRefinementActivitiesResponse> + computeAllFindingsRefinementActivitiesCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcFindingsRefinementServiceStub create( + FindingsRefinementServiceStubSettings settings) throws IOException { + return new GrpcFindingsRefinementServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcFindingsRefinementServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcFindingsRefinementServiceStub( + FindingsRefinementServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcFindingsRefinementServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcFindingsRefinementServiceStub( + FindingsRefinementServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcFindingsRefinementServiceStub, 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 GrpcFindingsRefinementServiceStub( + FindingsRefinementServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcFindingsRefinementServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcFindingsRefinementServiceStub, 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 GrpcFindingsRefinementServiceStub( + FindingsRefinementServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings + getFindingsRefinementTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getFindingsRefinementMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + listFindingsRefinementsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listFindingsRefinementsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + createFindingsRefinementTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createFindingsRefinementMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + updateFindingsRefinementTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateFindingsRefinementMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "findings_refinement.name", + String.valueOf(request.getFindingsRefinement().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + getFindingsRefinementDeploymentTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(getFindingsRefinementDeploymentMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + updateFindingsRefinementDeploymentTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(updateFindingsRefinementDeploymentMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "findings_refinement_deployment.name", + String.valueOf(request.getFindingsRefinementDeployment().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings< + ListAllFindingsRefinementDeploymentsRequest, + ListAllFindingsRefinementDeploymentsResponse> + listAllFindingsRefinementDeploymentsTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(listAllFindingsRefinementDeploymentsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("instance", String.valueOf(request.getInstance())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getInstance()) + .build(); + GrpcCallSettings< + ComputeFindingsRefinementActivityRequest, ComputeFindingsRefinementActivityResponse> + computeFindingsRefinementActivityTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(computeFindingsRefinementActivityMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings< + ComputeAllFindingsRefinementActivitiesRequest, + ComputeAllFindingsRefinementActivitiesResponse> + computeAllFindingsRefinementActivitiesTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(computeAllFindingsRefinementActivitiesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("instance", String.valueOf(request.getInstance())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getInstance()) + .build(); + + this.getFindingsRefinementCallable = + callableFactory.createUnaryCallable( + getFindingsRefinementTransportSettings, + settings.getFindingsRefinementSettings(), + clientContext); + this.listFindingsRefinementsCallable = + callableFactory.createUnaryCallable( + listFindingsRefinementsTransportSettings, + settings.listFindingsRefinementsSettings(), + clientContext); + this.listFindingsRefinementsPagedCallable = + callableFactory.createPagedCallable( + listFindingsRefinementsTransportSettings, + settings.listFindingsRefinementsSettings(), + clientContext); + this.createFindingsRefinementCallable = + callableFactory.createUnaryCallable( + createFindingsRefinementTransportSettings, + settings.createFindingsRefinementSettings(), + clientContext); + this.updateFindingsRefinementCallable = + callableFactory.createUnaryCallable( + updateFindingsRefinementTransportSettings, + settings.updateFindingsRefinementSettings(), + clientContext); + this.getFindingsRefinementDeploymentCallable = + callableFactory.createUnaryCallable( + getFindingsRefinementDeploymentTransportSettings, + settings.getFindingsRefinementDeploymentSettings(), + clientContext); + this.updateFindingsRefinementDeploymentCallable = + callableFactory.createUnaryCallable( + updateFindingsRefinementDeploymentTransportSettings, + settings.updateFindingsRefinementDeploymentSettings(), + clientContext); + this.listAllFindingsRefinementDeploymentsCallable = + callableFactory.createUnaryCallable( + listAllFindingsRefinementDeploymentsTransportSettings, + settings.listAllFindingsRefinementDeploymentsSettings(), + clientContext); + this.listAllFindingsRefinementDeploymentsPagedCallable = + callableFactory.createPagedCallable( + listAllFindingsRefinementDeploymentsTransportSettings, + settings.listAllFindingsRefinementDeploymentsSettings(), + clientContext); + this.computeFindingsRefinementActivityCallable = + callableFactory.createUnaryCallable( + computeFindingsRefinementActivityTransportSettings, + settings.computeFindingsRefinementActivitySettings(), + clientContext); + this.computeAllFindingsRefinementActivitiesCallable = + callableFactory.createUnaryCallable( + computeAllFindingsRefinementActivitiesTransportSettings, + settings.computeAllFindingsRefinementActivitiesSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable + getFindingsRefinementCallable() { + return getFindingsRefinementCallable; + } + + @Override + public UnaryCallable + listFindingsRefinementsCallable() { + return listFindingsRefinementsCallable; + } + + @Override + public UnaryCallable + listFindingsRefinementsPagedCallable() { + return listFindingsRefinementsPagedCallable; + } + + @Override + public UnaryCallable + createFindingsRefinementCallable() { + return createFindingsRefinementCallable; + } + + @Override + public UnaryCallable + updateFindingsRefinementCallable() { + return updateFindingsRefinementCallable; + } + + @Override + public UnaryCallable + getFindingsRefinementDeploymentCallable() { + return getFindingsRefinementDeploymentCallable; + } + + @Override + public UnaryCallable + updateFindingsRefinementDeploymentCallable() { + return updateFindingsRefinementDeploymentCallable; + } + + @Override + public UnaryCallable< + ListAllFindingsRefinementDeploymentsRequest, ListAllFindingsRefinementDeploymentsResponse> + listAllFindingsRefinementDeploymentsCallable() { + return listAllFindingsRefinementDeploymentsCallable; + } + + @Override + public UnaryCallable< + ListAllFindingsRefinementDeploymentsRequest, + ListAllFindingsRefinementDeploymentsPagedResponse> + listAllFindingsRefinementDeploymentsPagedCallable() { + return listAllFindingsRefinementDeploymentsPagedCallable; + } + + @Override + public UnaryCallable< + ComputeFindingsRefinementActivityRequest, ComputeFindingsRefinementActivityResponse> + computeFindingsRefinementActivityCallable() { + return computeFindingsRefinementActivityCallable; + } + + @Override + public UnaryCallable< + ComputeAllFindingsRefinementActivitiesRequest, + ComputeAllFindingsRefinementActivitiesResponse> + computeAllFindingsRefinementActivitiesCallable() { + return computeAllFindingsRefinementActivitiesCallable; + } + + @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-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/HttpJsonFindingsRefinementServiceCallableFactory.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/HttpJsonFindingsRefinementServiceCallableFactory.java new file mode 100644 index 000000000000..0571e210b2e8 --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/HttpJsonFindingsRefinementServiceCallableFactory.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. + */ + +package com.google.cloud.chronicle.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; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the FindingsRefinementService service API. + * + *

                This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class HttpJsonFindingsRefinementServiceCallableFactory + 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-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/HttpJsonFindingsRefinementServiceStub.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/HttpJsonFindingsRefinementServiceStub.java new file mode 100644 index 000000000000..031665944d7f --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/HttpJsonFindingsRefinementServiceStub.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.chronicle.v1.stub; + +import static com.google.cloud.chronicle.v1.FindingsRefinementServiceClient.ListAllFindingsRefinementDeploymentsPagedResponse; +import static com.google.cloud.chronicle.v1.FindingsRefinementServiceClient.ListFindingsRefinementsPagedResponse; + +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.chronicle.v1.ComputeAllFindingsRefinementActivitiesRequest; +import com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesResponse; +import com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityRequest; +import com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityResponse; +import com.google.cloud.chronicle.v1.CreateFindingsRefinementRequest; +import com.google.cloud.chronicle.v1.FindingsRefinement; +import com.google.cloud.chronicle.v1.FindingsRefinementDeployment; +import com.google.cloud.chronicle.v1.GetFindingsRefinementDeploymentRequest; +import com.google.cloud.chronicle.v1.GetFindingsRefinementRequest; +import com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsRequest; +import com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsResponse; +import com.google.cloud.chronicle.v1.ListFindingsRefinementsRequest; +import com.google.cloud.chronicle.v1.ListFindingsRefinementsResponse; +import com.google.cloud.chronicle.v1.UpdateFindingsRefinementDeploymentRequest; +import com.google.cloud.chronicle.v1.UpdateFindingsRefinementRequest; +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; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the FindingsRefinementService service API. + * + *

                This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class HttpJsonFindingsRefinementServiceStub extends FindingsRefinementServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + getFindingsRefinementMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.chronicle.v1.FindingsRefinementService/GetFindingsRefinement") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/instances/*/findingsRefinements/*}", + 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(FindingsRefinement.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListFindingsRefinementsRequest, ListFindingsRefinementsResponse> + listFindingsRefinementsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.chronicle.v1.FindingsRefinementService/ListFindingsRefinements") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/instances/*}/findingsRefinements", + 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(ListFindingsRefinementsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createFindingsRefinementMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.chronicle.v1.FindingsRefinementService/CreateFindingsRefinement") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/instances/*}/findingsRefinements", + 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 -> + ProtoRestSerializer.create() + .toBody( + "findingsRefinement", request.getFindingsRefinement(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(FindingsRefinement.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateFindingsRefinementMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.chronicle.v1.FindingsRefinementService/UpdateFindingsRefinement") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{findingsRefinement.name=projects/*/locations/*/instances/*/findingsRefinements/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "findingsRefinement.name", + request.getFindingsRefinement().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( + "findingsRefinement", request.getFindingsRefinement(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(FindingsRefinement.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + GetFindingsRefinementDeploymentRequest, FindingsRefinementDeployment> + getFindingsRefinementDeploymentMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.chronicle.v1.FindingsRefinementService/GetFindingsRefinementDeployment") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/instances/*/findingsRefinements/*/deployment}", + 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(FindingsRefinementDeployment.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + UpdateFindingsRefinementDeploymentRequest, FindingsRefinementDeployment> + updateFindingsRefinementDeploymentMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.chronicle.v1.FindingsRefinementService/UpdateFindingsRefinementDeployment") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter + .newBuilder() + .setPath( + "/v1/{findingsRefinementDeployment.name=projects/*/locations/*/instances/*/findingsRefinements/*/deployment}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "findingsRefinementDeployment.name", + request.getFindingsRefinementDeployment().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( + "findingsRefinementDeployment", + request.getFindingsRefinementDeployment(), + true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(FindingsRefinementDeployment.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListAllFindingsRefinementDeploymentsRequest, ListAllFindingsRefinementDeploymentsResponse> + listAllFindingsRefinementDeploymentsMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.cloud.chronicle.v1.FindingsRefinementService/ListAllFindingsRefinementDeployments") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter + .newBuilder() + .setPath( + "/v1/{instance=projects/*/locations/*/instances/*}:listAllFindingsRefinementDeployments", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putPathParam(fields, "instance", request.getInstance()); + 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( + ListAllFindingsRefinementDeploymentsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ComputeFindingsRefinementActivityRequest, ComputeFindingsRefinementActivityResponse> + computeFindingsRefinementActivityMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.cloud.chronicle.v1.FindingsRefinementService/ComputeFindingsRefinementActivity") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter + .newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/instances/*/findingsRefinements/*}:computeFindingsRefinementActivity", + 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( + ComputeFindingsRefinementActivityResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ComputeAllFindingsRefinementActivitiesRequest, + ComputeAllFindingsRefinementActivitiesResponse> + computeAllFindingsRefinementActivitiesMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.cloud.chronicle.v1.FindingsRefinementService/ComputeAllFindingsRefinementActivities") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter + .newBuilder() + .setPath( + "/v1/{instance=projects/*/locations/*/instances/*}:computeAllFindingsRefinementActivities", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putPathParam(fields, "instance", request.getInstance()); + 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().clearInstance().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser + .newBuilder() + .setDefaultInstance( + ComputeAllFindingsRefinementActivitiesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable + getFindingsRefinementCallable; + private final UnaryCallable + listFindingsRefinementsCallable; + private final UnaryCallable + listFindingsRefinementsPagedCallable; + private final UnaryCallable + createFindingsRefinementCallable; + private final UnaryCallable + updateFindingsRefinementCallable; + private final UnaryCallable + getFindingsRefinementDeploymentCallable; + private final UnaryCallable< + UpdateFindingsRefinementDeploymentRequest, FindingsRefinementDeployment> + updateFindingsRefinementDeploymentCallable; + private final UnaryCallable< + ListAllFindingsRefinementDeploymentsRequest, ListAllFindingsRefinementDeploymentsResponse> + listAllFindingsRefinementDeploymentsCallable; + private final UnaryCallable< + ListAllFindingsRefinementDeploymentsRequest, + ListAllFindingsRefinementDeploymentsPagedResponse> + listAllFindingsRefinementDeploymentsPagedCallable; + private final UnaryCallable< + ComputeFindingsRefinementActivityRequest, ComputeFindingsRefinementActivityResponse> + computeFindingsRefinementActivityCallable; + private final UnaryCallable< + ComputeAllFindingsRefinementActivitiesRequest, + ComputeAllFindingsRefinementActivitiesResponse> + computeAllFindingsRefinementActivitiesCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonFindingsRefinementServiceStub create( + FindingsRefinementServiceStubSettings settings) throws IOException { + return new HttpJsonFindingsRefinementServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonFindingsRefinementServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonFindingsRefinementServiceStub( + FindingsRefinementServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonFindingsRefinementServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonFindingsRefinementServiceStub( + FindingsRefinementServiceStubSettings.newHttpJsonBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of HttpJsonFindingsRefinementServiceStub, 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 HttpJsonFindingsRefinementServiceStub( + FindingsRefinementServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonFindingsRefinementServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonFindingsRefinementServiceStub, 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 HttpJsonFindingsRefinementServiceStub( + FindingsRefinementServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings + getFindingsRefinementTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getFindingsRefinementMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + listFindingsRefinementsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listFindingsRefinementsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings + createFindingsRefinementTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createFindingsRefinementMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings + updateFindingsRefinementTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateFindingsRefinementMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "findings_refinement.name", + String.valueOf(request.getFindingsRefinement().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + getFindingsRefinementDeploymentTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(getFindingsRefinementDeploymentMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + updateFindingsRefinementDeploymentTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(updateFindingsRefinementDeploymentMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "findings_refinement_deployment.name", + String.valueOf(request.getFindingsRefinementDeployment().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings< + ListAllFindingsRefinementDeploymentsRequest, + ListAllFindingsRefinementDeploymentsResponse> + listAllFindingsRefinementDeploymentsTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(listAllFindingsRefinementDeploymentsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("instance", String.valueOf(request.getInstance())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getInstance()) + .build(); + HttpJsonCallSettings< + ComputeFindingsRefinementActivityRequest, ComputeFindingsRefinementActivityResponse> + computeFindingsRefinementActivityTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(computeFindingsRefinementActivityMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings< + ComputeAllFindingsRefinementActivitiesRequest, + ComputeAllFindingsRefinementActivitiesResponse> + computeAllFindingsRefinementActivitiesTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(computeAllFindingsRefinementActivitiesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("instance", String.valueOf(request.getInstance())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getInstance()) + .build(); + + this.getFindingsRefinementCallable = + callableFactory.createUnaryCallable( + getFindingsRefinementTransportSettings, + settings.getFindingsRefinementSettings(), + clientContext); + this.listFindingsRefinementsCallable = + callableFactory.createUnaryCallable( + listFindingsRefinementsTransportSettings, + settings.listFindingsRefinementsSettings(), + clientContext); + this.listFindingsRefinementsPagedCallable = + callableFactory.createPagedCallable( + listFindingsRefinementsTransportSettings, + settings.listFindingsRefinementsSettings(), + clientContext); + this.createFindingsRefinementCallable = + callableFactory.createUnaryCallable( + createFindingsRefinementTransportSettings, + settings.createFindingsRefinementSettings(), + clientContext); + this.updateFindingsRefinementCallable = + callableFactory.createUnaryCallable( + updateFindingsRefinementTransportSettings, + settings.updateFindingsRefinementSettings(), + clientContext); + this.getFindingsRefinementDeploymentCallable = + callableFactory.createUnaryCallable( + getFindingsRefinementDeploymentTransportSettings, + settings.getFindingsRefinementDeploymentSettings(), + clientContext); + this.updateFindingsRefinementDeploymentCallable = + callableFactory.createUnaryCallable( + updateFindingsRefinementDeploymentTransportSettings, + settings.updateFindingsRefinementDeploymentSettings(), + clientContext); + this.listAllFindingsRefinementDeploymentsCallable = + callableFactory.createUnaryCallable( + listAllFindingsRefinementDeploymentsTransportSettings, + settings.listAllFindingsRefinementDeploymentsSettings(), + clientContext); + this.listAllFindingsRefinementDeploymentsPagedCallable = + callableFactory.createPagedCallable( + listAllFindingsRefinementDeploymentsTransportSettings, + settings.listAllFindingsRefinementDeploymentsSettings(), + clientContext); + this.computeFindingsRefinementActivityCallable = + callableFactory.createUnaryCallable( + computeFindingsRefinementActivityTransportSettings, + settings.computeFindingsRefinementActivitySettings(), + clientContext); + this.computeAllFindingsRefinementActivitiesCallable = + callableFactory.createUnaryCallable( + computeAllFindingsRefinementActivitiesTransportSettings, + settings.computeAllFindingsRefinementActivitiesSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(getFindingsRefinementMethodDescriptor); + methodDescriptors.add(listFindingsRefinementsMethodDescriptor); + methodDescriptors.add(createFindingsRefinementMethodDescriptor); + methodDescriptors.add(updateFindingsRefinementMethodDescriptor); + methodDescriptors.add(getFindingsRefinementDeploymentMethodDescriptor); + methodDescriptors.add(updateFindingsRefinementDeploymentMethodDescriptor); + methodDescriptors.add(listAllFindingsRefinementDeploymentsMethodDescriptor); + methodDescriptors.add(computeFindingsRefinementActivityMethodDescriptor); + methodDescriptors.add(computeAllFindingsRefinementActivitiesMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable + getFindingsRefinementCallable() { + return getFindingsRefinementCallable; + } + + @Override + public UnaryCallable + listFindingsRefinementsCallable() { + return listFindingsRefinementsCallable; + } + + @Override + public UnaryCallable + listFindingsRefinementsPagedCallable() { + return listFindingsRefinementsPagedCallable; + } + + @Override + public UnaryCallable + createFindingsRefinementCallable() { + return createFindingsRefinementCallable; + } + + @Override + public UnaryCallable + updateFindingsRefinementCallable() { + return updateFindingsRefinementCallable; + } + + @Override + public UnaryCallable + getFindingsRefinementDeploymentCallable() { + return getFindingsRefinementDeploymentCallable; + } + + @Override + public UnaryCallable + updateFindingsRefinementDeploymentCallable() { + return updateFindingsRefinementDeploymentCallable; + } + + @Override + public UnaryCallable< + ListAllFindingsRefinementDeploymentsRequest, ListAllFindingsRefinementDeploymentsResponse> + listAllFindingsRefinementDeploymentsCallable() { + return listAllFindingsRefinementDeploymentsCallable; + } + + @Override + public UnaryCallable< + ListAllFindingsRefinementDeploymentsRequest, + ListAllFindingsRefinementDeploymentsPagedResponse> + listAllFindingsRefinementDeploymentsPagedCallable() { + return listAllFindingsRefinementDeploymentsPagedCallable; + } + + @Override + public UnaryCallable< + ComputeFindingsRefinementActivityRequest, ComputeFindingsRefinementActivityResponse> + computeFindingsRefinementActivityCallable() { + return computeFindingsRefinementActivityCallable; + } + + @Override + public UnaryCallable< + ComputeAllFindingsRefinementActivitiesRequest, + ComputeAllFindingsRefinementActivitiesResponse> + computeAllFindingsRefinementActivitiesCallable() { + return computeAllFindingsRefinementActivitiesCallable; + } + + @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-chronicle/google-cloud-chronicle/src/main/resources/META-INF/native-image/com.google.cloud.chronicle.v1/reflect-config.json b/java-chronicle/google-cloud-chronicle/src/main/resources/META-INF/native-image/com.google.cloud.chronicle.v1/reflect-config.json index e2501d49b07f..3ff6f480d102 100644 --- a/java-chronicle/google-cloud-chronicle/src/main/resources/META-INF/native-image/com.google.cloud.chronicle.v1/reflect-config.json +++ b/java-chronicle/google-cloud-chronicle/src/main/resources/META-INF/native-image/com.google.cloud.chronicle.v1/reflect-config.json @@ -908,6 +908,78 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.chronicle.v1.CreateDataAccessLabelRequest", "queryAllDeclaredConstructors": true, @@ -980,6 +1052,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.chronicle.v1.CreateFindingsRefinementRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.CreateFindingsRefinementRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.chronicle.v1.CreateNativeDashboardRequest", "queryAllDeclaredConstructors": true, @@ -2177,6 +2267,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.chronicle.v1.DetectionExclusionActivity", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DetectionExclusionActivity$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DetectionExclusionActivity$DetectionExclusionDetectorActivity", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DetectionExclusionActivity$DetectionExclusionDetectorActivity$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DetectionExclusionApplication", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DetectionExclusionApplication$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.chronicle.v1.DuplicateChartRequest", "queryAllDeclaredConstructors": true, @@ -2501,6 +2645,69 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.chronicle.v1.FindingsRefinement", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.FindingsRefinement$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.FindingsRefinementActivity", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.FindingsRefinementActivity$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.FindingsRefinementDeployment", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.FindingsRefinementDeployment$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.FindingsRefinementType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.chronicle.v1.GetBigQueryExportRequest", "queryAllDeclaredConstructors": true, @@ -2663,6 +2870,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.chronicle.v1.GetFindingsRefinementDeploymentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.GetFindingsRefinementDeploymentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.GetFindingsRefinementRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.GetFindingsRefinementRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.chronicle.v1.GetInstanceRequest", "queryAllDeclaredConstructors": true, @@ -3023,6 +3266,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.chronicle.v1.ListDataAccessLabelsRequest", "queryAllDeclaredConstructors": true, @@ -3203,6 +3482,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.chronicle.v1.ListFindingsRefinementsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.ListFindingsRefinementsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.ListFindingsRefinementsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.ListFindingsRefinementsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.chronicle.v1.ListNativeDashboardsRequest", "queryAllDeclaredConstructors": true, @@ -3599,6 +3914,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.chronicle.v1.OutcomeFilter", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.OutcomeFilter$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.OutcomeFilter$Operator", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.chronicle.v1.PlotMode", "queryAllDeclaredConstructors": true, @@ -4148,6 +4490,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.chronicle.v1.UpdateFindingsRefinementDeploymentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.UpdateFindingsRefinementDeploymentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.UpdateFindingsRefinementRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.UpdateFindingsRefinementRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.chronicle.v1.UpdateNativeDashboardRequest", "queryAllDeclaredConstructors": true, diff --git a/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/FindingsRefinementServiceClientHttpJsonTest.java b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/FindingsRefinementServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..0a26a7fa2548 --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/FindingsRefinementServiceClientHttpJsonTest.java @@ -0,0 +1,952 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1; + +import static com.google.cloud.chronicle.v1.FindingsRefinementServiceClient.ListAllFindingsRefinementDeploymentsPagedResponse; +import static com.google.cloud.chronicle.v1.FindingsRefinementServiceClient.ListFindingsRefinementsPagedResponse; + +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.chronicle.v1.stub.HttpJsonFindingsRefinementServiceStub; +import com.google.common.collect.Lists; +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; +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 FindingsRefinementServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static FindingsRefinementServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonFindingsRefinementServiceStub.getMethodDescriptors(), + FindingsRefinementServiceSettings.getDefaultEndpoint()); + FindingsRefinementServiceSettings settings = + FindingsRefinementServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + FindingsRefinementServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = FindingsRefinementServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void getFindingsRefinementTest() throws Exception { + FindingsRefinement expectedResponse = + FindingsRefinement.newBuilder() + .setName( + FindingsRefinementName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FINDINGS_REFINEMENT]") + .toString()) + .setDisplayName("displayName1714148973") + .setType(FindingsRefinementType.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setQuery("query107944136") + .addAllOutcomeFilters(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + FindingsRefinementName name = + FindingsRefinementName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FINDINGS_REFINEMENT]"); + + FindingsRefinement actualResponse = client.getFindingsRefinement(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 getFindingsRefinementExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + FindingsRefinementName name = + FindingsRefinementName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FINDINGS_REFINEMENT]"); + client.getFindingsRefinement(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getFindingsRefinementTest2() throws Exception { + FindingsRefinement expectedResponse = + FindingsRefinement.newBuilder() + .setName( + FindingsRefinementName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FINDINGS_REFINEMENT]") + .toString()) + .setDisplayName("displayName1714148973") + .setType(FindingsRefinementType.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setQuery("query107944136") + .addAllOutcomeFilters(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-7346/locations/location-7346/instances/instance-7346/findingsRefinements/findingsRefinement-7346"; + + FindingsRefinement actualResponse = client.getFindingsRefinement(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 getFindingsRefinementExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-7346/locations/location-7346/instances/instance-7346/findingsRefinements/findingsRefinement-7346"; + client.getFindingsRefinement(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listFindingsRefinementsTest() throws Exception { + FindingsRefinement responsesElement = FindingsRefinement.newBuilder().build(); + ListFindingsRefinementsResponse expectedResponse = + ListFindingsRefinementsResponse.newBuilder() + .setNextPageToken("") + .addAllFindingsRefinements(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + + ListFindingsRefinementsPagedResponse pagedListResponse = client.listFindingsRefinements(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getFindingsRefinementsList().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 listFindingsRefinementsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + client.listFindingsRefinements(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listFindingsRefinementsTest2() throws Exception { + FindingsRefinement responsesElement = FindingsRefinement.newBuilder().build(); + ListFindingsRefinementsResponse expectedResponse = + ListFindingsRefinementsResponse.newBuilder() + .setNextPageToken("") + .addAllFindingsRefinements(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5197/locations/location-5197/instances/instance-5197"; + + ListFindingsRefinementsPagedResponse pagedListResponse = client.listFindingsRefinements(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getFindingsRefinementsList().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 listFindingsRefinementsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5197/locations/location-5197/instances/instance-5197"; + client.listFindingsRefinements(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createFindingsRefinementTest() throws Exception { + FindingsRefinement expectedResponse = + FindingsRefinement.newBuilder() + .setName( + FindingsRefinementName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FINDINGS_REFINEMENT]") + .toString()) + .setDisplayName("displayName1714148973") + .setType(FindingsRefinementType.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setQuery("query107944136") + .addAllOutcomeFilters(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + FindingsRefinement findingsRefinement = FindingsRefinement.newBuilder().build(); + + FindingsRefinement actualResponse = client.createFindingsRefinement(parent, findingsRefinement); + 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 createFindingsRefinementExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + FindingsRefinement findingsRefinement = FindingsRefinement.newBuilder().build(); + client.createFindingsRefinement(parent, findingsRefinement); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createFindingsRefinementTest2() throws Exception { + FindingsRefinement expectedResponse = + FindingsRefinement.newBuilder() + .setName( + FindingsRefinementName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FINDINGS_REFINEMENT]") + .toString()) + .setDisplayName("displayName1714148973") + .setType(FindingsRefinementType.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setQuery("query107944136") + .addAllOutcomeFilters(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5197/locations/location-5197/instances/instance-5197"; + FindingsRefinement findingsRefinement = FindingsRefinement.newBuilder().build(); + + FindingsRefinement actualResponse = client.createFindingsRefinement(parent, findingsRefinement); + 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 createFindingsRefinementExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5197/locations/location-5197/instances/instance-5197"; + FindingsRefinement findingsRefinement = FindingsRefinement.newBuilder().build(); + client.createFindingsRefinement(parent, findingsRefinement); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateFindingsRefinementTest() throws Exception { + FindingsRefinement expectedResponse = + FindingsRefinement.newBuilder() + .setName( + FindingsRefinementName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FINDINGS_REFINEMENT]") + .toString()) + .setDisplayName("displayName1714148973") + .setType(FindingsRefinementType.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setQuery("query107944136") + .addAllOutcomeFilters(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + FindingsRefinement findingsRefinement = + FindingsRefinement.newBuilder() + .setName( + FindingsRefinementName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FINDINGS_REFINEMENT]") + .toString()) + .setDisplayName("displayName1714148973") + .setType(FindingsRefinementType.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setQuery("query107944136") + .addAllOutcomeFilters(new ArrayList()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + FindingsRefinement actualResponse = + client.updateFindingsRefinement(findingsRefinement, 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 updateFindingsRefinementExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + FindingsRefinement findingsRefinement = + FindingsRefinement.newBuilder() + .setName( + FindingsRefinementName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FINDINGS_REFINEMENT]") + .toString()) + .setDisplayName("displayName1714148973") + .setType(FindingsRefinementType.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setQuery("query107944136") + .addAllOutcomeFilters(new ArrayList()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateFindingsRefinement(findingsRefinement, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getFindingsRefinementDeploymentTest() throws Exception { + FindingsRefinementDeployment expectedResponse = + FindingsRefinementDeployment.newBuilder() + .setName( + FindingsRefinementDeploymentName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FINDINGS_REFINEMENT]") + .toString()) + .setEnabled(true) + .setArchived(true) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + FindingsRefinementDeploymentName name = + FindingsRefinementDeploymentName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FINDINGS_REFINEMENT]"); + + FindingsRefinementDeployment actualResponse = client.getFindingsRefinementDeployment(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 getFindingsRefinementDeploymentExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + FindingsRefinementDeploymentName name = + FindingsRefinementDeploymentName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FINDINGS_REFINEMENT]"); + client.getFindingsRefinementDeployment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getFindingsRefinementDeploymentTest2() throws Exception { + FindingsRefinementDeployment expectedResponse = + FindingsRefinementDeployment.newBuilder() + .setName( + FindingsRefinementDeploymentName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FINDINGS_REFINEMENT]") + .toString()) + .setEnabled(true) + .setArchived(true) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-2806/locations/location-2806/instances/instance-2806/findingsRefinements/findingsRefinement-2806/deployment"; + + FindingsRefinementDeployment actualResponse = client.getFindingsRefinementDeployment(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 getFindingsRefinementDeploymentExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-2806/locations/location-2806/instances/instance-2806/findingsRefinements/findingsRefinement-2806/deployment"; + client.getFindingsRefinementDeployment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateFindingsRefinementDeploymentTest() throws Exception { + FindingsRefinementDeployment expectedResponse = + FindingsRefinementDeployment.newBuilder() + .setName( + FindingsRefinementDeploymentName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FINDINGS_REFINEMENT]") + .toString()) + .setEnabled(true) + .setArchived(true) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + FindingsRefinementDeployment findingsRefinementDeployment = + FindingsRefinementDeployment.newBuilder() + .setName( + FindingsRefinementDeploymentName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FINDINGS_REFINEMENT]") + .toString()) + .setEnabled(true) + .setArchived(true) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + FindingsRefinementDeployment actualResponse = + client.updateFindingsRefinementDeployment(findingsRefinementDeployment, 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 updateFindingsRefinementDeploymentExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + FindingsRefinementDeployment findingsRefinementDeployment = + FindingsRefinementDeployment.newBuilder() + .setName( + FindingsRefinementDeploymentName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FINDINGS_REFINEMENT]") + .toString()) + .setEnabled(true) + .setArchived(true) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateFindingsRefinementDeployment(findingsRefinementDeployment, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAllFindingsRefinementDeploymentsTest() throws Exception { + FindingsRefinementDeployment responsesElement = + FindingsRefinementDeployment.newBuilder().build(); + ListAllFindingsRefinementDeploymentsResponse expectedResponse = + ListAllFindingsRefinementDeploymentsResponse.newBuilder() + .setNextPageToken("") + .addAllAllFindingsRefinementDeployments(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + InstanceName instance = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + + ListAllFindingsRefinementDeploymentsPagedResponse pagedListResponse = + client.listAllFindingsRefinementDeployments(instance); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getAllFindingsRefinementDeploymentsList().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 listAllFindingsRefinementDeploymentsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + InstanceName instance = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + client.listAllFindingsRefinementDeployments(instance); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAllFindingsRefinementDeploymentsTest2() throws Exception { + FindingsRefinementDeployment responsesElement = + FindingsRefinementDeployment.newBuilder().build(); + ListAllFindingsRefinementDeploymentsResponse expectedResponse = + ListAllFindingsRefinementDeploymentsResponse.newBuilder() + .setNextPageToken("") + .addAllAllFindingsRefinementDeployments(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String instance = "projects/project-2526/locations/location-2526/instances/instance-2526"; + + ListAllFindingsRefinementDeploymentsPagedResponse pagedListResponse = + client.listAllFindingsRefinementDeployments(instance); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getAllFindingsRefinementDeploymentsList().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 listAllFindingsRefinementDeploymentsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String instance = "projects/project-2526/locations/location-2526/instances/instance-2526"; + client.listAllFindingsRefinementDeployments(instance); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void computeFindingsRefinementActivityTest() throws Exception { + ComputeFindingsRefinementActivityResponse expectedResponse = + ComputeFindingsRefinementActivityResponse.newBuilder() + .setActivity(FindingsRefinementActivity.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + FindingsRefinementName name = + FindingsRefinementName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FINDINGS_REFINEMENT]"); + + ComputeFindingsRefinementActivityResponse actualResponse = + client.computeFindingsRefinementActivity(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 computeFindingsRefinementActivityExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + FindingsRefinementName name = + FindingsRefinementName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FINDINGS_REFINEMENT]"); + client.computeFindingsRefinementActivity(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void computeFindingsRefinementActivityTest2() throws Exception { + ComputeFindingsRefinementActivityResponse expectedResponse = + ComputeFindingsRefinementActivityResponse.newBuilder() + .setActivity(FindingsRefinementActivity.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-7346/locations/location-7346/instances/instance-7346/findingsRefinements/findingsRefinement-7346"; + + ComputeFindingsRefinementActivityResponse actualResponse = + client.computeFindingsRefinementActivity(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 computeFindingsRefinementActivityExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-7346/locations/location-7346/instances/instance-7346/findingsRefinements/findingsRefinement-7346"; + client.computeFindingsRefinementActivity(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void computeAllFindingsRefinementActivitiesTest() throws Exception { + ComputeAllFindingsRefinementActivitiesResponse expectedResponse = + ComputeAllFindingsRefinementActivitiesResponse.newBuilder() + .addAllActivities(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + InstanceName instance = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + + ComputeAllFindingsRefinementActivitiesResponse actualResponse = + client.computeAllFindingsRefinementActivities(instance); + 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 computeAllFindingsRefinementActivitiesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + InstanceName instance = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + client.computeAllFindingsRefinementActivities(instance); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void computeAllFindingsRefinementActivitiesTest2() throws Exception { + ComputeAllFindingsRefinementActivitiesResponse expectedResponse = + ComputeAllFindingsRefinementActivitiesResponse.newBuilder() + .addAllActivities(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String instance = "projects/project-2526/locations/location-2526/instances/instance-2526"; + + ComputeAllFindingsRefinementActivitiesResponse actualResponse = + client.computeAllFindingsRefinementActivities(instance); + 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 computeAllFindingsRefinementActivitiesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String instance = "projects/project-2526/locations/location-2526/instances/instance-2526"; + client.computeAllFindingsRefinementActivities(instance); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/FindingsRefinementServiceClientTest.java b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/FindingsRefinementServiceClientTest.java new file mode 100644 index 000000000000..4bc5f27098dc --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/FindingsRefinementServiceClientTest.java @@ -0,0 +1,835 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1; + +import static com.google.cloud.chronicle.v1.FindingsRefinementServiceClient.ListAllFindingsRefinementDeploymentsPagedResponse; +import static com.google.cloud.chronicle.v1.FindingsRefinementServiceClient.ListFindingsRefinementsPagedResponse; + +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 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 FindingsRefinementServiceClientTest { + private static MockFindingsRefinementService mockFindingsRefinementService; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private FindingsRefinementServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockFindingsRefinementService = new MockFindingsRefinementService(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockFindingsRefinementService)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + FindingsRefinementServiceSettings settings = + FindingsRefinementServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = FindingsRefinementServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void getFindingsRefinementTest() throws Exception { + FindingsRefinement expectedResponse = + FindingsRefinement.newBuilder() + .setName( + FindingsRefinementName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FINDINGS_REFINEMENT]") + .toString()) + .setDisplayName("displayName1714148973") + .setType(FindingsRefinementType.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setQuery("query107944136") + .addAllOutcomeFilters(new ArrayList()) + .build(); + mockFindingsRefinementService.addResponse(expectedResponse); + + FindingsRefinementName name = + FindingsRefinementName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FINDINGS_REFINEMENT]"); + + FindingsRefinement actualResponse = client.getFindingsRefinement(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFindingsRefinementService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetFindingsRefinementRequest actualRequest = + ((GetFindingsRefinementRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getFindingsRefinementExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFindingsRefinementService.addException(exception); + + try { + FindingsRefinementName name = + FindingsRefinementName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FINDINGS_REFINEMENT]"); + client.getFindingsRefinement(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getFindingsRefinementTest2() throws Exception { + FindingsRefinement expectedResponse = + FindingsRefinement.newBuilder() + .setName( + FindingsRefinementName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FINDINGS_REFINEMENT]") + .toString()) + .setDisplayName("displayName1714148973") + .setType(FindingsRefinementType.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setQuery("query107944136") + .addAllOutcomeFilters(new ArrayList()) + .build(); + mockFindingsRefinementService.addResponse(expectedResponse); + + String name = "name3373707"; + + FindingsRefinement actualResponse = client.getFindingsRefinement(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFindingsRefinementService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetFindingsRefinementRequest actualRequest = + ((GetFindingsRefinementRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getFindingsRefinementExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFindingsRefinementService.addException(exception); + + try { + String name = "name3373707"; + client.getFindingsRefinement(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listFindingsRefinementsTest() throws Exception { + FindingsRefinement responsesElement = FindingsRefinement.newBuilder().build(); + ListFindingsRefinementsResponse expectedResponse = + ListFindingsRefinementsResponse.newBuilder() + .setNextPageToken("") + .addAllFindingsRefinements(Arrays.asList(responsesElement)) + .build(); + mockFindingsRefinementService.addResponse(expectedResponse); + + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + + ListFindingsRefinementsPagedResponse pagedListResponse = client.listFindingsRefinements(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getFindingsRefinementsList().get(0), resources.get(0)); + + List actualRequests = mockFindingsRefinementService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListFindingsRefinementsRequest actualRequest = + ((ListFindingsRefinementsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listFindingsRefinementsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFindingsRefinementService.addException(exception); + + try { + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + client.listFindingsRefinements(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listFindingsRefinementsTest2() throws Exception { + FindingsRefinement responsesElement = FindingsRefinement.newBuilder().build(); + ListFindingsRefinementsResponse expectedResponse = + ListFindingsRefinementsResponse.newBuilder() + .setNextPageToken("") + .addAllFindingsRefinements(Arrays.asList(responsesElement)) + .build(); + mockFindingsRefinementService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListFindingsRefinementsPagedResponse pagedListResponse = client.listFindingsRefinements(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getFindingsRefinementsList().get(0), resources.get(0)); + + List actualRequests = mockFindingsRefinementService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListFindingsRefinementsRequest actualRequest = + ((ListFindingsRefinementsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listFindingsRefinementsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFindingsRefinementService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listFindingsRefinements(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createFindingsRefinementTest() throws Exception { + FindingsRefinement expectedResponse = + FindingsRefinement.newBuilder() + .setName( + FindingsRefinementName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FINDINGS_REFINEMENT]") + .toString()) + .setDisplayName("displayName1714148973") + .setType(FindingsRefinementType.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setQuery("query107944136") + .addAllOutcomeFilters(new ArrayList()) + .build(); + mockFindingsRefinementService.addResponse(expectedResponse); + + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + FindingsRefinement findingsRefinement = FindingsRefinement.newBuilder().build(); + + FindingsRefinement actualResponse = client.createFindingsRefinement(parent, findingsRefinement); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFindingsRefinementService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateFindingsRefinementRequest actualRequest = + ((CreateFindingsRefinementRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(findingsRefinement, actualRequest.getFindingsRefinement()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createFindingsRefinementExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFindingsRefinementService.addException(exception); + + try { + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + FindingsRefinement findingsRefinement = FindingsRefinement.newBuilder().build(); + client.createFindingsRefinement(parent, findingsRefinement); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createFindingsRefinementTest2() throws Exception { + FindingsRefinement expectedResponse = + FindingsRefinement.newBuilder() + .setName( + FindingsRefinementName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FINDINGS_REFINEMENT]") + .toString()) + .setDisplayName("displayName1714148973") + .setType(FindingsRefinementType.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setQuery("query107944136") + .addAllOutcomeFilters(new ArrayList()) + .build(); + mockFindingsRefinementService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + FindingsRefinement findingsRefinement = FindingsRefinement.newBuilder().build(); + + FindingsRefinement actualResponse = client.createFindingsRefinement(parent, findingsRefinement); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFindingsRefinementService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateFindingsRefinementRequest actualRequest = + ((CreateFindingsRefinementRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(findingsRefinement, actualRequest.getFindingsRefinement()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createFindingsRefinementExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFindingsRefinementService.addException(exception); + + try { + String parent = "parent-995424086"; + FindingsRefinement findingsRefinement = FindingsRefinement.newBuilder().build(); + client.createFindingsRefinement(parent, findingsRefinement); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateFindingsRefinementTest() throws Exception { + FindingsRefinement expectedResponse = + FindingsRefinement.newBuilder() + .setName( + FindingsRefinementName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FINDINGS_REFINEMENT]") + .toString()) + .setDisplayName("displayName1714148973") + .setType(FindingsRefinementType.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setQuery("query107944136") + .addAllOutcomeFilters(new ArrayList()) + .build(); + mockFindingsRefinementService.addResponse(expectedResponse); + + FindingsRefinement findingsRefinement = FindingsRefinement.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + FindingsRefinement actualResponse = + client.updateFindingsRefinement(findingsRefinement, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFindingsRefinementService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateFindingsRefinementRequest actualRequest = + ((UpdateFindingsRefinementRequest) actualRequests.get(0)); + + Assert.assertEquals(findingsRefinement, actualRequest.getFindingsRefinement()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateFindingsRefinementExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFindingsRefinementService.addException(exception); + + try { + FindingsRefinement findingsRefinement = FindingsRefinement.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateFindingsRefinement(findingsRefinement, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getFindingsRefinementDeploymentTest() throws Exception { + FindingsRefinementDeployment expectedResponse = + FindingsRefinementDeployment.newBuilder() + .setName( + FindingsRefinementDeploymentName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FINDINGS_REFINEMENT]") + .toString()) + .setEnabled(true) + .setArchived(true) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockFindingsRefinementService.addResponse(expectedResponse); + + FindingsRefinementDeploymentName name = + FindingsRefinementDeploymentName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FINDINGS_REFINEMENT]"); + + FindingsRefinementDeployment actualResponse = client.getFindingsRefinementDeployment(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFindingsRefinementService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetFindingsRefinementDeploymentRequest actualRequest = + ((GetFindingsRefinementDeploymentRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getFindingsRefinementDeploymentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFindingsRefinementService.addException(exception); + + try { + FindingsRefinementDeploymentName name = + FindingsRefinementDeploymentName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FINDINGS_REFINEMENT]"); + client.getFindingsRefinementDeployment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getFindingsRefinementDeploymentTest2() throws Exception { + FindingsRefinementDeployment expectedResponse = + FindingsRefinementDeployment.newBuilder() + .setName( + FindingsRefinementDeploymentName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FINDINGS_REFINEMENT]") + .toString()) + .setEnabled(true) + .setArchived(true) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockFindingsRefinementService.addResponse(expectedResponse); + + String name = "name3373707"; + + FindingsRefinementDeployment actualResponse = client.getFindingsRefinementDeployment(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFindingsRefinementService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetFindingsRefinementDeploymentRequest actualRequest = + ((GetFindingsRefinementDeploymentRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getFindingsRefinementDeploymentExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFindingsRefinementService.addException(exception); + + try { + String name = "name3373707"; + client.getFindingsRefinementDeployment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateFindingsRefinementDeploymentTest() throws Exception { + FindingsRefinementDeployment expectedResponse = + FindingsRefinementDeployment.newBuilder() + .setName( + FindingsRefinementDeploymentName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FINDINGS_REFINEMENT]") + .toString()) + .setEnabled(true) + .setArchived(true) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockFindingsRefinementService.addResponse(expectedResponse); + + FindingsRefinementDeployment findingsRefinementDeployment = + FindingsRefinementDeployment.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + FindingsRefinementDeployment actualResponse = + client.updateFindingsRefinementDeployment(findingsRefinementDeployment, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFindingsRefinementService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateFindingsRefinementDeploymentRequest actualRequest = + ((UpdateFindingsRefinementDeploymentRequest) actualRequests.get(0)); + + Assert.assertEquals( + findingsRefinementDeployment, actualRequest.getFindingsRefinementDeployment()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateFindingsRefinementDeploymentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFindingsRefinementService.addException(exception); + + try { + FindingsRefinementDeployment findingsRefinementDeployment = + FindingsRefinementDeployment.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateFindingsRefinementDeployment(findingsRefinementDeployment, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAllFindingsRefinementDeploymentsTest() throws Exception { + FindingsRefinementDeployment responsesElement = + FindingsRefinementDeployment.newBuilder().build(); + ListAllFindingsRefinementDeploymentsResponse expectedResponse = + ListAllFindingsRefinementDeploymentsResponse.newBuilder() + .setNextPageToken("") + .addAllAllFindingsRefinementDeployments(Arrays.asList(responsesElement)) + .build(); + mockFindingsRefinementService.addResponse(expectedResponse); + + InstanceName instance = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + + ListAllFindingsRefinementDeploymentsPagedResponse pagedListResponse = + client.listAllFindingsRefinementDeployments(instance); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getAllFindingsRefinementDeploymentsList().get(0), resources.get(0)); + + List actualRequests = mockFindingsRefinementService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAllFindingsRefinementDeploymentsRequest actualRequest = + ((ListAllFindingsRefinementDeploymentsRequest) actualRequests.get(0)); + + Assert.assertEquals(instance.toString(), actualRequest.getInstance()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAllFindingsRefinementDeploymentsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFindingsRefinementService.addException(exception); + + try { + InstanceName instance = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + client.listAllFindingsRefinementDeployments(instance); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAllFindingsRefinementDeploymentsTest2() throws Exception { + FindingsRefinementDeployment responsesElement = + FindingsRefinementDeployment.newBuilder().build(); + ListAllFindingsRefinementDeploymentsResponse expectedResponse = + ListAllFindingsRefinementDeploymentsResponse.newBuilder() + .setNextPageToken("") + .addAllAllFindingsRefinementDeployments(Arrays.asList(responsesElement)) + .build(); + mockFindingsRefinementService.addResponse(expectedResponse); + + String instance = "instance555127957"; + + ListAllFindingsRefinementDeploymentsPagedResponse pagedListResponse = + client.listAllFindingsRefinementDeployments(instance); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getAllFindingsRefinementDeploymentsList().get(0), resources.get(0)); + + List actualRequests = mockFindingsRefinementService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAllFindingsRefinementDeploymentsRequest actualRequest = + ((ListAllFindingsRefinementDeploymentsRequest) actualRequests.get(0)); + + Assert.assertEquals(instance, actualRequest.getInstance()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAllFindingsRefinementDeploymentsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFindingsRefinementService.addException(exception); + + try { + String instance = "instance555127957"; + client.listAllFindingsRefinementDeployments(instance); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void computeFindingsRefinementActivityTest() throws Exception { + ComputeFindingsRefinementActivityResponse expectedResponse = + ComputeFindingsRefinementActivityResponse.newBuilder() + .setActivity(FindingsRefinementActivity.newBuilder().build()) + .build(); + mockFindingsRefinementService.addResponse(expectedResponse); + + FindingsRefinementName name = + FindingsRefinementName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FINDINGS_REFINEMENT]"); + + ComputeFindingsRefinementActivityResponse actualResponse = + client.computeFindingsRefinementActivity(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFindingsRefinementService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ComputeFindingsRefinementActivityRequest actualRequest = + ((ComputeFindingsRefinementActivityRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void computeFindingsRefinementActivityExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFindingsRefinementService.addException(exception); + + try { + FindingsRefinementName name = + FindingsRefinementName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FINDINGS_REFINEMENT]"); + client.computeFindingsRefinementActivity(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void computeFindingsRefinementActivityTest2() throws Exception { + ComputeFindingsRefinementActivityResponse expectedResponse = + ComputeFindingsRefinementActivityResponse.newBuilder() + .setActivity(FindingsRefinementActivity.newBuilder().build()) + .build(); + mockFindingsRefinementService.addResponse(expectedResponse); + + String name = "name3373707"; + + ComputeFindingsRefinementActivityResponse actualResponse = + client.computeFindingsRefinementActivity(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFindingsRefinementService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ComputeFindingsRefinementActivityRequest actualRequest = + ((ComputeFindingsRefinementActivityRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void computeFindingsRefinementActivityExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFindingsRefinementService.addException(exception); + + try { + String name = "name3373707"; + client.computeFindingsRefinementActivity(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void computeAllFindingsRefinementActivitiesTest() throws Exception { + ComputeAllFindingsRefinementActivitiesResponse expectedResponse = + ComputeAllFindingsRefinementActivitiesResponse.newBuilder() + .addAllActivities(new ArrayList()) + .build(); + mockFindingsRefinementService.addResponse(expectedResponse); + + InstanceName instance = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + + ComputeAllFindingsRefinementActivitiesResponse actualResponse = + client.computeAllFindingsRefinementActivities(instance); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFindingsRefinementService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ComputeAllFindingsRefinementActivitiesRequest actualRequest = + ((ComputeAllFindingsRefinementActivitiesRequest) actualRequests.get(0)); + + Assert.assertEquals(instance.toString(), actualRequest.getInstance()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void computeAllFindingsRefinementActivitiesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFindingsRefinementService.addException(exception); + + try { + InstanceName instance = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + client.computeAllFindingsRefinementActivities(instance); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void computeAllFindingsRefinementActivitiesTest2() throws Exception { + ComputeAllFindingsRefinementActivitiesResponse expectedResponse = + ComputeAllFindingsRefinementActivitiesResponse.newBuilder() + .addAllActivities(new ArrayList()) + .build(); + mockFindingsRefinementService.addResponse(expectedResponse); + + String instance = "instance555127957"; + + ComputeAllFindingsRefinementActivitiesResponse actualResponse = + client.computeAllFindingsRefinementActivities(instance); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFindingsRefinementService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ComputeAllFindingsRefinementActivitiesRequest actualRequest = + ((ComputeAllFindingsRefinementActivitiesRequest) actualRequests.get(0)); + + Assert.assertEquals(instance, actualRequest.getInstance()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void computeAllFindingsRefinementActivitiesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFindingsRefinementService.addException(exception); + + try { + String instance = "instance555127957"; + client.computeAllFindingsRefinementActivities(instance); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/MockFindingsRefinementService.java b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/MockFindingsRefinementService.java new file mode 100644 index 000000000000..a931cb049a42 --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/MockFindingsRefinementService.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.chronicle.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 MockFindingsRefinementService implements MockGrpcService { + private final MockFindingsRefinementServiceImpl serviceImpl; + + public MockFindingsRefinementService() { + serviceImpl = new MockFindingsRefinementServiceImpl(); + } + + @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-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/MockFindingsRefinementServiceImpl.java b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/MockFindingsRefinementServiceImpl.java new file mode 100644 index 000000000000..c071b4567cb4 --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/MockFindingsRefinementServiceImpl.java @@ -0,0 +1,266 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.chronicle.v1.FindingsRefinementServiceGrpc.FindingsRefinementServiceImplBase; +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 MockFindingsRefinementServiceImpl extends FindingsRefinementServiceImplBase { + private List requests; + private Queue responses; + + public MockFindingsRefinementServiceImpl() { + 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 getFindingsRefinement( + GetFindingsRefinementRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof FindingsRefinement) { + requests.add(request); + responseObserver.onNext(((FindingsRefinement) 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 GetFindingsRefinement, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + FindingsRefinement.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listFindingsRefinements( + ListFindingsRefinementsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListFindingsRefinementsResponse) { + requests.add(request); + responseObserver.onNext(((ListFindingsRefinementsResponse) 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 ListFindingsRefinements, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + ListFindingsRefinementsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createFindingsRefinement( + CreateFindingsRefinementRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof FindingsRefinement) { + requests.add(request); + responseObserver.onNext(((FindingsRefinement) 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 CreateFindingsRefinement, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + FindingsRefinement.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateFindingsRefinement( + UpdateFindingsRefinementRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof FindingsRefinement) { + requests.add(request); + responseObserver.onNext(((FindingsRefinement) 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 UpdateFindingsRefinement, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + FindingsRefinement.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getFindingsRefinementDeployment( + GetFindingsRefinementDeploymentRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof FindingsRefinementDeployment) { + requests.add(request); + responseObserver.onNext(((FindingsRefinementDeployment) 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 GetFindingsRefinementDeployment," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + FindingsRefinementDeployment.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateFindingsRefinementDeployment( + UpdateFindingsRefinementDeploymentRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof FindingsRefinementDeployment) { + requests.add(request); + responseObserver.onNext(((FindingsRefinementDeployment) 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 UpdateFindingsRefinementDeployment," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + FindingsRefinementDeployment.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listAllFindingsRefinementDeployments( + ListAllFindingsRefinementDeploymentsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListAllFindingsRefinementDeploymentsResponse) { + requests.add(request); + responseObserver.onNext(((ListAllFindingsRefinementDeploymentsResponse) 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 ListAllFindingsRefinementDeployments," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListAllFindingsRefinementDeploymentsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void computeFindingsRefinementActivity( + ComputeFindingsRefinementActivityRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ComputeFindingsRefinementActivityResponse) { + requests.add(request); + responseObserver.onNext(((ComputeFindingsRefinementActivityResponse) 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 ComputeFindingsRefinementActivity," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ComputeFindingsRefinementActivityResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void computeAllFindingsRefinementActivities( + ComputeAllFindingsRefinementActivitiesRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ComputeAllFindingsRefinementActivitiesResponse) { + requests.add(request); + responseObserver.onNext(((ComputeAllFindingsRefinementActivitiesResponse) 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 ComputeAllFindingsRefinementActivities," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ComputeAllFindingsRefinementActivitiesResponse.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-chronicle/grpc-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/FindingsRefinementServiceGrpc.java b/java-chronicle/grpc-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/FindingsRefinementServiceGrpc.java new file mode 100644 index 000000000000..423bd65f6181 --- /dev/null +++ b/java-chronicle/grpc-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/FindingsRefinementServiceGrpc.java @@ -0,0 +1,1631 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.chronicle.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
                + * FindingsRefinementService provides an interface for filtering out
                + * findings that are unlikely to be real threats to prevent them
                + * from triggering alerts or notifications.
                + * 
                + */ +@io.grpc.stub.annotations.GrpcGenerated +public final class FindingsRefinementServiceGrpc { + + private FindingsRefinementServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.chronicle.v1.FindingsRefinementService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.GetFindingsRefinementRequest, + com.google.cloud.chronicle.v1.FindingsRefinement> + getGetFindingsRefinementMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetFindingsRefinement", + requestType = com.google.cloud.chronicle.v1.GetFindingsRefinementRequest.class, + responseType = com.google.cloud.chronicle.v1.FindingsRefinement.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.GetFindingsRefinementRequest, + com.google.cloud.chronicle.v1.FindingsRefinement> + getGetFindingsRefinementMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.GetFindingsRefinementRequest, + com.google.cloud.chronicle.v1.FindingsRefinement> + getGetFindingsRefinementMethod; + if ((getGetFindingsRefinementMethod = + FindingsRefinementServiceGrpc.getGetFindingsRefinementMethod) + == null) { + synchronized (FindingsRefinementServiceGrpc.class) { + if ((getGetFindingsRefinementMethod = + FindingsRefinementServiceGrpc.getGetFindingsRefinementMethod) + == null) { + FindingsRefinementServiceGrpc.getGetFindingsRefinementMethod = + getGetFindingsRefinementMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetFindingsRefinement")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.GetFindingsRefinementRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.FindingsRefinement + .getDefaultInstance())) + .setSchemaDescriptor( + new FindingsRefinementServiceMethodDescriptorSupplier( + "GetFindingsRefinement")) + .build(); + } + } + } + return getGetFindingsRefinementMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.ListFindingsRefinementsRequest, + com.google.cloud.chronicle.v1.ListFindingsRefinementsResponse> + getListFindingsRefinementsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListFindingsRefinements", + requestType = com.google.cloud.chronicle.v1.ListFindingsRefinementsRequest.class, + responseType = com.google.cloud.chronicle.v1.ListFindingsRefinementsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.ListFindingsRefinementsRequest, + com.google.cloud.chronicle.v1.ListFindingsRefinementsResponse> + getListFindingsRefinementsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.ListFindingsRefinementsRequest, + com.google.cloud.chronicle.v1.ListFindingsRefinementsResponse> + getListFindingsRefinementsMethod; + if ((getListFindingsRefinementsMethod = + FindingsRefinementServiceGrpc.getListFindingsRefinementsMethod) + == null) { + synchronized (FindingsRefinementServiceGrpc.class) { + if ((getListFindingsRefinementsMethod = + FindingsRefinementServiceGrpc.getListFindingsRefinementsMethod) + == null) { + FindingsRefinementServiceGrpc.getListFindingsRefinementsMethod = + getListFindingsRefinementsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListFindingsRefinements")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.ListFindingsRefinementsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.ListFindingsRefinementsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new FindingsRefinementServiceMethodDescriptorSupplier( + "ListFindingsRefinements")) + .build(); + } + } + } + return getListFindingsRefinementsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.CreateFindingsRefinementRequest, + com.google.cloud.chronicle.v1.FindingsRefinement> + getCreateFindingsRefinementMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateFindingsRefinement", + requestType = com.google.cloud.chronicle.v1.CreateFindingsRefinementRequest.class, + responseType = com.google.cloud.chronicle.v1.FindingsRefinement.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.CreateFindingsRefinementRequest, + com.google.cloud.chronicle.v1.FindingsRefinement> + getCreateFindingsRefinementMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.CreateFindingsRefinementRequest, + com.google.cloud.chronicle.v1.FindingsRefinement> + getCreateFindingsRefinementMethod; + if ((getCreateFindingsRefinementMethod = + FindingsRefinementServiceGrpc.getCreateFindingsRefinementMethod) + == null) { + synchronized (FindingsRefinementServiceGrpc.class) { + if ((getCreateFindingsRefinementMethod = + FindingsRefinementServiceGrpc.getCreateFindingsRefinementMethod) + == null) { + FindingsRefinementServiceGrpc.getCreateFindingsRefinementMethod = + getCreateFindingsRefinementMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateFindingsRefinement")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.CreateFindingsRefinementRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.FindingsRefinement + .getDefaultInstance())) + .setSchemaDescriptor( + new FindingsRefinementServiceMethodDescriptorSupplier( + "CreateFindingsRefinement")) + .build(); + } + } + } + return getCreateFindingsRefinementMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.UpdateFindingsRefinementRequest, + com.google.cloud.chronicle.v1.FindingsRefinement> + getUpdateFindingsRefinementMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateFindingsRefinement", + requestType = com.google.cloud.chronicle.v1.UpdateFindingsRefinementRequest.class, + responseType = com.google.cloud.chronicle.v1.FindingsRefinement.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.UpdateFindingsRefinementRequest, + com.google.cloud.chronicle.v1.FindingsRefinement> + getUpdateFindingsRefinementMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.UpdateFindingsRefinementRequest, + com.google.cloud.chronicle.v1.FindingsRefinement> + getUpdateFindingsRefinementMethod; + if ((getUpdateFindingsRefinementMethod = + FindingsRefinementServiceGrpc.getUpdateFindingsRefinementMethod) + == null) { + synchronized (FindingsRefinementServiceGrpc.class) { + if ((getUpdateFindingsRefinementMethod = + FindingsRefinementServiceGrpc.getUpdateFindingsRefinementMethod) + == null) { + FindingsRefinementServiceGrpc.getUpdateFindingsRefinementMethod = + getUpdateFindingsRefinementMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateFindingsRefinement")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.UpdateFindingsRefinementRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.FindingsRefinement + .getDefaultInstance())) + .setSchemaDescriptor( + new FindingsRefinementServiceMethodDescriptorSupplier( + "UpdateFindingsRefinement")) + .build(); + } + } + } + return getUpdateFindingsRefinementMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.GetFindingsRefinementDeploymentRequest, + com.google.cloud.chronicle.v1.FindingsRefinementDeployment> + getGetFindingsRefinementDeploymentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetFindingsRefinementDeployment", + requestType = com.google.cloud.chronicle.v1.GetFindingsRefinementDeploymentRequest.class, + responseType = com.google.cloud.chronicle.v1.FindingsRefinementDeployment.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.GetFindingsRefinementDeploymentRequest, + com.google.cloud.chronicle.v1.FindingsRefinementDeployment> + getGetFindingsRefinementDeploymentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.GetFindingsRefinementDeploymentRequest, + com.google.cloud.chronicle.v1.FindingsRefinementDeployment> + getGetFindingsRefinementDeploymentMethod; + if ((getGetFindingsRefinementDeploymentMethod = + FindingsRefinementServiceGrpc.getGetFindingsRefinementDeploymentMethod) + == null) { + synchronized (FindingsRefinementServiceGrpc.class) { + if ((getGetFindingsRefinementDeploymentMethod = + FindingsRefinementServiceGrpc.getGetFindingsRefinementDeploymentMethod) + == null) { + FindingsRefinementServiceGrpc.getGetFindingsRefinementDeploymentMethod = + getGetFindingsRefinementDeploymentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetFindingsRefinementDeployment")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.GetFindingsRefinementDeploymentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.FindingsRefinementDeployment + .getDefaultInstance())) + .setSchemaDescriptor( + new FindingsRefinementServiceMethodDescriptorSupplier( + "GetFindingsRefinementDeployment")) + .build(); + } + } + } + return getGetFindingsRefinementDeploymentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.UpdateFindingsRefinementDeploymentRequest, + com.google.cloud.chronicle.v1.FindingsRefinementDeployment> + getUpdateFindingsRefinementDeploymentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateFindingsRefinementDeployment", + requestType = com.google.cloud.chronicle.v1.UpdateFindingsRefinementDeploymentRequest.class, + responseType = com.google.cloud.chronicle.v1.FindingsRefinementDeployment.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.UpdateFindingsRefinementDeploymentRequest, + com.google.cloud.chronicle.v1.FindingsRefinementDeployment> + getUpdateFindingsRefinementDeploymentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.UpdateFindingsRefinementDeploymentRequest, + com.google.cloud.chronicle.v1.FindingsRefinementDeployment> + getUpdateFindingsRefinementDeploymentMethod; + if ((getUpdateFindingsRefinementDeploymentMethod = + FindingsRefinementServiceGrpc.getUpdateFindingsRefinementDeploymentMethod) + == null) { + synchronized (FindingsRefinementServiceGrpc.class) { + if ((getUpdateFindingsRefinementDeploymentMethod = + FindingsRefinementServiceGrpc.getUpdateFindingsRefinementDeploymentMethod) + == null) { + FindingsRefinementServiceGrpc.getUpdateFindingsRefinementDeploymentMethod = + getUpdateFindingsRefinementDeploymentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "UpdateFindingsRefinementDeployment")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1 + .UpdateFindingsRefinementDeploymentRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.FindingsRefinementDeployment + .getDefaultInstance())) + .setSchemaDescriptor( + new FindingsRefinementServiceMethodDescriptorSupplier( + "UpdateFindingsRefinementDeployment")) + .build(); + } + } + } + return getUpdateFindingsRefinementDeploymentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsRequest, + com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsResponse> + getListAllFindingsRefinementDeploymentsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListAllFindingsRefinementDeployments", + requestType = com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsRequest.class, + responseType = + com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsRequest, + com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsResponse> + getListAllFindingsRefinementDeploymentsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsRequest, + com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsResponse> + getListAllFindingsRefinementDeploymentsMethod; + if ((getListAllFindingsRefinementDeploymentsMethod = + FindingsRefinementServiceGrpc.getListAllFindingsRefinementDeploymentsMethod) + == null) { + synchronized (FindingsRefinementServiceGrpc.class) { + if ((getListAllFindingsRefinementDeploymentsMethod = + FindingsRefinementServiceGrpc.getListAllFindingsRefinementDeploymentsMethod) + == null) { + FindingsRefinementServiceGrpc.getListAllFindingsRefinementDeploymentsMethod = + getListAllFindingsRefinementDeploymentsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "ListAllFindingsRefinementDeployments")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1 + .ListAllFindingsRefinementDeploymentsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1 + .ListAllFindingsRefinementDeploymentsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new FindingsRefinementServiceMethodDescriptorSupplier( + "ListAllFindingsRefinementDeployments")) + .build(); + } + } + } + return getListAllFindingsRefinementDeploymentsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityRequest, + com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityResponse> + getComputeFindingsRefinementActivityMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ComputeFindingsRefinementActivity", + requestType = com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityRequest.class, + responseType = com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityRequest, + com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityResponse> + getComputeFindingsRefinementActivityMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityRequest, + com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityResponse> + getComputeFindingsRefinementActivityMethod; + if ((getComputeFindingsRefinementActivityMethod = + FindingsRefinementServiceGrpc.getComputeFindingsRefinementActivityMethod) + == null) { + synchronized (FindingsRefinementServiceGrpc.class) { + if ((getComputeFindingsRefinementActivityMethod = + FindingsRefinementServiceGrpc.getComputeFindingsRefinementActivityMethod) + == null) { + FindingsRefinementServiceGrpc.getComputeFindingsRefinementActivityMethod = + getComputeFindingsRefinementActivityMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ComputeFindingsRefinementActivity")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1 + .ComputeFindingsRefinementActivityResponse.getDefaultInstance())) + .setSchemaDescriptor( + new FindingsRefinementServiceMethodDescriptorSupplier( + "ComputeFindingsRefinementActivity")) + .build(); + } + } + } + return getComputeFindingsRefinementActivityMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesRequest, + com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesResponse> + getComputeAllFindingsRefinementActivitiesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ComputeAllFindingsRefinementActivities", + requestType = + com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesRequest.class, + responseType = + com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesRequest, + com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesResponse> + getComputeAllFindingsRefinementActivitiesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesRequest, + com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesResponse> + getComputeAllFindingsRefinementActivitiesMethod; + if ((getComputeAllFindingsRefinementActivitiesMethod = + FindingsRefinementServiceGrpc.getComputeAllFindingsRefinementActivitiesMethod) + == null) { + synchronized (FindingsRefinementServiceGrpc.class) { + if ((getComputeAllFindingsRefinementActivitiesMethod = + FindingsRefinementServiceGrpc.getComputeAllFindingsRefinementActivitiesMethod) + == null) { + FindingsRefinementServiceGrpc.getComputeAllFindingsRefinementActivitiesMethod = + getComputeAllFindingsRefinementActivitiesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "ComputeAllFindingsRefinementActivities")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1 + .ComputeAllFindingsRefinementActivitiesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1 + .ComputeAllFindingsRefinementActivitiesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new FindingsRefinementServiceMethodDescriptorSupplier( + "ComputeAllFindingsRefinementActivities")) + .build(); + } + } + } + return getComputeAllFindingsRefinementActivitiesMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static FindingsRefinementServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public FindingsRefinementServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FindingsRefinementServiceStub(channel, callOptions); + } + }; + return FindingsRefinementServiceStub.newStub(factory, channel); + } + + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static FindingsRefinementServiceBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public FindingsRefinementServiceBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FindingsRefinementServiceBlockingV2Stub(channel, callOptions); + } + }; + return FindingsRefinementServiceBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static FindingsRefinementServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public FindingsRefinementServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FindingsRefinementServiceBlockingStub(channel, callOptions); + } + }; + return FindingsRefinementServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static FindingsRefinementServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public FindingsRefinementServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FindingsRefinementServiceFutureStub(channel, callOptions); + } + }; + return FindingsRefinementServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
                +   * FindingsRefinementService provides an interface for filtering out
                +   * findings that are unlikely to be real threats to prevent them
                +   * from triggering alerts or notifications.
                +   * 
                + */ + public interface AsyncService { + + /** + * + * + *
                +     * Gets a single findings refinement.
                +     * 
                + */ + default void getFindingsRefinement( + com.google.cloud.chronicle.v1.GetFindingsRefinementRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetFindingsRefinementMethod(), responseObserver); + } + + /** + * + * + *
                +     * Lists a collection of findings refinements.
                +     * 
                + */ + default void listFindingsRefinements( + com.google.cloud.chronicle.v1.ListFindingsRefinementsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListFindingsRefinementsMethod(), responseObserver); + } + + /** + * + * + *
                +     * Creates a new findings refinement.
                +     * 
                + */ + default void createFindingsRefinement( + com.google.cloud.chronicle.v1.CreateFindingsRefinementRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateFindingsRefinementMethod(), responseObserver); + } + + /** + * + * + *
                +     * Updates a findings refinement.
                +     * 
                + */ + default void updateFindingsRefinement( + com.google.cloud.chronicle.v1.UpdateFindingsRefinementRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateFindingsRefinementMethod(), responseObserver); + } + + /** + * + * + *
                +     * Gets a findings refinement deployment.
                +     * 
                + */ + default void getFindingsRefinementDeployment( + com.google.cloud.chronicle.v1.GetFindingsRefinementDeploymentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetFindingsRefinementDeploymentMethod(), responseObserver); + } + + /** + * + * + *
                +     * Updates a findings refinement deployment.
                +     * 
                + */ + default void updateFindingsRefinementDeployment( + com.google.cloud.chronicle.v1.UpdateFindingsRefinementDeploymentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateFindingsRefinementDeploymentMethod(), responseObserver); + } + + /** + * + * + *
                +     * Lists all findings refinement deployments.
                +     * 
                + */ + default void listAllFindingsRefinementDeployments( + com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListAllFindingsRefinementDeploymentsMethod(), responseObserver); + } + + /** + * + * + *
                +     * Returns findings refinement activity for a specific findings refinement.
                +     * 
                + */ + default void computeFindingsRefinementActivity( + com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getComputeFindingsRefinementActivityMethod(), responseObserver); + } + + /** + * + * + *
                +     * Returns findings refinement activity for all findings refinements.
                +     * 
                + */ + default void computeAllFindingsRefinementActivities( + com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getComputeAllFindingsRefinementActivitiesMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service FindingsRefinementService. + * + *
                +   * FindingsRefinementService provides an interface for filtering out
                +   * findings that are unlikely to be real threats to prevent them
                +   * from triggering alerts or notifications.
                +   * 
                + */ + public abstract static class FindingsRefinementServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return FindingsRefinementServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service FindingsRefinementService. + * + *
                +   * FindingsRefinementService provides an interface for filtering out
                +   * findings that are unlikely to be real threats to prevent them
                +   * from triggering alerts or notifications.
                +   * 
                + */ + public static final class FindingsRefinementServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private FindingsRefinementServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected FindingsRefinementServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FindingsRefinementServiceStub(channel, callOptions); + } + + /** + * + * + *
                +     * Gets a single findings refinement.
                +     * 
                + */ + public void getFindingsRefinement( + com.google.cloud.chronicle.v1.GetFindingsRefinementRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetFindingsRefinementMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                +     * Lists a collection of findings refinements.
                +     * 
                + */ + public void listFindingsRefinements( + com.google.cloud.chronicle.v1.ListFindingsRefinementsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListFindingsRefinementsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                +     * Creates a new findings refinement.
                +     * 
                + */ + public void createFindingsRefinement( + com.google.cloud.chronicle.v1.CreateFindingsRefinementRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateFindingsRefinementMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                +     * Updates a findings refinement.
                +     * 
                + */ + public void updateFindingsRefinement( + com.google.cloud.chronicle.v1.UpdateFindingsRefinementRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateFindingsRefinementMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                +     * Gets a findings refinement deployment.
                +     * 
                + */ + public void getFindingsRefinementDeployment( + com.google.cloud.chronicle.v1.GetFindingsRefinementDeploymentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetFindingsRefinementDeploymentMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                +     * Updates a findings refinement deployment.
                +     * 
                + */ + public void updateFindingsRefinementDeployment( + com.google.cloud.chronicle.v1.UpdateFindingsRefinementDeploymentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateFindingsRefinementDeploymentMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                +     * Lists all findings refinement deployments.
                +     * 
                + */ + public void listAllFindingsRefinementDeployments( + com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAllFindingsRefinementDeploymentsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                +     * Returns findings refinement activity for a specific findings refinement.
                +     * 
                + */ + public void computeFindingsRefinementActivity( + com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getComputeFindingsRefinementActivityMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                +     * Returns findings refinement activity for all findings refinements.
                +     * 
                + */ + public void computeAllFindingsRefinementActivities( + com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getComputeAllFindingsRefinementActivitiesMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service FindingsRefinementService. + * + *
                +   * FindingsRefinementService provides an interface for filtering out
                +   * findings that are unlikely to be real threats to prevent them
                +   * from triggering alerts or notifications.
                +   * 
                + */ + public static final class FindingsRefinementServiceBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private FindingsRefinementServiceBlockingV2Stub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected FindingsRefinementServiceBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FindingsRefinementServiceBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
                +     * Gets a single findings refinement.
                +     * 
                + */ + public com.google.cloud.chronicle.v1.FindingsRefinement getFindingsRefinement( + com.google.cloud.chronicle.v1.GetFindingsRefinementRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetFindingsRefinementMethod(), getCallOptions(), request); + } + + /** + * + * + *
                +     * Lists a collection of findings refinements.
                +     * 
                + */ + public com.google.cloud.chronicle.v1.ListFindingsRefinementsResponse listFindingsRefinements( + com.google.cloud.chronicle.v1.ListFindingsRefinementsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListFindingsRefinementsMethod(), getCallOptions(), request); + } + + /** + * + * + *
                +     * Creates a new findings refinement.
                +     * 
                + */ + public com.google.cloud.chronicle.v1.FindingsRefinement createFindingsRefinement( + com.google.cloud.chronicle.v1.CreateFindingsRefinementRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateFindingsRefinementMethod(), getCallOptions(), request); + } + + /** + * + * + *
                +     * Updates a findings refinement.
                +     * 
                + */ + public com.google.cloud.chronicle.v1.FindingsRefinement updateFindingsRefinement( + com.google.cloud.chronicle.v1.UpdateFindingsRefinementRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateFindingsRefinementMethod(), getCallOptions(), request); + } + + /** + * + * + *
                +     * Gets a findings refinement deployment.
                +     * 
                + */ + public com.google.cloud.chronicle.v1.FindingsRefinementDeployment + getFindingsRefinementDeployment( + com.google.cloud.chronicle.v1.GetFindingsRefinementDeploymentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetFindingsRefinementDeploymentMethod(), getCallOptions(), request); + } + + /** + * + * + *
                +     * Updates a findings refinement deployment.
                +     * 
                + */ + public com.google.cloud.chronicle.v1.FindingsRefinementDeployment + updateFindingsRefinementDeployment( + com.google.cloud.chronicle.v1.UpdateFindingsRefinementDeploymentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateFindingsRefinementDeploymentMethod(), getCallOptions(), request); + } + + /** + * + * + *
                +     * Lists all findings refinement deployments.
                +     * 
                + */ + public com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsResponse + listAllFindingsRefinementDeployments( + com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListAllFindingsRefinementDeploymentsMethod(), getCallOptions(), request); + } + + /** + * + * + *
                +     * Returns findings refinement activity for a specific findings refinement.
                +     * 
                + */ + public com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityResponse + computeFindingsRefinementActivity( + com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getComputeFindingsRefinementActivityMethod(), getCallOptions(), request); + } + + /** + * + * + *
                +     * Returns findings refinement activity for all findings refinements.
                +     * 
                + */ + public com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesResponse + computeAllFindingsRefinementActivities( + com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), + getComputeAllFindingsRefinementActivitiesMethod(), + getCallOptions(), + request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service + * FindingsRefinementService. + * + *
                +   * FindingsRefinementService provides an interface for filtering out
                +   * findings that are unlikely to be real threats to prevent them
                +   * from triggering alerts or notifications.
                +   * 
                + */ + public static final class FindingsRefinementServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private FindingsRefinementServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected FindingsRefinementServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FindingsRefinementServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
                +     * Gets a single findings refinement.
                +     * 
                + */ + public com.google.cloud.chronicle.v1.FindingsRefinement getFindingsRefinement( + com.google.cloud.chronicle.v1.GetFindingsRefinementRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetFindingsRefinementMethod(), getCallOptions(), request); + } + + /** + * + * + *
                +     * Lists a collection of findings refinements.
                +     * 
                + */ + public com.google.cloud.chronicle.v1.ListFindingsRefinementsResponse listFindingsRefinements( + com.google.cloud.chronicle.v1.ListFindingsRefinementsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListFindingsRefinementsMethod(), getCallOptions(), request); + } + + /** + * + * + *
                +     * Creates a new findings refinement.
                +     * 
                + */ + public com.google.cloud.chronicle.v1.FindingsRefinement createFindingsRefinement( + com.google.cloud.chronicle.v1.CreateFindingsRefinementRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateFindingsRefinementMethod(), getCallOptions(), request); + } + + /** + * + * + *
                +     * Updates a findings refinement.
                +     * 
                + */ + public com.google.cloud.chronicle.v1.FindingsRefinement updateFindingsRefinement( + com.google.cloud.chronicle.v1.UpdateFindingsRefinementRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateFindingsRefinementMethod(), getCallOptions(), request); + } + + /** + * + * + *
                +     * Gets a findings refinement deployment.
                +     * 
                + */ + public com.google.cloud.chronicle.v1.FindingsRefinementDeployment + getFindingsRefinementDeployment( + com.google.cloud.chronicle.v1.GetFindingsRefinementDeploymentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetFindingsRefinementDeploymentMethod(), getCallOptions(), request); + } + + /** + * + * + *
                +     * Updates a findings refinement deployment.
                +     * 
                + */ + public com.google.cloud.chronicle.v1.FindingsRefinementDeployment + updateFindingsRefinementDeployment( + com.google.cloud.chronicle.v1.UpdateFindingsRefinementDeploymentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateFindingsRefinementDeploymentMethod(), getCallOptions(), request); + } + + /** + * + * + *
                +     * Lists all findings refinement deployments.
                +     * 
                + */ + public com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsResponse + listAllFindingsRefinementDeployments( + com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAllFindingsRefinementDeploymentsMethod(), getCallOptions(), request); + } + + /** + * + * + *
                +     * Returns findings refinement activity for a specific findings refinement.
                +     * 
                + */ + public com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityResponse + computeFindingsRefinementActivity( + com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getComputeFindingsRefinementActivityMethod(), getCallOptions(), request); + } + + /** + * + * + *
                +     * Returns findings refinement activity for all findings refinements.
                +     * 
                + */ + public com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesResponse + computeAllFindingsRefinementActivities( + com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), + getComputeAllFindingsRefinementActivitiesMethod(), + getCallOptions(), + request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service + * FindingsRefinementService. + * + *
                +   * FindingsRefinementService provides an interface for filtering out
                +   * findings that are unlikely to be real threats to prevent them
                +   * from triggering alerts or notifications.
                +   * 
                + */ + public static final class FindingsRefinementServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private FindingsRefinementServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected FindingsRefinementServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FindingsRefinementServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
                +     * Gets a single findings refinement.
                +     * 
                + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.chronicle.v1.FindingsRefinement> + getFindingsRefinement(com.google.cloud.chronicle.v1.GetFindingsRefinementRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetFindingsRefinementMethod(), getCallOptions()), request); + } + + /** + * + * + *
                +     * Lists a collection of findings refinements.
                +     * 
                + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.chronicle.v1.ListFindingsRefinementsResponse> + listFindingsRefinements( + com.google.cloud.chronicle.v1.ListFindingsRefinementsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListFindingsRefinementsMethod(), getCallOptions()), request); + } + + /** + * + * + *
                +     * Creates a new findings refinement.
                +     * 
                + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.chronicle.v1.FindingsRefinement> + createFindingsRefinement( + com.google.cloud.chronicle.v1.CreateFindingsRefinementRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateFindingsRefinementMethod(), getCallOptions()), request); + } + + /** + * + * + *
                +     * Updates a findings refinement.
                +     * 
                + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.chronicle.v1.FindingsRefinement> + updateFindingsRefinement( + com.google.cloud.chronicle.v1.UpdateFindingsRefinementRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateFindingsRefinementMethod(), getCallOptions()), request); + } + + /** + * + * + *
                +     * Gets a findings refinement deployment.
                +     * 
                + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.chronicle.v1.FindingsRefinementDeployment> + getFindingsRefinementDeployment( + com.google.cloud.chronicle.v1.GetFindingsRefinementDeploymentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetFindingsRefinementDeploymentMethod(), getCallOptions()), + request); + } + + /** + * + * + *
                +     * Updates a findings refinement deployment.
                +     * 
                + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.chronicle.v1.FindingsRefinementDeployment> + updateFindingsRefinementDeployment( + com.google.cloud.chronicle.v1.UpdateFindingsRefinementDeploymentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateFindingsRefinementDeploymentMethod(), getCallOptions()), + request); + } + + /** + * + * + *
                +     * Lists all findings refinement deployments.
                +     * 
                + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsResponse> + listAllFindingsRefinementDeployments( + com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAllFindingsRefinementDeploymentsMethod(), getCallOptions()), + request); + } + + /** + * + * + *
                +     * Returns findings refinement activity for a specific findings refinement.
                +     * 
                + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityResponse> + computeFindingsRefinementActivity( + com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getComputeFindingsRefinementActivityMethod(), getCallOptions()), + request); + } + + /** + * + * + *
                +     * Returns findings refinement activity for all findings refinements.
                +     * 
                + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesResponse> + computeAllFindingsRefinementActivities( + com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getComputeAllFindingsRefinementActivitiesMethod(), getCallOptions()), + request); + } + } + + private static final int METHODID_GET_FINDINGS_REFINEMENT = 0; + private static final int METHODID_LIST_FINDINGS_REFINEMENTS = 1; + private static final int METHODID_CREATE_FINDINGS_REFINEMENT = 2; + private static final int METHODID_UPDATE_FINDINGS_REFINEMENT = 3; + private static final int METHODID_GET_FINDINGS_REFINEMENT_DEPLOYMENT = 4; + private static final int METHODID_UPDATE_FINDINGS_REFINEMENT_DEPLOYMENT = 5; + private static final int METHODID_LIST_ALL_FINDINGS_REFINEMENT_DEPLOYMENTS = 6; + private static final int METHODID_COMPUTE_FINDINGS_REFINEMENT_ACTIVITY = 7; + private static final int METHODID_COMPUTE_ALL_FINDINGS_REFINEMENT_ACTIVITIES = 8; + + 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_FINDINGS_REFINEMENT: + serviceImpl.getFindingsRefinement( + (com.google.cloud.chronicle.v1.GetFindingsRefinementRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_FINDINGS_REFINEMENTS: + serviceImpl.listFindingsRefinements( + (com.google.cloud.chronicle.v1.ListFindingsRefinementsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.chronicle.v1.ListFindingsRefinementsResponse>) + responseObserver); + break; + case METHODID_CREATE_FINDINGS_REFINEMENT: + serviceImpl.createFindingsRefinement( + (com.google.cloud.chronicle.v1.CreateFindingsRefinementRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_FINDINGS_REFINEMENT: + serviceImpl.updateFindingsRefinement( + (com.google.cloud.chronicle.v1.UpdateFindingsRefinementRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_FINDINGS_REFINEMENT_DEPLOYMENT: + serviceImpl.getFindingsRefinementDeployment( + (com.google.cloud.chronicle.v1.GetFindingsRefinementDeploymentRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.chronicle.v1.FindingsRefinementDeployment>) + responseObserver); + break; + case METHODID_UPDATE_FINDINGS_REFINEMENT_DEPLOYMENT: + serviceImpl.updateFindingsRefinementDeployment( + (com.google.cloud.chronicle.v1.UpdateFindingsRefinementDeploymentRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.chronicle.v1.FindingsRefinementDeployment>) + responseObserver); + break; + case METHODID_LIST_ALL_FINDINGS_REFINEMENT_DEPLOYMENTS: + serviceImpl.listAllFindingsRefinementDeployments( + (com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsResponse>) + responseObserver); + break; + case METHODID_COMPUTE_FINDINGS_REFINEMENT_ACTIVITY: + serviceImpl.computeFindingsRefinementActivity( + (com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityResponse>) + responseObserver); + break; + case METHODID_COMPUTE_ALL_FINDINGS_REFINEMENT_ACTIVITIES: + serviceImpl.computeAllFindingsRefinementActivities( + (com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesResponse>) + 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( + getGetFindingsRefinementMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.chronicle.v1.GetFindingsRefinementRequest, + com.google.cloud.chronicle.v1.FindingsRefinement>( + service, METHODID_GET_FINDINGS_REFINEMENT))) + .addMethod( + getListFindingsRefinementsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.chronicle.v1.ListFindingsRefinementsRequest, + com.google.cloud.chronicle.v1.ListFindingsRefinementsResponse>( + service, METHODID_LIST_FINDINGS_REFINEMENTS))) + .addMethod( + getCreateFindingsRefinementMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.chronicle.v1.CreateFindingsRefinementRequest, + com.google.cloud.chronicle.v1.FindingsRefinement>( + service, METHODID_CREATE_FINDINGS_REFINEMENT))) + .addMethod( + getUpdateFindingsRefinementMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.chronicle.v1.UpdateFindingsRefinementRequest, + com.google.cloud.chronicle.v1.FindingsRefinement>( + service, METHODID_UPDATE_FINDINGS_REFINEMENT))) + .addMethod( + getGetFindingsRefinementDeploymentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.chronicle.v1.GetFindingsRefinementDeploymentRequest, + com.google.cloud.chronicle.v1.FindingsRefinementDeployment>( + service, METHODID_GET_FINDINGS_REFINEMENT_DEPLOYMENT))) + .addMethod( + getUpdateFindingsRefinementDeploymentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.chronicle.v1.UpdateFindingsRefinementDeploymentRequest, + com.google.cloud.chronicle.v1.FindingsRefinementDeployment>( + service, METHODID_UPDATE_FINDINGS_REFINEMENT_DEPLOYMENT))) + .addMethod( + getListAllFindingsRefinementDeploymentsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsRequest, + com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsResponse>( + service, METHODID_LIST_ALL_FINDINGS_REFINEMENT_DEPLOYMENTS))) + .addMethod( + getComputeFindingsRefinementActivityMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityRequest, + com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityResponse>( + service, METHODID_COMPUTE_FINDINGS_REFINEMENT_ACTIVITY))) + .addMethod( + getComputeAllFindingsRefinementActivitiesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesRequest, + com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesResponse>( + service, METHODID_COMPUTE_ALL_FINDINGS_REFINEMENT_ACTIVITIES))) + .build(); + } + + private abstract static class FindingsRefinementServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + FindingsRefinementServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("FindingsRefinementService"); + } + } + + private static final class FindingsRefinementServiceFileDescriptorSupplier + extends FindingsRefinementServiceBaseDescriptorSupplier { + FindingsRefinementServiceFileDescriptorSupplier() {} + } + + private static final class FindingsRefinementServiceMethodDescriptorSupplier + extends FindingsRefinementServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + FindingsRefinementServiceMethodDescriptorSupplier(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 (FindingsRefinementServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new FindingsRefinementServiceFileDescriptorSupplier()) + .addMethod(getGetFindingsRefinementMethod()) + .addMethod(getListFindingsRefinementsMethod()) + .addMethod(getCreateFindingsRefinementMethod()) + .addMethod(getUpdateFindingsRefinementMethod()) + .addMethod(getGetFindingsRefinementDeploymentMethod()) + .addMethod(getUpdateFindingsRefinementDeploymentMethod()) + .addMethod(getListAllFindingsRefinementDeploymentsMethod()) + .addMethod(getComputeFindingsRefinementActivityMethod()) + .addMethod(getComputeAllFindingsRefinementActivitiesMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ComputeAllFindingsRefinementActivitiesRequest.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ComputeAllFindingsRefinementActivitiesRequest.java new file mode 100644 index 000000000000..06093ba270bf --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ComputeAllFindingsRefinementActivitiesRequest.java @@ -0,0 +1,937 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/chronicle/v1/findings_refinement.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +/** + * + * + *
                + * Request message for ComputeAllFindingsRefinementActivities method.
                + * 
                + * + * Protobuf type {@code google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesRequest} + */ +@com.google.protobuf.Generated +public final class ComputeAllFindingsRefinementActivitiesRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesRequest) + ComputeAllFindingsRefinementActivitiesRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ComputeAllFindingsRefinementActivitiesRequest"); + } + + // Use ComputeAllFindingsRefinementActivitiesRequest.newBuilder() to construct. + private ComputeAllFindingsRefinementActivitiesRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ComputeAllFindingsRefinementActivitiesRequest() { + instance_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_ComputeAllFindingsRefinementActivitiesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_ComputeAllFindingsRefinementActivitiesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesRequest.class, + com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesRequest.Builder + .class); + } + + private int bitField0_; + public static final int INSTANCE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object instance_ = ""; + + /** + * + * + *
                +   * Required. The ID of the Instance to retrieve counts for.
                +   * Format:
                +   * projects/{project}/locations/{location}/instances/{instance}
                +   * 
                + * + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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 ID of the Instance to retrieve counts for.
                +   * Format:
                +   * projects/{project}/locations/{location}/instances/{instance}
                +   * 
                + * + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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 INTERVAL_FIELD_NUMBER = 2; + private com.google.type.Interval interval_; + + /** + * + * + *
                +   * The time interval the activity is measured over.
                +   * 
                + * + * .google.type.Interval interval = 2; + * + * @return Whether the interval field is set. + */ + @java.lang.Override + public boolean hasInterval() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                +   * The time interval the activity is measured over.
                +   * 
                + * + * .google.type.Interval interval = 2; + * + * @return The interval. + */ + @java.lang.Override + public com.google.type.Interval getInterval() { + return interval_ == null ? com.google.type.Interval.getDefaultInstance() : interval_; + } + + /** + * + * + *
                +   * The time interval the activity is measured over.
                +   * 
                + * + * .google.type.Interval interval = 2; + */ + @java.lang.Override + public com.google.type.IntervalOrBuilder getIntervalOrBuilder() { + return interval_ == null ? com.google.type.Interval.getDefaultInstance() : interval_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getInterval()); + } + 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 (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getInterval()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesRequest)) { + return super.equals(obj); + } + com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesRequest other = + (com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesRequest) obj; + + if (!getInstance().equals(other.getInstance())) return false; + if (hasInterval() != other.hasInterval()) return false; + if (hasInterval()) { + if (!getInterval().equals(other.getInterval())) return false; + } + if (!getUnknownFields().equals(other.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(); + if (hasInterval()) { + hash = (37 * hash) + INTERVAL_FIELD_NUMBER; + hash = (53 * hash) + getInterval().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 ComputeAllFindingsRefinementActivities method.
                +   * 
                + * + * Protobuf type {@code google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesRequest) + com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_ComputeAllFindingsRefinementActivitiesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_ComputeAllFindingsRefinementActivitiesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesRequest.class, + com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetIntervalFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + instance_ = ""; + interval_ = null; + if (intervalBuilder_ != null) { + intervalBuilder_.dispose(); + intervalBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_ComputeAllFindingsRefinementActivitiesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesRequest + getDefaultInstanceForType() { + return com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesRequest build() { + com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesRequest + buildPartial() { + com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesRequest result = + new com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.instance_ = instance_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.interval_ = intervalBuilder_ == null ? interval_ : intervalBuilder_.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.chronicle.v1.ComputeAllFindingsRefinementActivitiesRequest) { + return mergeFrom( + (com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesRequest other) { + if (other + == com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesRequest + .getDefaultInstance()) return this; + if (!other.getInstance().isEmpty()) { + instance_ = other.instance_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasInterval()) { + mergeInterval(other.getInterval()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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: + { + input.readMessage( + internalGetIntervalFieldBuilder().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 instance_ = ""; + + /** + * + * + *
                +     * Required. The ID of the Instance to retrieve counts for.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}
                +     * 
                + * + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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 ID of the Instance to retrieve counts for.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}
                +     * 
                + * + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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 ID of the Instance to retrieve counts for.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}
                +     * 
                + * + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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 ID of the Instance to retrieve counts for.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}
                +     * 
                + * + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearInstance() { + instance_ = getDefaultInstance().getInstance(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The ID of the Instance to retrieve counts for.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}
                +     * 
                + * + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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 com.google.type.Interval interval_; + private com.google.protobuf.SingleFieldBuilder< + com.google.type.Interval, + com.google.type.Interval.Builder, + com.google.type.IntervalOrBuilder> + intervalBuilder_; + + /** + * + * + *
                +     * The time interval the activity is measured over.
                +     * 
                + * + * .google.type.Interval interval = 2; + * + * @return Whether the interval field is set. + */ + public boolean hasInterval() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                +     * The time interval the activity is measured over.
                +     * 
                + * + * .google.type.Interval interval = 2; + * + * @return The interval. + */ + public com.google.type.Interval getInterval() { + if (intervalBuilder_ == null) { + return interval_ == null ? com.google.type.Interval.getDefaultInstance() : interval_; + } else { + return intervalBuilder_.getMessage(); + } + } + + /** + * + * + *
                +     * The time interval the activity is measured over.
                +     * 
                + * + * .google.type.Interval interval = 2; + */ + public Builder setInterval(com.google.type.Interval value) { + if (intervalBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + interval_ = value; + } else { + intervalBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                +     * The time interval the activity is measured over.
                +     * 
                + * + * .google.type.Interval interval = 2; + */ + public Builder setInterval(com.google.type.Interval.Builder builderForValue) { + if (intervalBuilder_ == null) { + interval_ = builderForValue.build(); + } else { + intervalBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                +     * The time interval the activity is measured over.
                +     * 
                + * + * .google.type.Interval interval = 2; + */ + public Builder mergeInterval(com.google.type.Interval value) { + if (intervalBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && interval_ != null + && interval_ != com.google.type.Interval.getDefaultInstance()) { + getIntervalBuilder().mergeFrom(value); + } else { + interval_ = value; + } + } else { + intervalBuilder_.mergeFrom(value); + } + if (interval_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                +     * The time interval the activity is measured over.
                +     * 
                + * + * .google.type.Interval interval = 2; + */ + public Builder clearInterval() { + bitField0_ = (bitField0_ & ~0x00000002); + interval_ = null; + if (intervalBuilder_ != null) { + intervalBuilder_.dispose(); + intervalBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                +     * The time interval the activity is measured over.
                +     * 
                + * + * .google.type.Interval interval = 2; + */ + public com.google.type.Interval.Builder getIntervalBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetIntervalFieldBuilder().getBuilder(); + } + + /** + * + * + *
                +     * The time interval the activity is measured over.
                +     * 
                + * + * .google.type.Interval interval = 2; + */ + public com.google.type.IntervalOrBuilder getIntervalOrBuilder() { + if (intervalBuilder_ != null) { + return intervalBuilder_.getMessageOrBuilder(); + } else { + return interval_ == null ? com.google.type.Interval.getDefaultInstance() : interval_; + } + } + + /** + * + * + *
                +     * The time interval the activity is measured over.
                +     * 
                + * + * .google.type.Interval interval = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.type.Interval, + com.google.type.Interval.Builder, + com.google.type.IntervalOrBuilder> + internalGetIntervalFieldBuilder() { + if (intervalBuilder_ == null) { + intervalBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.type.Interval, + com.google.type.Interval.Builder, + com.google.type.IntervalOrBuilder>( + getInterval(), getParentForChildren(), isClean()); + interval_ = null; + } + return intervalBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesRequest) + private static final com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesRequest(); + } + + public static com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ComputeAllFindingsRefinementActivitiesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser + getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ComputeAllFindingsRefinementActivitiesRequestOrBuilder.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ComputeAllFindingsRefinementActivitiesRequestOrBuilder.java new file mode 100644 index 000000000000..f8155d2e1500 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ComputeAllFindingsRefinementActivitiesRequestOrBuilder.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/chronicle/v1/findings_refinement.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +@com.google.protobuf.Generated +public interface ComputeAllFindingsRefinementActivitiesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                +   * Required. The ID of the Instance to retrieve counts for.
                +   * Format:
                +   * projects/{project}/locations/{location}/instances/{instance}
                +   * 
                + * + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The instance. + */ + java.lang.String getInstance(); + + /** + * + * + *
                +   * Required. The ID of the Instance to retrieve counts for.
                +   * Format:
                +   * projects/{project}/locations/{location}/instances/{instance}
                +   * 
                + * + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for instance. + */ + com.google.protobuf.ByteString getInstanceBytes(); + + /** + * + * + *
                +   * The time interval the activity is measured over.
                +   * 
                + * + * .google.type.Interval interval = 2; + * + * @return Whether the interval field is set. + */ + boolean hasInterval(); + + /** + * + * + *
                +   * The time interval the activity is measured over.
                +   * 
                + * + * .google.type.Interval interval = 2; + * + * @return The interval. + */ + com.google.type.Interval getInterval(); + + /** + * + * + *
                +   * The time interval the activity is measured over.
                +   * 
                + * + * .google.type.Interval interval = 2; + */ + com.google.type.IntervalOrBuilder getIntervalOrBuilder(); +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ComputeAllFindingsRefinementActivitiesResponse.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ComputeAllFindingsRefinementActivitiesResponse.java new file mode 100644 index 000000000000..87a12ed5d599 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ComputeAllFindingsRefinementActivitiesResponse.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/chronicle/v1/findings_refinement.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +/** + * + * + *
                + * Response message for ComputeAllFindingsRefinementActivities method.
                + * 
                + * + * Protobuf type {@code google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesResponse} + */ +@com.google.protobuf.Generated +public final class ComputeAllFindingsRefinementActivitiesResponse + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesResponse) + ComputeAllFindingsRefinementActivitiesResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ComputeAllFindingsRefinementActivitiesResponse"); + } + + // Use ComputeAllFindingsRefinementActivitiesResponse.newBuilder() to construct. + private ComputeAllFindingsRefinementActivitiesResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ComputeAllFindingsRefinementActivitiesResponse() { + activities_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_ComputeAllFindingsRefinementActivitiesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_ComputeAllFindingsRefinementActivitiesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesResponse.class, + com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesResponse.Builder + .class); + } + + public static final int ACTIVITIES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List activities_; + + /** + * + * + *
                +   * The activities of all findings refinements.
                +   * 
                + * + * repeated .google.cloud.chronicle.v1.FindingsRefinementActivity activities = 1; + */ + @java.lang.Override + public java.util.List + getActivitiesList() { + return activities_; + } + + /** + * + * + *
                +   * The activities of all findings refinements.
                +   * 
                + * + * repeated .google.cloud.chronicle.v1.FindingsRefinementActivity activities = 1; + */ + @java.lang.Override + public java.util.List + getActivitiesOrBuilderList() { + return activities_; + } + + /** + * + * + *
                +   * The activities of all findings refinements.
                +   * 
                + * + * repeated .google.cloud.chronicle.v1.FindingsRefinementActivity activities = 1; + */ + @java.lang.Override + public int getActivitiesCount() { + return activities_.size(); + } + + /** + * + * + *
                +   * The activities of all findings refinements.
                +   * 
                + * + * repeated .google.cloud.chronicle.v1.FindingsRefinementActivity activities = 1; + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.FindingsRefinementActivity getActivities(int index) { + return activities_.get(index); + } + + /** + * + * + *
                +   * The activities of all findings refinements.
                +   * 
                + * + * repeated .google.cloud.chronicle.v1.FindingsRefinementActivity activities = 1; + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.FindingsRefinementActivityOrBuilder getActivitiesOrBuilder( + int index) { + return activities_.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 < activities_.size(); i++) { + output.writeMessage(1, activities_.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 < activities_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, activities_.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.chronicle.v1.ComputeAllFindingsRefinementActivitiesResponse)) { + return super.equals(obj); + } + com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesResponse other = + (com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesResponse) obj; + + if (!getActivitiesList().equals(other.getActivitiesList())) return false; + if (!getUnknownFields().equals(other.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 (getActivitiesCount() > 0) { + hash = (37 * hash) + ACTIVITIES_FIELD_NUMBER; + hash = (53 * hash) + getActivitiesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesResponse + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesResponse + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesResponse + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 ComputeAllFindingsRefinementActivities method.
                +   * 
                + * + * Protobuf type {@code google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesResponse) + com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_ComputeAllFindingsRefinementActivitiesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_ComputeAllFindingsRefinementActivitiesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesResponse.class, + com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (activitiesBuilder_ == null) { + activities_ = java.util.Collections.emptyList(); + } else { + activities_ = null; + activitiesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_ComputeAllFindingsRefinementActivitiesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesResponse + getDefaultInstanceForType() { + return com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesResponse build() { + com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesResponse + buildPartial() { + com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesResponse result = + new com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesResponse result) { + if (activitiesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + activities_ = java.util.Collections.unmodifiableList(activities_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.activities_ = activities_; + } else { + result.activities_ = activitiesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesResponse result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesResponse) { + return mergeFrom( + (com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesResponse other) { + if (other + == com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesResponse + .getDefaultInstance()) return this; + if (activitiesBuilder_ == null) { + if (!other.activities_.isEmpty()) { + if (activities_.isEmpty()) { + activities_ = other.activities_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureActivitiesIsMutable(); + activities_.addAll(other.activities_); + } + onChanged(); + } + } else { + if (!other.activities_.isEmpty()) { + if (activitiesBuilder_.isEmpty()) { + activitiesBuilder_.dispose(); + activitiesBuilder_ = null; + activities_ = other.activities_; + bitField0_ = (bitField0_ & ~0x00000001); + activitiesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetActivitiesFieldBuilder() + : null; + } else { + activitiesBuilder_.addAllMessages(other.activities_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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.chronicle.v1.FindingsRefinementActivity m = + input.readMessage( + com.google.cloud.chronicle.v1.FindingsRefinementActivity.parser(), + extensionRegistry); + if (activitiesBuilder_ == null) { + ensureActivitiesIsMutable(); + activities_.add(m); + } else { + activitiesBuilder_.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 activities_ = + java.util.Collections.emptyList(); + + private void ensureActivitiesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + activities_ = + new java.util.ArrayList( + activities_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.chronicle.v1.FindingsRefinementActivity, + com.google.cloud.chronicle.v1.FindingsRefinementActivity.Builder, + com.google.cloud.chronicle.v1.FindingsRefinementActivityOrBuilder> + activitiesBuilder_; + + /** + * + * + *
                +     * The activities of all findings refinements.
                +     * 
                + * + * repeated .google.cloud.chronicle.v1.FindingsRefinementActivity activities = 1; + */ + public java.util.List + getActivitiesList() { + if (activitiesBuilder_ == null) { + return java.util.Collections.unmodifiableList(activities_); + } else { + return activitiesBuilder_.getMessageList(); + } + } + + /** + * + * + *
                +     * The activities of all findings refinements.
                +     * 
                + * + * repeated .google.cloud.chronicle.v1.FindingsRefinementActivity activities = 1; + */ + public int getActivitiesCount() { + if (activitiesBuilder_ == null) { + return activities_.size(); + } else { + return activitiesBuilder_.getCount(); + } + } + + /** + * + * + *
                +     * The activities of all findings refinements.
                +     * 
                + * + * repeated .google.cloud.chronicle.v1.FindingsRefinementActivity activities = 1; + */ + public com.google.cloud.chronicle.v1.FindingsRefinementActivity getActivities(int index) { + if (activitiesBuilder_ == null) { + return activities_.get(index); + } else { + return activitiesBuilder_.getMessage(index); + } + } + + /** + * + * + *
                +     * The activities of all findings refinements.
                +     * 
                + * + * repeated .google.cloud.chronicle.v1.FindingsRefinementActivity activities = 1; + */ + public Builder setActivities( + int index, com.google.cloud.chronicle.v1.FindingsRefinementActivity value) { + if (activitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureActivitiesIsMutable(); + activities_.set(index, value); + onChanged(); + } else { + activitiesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                +     * The activities of all findings refinements.
                +     * 
                + * + * repeated .google.cloud.chronicle.v1.FindingsRefinementActivity activities = 1; + */ + public Builder setActivities( + int index, + com.google.cloud.chronicle.v1.FindingsRefinementActivity.Builder builderForValue) { + if (activitiesBuilder_ == null) { + ensureActivitiesIsMutable(); + activities_.set(index, builderForValue.build()); + onChanged(); + } else { + activitiesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                +     * The activities of all findings refinements.
                +     * 
                + * + * repeated .google.cloud.chronicle.v1.FindingsRefinementActivity activities = 1; + */ + public Builder addActivities(com.google.cloud.chronicle.v1.FindingsRefinementActivity value) { + if (activitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureActivitiesIsMutable(); + activities_.add(value); + onChanged(); + } else { + activitiesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                +     * The activities of all findings refinements.
                +     * 
                + * + * repeated .google.cloud.chronicle.v1.FindingsRefinementActivity activities = 1; + */ + public Builder addActivities( + int index, com.google.cloud.chronicle.v1.FindingsRefinementActivity value) { + if (activitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureActivitiesIsMutable(); + activities_.add(index, value); + onChanged(); + } else { + activitiesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                +     * The activities of all findings refinements.
                +     * 
                + * + * repeated .google.cloud.chronicle.v1.FindingsRefinementActivity activities = 1; + */ + public Builder addActivities( + com.google.cloud.chronicle.v1.FindingsRefinementActivity.Builder builderForValue) { + if (activitiesBuilder_ == null) { + ensureActivitiesIsMutable(); + activities_.add(builderForValue.build()); + onChanged(); + } else { + activitiesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                +     * The activities of all findings refinements.
                +     * 
                + * + * repeated .google.cloud.chronicle.v1.FindingsRefinementActivity activities = 1; + */ + public Builder addActivities( + int index, + com.google.cloud.chronicle.v1.FindingsRefinementActivity.Builder builderForValue) { + if (activitiesBuilder_ == null) { + ensureActivitiesIsMutable(); + activities_.add(index, builderForValue.build()); + onChanged(); + } else { + activitiesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                +     * The activities of all findings refinements.
                +     * 
                + * + * repeated .google.cloud.chronicle.v1.FindingsRefinementActivity activities = 1; + */ + public Builder addAllActivities( + java.lang.Iterable + values) { + if (activitiesBuilder_ == null) { + ensureActivitiesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, activities_); + onChanged(); + } else { + activitiesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                +     * The activities of all findings refinements.
                +     * 
                + * + * repeated .google.cloud.chronicle.v1.FindingsRefinementActivity activities = 1; + */ + public Builder clearActivities() { + if (activitiesBuilder_ == null) { + activities_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + activitiesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                +     * The activities of all findings refinements.
                +     * 
                + * + * repeated .google.cloud.chronicle.v1.FindingsRefinementActivity activities = 1; + */ + public Builder removeActivities(int index) { + if (activitiesBuilder_ == null) { + ensureActivitiesIsMutable(); + activities_.remove(index); + onChanged(); + } else { + activitiesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                +     * The activities of all findings refinements.
                +     * 
                + * + * repeated .google.cloud.chronicle.v1.FindingsRefinementActivity activities = 1; + */ + public com.google.cloud.chronicle.v1.FindingsRefinementActivity.Builder getActivitiesBuilder( + int index) { + return internalGetActivitiesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                +     * The activities of all findings refinements.
                +     * 
                + * + * repeated .google.cloud.chronicle.v1.FindingsRefinementActivity activities = 1; + */ + public com.google.cloud.chronicle.v1.FindingsRefinementActivityOrBuilder getActivitiesOrBuilder( + int index) { + if (activitiesBuilder_ == null) { + return activities_.get(index); + } else { + return activitiesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                +     * The activities of all findings refinements.
                +     * 
                + * + * repeated .google.cloud.chronicle.v1.FindingsRefinementActivity activities = 1; + */ + public java.util.List< + ? extends com.google.cloud.chronicle.v1.FindingsRefinementActivityOrBuilder> + getActivitiesOrBuilderList() { + if (activitiesBuilder_ != null) { + return activitiesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(activities_); + } + } + + /** + * + * + *
                +     * The activities of all findings refinements.
                +     * 
                + * + * repeated .google.cloud.chronicle.v1.FindingsRefinementActivity activities = 1; + */ + public com.google.cloud.chronicle.v1.FindingsRefinementActivity.Builder addActivitiesBuilder() { + return internalGetActivitiesFieldBuilder() + .addBuilder( + com.google.cloud.chronicle.v1.FindingsRefinementActivity.getDefaultInstance()); + } + + /** + * + * + *
                +     * The activities of all findings refinements.
                +     * 
                + * + * repeated .google.cloud.chronicle.v1.FindingsRefinementActivity activities = 1; + */ + public com.google.cloud.chronicle.v1.FindingsRefinementActivity.Builder addActivitiesBuilder( + int index) { + return internalGetActivitiesFieldBuilder() + .addBuilder( + index, com.google.cloud.chronicle.v1.FindingsRefinementActivity.getDefaultInstance()); + } + + /** + * + * + *
                +     * The activities of all findings refinements.
                +     * 
                + * + * repeated .google.cloud.chronicle.v1.FindingsRefinementActivity activities = 1; + */ + public java.util.List + getActivitiesBuilderList() { + return internalGetActivitiesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.chronicle.v1.FindingsRefinementActivity, + com.google.cloud.chronicle.v1.FindingsRefinementActivity.Builder, + com.google.cloud.chronicle.v1.FindingsRefinementActivityOrBuilder> + internalGetActivitiesFieldBuilder() { + if (activitiesBuilder_ == null) { + activitiesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.chronicle.v1.FindingsRefinementActivity, + com.google.cloud.chronicle.v1.FindingsRefinementActivity.Builder, + com.google.cloud.chronicle.v1.FindingsRefinementActivityOrBuilder>( + activities_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + activities_ = null; + } + return activitiesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesResponse) + private static final com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesResponse(); + } + + public static com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ComputeAllFindingsRefinementActivitiesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser + parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser + getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ComputeAllFindingsRefinementActivitiesResponseOrBuilder.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ComputeAllFindingsRefinementActivitiesResponseOrBuilder.java new file mode 100644 index 000000000000..0c45811a25cb --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ComputeAllFindingsRefinementActivitiesResponseOrBuilder.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/chronicle/v1/findings_refinement.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +@com.google.protobuf.Generated +public interface ComputeAllFindingsRefinementActivitiesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                +   * The activities of all findings refinements.
                +   * 
                + * + * repeated .google.cloud.chronicle.v1.FindingsRefinementActivity activities = 1; + */ + java.util.List getActivitiesList(); + + /** + * + * + *
                +   * The activities of all findings refinements.
                +   * 
                + * + * repeated .google.cloud.chronicle.v1.FindingsRefinementActivity activities = 1; + */ + com.google.cloud.chronicle.v1.FindingsRefinementActivity getActivities(int index); + + /** + * + * + *
                +   * The activities of all findings refinements.
                +   * 
                + * + * repeated .google.cloud.chronicle.v1.FindingsRefinementActivity activities = 1; + */ + int getActivitiesCount(); + + /** + * + * + *
                +   * The activities of all findings refinements.
                +   * 
                + * + * repeated .google.cloud.chronicle.v1.FindingsRefinementActivity activities = 1; + */ + java.util.List + getActivitiesOrBuilderList(); + + /** + * + * + *
                +   * The activities of all findings refinements.
                +   * 
                + * + * repeated .google.cloud.chronicle.v1.FindingsRefinementActivity activities = 1; + */ + com.google.cloud.chronicle.v1.FindingsRefinementActivityOrBuilder getActivitiesOrBuilder( + int index); +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ComputeFindingsRefinementActivityRequest.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ComputeFindingsRefinementActivityRequest.java new file mode 100644 index 000000000000..638826d3aa7c --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ComputeFindingsRefinementActivityRequest.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/chronicle/v1/findings_refinement.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +/** + * + * + *
                + * Request message for ComputeFindingsRefinementActivity method.
                + * 
                + * + * Protobuf type {@code google.cloud.chronicle.v1.ComputeFindingsRefinementActivityRequest} + */ +@com.google.protobuf.Generated +public final class ComputeFindingsRefinementActivityRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.chronicle.v1.ComputeFindingsRefinementActivityRequest) + ComputeFindingsRefinementActivityRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ComputeFindingsRefinementActivityRequest"); + } + + // Use ComputeFindingsRefinementActivityRequest.newBuilder() to construct. + private ComputeFindingsRefinementActivityRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ComputeFindingsRefinementActivityRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_ComputeFindingsRefinementActivityRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_ComputeFindingsRefinementActivityRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityRequest.class, + com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityRequest.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                +   * Required. Full resource name for the findings refinement to fetch the
                +   * activity for. Format:
                +   * projects/{project}/locations/{region}/instances/{instance}/findingsRefinements/{findings_refinement}
                +   * 
                + * + * + * 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 for the findings refinement to fetch the
                +   * activity for. Format:
                +   * projects/{project}/locations/{region}/instances/{instance}/findingsRefinements/{findings_refinement}
                +   * 
                + * + * + * 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 INTERVAL_FIELD_NUMBER = 2; + private com.google.type.Interval interval_; + + /** + * + * + *
                +   * The time interval the activity is measured over.
                +   * 
                + * + * .google.type.Interval interval = 2; + * + * @return Whether the interval field is set. + */ + @java.lang.Override + public boolean hasInterval() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                +   * The time interval the activity is measured over.
                +   * 
                + * + * .google.type.Interval interval = 2; + * + * @return The interval. + */ + @java.lang.Override + public com.google.type.Interval getInterval() { + return interval_ == null ? com.google.type.Interval.getDefaultInstance() : interval_; + } + + /** + * + * + *
                +   * The time interval the activity is measured over.
                +   * 
                + * + * .google.type.Interval interval = 2; + */ + @java.lang.Override + public com.google.type.IntervalOrBuilder getIntervalOrBuilder() { + return interval_ == null ? com.google.type.Interval.getDefaultInstance() : interval_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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, getInterval()); + } + 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, getInterval()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityRequest)) { + return super.equals(obj); + } + com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityRequest other = + (com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (hasInterval() != other.hasInterval()) return false; + if (hasInterval()) { + if (!getInterval().equals(other.getInterval())) return false; + } + if (!getUnknownFields().equals(other.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 (hasInterval()) { + hash = (37 * hash) + INTERVAL_FIELD_NUMBER; + hash = (53 * hash) + getInterval().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 ComputeFindingsRefinementActivity method.
                +   * 
                + * + * Protobuf type {@code google.cloud.chronicle.v1.ComputeFindingsRefinementActivityRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.chronicle.v1.ComputeFindingsRefinementActivityRequest) + com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_ComputeFindingsRefinementActivityRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_ComputeFindingsRefinementActivityRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityRequest.class, + com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityRequest.Builder.class); + } + + // Construct using + // com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetIntervalFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + interval_ = null; + if (intervalBuilder_ != null) { + intervalBuilder_.dispose(); + intervalBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_ComputeFindingsRefinementActivityRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityRequest + getDefaultInstanceForType() { + return com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityRequest build() { + com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityRequest buildPartial() { + com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityRequest result = + new com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.interval_ = intervalBuilder_ == null ? interval_ : intervalBuilder_.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.chronicle.v1.ComputeFindingsRefinementActivityRequest) { + return mergeFrom( + (com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityRequest other) { + if (other + == com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasInterval()) { + mergeInterval(other.getInterval()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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( + internalGetIntervalFieldBuilder().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. Full resource name for the findings refinement to fetch the
                +     * activity for. Format:
                +     * projects/{project}/locations/{region}/instances/{instance}/findingsRefinements/{findings_refinement}
                +     * 
                + * + * + * 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 for the findings refinement to fetch the
                +     * activity for. Format:
                +     * projects/{project}/locations/{region}/instances/{instance}/findingsRefinements/{findings_refinement}
                +     * 
                + * + * + * 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 for the findings refinement to fetch the
                +     * activity for. Format:
                +     * projects/{project}/locations/{region}/instances/{instance}/findingsRefinements/{findings_refinement}
                +     * 
                + * + * + * 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 for the findings refinement to fetch the
                +     * activity for. Format:
                +     * projects/{project}/locations/{region}/instances/{instance}/findingsRefinements/{findings_refinement}
                +     * 
                + * + * + * 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 for the findings refinement to fetch the
                +     * activity for. Format:
                +     * projects/{project}/locations/{region}/instances/{instance}/findingsRefinements/{findings_refinement}
                +     * 
                + * + * + * 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.type.Interval interval_; + private com.google.protobuf.SingleFieldBuilder< + com.google.type.Interval, + com.google.type.Interval.Builder, + com.google.type.IntervalOrBuilder> + intervalBuilder_; + + /** + * + * + *
                +     * The time interval the activity is measured over.
                +     * 
                + * + * .google.type.Interval interval = 2; + * + * @return Whether the interval field is set. + */ + public boolean hasInterval() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                +     * The time interval the activity is measured over.
                +     * 
                + * + * .google.type.Interval interval = 2; + * + * @return The interval. + */ + public com.google.type.Interval getInterval() { + if (intervalBuilder_ == null) { + return interval_ == null ? com.google.type.Interval.getDefaultInstance() : interval_; + } else { + return intervalBuilder_.getMessage(); + } + } + + /** + * + * + *
                +     * The time interval the activity is measured over.
                +     * 
                + * + * .google.type.Interval interval = 2; + */ + public Builder setInterval(com.google.type.Interval value) { + if (intervalBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + interval_ = value; + } else { + intervalBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                +     * The time interval the activity is measured over.
                +     * 
                + * + * .google.type.Interval interval = 2; + */ + public Builder setInterval(com.google.type.Interval.Builder builderForValue) { + if (intervalBuilder_ == null) { + interval_ = builderForValue.build(); + } else { + intervalBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                +     * The time interval the activity is measured over.
                +     * 
                + * + * .google.type.Interval interval = 2; + */ + public Builder mergeInterval(com.google.type.Interval value) { + if (intervalBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && interval_ != null + && interval_ != com.google.type.Interval.getDefaultInstance()) { + getIntervalBuilder().mergeFrom(value); + } else { + interval_ = value; + } + } else { + intervalBuilder_.mergeFrom(value); + } + if (interval_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                +     * The time interval the activity is measured over.
                +     * 
                + * + * .google.type.Interval interval = 2; + */ + public Builder clearInterval() { + bitField0_ = (bitField0_ & ~0x00000002); + interval_ = null; + if (intervalBuilder_ != null) { + intervalBuilder_.dispose(); + intervalBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                +     * The time interval the activity is measured over.
                +     * 
                + * + * .google.type.Interval interval = 2; + */ + public com.google.type.Interval.Builder getIntervalBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetIntervalFieldBuilder().getBuilder(); + } + + /** + * + * + *
                +     * The time interval the activity is measured over.
                +     * 
                + * + * .google.type.Interval interval = 2; + */ + public com.google.type.IntervalOrBuilder getIntervalOrBuilder() { + if (intervalBuilder_ != null) { + return intervalBuilder_.getMessageOrBuilder(); + } else { + return interval_ == null ? com.google.type.Interval.getDefaultInstance() : interval_; + } + } + + /** + * + * + *
                +     * The time interval the activity is measured over.
                +     * 
                + * + * .google.type.Interval interval = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.type.Interval, + com.google.type.Interval.Builder, + com.google.type.IntervalOrBuilder> + internalGetIntervalFieldBuilder() { + if (intervalBuilder_ == null) { + intervalBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.type.Interval, + com.google.type.Interval.Builder, + com.google.type.IntervalOrBuilder>( + getInterval(), getParentForChildren(), isClean()); + interval_ = null; + } + return intervalBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.chronicle.v1.ComputeFindingsRefinementActivityRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.chronicle.v1.ComputeFindingsRefinementActivityRequest) + private static final com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityRequest(); + } + + public static com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ComputeFindingsRefinementActivityRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ComputeFindingsRefinementActivityRequestOrBuilder.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ComputeFindingsRefinementActivityRequestOrBuilder.java new file mode 100644 index 000000000000..44d54d3a9df9 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ComputeFindingsRefinementActivityRequestOrBuilder.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/chronicle/v1/findings_refinement.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +@com.google.protobuf.Generated +public interface ComputeFindingsRefinementActivityRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.chronicle.v1.ComputeFindingsRefinementActivityRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                +   * Required. Full resource name for the findings refinement to fetch the
                +   * activity for. Format:
                +   * projects/{project}/locations/{region}/instances/{instance}/findingsRefinements/{findings_refinement}
                +   * 
                + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                +   * Required. Full resource name for the findings refinement to fetch the
                +   * activity for. Format:
                +   * projects/{project}/locations/{region}/instances/{instance}/findingsRefinements/{findings_refinement}
                +   * 
                + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                +   * The time interval the activity is measured over.
                +   * 
                + * + * .google.type.Interval interval = 2; + * + * @return Whether the interval field is set. + */ + boolean hasInterval(); + + /** + * + * + *
                +   * The time interval the activity is measured over.
                +   * 
                + * + * .google.type.Interval interval = 2; + * + * @return The interval. + */ + com.google.type.Interval getInterval(); + + /** + * + * + *
                +   * The time interval the activity is measured over.
                +   * 
                + * + * .google.type.Interval interval = 2; + */ + com.google.type.IntervalOrBuilder getIntervalOrBuilder(); +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ComputeFindingsRefinementActivityResponse.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ComputeFindingsRefinementActivityResponse.java new file mode 100644 index 000000000000..67342ce58e43 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ComputeFindingsRefinementActivityResponse.java @@ -0,0 +1,721 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/chronicle/v1/findings_refinement.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +/** + * + * + *
                + * Response message for ComputeFindingsRefinementActivity method.
                + * 
                + * + * Protobuf type {@code google.cloud.chronicle.v1.ComputeFindingsRefinementActivityResponse} + */ +@com.google.protobuf.Generated +public final class ComputeFindingsRefinementActivityResponse + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.chronicle.v1.ComputeFindingsRefinementActivityResponse) + ComputeFindingsRefinementActivityResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ComputeFindingsRefinementActivityResponse"); + } + + // Use ComputeFindingsRefinementActivityResponse.newBuilder() to construct. + private ComputeFindingsRefinementActivityResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ComputeFindingsRefinementActivityResponse() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_ComputeFindingsRefinementActivityResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_ComputeFindingsRefinementActivityResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityResponse.class, + com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityResponse.Builder.class); + } + + private int bitField0_; + public static final int ACTIVITY_FIELD_NUMBER = 1; + private com.google.cloud.chronicle.v1.FindingsRefinementActivity activity_; + + /** + * + * + *
                +   * The activity for the findings refinement.
                +   * 
                + * + * .google.cloud.chronicle.v1.FindingsRefinementActivity activity = 1; + * + * @return Whether the activity field is set. + */ + @java.lang.Override + public boolean hasActivity() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                +   * The activity for the findings refinement.
                +   * 
                + * + * .google.cloud.chronicle.v1.FindingsRefinementActivity activity = 1; + * + * @return The activity. + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.FindingsRefinementActivity getActivity() { + return activity_ == null + ? com.google.cloud.chronicle.v1.FindingsRefinementActivity.getDefaultInstance() + : activity_; + } + + /** + * + * + *
                +   * The activity for the findings refinement.
                +   * 
                + * + * .google.cloud.chronicle.v1.FindingsRefinementActivity activity = 1; + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.FindingsRefinementActivityOrBuilder getActivityOrBuilder() { + return activity_ == null + ? com.google.cloud.chronicle.v1.FindingsRefinementActivity.getDefaultInstance() + : activity_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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, getActivity()); + } + 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, getActivity()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityResponse)) { + return super.equals(obj); + } + com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityResponse other = + (com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityResponse) obj; + + if (hasActivity() != other.hasActivity()) return false; + if (hasActivity()) { + if (!getActivity().equals(other.getActivity())) return false; + } + if (!getUnknownFields().equals(other.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 (hasActivity()) { + hash = (37 * hash) + ACTIVITY_FIELD_NUMBER; + hash = (53 * hash) + getActivity().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 ComputeFindingsRefinementActivity method.
                +   * 
                + * + * Protobuf type {@code google.cloud.chronicle.v1.ComputeFindingsRefinementActivityResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.chronicle.v1.ComputeFindingsRefinementActivityResponse) + com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_ComputeFindingsRefinementActivityResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_ComputeFindingsRefinementActivityResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityResponse.class, + com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetActivityFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + activity_ = null; + if (activityBuilder_ != null) { + activityBuilder_.dispose(); + activityBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_ComputeFindingsRefinementActivityResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityResponse + getDefaultInstanceForType() { + return com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityResponse build() { + com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityResponse buildPartial() { + com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityResponse result = + new com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.activity_ = activityBuilder_ == null ? activity_ : activityBuilder_.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.chronicle.v1.ComputeFindingsRefinementActivityResponse) { + return mergeFrom( + (com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityResponse other) { + if (other + == com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityResponse + .getDefaultInstance()) return this; + if (other.hasActivity()) { + mergeActivity(other.getActivity()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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( + internalGetActivityFieldBuilder().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.chronicle.v1.FindingsRefinementActivity activity_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.FindingsRefinementActivity, + com.google.cloud.chronicle.v1.FindingsRefinementActivity.Builder, + com.google.cloud.chronicle.v1.FindingsRefinementActivityOrBuilder> + activityBuilder_; + + /** + * + * + *
                +     * The activity for the findings refinement.
                +     * 
                + * + * .google.cloud.chronicle.v1.FindingsRefinementActivity activity = 1; + * + * @return Whether the activity field is set. + */ + public boolean hasActivity() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                +     * The activity for the findings refinement.
                +     * 
                + * + * .google.cloud.chronicle.v1.FindingsRefinementActivity activity = 1; + * + * @return The activity. + */ + public com.google.cloud.chronicle.v1.FindingsRefinementActivity getActivity() { + if (activityBuilder_ == null) { + return activity_ == null + ? com.google.cloud.chronicle.v1.FindingsRefinementActivity.getDefaultInstance() + : activity_; + } else { + return activityBuilder_.getMessage(); + } + } + + /** + * + * + *
                +     * The activity for the findings refinement.
                +     * 
                + * + * .google.cloud.chronicle.v1.FindingsRefinementActivity activity = 1; + */ + public Builder setActivity(com.google.cloud.chronicle.v1.FindingsRefinementActivity value) { + if (activityBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + activity_ = value; + } else { + activityBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                +     * The activity for the findings refinement.
                +     * 
                + * + * .google.cloud.chronicle.v1.FindingsRefinementActivity activity = 1; + */ + public Builder setActivity( + com.google.cloud.chronicle.v1.FindingsRefinementActivity.Builder builderForValue) { + if (activityBuilder_ == null) { + activity_ = builderForValue.build(); + } else { + activityBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                +     * The activity for the findings refinement.
                +     * 
                + * + * .google.cloud.chronicle.v1.FindingsRefinementActivity activity = 1; + */ + public Builder mergeActivity(com.google.cloud.chronicle.v1.FindingsRefinementActivity value) { + if (activityBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && activity_ != null + && activity_ + != com.google.cloud.chronicle.v1.FindingsRefinementActivity.getDefaultInstance()) { + getActivityBuilder().mergeFrom(value); + } else { + activity_ = value; + } + } else { + activityBuilder_.mergeFrom(value); + } + if (activity_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
                +     * The activity for the findings refinement.
                +     * 
                + * + * .google.cloud.chronicle.v1.FindingsRefinementActivity activity = 1; + */ + public Builder clearActivity() { + bitField0_ = (bitField0_ & ~0x00000001); + activity_ = null; + if (activityBuilder_ != null) { + activityBuilder_.dispose(); + activityBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                +     * The activity for the findings refinement.
                +     * 
                + * + * .google.cloud.chronicle.v1.FindingsRefinementActivity activity = 1; + */ + public com.google.cloud.chronicle.v1.FindingsRefinementActivity.Builder getActivityBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetActivityFieldBuilder().getBuilder(); + } + + /** + * + * + *
                +     * The activity for the findings refinement.
                +     * 
                + * + * .google.cloud.chronicle.v1.FindingsRefinementActivity activity = 1; + */ + public com.google.cloud.chronicle.v1.FindingsRefinementActivityOrBuilder + getActivityOrBuilder() { + if (activityBuilder_ != null) { + return activityBuilder_.getMessageOrBuilder(); + } else { + return activity_ == null + ? com.google.cloud.chronicle.v1.FindingsRefinementActivity.getDefaultInstance() + : activity_; + } + } + + /** + * + * + *
                +     * The activity for the findings refinement.
                +     * 
                + * + * .google.cloud.chronicle.v1.FindingsRefinementActivity activity = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.FindingsRefinementActivity, + com.google.cloud.chronicle.v1.FindingsRefinementActivity.Builder, + com.google.cloud.chronicle.v1.FindingsRefinementActivityOrBuilder> + internalGetActivityFieldBuilder() { + if (activityBuilder_ == null) { + activityBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.FindingsRefinementActivity, + com.google.cloud.chronicle.v1.FindingsRefinementActivity.Builder, + com.google.cloud.chronicle.v1.FindingsRefinementActivityOrBuilder>( + getActivity(), getParentForChildren(), isClean()); + activity_ = null; + } + return activityBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.chronicle.v1.ComputeFindingsRefinementActivityResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.chronicle.v1.ComputeFindingsRefinementActivityResponse) + private static final com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityResponse(); + } + + public static com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ComputeFindingsRefinementActivityResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ComputeFindingsRefinementActivityResponseOrBuilder.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ComputeFindingsRefinementActivityResponseOrBuilder.java new file mode 100644 index 000000000000..94102bd34e89 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ComputeFindingsRefinementActivityResponseOrBuilder.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/chronicle/v1/findings_refinement.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +@com.google.protobuf.Generated +public interface ComputeFindingsRefinementActivityResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.chronicle.v1.ComputeFindingsRefinementActivityResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                +   * The activity for the findings refinement.
                +   * 
                + * + * .google.cloud.chronicle.v1.FindingsRefinementActivity activity = 1; + * + * @return Whether the activity field is set. + */ + boolean hasActivity(); + + /** + * + * + *
                +   * The activity for the findings refinement.
                +   * 
                + * + * .google.cloud.chronicle.v1.FindingsRefinementActivity activity = 1; + * + * @return The activity. + */ + com.google.cloud.chronicle.v1.FindingsRefinementActivity getActivity(); + + /** + * + * + *
                +   * The activity for the findings refinement.
                +   * 
                + * + * .google.cloud.chronicle.v1.FindingsRefinementActivity activity = 1; + */ + com.google.cloud.chronicle.v1.FindingsRefinementActivityOrBuilder getActivityOrBuilder(); +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/CreateFindingsRefinementRequest.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/CreateFindingsRefinementRequest.java new file mode 100644 index 000000000000..d30b43eb35e3 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/CreateFindingsRefinementRequest.java @@ -0,0 +1,952 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/chronicle/v1/findings_refinement.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +/** + * + * + *
                + * Request message for CreateFindingsRefinement method.
                + * 
                + * + * Protobuf type {@code google.cloud.chronicle.v1.CreateFindingsRefinementRequest} + */ +@com.google.protobuf.Generated +public final class CreateFindingsRefinementRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.chronicle.v1.CreateFindingsRefinementRequest) + CreateFindingsRefinementRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CreateFindingsRefinementRequest"); + } + + // Use CreateFindingsRefinementRequest.newBuilder() to construct. + private CreateFindingsRefinementRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateFindingsRefinementRequest() { + parent_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_CreateFindingsRefinementRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_CreateFindingsRefinementRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.CreateFindingsRefinementRequest.class, + com.google.cloud.chronicle.v1.CreateFindingsRefinementRequest.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 findings refinement will be
                +   * created. Format:
                +   * projects/{project}/locations/{location}/instances/{instance}
                +   * 
                + * + * + * 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 findings refinement will be
                +   * created. Format:
                +   * projects/{project}/locations/{location}/instances/{instance}
                +   * 
                + * + * + * 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 FINDINGS_REFINEMENT_FIELD_NUMBER = 2; + private com.google.cloud.chronicle.v1.FindingsRefinement findingsRefinement_; + + /** + * + * + *
                +   * Required. The findings refinement to create.
                +   * 
                + * + * + * .google.cloud.chronicle.v1.FindingsRefinement findings_refinement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the findingsRefinement field is set. + */ + @java.lang.Override + public boolean hasFindingsRefinement() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                +   * Required. The findings refinement to create.
                +   * 
                + * + * + * .google.cloud.chronicle.v1.FindingsRefinement findings_refinement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The findingsRefinement. + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.FindingsRefinement getFindingsRefinement() { + return findingsRefinement_ == null + ? com.google.cloud.chronicle.v1.FindingsRefinement.getDefaultInstance() + : findingsRefinement_; + } + + /** + * + * + *
                +   * Required. The findings refinement to create.
                +   * 
                + * + * + * .google.cloud.chronicle.v1.FindingsRefinement findings_refinement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.FindingsRefinementOrBuilder + getFindingsRefinementOrBuilder() { + return findingsRefinement_ == null + ? com.google.cloud.chronicle.v1.FindingsRefinement.getDefaultInstance() + : findingsRefinement_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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, getFindingsRefinement()); + } + 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, getFindingsRefinement()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.chronicle.v1.CreateFindingsRefinementRequest)) { + return super.equals(obj); + } + com.google.cloud.chronicle.v1.CreateFindingsRefinementRequest other = + (com.google.cloud.chronicle.v1.CreateFindingsRefinementRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasFindingsRefinement() != other.hasFindingsRefinement()) return false; + if (hasFindingsRefinement()) { + if (!getFindingsRefinement().equals(other.getFindingsRefinement())) return false; + } + if (!getUnknownFields().equals(other.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 (hasFindingsRefinement()) { + hash = (37 * hash) + FINDINGS_REFINEMENT_FIELD_NUMBER; + hash = (53 * hash) + getFindingsRefinement().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.chronicle.v1.CreateFindingsRefinementRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.CreateFindingsRefinementRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.CreateFindingsRefinementRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.CreateFindingsRefinementRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.CreateFindingsRefinementRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.CreateFindingsRefinementRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.CreateFindingsRefinementRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.CreateFindingsRefinementRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.CreateFindingsRefinementRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.CreateFindingsRefinementRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.CreateFindingsRefinementRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.CreateFindingsRefinementRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.chronicle.v1.CreateFindingsRefinementRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 CreateFindingsRefinement method.
                +   * 
                + * + * Protobuf type {@code google.cloud.chronicle.v1.CreateFindingsRefinementRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.chronicle.v1.CreateFindingsRefinementRequest) + com.google.cloud.chronicle.v1.CreateFindingsRefinementRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_CreateFindingsRefinementRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_CreateFindingsRefinementRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.CreateFindingsRefinementRequest.class, + com.google.cloud.chronicle.v1.CreateFindingsRefinementRequest.Builder.class); + } + + // Construct using com.google.cloud.chronicle.v1.CreateFindingsRefinementRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetFindingsRefinementFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + findingsRefinement_ = null; + if (findingsRefinementBuilder_ != null) { + findingsRefinementBuilder_.dispose(); + findingsRefinementBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_CreateFindingsRefinementRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.CreateFindingsRefinementRequest + getDefaultInstanceForType() { + return com.google.cloud.chronicle.v1.CreateFindingsRefinementRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.CreateFindingsRefinementRequest build() { + com.google.cloud.chronicle.v1.CreateFindingsRefinementRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.CreateFindingsRefinementRequest buildPartial() { + com.google.cloud.chronicle.v1.CreateFindingsRefinementRequest result = + new com.google.cloud.chronicle.v1.CreateFindingsRefinementRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.chronicle.v1.CreateFindingsRefinementRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.findingsRefinement_ = + findingsRefinementBuilder_ == null + ? findingsRefinement_ + : findingsRefinementBuilder_.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.chronicle.v1.CreateFindingsRefinementRequest) { + return mergeFrom((com.google.cloud.chronicle.v1.CreateFindingsRefinementRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.chronicle.v1.CreateFindingsRefinementRequest other) { + if (other + == com.google.cloud.chronicle.v1.CreateFindingsRefinementRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasFindingsRefinement()) { + mergeFindingsRefinement(other.getFindingsRefinement()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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( + internalGetFindingsRefinementFieldBuilder().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 parent_ = ""; + + /** + * + * + *
                +     * Required. The parent resource where this findings refinement will be
                +     * created. Format:
                +     * projects/{project}/locations/{location}/instances/{instance}
                +     * 
                + * + * + * 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 findings refinement will be
                +     * created. Format:
                +     * projects/{project}/locations/{location}/instances/{instance}
                +     * 
                + * + * + * 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 findings refinement will be
                +     * created. Format:
                +     * projects/{project}/locations/{location}/instances/{instance}
                +     * 
                + * + * + * 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 findings refinement will be
                +     * created. Format:
                +     * projects/{project}/locations/{location}/instances/{instance}
                +     * 
                + * + * + * 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 findings refinement will be
                +     * created. Format:
                +     * projects/{project}/locations/{location}/instances/{instance}
                +     * 
                + * + * + * 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.chronicle.v1.FindingsRefinement findingsRefinement_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.FindingsRefinement, + com.google.cloud.chronicle.v1.FindingsRefinement.Builder, + com.google.cloud.chronicle.v1.FindingsRefinementOrBuilder> + findingsRefinementBuilder_; + + /** + * + * + *
                +     * Required. The findings refinement to create.
                +     * 
                + * + * + * .google.cloud.chronicle.v1.FindingsRefinement findings_refinement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the findingsRefinement field is set. + */ + public boolean hasFindingsRefinement() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                +     * Required. The findings refinement to create.
                +     * 
                + * + * + * .google.cloud.chronicle.v1.FindingsRefinement findings_refinement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The findingsRefinement. + */ + public com.google.cloud.chronicle.v1.FindingsRefinement getFindingsRefinement() { + if (findingsRefinementBuilder_ == null) { + return findingsRefinement_ == null + ? com.google.cloud.chronicle.v1.FindingsRefinement.getDefaultInstance() + : findingsRefinement_; + } else { + return findingsRefinementBuilder_.getMessage(); + } + } + + /** + * + * + *
                +     * Required. The findings refinement to create.
                +     * 
                + * + * + * .google.cloud.chronicle.v1.FindingsRefinement findings_refinement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFindingsRefinement(com.google.cloud.chronicle.v1.FindingsRefinement value) { + if (findingsRefinementBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + findingsRefinement_ = value; + } else { + findingsRefinementBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The findings refinement to create.
                +     * 
                + * + * + * .google.cloud.chronicle.v1.FindingsRefinement findings_refinement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFindingsRefinement( + com.google.cloud.chronicle.v1.FindingsRefinement.Builder builderForValue) { + if (findingsRefinementBuilder_ == null) { + findingsRefinement_ = builderForValue.build(); + } else { + findingsRefinementBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The findings refinement to create.
                +     * 
                + * + * + * .google.cloud.chronicle.v1.FindingsRefinement findings_refinement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeFindingsRefinement(com.google.cloud.chronicle.v1.FindingsRefinement value) { + if (findingsRefinementBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && findingsRefinement_ != null + && findingsRefinement_ + != com.google.cloud.chronicle.v1.FindingsRefinement.getDefaultInstance()) { + getFindingsRefinementBuilder().mergeFrom(value); + } else { + findingsRefinement_ = value; + } + } else { + findingsRefinementBuilder_.mergeFrom(value); + } + if (findingsRefinement_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                +     * Required. The findings refinement to create.
                +     * 
                + * + * + * .google.cloud.chronicle.v1.FindingsRefinement findings_refinement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearFindingsRefinement() { + bitField0_ = (bitField0_ & ~0x00000002); + findingsRefinement_ = null; + if (findingsRefinementBuilder_ != null) { + findingsRefinementBuilder_.dispose(); + findingsRefinementBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The findings refinement to create.
                +     * 
                + * + * + * .google.cloud.chronicle.v1.FindingsRefinement findings_refinement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.chronicle.v1.FindingsRefinement.Builder getFindingsRefinementBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetFindingsRefinementFieldBuilder().getBuilder(); + } + + /** + * + * + *
                +     * Required. The findings refinement to create.
                +     * 
                + * + * + * .google.cloud.chronicle.v1.FindingsRefinement findings_refinement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.chronicle.v1.FindingsRefinementOrBuilder + getFindingsRefinementOrBuilder() { + if (findingsRefinementBuilder_ != null) { + return findingsRefinementBuilder_.getMessageOrBuilder(); + } else { + return findingsRefinement_ == null + ? com.google.cloud.chronicle.v1.FindingsRefinement.getDefaultInstance() + : findingsRefinement_; + } + } + + /** + * + * + *
                +     * Required. The findings refinement to create.
                +     * 
                + * + * + * .google.cloud.chronicle.v1.FindingsRefinement findings_refinement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.FindingsRefinement, + com.google.cloud.chronicle.v1.FindingsRefinement.Builder, + com.google.cloud.chronicle.v1.FindingsRefinementOrBuilder> + internalGetFindingsRefinementFieldBuilder() { + if (findingsRefinementBuilder_ == null) { + findingsRefinementBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.FindingsRefinement, + com.google.cloud.chronicle.v1.FindingsRefinement.Builder, + com.google.cloud.chronicle.v1.FindingsRefinementOrBuilder>( + getFindingsRefinement(), getParentForChildren(), isClean()); + findingsRefinement_ = null; + } + return findingsRefinementBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.chronicle.v1.CreateFindingsRefinementRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.chronicle.v1.CreateFindingsRefinementRequest) + private static final com.google.cloud.chronicle.v1.CreateFindingsRefinementRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.chronicle.v1.CreateFindingsRefinementRequest(); + } + + public static com.google.cloud.chronicle.v1.CreateFindingsRefinementRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateFindingsRefinementRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.CreateFindingsRefinementRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/CreateFindingsRefinementRequestOrBuilder.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/CreateFindingsRefinementRequestOrBuilder.java new file mode 100644 index 000000000000..d02c33010d64 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/CreateFindingsRefinementRequestOrBuilder.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/chronicle/v1/findings_refinement.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +@com.google.protobuf.Generated +public interface CreateFindingsRefinementRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.chronicle.v1.CreateFindingsRefinementRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                +   * Required. The parent resource where this findings refinement will be
                +   * created. Format:
                +   * projects/{project}/locations/{location}/instances/{instance}
                +   * 
                + * + * + * 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 findings refinement will be
                +   * created. Format:
                +   * projects/{project}/locations/{location}/instances/{instance}
                +   * 
                + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                +   * Required. The findings refinement to create.
                +   * 
                + * + * + * .google.cloud.chronicle.v1.FindingsRefinement findings_refinement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the findingsRefinement field is set. + */ + boolean hasFindingsRefinement(); + + /** + * + * + *
                +   * Required. The findings refinement to create.
                +   * 
                + * + * + * .google.cloud.chronicle.v1.FindingsRefinement findings_refinement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The findingsRefinement. + */ + com.google.cloud.chronicle.v1.FindingsRefinement getFindingsRefinement(); + + /** + * + * + *
                +   * Required. The findings refinement to create.
                +   * 
                + * + * + * .google.cloud.chronicle.v1.FindingsRefinement findings_refinement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.chronicle.v1.FindingsRefinementOrBuilder getFindingsRefinementOrBuilder(); +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DetectionExclusionActivity.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DetectionExclusionActivity.java new file mode 100644 index 000000000000..a90d7a987af1 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DetectionExclusionActivity.java @@ -0,0 +1,3108 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/chronicle/v1/findings_refinement.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +/** + * + * + *
                + * The activity for a findings refinement that is a detection exclusion. The
                + * activity is broken down per detector.
                + * 
                + * + * Protobuf type {@code google.cloud.chronicle.v1.DetectionExclusionActivity} + */ +@com.google.protobuf.Generated +public final class DetectionExclusionActivity extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.chronicle.v1.DetectionExclusionActivity) + DetectionExclusionActivityOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DetectionExclusionActivity"); + } + + // Use DetectionExclusionActivity.newBuilder() to construct. + private DetectionExclusionActivity(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DetectionExclusionActivity() { + detectionExclusionDetectorActivities_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_DetectionExclusionActivity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_DetectionExclusionActivity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.DetectionExclusionActivity.class, + com.google.cloud.chronicle.v1.DetectionExclusionActivity.Builder.class); + } + + public interface DetectionExclusionDetectorActivityOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.chronicle.v1.DetectionExclusionActivity.DetectionExclusionDetectorActivity) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                +     * Full resource name for the curated rule this activity corresponds to.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/curatedRules/{rule}
                +     * 
                + * + * string curated_rule = 1 [(.google.api.resource_reference) = { ... } + * + * @return Whether the curatedRule field is set. + */ + boolean hasCuratedRule(); + + /** + * + * + *
                +     * Full resource name for the curated rule this activity corresponds to.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/curatedRules/{rule}
                +     * 
                + * + * string curated_rule = 1 [(.google.api.resource_reference) = { ... } + * + * @return The curatedRule. + */ + java.lang.String getCuratedRule(); + + /** + * + * + *
                +     * Full resource name for the curated rule this activity corresponds to.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/curatedRules/{rule}
                +     * 
                + * + * string curated_rule = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for curatedRule. + */ + com.google.protobuf.ByteString getCuratedRuleBytes(); + + /** + * + * + *
                +     * Full resource name for the curated rule set this activity corresponds
                +     * to. This field will only be set if the customer has access to the
                +     * curated rule set the exclusion is applied to.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/curatedRuleSetCategories/{curated_rule_set_category}/curatedRuleSets/{curated_rule_set}
                +     * 
                + * + * string curated_rule_set = 2 [(.google.api.resource_reference) = { ... } + * + * @return Whether the curatedRuleSet field is set. + */ + boolean hasCuratedRuleSet(); + + /** + * + * + *
                +     * Full resource name for the curated rule set this activity corresponds
                +     * to. This field will only be set if the customer has access to the
                +     * curated rule set the exclusion is applied to.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/curatedRuleSetCategories/{curated_rule_set_category}/curatedRuleSets/{curated_rule_set}
                +     * 
                + * + * string curated_rule_set = 2 [(.google.api.resource_reference) = { ... } + * + * @return The curatedRuleSet. + */ + java.lang.String getCuratedRuleSet(); + + /** + * + * + *
                +     * Full resource name for the curated rule set this activity corresponds
                +     * to. This field will only be set if the customer has access to the
                +     * curated rule set the exclusion is applied to.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/curatedRuleSetCategories/{curated_rule_set_category}/curatedRuleSets/{curated_rule_set}
                +     * 
                + * + * string curated_rule_set = 2 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for curatedRuleSet. + */ + com.google.protobuf.ByteString getCuratedRuleSetBytes(); + + /** + * + * + *
                +     * Full resource name for the rule this activity corresponds to.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/rules/{rule}
                +     * 
                + * + * string rule = 5 [(.google.api.resource_reference) = { ... } + * + * @return Whether the rule field is set. + */ + boolean hasRule(); + + /** + * + * + *
                +     * Full resource name for the rule this activity corresponds to.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/rules/{rule}
                +     * 
                + * + * string rule = 5 [(.google.api.resource_reference) = { ... } + * + * @return The rule. + */ + java.lang.String getRule(); + + /** + * + * + *
                +     * Full resource name for the rule this activity corresponds to.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/rules/{rule}
                +     * 
                + * + * string rule = 5 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for rule. + */ + com.google.protobuf.ByteString getRuleBytes(); + + /** + * + * + *
                +     * Full resource name for the deleted curated rule set this activity
                +     * corresponds to. This field will only be set if the customer does
                +     * not have access to the curated rule set the exclusion is applied to.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/curatedRuleSetCategories/{curated_rule_set_category}/curatedRuleSets/{curated_rule_set}
                +     * 
                + * + * string deleted_curated_rule_set = 6 [(.google.api.resource_reference) = { ... } + * + * @return Whether the deletedCuratedRuleSet field is set. + */ + boolean hasDeletedCuratedRuleSet(); + + /** + * + * + *
                +     * Full resource name for the deleted curated rule set this activity
                +     * corresponds to. This field will only be set if the customer does
                +     * not have access to the curated rule set the exclusion is applied to.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/curatedRuleSetCategories/{curated_rule_set_category}/curatedRuleSets/{curated_rule_set}
                +     * 
                + * + * string deleted_curated_rule_set = 6 [(.google.api.resource_reference) = { ... } + * + * @return The deletedCuratedRuleSet. + */ + java.lang.String getDeletedCuratedRuleSet(); + + /** + * + * + *
                +     * Full resource name for the deleted curated rule set this activity
                +     * corresponds to. This field will only be set if the customer does
                +     * not have access to the curated rule set the exclusion is applied to.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/curatedRuleSetCategories/{curated_rule_set_category}/curatedRuleSets/{curated_rule_set}
                +     * 
                + * + * string deleted_curated_rule_set = 6 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for deletedCuratedRuleSet. + */ + com.google.protobuf.ByteString getDeletedCuratedRuleSetBytes(); + + /** + * + * + *
                +     * The number of detections for the detector that were excluded by the
                +     * detection exclusion.
                +     * 
                + * + * int64 excluded_detection_count = 3; + * + * @return The excludedDetectionCount. + */ + long getExcludedDetectionCount(); + + /** + * + * + *
                +     * The total number of detections found by the detector. This includes both
                +     * excluded detections and non-excluded detections.
                +     * 
                + * + * int64 total_detection_count = 4; + * + * @return The totalDetectionCount. + */ + long getTotalDetectionCount(); + + com.google.cloud.chronicle.v1.DetectionExclusionActivity.DetectionExclusionDetectorActivity + .DetectorNameCase + getDetectorNameCase(); + } + + /** + * + * + *
                +   * The activity for a findings refinement that is a detection exclusion broken
                +   * down for one specific detector.
                +   * 
                + * + * Protobuf type {@code + * google.cloud.chronicle.v1.DetectionExclusionActivity.DetectionExclusionDetectorActivity} + */ + public static final class DetectionExclusionDetectorActivity + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.chronicle.v1.DetectionExclusionActivity.DetectionExclusionDetectorActivity) + DetectionExclusionDetectorActivityOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DetectionExclusionDetectorActivity"); + } + + // Use DetectionExclusionDetectorActivity.newBuilder() to construct. + private DetectionExclusionDetectorActivity( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DetectionExclusionDetectorActivity() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_DetectionExclusionActivity_DetectionExclusionDetectorActivity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_DetectionExclusionActivity_DetectionExclusionDetectorActivity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.DetectionExclusionActivity + .DetectionExclusionDetectorActivity.class, + com.google.cloud.chronicle.v1.DetectionExclusionActivity + .DetectionExclusionDetectorActivity.Builder.class); + } + + private int detectorNameCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object detectorName_; + + public enum DetectorNameCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + CURATED_RULE(1), + CURATED_RULE_SET(2), + RULE(5), + DELETED_CURATED_RULE_SET(6), + DETECTORNAME_NOT_SET(0); + private final int value; + + private DetectorNameCase(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 DetectorNameCase valueOf(int value) { + return forNumber(value); + } + + public static DetectorNameCase forNumber(int value) { + switch (value) { + case 1: + return CURATED_RULE; + case 2: + return CURATED_RULE_SET; + case 5: + return RULE; + case 6: + return DELETED_CURATED_RULE_SET; + case 0: + return DETECTORNAME_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public DetectorNameCase getDetectorNameCase() { + return DetectorNameCase.forNumber(detectorNameCase_); + } + + public static final int CURATED_RULE_FIELD_NUMBER = 1; + + /** + * + * + *
                +     * Full resource name for the curated rule this activity corresponds to.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/curatedRules/{rule}
                +     * 
                + * + * string curated_rule = 1 [(.google.api.resource_reference) = { ... } + * + * @return Whether the curatedRule field is set. + */ + public boolean hasCuratedRule() { + return detectorNameCase_ == 1; + } + + /** + * + * + *
                +     * Full resource name for the curated rule this activity corresponds to.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/curatedRules/{rule}
                +     * 
                + * + * string curated_rule = 1 [(.google.api.resource_reference) = { ... } + * + * @return The curatedRule. + */ + public java.lang.String getCuratedRule() { + java.lang.Object ref = ""; + if (detectorNameCase_ == 1) { + ref = detectorName_; + } + if (ref instanceof java.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 (detectorNameCase_ == 1) { + detectorName_ = s; + } + return s; + } + } + + /** + * + * + *
                +     * Full resource name for the curated rule this activity corresponds to.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/curatedRules/{rule}
                +     * 
                + * + * string curated_rule = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for curatedRule. + */ + public com.google.protobuf.ByteString getCuratedRuleBytes() { + java.lang.Object ref = ""; + if (detectorNameCase_ == 1) { + ref = detectorName_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (detectorNameCase_ == 1) { + detectorName_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CURATED_RULE_SET_FIELD_NUMBER = 2; + + /** + * + * + *
                +     * Full resource name for the curated rule set this activity corresponds
                +     * to. This field will only be set if the customer has access to the
                +     * curated rule set the exclusion is applied to.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/curatedRuleSetCategories/{curated_rule_set_category}/curatedRuleSets/{curated_rule_set}
                +     * 
                + * + * string curated_rule_set = 2 [(.google.api.resource_reference) = { ... } + * + * @return Whether the curatedRuleSet field is set. + */ + public boolean hasCuratedRuleSet() { + return detectorNameCase_ == 2; + } + + /** + * + * + *
                +     * Full resource name for the curated rule set this activity corresponds
                +     * to. This field will only be set if the customer has access to the
                +     * curated rule set the exclusion is applied to.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/curatedRuleSetCategories/{curated_rule_set_category}/curatedRuleSets/{curated_rule_set}
                +     * 
                + * + * string curated_rule_set = 2 [(.google.api.resource_reference) = { ... } + * + * @return The curatedRuleSet. + */ + public java.lang.String getCuratedRuleSet() { + java.lang.Object ref = ""; + if (detectorNameCase_ == 2) { + ref = detectorName_; + } + if (ref instanceof java.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 (detectorNameCase_ == 2) { + detectorName_ = s; + } + return s; + } + } + + /** + * + * + *
                +     * Full resource name for the curated rule set this activity corresponds
                +     * to. This field will only be set if the customer has access to the
                +     * curated rule set the exclusion is applied to.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/curatedRuleSetCategories/{curated_rule_set_category}/curatedRuleSets/{curated_rule_set}
                +     * 
                + * + * string curated_rule_set = 2 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for curatedRuleSet. + */ + public com.google.protobuf.ByteString getCuratedRuleSetBytes() { + java.lang.Object ref = ""; + if (detectorNameCase_ == 2) { + ref = detectorName_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (detectorNameCase_ == 2) { + detectorName_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RULE_FIELD_NUMBER = 5; + + /** + * + * + *
                +     * Full resource name for the rule this activity corresponds to.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/rules/{rule}
                +     * 
                + * + * string rule = 5 [(.google.api.resource_reference) = { ... } + * + * @return Whether the rule field is set. + */ + public boolean hasRule() { + return detectorNameCase_ == 5; + } + + /** + * + * + *
                +     * Full resource name for the rule this activity corresponds to.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/rules/{rule}
                +     * 
                + * + * string rule = 5 [(.google.api.resource_reference) = { ... } + * + * @return The rule. + */ + public java.lang.String getRule() { + java.lang.Object ref = ""; + if (detectorNameCase_ == 5) { + ref = detectorName_; + } + if (ref instanceof java.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 (detectorNameCase_ == 5) { + detectorName_ = s; + } + return s; + } + } + + /** + * + * + *
                +     * Full resource name for the rule this activity corresponds to.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/rules/{rule}
                +     * 
                + * + * string rule = 5 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for rule. + */ + public com.google.protobuf.ByteString getRuleBytes() { + java.lang.Object ref = ""; + if (detectorNameCase_ == 5) { + ref = detectorName_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (detectorNameCase_ == 5) { + detectorName_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DELETED_CURATED_RULE_SET_FIELD_NUMBER = 6; + + /** + * + * + *
                +     * Full resource name for the deleted curated rule set this activity
                +     * corresponds to. This field will only be set if the customer does
                +     * not have access to the curated rule set the exclusion is applied to.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/curatedRuleSetCategories/{curated_rule_set_category}/curatedRuleSets/{curated_rule_set}
                +     * 
                + * + * string deleted_curated_rule_set = 6 [(.google.api.resource_reference) = { ... } + * + * @return Whether the deletedCuratedRuleSet field is set. + */ + public boolean hasDeletedCuratedRuleSet() { + return detectorNameCase_ == 6; + } + + /** + * + * + *
                +     * Full resource name for the deleted curated rule set this activity
                +     * corresponds to. This field will only be set if the customer does
                +     * not have access to the curated rule set the exclusion is applied to.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/curatedRuleSetCategories/{curated_rule_set_category}/curatedRuleSets/{curated_rule_set}
                +     * 
                + * + * string deleted_curated_rule_set = 6 [(.google.api.resource_reference) = { ... } + * + * @return The deletedCuratedRuleSet. + */ + public java.lang.String getDeletedCuratedRuleSet() { + java.lang.Object ref = ""; + if (detectorNameCase_ == 6) { + ref = detectorName_; + } + if (ref instanceof java.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 (detectorNameCase_ == 6) { + detectorName_ = s; + } + return s; + } + } + + /** + * + * + *
                +     * Full resource name for the deleted curated rule set this activity
                +     * corresponds to. This field will only be set if the customer does
                +     * not have access to the curated rule set the exclusion is applied to.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/curatedRuleSetCategories/{curated_rule_set_category}/curatedRuleSets/{curated_rule_set}
                +     * 
                + * + * string deleted_curated_rule_set = 6 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for deletedCuratedRuleSet. + */ + public com.google.protobuf.ByteString getDeletedCuratedRuleSetBytes() { + java.lang.Object ref = ""; + if (detectorNameCase_ == 6) { + ref = detectorName_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (detectorNameCase_ == 6) { + detectorName_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXCLUDED_DETECTION_COUNT_FIELD_NUMBER = 3; + private long excludedDetectionCount_ = 0L; + + /** + * + * + *
                +     * The number of detections for the detector that were excluded by the
                +     * detection exclusion.
                +     * 
                + * + * int64 excluded_detection_count = 3; + * + * @return The excludedDetectionCount. + */ + @java.lang.Override + public long getExcludedDetectionCount() { + return excludedDetectionCount_; + } + + public static final int TOTAL_DETECTION_COUNT_FIELD_NUMBER = 4; + private long totalDetectionCount_ = 0L; + + /** + * + * + *
                +     * The total number of detections found by the detector. This includes both
                +     * excluded detections and non-excluded detections.
                +     * 
                + * + * int64 total_detection_count = 4; + * + * @return The totalDetectionCount. + */ + @java.lang.Override + public long getTotalDetectionCount() { + return totalDetectionCount_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (detectorNameCase_ == 1) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, detectorName_); + } + if (detectorNameCase_ == 2) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, detectorName_); + } + if (excludedDetectionCount_ != 0L) { + output.writeInt64(3, excludedDetectionCount_); + } + if (totalDetectionCount_ != 0L) { + output.writeInt64(4, totalDetectionCount_); + } + if (detectorNameCase_ == 5) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, detectorName_); + } + if (detectorNameCase_ == 6) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, detectorName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (detectorNameCase_ == 1) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, detectorName_); + } + if (detectorNameCase_ == 2) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, detectorName_); + } + if (excludedDetectionCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, excludedDetectionCount_); + } + if (totalDetectionCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, totalDetectionCount_); + } + if (detectorNameCase_ == 5) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, detectorName_); + } + if (detectorNameCase_ == 6) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, detectorName_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.chronicle.v1.DetectionExclusionActivity + .DetectionExclusionDetectorActivity)) { + return super.equals(obj); + } + com.google.cloud.chronicle.v1.DetectionExclusionActivity.DetectionExclusionDetectorActivity + other = + (com.google.cloud.chronicle.v1.DetectionExclusionActivity + .DetectionExclusionDetectorActivity) + obj; + + if (getExcludedDetectionCount() != other.getExcludedDetectionCount()) return false; + if (getTotalDetectionCount() != other.getTotalDetectionCount()) return false; + if (!getDetectorNameCase().equals(other.getDetectorNameCase())) return false; + switch (detectorNameCase_) { + case 1: + if (!getCuratedRule().equals(other.getCuratedRule())) return false; + break; + case 2: + if (!getCuratedRuleSet().equals(other.getCuratedRuleSet())) return false; + break; + case 5: + if (!getRule().equals(other.getRule())) return false; + break; + case 6: + if (!getDeletedCuratedRuleSet().equals(other.getDeletedCuratedRuleSet())) 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) + EXCLUDED_DETECTION_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getExcludedDetectionCount()); + hash = (37 * hash) + TOTAL_DETECTION_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalDetectionCount()); + switch (detectorNameCase_) { + case 1: + hash = (37 * hash) + CURATED_RULE_FIELD_NUMBER; + hash = (53 * hash) + getCuratedRule().hashCode(); + break; + case 2: + hash = (37 * hash) + CURATED_RULE_SET_FIELD_NUMBER; + hash = (53 * hash) + getCuratedRuleSet().hashCode(); + break; + case 5: + hash = (37 * hash) + RULE_FIELD_NUMBER; + hash = (53 * hash) + getRule().hashCode(); + break; + case 6: + hash = (37 * hash) + DELETED_CURATED_RULE_SET_FIELD_NUMBER; + hash = (53 * hash) + getDeletedCuratedRuleSet().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.chronicle.v1.DetectionExclusionActivity + .DetectionExclusionDetectorActivity + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.DetectionExclusionActivity + .DetectionExclusionDetectorActivity + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.DetectionExclusionActivity + .DetectionExclusionDetectorActivity + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.DetectionExclusionActivity + .DetectionExclusionDetectorActivity + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.DetectionExclusionActivity + .DetectionExclusionDetectorActivity + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.DetectionExclusionActivity + .DetectionExclusionDetectorActivity + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.DetectionExclusionActivity + .DetectionExclusionDetectorActivity + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.DetectionExclusionActivity + .DetectionExclusionDetectorActivity + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.DetectionExclusionActivity + .DetectionExclusionDetectorActivity + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.DetectionExclusionActivity + .DetectionExclusionDetectorActivity + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.DetectionExclusionActivity + .DetectionExclusionDetectorActivity + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.DetectionExclusionActivity + .DetectionExclusionDetectorActivity + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.chronicle.v1.DetectionExclusionActivity.DetectionExclusionDetectorActivity + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 activity for a findings refinement that is a detection exclusion broken
                +     * down for one specific detector.
                +     * 
                + * + * Protobuf type {@code + * google.cloud.chronicle.v1.DetectionExclusionActivity.DetectionExclusionDetectorActivity} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.chronicle.v1.DetectionExclusionActivity.DetectionExclusionDetectorActivity) + com.google.cloud.chronicle.v1.DetectionExclusionActivity + .DetectionExclusionDetectorActivityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_DetectionExclusionActivity_DetectionExclusionDetectorActivity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_DetectionExclusionActivity_DetectionExclusionDetectorActivity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.DetectionExclusionActivity + .DetectionExclusionDetectorActivity.class, + com.google.cloud.chronicle.v1.DetectionExclusionActivity + .DetectionExclusionDetectorActivity.Builder.class); + } + + // Construct using + // com.google.cloud.chronicle.v1.DetectionExclusionActivity.DetectionExclusionDetectorActivity.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + excludedDetectionCount_ = 0L; + totalDetectionCount_ = 0L; + detectorNameCase_ = 0; + detectorName_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_DetectionExclusionActivity_DetectionExclusionDetectorActivity_descriptor; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.DetectionExclusionActivity + .DetectionExclusionDetectorActivity + getDefaultInstanceForType() { + return com.google.cloud.chronicle.v1.DetectionExclusionActivity + .DetectionExclusionDetectorActivity.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.DetectionExclusionActivity + .DetectionExclusionDetectorActivity + build() { + com.google.cloud.chronicle.v1.DetectionExclusionActivity.DetectionExclusionDetectorActivity + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.DetectionExclusionActivity + .DetectionExclusionDetectorActivity + buildPartial() { + com.google.cloud.chronicle.v1.DetectionExclusionActivity.DetectionExclusionDetectorActivity + result = + new com.google.cloud.chronicle.v1.DetectionExclusionActivity + .DetectionExclusionDetectorActivity(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.chronicle.v1.DetectionExclusionActivity + .DetectionExclusionDetectorActivity + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.excludedDetectionCount_ = excludedDetectionCount_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.totalDetectionCount_ = totalDetectionCount_; + } + } + + private void buildPartialOneofs( + com.google.cloud.chronicle.v1.DetectionExclusionActivity + .DetectionExclusionDetectorActivity + result) { + result.detectorNameCase_ = detectorNameCase_; + result.detectorName_ = this.detectorName_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.chronicle.v1.DetectionExclusionActivity + .DetectionExclusionDetectorActivity) { + return mergeFrom( + (com.google.cloud.chronicle.v1.DetectionExclusionActivity + .DetectionExclusionDetectorActivity) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.chronicle.v1.DetectionExclusionActivity + .DetectionExclusionDetectorActivity + other) { + if (other + == com.google.cloud.chronicle.v1.DetectionExclusionActivity + .DetectionExclusionDetectorActivity.getDefaultInstance()) return this; + if (other.getExcludedDetectionCount() != 0L) { + setExcludedDetectionCount(other.getExcludedDetectionCount()); + } + if (other.getTotalDetectionCount() != 0L) { + setTotalDetectionCount(other.getTotalDetectionCount()); + } + switch (other.getDetectorNameCase()) { + case CURATED_RULE: + { + detectorNameCase_ = 1; + detectorName_ = other.detectorName_; + onChanged(); + break; + } + case CURATED_RULE_SET: + { + detectorNameCase_ = 2; + detectorName_ = other.detectorName_; + onChanged(); + break; + } + case RULE: + { + detectorNameCase_ = 5; + detectorName_ = other.detectorName_; + onChanged(); + break; + } + case DELETED_CURATED_RULE_SET: + { + detectorNameCase_ = 6; + detectorName_ = other.detectorName_; + onChanged(); + break; + } + case DETECTORNAME_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(); + detectorNameCase_ = 1; + detectorName_ = s; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + detectorNameCase_ = 2; + detectorName_ = s; + break; + } // case 18 + case 24: + { + excludedDetectionCount_ = input.readInt64(); + bitField0_ |= 0x00000010; + break; + } // case 24 + case 32: + { + totalDetectionCount_ = input.readInt64(); + bitField0_ |= 0x00000020; + break; + } // case 32 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + detectorNameCase_ = 5; + detectorName_ = s; + break; + } // case 42 + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + detectorNameCase_ = 6; + detectorName_ = s; + 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 detectorNameCase_ = 0; + private java.lang.Object detectorName_; + + public DetectorNameCase getDetectorNameCase() { + return DetectorNameCase.forNumber(detectorNameCase_); + } + + public Builder clearDetectorName() { + detectorNameCase_ = 0; + detectorName_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
                +       * Full resource name for the curated rule this activity corresponds to.
                +       * Format:
                +       * projects/{project}/locations/{location}/instances/{instance}/curatedRules/{rule}
                +       * 
                + * + * string curated_rule = 1 [(.google.api.resource_reference) = { ... } + * + * @return Whether the curatedRule field is set. + */ + @java.lang.Override + public boolean hasCuratedRule() { + return detectorNameCase_ == 1; + } + + /** + * + * + *
                +       * Full resource name for the curated rule this activity corresponds to.
                +       * Format:
                +       * projects/{project}/locations/{location}/instances/{instance}/curatedRules/{rule}
                +       * 
                + * + * string curated_rule = 1 [(.google.api.resource_reference) = { ... } + * + * @return The curatedRule. + */ + @java.lang.Override + public java.lang.String getCuratedRule() { + java.lang.Object ref = ""; + if (detectorNameCase_ == 1) { + ref = detectorName_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (detectorNameCase_ == 1) { + detectorName_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                +       * Full resource name for the curated rule this activity corresponds to.
                +       * Format:
                +       * projects/{project}/locations/{location}/instances/{instance}/curatedRules/{rule}
                +       * 
                + * + * string curated_rule = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for curatedRule. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCuratedRuleBytes() { + java.lang.Object ref = ""; + if (detectorNameCase_ == 1) { + ref = detectorName_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (detectorNameCase_ == 1) { + detectorName_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                +       * Full resource name for the curated rule this activity corresponds to.
                +       * Format:
                +       * projects/{project}/locations/{location}/instances/{instance}/curatedRules/{rule}
                +       * 
                + * + * string curated_rule = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The curatedRule to set. + * @return This builder for chaining. + */ + public Builder setCuratedRule(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + detectorNameCase_ = 1; + detectorName_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                +       * Full resource name for the curated rule this activity corresponds to.
                +       * Format:
                +       * projects/{project}/locations/{location}/instances/{instance}/curatedRules/{rule}
                +       * 
                + * + * string curated_rule = 1 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearCuratedRule() { + if (detectorNameCase_ == 1) { + detectorNameCase_ = 0; + detectorName_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
                +       * Full resource name for the curated rule this activity corresponds to.
                +       * Format:
                +       * projects/{project}/locations/{location}/instances/{instance}/curatedRules/{rule}
                +       * 
                + * + * string curated_rule = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for curatedRule to set. + * @return This builder for chaining. + */ + public Builder setCuratedRuleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + detectorNameCase_ = 1; + detectorName_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                +       * Full resource name for the curated rule set this activity corresponds
                +       * to. This field will only be set if the customer has access to the
                +       * curated rule set the exclusion is applied to.
                +       * Format:
                +       * projects/{project}/locations/{location}/instances/{instance}/curatedRuleSetCategories/{curated_rule_set_category}/curatedRuleSets/{curated_rule_set}
                +       * 
                + * + * string curated_rule_set = 2 [(.google.api.resource_reference) = { ... } + * + * @return Whether the curatedRuleSet field is set. + */ + @java.lang.Override + public boolean hasCuratedRuleSet() { + return detectorNameCase_ == 2; + } + + /** + * + * + *
                +       * Full resource name for the curated rule set this activity corresponds
                +       * to. This field will only be set if the customer has access to the
                +       * curated rule set the exclusion is applied to.
                +       * Format:
                +       * projects/{project}/locations/{location}/instances/{instance}/curatedRuleSetCategories/{curated_rule_set_category}/curatedRuleSets/{curated_rule_set}
                +       * 
                + * + * string curated_rule_set = 2 [(.google.api.resource_reference) = { ... } + * + * @return The curatedRuleSet. + */ + @java.lang.Override + public java.lang.String getCuratedRuleSet() { + java.lang.Object ref = ""; + if (detectorNameCase_ == 2) { + ref = detectorName_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (detectorNameCase_ == 2) { + detectorName_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                +       * Full resource name for the curated rule set this activity corresponds
                +       * to. This field will only be set if the customer has access to the
                +       * curated rule set the exclusion is applied to.
                +       * Format:
                +       * projects/{project}/locations/{location}/instances/{instance}/curatedRuleSetCategories/{curated_rule_set_category}/curatedRuleSets/{curated_rule_set}
                +       * 
                + * + * string curated_rule_set = 2 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for curatedRuleSet. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCuratedRuleSetBytes() { + java.lang.Object ref = ""; + if (detectorNameCase_ == 2) { + ref = detectorName_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (detectorNameCase_ == 2) { + detectorName_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                +       * Full resource name for the curated rule set this activity corresponds
                +       * to. This field will only be set if the customer has access to the
                +       * curated rule set the exclusion is applied to.
                +       * Format:
                +       * projects/{project}/locations/{location}/instances/{instance}/curatedRuleSetCategories/{curated_rule_set_category}/curatedRuleSets/{curated_rule_set}
                +       * 
                + * + * string curated_rule_set = 2 [(.google.api.resource_reference) = { ... } + * + * @param value The curatedRuleSet to set. + * @return This builder for chaining. + */ + public Builder setCuratedRuleSet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + detectorNameCase_ = 2; + detectorName_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                +       * Full resource name for the curated rule set this activity corresponds
                +       * to. This field will only be set if the customer has access to the
                +       * curated rule set the exclusion is applied to.
                +       * Format:
                +       * projects/{project}/locations/{location}/instances/{instance}/curatedRuleSetCategories/{curated_rule_set_category}/curatedRuleSets/{curated_rule_set}
                +       * 
                + * + * string curated_rule_set = 2 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearCuratedRuleSet() { + if (detectorNameCase_ == 2) { + detectorNameCase_ = 0; + detectorName_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
                +       * Full resource name for the curated rule set this activity corresponds
                +       * to. This field will only be set if the customer has access to the
                +       * curated rule set the exclusion is applied to.
                +       * Format:
                +       * projects/{project}/locations/{location}/instances/{instance}/curatedRuleSetCategories/{curated_rule_set_category}/curatedRuleSets/{curated_rule_set}
                +       * 
                + * + * string curated_rule_set = 2 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for curatedRuleSet to set. + * @return This builder for chaining. + */ + public Builder setCuratedRuleSetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + detectorNameCase_ = 2; + detectorName_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                +       * Full resource name for the rule this activity corresponds to.
                +       * Format:
                +       * projects/{project}/locations/{location}/instances/{instance}/rules/{rule}
                +       * 
                + * + * string rule = 5 [(.google.api.resource_reference) = { ... } + * + * @return Whether the rule field is set. + */ + @java.lang.Override + public boolean hasRule() { + return detectorNameCase_ == 5; + } + + /** + * + * + *
                +       * Full resource name for the rule this activity corresponds to.
                +       * Format:
                +       * projects/{project}/locations/{location}/instances/{instance}/rules/{rule}
                +       * 
                + * + * string rule = 5 [(.google.api.resource_reference) = { ... } + * + * @return The rule. + */ + @java.lang.Override + public java.lang.String getRule() { + java.lang.Object ref = ""; + if (detectorNameCase_ == 5) { + ref = detectorName_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (detectorNameCase_ == 5) { + detectorName_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                +       * Full resource name for the rule this activity corresponds to.
                +       * Format:
                +       * projects/{project}/locations/{location}/instances/{instance}/rules/{rule}
                +       * 
                + * + * string rule = 5 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for rule. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRuleBytes() { + java.lang.Object ref = ""; + if (detectorNameCase_ == 5) { + ref = detectorName_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (detectorNameCase_ == 5) { + detectorName_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                +       * Full resource name for the rule this activity corresponds to.
                +       * Format:
                +       * projects/{project}/locations/{location}/instances/{instance}/rules/{rule}
                +       * 
                + * + * string rule = 5 [(.google.api.resource_reference) = { ... } + * + * @param value The rule to set. + * @return This builder for chaining. + */ + public Builder setRule(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + detectorNameCase_ = 5; + detectorName_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                +       * Full resource name for the rule this activity corresponds to.
                +       * Format:
                +       * projects/{project}/locations/{location}/instances/{instance}/rules/{rule}
                +       * 
                + * + * string rule = 5 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearRule() { + if (detectorNameCase_ == 5) { + detectorNameCase_ = 0; + detectorName_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
                +       * Full resource name for the rule this activity corresponds to.
                +       * Format:
                +       * projects/{project}/locations/{location}/instances/{instance}/rules/{rule}
                +       * 
                + * + * string rule = 5 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for rule to set. + * @return This builder for chaining. + */ + public Builder setRuleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + detectorNameCase_ = 5; + detectorName_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                +       * Full resource name for the deleted curated rule set this activity
                +       * corresponds to. This field will only be set if the customer does
                +       * not have access to the curated rule set the exclusion is applied to.
                +       * Format:
                +       * projects/{project}/locations/{location}/instances/{instance}/curatedRuleSetCategories/{curated_rule_set_category}/curatedRuleSets/{curated_rule_set}
                +       * 
                + * + * string deleted_curated_rule_set = 6 [(.google.api.resource_reference) = { ... } + * + * + * @return Whether the deletedCuratedRuleSet field is set. + */ + @java.lang.Override + public boolean hasDeletedCuratedRuleSet() { + return detectorNameCase_ == 6; + } + + /** + * + * + *
                +       * Full resource name for the deleted curated rule set this activity
                +       * corresponds to. This field will only be set if the customer does
                +       * not have access to the curated rule set the exclusion is applied to.
                +       * Format:
                +       * projects/{project}/locations/{location}/instances/{instance}/curatedRuleSetCategories/{curated_rule_set_category}/curatedRuleSets/{curated_rule_set}
                +       * 
                + * + * string deleted_curated_rule_set = 6 [(.google.api.resource_reference) = { ... } + * + * + * @return The deletedCuratedRuleSet. + */ + @java.lang.Override + public java.lang.String getDeletedCuratedRuleSet() { + java.lang.Object ref = ""; + if (detectorNameCase_ == 6) { + ref = detectorName_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (detectorNameCase_ == 6) { + detectorName_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                +       * Full resource name for the deleted curated rule set this activity
                +       * corresponds to. This field will only be set if the customer does
                +       * not have access to the curated rule set the exclusion is applied to.
                +       * Format:
                +       * projects/{project}/locations/{location}/instances/{instance}/curatedRuleSetCategories/{curated_rule_set_category}/curatedRuleSets/{curated_rule_set}
                +       * 
                + * + * string deleted_curated_rule_set = 6 [(.google.api.resource_reference) = { ... } + * + * + * @return The bytes for deletedCuratedRuleSet. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDeletedCuratedRuleSetBytes() { + java.lang.Object ref = ""; + if (detectorNameCase_ == 6) { + ref = detectorName_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (detectorNameCase_ == 6) { + detectorName_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                +       * Full resource name for the deleted curated rule set this activity
                +       * corresponds to. This field will only be set if the customer does
                +       * not have access to the curated rule set the exclusion is applied to.
                +       * Format:
                +       * projects/{project}/locations/{location}/instances/{instance}/curatedRuleSetCategories/{curated_rule_set_category}/curatedRuleSets/{curated_rule_set}
                +       * 
                + * + * string deleted_curated_rule_set = 6 [(.google.api.resource_reference) = { ... } + * + * + * @param value The deletedCuratedRuleSet to set. + * @return This builder for chaining. + */ + public Builder setDeletedCuratedRuleSet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + detectorNameCase_ = 6; + detectorName_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                +       * Full resource name for the deleted curated rule set this activity
                +       * corresponds to. This field will only be set if the customer does
                +       * not have access to the curated rule set the exclusion is applied to.
                +       * Format:
                +       * projects/{project}/locations/{location}/instances/{instance}/curatedRuleSetCategories/{curated_rule_set_category}/curatedRuleSets/{curated_rule_set}
                +       * 
                + * + * string deleted_curated_rule_set = 6 [(.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearDeletedCuratedRuleSet() { + if (detectorNameCase_ == 6) { + detectorNameCase_ = 0; + detectorName_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
                +       * Full resource name for the deleted curated rule set this activity
                +       * corresponds to. This field will only be set if the customer does
                +       * not have access to the curated rule set the exclusion is applied to.
                +       * Format:
                +       * projects/{project}/locations/{location}/instances/{instance}/curatedRuleSetCategories/{curated_rule_set_category}/curatedRuleSets/{curated_rule_set}
                +       * 
                + * + * string deleted_curated_rule_set = 6 [(.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for deletedCuratedRuleSet to set. + * @return This builder for chaining. + */ + public Builder setDeletedCuratedRuleSetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + detectorNameCase_ = 6; + detectorName_ = value; + onChanged(); + return this; + } + + private long excludedDetectionCount_; + + /** + * + * + *
                +       * The number of detections for the detector that were excluded by the
                +       * detection exclusion.
                +       * 
                + * + * int64 excluded_detection_count = 3; + * + * @return The excludedDetectionCount. + */ + @java.lang.Override + public long getExcludedDetectionCount() { + return excludedDetectionCount_; + } + + /** + * + * + *
                +       * The number of detections for the detector that were excluded by the
                +       * detection exclusion.
                +       * 
                + * + * int64 excluded_detection_count = 3; + * + * @param value The excludedDetectionCount to set. + * @return This builder for chaining. + */ + public Builder setExcludedDetectionCount(long value) { + + excludedDetectionCount_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                +       * The number of detections for the detector that were excluded by the
                +       * detection exclusion.
                +       * 
                + * + * int64 excluded_detection_count = 3; + * + * @return This builder for chaining. + */ + public Builder clearExcludedDetectionCount() { + bitField0_ = (bitField0_ & ~0x00000010); + excludedDetectionCount_ = 0L; + onChanged(); + return this; + } + + private long totalDetectionCount_; + + /** + * + * + *
                +       * The total number of detections found by the detector. This includes both
                +       * excluded detections and non-excluded detections.
                +       * 
                + * + * int64 total_detection_count = 4; + * + * @return The totalDetectionCount. + */ + @java.lang.Override + public long getTotalDetectionCount() { + return totalDetectionCount_; + } + + /** + * + * + *
                +       * The total number of detections found by the detector. This includes both
                +       * excluded detections and non-excluded detections.
                +       * 
                + * + * int64 total_detection_count = 4; + * + * @param value The totalDetectionCount to set. + * @return This builder for chaining. + */ + public Builder setTotalDetectionCount(long value) { + + totalDetectionCount_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                +       * The total number of detections found by the detector. This includes both
                +       * excluded detections and non-excluded detections.
                +       * 
                + * + * int64 total_detection_count = 4; + * + * @return This builder for chaining. + */ + public Builder clearTotalDetectionCount() { + bitField0_ = (bitField0_ & ~0x00000020); + totalDetectionCount_ = 0L; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.chronicle.v1.DetectionExclusionActivity.DetectionExclusionDetectorActivity) + } + + // @@protoc_insertion_point(class_scope:google.cloud.chronicle.v1.DetectionExclusionActivity.DetectionExclusionDetectorActivity) + private static final com.google.cloud.chronicle.v1.DetectionExclusionActivity + .DetectionExclusionDetectorActivity + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.chronicle.v1.DetectionExclusionActivity + .DetectionExclusionDetectorActivity(); + } + + public static com.google.cloud.chronicle.v1.DetectionExclusionActivity + .DetectionExclusionDetectorActivity + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DetectionExclusionDetectorActivity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.DetectionExclusionActivity + .DetectionExclusionDetectorActivity + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int DETECTION_EXCLUSION_DETECTOR_ACTIVITIES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.chronicle.v1.DetectionExclusionActivity + .DetectionExclusionDetectorActivity> + detectionExclusionDetectorActivities_; + + /** + * + * + *
                +   * The activity for the detection exclusion broken down by detector.
                +   * 
                + * + * + * repeated .google.cloud.chronicle.v1.DetectionExclusionActivity.DetectionExclusionDetectorActivity detection_exclusion_detector_activities = 1; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.chronicle.v1.DetectionExclusionActivity + .DetectionExclusionDetectorActivity> + getDetectionExclusionDetectorActivitiesList() { + return detectionExclusionDetectorActivities_; + } + + /** + * + * + *
                +   * The activity for the detection exclusion broken down by detector.
                +   * 
                + * + * + * repeated .google.cloud.chronicle.v1.DetectionExclusionActivity.DetectionExclusionDetectorActivity detection_exclusion_detector_activities = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.chronicle.v1.DetectionExclusionActivity + .DetectionExclusionDetectorActivityOrBuilder> + getDetectionExclusionDetectorActivitiesOrBuilderList() { + return detectionExclusionDetectorActivities_; + } + + /** + * + * + *
                +   * The activity for the detection exclusion broken down by detector.
                +   * 
                + * + * + * repeated .google.cloud.chronicle.v1.DetectionExclusionActivity.DetectionExclusionDetectorActivity detection_exclusion_detector_activities = 1; + * + */ + @java.lang.Override + public int getDetectionExclusionDetectorActivitiesCount() { + return detectionExclusionDetectorActivities_.size(); + } + + /** + * + * + *
                +   * The activity for the detection exclusion broken down by detector.
                +   * 
                + * + * + * repeated .google.cloud.chronicle.v1.DetectionExclusionActivity.DetectionExclusionDetectorActivity detection_exclusion_detector_activities = 1; + * + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.DetectionExclusionActivity.DetectionExclusionDetectorActivity + getDetectionExclusionDetectorActivities(int index) { + return detectionExclusionDetectorActivities_.get(index); + } + + /** + * + * + *
                +   * The activity for the detection exclusion broken down by detector.
                +   * 
                + * + * + * repeated .google.cloud.chronicle.v1.DetectionExclusionActivity.DetectionExclusionDetectorActivity detection_exclusion_detector_activities = 1; + * + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.DetectionExclusionActivity + .DetectionExclusionDetectorActivityOrBuilder + getDetectionExclusionDetectorActivitiesOrBuilder(int index) { + return detectionExclusionDetectorActivities_.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 < detectionExclusionDetectorActivities_.size(); i++) { + output.writeMessage(1, detectionExclusionDetectorActivities_.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 < detectionExclusionDetectorActivities_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, detectionExclusionDetectorActivities_.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.chronicle.v1.DetectionExclusionActivity)) { + return super.equals(obj); + } + com.google.cloud.chronicle.v1.DetectionExclusionActivity other = + (com.google.cloud.chronicle.v1.DetectionExclusionActivity) obj; + + if (!getDetectionExclusionDetectorActivitiesList() + .equals(other.getDetectionExclusionDetectorActivitiesList())) return false; + if (!getUnknownFields().equals(other.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 (getDetectionExclusionDetectorActivitiesCount() > 0) { + hash = (37 * hash) + DETECTION_EXCLUSION_DETECTOR_ACTIVITIES_FIELD_NUMBER; + hash = (53 * hash) + getDetectionExclusionDetectorActivitiesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.chronicle.v1.DetectionExclusionActivity parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.DetectionExclusionActivity parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.DetectionExclusionActivity parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.DetectionExclusionActivity parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.DetectionExclusionActivity parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.DetectionExclusionActivity parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.DetectionExclusionActivity parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.DetectionExclusionActivity parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.DetectionExclusionActivity parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.DetectionExclusionActivity parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.DetectionExclusionActivity parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.DetectionExclusionActivity parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.chronicle.v1.DetectionExclusionActivity prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 activity for a findings refinement that is a detection exclusion. The
                +   * activity is broken down per detector.
                +   * 
                + * + * Protobuf type {@code google.cloud.chronicle.v1.DetectionExclusionActivity} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.chronicle.v1.DetectionExclusionActivity) + com.google.cloud.chronicle.v1.DetectionExclusionActivityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_DetectionExclusionActivity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_DetectionExclusionActivity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.DetectionExclusionActivity.class, + com.google.cloud.chronicle.v1.DetectionExclusionActivity.Builder.class); + } + + // Construct using com.google.cloud.chronicle.v1.DetectionExclusionActivity.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (detectionExclusionDetectorActivitiesBuilder_ == null) { + detectionExclusionDetectorActivities_ = java.util.Collections.emptyList(); + } else { + detectionExclusionDetectorActivities_ = null; + detectionExclusionDetectorActivitiesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_DetectionExclusionActivity_descriptor; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.DetectionExclusionActivity getDefaultInstanceForType() { + return com.google.cloud.chronicle.v1.DetectionExclusionActivity.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.DetectionExclusionActivity build() { + com.google.cloud.chronicle.v1.DetectionExclusionActivity result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.DetectionExclusionActivity buildPartial() { + com.google.cloud.chronicle.v1.DetectionExclusionActivity result = + new com.google.cloud.chronicle.v1.DetectionExclusionActivity(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.chronicle.v1.DetectionExclusionActivity result) { + if (detectionExclusionDetectorActivitiesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + detectionExclusionDetectorActivities_ = + java.util.Collections.unmodifiableList(detectionExclusionDetectorActivities_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.detectionExclusionDetectorActivities_ = detectionExclusionDetectorActivities_; + } else { + result.detectionExclusionDetectorActivities_ = + detectionExclusionDetectorActivitiesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.chronicle.v1.DetectionExclusionActivity result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.chronicle.v1.DetectionExclusionActivity) { + return mergeFrom((com.google.cloud.chronicle.v1.DetectionExclusionActivity) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.chronicle.v1.DetectionExclusionActivity other) { + if (other == com.google.cloud.chronicle.v1.DetectionExclusionActivity.getDefaultInstance()) + return this; + if (detectionExclusionDetectorActivitiesBuilder_ == null) { + if (!other.detectionExclusionDetectorActivities_.isEmpty()) { + if (detectionExclusionDetectorActivities_.isEmpty()) { + detectionExclusionDetectorActivities_ = other.detectionExclusionDetectorActivities_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDetectionExclusionDetectorActivitiesIsMutable(); + detectionExclusionDetectorActivities_.addAll( + other.detectionExclusionDetectorActivities_); + } + onChanged(); + } + } else { + if (!other.detectionExclusionDetectorActivities_.isEmpty()) { + if (detectionExclusionDetectorActivitiesBuilder_.isEmpty()) { + detectionExclusionDetectorActivitiesBuilder_.dispose(); + detectionExclusionDetectorActivitiesBuilder_ = null; + detectionExclusionDetectorActivities_ = other.detectionExclusionDetectorActivities_; + bitField0_ = (bitField0_ & ~0x00000001); + detectionExclusionDetectorActivitiesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetDetectionExclusionDetectorActivitiesFieldBuilder() + : null; + } else { + detectionExclusionDetectorActivitiesBuilder_.addAllMessages( + other.detectionExclusionDetectorActivities_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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.chronicle.v1.DetectionExclusionActivity + .DetectionExclusionDetectorActivity + m = + input.readMessage( + com.google.cloud.chronicle.v1.DetectionExclusionActivity + .DetectionExclusionDetectorActivity.parser(), + extensionRegistry); + if (detectionExclusionDetectorActivitiesBuilder_ == null) { + ensureDetectionExclusionDetectorActivitiesIsMutable(); + detectionExclusionDetectorActivities_.add(m); + } else { + detectionExclusionDetectorActivitiesBuilder_.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.chronicle.v1.DetectionExclusionActivity + .DetectionExclusionDetectorActivity> + detectionExclusionDetectorActivities_ = java.util.Collections.emptyList(); + + private void ensureDetectionExclusionDetectorActivitiesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + detectionExclusionDetectorActivities_ = + new java.util.ArrayList< + com.google.cloud.chronicle.v1.DetectionExclusionActivity + .DetectionExclusionDetectorActivity>(detectionExclusionDetectorActivities_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.chronicle.v1.DetectionExclusionActivity + .DetectionExclusionDetectorActivity, + com.google.cloud.chronicle.v1.DetectionExclusionActivity + .DetectionExclusionDetectorActivity.Builder, + com.google.cloud.chronicle.v1.DetectionExclusionActivity + .DetectionExclusionDetectorActivityOrBuilder> + detectionExclusionDetectorActivitiesBuilder_; + + /** + * + * + *
                +     * The activity for the detection exclusion broken down by detector.
                +     * 
                + * + * + * repeated .google.cloud.chronicle.v1.DetectionExclusionActivity.DetectionExclusionDetectorActivity detection_exclusion_detector_activities = 1; + * + */ + public java.util.List< + com.google.cloud.chronicle.v1.DetectionExclusionActivity + .DetectionExclusionDetectorActivity> + getDetectionExclusionDetectorActivitiesList() { + if (detectionExclusionDetectorActivitiesBuilder_ == null) { + return java.util.Collections.unmodifiableList(detectionExclusionDetectorActivities_); + } else { + return detectionExclusionDetectorActivitiesBuilder_.getMessageList(); + } + } + + /** + * + * + *
                +     * The activity for the detection exclusion broken down by detector.
                +     * 
                + * + * + * repeated .google.cloud.chronicle.v1.DetectionExclusionActivity.DetectionExclusionDetectorActivity detection_exclusion_detector_activities = 1; + * + */ + public int getDetectionExclusionDetectorActivitiesCount() { + if (detectionExclusionDetectorActivitiesBuilder_ == null) { + return detectionExclusionDetectorActivities_.size(); + } else { + return detectionExclusionDetectorActivitiesBuilder_.getCount(); + } + } + + /** + * + * + *
                +     * The activity for the detection exclusion broken down by detector.
                +     * 
                + * + * + * repeated .google.cloud.chronicle.v1.DetectionExclusionActivity.DetectionExclusionDetectorActivity detection_exclusion_detector_activities = 1; + * + */ + public com.google.cloud.chronicle.v1.DetectionExclusionActivity + .DetectionExclusionDetectorActivity + getDetectionExclusionDetectorActivities(int index) { + if (detectionExclusionDetectorActivitiesBuilder_ == null) { + return detectionExclusionDetectorActivities_.get(index); + } else { + return detectionExclusionDetectorActivitiesBuilder_.getMessage(index); + } + } + + /** + * + * + *
                +     * The activity for the detection exclusion broken down by detector.
                +     * 
                + * + * + * repeated .google.cloud.chronicle.v1.DetectionExclusionActivity.DetectionExclusionDetectorActivity detection_exclusion_detector_activities = 1; + * + */ + public Builder setDetectionExclusionDetectorActivities( + int index, + com.google.cloud.chronicle.v1.DetectionExclusionActivity.DetectionExclusionDetectorActivity + value) { + if (detectionExclusionDetectorActivitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDetectionExclusionDetectorActivitiesIsMutable(); + detectionExclusionDetectorActivities_.set(index, value); + onChanged(); + } else { + detectionExclusionDetectorActivitiesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                +     * The activity for the detection exclusion broken down by detector.
                +     * 
                + * + * + * repeated .google.cloud.chronicle.v1.DetectionExclusionActivity.DetectionExclusionDetectorActivity detection_exclusion_detector_activities = 1; + * + */ + public Builder setDetectionExclusionDetectorActivities( + int index, + com.google.cloud.chronicle.v1.DetectionExclusionActivity.DetectionExclusionDetectorActivity + .Builder + builderForValue) { + if (detectionExclusionDetectorActivitiesBuilder_ == null) { + ensureDetectionExclusionDetectorActivitiesIsMutable(); + detectionExclusionDetectorActivities_.set(index, builderForValue.build()); + onChanged(); + } else { + detectionExclusionDetectorActivitiesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                +     * The activity for the detection exclusion broken down by detector.
                +     * 
                + * + * + * repeated .google.cloud.chronicle.v1.DetectionExclusionActivity.DetectionExclusionDetectorActivity detection_exclusion_detector_activities = 1; + * + */ + public Builder addDetectionExclusionDetectorActivities( + com.google.cloud.chronicle.v1.DetectionExclusionActivity.DetectionExclusionDetectorActivity + value) { + if (detectionExclusionDetectorActivitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDetectionExclusionDetectorActivitiesIsMutable(); + detectionExclusionDetectorActivities_.add(value); + onChanged(); + } else { + detectionExclusionDetectorActivitiesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                +     * The activity for the detection exclusion broken down by detector.
                +     * 
                + * + * + * repeated .google.cloud.chronicle.v1.DetectionExclusionActivity.DetectionExclusionDetectorActivity detection_exclusion_detector_activities = 1; + * + */ + public Builder addDetectionExclusionDetectorActivities( + int index, + com.google.cloud.chronicle.v1.DetectionExclusionActivity.DetectionExclusionDetectorActivity + value) { + if (detectionExclusionDetectorActivitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDetectionExclusionDetectorActivitiesIsMutable(); + detectionExclusionDetectorActivities_.add(index, value); + onChanged(); + } else { + detectionExclusionDetectorActivitiesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                +     * The activity for the detection exclusion broken down by detector.
                +     * 
                + * + * + * repeated .google.cloud.chronicle.v1.DetectionExclusionActivity.DetectionExclusionDetectorActivity detection_exclusion_detector_activities = 1; + * + */ + public Builder addDetectionExclusionDetectorActivities( + com.google.cloud.chronicle.v1.DetectionExclusionActivity.DetectionExclusionDetectorActivity + .Builder + builderForValue) { + if (detectionExclusionDetectorActivitiesBuilder_ == null) { + ensureDetectionExclusionDetectorActivitiesIsMutable(); + detectionExclusionDetectorActivities_.add(builderForValue.build()); + onChanged(); + } else { + detectionExclusionDetectorActivitiesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                +     * The activity for the detection exclusion broken down by detector.
                +     * 
                + * + * + * repeated .google.cloud.chronicle.v1.DetectionExclusionActivity.DetectionExclusionDetectorActivity detection_exclusion_detector_activities = 1; + * + */ + public Builder addDetectionExclusionDetectorActivities( + int index, + com.google.cloud.chronicle.v1.DetectionExclusionActivity.DetectionExclusionDetectorActivity + .Builder + builderForValue) { + if (detectionExclusionDetectorActivitiesBuilder_ == null) { + ensureDetectionExclusionDetectorActivitiesIsMutable(); + detectionExclusionDetectorActivities_.add(index, builderForValue.build()); + onChanged(); + } else { + detectionExclusionDetectorActivitiesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                +     * The activity for the detection exclusion broken down by detector.
                +     * 
                + * + * + * repeated .google.cloud.chronicle.v1.DetectionExclusionActivity.DetectionExclusionDetectorActivity detection_exclusion_detector_activities = 1; + * + */ + public Builder addAllDetectionExclusionDetectorActivities( + java.lang.Iterable< + ? extends + com.google.cloud.chronicle.v1.DetectionExclusionActivity + .DetectionExclusionDetectorActivity> + values) { + if (detectionExclusionDetectorActivitiesBuilder_ == null) { + ensureDetectionExclusionDetectorActivitiesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, detectionExclusionDetectorActivities_); + onChanged(); + } else { + detectionExclusionDetectorActivitiesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                +     * The activity for the detection exclusion broken down by detector.
                +     * 
                + * + * + * repeated .google.cloud.chronicle.v1.DetectionExclusionActivity.DetectionExclusionDetectorActivity detection_exclusion_detector_activities = 1; + * + */ + public Builder clearDetectionExclusionDetectorActivities() { + if (detectionExclusionDetectorActivitiesBuilder_ == null) { + detectionExclusionDetectorActivities_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + detectionExclusionDetectorActivitiesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                +     * The activity for the detection exclusion broken down by detector.
                +     * 
                + * + * + * repeated .google.cloud.chronicle.v1.DetectionExclusionActivity.DetectionExclusionDetectorActivity detection_exclusion_detector_activities = 1; + * + */ + public Builder removeDetectionExclusionDetectorActivities(int index) { + if (detectionExclusionDetectorActivitiesBuilder_ == null) { + ensureDetectionExclusionDetectorActivitiesIsMutable(); + detectionExclusionDetectorActivities_.remove(index); + onChanged(); + } else { + detectionExclusionDetectorActivitiesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                +     * The activity for the detection exclusion broken down by detector.
                +     * 
                + * + * + * repeated .google.cloud.chronicle.v1.DetectionExclusionActivity.DetectionExclusionDetectorActivity detection_exclusion_detector_activities = 1; + * + */ + public com.google.cloud.chronicle.v1.DetectionExclusionActivity + .DetectionExclusionDetectorActivity.Builder + getDetectionExclusionDetectorActivitiesBuilder(int index) { + return internalGetDetectionExclusionDetectorActivitiesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                +     * The activity for the detection exclusion broken down by detector.
                +     * 
                + * + * + * repeated .google.cloud.chronicle.v1.DetectionExclusionActivity.DetectionExclusionDetectorActivity detection_exclusion_detector_activities = 1; + * + */ + public com.google.cloud.chronicle.v1.DetectionExclusionActivity + .DetectionExclusionDetectorActivityOrBuilder + getDetectionExclusionDetectorActivitiesOrBuilder(int index) { + if (detectionExclusionDetectorActivitiesBuilder_ == null) { + return detectionExclusionDetectorActivities_.get(index); + } else { + return detectionExclusionDetectorActivitiesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                +     * The activity for the detection exclusion broken down by detector.
                +     * 
                + * + * + * repeated .google.cloud.chronicle.v1.DetectionExclusionActivity.DetectionExclusionDetectorActivity detection_exclusion_detector_activities = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.chronicle.v1.DetectionExclusionActivity + .DetectionExclusionDetectorActivityOrBuilder> + getDetectionExclusionDetectorActivitiesOrBuilderList() { + if (detectionExclusionDetectorActivitiesBuilder_ != null) { + return detectionExclusionDetectorActivitiesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(detectionExclusionDetectorActivities_); + } + } + + /** + * + * + *
                +     * The activity for the detection exclusion broken down by detector.
                +     * 
                + * + * + * repeated .google.cloud.chronicle.v1.DetectionExclusionActivity.DetectionExclusionDetectorActivity detection_exclusion_detector_activities = 1; + * + */ + public com.google.cloud.chronicle.v1.DetectionExclusionActivity + .DetectionExclusionDetectorActivity.Builder + addDetectionExclusionDetectorActivitiesBuilder() { + return internalGetDetectionExclusionDetectorActivitiesFieldBuilder() + .addBuilder( + com.google.cloud.chronicle.v1.DetectionExclusionActivity + .DetectionExclusionDetectorActivity.getDefaultInstance()); + } + + /** + * + * + *
                +     * The activity for the detection exclusion broken down by detector.
                +     * 
                + * + * + * repeated .google.cloud.chronicle.v1.DetectionExclusionActivity.DetectionExclusionDetectorActivity detection_exclusion_detector_activities = 1; + * + */ + public com.google.cloud.chronicle.v1.DetectionExclusionActivity + .DetectionExclusionDetectorActivity.Builder + addDetectionExclusionDetectorActivitiesBuilder(int index) { + return internalGetDetectionExclusionDetectorActivitiesFieldBuilder() + .addBuilder( + index, + com.google.cloud.chronicle.v1.DetectionExclusionActivity + .DetectionExclusionDetectorActivity.getDefaultInstance()); + } + + /** + * + * + *
                +     * The activity for the detection exclusion broken down by detector.
                +     * 
                + * + * + * repeated .google.cloud.chronicle.v1.DetectionExclusionActivity.DetectionExclusionDetectorActivity detection_exclusion_detector_activities = 1; + * + */ + public java.util.List< + com.google.cloud.chronicle.v1.DetectionExclusionActivity + .DetectionExclusionDetectorActivity.Builder> + getDetectionExclusionDetectorActivitiesBuilderList() { + return internalGetDetectionExclusionDetectorActivitiesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.chronicle.v1.DetectionExclusionActivity + .DetectionExclusionDetectorActivity, + com.google.cloud.chronicle.v1.DetectionExclusionActivity + .DetectionExclusionDetectorActivity.Builder, + com.google.cloud.chronicle.v1.DetectionExclusionActivity + .DetectionExclusionDetectorActivityOrBuilder> + internalGetDetectionExclusionDetectorActivitiesFieldBuilder() { + if (detectionExclusionDetectorActivitiesBuilder_ == null) { + detectionExclusionDetectorActivitiesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.chronicle.v1.DetectionExclusionActivity + .DetectionExclusionDetectorActivity, + com.google.cloud.chronicle.v1.DetectionExclusionActivity + .DetectionExclusionDetectorActivity.Builder, + com.google.cloud.chronicle.v1.DetectionExclusionActivity + .DetectionExclusionDetectorActivityOrBuilder>( + detectionExclusionDetectorActivities_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + detectionExclusionDetectorActivities_ = null; + } + return detectionExclusionDetectorActivitiesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.chronicle.v1.DetectionExclusionActivity) + } + + // @@protoc_insertion_point(class_scope:google.cloud.chronicle.v1.DetectionExclusionActivity) + private static final com.google.cloud.chronicle.v1.DetectionExclusionActivity DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.chronicle.v1.DetectionExclusionActivity(); + } + + public static com.google.cloud.chronicle.v1.DetectionExclusionActivity getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DetectionExclusionActivity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.DetectionExclusionActivity getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DetectionExclusionActivityOrBuilder.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DetectionExclusionActivityOrBuilder.java new file mode 100644 index 000000000000..83db92bbb4f8 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DetectionExclusionActivityOrBuilder.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/chronicle/v1/findings_refinement.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +@com.google.protobuf.Generated +public interface DetectionExclusionActivityOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.chronicle.v1.DetectionExclusionActivity) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                +   * The activity for the detection exclusion broken down by detector.
                +   * 
                + * + * + * repeated .google.cloud.chronicle.v1.DetectionExclusionActivity.DetectionExclusionDetectorActivity detection_exclusion_detector_activities = 1; + * + */ + java.util.List< + com.google.cloud.chronicle.v1.DetectionExclusionActivity + .DetectionExclusionDetectorActivity> + getDetectionExclusionDetectorActivitiesList(); + + /** + * + * + *
                +   * The activity for the detection exclusion broken down by detector.
                +   * 
                + * + * + * repeated .google.cloud.chronicle.v1.DetectionExclusionActivity.DetectionExclusionDetectorActivity detection_exclusion_detector_activities = 1; + * + */ + com.google.cloud.chronicle.v1.DetectionExclusionActivity.DetectionExclusionDetectorActivity + getDetectionExclusionDetectorActivities(int index); + + /** + * + * + *
                +   * The activity for the detection exclusion broken down by detector.
                +   * 
                + * + * + * repeated .google.cloud.chronicle.v1.DetectionExclusionActivity.DetectionExclusionDetectorActivity detection_exclusion_detector_activities = 1; + * + */ + int getDetectionExclusionDetectorActivitiesCount(); + + /** + * + * + *
                +   * The activity for the detection exclusion broken down by detector.
                +   * 
                + * + * + * repeated .google.cloud.chronicle.v1.DetectionExclusionActivity.DetectionExclusionDetectorActivity detection_exclusion_detector_activities = 1; + * + */ + java.util.List< + ? extends + com.google.cloud.chronicle.v1.DetectionExclusionActivity + .DetectionExclusionDetectorActivityOrBuilder> + getDetectionExclusionDetectorActivitiesOrBuilderList(); + + /** + * + * + *
                +   * The activity for the detection exclusion broken down by detector.
                +   * 
                + * + * + * repeated .google.cloud.chronicle.v1.DetectionExclusionActivity.DetectionExclusionDetectorActivity detection_exclusion_detector_activities = 1; + * + */ + com.google.cloud.chronicle.v1.DetectionExclusionActivity + .DetectionExclusionDetectorActivityOrBuilder + getDetectionExclusionDetectorActivitiesOrBuilder(int index); +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DetectionExclusionApplication.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DetectionExclusionApplication.java new file mode 100644 index 000000000000..5e08461101d5 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DetectionExclusionApplication.java @@ -0,0 +1,1762 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/chronicle/v1/findings_refinement.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +/** + * + * + *
                + * Describes the detectors a detection exclusion is applied to.
                + * 
                + * + * Protobuf type {@code google.cloud.chronicle.v1.DetectionExclusionApplication} + */ +@com.google.protobuf.Generated +public final class DetectionExclusionApplication extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.chronicle.v1.DetectionExclusionApplication) + DetectionExclusionApplicationOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DetectionExclusionApplication"); + } + + // Use DetectionExclusionApplication.newBuilder() to construct. + private DetectionExclusionApplication(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DetectionExclusionApplication() { + curatedRuleSets_ = com.google.protobuf.LazyStringArrayList.emptyList(); + curatedRules_ = com.google.protobuf.LazyStringArrayList.emptyList(); + rules_ = com.google.protobuf.LazyStringArrayList.emptyList(); + deletedCuratedRuleSets_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_DetectionExclusionApplication_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_DetectionExclusionApplication_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.DetectionExclusionApplication.class, + com.google.cloud.chronicle.v1.DetectionExclusionApplication.Builder.class); + } + + public static final int CURATED_RULE_SETS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList curatedRuleSets_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
                +   * The CuratedRuleSets this detection exclusion applies to.
                +   * Format:
                +   * projects/{project}/locations/{location}/instances/{instance}/curatedRuleSetCategories/{category}/curatedRuleSets/{rule_set}
                +   * 
                + * + * repeated string curated_rule_sets = 1 [(.google.api.resource_reference) = { ... } + * + * @return A list containing the curatedRuleSets. + */ + public com.google.protobuf.ProtocolStringList getCuratedRuleSetsList() { + return curatedRuleSets_; + } + + /** + * + * + *
                +   * The CuratedRuleSets this detection exclusion applies to.
                +   * Format:
                +   * projects/{project}/locations/{location}/instances/{instance}/curatedRuleSetCategories/{category}/curatedRuleSets/{rule_set}
                +   * 
                + * + * repeated string curated_rule_sets = 1 [(.google.api.resource_reference) = { ... } + * + * @return The count of curatedRuleSets. + */ + public int getCuratedRuleSetsCount() { + return curatedRuleSets_.size(); + } + + /** + * + * + *
                +   * The CuratedRuleSets this detection exclusion applies to.
                +   * Format:
                +   * projects/{project}/locations/{location}/instances/{instance}/curatedRuleSetCategories/{category}/curatedRuleSets/{rule_set}
                +   * 
                + * + * repeated string curated_rule_sets = 1 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the element to return. + * @return The curatedRuleSets at the given index. + */ + public java.lang.String getCuratedRuleSets(int index) { + return curatedRuleSets_.get(index); + } + + /** + * + * + *
                +   * The CuratedRuleSets this detection exclusion applies to.
                +   * Format:
                +   * projects/{project}/locations/{location}/instances/{instance}/curatedRuleSetCategories/{category}/curatedRuleSets/{rule_set}
                +   * 
                + * + * repeated string curated_rule_sets = 1 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the value to return. + * @return The bytes of the curatedRuleSets at the given index. + */ + public com.google.protobuf.ByteString getCuratedRuleSetsBytes(int index) { + return curatedRuleSets_.getByteString(index); + } + + public static final int CURATED_RULES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList curatedRules_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
                +   * The CuratedRules this detection exclusion applies to.
                +   * Format:
                +   * projects/{project}/locations/{location}/instances/{instance}/curatedRules/{rule}
                +   * 
                + * + * repeated string curated_rules = 2 [(.google.api.resource_reference) = { ... } + * + * @return A list containing the curatedRules. + */ + public com.google.protobuf.ProtocolStringList getCuratedRulesList() { + return curatedRules_; + } + + /** + * + * + *
                +   * The CuratedRules this detection exclusion applies to.
                +   * Format:
                +   * projects/{project}/locations/{location}/instances/{instance}/curatedRules/{rule}
                +   * 
                + * + * repeated string curated_rules = 2 [(.google.api.resource_reference) = { ... } + * + * @return The count of curatedRules. + */ + public int getCuratedRulesCount() { + return curatedRules_.size(); + } + + /** + * + * + *
                +   * The CuratedRules this detection exclusion applies to.
                +   * Format:
                +   * projects/{project}/locations/{location}/instances/{instance}/curatedRules/{rule}
                +   * 
                + * + * repeated string curated_rules = 2 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the element to return. + * @return The curatedRules at the given index. + */ + public java.lang.String getCuratedRules(int index) { + return curatedRules_.get(index); + } + + /** + * + * + *
                +   * The CuratedRules this detection exclusion applies to.
                +   * Format:
                +   * projects/{project}/locations/{location}/instances/{instance}/curatedRules/{rule}
                +   * 
                + * + * repeated string curated_rules = 2 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the value to return. + * @return The bytes of the curatedRules at the given index. + */ + public com.google.protobuf.ByteString getCuratedRulesBytes(int index) { + return curatedRules_.getByteString(index); + } + + public static final int RULES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList rules_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
                +   * Optional. The Rules this detection exclusion applies to.
                +   * Format:
                +   * projects/{project}/locations/{location}/instances/{instance}/rules/{rule}
                +   * 
                + * + * + * repeated string rules = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the rules. + */ + public com.google.protobuf.ProtocolStringList getRulesList() { + return rules_; + } + + /** + * + * + *
                +   * Optional. The Rules this detection exclusion applies to.
                +   * Format:
                +   * projects/{project}/locations/{location}/instances/{instance}/rules/{rule}
                +   * 
                + * + * + * repeated string rules = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of rules. + */ + public int getRulesCount() { + return rules_.size(); + } + + /** + * + * + *
                +   * Optional. The Rules this detection exclusion applies to.
                +   * Format:
                +   * projects/{project}/locations/{location}/instances/{instance}/rules/{rule}
                +   * 
                + * + * + * repeated string rules = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The rules at the given index. + */ + public java.lang.String getRules(int index) { + return rules_.get(index); + } + + /** + * + * + *
                +   * Optional. The Rules this detection exclusion applies to.
                +   * Format:
                +   * projects/{project}/locations/{location}/instances/{instance}/rules/{rule}
                +   * 
                + * + * + * repeated string rules = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the rules at the given index. + */ + public com.google.protobuf.ByteString getRulesBytes(int index) { + return rules_.getByteString(index); + } + + public static final int DELETED_CURATED_RULE_SETS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList deletedCuratedRuleSets_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
                +   * Output only. The deleted CuratedRuleSets this detection exclusion applies
                +   * to. Indicates to the customer that the detection exclusion no longer
                +   * applies to the rule sets, so the detection exclusion should be updated.
                +   * Format:
                +   * projects/{project}/locations/{location}/instances/{instance}/curatedRuleSetCategories/{category}/curatedRuleSets/{rule_set}
                +   * 
                + * + * + * repeated string deleted_curated_rule_sets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the deletedCuratedRuleSets. + */ + public com.google.protobuf.ProtocolStringList getDeletedCuratedRuleSetsList() { + return deletedCuratedRuleSets_; + } + + /** + * + * + *
                +   * Output only. The deleted CuratedRuleSets this detection exclusion applies
                +   * to. Indicates to the customer that the detection exclusion no longer
                +   * applies to the rule sets, so the detection exclusion should be updated.
                +   * Format:
                +   * projects/{project}/locations/{location}/instances/{instance}/curatedRuleSetCategories/{category}/curatedRuleSets/{rule_set}
                +   * 
                + * + * + * repeated string deleted_curated_rule_sets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The count of deletedCuratedRuleSets. + */ + public int getDeletedCuratedRuleSetsCount() { + return deletedCuratedRuleSets_.size(); + } + + /** + * + * + *
                +   * Output only. The deleted CuratedRuleSets this detection exclusion applies
                +   * to. Indicates to the customer that the detection exclusion no longer
                +   * applies to the rule sets, so the detection exclusion should be updated.
                +   * Format:
                +   * projects/{project}/locations/{location}/instances/{instance}/curatedRuleSetCategories/{category}/curatedRuleSets/{rule_set}
                +   * 
                + * + * + * repeated string deleted_curated_rule_sets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The deletedCuratedRuleSets at the given index. + */ + public java.lang.String getDeletedCuratedRuleSets(int index) { + return deletedCuratedRuleSets_.get(index); + } + + /** + * + * + *
                +   * Output only. The deleted CuratedRuleSets this detection exclusion applies
                +   * to. Indicates to the customer that the detection exclusion no longer
                +   * applies to the rule sets, so the detection exclusion should be updated.
                +   * Format:
                +   * projects/{project}/locations/{location}/instances/{instance}/curatedRuleSetCategories/{category}/curatedRuleSets/{rule_set}
                +   * 
                + * + * + * repeated string deleted_curated_rule_sets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the deletedCuratedRuleSets at the given index. + */ + public com.google.protobuf.ByteString getDeletedCuratedRuleSetsBytes(int index) { + return deletedCuratedRuleSets_.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 < curatedRuleSets_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, curatedRuleSets_.getRaw(i)); + } + for (int i = 0; i < curatedRules_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, curatedRules_.getRaw(i)); + } + for (int i = 0; i < rules_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, rules_.getRaw(i)); + } + for (int i = 0; i < deletedCuratedRuleSets_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString( + output, 4, deletedCuratedRuleSets_.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 < curatedRuleSets_.size(); i++) { + dataSize += computeStringSizeNoTag(curatedRuleSets_.getRaw(i)); + } + size += dataSize; + size += 1 * getCuratedRuleSetsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < curatedRules_.size(); i++) { + dataSize += computeStringSizeNoTag(curatedRules_.getRaw(i)); + } + size += dataSize; + size += 1 * getCuratedRulesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < rules_.size(); i++) { + dataSize += computeStringSizeNoTag(rules_.getRaw(i)); + } + size += dataSize; + size += 1 * getRulesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < deletedCuratedRuleSets_.size(); i++) { + dataSize += computeStringSizeNoTag(deletedCuratedRuleSets_.getRaw(i)); + } + size += dataSize; + size += 1 * getDeletedCuratedRuleSetsList().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.chronicle.v1.DetectionExclusionApplication)) { + return super.equals(obj); + } + com.google.cloud.chronicle.v1.DetectionExclusionApplication other = + (com.google.cloud.chronicle.v1.DetectionExclusionApplication) obj; + + if (!getCuratedRuleSetsList().equals(other.getCuratedRuleSetsList())) return false; + if (!getCuratedRulesList().equals(other.getCuratedRulesList())) return false; + if (!getRulesList().equals(other.getRulesList())) return false; + if (!getDeletedCuratedRuleSetsList().equals(other.getDeletedCuratedRuleSetsList())) + return false; + if (!getUnknownFields().equals(other.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 (getCuratedRuleSetsCount() > 0) { + hash = (37 * hash) + CURATED_RULE_SETS_FIELD_NUMBER; + hash = (53 * hash) + getCuratedRuleSetsList().hashCode(); + } + if (getCuratedRulesCount() > 0) { + hash = (37 * hash) + CURATED_RULES_FIELD_NUMBER; + hash = (53 * hash) + getCuratedRulesList().hashCode(); + } + if (getRulesCount() > 0) { + hash = (37 * hash) + RULES_FIELD_NUMBER; + hash = (53 * hash) + getRulesList().hashCode(); + } + if (getDeletedCuratedRuleSetsCount() > 0) { + hash = (37 * hash) + DELETED_CURATED_RULE_SETS_FIELD_NUMBER; + hash = (53 * hash) + getDeletedCuratedRuleSetsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.chronicle.v1.DetectionExclusionApplication parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.DetectionExclusionApplication parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.DetectionExclusionApplication parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.DetectionExclusionApplication parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.DetectionExclusionApplication parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.DetectionExclusionApplication parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.DetectionExclusionApplication parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.DetectionExclusionApplication parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.DetectionExclusionApplication parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.DetectionExclusionApplication parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.DetectionExclusionApplication parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.DetectionExclusionApplication parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.chronicle.v1.DetectionExclusionApplication prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 detectors a detection exclusion is applied to.
                +   * 
                + * + * Protobuf type {@code google.cloud.chronicle.v1.DetectionExclusionApplication} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.chronicle.v1.DetectionExclusionApplication) + com.google.cloud.chronicle.v1.DetectionExclusionApplicationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_DetectionExclusionApplication_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_DetectionExclusionApplication_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.DetectionExclusionApplication.class, + com.google.cloud.chronicle.v1.DetectionExclusionApplication.Builder.class); + } + + // Construct using com.google.cloud.chronicle.v1.DetectionExclusionApplication.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + curatedRuleSets_ = com.google.protobuf.LazyStringArrayList.emptyList(); + curatedRules_ = com.google.protobuf.LazyStringArrayList.emptyList(); + rules_ = com.google.protobuf.LazyStringArrayList.emptyList(); + deletedCuratedRuleSets_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_DetectionExclusionApplication_descriptor; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.DetectionExclusionApplication getDefaultInstanceForType() { + return com.google.cloud.chronicle.v1.DetectionExclusionApplication.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.DetectionExclusionApplication build() { + com.google.cloud.chronicle.v1.DetectionExclusionApplication result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.DetectionExclusionApplication buildPartial() { + com.google.cloud.chronicle.v1.DetectionExclusionApplication result = + new com.google.cloud.chronicle.v1.DetectionExclusionApplication(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.chronicle.v1.DetectionExclusionApplication result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + curatedRuleSets_.makeImmutable(); + result.curatedRuleSets_ = curatedRuleSets_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + curatedRules_.makeImmutable(); + result.curatedRules_ = curatedRules_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + rules_.makeImmutable(); + result.rules_ = rules_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + deletedCuratedRuleSets_.makeImmutable(); + result.deletedCuratedRuleSets_ = deletedCuratedRuleSets_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.chronicle.v1.DetectionExclusionApplication) { + return mergeFrom((com.google.cloud.chronicle.v1.DetectionExclusionApplication) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.chronicle.v1.DetectionExclusionApplication other) { + if (other == com.google.cloud.chronicle.v1.DetectionExclusionApplication.getDefaultInstance()) + return this; + if (!other.curatedRuleSets_.isEmpty()) { + if (curatedRuleSets_.isEmpty()) { + curatedRuleSets_ = other.curatedRuleSets_; + bitField0_ |= 0x00000001; + } else { + ensureCuratedRuleSetsIsMutable(); + curatedRuleSets_.addAll(other.curatedRuleSets_); + } + onChanged(); + } + if (!other.curatedRules_.isEmpty()) { + if (curatedRules_.isEmpty()) { + curatedRules_ = other.curatedRules_; + bitField0_ |= 0x00000002; + } else { + ensureCuratedRulesIsMutable(); + curatedRules_.addAll(other.curatedRules_); + } + onChanged(); + } + if (!other.rules_.isEmpty()) { + if (rules_.isEmpty()) { + rules_ = other.rules_; + bitField0_ |= 0x00000004; + } else { + ensureRulesIsMutable(); + rules_.addAll(other.rules_); + } + onChanged(); + } + if (!other.deletedCuratedRuleSets_.isEmpty()) { + if (deletedCuratedRuleSets_.isEmpty()) { + deletedCuratedRuleSets_ = other.deletedCuratedRuleSets_; + bitField0_ |= 0x00000008; + } else { + ensureDeletedCuratedRuleSetsIsMutable(); + deletedCuratedRuleSets_.addAll(other.deletedCuratedRuleSets_); + } + 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(); + ensureCuratedRuleSetsIsMutable(); + curatedRuleSets_.add(s); + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureCuratedRulesIsMutable(); + curatedRules_.add(s); + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureRulesIsMutable(); + rules_.add(s); + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureDeletedCuratedRuleSetsIsMutable(); + deletedCuratedRuleSets_.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 com.google.protobuf.LazyStringArrayList curatedRuleSets_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureCuratedRuleSetsIsMutable() { + if (!curatedRuleSets_.isModifiable()) { + curatedRuleSets_ = new com.google.protobuf.LazyStringArrayList(curatedRuleSets_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
                +     * The CuratedRuleSets this detection exclusion applies to.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/curatedRuleSetCategories/{category}/curatedRuleSets/{rule_set}
                +     * 
                + * + * repeated string curated_rule_sets = 1 [(.google.api.resource_reference) = { ... } + * + * + * @return A list containing the curatedRuleSets. + */ + public com.google.protobuf.ProtocolStringList getCuratedRuleSetsList() { + curatedRuleSets_.makeImmutable(); + return curatedRuleSets_; + } + + /** + * + * + *
                +     * The CuratedRuleSets this detection exclusion applies to.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/curatedRuleSetCategories/{category}/curatedRuleSets/{rule_set}
                +     * 
                + * + * repeated string curated_rule_sets = 1 [(.google.api.resource_reference) = { ... } + * + * + * @return The count of curatedRuleSets. + */ + public int getCuratedRuleSetsCount() { + return curatedRuleSets_.size(); + } + + /** + * + * + *
                +     * The CuratedRuleSets this detection exclusion applies to.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/curatedRuleSetCategories/{category}/curatedRuleSets/{rule_set}
                +     * 
                + * + * repeated string curated_rule_sets = 1 [(.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The curatedRuleSets at the given index. + */ + public java.lang.String getCuratedRuleSets(int index) { + return curatedRuleSets_.get(index); + } + + /** + * + * + *
                +     * The CuratedRuleSets this detection exclusion applies to.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/curatedRuleSetCategories/{category}/curatedRuleSets/{rule_set}
                +     * 
                + * + * repeated string curated_rule_sets = 1 [(.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the curatedRuleSets at the given index. + */ + public com.google.protobuf.ByteString getCuratedRuleSetsBytes(int index) { + return curatedRuleSets_.getByteString(index); + } + + /** + * + * + *
                +     * The CuratedRuleSets this detection exclusion applies to.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/curatedRuleSetCategories/{category}/curatedRuleSets/{rule_set}
                +     * 
                + * + * repeated string curated_rule_sets = 1 [(.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The curatedRuleSets to set. + * @return This builder for chaining. + */ + public Builder setCuratedRuleSets(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCuratedRuleSetsIsMutable(); + curatedRuleSets_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                +     * The CuratedRuleSets this detection exclusion applies to.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/curatedRuleSetCategories/{category}/curatedRuleSets/{rule_set}
                +     * 
                + * + * repeated string curated_rule_sets = 1 [(.google.api.resource_reference) = { ... } + * + * + * @param value The curatedRuleSets to add. + * @return This builder for chaining. + */ + public Builder addCuratedRuleSets(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCuratedRuleSetsIsMutable(); + curatedRuleSets_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                +     * The CuratedRuleSets this detection exclusion applies to.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/curatedRuleSetCategories/{category}/curatedRuleSets/{rule_set}
                +     * 
                + * + * repeated string curated_rule_sets = 1 [(.google.api.resource_reference) = { ... } + * + * + * @param values The curatedRuleSets to add. + * @return This builder for chaining. + */ + public Builder addAllCuratedRuleSets(java.lang.Iterable values) { + ensureCuratedRuleSetsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, curatedRuleSets_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                +     * The CuratedRuleSets this detection exclusion applies to.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/curatedRuleSetCategories/{category}/curatedRuleSets/{rule_set}
                +     * 
                + * + * repeated string curated_rule_sets = 1 [(.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearCuratedRuleSets() { + curatedRuleSets_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
                +     * The CuratedRuleSets this detection exclusion applies to.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/curatedRuleSetCategories/{category}/curatedRuleSets/{rule_set}
                +     * 
                + * + * repeated string curated_rule_sets = 1 [(.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the curatedRuleSets to add. + * @return This builder for chaining. + */ + public Builder addCuratedRuleSetsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureCuratedRuleSetsIsMutable(); + curatedRuleSets_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList curatedRules_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureCuratedRulesIsMutable() { + if (!curatedRules_.isModifiable()) { + curatedRules_ = new com.google.protobuf.LazyStringArrayList(curatedRules_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
                +     * The CuratedRules this detection exclusion applies to.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/curatedRules/{rule}
                +     * 
                + * + * repeated string curated_rules = 2 [(.google.api.resource_reference) = { ... } + * + * @return A list containing the curatedRules. + */ + public com.google.protobuf.ProtocolStringList getCuratedRulesList() { + curatedRules_.makeImmutable(); + return curatedRules_; + } + + /** + * + * + *
                +     * The CuratedRules this detection exclusion applies to.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/curatedRules/{rule}
                +     * 
                + * + * repeated string curated_rules = 2 [(.google.api.resource_reference) = { ... } + * + * @return The count of curatedRules. + */ + public int getCuratedRulesCount() { + return curatedRules_.size(); + } + + /** + * + * + *
                +     * The CuratedRules this detection exclusion applies to.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/curatedRules/{rule}
                +     * 
                + * + * repeated string curated_rules = 2 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the element to return. + * @return The curatedRules at the given index. + */ + public java.lang.String getCuratedRules(int index) { + return curatedRules_.get(index); + } + + /** + * + * + *
                +     * The CuratedRules this detection exclusion applies to.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/curatedRules/{rule}
                +     * 
                + * + * repeated string curated_rules = 2 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the value to return. + * @return The bytes of the curatedRules at the given index. + */ + public com.google.protobuf.ByteString getCuratedRulesBytes(int index) { + return curatedRules_.getByteString(index); + } + + /** + * + * + *
                +     * The CuratedRules this detection exclusion applies to.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/curatedRules/{rule}
                +     * 
                + * + * repeated string curated_rules = 2 [(.google.api.resource_reference) = { ... } + * + * @param index The index to set the value at. + * @param value The curatedRules to set. + * @return This builder for chaining. + */ + public Builder setCuratedRules(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCuratedRulesIsMutable(); + curatedRules_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                +     * The CuratedRules this detection exclusion applies to.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/curatedRules/{rule}
                +     * 
                + * + * repeated string curated_rules = 2 [(.google.api.resource_reference) = { ... } + * + * @param value The curatedRules to add. + * @return This builder for chaining. + */ + public Builder addCuratedRules(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCuratedRulesIsMutable(); + curatedRules_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                +     * The CuratedRules this detection exclusion applies to.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/curatedRules/{rule}
                +     * 
                + * + * repeated string curated_rules = 2 [(.google.api.resource_reference) = { ... } + * + * @param values The curatedRules to add. + * @return This builder for chaining. + */ + public Builder addAllCuratedRules(java.lang.Iterable values) { + ensureCuratedRulesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, curatedRules_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                +     * The CuratedRules this detection exclusion applies to.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/curatedRules/{rule}
                +     * 
                + * + * repeated string curated_rules = 2 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearCuratedRules() { + curatedRules_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
                +     * The CuratedRules this detection exclusion applies to.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/curatedRules/{rule}
                +     * 
                + * + * repeated string curated_rules = 2 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes of the curatedRules to add. + * @return This builder for chaining. + */ + public Builder addCuratedRulesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureCuratedRulesIsMutable(); + curatedRules_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList rules_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureRulesIsMutable() { + if (!rules_.isModifiable()) { + rules_ = new com.google.protobuf.LazyStringArrayList(rules_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
                +     * Optional. The Rules this detection exclusion applies to.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/rules/{rule}
                +     * 
                + * + * + * repeated string rules = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the rules. + */ + public com.google.protobuf.ProtocolStringList getRulesList() { + rules_.makeImmutable(); + return rules_; + } + + /** + * + * + *
                +     * Optional. The Rules this detection exclusion applies to.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/rules/{rule}
                +     * 
                + * + * + * repeated string rules = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of rules. + */ + public int getRulesCount() { + return rules_.size(); + } + + /** + * + * + *
                +     * Optional. The Rules this detection exclusion applies to.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/rules/{rule}
                +     * 
                + * + * + * repeated string rules = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The rules at the given index. + */ + public java.lang.String getRules(int index) { + return rules_.get(index); + } + + /** + * + * + *
                +     * Optional. The Rules this detection exclusion applies to.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/rules/{rule}
                +     * 
                + * + * + * repeated string rules = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the rules at the given index. + */ + public com.google.protobuf.ByteString getRulesBytes(int index) { + return rules_.getByteString(index); + } + + /** + * + * + *
                +     * Optional. The Rules this detection exclusion applies to.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/rules/{rule}
                +     * 
                + * + * + * repeated string rules = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The rules to set. + * @return This builder for chaining. + */ + public Builder setRules(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRulesIsMutable(); + rules_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. The Rules this detection exclusion applies to.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/rules/{rule}
                +     * 
                + * + * + * repeated string rules = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The rules to add. + * @return This builder for chaining. + */ + public Builder addRules(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRulesIsMutable(); + rules_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. The Rules this detection exclusion applies to.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/rules/{rule}
                +     * 
                + * + * + * repeated string rules = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param values The rules to add. + * @return This builder for chaining. + */ + public Builder addAllRules(java.lang.Iterable values) { + ensureRulesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rules_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. The Rules this detection exclusion applies to.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/rules/{rule}
                +     * 
                + * + * + * repeated string rules = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRules() { + rules_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. The Rules this detection exclusion applies to.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/rules/{rule}
                +     * 
                + * + * + * repeated string rules = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the rules to add. + * @return This builder for chaining. + */ + public Builder addRulesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureRulesIsMutable(); + rules_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList deletedCuratedRuleSets_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureDeletedCuratedRuleSetsIsMutable() { + if (!deletedCuratedRuleSets_.isModifiable()) { + deletedCuratedRuleSets_ = + new com.google.protobuf.LazyStringArrayList(deletedCuratedRuleSets_); + } + bitField0_ |= 0x00000008; + } + + /** + * + * + *
                +     * Output only. The deleted CuratedRuleSets this detection exclusion applies
                +     * to. Indicates to the customer that the detection exclusion no longer
                +     * applies to the rule sets, so the detection exclusion should be updated.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/curatedRuleSetCategories/{category}/curatedRuleSets/{rule_set}
                +     * 
                + * + * + * repeated string deleted_curated_rule_sets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the deletedCuratedRuleSets. + */ + public com.google.protobuf.ProtocolStringList getDeletedCuratedRuleSetsList() { + deletedCuratedRuleSets_.makeImmutable(); + return deletedCuratedRuleSets_; + } + + /** + * + * + *
                +     * Output only. The deleted CuratedRuleSets this detection exclusion applies
                +     * to. Indicates to the customer that the detection exclusion no longer
                +     * applies to the rule sets, so the detection exclusion should be updated.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/curatedRuleSetCategories/{category}/curatedRuleSets/{rule_set}
                +     * 
                + * + * + * repeated string deleted_curated_rule_sets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The count of deletedCuratedRuleSets. + */ + public int getDeletedCuratedRuleSetsCount() { + return deletedCuratedRuleSets_.size(); + } + + /** + * + * + *
                +     * Output only. The deleted CuratedRuleSets this detection exclusion applies
                +     * to. Indicates to the customer that the detection exclusion no longer
                +     * applies to the rule sets, so the detection exclusion should be updated.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/curatedRuleSetCategories/{category}/curatedRuleSets/{rule_set}
                +     * 
                + * + * + * repeated string deleted_curated_rule_sets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The deletedCuratedRuleSets at the given index. + */ + public java.lang.String getDeletedCuratedRuleSets(int index) { + return deletedCuratedRuleSets_.get(index); + } + + /** + * + * + *
                +     * Output only. The deleted CuratedRuleSets this detection exclusion applies
                +     * to. Indicates to the customer that the detection exclusion no longer
                +     * applies to the rule sets, so the detection exclusion should be updated.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/curatedRuleSetCategories/{category}/curatedRuleSets/{rule_set}
                +     * 
                + * + * + * repeated string deleted_curated_rule_sets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the deletedCuratedRuleSets at the given index. + */ + public com.google.protobuf.ByteString getDeletedCuratedRuleSetsBytes(int index) { + return deletedCuratedRuleSets_.getByteString(index); + } + + /** + * + * + *
                +     * Output only. The deleted CuratedRuleSets this detection exclusion applies
                +     * to. Indicates to the customer that the detection exclusion no longer
                +     * applies to the rule sets, so the detection exclusion should be updated.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/curatedRuleSetCategories/{category}/curatedRuleSets/{rule_set}
                +     * 
                + * + * + * repeated string deleted_curated_rule_sets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The deletedCuratedRuleSets to set. + * @return This builder for chaining. + */ + public Builder setDeletedCuratedRuleSets(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeletedCuratedRuleSetsIsMutable(); + deletedCuratedRuleSets_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. The deleted CuratedRuleSets this detection exclusion applies
                +     * to. Indicates to the customer that the detection exclusion no longer
                +     * applies to the rule sets, so the detection exclusion should be updated.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/curatedRuleSetCategories/{category}/curatedRuleSets/{rule_set}
                +     * 
                + * + * + * repeated string deleted_curated_rule_sets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The deletedCuratedRuleSets to add. + * @return This builder for chaining. + */ + public Builder addDeletedCuratedRuleSets(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeletedCuratedRuleSetsIsMutable(); + deletedCuratedRuleSets_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. The deleted CuratedRuleSets this detection exclusion applies
                +     * to. Indicates to the customer that the detection exclusion no longer
                +     * applies to the rule sets, so the detection exclusion should be updated.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/curatedRuleSetCategories/{category}/curatedRuleSets/{rule_set}
                +     * 
                + * + * + * repeated string deleted_curated_rule_sets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param values The deletedCuratedRuleSets to add. + * @return This builder for chaining. + */ + public Builder addAllDeletedCuratedRuleSets(java.lang.Iterable values) { + ensureDeletedCuratedRuleSetsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, deletedCuratedRuleSets_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. The deleted CuratedRuleSets this detection exclusion applies
                +     * to. Indicates to the customer that the detection exclusion no longer
                +     * applies to the rule sets, so the detection exclusion should be updated.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/curatedRuleSetCategories/{category}/curatedRuleSets/{rule_set}
                +     * 
                + * + * + * repeated string deleted_curated_rule_sets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearDeletedCuratedRuleSets() { + deletedCuratedRuleSets_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. The deleted CuratedRuleSets this detection exclusion applies
                +     * to. Indicates to the customer that the detection exclusion no longer
                +     * applies to the rule sets, so the detection exclusion should be updated.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/curatedRuleSetCategories/{category}/curatedRuleSets/{rule_set}
                +     * 
                + * + * + * repeated string deleted_curated_rule_sets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the deletedCuratedRuleSets to add. + * @return This builder for chaining. + */ + public Builder addDeletedCuratedRuleSetsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureDeletedCuratedRuleSetsIsMutable(); + deletedCuratedRuleSets_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.chronicle.v1.DetectionExclusionApplication) + } + + // @@protoc_insertion_point(class_scope:google.cloud.chronicle.v1.DetectionExclusionApplication) + private static final com.google.cloud.chronicle.v1.DetectionExclusionApplication DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.chronicle.v1.DetectionExclusionApplication(); + } + + public static com.google.cloud.chronicle.v1.DetectionExclusionApplication getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DetectionExclusionApplication parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.DetectionExclusionApplication getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DetectionExclusionApplicationOrBuilder.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DetectionExclusionApplicationOrBuilder.java new file mode 100644 index 000000000000..8a443492602d --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DetectionExclusionApplicationOrBuilder.java @@ -0,0 +1,300 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/chronicle/v1/findings_refinement.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +@com.google.protobuf.Generated +public interface DetectionExclusionApplicationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.chronicle.v1.DetectionExclusionApplication) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                +   * The CuratedRuleSets this detection exclusion applies to.
                +   * Format:
                +   * projects/{project}/locations/{location}/instances/{instance}/curatedRuleSetCategories/{category}/curatedRuleSets/{rule_set}
                +   * 
                + * + * repeated string curated_rule_sets = 1 [(.google.api.resource_reference) = { ... } + * + * @return A list containing the curatedRuleSets. + */ + java.util.List getCuratedRuleSetsList(); + + /** + * + * + *
                +   * The CuratedRuleSets this detection exclusion applies to.
                +   * Format:
                +   * projects/{project}/locations/{location}/instances/{instance}/curatedRuleSetCategories/{category}/curatedRuleSets/{rule_set}
                +   * 
                + * + * repeated string curated_rule_sets = 1 [(.google.api.resource_reference) = { ... } + * + * @return The count of curatedRuleSets. + */ + int getCuratedRuleSetsCount(); + + /** + * + * + *
                +   * The CuratedRuleSets this detection exclusion applies to.
                +   * Format:
                +   * projects/{project}/locations/{location}/instances/{instance}/curatedRuleSetCategories/{category}/curatedRuleSets/{rule_set}
                +   * 
                + * + * repeated string curated_rule_sets = 1 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the element to return. + * @return The curatedRuleSets at the given index. + */ + java.lang.String getCuratedRuleSets(int index); + + /** + * + * + *
                +   * The CuratedRuleSets this detection exclusion applies to.
                +   * Format:
                +   * projects/{project}/locations/{location}/instances/{instance}/curatedRuleSetCategories/{category}/curatedRuleSets/{rule_set}
                +   * 
                + * + * repeated string curated_rule_sets = 1 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the value to return. + * @return The bytes of the curatedRuleSets at the given index. + */ + com.google.protobuf.ByteString getCuratedRuleSetsBytes(int index); + + /** + * + * + *
                +   * The CuratedRules this detection exclusion applies to.
                +   * Format:
                +   * projects/{project}/locations/{location}/instances/{instance}/curatedRules/{rule}
                +   * 
                + * + * repeated string curated_rules = 2 [(.google.api.resource_reference) = { ... } + * + * @return A list containing the curatedRules. + */ + java.util.List getCuratedRulesList(); + + /** + * + * + *
                +   * The CuratedRules this detection exclusion applies to.
                +   * Format:
                +   * projects/{project}/locations/{location}/instances/{instance}/curatedRules/{rule}
                +   * 
                + * + * repeated string curated_rules = 2 [(.google.api.resource_reference) = { ... } + * + * @return The count of curatedRules. + */ + int getCuratedRulesCount(); + + /** + * + * + *
                +   * The CuratedRules this detection exclusion applies to.
                +   * Format:
                +   * projects/{project}/locations/{location}/instances/{instance}/curatedRules/{rule}
                +   * 
                + * + * repeated string curated_rules = 2 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the element to return. + * @return The curatedRules at the given index. + */ + java.lang.String getCuratedRules(int index); + + /** + * + * + *
                +   * The CuratedRules this detection exclusion applies to.
                +   * Format:
                +   * projects/{project}/locations/{location}/instances/{instance}/curatedRules/{rule}
                +   * 
                + * + * repeated string curated_rules = 2 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the value to return. + * @return The bytes of the curatedRules at the given index. + */ + com.google.protobuf.ByteString getCuratedRulesBytes(int index); + + /** + * + * + *
                +   * Optional. The Rules this detection exclusion applies to.
                +   * Format:
                +   * projects/{project}/locations/{location}/instances/{instance}/rules/{rule}
                +   * 
                + * + * + * repeated string rules = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the rules. + */ + java.util.List getRulesList(); + + /** + * + * + *
                +   * Optional. The Rules this detection exclusion applies to.
                +   * Format:
                +   * projects/{project}/locations/{location}/instances/{instance}/rules/{rule}
                +   * 
                + * + * + * repeated string rules = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of rules. + */ + int getRulesCount(); + + /** + * + * + *
                +   * Optional. The Rules this detection exclusion applies to.
                +   * Format:
                +   * projects/{project}/locations/{location}/instances/{instance}/rules/{rule}
                +   * 
                + * + * + * repeated string rules = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The rules at the given index. + */ + java.lang.String getRules(int index); + + /** + * + * + *
                +   * Optional. The Rules this detection exclusion applies to.
                +   * Format:
                +   * projects/{project}/locations/{location}/instances/{instance}/rules/{rule}
                +   * 
                + * + * + * repeated string rules = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the rules at the given index. + */ + com.google.protobuf.ByteString getRulesBytes(int index); + + /** + * + * + *
                +   * Output only. The deleted CuratedRuleSets this detection exclusion applies
                +   * to. Indicates to the customer that the detection exclusion no longer
                +   * applies to the rule sets, so the detection exclusion should be updated.
                +   * Format:
                +   * projects/{project}/locations/{location}/instances/{instance}/curatedRuleSetCategories/{category}/curatedRuleSets/{rule_set}
                +   * 
                + * + * + * repeated string deleted_curated_rule_sets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the deletedCuratedRuleSets. + */ + java.util.List getDeletedCuratedRuleSetsList(); + + /** + * + * + *
                +   * Output only. The deleted CuratedRuleSets this detection exclusion applies
                +   * to. Indicates to the customer that the detection exclusion no longer
                +   * applies to the rule sets, so the detection exclusion should be updated.
                +   * Format:
                +   * projects/{project}/locations/{location}/instances/{instance}/curatedRuleSetCategories/{category}/curatedRuleSets/{rule_set}
                +   * 
                + * + * + * repeated string deleted_curated_rule_sets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The count of deletedCuratedRuleSets. + */ + int getDeletedCuratedRuleSetsCount(); + + /** + * + * + *
                +   * Output only. The deleted CuratedRuleSets this detection exclusion applies
                +   * to. Indicates to the customer that the detection exclusion no longer
                +   * applies to the rule sets, so the detection exclusion should be updated.
                +   * Format:
                +   * projects/{project}/locations/{location}/instances/{instance}/curatedRuleSetCategories/{category}/curatedRuleSets/{rule_set}
                +   * 
                + * + * + * repeated string deleted_curated_rule_sets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The deletedCuratedRuleSets at the given index. + */ + java.lang.String getDeletedCuratedRuleSets(int index); + + /** + * + * + *
                +   * Output only. The deleted CuratedRuleSets this detection exclusion applies
                +   * to. Indicates to the customer that the detection exclusion no longer
                +   * applies to the rule sets, so the detection exclusion should be updated.
                +   * Format:
                +   * projects/{project}/locations/{location}/instances/{instance}/curatedRuleSetCategories/{category}/curatedRuleSets/{rule_set}
                +   * 
                + * + * + * repeated string deleted_curated_rule_sets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the deletedCuratedRuleSets at the given index. + */ + com.google.protobuf.ByteString getDeletedCuratedRuleSetsBytes(int index); +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/FindingsRefinement.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/FindingsRefinement.java new file mode 100644 index 000000000000..dcf390f4dd6e --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/FindingsRefinement.java @@ -0,0 +1,2438 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/chronicle/v1/findings_refinement.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +/** + * + * + *
                + * Represents a set of logic conditions used to refine various types of
                + * findings such as curated rule detections.
                + * 
                + * + * Protobuf type {@code google.cloud.chronicle.v1.FindingsRefinement} + */ +@com.google.protobuf.Generated +public final class FindingsRefinement extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.chronicle.v1.FindingsRefinement) + FindingsRefinementOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "FindingsRefinement"); + } + + // Use FindingsRefinement.newBuilder() to construct. + private FindingsRefinement(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FindingsRefinement() { + name_ = ""; + displayName_ = ""; + type_ = 0; + query_ = ""; + outcomeFilters_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_FindingsRefinement_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_FindingsRefinement_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.FindingsRefinement.class, + com.google.cloud.chronicle.v1.FindingsRefinement.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                +   * Full resource name for the findings refinement.
                +   * Format:
                +   * projects/{project}/locations/{region}/instances/{instance}/findingsRefinements/{findings_refinement}
                +   * 
                + * + * 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; + } + } + + /** + * + * + *
                +   * Full resource name for the findings refinement.
                +   * Format:
                +   * projects/{project}/locations/{region}/instances/{instance}/findingsRefinements/{findings_refinement}
                +   * 
                + * + * 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 DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
                +   * Display name of the findings refinement.
                +   * 
                + * + * 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; + } + } + + /** + * + * + *
                +   * Display name of the findings refinement.
                +   * 
                + * + * 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 TYPE_FIELD_NUMBER = 3; + private int type_ = 0; + + /** + * + * + *
                +   * The type of findings refinement.
                +   * 
                + * + * .google.cloud.chronicle.v1.FindingsRefinementType type = 3; + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
                +   * The type of findings refinement.
                +   * 
                + * + * .google.cloud.chronicle.v1.FindingsRefinementType type = 3; + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.FindingsRefinementType getType() { + com.google.cloud.chronicle.v1.FindingsRefinementType result = + com.google.cloud.chronicle.v1.FindingsRefinementType.forNumber(type_); + return result == null + ? com.google.cloud.chronicle.v1.FindingsRefinementType.UNRECOGNIZED + : result; + } + + public static final int CREATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
                +   * Output only. The timestamp of when the findings refinement 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. The timestamp of when the findings refinement 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. The timestamp of when the findings refinement 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. The timestamp of when the findings refinement was last
                +   * 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. The timestamp of when the findings refinement was last
                +   * 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. The timestamp of when the findings refinement was last
                +   * 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_; + } + + public static final int QUERY_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object query_ = ""; + + /** + * + * + *
                +   * The query for the findings refinement. Works in conjunction with the type
                +   * field to determine the findings refinement behavior. The syntax of this
                +   * query is the same as a UDM search string. See the following for more
                +   * information:
                +   * https://cloud.google.com/chronicle/docs/investigation/udm-search
                +   * 
                + * + * string query = 7; + * + * @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; + } + } + + /** + * + * + *
                +   * The query for the findings refinement. Works in conjunction with the type
                +   * field to determine the findings refinement behavior. The syntax of this
                +   * query is the same as a UDM search string. See the following for more
                +   * information:
                +   * https://cloud.google.com/chronicle/docs/investigation/udm-search
                +   * 
                + * + * string query = 7; + * + * @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 OUTCOME_FILTERS_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private java.util.List outcomeFilters_; + + /** + * + * + *
                +   * Optional. The outcome filters for the findings refinement. These allow you
                +   * to specify filters that are applied to the outcome variables in the
                +   * detection. All filters must be true for a detection to match the findings
                +   * refinement.
                +   * 
                + * + * + * repeated .google.cloud.chronicle.v1.OutcomeFilter outcome_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getOutcomeFiltersList() { + return outcomeFilters_; + } + + /** + * + * + *
                +   * Optional. The outcome filters for the findings refinement. These allow you
                +   * to specify filters that are applied to the outcome variables in the
                +   * detection. All filters must be true for a detection to match the findings
                +   * refinement.
                +   * 
                + * + * + * repeated .google.cloud.chronicle.v1.OutcomeFilter outcome_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getOutcomeFiltersOrBuilderList() { + return outcomeFilters_; + } + + /** + * + * + *
                +   * Optional. The outcome filters for the findings refinement. These allow you
                +   * to specify filters that are applied to the outcome variables in the
                +   * detection. All filters must be true for a detection to match the findings
                +   * refinement.
                +   * 
                + * + * + * repeated .google.cloud.chronicle.v1.OutcomeFilter outcome_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getOutcomeFiltersCount() { + return outcomeFilters_.size(); + } + + /** + * + * + *
                +   * Optional. The outcome filters for the findings refinement. These allow you
                +   * to specify filters that are applied to the outcome variables in the
                +   * detection. All filters must be true for a detection to match the findings
                +   * refinement.
                +   * 
                + * + * + * repeated .google.cloud.chronicle.v1.OutcomeFilter outcome_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.OutcomeFilter getOutcomeFilters(int index) { + return outcomeFilters_.get(index); + } + + /** + * + * + *
                +   * Optional. The outcome filters for the findings refinement. These allow you
                +   * to specify filters that are applied to the outcome variables in the
                +   * detection. All filters must be true for a detection to match the findings
                +   * refinement.
                +   * 
                + * + * + * repeated .google.cloud.chronicle.v1.OutcomeFilter outcome_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.OutcomeFilterOrBuilder getOutcomeFiltersOrBuilder( + int index) { + return outcomeFilters_.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 (type_ + != com.google.cloud.chronicle.v1.FindingsRefinementType.FINDINGS_REFINEMENT_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, type_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(query_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, query_); + } + for (int i = 0; i < outcomeFilters_.size(); i++) { + output.writeMessage(8, outcomeFilters_.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 (type_ + != com.google.cloud.chronicle.v1.FindingsRefinementType.FINDINGS_REFINEMENT_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, type_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(query_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, query_); + } + for (int i = 0; i < outcomeFilters_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, outcomeFilters_.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.chronicle.v1.FindingsRefinement)) { + return super.equals(obj); + } + com.google.cloud.chronicle.v1.FindingsRefinement other = + (com.google.cloud.chronicle.v1.FindingsRefinement) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (type_ != other.type_) 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 (!getQuery().equals(other.getQuery())) return false; + if (!getOutcomeFiltersList().equals(other.getOutcomeFiltersList())) return false; + if (!getUnknownFields().equals(other.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) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + 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) + QUERY_FIELD_NUMBER; + hash = (53 * hash) + getQuery().hashCode(); + if (getOutcomeFiltersCount() > 0) { + hash = (37 * hash) + OUTCOME_FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getOutcomeFiltersList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.chronicle.v1.FindingsRefinement parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.FindingsRefinement parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.FindingsRefinement parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.FindingsRefinement parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.FindingsRefinement parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.FindingsRefinement parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.FindingsRefinement parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.FindingsRefinement parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.FindingsRefinement parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.FindingsRefinement parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.FindingsRefinement parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.FindingsRefinement parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.chronicle.v1.FindingsRefinement prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 set of logic conditions used to refine various types of
                +   * findings such as curated rule detections.
                +   * 
                + * + * Protobuf type {@code google.cloud.chronicle.v1.FindingsRefinement} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.chronicle.v1.FindingsRefinement) + com.google.cloud.chronicle.v1.FindingsRefinementOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_FindingsRefinement_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_FindingsRefinement_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.FindingsRefinement.class, + com.google.cloud.chronicle.v1.FindingsRefinement.Builder.class); + } + + // Construct using com.google.cloud.chronicle.v1.FindingsRefinement.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(); + internalGetOutcomeFiltersFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + type_ = 0; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + query_ = ""; + if (outcomeFiltersBuilder_ == null) { + outcomeFilters_ = java.util.Collections.emptyList(); + } else { + outcomeFilters_ = null; + outcomeFiltersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000040); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_FindingsRefinement_descriptor; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.FindingsRefinement getDefaultInstanceForType() { + return com.google.cloud.chronicle.v1.FindingsRefinement.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.FindingsRefinement build() { + com.google.cloud.chronicle.v1.FindingsRefinement result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.FindingsRefinement buildPartial() { + com.google.cloud.chronicle.v1.FindingsRefinement result = + new com.google.cloud.chronicle.v1.FindingsRefinement(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.chronicle.v1.FindingsRefinement result) { + if (outcomeFiltersBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0)) { + outcomeFilters_ = java.util.Collections.unmodifiableList(outcomeFilters_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.outcomeFilters_ = outcomeFilters_; + } else { + result.outcomeFilters_ = outcomeFiltersBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.chronicle.v1.FindingsRefinement 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.type_ = type_; + } + 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; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.query_ = query_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.chronicle.v1.FindingsRefinement) { + return mergeFrom((com.google.cloud.chronicle.v1.FindingsRefinement) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.chronicle.v1.FindingsRefinement other) { + if (other == com.google.cloud.chronicle.v1.FindingsRefinement.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.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.getQuery().isEmpty()) { + query_ = other.query_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (outcomeFiltersBuilder_ == null) { + if (!other.outcomeFilters_.isEmpty()) { + if (outcomeFilters_.isEmpty()) { + outcomeFilters_ = other.outcomeFilters_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureOutcomeFiltersIsMutable(); + outcomeFilters_.addAll(other.outcomeFilters_); + } + onChanged(); + } + } else { + if (!other.outcomeFilters_.isEmpty()) { + if (outcomeFiltersBuilder_.isEmpty()) { + outcomeFiltersBuilder_.dispose(); + outcomeFiltersBuilder_ = null; + outcomeFilters_ = other.outcomeFilters_; + bitField0_ = (bitField0_ & ~0x00000040); + outcomeFiltersBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetOutcomeFiltersFieldBuilder() + : null; + } else { + outcomeFiltersBuilder_.addAllMessages(other.outcomeFilters_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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: + { + type_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 58: + { + query_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 58 + case 66: + { + com.google.cloud.chronicle.v1.OutcomeFilter m = + input.readMessage( + com.google.cloud.chronicle.v1.OutcomeFilter.parser(), extensionRegistry); + if (outcomeFiltersBuilder_ == null) { + ensureOutcomeFiltersIsMutable(); + outcomeFilters_.add(m); + } else { + outcomeFiltersBuilder_.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 java.lang.Object name_ = ""; + + /** + * + * + *
                +     * Full resource name for the findings refinement.
                +     * Format:
                +     * projects/{project}/locations/{region}/instances/{instance}/findingsRefinements/{findings_refinement}
                +     * 
                + * + * 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; + } + } + + /** + * + * + *
                +     * Full resource name for the findings refinement.
                +     * Format:
                +     * projects/{project}/locations/{region}/instances/{instance}/findingsRefinements/{findings_refinement}
                +     * 
                + * + * 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; + } + } + + /** + * + * + *
                +     * Full resource name for the findings refinement.
                +     * Format:
                +     * projects/{project}/locations/{region}/instances/{instance}/findingsRefinements/{findings_refinement}
                +     * 
                + * + * 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; + } + + /** + * + * + *
                +     * Full resource name for the findings refinement.
                +     * Format:
                +     * projects/{project}/locations/{region}/instances/{instance}/findingsRefinements/{findings_refinement}
                +     * 
                + * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Full resource name for the findings refinement.
                +     * Format:
                +     * projects/{project}/locations/{region}/instances/{instance}/findingsRefinements/{findings_refinement}
                +     * 
                + * + * 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_ = ""; + + /** + * + * + *
                +     * Display name of the findings refinement.
                +     * 
                + * + * 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; + } + } + + /** + * + * + *
                +     * Display name of the findings refinement.
                +     * 
                + * + * 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; + } + } + + /** + * + * + *
                +     * Display name of the findings refinement.
                +     * 
                + * + * 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; + } + + /** + * + * + *
                +     * Display name of the findings refinement.
                +     * 
                + * + * string display_name = 2; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Display name of the findings refinement.
                +     * 
                + * + * 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 int type_ = 0; + + /** + * + * + *
                +     * The type of findings refinement.
                +     * 
                + * + * .google.cloud.chronicle.v1.FindingsRefinementType type = 3; + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
                +     * The type of findings refinement.
                +     * 
                + * + * .google.cloud.chronicle.v1.FindingsRefinementType type = 3; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                +     * The type of findings refinement.
                +     * 
                + * + * .google.cloud.chronicle.v1.FindingsRefinementType type = 3; + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.FindingsRefinementType getType() { + com.google.cloud.chronicle.v1.FindingsRefinementType result = + com.google.cloud.chronicle.v1.FindingsRefinementType.forNumber(type_); + return result == null + ? com.google.cloud.chronicle.v1.FindingsRefinementType.UNRECOGNIZED + : result; + } + + /** + * + * + *
                +     * The type of findings refinement.
                +     * 
                + * + * .google.cloud.chronicle.v1.FindingsRefinementType type = 3; + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(com.google.cloud.chronicle.v1.FindingsRefinementType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + type_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                +     * The type of findings refinement.
                +     * 
                + * + * .google.cloud.chronicle.v1.FindingsRefinementType type = 3; + * + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000004); + type_ = 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_; + + /** + * + * + *
                +     * Output only. The timestamp of when the findings refinement 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. The timestamp of when the findings refinement 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. The timestamp of when the findings refinement 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. The timestamp of when the findings refinement 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. The timestamp of when the findings refinement 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. The timestamp of when the findings refinement 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. The timestamp of when the findings refinement 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. The timestamp of when the findings refinement 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. The timestamp of when the findings refinement 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. The timestamp of when the findings refinement was last
                +     * 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. The timestamp of when the findings refinement was last
                +     * 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. The timestamp of when the findings refinement was last
                +     * 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. The timestamp of when the findings refinement was last
                +     * 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. The timestamp of when the findings refinement was last
                +     * 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. The timestamp of when the findings refinement was last
                +     * 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. The timestamp of when the findings refinement was last
                +     * 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. The timestamp of when the findings refinement was last
                +     * 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. The timestamp of when the findings refinement was last
                +     * 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_; + } + + private java.lang.Object query_ = ""; + + /** + * + * + *
                +     * The query for the findings refinement. Works in conjunction with the type
                +     * field to determine the findings refinement behavior. The syntax of this
                +     * query is the same as a UDM search string. See the following for more
                +     * information:
                +     * https://cloud.google.com/chronicle/docs/investigation/udm-search
                +     * 
                + * + * string query = 7; + * + * @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; + } + } + + /** + * + * + *
                +     * The query for the findings refinement. Works in conjunction with the type
                +     * field to determine the findings refinement behavior. The syntax of this
                +     * query is the same as a UDM search string. See the following for more
                +     * information:
                +     * https://cloud.google.com/chronicle/docs/investigation/udm-search
                +     * 
                + * + * string query = 7; + * + * @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; + } + } + + /** + * + * + *
                +     * The query for the findings refinement. Works in conjunction with the type
                +     * field to determine the findings refinement behavior. The syntax of this
                +     * query is the same as a UDM search string. See the following for more
                +     * information:
                +     * https://cloud.google.com/chronicle/docs/investigation/udm-search
                +     * 
                + * + * string query = 7; + * + * @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_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                +     * The query for the findings refinement. Works in conjunction with the type
                +     * field to determine the findings refinement behavior. The syntax of this
                +     * query is the same as a UDM search string. See the following for more
                +     * information:
                +     * https://cloud.google.com/chronicle/docs/investigation/udm-search
                +     * 
                + * + * string query = 7; + * + * @return This builder for chaining. + */ + public Builder clearQuery() { + query_ = getDefaultInstance().getQuery(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
                +     * The query for the findings refinement. Works in conjunction with the type
                +     * field to determine the findings refinement behavior. The syntax of this
                +     * query is the same as a UDM search string. See the following for more
                +     * information:
                +     * https://cloud.google.com/chronicle/docs/investigation/udm-search
                +     * 
                + * + * string query = 7; + * + * @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_ |= 0x00000020; + onChanged(); + return this; + } + + private java.util.List outcomeFilters_ = + java.util.Collections.emptyList(); + + private void ensureOutcomeFiltersIsMutable() { + if (!((bitField0_ & 0x00000040) != 0)) { + outcomeFilters_ = + new java.util.ArrayList(outcomeFilters_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.chronicle.v1.OutcomeFilter, + com.google.cloud.chronicle.v1.OutcomeFilter.Builder, + com.google.cloud.chronicle.v1.OutcomeFilterOrBuilder> + outcomeFiltersBuilder_; + + /** + * + * + *
                +     * Optional. The outcome filters for the findings refinement. These allow you
                +     * to specify filters that are applied to the outcome variables in the
                +     * detection. All filters must be true for a detection to match the findings
                +     * refinement.
                +     * 
                + * + * + * repeated .google.cloud.chronicle.v1.OutcomeFilter outcome_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getOutcomeFiltersList() { + if (outcomeFiltersBuilder_ == null) { + return java.util.Collections.unmodifiableList(outcomeFilters_); + } else { + return outcomeFiltersBuilder_.getMessageList(); + } + } + + /** + * + * + *
                +     * Optional. The outcome filters for the findings refinement. These allow you
                +     * to specify filters that are applied to the outcome variables in the
                +     * detection. All filters must be true for a detection to match the findings
                +     * refinement.
                +     * 
                + * + * + * repeated .google.cloud.chronicle.v1.OutcomeFilter outcome_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getOutcomeFiltersCount() { + if (outcomeFiltersBuilder_ == null) { + return outcomeFilters_.size(); + } else { + return outcomeFiltersBuilder_.getCount(); + } + } + + /** + * + * + *
                +     * Optional. The outcome filters for the findings refinement. These allow you
                +     * to specify filters that are applied to the outcome variables in the
                +     * detection. All filters must be true for a detection to match the findings
                +     * refinement.
                +     * 
                + * + * + * repeated .google.cloud.chronicle.v1.OutcomeFilter outcome_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.chronicle.v1.OutcomeFilter getOutcomeFilters(int index) { + if (outcomeFiltersBuilder_ == null) { + return outcomeFilters_.get(index); + } else { + return outcomeFiltersBuilder_.getMessage(index); + } + } + + /** + * + * + *
                +     * Optional. The outcome filters for the findings refinement. These allow you
                +     * to specify filters that are applied to the outcome variables in the
                +     * detection. All filters must be true for a detection to match the findings
                +     * refinement.
                +     * 
                + * + * + * repeated .google.cloud.chronicle.v1.OutcomeFilter outcome_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOutcomeFilters(int index, com.google.cloud.chronicle.v1.OutcomeFilter value) { + if (outcomeFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutcomeFiltersIsMutable(); + outcomeFilters_.set(index, value); + onChanged(); + } else { + outcomeFiltersBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                +     * Optional. The outcome filters for the findings refinement. These allow you
                +     * to specify filters that are applied to the outcome variables in the
                +     * detection. All filters must be true for a detection to match the findings
                +     * refinement.
                +     * 
                + * + * + * repeated .google.cloud.chronicle.v1.OutcomeFilter outcome_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOutcomeFilters( + int index, com.google.cloud.chronicle.v1.OutcomeFilter.Builder builderForValue) { + if (outcomeFiltersBuilder_ == null) { + ensureOutcomeFiltersIsMutable(); + outcomeFilters_.set(index, builderForValue.build()); + onChanged(); + } else { + outcomeFiltersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                +     * Optional. The outcome filters for the findings refinement. These allow you
                +     * to specify filters that are applied to the outcome variables in the
                +     * detection. All filters must be true for a detection to match the findings
                +     * refinement.
                +     * 
                + * + * + * repeated .google.cloud.chronicle.v1.OutcomeFilter outcome_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addOutcomeFilters(com.google.cloud.chronicle.v1.OutcomeFilter value) { + if (outcomeFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutcomeFiltersIsMutable(); + outcomeFilters_.add(value); + onChanged(); + } else { + outcomeFiltersBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                +     * Optional. The outcome filters for the findings refinement. These allow you
                +     * to specify filters that are applied to the outcome variables in the
                +     * detection. All filters must be true for a detection to match the findings
                +     * refinement.
                +     * 
                + * + * + * repeated .google.cloud.chronicle.v1.OutcomeFilter outcome_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addOutcomeFilters(int index, com.google.cloud.chronicle.v1.OutcomeFilter value) { + if (outcomeFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutcomeFiltersIsMutable(); + outcomeFilters_.add(index, value); + onChanged(); + } else { + outcomeFiltersBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                +     * Optional. The outcome filters for the findings refinement. These allow you
                +     * to specify filters that are applied to the outcome variables in the
                +     * detection. All filters must be true for a detection to match the findings
                +     * refinement.
                +     * 
                + * + * + * repeated .google.cloud.chronicle.v1.OutcomeFilter outcome_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addOutcomeFilters( + com.google.cloud.chronicle.v1.OutcomeFilter.Builder builderForValue) { + if (outcomeFiltersBuilder_ == null) { + ensureOutcomeFiltersIsMutable(); + outcomeFilters_.add(builderForValue.build()); + onChanged(); + } else { + outcomeFiltersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                +     * Optional. The outcome filters for the findings refinement. These allow you
                +     * to specify filters that are applied to the outcome variables in the
                +     * detection. All filters must be true for a detection to match the findings
                +     * refinement.
                +     * 
                + * + * + * repeated .google.cloud.chronicle.v1.OutcomeFilter outcome_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addOutcomeFilters( + int index, com.google.cloud.chronicle.v1.OutcomeFilter.Builder builderForValue) { + if (outcomeFiltersBuilder_ == null) { + ensureOutcomeFiltersIsMutable(); + outcomeFilters_.add(index, builderForValue.build()); + onChanged(); + } else { + outcomeFiltersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                +     * Optional. The outcome filters for the findings refinement. These allow you
                +     * to specify filters that are applied to the outcome variables in the
                +     * detection. All filters must be true for a detection to match the findings
                +     * refinement.
                +     * 
                + * + * + * repeated .google.cloud.chronicle.v1.OutcomeFilter outcome_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllOutcomeFilters( + java.lang.Iterable values) { + if (outcomeFiltersBuilder_ == null) { + ensureOutcomeFiltersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, outcomeFilters_); + onChanged(); + } else { + outcomeFiltersBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                +     * Optional. The outcome filters for the findings refinement. These allow you
                +     * to specify filters that are applied to the outcome variables in the
                +     * detection. All filters must be true for a detection to match the findings
                +     * refinement.
                +     * 
                + * + * + * repeated .google.cloud.chronicle.v1.OutcomeFilter outcome_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearOutcomeFilters() { + if (outcomeFiltersBuilder_ == null) { + outcomeFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + outcomeFiltersBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                +     * Optional. The outcome filters for the findings refinement. These allow you
                +     * to specify filters that are applied to the outcome variables in the
                +     * detection. All filters must be true for a detection to match the findings
                +     * refinement.
                +     * 
                + * + * + * repeated .google.cloud.chronicle.v1.OutcomeFilter outcome_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeOutcomeFilters(int index) { + if (outcomeFiltersBuilder_ == null) { + ensureOutcomeFiltersIsMutable(); + outcomeFilters_.remove(index); + onChanged(); + } else { + outcomeFiltersBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                +     * Optional. The outcome filters for the findings refinement. These allow you
                +     * to specify filters that are applied to the outcome variables in the
                +     * detection. All filters must be true for a detection to match the findings
                +     * refinement.
                +     * 
                + * + * + * repeated .google.cloud.chronicle.v1.OutcomeFilter outcome_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.chronicle.v1.OutcomeFilter.Builder getOutcomeFiltersBuilder(int index) { + return internalGetOutcomeFiltersFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                +     * Optional. The outcome filters for the findings refinement. These allow you
                +     * to specify filters that are applied to the outcome variables in the
                +     * detection. All filters must be true for a detection to match the findings
                +     * refinement.
                +     * 
                + * + * + * repeated .google.cloud.chronicle.v1.OutcomeFilter outcome_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.chronicle.v1.OutcomeFilterOrBuilder getOutcomeFiltersOrBuilder( + int index) { + if (outcomeFiltersBuilder_ == null) { + return outcomeFilters_.get(index); + } else { + return outcomeFiltersBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                +     * Optional. The outcome filters for the findings refinement. These allow you
                +     * to specify filters that are applied to the outcome variables in the
                +     * detection. All filters must be true for a detection to match the findings
                +     * refinement.
                +     * 
                + * + * + * repeated .google.cloud.chronicle.v1.OutcomeFilter outcome_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getOutcomeFiltersOrBuilderList() { + if (outcomeFiltersBuilder_ != null) { + return outcomeFiltersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(outcomeFilters_); + } + } + + /** + * + * + *
                +     * Optional. The outcome filters for the findings refinement. These allow you
                +     * to specify filters that are applied to the outcome variables in the
                +     * detection. All filters must be true for a detection to match the findings
                +     * refinement.
                +     * 
                + * + * + * repeated .google.cloud.chronicle.v1.OutcomeFilter outcome_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.chronicle.v1.OutcomeFilter.Builder addOutcomeFiltersBuilder() { + return internalGetOutcomeFiltersFieldBuilder() + .addBuilder(com.google.cloud.chronicle.v1.OutcomeFilter.getDefaultInstance()); + } + + /** + * + * + *
                +     * Optional. The outcome filters for the findings refinement. These allow you
                +     * to specify filters that are applied to the outcome variables in the
                +     * detection. All filters must be true for a detection to match the findings
                +     * refinement.
                +     * 
                + * + * + * repeated .google.cloud.chronicle.v1.OutcomeFilter outcome_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.chronicle.v1.OutcomeFilter.Builder addOutcomeFiltersBuilder(int index) { + return internalGetOutcomeFiltersFieldBuilder() + .addBuilder(index, com.google.cloud.chronicle.v1.OutcomeFilter.getDefaultInstance()); + } + + /** + * + * + *
                +     * Optional. The outcome filters for the findings refinement. These allow you
                +     * to specify filters that are applied to the outcome variables in the
                +     * detection. All filters must be true for a detection to match the findings
                +     * refinement.
                +     * 
                + * + * + * repeated .google.cloud.chronicle.v1.OutcomeFilter outcome_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getOutcomeFiltersBuilderList() { + return internalGetOutcomeFiltersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.chronicle.v1.OutcomeFilter, + com.google.cloud.chronicle.v1.OutcomeFilter.Builder, + com.google.cloud.chronicle.v1.OutcomeFilterOrBuilder> + internalGetOutcomeFiltersFieldBuilder() { + if (outcomeFiltersBuilder_ == null) { + outcomeFiltersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.chronicle.v1.OutcomeFilter, + com.google.cloud.chronicle.v1.OutcomeFilter.Builder, + com.google.cloud.chronicle.v1.OutcomeFilterOrBuilder>( + outcomeFilters_, + ((bitField0_ & 0x00000040) != 0), + getParentForChildren(), + isClean()); + outcomeFilters_ = null; + } + return outcomeFiltersBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.chronicle.v1.FindingsRefinement) + } + + // @@protoc_insertion_point(class_scope:google.cloud.chronicle.v1.FindingsRefinement) + private static final com.google.cloud.chronicle.v1.FindingsRefinement DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.chronicle.v1.FindingsRefinement(); + } + + public static com.google.cloud.chronicle.v1.FindingsRefinement getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FindingsRefinement parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.FindingsRefinement getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/FindingsRefinementActivity.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/FindingsRefinementActivity.java new file mode 100644 index 000000000000..c54daef15dc8 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/FindingsRefinementActivity.java @@ -0,0 +1,1036 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/chronicle/v1/findings_refinement.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +/** + * + * + *
                + * The activity for a specific findings refinement.
                + * 
                + * + * Protobuf type {@code google.cloud.chronicle.v1.FindingsRefinementActivity} + */ +@com.google.protobuf.Generated +public final class FindingsRefinementActivity extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.chronicle.v1.FindingsRefinementActivity) + FindingsRefinementActivityOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "FindingsRefinementActivity"); + } + + // Use FindingsRefinementActivity.newBuilder() to construct. + private FindingsRefinementActivity(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FindingsRefinementActivity() { + findingsRefinement_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_FindingsRefinementActivity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_FindingsRefinementActivity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.FindingsRefinementActivity.class, + com.google.cloud.chronicle.v1.FindingsRefinementActivity.Builder.class); + } + + private int activityCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object activity_; + + public enum ActivityCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + DETECTION_EXCLUSION_ACTIVITY(2), + ACTIVITY_NOT_SET(0); + private final int value; + + private ActivityCase(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 ActivityCase valueOf(int value) { + return forNumber(value); + } + + public static ActivityCase forNumber(int value) { + switch (value) { + case 2: + return DETECTION_EXCLUSION_ACTIVITY; + case 0: + return ACTIVITY_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ActivityCase getActivityCase() { + return ActivityCase.forNumber(activityCase_); + } + + public static final int DETECTION_EXCLUSION_ACTIVITY_FIELD_NUMBER = 2; + + /** + * + * + *
                +   * The activity for the detection exclusion.
                +   * 
                + * + * .google.cloud.chronicle.v1.DetectionExclusionActivity detection_exclusion_activity = 2; + * + * + * @return Whether the detectionExclusionActivity field is set. + */ + @java.lang.Override + public boolean hasDetectionExclusionActivity() { + return activityCase_ == 2; + } + + /** + * + * + *
                +   * The activity for the detection exclusion.
                +   * 
                + * + * .google.cloud.chronicle.v1.DetectionExclusionActivity detection_exclusion_activity = 2; + * + * + * @return The detectionExclusionActivity. + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.DetectionExclusionActivity getDetectionExclusionActivity() { + if (activityCase_ == 2) { + return (com.google.cloud.chronicle.v1.DetectionExclusionActivity) activity_; + } + return com.google.cloud.chronicle.v1.DetectionExclusionActivity.getDefaultInstance(); + } + + /** + * + * + *
                +   * The activity for the detection exclusion.
                +   * 
                + * + * .google.cloud.chronicle.v1.DetectionExclusionActivity detection_exclusion_activity = 2; + * + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.DetectionExclusionActivityOrBuilder + getDetectionExclusionActivityOrBuilder() { + if (activityCase_ == 2) { + return (com.google.cloud.chronicle.v1.DetectionExclusionActivity) activity_; + } + return com.google.cloud.chronicle.v1.DetectionExclusionActivity.getDefaultInstance(); + } + + public static final int FINDINGS_REFINEMENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object findingsRefinement_ = ""; + + /** + * + * + *
                +   * Required. Full resource name for the findings refinement this activity
                +   * corresponds to. Format:
                +   * projects/{project}/locations/{region}/instances/{instance}/findingsRefinements/{findings_refinement}
                +   * 
                + * + * + * string findings_refinement = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The findingsRefinement. + */ + @java.lang.Override + public java.lang.String getFindingsRefinement() { + java.lang.Object ref = findingsRefinement_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + findingsRefinement_ = s; + return s; + } + } + + /** + * + * + *
                +   * Required. Full resource name for the findings refinement this activity
                +   * corresponds to. Format:
                +   * projects/{project}/locations/{region}/instances/{instance}/findingsRefinements/{findings_refinement}
                +   * 
                + * + * + * string findings_refinement = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for findingsRefinement. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFindingsRefinementBytes() { + java.lang.Object ref = findingsRefinement_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + findingsRefinement_ = 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(findingsRefinement_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, findingsRefinement_); + } + if (activityCase_ == 2) { + output.writeMessage(2, (com.google.cloud.chronicle.v1.DetectionExclusionActivity) activity_); + } + 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(findingsRefinement_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, findingsRefinement_); + } + if (activityCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.chronicle.v1.DetectionExclusionActivity) activity_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.chronicle.v1.FindingsRefinementActivity)) { + return super.equals(obj); + } + com.google.cloud.chronicle.v1.FindingsRefinementActivity other = + (com.google.cloud.chronicle.v1.FindingsRefinementActivity) obj; + + if (!getFindingsRefinement().equals(other.getFindingsRefinement())) return false; + if (!getActivityCase().equals(other.getActivityCase())) return false; + switch (activityCase_) { + case 2: + if (!getDetectionExclusionActivity().equals(other.getDetectionExclusionActivity())) + 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) + FINDINGS_REFINEMENT_FIELD_NUMBER; + hash = (53 * hash) + getFindingsRefinement().hashCode(); + switch (activityCase_) { + case 2: + hash = (37 * hash) + DETECTION_EXCLUSION_ACTIVITY_FIELD_NUMBER; + hash = (53 * hash) + getDetectionExclusionActivity().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.chronicle.v1.FindingsRefinementActivity parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.FindingsRefinementActivity parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.FindingsRefinementActivity parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.FindingsRefinementActivity parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.FindingsRefinementActivity parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.FindingsRefinementActivity parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.FindingsRefinementActivity parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.FindingsRefinementActivity parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.FindingsRefinementActivity parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.FindingsRefinementActivity parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.FindingsRefinementActivity parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.FindingsRefinementActivity parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.chronicle.v1.FindingsRefinementActivity prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 activity for a specific findings refinement.
                +   * 
                + * + * Protobuf type {@code google.cloud.chronicle.v1.FindingsRefinementActivity} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.chronicle.v1.FindingsRefinementActivity) + com.google.cloud.chronicle.v1.FindingsRefinementActivityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_FindingsRefinementActivity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_FindingsRefinementActivity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.FindingsRefinementActivity.class, + com.google.cloud.chronicle.v1.FindingsRefinementActivity.Builder.class); + } + + // Construct using com.google.cloud.chronicle.v1.FindingsRefinementActivity.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (detectionExclusionActivityBuilder_ != null) { + detectionExclusionActivityBuilder_.clear(); + } + findingsRefinement_ = ""; + activityCase_ = 0; + activity_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_FindingsRefinementActivity_descriptor; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.FindingsRefinementActivity getDefaultInstanceForType() { + return com.google.cloud.chronicle.v1.FindingsRefinementActivity.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.FindingsRefinementActivity build() { + com.google.cloud.chronicle.v1.FindingsRefinementActivity result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.FindingsRefinementActivity buildPartial() { + com.google.cloud.chronicle.v1.FindingsRefinementActivity result = + new com.google.cloud.chronicle.v1.FindingsRefinementActivity(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.chronicle.v1.FindingsRefinementActivity result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.findingsRefinement_ = findingsRefinement_; + } + } + + private void buildPartialOneofs( + com.google.cloud.chronicle.v1.FindingsRefinementActivity result) { + result.activityCase_ = activityCase_; + result.activity_ = this.activity_; + if (activityCase_ == 2 && detectionExclusionActivityBuilder_ != null) { + result.activity_ = detectionExclusionActivityBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.chronicle.v1.FindingsRefinementActivity) { + return mergeFrom((com.google.cloud.chronicle.v1.FindingsRefinementActivity) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.chronicle.v1.FindingsRefinementActivity other) { + if (other == com.google.cloud.chronicle.v1.FindingsRefinementActivity.getDefaultInstance()) + return this; + if (!other.getFindingsRefinement().isEmpty()) { + findingsRefinement_ = other.findingsRefinement_; + bitField0_ |= 0x00000002; + onChanged(); + } + switch (other.getActivityCase()) { + case DETECTION_EXCLUSION_ACTIVITY: + { + mergeDetectionExclusionActivity(other.getDetectionExclusionActivity()); + break; + } + case ACTIVITY_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: + { + findingsRefinement_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetDetectionExclusionActivityFieldBuilder().getBuilder(), + extensionRegistry); + activityCase_ = 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 activityCase_ = 0; + private java.lang.Object activity_; + + public ActivityCase getActivityCase() { + return ActivityCase.forNumber(activityCase_); + } + + public Builder clearActivity() { + activityCase_ = 0; + activity_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.DetectionExclusionActivity, + com.google.cloud.chronicle.v1.DetectionExclusionActivity.Builder, + com.google.cloud.chronicle.v1.DetectionExclusionActivityOrBuilder> + detectionExclusionActivityBuilder_; + + /** + * + * + *
                +     * The activity for the detection exclusion.
                +     * 
                + * + * .google.cloud.chronicle.v1.DetectionExclusionActivity detection_exclusion_activity = 2; + * + * + * @return Whether the detectionExclusionActivity field is set. + */ + @java.lang.Override + public boolean hasDetectionExclusionActivity() { + return activityCase_ == 2; + } + + /** + * + * + *
                +     * The activity for the detection exclusion.
                +     * 
                + * + * .google.cloud.chronicle.v1.DetectionExclusionActivity detection_exclusion_activity = 2; + * + * + * @return The detectionExclusionActivity. + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.DetectionExclusionActivity + getDetectionExclusionActivity() { + if (detectionExclusionActivityBuilder_ == null) { + if (activityCase_ == 2) { + return (com.google.cloud.chronicle.v1.DetectionExclusionActivity) activity_; + } + return com.google.cloud.chronicle.v1.DetectionExclusionActivity.getDefaultInstance(); + } else { + if (activityCase_ == 2) { + return detectionExclusionActivityBuilder_.getMessage(); + } + return com.google.cloud.chronicle.v1.DetectionExclusionActivity.getDefaultInstance(); + } + } + + /** + * + * + *
                +     * The activity for the detection exclusion.
                +     * 
                + * + * .google.cloud.chronicle.v1.DetectionExclusionActivity detection_exclusion_activity = 2; + * + */ + public Builder setDetectionExclusionActivity( + com.google.cloud.chronicle.v1.DetectionExclusionActivity value) { + if (detectionExclusionActivityBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + activity_ = value; + onChanged(); + } else { + detectionExclusionActivityBuilder_.setMessage(value); + } + activityCase_ = 2; + return this; + } + + /** + * + * + *
                +     * The activity for the detection exclusion.
                +     * 
                + * + * .google.cloud.chronicle.v1.DetectionExclusionActivity detection_exclusion_activity = 2; + * + */ + public Builder setDetectionExclusionActivity( + com.google.cloud.chronicle.v1.DetectionExclusionActivity.Builder builderForValue) { + if (detectionExclusionActivityBuilder_ == null) { + activity_ = builderForValue.build(); + onChanged(); + } else { + detectionExclusionActivityBuilder_.setMessage(builderForValue.build()); + } + activityCase_ = 2; + return this; + } + + /** + * + * + *
                +     * The activity for the detection exclusion.
                +     * 
                + * + * .google.cloud.chronicle.v1.DetectionExclusionActivity detection_exclusion_activity = 2; + * + */ + public Builder mergeDetectionExclusionActivity( + com.google.cloud.chronicle.v1.DetectionExclusionActivity value) { + if (detectionExclusionActivityBuilder_ == null) { + if (activityCase_ == 2 + && activity_ + != com.google.cloud.chronicle.v1.DetectionExclusionActivity.getDefaultInstance()) { + activity_ = + com.google.cloud.chronicle.v1.DetectionExclusionActivity.newBuilder( + (com.google.cloud.chronicle.v1.DetectionExclusionActivity) activity_) + .mergeFrom(value) + .buildPartial(); + } else { + activity_ = value; + } + onChanged(); + } else { + if (activityCase_ == 2) { + detectionExclusionActivityBuilder_.mergeFrom(value); + } else { + detectionExclusionActivityBuilder_.setMessage(value); + } + } + activityCase_ = 2; + return this; + } + + /** + * + * + *
                +     * The activity for the detection exclusion.
                +     * 
                + * + * .google.cloud.chronicle.v1.DetectionExclusionActivity detection_exclusion_activity = 2; + * + */ + public Builder clearDetectionExclusionActivity() { + if (detectionExclusionActivityBuilder_ == null) { + if (activityCase_ == 2) { + activityCase_ = 0; + activity_ = null; + onChanged(); + } + } else { + if (activityCase_ == 2) { + activityCase_ = 0; + activity_ = null; + } + detectionExclusionActivityBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                +     * The activity for the detection exclusion.
                +     * 
                + * + * .google.cloud.chronicle.v1.DetectionExclusionActivity detection_exclusion_activity = 2; + * + */ + public com.google.cloud.chronicle.v1.DetectionExclusionActivity.Builder + getDetectionExclusionActivityBuilder() { + return internalGetDetectionExclusionActivityFieldBuilder().getBuilder(); + } + + /** + * + * + *
                +     * The activity for the detection exclusion.
                +     * 
                + * + * .google.cloud.chronicle.v1.DetectionExclusionActivity detection_exclusion_activity = 2; + * + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.DetectionExclusionActivityOrBuilder + getDetectionExclusionActivityOrBuilder() { + if ((activityCase_ == 2) && (detectionExclusionActivityBuilder_ != null)) { + return detectionExclusionActivityBuilder_.getMessageOrBuilder(); + } else { + if (activityCase_ == 2) { + return (com.google.cloud.chronicle.v1.DetectionExclusionActivity) activity_; + } + return com.google.cloud.chronicle.v1.DetectionExclusionActivity.getDefaultInstance(); + } + } + + /** + * + * + *
                +     * The activity for the detection exclusion.
                +     * 
                + * + * .google.cloud.chronicle.v1.DetectionExclusionActivity detection_exclusion_activity = 2; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.DetectionExclusionActivity, + com.google.cloud.chronicle.v1.DetectionExclusionActivity.Builder, + com.google.cloud.chronicle.v1.DetectionExclusionActivityOrBuilder> + internalGetDetectionExclusionActivityFieldBuilder() { + if (detectionExclusionActivityBuilder_ == null) { + if (!(activityCase_ == 2)) { + activity_ = com.google.cloud.chronicle.v1.DetectionExclusionActivity.getDefaultInstance(); + } + detectionExclusionActivityBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.DetectionExclusionActivity, + com.google.cloud.chronicle.v1.DetectionExclusionActivity.Builder, + com.google.cloud.chronicle.v1.DetectionExclusionActivityOrBuilder>( + (com.google.cloud.chronicle.v1.DetectionExclusionActivity) activity_, + getParentForChildren(), + isClean()); + activity_ = null; + } + activityCase_ = 2; + onChanged(); + return detectionExclusionActivityBuilder_; + } + + private java.lang.Object findingsRefinement_ = ""; + + /** + * + * + *
                +     * Required. Full resource name for the findings refinement this activity
                +     * corresponds to. Format:
                +     * projects/{project}/locations/{region}/instances/{instance}/findingsRefinements/{findings_refinement}
                +     * 
                + * + * + * string findings_refinement = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The findingsRefinement. + */ + public java.lang.String getFindingsRefinement() { + java.lang.Object ref = findingsRefinement_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + findingsRefinement_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                +     * Required. Full resource name for the findings refinement this activity
                +     * corresponds to. Format:
                +     * projects/{project}/locations/{region}/instances/{instance}/findingsRefinements/{findings_refinement}
                +     * 
                + * + * + * string findings_refinement = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for findingsRefinement. + */ + public com.google.protobuf.ByteString getFindingsRefinementBytes() { + java.lang.Object ref = findingsRefinement_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + findingsRefinement_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                +     * Required. Full resource name for the findings refinement this activity
                +     * corresponds to. Format:
                +     * projects/{project}/locations/{region}/instances/{instance}/findingsRefinements/{findings_refinement}
                +     * 
                + * + * + * string findings_refinement = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The findingsRefinement to set. + * @return This builder for chaining. + */ + public Builder setFindingsRefinement(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + findingsRefinement_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. Full resource name for the findings refinement this activity
                +     * corresponds to. Format:
                +     * projects/{project}/locations/{region}/instances/{instance}/findingsRefinements/{findings_refinement}
                +     * 
                + * + * + * string findings_refinement = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearFindingsRefinement() { + findingsRefinement_ = getDefaultInstance().getFindingsRefinement(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. Full resource name for the findings refinement this activity
                +     * corresponds to. Format:
                +     * projects/{project}/locations/{region}/instances/{instance}/findingsRefinements/{findings_refinement}
                +     * 
                + * + * + * string findings_refinement = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for findingsRefinement to set. + * @return This builder for chaining. + */ + public Builder setFindingsRefinementBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + findingsRefinement_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.chronicle.v1.FindingsRefinementActivity) + } + + // @@protoc_insertion_point(class_scope:google.cloud.chronicle.v1.FindingsRefinementActivity) + private static final com.google.cloud.chronicle.v1.FindingsRefinementActivity DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.chronicle.v1.FindingsRefinementActivity(); + } + + public static com.google.cloud.chronicle.v1.FindingsRefinementActivity getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FindingsRefinementActivity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.FindingsRefinementActivity getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/FindingsRefinementActivityOrBuilder.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/FindingsRefinementActivityOrBuilder.java new file mode 100644 index 000000000000..535fcb53df1c --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/FindingsRefinementActivityOrBuilder.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/chronicle/v1/findings_refinement.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +@com.google.protobuf.Generated +public interface FindingsRefinementActivityOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.chronicle.v1.FindingsRefinementActivity) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                +   * The activity for the detection exclusion.
                +   * 
                + * + * .google.cloud.chronicle.v1.DetectionExclusionActivity detection_exclusion_activity = 2; + * + * + * @return Whether the detectionExclusionActivity field is set. + */ + boolean hasDetectionExclusionActivity(); + + /** + * + * + *
                +   * The activity for the detection exclusion.
                +   * 
                + * + * .google.cloud.chronicle.v1.DetectionExclusionActivity detection_exclusion_activity = 2; + * + * + * @return The detectionExclusionActivity. + */ + com.google.cloud.chronicle.v1.DetectionExclusionActivity getDetectionExclusionActivity(); + + /** + * + * + *
                +   * The activity for the detection exclusion.
                +   * 
                + * + * .google.cloud.chronicle.v1.DetectionExclusionActivity detection_exclusion_activity = 2; + * + */ + com.google.cloud.chronicle.v1.DetectionExclusionActivityOrBuilder + getDetectionExclusionActivityOrBuilder(); + + /** + * + * + *
                +   * Required. Full resource name for the findings refinement this activity
                +   * corresponds to. Format:
                +   * projects/{project}/locations/{region}/instances/{instance}/findingsRefinements/{findings_refinement}
                +   * 
                + * + * + * string findings_refinement = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The findingsRefinement. + */ + java.lang.String getFindingsRefinement(); + + /** + * + * + *
                +   * Required. Full resource name for the findings refinement this activity
                +   * corresponds to. Format:
                +   * projects/{project}/locations/{region}/instances/{instance}/findingsRefinements/{findings_refinement}
                +   * 
                + * + * + * string findings_refinement = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for findingsRefinement. + */ + com.google.protobuf.ByteString getFindingsRefinementBytes(); + + com.google.cloud.chronicle.v1.FindingsRefinementActivity.ActivityCase getActivityCase(); +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/FindingsRefinementDeployment.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/FindingsRefinementDeployment.java new file mode 100644 index 000000000000..e47e001a497a --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/FindingsRefinementDeployment.java @@ -0,0 +1,1580 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/chronicle/v1/findings_refinement.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +/** + * + * + *
                + * The FindingsRefinementDeployment resource represents the deployment state of
                + * a findings refinement.
                + * 
                + * + * Protobuf type {@code google.cloud.chronicle.v1.FindingsRefinementDeployment} + */ +@com.google.protobuf.Generated +public final class FindingsRefinementDeployment extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.chronicle.v1.FindingsRefinementDeployment) + FindingsRefinementDeploymentOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "FindingsRefinementDeployment"); + } + + // Use FindingsRefinementDeployment.newBuilder() to construct. + private FindingsRefinementDeployment(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FindingsRefinementDeployment() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_FindingsRefinementDeployment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_FindingsRefinementDeployment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.FindingsRefinementDeployment.class, + com.google.cloud.chronicle.v1.FindingsRefinementDeployment.Builder.class); + } + + private int bitField0_; + private int findingsRefinementApplicationCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object findingsRefinementApplication_; + + public enum FindingsRefinementApplicationCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + DETECTION_EXCLUSION_APPLICATION(5), + FINDINGSREFINEMENTAPPLICATION_NOT_SET(0); + private final int value; + + private FindingsRefinementApplicationCase(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 FindingsRefinementApplicationCase valueOf(int value) { + return forNumber(value); + } + + public static FindingsRefinementApplicationCase forNumber(int value) { + switch (value) { + case 5: + return DETECTION_EXCLUSION_APPLICATION; + case 0: + return FINDINGSREFINEMENTAPPLICATION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public FindingsRefinementApplicationCase getFindingsRefinementApplicationCase() { + return FindingsRefinementApplicationCase.forNumber(findingsRefinementApplicationCase_); + } + + public static final int DETECTION_EXCLUSION_APPLICATION_FIELD_NUMBER = 5; + + /** + * + * + *
                +   * The resources which the detection exclusion is applied to.
                +   * 
                + * + * + * .google.cloud.chronicle.v1.DetectionExclusionApplication detection_exclusion_application = 5; + * + * + * @return Whether the detectionExclusionApplication field is set. + */ + @java.lang.Override + public boolean hasDetectionExclusionApplication() { + return findingsRefinementApplicationCase_ == 5; + } + + /** + * + * + *
                +   * The resources which the detection exclusion is applied to.
                +   * 
                + * + * + * .google.cloud.chronicle.v1.DetectionExclusionApplication detection_exclusion_application = 5; + * + * + * @return The detectionExclusionApplication. + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.DetectionExclusionApplication + getDetectionExclusionApplication() { + if (findingsRefinementApplicationCase_ == 5) { + return (com.google.cloud.chronicle.v1.DetectionExclusionApplication) + findingsRefinementApplication_; + } + return com.google.cloud.chronicle.v1.DetectionExclusionApplication.getDefaultInstance(); + } + + /** + * + * + *
                +   * The resources which the detection exclusion is applied to.
                +   * 
                + * + * + * .google.cloud.chronicle.v1.DetectionExclusionApplication detection_exclusion_application = 5; + * + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.DetectionExclusionApplicationOrBuilder + getDetectionExclusionApplicationOrBuilder() { + if (findingsRefinementApplicationCase_ == 5) { + return (com.google.cloud.chronicle.v1.DetectionExclusionApplication) + findingsRefinementApplication_; + } + return com.google.cloud.chronicle.v1.DetectionExclusionApplication.getDefaultInstance(); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                +   * Required. The resource name of the findings refinement deployment.
                +   * Format:
                +   * projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}/deployment
                +   * 
                + * + * 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 resource name of the findings refinement deployment.
                +   * Format:
                +   * projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}/deployment
                +   * 
                + * + * 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 ENABLED_FIELD_NUMBER = 2; + private boolean enabled_ = false; + + /** + * + * + *
                +   * Whether the findings refinement is currently deployed continuously against
                +   * incoming findings.
                +   * 
                + * + * bool enabled = 2; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + public static final int ARCHIVED_FIELD_NUMBER = 3; + private boolean archived_ = false; + + /** + * + * + *
                +   * The archive state of the findings refinement deployment.
                +   * Cannot be set to true unless enabled is set to false.
                +   * If currently set to true, enabled cannot be updated to true.
                +   * 
                + * + * bool archived = 3; + * + * @return The archived. + */ + @java.lang.Override + public boolean getArchived() { + return archived_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
                +   * Output only. The timestamp when the findings refinement deployment 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_ & 0x00000001) != 0); + } + + /** + * + * + *
                +   * Output only. The timestamp when the findings refinement deployment 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_; + } + + /** + * + * + *
                +   * Output only. The timestamp when the findings refinement deployment 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_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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 (enabled_ != false) { + output.writeBool(2, enabled_); + } + if (archived_ != false) { + output.writeBool(3, archived_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getUpdateTime()); + } + if (findingsRefinementApplicationCase_ == 5) { + output.writeMessage( + 5, + (com.google.cloud.chronicle.v1.DetectionExclusionApplication) + findingsRefinementApplication_); + } + 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 (enabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enabled_); + } + if (archived_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, archived_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); + } + if (findingsRefinementApplicationCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, + (com.google.cloud.chronicle.v1.DetectionExclusionApplication) + findingsRefinementApplication_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.chronicle.v1.FindingsRefinementDeployment)) { + return super.equals(obj); + } + com.google.cloud.chronicle.v1.FindingsRefinementDeployment other = + (com.google.cloud.chronicle.v1.FindingsRefinementDeployment) obj; + + if (!getName().equals(other.getName())) return false; + if (getEnabled() != other.getEnabled()) return false; + if (getArchived() != other.getArchived()) return false; + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!getFindingsRefinementApplicationCase() + .equals(other.getFindingsRefinementApplicationCase())) return false; + switch (findingsRefinementApplicationCase_) { + case 5: + if (!getDetectionExclusionApplication().equals(other.getDetectionExclusionApplication())) + 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) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); + hash = (37 * hash) + ARCHIVED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getArchived()); + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + switch (findingsRefinementApplicationCase_) { + case 5: + hash = (37 * hash) + DETECTION_EXCLUSION_APPLICATION_FIELD_NUMBER; + hash = (53 * hash) + getDetectionExclusionApplication().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.chronicle.v1.FindingsRefinementDeployment parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.FindingsRefinementDeployment parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.FindingsRefinementDeployment parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.FindingsRefinementDeployment parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.FindingsRefinementDeployment parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.FindingsRefinementDeployment parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.FindingsRefinementDeployment parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.FindingsRefinementDeployment parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.FindingsRefinementDeployment parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.FindingsRefinementDeployment parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.FindingsRefinementDeployment parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.FindingsRefinementDeployment parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.chronicle.v1.FindingsRefinementDeployment prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 FindingsRefinementDeployment resource represents the deployment state of
                +   * a findings refinement.
                +   * 
                + * + * Protobuf type {@code google.cloud.chronicle.v1.FindingsRefinementDeployment} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.chronicle.v1.FindingsRefinementDeployment) + com.google.cloud.chronicle.v1.FindingsRefinementDeploymentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_FindingsRefinementDeployment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_FindingsRefinementDeployment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.FindingsRefinementDeployment.class, + com.google.cloud.chronicle.v1.FindingsRefinementDeployment.Builder.class); + } + + // Construct using com.google.cloud.chronicle.v1.FindingsRefinementDeployment.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; + if (detectionExclusionApplicationBuilder_ != null) { + detectionExclusionApplicationBuilder_.clear(); + } + name_ = ""; + enabled_ = false; + archived_ = false; + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + findingsRefinementApplicationCase_ = 0; + findingsRefinementApplication_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_FindingsRefinementDeployment_descriptor; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.FindingsRefinementDeployment getDefaultInstanceForType() { + return com.google.cloud.chronicle.v1.FindingsRefinementDeployment.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.FindingsRefinementDeployment build() { + com.google.cloud.chronicle.v1.FindingsRefinementDeployment result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.FindingsRefinementDeployment buildPartial() { + com.google.cloud.chronicle.v1.FindingsRefinementDeployment result = + new com.google.cloud.chronicle.v1.FindingsRefinementDeployment(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.chronicle.v1.FindingsRefinementDeployment result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.enabled_ = enabled_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.archived_ = archived_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.chronicle.v1.FindingsRefinementDeployment result) { + result.findingsRefinementApplicationCase_ = findingsRefinementApplicationCase_; + result.findingsRefinementApplication_ = this.findingsRefinementApplication_; + if (findingsRefinementApplicationCase_ == 5 + && detectionExclusionApplicationBuilder_ != null) { + result.findingsRefinementApplication_ = detectionExclusionApplicationBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.chronicle.v1.FindingsRefinementDeployment) { + return mergeFrom((com.google.cloud.chronicle.v1.FindingsRefinementDeployment) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.chronicle.v1.FindingsRefinementDeployment other) { + if (other == com.google.cloud.chronicle.v1.FindingsRefinementDeployment.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + if (other.getArchived() != false) { + setArchived(other.getArchived()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + switch (other.getFindingsRefinementApplicationCase()) { + case DETECTION_EXCLUSION_APPLICATION: + { + mergeDetectionExclusionApplication(other.getDetectionExclusionApplication()); + break; + } + case FINDINGSREFINEMENTAPPLICATION_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_ |= 0x00000002; + break; + } // case 10 + case 16: + { + enabled_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 16 + case 24: + { + archived_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 24 + case 34: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetDetectionExclusionApplicationFieldBuilder().getBuilder(), + extensionRegistry); + findingsRefinementApplicationCase_ = 5; + 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 findingsRefinementApplicationCase_ = 0; + private java.lang.Object findingsRefinementApplication_; + + public FindingsRefinementApplicationCase getFindingsRefinementApplicationCase() { + return FindingsRefinementApplicationCase.forNumber(findingsRefinementApplicationCase_); + } + + public Builder clearFindingsRefinementApplication() { + findingsRefinementApplicationCase_ = 0; + findingsRefinementApplication_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.DetectionExclusionApplication, + com.google.cloud.chronicle.v1.DetectionExclusionApplication.Builder, + com.google.cloud.chronicle.v1.DetectionExclusionApplicationOrBuilder> + detectionExclusionApplicationBuilder_; + + /** + * + * + *
                +     * The resources which the detection exclusion is applied to.
                +     * 
                + * + * + * .google.cloud.chronicle.v1.DetectionExclusionApplication detection_exclusion_application = 5; + * + * + * @return Whether the detectionExclusionApplication field is set. + */ + @java.lang.Override + public boolean hasDetectionExclusionApplication() { + return findingsRefinementApplicationCase_ == 5; + } + + /** + * + * + *
                +     * The resources which the detection exclusion is applied to.
                +     * 
                + * + * + * .google.cloud.chronicle.v1.DetectionExclusionApplication detection_exclusion_application = 5; + * + * + * @return The detectionExclusionApplication. + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.DetectionExclusionApplication + getDetectionExclusionApplication() { + if (detectionExclusionApplicationBuilder_ == null) { + if (findingsRefinementApplicationCase_ == 5) { + return (com.google.cloud.chronicle.v1.DetectionExclusionApplication) + findingsRefinementApplication_; + } + return com.google.cloud.chronicle.v1.DetectionExclusionApplication.getDefaultInstance(); + } else { + if (findingsRefinementApplicationCase_ == 5) { + return detectionExclusionApplicationBuilder_.getMessage(); + } + return com.google.cloud.chronicle.v1.DetectionExclusionApplication.getDefaultInstance(); + } + } + + /** + * + * + *
                +     * The resources which the detection exclusion is applied to.
                +     * 
                + * + * + * .google.cloud.chronicle.v1.DetectionExclusionApplication detection_exclusion_application = 5; + * + */ + public Builder setDetectionExclusionApplication( + com.google.cloud.chronicle.v1.DetectionExclusionApplication value) { + if (detectionExclusionApplicationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + findingsRefinementApplication_ = value; + onChanged(); + } else { + detectionExclusionApplicationBuilder_.setMessage(value); + } + findingsRefinementApplicationCase_ = 5; + return this; + } + + /** + * + * + *
                +     * The resources which the detection exclusion is applied to.
                +     * 
                + * + * + * .google.cloud.chronicle.v1.DetectionExclusionApplication detection_exclusion_application = 5; + * + */ + public Builder setDetectionExclusionApplication( + com.google.cloud.chronicle.v1.DetectionExclusionApplication.Builder builderForValue) { + if (detectionExclusionApplicationBuilder_ == null) { + findingsRefinementApplication_ = builderForValue.build(); + onChanged(); + } else { + detectionExclusionApplicationBuilder_.setMessage(builderForValue.build()); + } + findingsRefinementApplicationCase_ = 5; + return this; + } + + /** + * + * + *
                +     * The resources which the detection exclusion is applied to.
                +     * 
                + * + * + * .google.cloud.chronicle.v1.DetectionExclusionApplication detection_exclusion_application = 5; + * + */ + public Builder mergeDetectionExclusionApplication( + com.google.cloud.chronicle.v1.DetectionExclusionApplication value) { + if (detectionExclusionApplicationBuilder_ == null) { + if (findingsRefinementApplicationCase_ == 5 + && findingsRefinementApplication_ + != com.google.cloud.chronicle.v1.DetectionExclusionApplication + .getDefaultInstance()) { + findingsRefinementApplication_ = + com.google.cloud.chronicle.v1.DetectionExclusionApplication.newBuilder( + (com.google.cloud.chronicle.v1.DetectionExclusionApplication) + findingsRefinementApplication_) + .mergeFrom(value) + .buildPartial(); + } else { + findingsRefinementApplication_ = value; + } + onChanged(); + } else { + if (findingsRefinementApplicationCase_ == 5) { + detectionExclusionApplicationBuilder_.mergeFrom(value); + } else { + detectionExclusionApplicationBuilder_.setMessage(value); + } + } + findingsRefinementApplicationCase_ = 5; + return this; + } + + /** + * + * + *
                +     * The resources which the detection exclusion is applied to.
                +     * 
                + * + * + * .google.cloud.chronicle.v1.DetectionExclusionApplication detection_exclusion_application = 5; + * + */ + public Builder clearDetectionExclusionApplication() { + if (detectionExclusionApplicationBuilder_ == null) { + if (findingsRefinementApplicationCase_ == 5) { + findingsRefinementApplicationCase_ = 0; + findingsRefinementApplication_ = null; + onChanged(); + } + } else { + if (findingsRefinementApplicationCase_ == 5) { + findingsRefinementApplicationCase_ = 0; + findingsRefinementApplication_ = null; + } + detectionExclusionApplicationBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                +     * The resources which the detection exclusion is applied to.
                +     * 
                + * + * + * .google.cloud.chronicle.v1.DetectionExclusionApplication detection_exclusion_application = 5; + * + */ + public com.google.cloud.chronicle.v1.DetectionExclusionApplication.Builder + getDetectionExclusionApplicationBuilder() { + return internalGetDetectionExclusionApplicationFieldBuilder().getBuilder(); + } + + /** + * + * + *
                +     * The resources which the detection exclusion is applied to.
                +     * 
                + * + * + * .google.cloud.chronicle.v1.DetectionExclusionApplication detection_exclusion_application = 5; + * + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.DetectionExclusionApplicationOrBuilder + getDetectionExclusionApplicationOrBuilder() { + if ((findingsRefinementApplicationCase_ == 5) + && (detectionExclusionApplicationBuilder_ != null)) { + return detectionExclusionApplicationBuilder_.getMessageOrBuilder(); + } else { + if (findingsRefinementApplicationCase_ == 5) { + return (com.google.cloud.chronicle.v1.DetectionExclusionApplication) + findingsRefinementApplication_; + } + return com.google.cloud.chronicle.v1.DetectionExclusionApplication.getDefaultInstance(); + } + } + + /** + * + * + *
                +     * The resources which the detection exclusion is applied to.
                +     * 
                + * + * + * .google.cloud.chronicle.v1.DetectionExclusionApplication detection_exclusion_application = 5; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.DetectionExclusionApplication, + com.google.cloud.chronicle.v1.DetectionExclusionApplication.Builder, + com.google.cloud.chronicle.v1.DetectionExclusionApplicationOrBuilder> + internalGetDetectionExclusionApplicationFieldBuilder() { + if (detectionExclusionApplicationBuilder_ == null) { + if (!(findingsRefinementApplicationCase_ == 5)) { + findingsRefinementApplication_ = + com.google.cloud.chronicle.v1.DetectionExclusionApplication.getDefaultInstance(); + } + detectionExclusionApplicationBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.DetectionExclusionApplication, + com.google.cloud.chronicle.v1.DetectionExclusionApplication.Builder, + com.google.cloud.chronicle.v1.DetectionExclusionApplicationOrBuilder>( + (com.google.cloud.chronicle.v1.DetectionExclusionApplication) + findingsRefinementApplication_, + getParentForChildren(), + isClean()); + findingsRefinementApplication_ = null; + } + findingsRefinementApplicationCase_ = 5; + onChanged(); + return detectionExclusionApplicationBuilder_; + } + + private java.lang.Object name_ = ""; + + /** + * + * + *
                +     * Required. The resource name of the findings refinement deployment.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}/deployment
                +     * 
                + * + * 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 resource name of the findings refinement deployment.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}/deployment
                +     * 
                + * + * 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 resource name of the findings refinement deployment.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}/deployment
                +     * 
                + * + * 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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The resource name of the findings refinement deployment.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}/deployment
                +     * 
                + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The resource name of the findings refinement deployment.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}/deployment
                +     * 
                + * + * 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_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean enabled_; + + /** + * + * + *
                +     * Whether the findings refinement is currently deployed continuously against
                +     * incoming findings.
                +     * 
                + * + * bool enabled = 2; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + /** + * + * + *
                +     * Whether the findings refinement is currently deployed continuously against
                +     * incoming findings.
                +     * 
                + * + * bool enabled = 2; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Whether the findings refinement is currently deployed continuously against
                +     * incoming findings.
                +     * 
                + * + * bool enabled = 2; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000004); + enabled_ = false; + onChanged(); + return this; + } + + private boolean archived_; + + /** + * + * + *
                +     * The archive state of the findings refinement deployment.
                +     * Cannot be set to true unless enabled is set to false.
                +     * If currently set to true, enabled cannot be updated to true.
                +     * 
                + * + * bool archived = 3; + * + * @return The archived. + */ + @java.lang.Override + public boolean getArchived() { + return archived_; + } + + /** + * + * + *
                +     * The archive state of the findings refinement deployment.
                +     * Cannot be set to true unless enabled is set to false.
                +     * If currently set to true, enabled cannot be updated to true.
                +     * 
                + * + * bool archived = 3; + * + * @param value The archived to set. + * @return This builder for chaining. + */ + public Builder setArchived(boolean value) { + + archived_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                +     * The archive state of the findings refinement deployment.
                +     * Cannot be set to true unless enabled is set to false.
                +     * If currently set to true, enabled cannot be updated to true.
                +     * 
                + * + * bool archived = 3; + * + * @return This builder for chaining. + */ + public Builder clearArchived() { + bitField0_ = (bitField0_ & ~0x00000008); + archived_ = false; + 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 timestamp when the findings refinement deployment 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_ & 0x00000010) != 0); + } + + /** + * + * + *
                +     * Output only. The timestamp when the findings refinement deployment 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(); + } + } + + /** + * + * + *
                +     * Output only. The timestamp when the findings refinement deployment 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_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. The timestamp when the findings refinement deployment 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_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. The timestamp when the findings refinement deployment 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_ & 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. The timestamp when the findings refinement deployment was last
                +     * updated.
                +     * 
                + * + * + * .google.protobuf.Timestamp update_time = 4 [(.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. The timestamp when the findings refinement deployment was last
                +     * updated.
                +     * 
                + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                +     * Output only. The timestamp when the findings refinement deployment 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_; + } + } + + /** + * + * + *
                +     * Output only. The timestamp when the findings refinement deployment 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_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.chronicle.v1.FindingsRefinementDeployment) + } + + // @@protoc_insertion_point(class_scope:google.cloud.chronicle.v1.FindingsRefinementDeployment) + private static final com.google.cloud.chronicle.v1.FindingsRefinementDeployment DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.chronicle.v1.FindingsRefinementDeployment(); + } + + public static com.google.cloud.chronicle.v1.FindingsRefinementDeployment getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FindingsRefinementDeployment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.FindingsRefinementDeployment getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/FindingsRefinementDeploymentName.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/FindingsRefinementDeploymentName.java new file mode 100644 index 000000000000..480288cd0828 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/FindingsRefinementDeploymentName.java @@ -0,0 +1,270 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class FindingsRefinementDeploymentName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_INSTANCE_FINDINGS_REFINEMENT = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}/deployment"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String instance; + private final String findingsRefinement; + + @Deprecated + protected FindingsRefinementDeploymentName() { + project = null; + location = null; + instance = null; + findingsRefinement = null; + } + + private FindingsRefinementDeploymentName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + instance = Preconditions.checkNotNull(builder.getInstance()); + findingsRefinement = Preconditions.checkNotNull(builder.getFindingsRefinement()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getInstance() { + return instance; + } + + public String getFindingsRefinement() { + return findingsRefinement; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static FindingsRefinementDeploymentName of( + String project, String location, String instance, String findingsRefinement) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setInstance(instance) + .setFindingsRefinement(findingsRefinement) + .build(); + } + + public static String format( + String project, String location, String instance, String findingsRefinement) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setInstance(instance) + .setFindingsRefinement(findingsRefinement) + .build() + .toString(); + } + + public static FindingsRefinementDeploymentName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_INSTANCE_FINDINGS_REFINEMENT.validatedMatch( + formattedString, + "FindingsRefinementDeploymentName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("instance"), + matchMap.get("findings_refinement")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (FindingsRefinementDeploymentName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_INSTANCE_FINDINGS_REFINEMENT.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 (instance != null) { + fieldMapBuilder.put("instance", instance); + } + if (findingsRefinement != null) { + fieldMapBuilder.put("findings_refinement", findingsRefinement); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_INSTANCE_FINDINGS_REFINEMENT.instantiate( + "project", + project, + "location", + location, + "instance", + instance, + "findings_refinement", + findingsRefinement); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + FindingsRefinementDeploymentName that = ((FindingsRefinementDeploymentName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.instance, that.instance) + && Objects.equals(this.findingsRefinement, that.findingsRefinement); + } + 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(instance); + h *= 1000003; + h ^= Objects.hashCode(findingsRefinement); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}/deployment. + */ + public static class Builder { + private String project; + private String location; + private String instance; + private String findingsRefinement; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getInstance() { + return instance; + } + + public String getFindingsRefinement() { + return findingsRefinement; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setInstance(String instance) { + this.instance = instance; + return this; + } + + public Builder setFindingsRefinement(String findingsRefinement) { + this.findingsRefinement = findingsRefinement; + return this; + } + + private Builder(FindingsRefinementDeploymentName findingsRefinementDeploymentName) { + this.project = findingsRefinementDeploymentName.project; + this.location = findingsRefinementDeploymentName.location; + this.instance = findingsRefinementDeploymentName.instance; + this.findingsRefinement = findingsRefinementDeploymentName.findingsRefinement; + } + + public FindingsRefinementDeploymentName build() { + return new FindingsRefinementDeploymentName(this); + } + } +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/FindingsRefinementDeploymentOrBuilder.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/FindingsRefinementDeploymentOrBuilder.java new file mode 100644 index 000000000000..3131b1759727 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/FindingsRefinementDeploymentOrBuilder.java @@ -0,0 +1,177 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/chronicle/v1/findings_refinement.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +@com.google.protobuf.Generated +public interface FindingsRefinementDeploymentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.chronicle.v1.FindingsRefinementDeployment) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                +   * The resources which the detection exclusion is applied to.
                +   * 
                + * + * + * .google.cloud.chronicle.v1.DetectionExclusionApplication detection_exclusion_application = 5; + * + * + * @return Whether the detectionExclusionApplication field is set. + */ + boolean hasDetectionExclusionApplication(); + + /** + * + * + *
                +   * The resources which the detection exclusion is applied to.
                +   * 
                + * + * + * .google.cloud.chronicle.v1.DetectionExclusionApplication detection_exclusion_application = 5; + * + * + * @return The detectionExclusionApplication. + */ + com.google.cloud.chronicle.v1.DetectionExclusionApplication getDetectionExclusionApplication(); + + /** + * + * + *
                +   * The resources which the detection exclusion is applied to.
                +   * 
                + * + * + * .google.cloud.chronicle.v1.DetectionExclusionApplication detection_exclusion_application = 5; + * + */ + com.google.cloud.chronicle.v1.DetectionExclusionApplicationOrBuilder + getDetectionExclusionApplicationOrBuilder(); + + /** + * + * + *
                +   * Required. The resource name of the findings refinement deployment.
                +   * Format:
                +   * projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}/deployment
                +   * 
                + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                +   * Required. The resource name of the findings refinement deployment.
                +   * Format:
                +   * projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}/deployment
                +   * 
                + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                +   * Whether the findings refinement is currently deployed continuously against
                +   * incoming findings.
                +   * 
                + * + * bool enabled = 2; + * + * @return The enabled. + */ + boolean getEnabled(); + + /** + * + * + *
                +   * The archive state of the findings refinement deployment.
                +   * Cannot be set to true unless enabled is set to false.
                +   * If currently set to true, enabled cannot be updated to true.
                +   * 
                + * + * bool archived = 3; + * + * @return The archived. + */ + boolean getArchived(); + + /** + * + * + *
                +   * Output only. The timestamp when the findings refinement deployment was last
                +   * updated.
                +   * 
                + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
                +   * Output only. The timestamp when the findings refinement deployment was last
                +   * updated.
                +   * 
                + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
                +   * Output only. The timestamp when the findings refinement deployment was last
                +   * updated.
                +   * 
                + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + com.google.cloud.chronicle.v1.FindingsRefinementDeployment.FindingsRefinementApplicationCase + getFindingsRefinementApplicationCase(); +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/FindingsRefinementName.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/FindingsRefinementName.java new file mode 100644 index 000000000000..c839950fd411 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/FindingsRefinementName.java @@ -0,0 +1,269 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class FindingsRefinementName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_INSTANCE_FINDINGS_REFINEMENT = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String instance; + private final String findingsRefinement; + + @Deprecated + protected FindingsRefinementName() { + project = null; + location = null; + instance = null; + findingsRefinement = null; + } + + private FindingsRefinementName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + instance = Preconditions.checkNotNull(builder.getInstance()); + findingsRefinement = Preconditions.checkNotNull(builder.getFindingsRefinement()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getInstance() { + return instance; + } + + public String getFindingsRefinement() { + return findingsRefinement; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static FindingsRefinementName of( + String project, String location, String instance, String findingsRefinement) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setInstance(instance) + .setFindingsRefinement(findingsRefinement) + .build(); + } + + public static String format( + String project, String location, String instance, String findingsRefinement) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setInstance(instance) + .setFindingsRefinement(findingsRefinement) + .build() + .toString(); + } + + public static FindingsRefinementName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_INSTANCE_FINDINGS_REFINEMENT.validatedMatch( + formattedString, "FindingsRefinementName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("instance"), + matchMap.get("findings_refinement")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (FindingsRefinementName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_INSTANCE_FINDINGS_REFINEMENT.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 (instance != null) { + fieldMapBuilder.put("instance", instance); + } + if (findingsRefinement != null) { + fieldMapBuilder.put("findings_refinement", findingsRefinement); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_INSTANCE_FINDINGS_REFINEMENT.instantiate( + "project", + project, + "location", + location, + "instance", + instance, + "findings_refinement", + findingsRefinement); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + FindingsRefinementName that = ((FindingsRefinementName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.instance, that.instance) + && Objects.equals(this.findingsRefinement, that.findingsRefinement); + } + 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(instance); + h *= 1000003; + h ^= Objects.hashCode(findingsRefinement); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}. + */ + public static class Builder { + private String project; + private String location; + private String instance; + private String findingsRefinement; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getInstance() { + return instance; + } + + public String getFindingsRefinement() { + return findingsRefinement; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setInstance(String instance) { + this.instance = instance; + return this; + } + + public Builder setFindingsRefinement(String findingsRefinement) { + this.findingsRefinement = findingsRefinement; + return this; + } + + private Builder(FindingsRefinementName findingsRefinementName) { + this.project = findingsRefinementName.project; + this.location = findingsRefinementName.location; + this.instance = findingsRefinementName.instance; + this.findingsRefinement = findingsRefinementName.findingsRefinement; + } + + public FindingsRefinementName build() { + return new FindingsRefinementName(this); + } + } +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/FindingsRefinementOrBuilder.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/FindingsRefinementOrBuilder.java new file mode 100644 index 000000000000..694e989b10cb --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/FindingsRefinementOrBuilder.java @@ -0,0 +1,308 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/chronicle/v1/findings_refinement.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +@com.google.protobuf.Generated +public interface FindingsRefinementOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.chronicle.v1.FindingsRefinement) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                +   * Full resource name for the findings refinement.
                +   * Format:
                +   * projects/{project}/locations/{region}/instances/{instance}/findingsRefinements/{findings_refinement}
                +   * 
                + * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                +   * Full resource name for the findings refinement.
                +   * Format:
                +   * projects/{project}/locations/{region}/instances/{instance}/findingsRefinements/{findings_refinement}
                +   * 
                + * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                +   * Display name of the findings refinement.
                +   * 
                + * + * string display_name = 2; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
                +   * Display name of the findings refinement.
                +   * 
                + * + * string display_name = 2; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
                +   * The type of findings refinement.
                +   * 
                + * + * .google.cloud.chronicle.v1.FindingsRefinementType type = 3; + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + + /** + * + * + *
                +   * The type of findings refinement.
                +   * 
                + * + * .google.cloud.chronicle.v1.FindingsRefinementType type = 3; + * + * @return The type. + */ + com.google.cloud.chronicle.v1.FindingsRefinementType getType(); + + /** + * + * + *
                +   * Output only. The timestamp of when the findings refinement 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. The timestamp of when the findings refinement was created.
                +   * 
                + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
                +   * Output only. The timestamp of when the findings refinement was created.
                +   * 
                + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
                +   * Output only. The timestamp of when the findings refinement was last
                +   * updated.
                +   * 
                + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
                +   * Output only. The timestamp of when the findings refinement was last
                +   * updated.
                +   * 
                + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
                +   * Output only. The timestamp of when the findings refinement was last
                +   * updated.
                +   * 
                + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
                +   * The query for the findings refinement. Works in conjunction with the type
                +   * field to determine the findings refinement behavior. The syntax of this
                +   * query is the same as a UDM search string. See the following for more
                +   * information:
                +   * https://cloud.google.com/chronicle/docs/investigation/udm-search
                +   * 
                + * + * string query = 7; + * + * @return The query. + */ + java.lang.String getQuery(); + + /** + * + * + *
                +   * The query for the findings refinement. Works in conjunction with the type
                +   * field to determine the findings refinement behavior. The syntax of this
                +   * query is the same as a UDM search string. See the following for more
                +   * information:
                +   * https://cloud.google.com/chronicle/docs/investigation/udm-search
                +   * 
                + * + * string query = 7; + * + * @return The bytes for query. + */ + com.google.protobuf.ByteString getQueryBytes(); + + /** + * + * + *
                +   * Optional. The outcome filters for the findings refinement. These allow you
                +   * to specify filters that are applied to the outcome variables in the
                +   * detection. All filters must be true for a detection to match the findings
                +   * refinement.
                +   * 
                + * + * + * repeated .google.cloud.chronicle.v1.OutcomeFilter outcome_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getOutcomeFiltersList(); + + /** + * + * + *
                +   * Optional. The outcome filters for the findings refinement. These allow you
                +   * to specify filters that are applied to the outcome variables in the
                +   * detection. All filters must be true for a detection to match the findings
                +   * refinement.
                +   * 
                + * + * + * repeated .google.cloud.chronicle.v1.OutcomeFilter outcome_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.chronicle.v1.OutcomeFilter getOutcomeFilters(int index); + + /** + * + * + *
                +   * Optional. The outcome filters for the findings refinement. These allow you
                +   * to specify filters that are applied to the outcome variables in the
                +   * detection. All filters must be true for a detection to match the findings
                +   * refinement.
                +   * 
                + * + * + * repeated .google.cloud.chronicle.v1.OutcomeFilter outcome_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getOutcomeFiltersCount(); + + /** + * + * + *
                +   * Optional. The outcome filters for the findings refinement. These allow you
                +   * to specify filters that are applied to the outcome variables in the
                +   * detection. All filters must be true for a detection to match the findings
                +   * refinement.
                +   * 
                + * + * + * repeated .google.cloud.chronicle.v1.OutcomeFilter outcome_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getOutcomeFiltersOrBuilderList(); + + /** + * + * + *
                +   * Optional. The outcome filters for the findings refinement. These allow you
                +   * to specify filters that are applied to the outcome variables in the
                +   * detection. All filters must be true for a detection to match the findings
                +   * refinement.
                +   * 
                + * + * + * repeated .google.cloud.chronicle.v1.OutcomeFilter outcome_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.chronicle.v1.OutcomeFilterOrBuilder getOutcomeFiltersOrBuilder(int index); +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/FindingsRefinementProto.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/FindingsRefinementProto.java new file mode 100644 index 000000000000..87ea681c65be --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/FindingsRefinementProto.java @@ -0,0 +1,534 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/chronicle/v1/findings_refinement.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +@com.google.protobuf.Generated +public final class FindingsRefinementProto extends com.google.protobuf.GeneratedFile { + private FindingsRefinementProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "FindingsRefinementProto"); + } + + 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_chronicle_v1_FindingsRefinement_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_chronicle_v1_FindingsRefinement_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_chronicle_v1_FindingsRefinementDeployment_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_chronicle_v1_FindingsRefinementDeployment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_chronicle_v1_DetectionExclusionApplication_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_chronicle_v1_DetectionExclusionApplication_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_chronicle_v1_FindingsRefinementActivity_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_chronicle_v1_FindingsRefinementActivity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_chronicle_v1_DetectionExclusionActivity_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_chronicle_v1_DetectionExclusionActivity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_chronicle_v1_DetectionExclusionActivity_DetectionExclusionDetectorActivity_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_chronicle_v1_DetectionExclusionActivity_DetectionExclusionDetectorActivity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_chronicle_v1_GetFindingsRefinementRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_chronicle_v1_GetFindingsRefinementRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_chronicle_v1_ListFindingsRefinementsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_chronicle_v1_ListFindingsRefinementsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_chronicle_v1_ListFindingsRefinementsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_chronicle_v1_ListFindingsRefinementsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_chronicle_v1_CreateFindingsRefinementRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_chronicle_v1_CreateFindingsRefinementRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_chronicle_v1_UpdateFindingsRefinementRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_chronicle_v1_UpdateFindingsRefinementRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_chronicle_v1_GetFindingsRefinementDeploymentRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_chronicle_v1_GetFindingsRefinementDeploymentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_chronicle_v1_UpdateFindingsRefinementDeploymentRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_chronicle_v1_UpdateFindingsRefinementDeploymentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_chronicle_v1_ListAllFindingsRefinementDeploymentsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_chronicle_v1_ListAllFindingsRefinementDeploymentsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_chronicle_v1_ListAllFindingsRefinementDeploymentsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_chronicle_v1_ListAllFindingsRefinementDeploymentsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_chronicle_v1_OutcomeFilter_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_chronicle_v1_OutcomeFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_chronicle_v1_ComputeFindingsRefinementActivityRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_chronicle_v1_ComputeFindingsRefinementActivityRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_chronicle_v1_ComputeFindingsRefinementActivityResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_chronicle_v1_ComputeFindingsRefinementActivityResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_chronicle_v1_ComputeAllFindingsRefinementActivitiesRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_chronicle_v1_ComputeAllFindingsRefinementActivitiesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_chronicle_v1_ComputeAllFindingsRefinementActivitiesResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_chronicle_v1_ComputeAllFindingsRefinementActivitiesResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n3google/cloud/chronicle/v1/findings_ref" + + "inement.proto\022\031google.cloud.chronicle.v1" + + "\032\034google/api/annotations.proto\032\027google/a" + + "pi/client.proto\032\037google/api/field_behavi" + + "or.proto\032\031google/api/resource.proto\032 goo" + + "gle/protobuf/field_mask.proto\032\037google/pr" + + "otobuf/timestamp.proto\032\032google/type/inte" + + "rval.proto\"\330\003\n\022FindingsRefinement\022\014\n\004nam" + + "e\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t\022?\n\004type\030\003 " + + "\001(\01621.google.cloud.chronicle.v1.Findings" + + "RefinementType\0224\n\013create_time\030\004 \001(\0132\032.go" + + "ogle.protobuf.TimestampB\003\340A\003\0224\n\013update_t" + + "ime\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340" + + "A\003\022\r\n\005query\030\007 \001(\t\022F\n\017outcome_filters\030\010 \003" + + "(\0132(.google.cloud.chronicle.v1.OutcomeFi" + + "lterB\003\340A\001:\231\001\352A\225\001\n+chronicle.googleapis.c" + + "om/FindingsRefinement\022fprojects/{project" + + "}/locations/{location}/instances/{instan" + + "ce}/findingsRefinements/{findings_refine" + + "ment}\"\301\003\n\034FindingsRefinementDeployment\022c" + + "\n\037detection_exclusion_application\030\005 \001(\0132" + + "8.google.cloud.chronicle.v1.DetectionExc" + + "lusionApplicationH\000\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\017" + + "\n\007enabled\030\002 \001(\010\022\020\n\010archived\030\003 \001(\010\0224\n\013upd" + + "ate_time\030\004 \001(\0132\032.google.protobuf.Timesta" + + "mpB\003\340A\003:\256\001\352A\252\001\n5chronicle.googleapis.com" + + "/FindingsRefinementDeployment\022qprojects/" + + "{project}/locations/{location}/instances" + + "/{instance}/findingsRefinements/{finding" + + "s_refinement}/deploymentB\037\n\035FindingsRefi" + + "nementApplication\"\264\002\n\035DetectionExclusion" + + "Application\022G\n\021curated_rule_sets\030\001 \003(\tB," + + "\372A)\n\'chronicle.googleapis.com/CuratedRul" + + "eSet\022@\n\rcurated_rules\030\002 \003(\tB)\372A&\n$chroni" + + "cle.googleapis.com/CuratedRule\0224\n\005rules\030" + + "\003 \003(\tB%\340A\001\372A\037\n\035chronicle.googleapis.com/" + + "Rule\022R\n\031deleted_curated_rule_sets\030\004 \003(\tB" + + "/\340A\003\372A)\n\'chronicle.googleapis.com/Curate" + + "dRuleSet\"\331\001\n\032FindingsRefinementActivity\022" + + "]\n\034detection_exclusion_activity\030\002 \001(\01325." + + "google.cloud.chronicle.v1.DetectionExclu" + + "sionActivityH\000\022P\n\023findings_refinement\030\001 " + + "\001(\tB3\340A\002\372A-\n+chronicle.googleapis.com/Fi" + + "ndingsRefinementB\n\n\010Activity\"\264\004\n\032Detecti" + + "onExclusionActivity\022\211\001\n\'detection_exclus" + + "ion_detector_activities\030\001 \003(\0132X.google.c" + + "loud.chronicle.v1.DetectionExclusionActi" + + "vity.DetectionExclusionDetectorActivity\032" + + "\211\003\n\"DetectionExclusionDetectorActivity\022A" + + "\n\014curated_rule\030\001 \001(\tB)\372A&\n$chronicle.goo" + + "gleapis.com/CuratedRuleH\000\022H\n\020curated_rul" + + "e_set\030\002 \001(\tB,\372A)\n\'chronicle.googleapis.c" + + "om/CuratedRuleSetH\000\0222\n\004rule\030\005 \001(\tB\"\372A\037\n\035" + + "chronicle.googleapis.com/RuleH\000\022P\n\030delet" + + "ed_curated_rule_set\030\006 \001(\tB,\372A)\n\'chronicl" + + "e.googleapis.com/CuratedRuleSetH\000\022 \n\030exc" + + "luded_detection_count\030\003 \001(\003\022\035\n\025total_det" + + "ection_count\030\004 \001(\003B\017\n\rdetector_name\"a\n\034G" + + "etFindingsRefinementRequest\022A\n\004name\030\001 \001(" + + "\tB3\340A\002\372A-\n+chronicle.googleapis.com/Find" + + "ingsRefinement\"\214\001\n\036ListFindingsRefinemen" + + "tsRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\022+chron" + + "icle.googleapis.com/FindingsRefinement\022\021" + + "\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\207\001" + + "\n\037ListFindingsRefinementsResponse\022K\n\024fin" + + "dings_refinements\030\001 \003(\0132-.google.cloud.c" + + "hronicle.v1.FindingsRefinement\022\027\n\017next_p" + + "age_token\030\002 \001(\t\"\267\001\n\037CreateFindingsRefine" + + "mentRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\022+chr" + + "onicle.googleapis.com/FindingsRefinement" + + "\022O\n\023findings_refinement\030\002 \001(\0132-.google.c" + + "loud.chronicle.v1.FindingsRefinementB\003\340A" + + "\002\"\250\001\n\037UpdateFindingsRefinementRequest\022O\n" + + "\023findings_refinement\030\001 \001(\0132-.google.clou" + + "d.chronicle.v1.FindingsRefinementB\003\340A\002\0224" + + "\n\013update_mask\030\002 \001(\0132\032.google.protobuf.Fi" + + "eldMaskB\003\340A\001\"u\n&GetFindingsRefinementDep" + + "loymentRequest\022K\n\004name\030\001 \001(\tB=\340A\002\372A7\n5ch" + + "ronicle.googleapis.com/FindingsRefinemen" + + "tDeployment\"\307\001\n)UpdateFindingsRefinement" + + "DeploymentRequest\022d\n\036findings_refinement" + + "_deployment\030\001 \001(\01327.google.cloud.chronic" + + "le.v1.FindingsRefinementDeploymentB\003\340A\002\022" + + "4\n\013update_mask\030\002 \001(\0132\032.google.protobuf.F" + + "ieldMaskB\003\340A\002\"\241\001\n+ListAllFindingsRefinem" + + "entDeploymentsRequest\022;\n\010instance\030\001 \001(\tB" + + ")\340A\002\372A#\n!chronicle.googleapis.com/Instan" + + "ce\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\"\255\001\n,ListAllFindingsRef" + + "inementDeploymentsResponse\022d\n#all_findin" + + "gs_refinement_deployments\030\001 \003(\01327.google" + + ".cloud.chronicle.v1.FindingsRefinementDe" + + "ployment\022\027\n\017next_page_token\030\002 \001(\t\"\207\002\n\rOu" + + "tcomeFilter\022\035\n\020outcome_variable\030\001 \001(\tB\003\340" + + "A\002\022\032\n\routcome_value\030\002 \001(\tB\003\340A\002\022W\n\027outcom" + + "e_filter_operator\030\003 \001(\01621.google.cloud.c" + + "hronicle.v1.OutcomeFilter.OperatorB\003\340A\002\"" + + "b\n\010Operator\022\030\n\024OPERATOR_UNSPECIFIED\020\000\022\t\n" + + "\005EQUAL\020\001\022\014\n\010CONTAINS\020\002\022\021\n\rMATCHES_REGEX\020" + + "\003\022\020\n\014MATCHES_CIDR\020\004\"\226\001\n(ComputeFindingsR" + + "efinementActivityRequest\022A\n\004name\030\001 \001(\tB3" + + "\340A\002\372A-\n+chronicle.googleapis.com/Finding" + + "sRefinement\022\'\n\010interval\030\002 \001(\0132\025.google.t" + + "ype.Interval\"t\n)ComputeFindingsRefinemen" + + "tActivityResponse\022G\n\010activity\030\001 \001(\01325.go" + + "ogle.cloud.chronicle.v1.FindingsRefineme" + + "ntActivity\"\225\001\n-ComputeAllFindingsRefinem" + + "entActivitiesRequest\022;\n\010instance\030\001 \001(\tB)" + + "\340A\002\372A#\n!chronicle.googleapis.com/Instanc" + + "e\022\'\n\010interval\030\002 \001(\0132\025.google.type.Interv" + + "al\"{\n.ComputeAllFindingsRefinementActivi" + + "tiesResponse\022I\n\nactivities\030\001 \003(\01325.googl" + + "e.cloud.chronicle.v1.FindingsRefinementA" + + "ctivity*[\n\026FindingsRefinementType\022(\n$FIN" + + "DINGS_REFINEMENT_TYPE_UNSPECIFIED\020\000\022\027\n\023D" + + "ETECTION_EXCLUSION\020\0012\231\025\n\031FindingsRefinem" + + "entService\022\323\001\n\025GetFindingsRefinement\0227.g" + + "oogle.cloud.chronicle.v1.GetFindingsRefi" + + "nementRequest\032-.google.cloud.chronicle.v" + + "1.FindingsRefinement\"R\332A\004name\202\323\344\223\002E\022C/v1" + + "/{name=projects/*/locations/*/instances/" + + "*/findingsRefinements/*}\022\346\001\n\027ListFinding" + + "sRefinements\0229.google.cloud.chronicle.v1" + + ".ListFindingsRefinementsRequest\032:.google" + + ".cloud.chronicle.v1.ListFindingsRefineme" + + "ntsResponse\"T\332A\006parent\202\323\344\223\002E\022C/v1/{paren" + + "t=projects/*/locations/*/instances/*}/fi" + + "ndingsRefinements\022\204\002\n\030CreateFindingsRefi" + + "nement\022:.google.cloud.chronicle.v1.Creat" + + "eFindingsRefinementRequest\032-.google.clou" + + "d.chronicle.v1.FindingsRefinement\"}\332A\032pa" + + "rent,findings_refinement\202\323\344\223\002Z\"C/v1/{par" + + "ent=projects/*/locations/*/instances/*}/" + + "findingsRefinements:\023findings_refinement" + + "\022\236\002\n\030UpdateFindingsRefinement\022:.google.c" + + "loud.chronicle.v1.UpdateFindingsRefineme" + + "ntRequest\032-.google.cloud.chronicle.v1.Fi" + + "ndingsRefinement\"\226\001\332A\037findings_refinemen" + + "t,update_mask\202\323\344\223\002n2W/v1/{findings_refin" + + "ement.name=projects/*/locations/*/instan" + + "ces/*/findingsRefinements/*}:\023findings_r" + + "efinement\022\374\001\n\037GetFindingsRefinementDeplo" + + "yment\022A.google.cloud.chronicle.v1.GetFin" + + "dingsRefinementDeploymentRequest\0327.googl" + + "e.cloud.chronicle.v1.FindingsRefinementD" + + "eployment\"]\332A\004name\202\323\344\223\002P\022N/v1/{name=proj" + + "ects/*/locations/*/instances/*/findingsR" + + "efinements/*/deployment}\022\351\002\n\"UpdateFindi" + + "ngsRefinementDeployment\022D.google.cloud.c" + + "hronicle.v1.UpdateFindingsRefinementDepl" + + "oymentRequest\0327.google.cloud.chronicle.v" + + "1.FindingsRefinementDeployment\"\303\001\332A*find" + + "ings_refinement_deployment,update_mask\202\323" + + "\344\223\002\217\0012m/v1/{findings_refinement_deployme" + + "nt.name=projects/*/locations/*/instances" + + "/*/findingsRefinements/*/deployment}:\036fi" + + "ndings_refinement_deployment\022\242\002\n$ListAll" + + "FindingsRefinementDeployments\022F.google.c" + + "loud.chronicle.v1.ListAllFindingsRefinem" + + "entDeploymentsRequest\032G.google.cloud.chr" + + "onicle.v1.ListAllFindingsRefinementDeplo" + + "ymentsResponse\"i\332A\010instance\202\323\344\223\002X\022V/v1/{" + + "instance=projects/*/locations/*/instance" + + "s/*}:listAllFindingsRefinementDeployment" + + "s\022\247\002\n!ComputeFindingsRefinementActivity\022" + + "C.google.cloud.chronicle.v1.ComputeFindi" + + "ngsRefinementActivityRequest\032D.google.cl" + + "oud.chronicle.v1.ComputeFindingsRefineme" + + "ntActivityResponse\"w\332A\004name\202\323\344\223\002j\"e/v1/{" + + "name=projects/*/locations/*/instances/*/" + + "findingsRefinements/*}:computeFindingsRe" + + "finementActivity:\001*\022\255\002\n&ComputeAllFindin" + + "gsRefinementActivities\022H.google.cloud.ch" + + "ronicle.v1.ComputeAllFindingsRefinementA" + + "ctivitiesRequest\032I.google.cloud.chronicl" + + "e.v1.ComputeAllFindingsRefinementActivit" + + "iesResponse\"n\332A\010instance\202\323\344\223\002]\"X/v1/{ins" + + "tance=projects/*/locations/*/instances/*" + + "}:computeAllFindingsRefinementActivities" + + ":\001*\032\252\001\312A\030chronicle.googleapis.com\322A\213\001htt" + + "ps://www.googleapis.com/auth/chronicle,h" + + "ttps://www.googleapis.com/auth/chronicle" + + ".readonly,https://www.googleapis.com/aut" + + "h/cloud-platformB\370\002\n\035com.google.cloud.ch" + + "ronicle.v1B\027FindingsRefinementProtoP\001Z;c" + + "loud.google.com/go/chronicle/apiv1/chron" + + "iclepb;chroniclepb\252\002\031Google.Cloud.Chroni" + + "cle.V1\312\002\031Google\\Cloud\\Chronicle\\V1\352\002\034Goo" + + "gle::Cloud::Chronicle::V1\352A\246\001\n\'chronicle" + + ".googleapis.com/CuratedRuleSet\022{projects" + + "/{project}/locations/{location}/instance" + + "s/{instance}/curatedRuleSetCategories/{c" + + "ategory}/curatedRuleSets/{rule_set}b\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.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.type.IntervalProto.getDescriptor(), + }); + internal_static_google_cloud_chronicle_v1_FindingsRefinement_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_chronicle_v1_FindingsRefinement_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_chronicle_v1_FindingsRefinement_descriptor, + new java.lang.String[] { + "Name", "DisplayName", "Type", "CreateTime", "UpdateTime", "Query", "OutcomeFilters", + }); + internal_static_google_cloud_chronicle_v1_FindingsRefinementDeployment_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_chronicle_v1_FindingsRefinementDeployment_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_chronicle_v1_FindingsRefinementDeployment_descriptor, + new java.lang.String[] { + "DetectionExclusionApplication", + "Name", + "Enabled", + "Archived", + "UpdateTime", + "FindingsRefinementApplication", + }); + internal_static_google_cloud_chronicle_v1_DetectionExclusionApplication_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_chronicle_v1_DetectionExclusionApplication_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_chronicle_v1_DetectionExclusionApplication_descriptor, + new java.lang.String[] { + "CuratedRuleSets", "CuratedRules", "Rules", "DeletedCuratedRuleSets", + }); + internal_static_google_cloud_chronicle_v1_FindingsRefinementActivity_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_chronicle_v1_FindingsRefinementActivity_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_chronicle_v1_FindingsRefinementActivity_descriptor, + new java.lang.String[] { + "DetectionExclusionActivity", "FindingsRefinement", "Activity", + }); + internal_static_google_cloud_chronicle_v1_DetectionExclusionActivity_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_chronicle_v1_DetectionExclusionActivity_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_chronicle_v1_DetectionExclusionActivity_descriptor, + new java.lang.String[] { + "DetectionExclusionDetectorActivities", + }); + internal_static_google_cloud_chronicle_v1_DetectionExclusionActivity_DetectionExclusionDetectorActivity_descriptor = + internal_static_google_cloud_chronicle_v1_DetectionExclusionActivity_descriptor + .getNestedType(0); + internal_static_google_cloud_chronicle_v1_DetectionExclusionActivity_DetectionExclusionDetectorActivity_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_chronicle_v1_DetectionExclusionActivity_DetectionExclusionDetectorActivity_descriptor, + new java.lang.String[] { + "CuratedRule", + "CuratedRuleSet", + "Rule", + "DeletedCuratedRuleSet", + "ExcludedDetectionCount", + "TotalDetectionCount", + "DetectorName", + }); + internal_static_google_cloud_chronicle_v1_GetFindingsRefinementRequest_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_cloud_chronicle_v1_GetFindingsRefinementRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_chronicle_v1_GetFindingsRefinementRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_chronicle_v1_ListFindingsRefinementsRequest_descriptor = + getDescriptor().getMessageType(6); + internal_static_google_cloud_chronicle_v1_ListFindingsRefinementsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_chronicle_v1_ListFindingsRefinementsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_chronicle_v1_ListFindingsRefinementsResponse_descriptor = + getDescriptor().getMessageType(7); + internal_static_google_cloud_chronicle_v1_ListFindingsRefinementsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_chronicle_v1_ListFindingsRefinementsResponse_descriptor, + new java.lang.String[] { + "FindingsRefinements", "NextPageToken", + }); + internal_static_google_cloud_chronicle_v1_CreateFindingsRefinementRequest_descriptor = + getDescriptor().getMessageType(8); + internal_static_google_cloud_chronicle_v1_CreateFindingsRefinementRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_chronicle_v1_CreateFindingsRefinementRequest_descriptor, + new java.lang.String[] { + "Parent", "FindingsRefinement", + }); + internal_static_google_cloud_chronicle_v1_UpdateFindingsRefinementRequest_descriptor = + getDescriptor().getMessageType(9); + internal_static_google_cloud_chronicle_v1_UpdateFindingsRefinementRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_chronicle_v1_UpdateFindingsRefinementRequest_descriptor, + new java.lang.String[] { + "FindingsRefinement", "UpdateMask", + }); + internal_static_google_cloud_chronicle_v1_GetFindingsRefinementDeploymentRequest_descriptor = + getDescriptor().getMessageType(10); + internal_static_google_cloud_chronicle_v1_GetFindingsRefinementDeploymentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_chronicle_v1_GetFindingsRefinementDeploymentRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_chronicle_v1_UpdateFindingsRefinementDeploymentRequest_descriptor = + getDescriptor().getMessageType(11); + internal_static_google_cloud_chronicle_v1_UpdateFindingsRefinementDeploymentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_chronicle_v1_UpdateFindingsRefinementDeploymentRequest_descriptor, + new java.lang.String[] { + "FindingsRefinementDeployment", "UpdateMask", + }); + internal_static_google_cloud_chronicle_v1_ListAllFindingsRefinementDeploymentsRequest_descriptor = + getDescriptor().getMessageType(12); + internal_static_google_cloud_chronicle_v1_ListAllFindingsRefinementDeploymentsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_chronicle_v1_ListAllFindingsRefinementDeploymentsRequest_descriptor, + new java.lang.String[] { + "Instance", "PageSize", "PageToken", "Filter", + }); + internal_static_google_cloud_chronicle_v1_ListAllFindingsRefinementDeploymentsResponse_descriptor = + getDescriptor().getMessageType(13); + internal_static_google_cloud_chronicle_v1_ListAllFindingsRefinementDeploymentsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_chronicle_v1_ListAllFindingsRefinementDeploymentsResponse_descriptor, + new java.lang.String[] { + "AllFindingsRefinementDeployments", "NextPageToken", + }); + internal_static_google_cloud_chronicle_v1_OutcomeFilter_descriptor = + getDescriptor().getMessageType(14); + internal_static_google_cloud_chronicle_v1_OutcomeFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_chronicle_v1_OutcomeFilter_descriptor, + new java.lang.String[] { + "OutcomeVariable", "OutcomeValue", "OutcomeFilterOperator", + }); + internal_static_google_cloud_chronicle_v1_ComputeFindingsRefinementActivityRequest_descriptor = + getDescriptor().getMessageType(15); + internal_static_google_cloud_chronicle_v1_ComputeFindingsRefinementActivityRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_chronicle_v1_ComputeFindingsRefinementActivityRequest_descriptor, + new java.lang.String[] { + "Name", "Interval", + }); + internal_static_google_cloud_chronicle_v1_ComputeFindingsRefinementActivityResponse_descriptor = + getDescriptor().getMessageType(16); + internal_static_google_cloud_chronicle_v1_ComputeFindingsRefinementActivityResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_chronicle_v1_ComputeFindingsRefinementActivityResponse_descriptor, + new java.lang.String[] { + "Activity", + }); + internal_static_google_cloud_chronicle_v1_ComputeAllFindingsRefinementActivitiesRequest_descriptor = + getDescriptor().getMessageType(17); + internal_static_google_cloud_chronicle_v1_ComputeAllFindingsRefinementActivitiesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_chronicle_v1_ComputeAllFindingsRefinementActivitiesRequest_descriptor, + new java.lang.String[] { + "Instance", "Interval", + }); + internal_static_google_cloud_chronicle_v1_ComputeAllFindingsRefinementActivitiesResponse_descriptor = + getDescriptor().getMessageType(18); + internal_static_google_cloud_chronicle_v1_ComputeAllFindingsRefinementActivitiesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_chronicle_v1_ComputeAllFindingsRefinementActivitiesResponse_descriptor, + new java.lang.String[] { + "Activities", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.type.IntervalProto.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.resource); + registry.add(com.google.api.ResourceProto.resourceDefinition); + 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-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/FindingsRefinementType.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/FindingsRefinementType.java new file mode 100644 index 000000000000..97a0b8ff9a75 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/FindingsRefinementType.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/chronicle/v1/findings_refinement.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +/** + * + * + *
                + * The type of findings refinement, which determines what the findings
                + * refinement runs over and the mechanism by which it runs.
                + * 
                + * + * Protobuf enum {@code google.cloud.chronicle.v1.FindingsRefinementType} + */ +@com.google.protobuf.Generated +public enum FindingsRefinementType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                +   * The findings refinement type is unspecified.
                +   * 
                + * + * FINDINGS_REFINEMENT_TYPE_UNSPECIFIED = 0; + */ + FINDINGS_REFINEMENT_TYPE_UNSPECIFIED(0), + /** + * + * + *
                +   * Indicates that the findings refinement is a detection exclusion and
                +   * should exclude matching detections.
                +   * 
                + * + * DETECTION_EXCLUSION = 1; + */ + DETECTION_EXCLUSION(1), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "FindingsRefinementType"); + } + + /** + * + * + *
                +   * The findings refinement type is unspecified.
                +   * 
                + * + * FINDINGS_REFINEMENT_TYPE_UNSPECIFIED = 0; + */ + public static final int FINDINGS_REFINEMENT_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                +   * Indicates that the findings refinement is a detection exclusion and
                +   * should exclude matching detections.
                +   * 
                + * + * DETECTION_EXCLUSION = 1; + */ + public static final int DETECTION_EXCLUSION_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 FindingsRefinementType 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 FindingsRefinementType forNumber(int value) { + switch (value) { + case 0: + return FINDINGS_REFINEMENT_TYPE_UNSPECIFIED; + case 1: + return DETECTION_EXCLUSION; + 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 FindingsRefinementType findValueByNumber(int number) { + return FindingsRefinementType.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.chronicle.v1.FindingsRefinementProto.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final FindingsRefinementType[] VALUES = values(); + + public static FindingsRefinementType 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 FindingsRefinementType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.chronicle.v1.FindingsRefinementType) +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/GetFindingsRefinementDeploymentRequest.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/GetFindingsRefinementDeploymentRequest.java new file mode 100644 index 000000000000..086bb9225b3d --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/GetFindingsRefinementDeploymentRequest.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/chronicle/v1/findings_refinement.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +/** + * + * + *
                + * Request message for GetFindingsRefinementDeployment method.
                + * 
                + * + * Protobuf type {@code google.cloud.chronicle.v1.GetFindingsRefinementDeploymentRequest} + */ +@com.google.protobuf.Generated +public final class GetFindingsRefinementDeploymentRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.chronicle.v1.GetFindingsRefinementDeploymentRequest) + GetFindingsRefinementDeploymentRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetFindingsRefinementDeploymentRequest"); + } + + // Use GetFindingsRefinementDeploymentRequest.newBuilder() to construct. + private GetFindingsRefinementDeploymentRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetFindingsRefinementDeploymentRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_GetFindingsRefinementDeploymentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_GetFindingsRefinementDeploymentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.GetFindingsRefinementDeploymentRequest.class, + com.google.cloud.chronicle.v1.GetFindingsRefinementDeploymentRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                +   * Required. The name of the findings refinement to retrieve.
                +   * Format:
                +   * projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}/deployment
                +   * 
                + * + * + * 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 findings refinement to retrieve.
                +   * Format:
                +   * projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}/deployment
                +   * 
                + * + * + * 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.chronicle.v1.GetFindingsRefinementDeploymentRequest)) { + return super.equals(obj); + } + com.google.cloud.chronicle.v1.GetFindingsRefinementDeploymentRequest other = + (com.google.cloud.chronicle.v1.GetFindingsRefinementDeploymentRequest) 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.chronicle.v1.GetFindingsRefinementDeploymentRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.GetFindingsRefinementDeploymentRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.GetFindingsRefinementDeploymentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.GetFindingsRefinementDeploymentRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.GetFindingsRefinementDeploymentRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.GetFindingsRefinementDeploymentRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.GetFindingsRefinementDeploymentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.GetFindingsRefinementDeploymentRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.GetFindingsRefinementDeploymentRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.GetFindingsRefinementDeploymentRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.GetFindingsRefinementDeploymentRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.GetFindingsRefinementDeploymentRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.chronicle.v1.GetFindingsRefinementDeploymentRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 GetFindingsRefinementDeployment method.
                +   * 
                + * + * Protobuf type {@code google.cloud.chronicle.v1.GetFindingsRefinementDeploymentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.chronicle.v1.GetFindingsRefinementDeploymentRequest) + com.google.cloud.chronicle.v1.GetFindingsRefinementDeploymentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_GetFindingsRefinementDeploymentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_GetFindingsRefinementDeploymentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.GetFindingsRefinementDeploymentRequest.class, + com.google.cloud.chronicle.v1.GetFindingsRefinementDeploymentRequest.Builder.class); + } + + // Construct using + // com.google.cloud.chronicle.v1.GetFindingsRefinementDeploymentRequest.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.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_GetFindingsRefinementDeploymentRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.GetFindingsRefinementDeploymentRequest + getDefaultInstanceForType() { + return com.google.cloud.chronicle.v1.GetFindingsRefinementDeploymentRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.GetFindingsRefinementDeploymentRequest build() { + com.google.cloud.chronicle.v1.GetFindingsRefinementDeploymentRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.GetFindingsRefinementDeploymentRequest buildPartial() { + com.google.cloud.chronicle.v1.GetFindingsRefinementDeploymentRequest result = + new com.google.cloud.chronicle.v1.GetFindingsRefinementDeploymentRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.chronicle.v1.GetFindingsRefinementDeploymentRequest 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.chronicle.v1.GetFindingsRefinementDeploymentRequest) { + return mergeFrom( + (com.google.cloud.chronicle.v1.GetFindingsRefinementDeploymentRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.chronicle.v1.GetFindingsRefinementDeploymentRequest other) { + if (other + == com.google.cloud.chronicle.v1.GetFindingsRefinementDeploymentRequest + .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 findings refinement to retrieve.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}/deployment
                +     * 
                + * + * + * 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 findings refinement to retrieve.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}/deployment
                +     * 
                + * + * + * 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 findings refinement to retrieve.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}/deployment
                +     * 
                + * + * + * 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 findings refinement to retrieve.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}/deployment
                +     * 
                + * + * + * 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 findings refinement to retrieve.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}/deployment
                +     * 
                + * + * + * 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.chronicle.v1.GetFindingsRefinementDeploymentRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.chronicle.v1.GetFindingsRefinementDeploymentRequest) + private static final com.google.cloud.chronicle.v1.GetFindingsRefinementDeploymentRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.chronicle.v1.GetFindingsRefinementDeploymentRequest(); + } + + public static com.google.cloud.chronicle.v1.GetFindingsRefinementDeploymentRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetFindingsRefinementDeploymentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.GetFindingsRefinementDeploymentRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/GetFindingsRefinementDeploymentRequestOrBuilder.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/GetFindingsRefinementDeploymentRequestOrBuilder.java new file mode 100644 index 000000000000..db24027bd51e --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/GetFindingsRefinementDeploymentRequestOrBuilder.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/chronicle/v1/findings_refinement.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +@com.google.protobuf.Generated +public interface GetFindingsRefinementDeploymentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.chronicle.v1.GetFindingsRefinementDeploymentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                +   * Required. The name of the findings refinement to retrieve.
                +   * Format:
                +   * projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}/deployment
                +   * 
                + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                +   * Required. The name of the findings refinement to retrieve.
                +   * Format:
                +   * projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}/deployment
                +   * 
                + * + * + * 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-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/GetFindingsRefinementRequest.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/GetFindingsRefinementRequest.java new file mode 100644 index 000000000000..ff8babaebfb2 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/GetFindingsRefinementRequest.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/chronicle/v1/findings_refinement.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +/** + * + * + *
                + * Request message for GetFindingsRefinement method.
                + * 
                + * + * Protobuf type {@code google.cloud.chronicle.v1.GetFindingsRefinementRequest} + */ +@com.google.protobuf.Generated +public final class GetFindingsRefinementRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.chronicle.v1.GetFindingsRefinementRequest) + GetFindingsRefinementRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetFindingsRefinementRequest"); + } + + // Use GetFindingsRefinementRequest.newBuilder() to construct. + private GetFindingsRefinementRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetFindingsRefinementRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_GetFindingsRefinementRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_GetFindingsRefinementRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.GetFindingsRefinementRequest.class, + com.google.cloud.chronicle.v1.GetFindingsRefinementRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                +   * Required. The name of the findings refinement to retrieve.
                +   * Format:
                +   * projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}
                +   * 
                + * + * + * 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 findings refinement to retrieve.
                +   * Format:
                +   * projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}
                +   * 
                + * + * + * 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.chronicle.v1.GetFindingsRefinementRequest)) { + return super.equals(obj); + } + com.google.cloud.chronicle.v1.GetFindingsRefinementRequest other = + (com.google.cloud.chronicle.v1.GetFindingsRefinementRequest) 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.chronicle.v1.GetFindingsRefinementRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.GetFindingsRefinementRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.GetFindingsRefinementRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.GetFindingsRefinementRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.GetFindingsRefinementRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.GetFindingsRefinementRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.GetFindingsRefinementRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.GetFindingsRefinementRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.GetFindingsRefinementRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.GetFindingsRefinementRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.GetFindingsRefinementRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.GetFindingsRefinementRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.chronicle.v1.GetFindingsRefinementRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 GetFindingsRefinement method.
                +   * 
                + * + * Protobuf type {@code google.cloud.chronicle.v1.GetFindingsRefinementRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.chronicle.v1.GetFindingsRefinementRequest) + com.google.cloud.chronicle.v1.GetFindingsRefinementRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_GetFindingsRefinementRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_GetFindingsRefinementRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.GetFindingsRefinementRequest.class, + com.google.cloud.chronicle.v1.GetFindingsRefinementRequest.Builder.class); + } + + // Construct using com.google.cloud.chronicle.v1.GetFindingsRefinementRequest.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.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_GetFindingsRefinementRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.GetFindingsRefinementRequest getDefaultInstanceForType() { + return com.google.cloud.chronicle.v1.GetFindingsRefinementRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.GetFindingsRefinementRequest build() { + com.google.cloud.chronicle.v1.GetFindingsRefinementRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.GetFindingsRefinementRequest buildPartial() { + com.google.cloud.chronicle.v1.GetFindingsRefinementRequest result = + new com.google.cloud.chronicle.v1.GetFindingsRefinementRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.chronicle.v1.GetFindingsRefinementRequest 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.chronicle.v1.GetFindingsRefinementRequest) { + return mergeFrom((com.google.cloud.chronicle.v1.GetFindingsRefinementRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.chronicle.v1.GetFindingsRefinementRequest other) { + if (other == com.google.cloud.chronicle.v1.GetFindingsRefinementRequest.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 findings refinement to retrieve.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}
                +     * 
                + * + * + * 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 findings refinement to retrieve.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}
                +     * 
                + * + * + * 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 findings refinement to retrieve.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}
                +     * 
                + * + * + * 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 findings refinement to retrieve.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}
                +     * 
                + * + * + * 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 findings refinement to retrieve.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}
                +     * 
                + * + * + * 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.chronicle.v1.GetFindingsRefinementRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.chronicle.v1.GetFindingsRefinementRequest) + private static final com.google.cloud.chronicle.v1.GetFindingsRefinementRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.chronicle.v1.GetFindingsRefinementRequest(); + } + + public static com.google.cloud.chronicle.v1.GetFindingsRefinementRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetFindingsRefinementRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.GetFindingsRefinementRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/GetFindingsRefinementRequestOrBuilder.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/GetFindingsRefinementRequestOrBuilder.java new file mode 100644 index 000000000000..1ed6a34d62c3 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/GetFindingsRefinementRequestOrBuilder.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/chronicle/v1/findings_refinement.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +@com.google.protobuf.Generated +public interface GetFindingsRefinementRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.chronicle.v1.GetFindingsRefinementRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                +   * Required. The name of the findings refinement to retrieve.
                +   * Format:
                +   * projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}
                +   * 
                + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                +   * Required. The name of the findings refinement to retrieve.
                +   * Format:
                +   * projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}
                +   * 
                + * + * + * 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-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ListAllFindingsRefinementDeploymentsRequest.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ListAllFindingsRefinementDeploymentsRequest.java new file mode 100644 index 000000000000..3a1b3653f902 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ListAllFindingsRefinementDeploymentsRequest.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/cloud/chronicle/v1/findings_refinement.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +/** + * + * + *
                + * Request message for ListAllFindingsRefinementDeployments method.
                + * 
                + * + * Protobuf type {@code google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsRequest} + */ +@com.google.protobuf.Generated +public final class ListAllFindingsRefinementDeploymentsRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsRequest) + ListAllFindingsRefinementDeploymentsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListAllFindingsRefinementDeploymentsRequest"); + } + + // Use ListAllFindingsRefinementDeploymentsRequest.newBuilder() to construct. + private ListAllFindingsRefinementDeploymentsRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListAllFindingsRefinementDeploymentsRequest() { + instance_ = ""; + pageToken_ = ""; + filter_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_ListAllFindingsRefinementDeploymentsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_ListAllFindingsRefinementDeploymentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsRequest.class, + com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsRequest.Builder + .class); + } + + public static final int INSTANCE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object instance_ = ""; + + /** + * + * + *
                +   * Required. The name of the parent resource, which is the SecOps instance to
                +   * list all findings refinement deployments over. Format:
                +   * projects/{project}/locations/{location}/instances/{instance}
                +   * 
                + * + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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 name of the parent resource, which is the SecOps instance to
                +   * list all findings refinement deployments over. Format:
                +   * projects/{project}/locations/{location}/instances/{instance}
                +   * 
                + * + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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 PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
                +   * The maximum number of findings refinement deployments to return. The
                +   * service may return fewer than this value. If unspecified, at most 100 rule
                +   * deployments will be returned. The maximum value is 1000; values above 1000
                +   * will be coerced 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, received from a previous
                +   * `ListAllFindingsRefinementDeployments` call. Provide this to retrieve the
                +   * subsequent page.
                +   *
                +   * When paginating, all other parameters provided to
                +   * `ListAllFindingsRefinementDeployments` 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, received from a previous
                +   * `ListAllFindingsRefinementDeployments` call. Provide this to retrieve the
                +   * subsequent page.
                +   *
                +   * When paginating, all other parameters provided to
                +   * `ListAllFindingsRefinementDeployments` 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; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
                +   * A filter that can be used to retrieve specific findings refinement
                +   * deployments.
                +   * Only the following filters are allowed:
                +   * detection_exclusion_application.curated_rule_sets:"<curated_rule_set_name>"",
                +   * detection_exclusion_application.curated_rules:"<curated_rule_name>"
                +   * 
                + * + * string filter = 4; + * + * @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; + } + } + + /** + * + * + *
                +   * A filter that can be used to retrieve specific findings refinement
                +   * deployments.
                +   * Only the following filters are allowed:
                +   * detection_exclusion_application.curated_rule_sets:"<curated_rule_set_name>"",
                +   * detection_exclusion_application.curated_rules:"<curated_rule_name>"
                +   * 
                + * + * string filter = 4; + * + * @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(instance_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, instance_); + } + 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(instance_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, instance_); + } + 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.chronicle.v1.ListAllFindingsRefinementDeploymentsRequest)) { + return super.equals(obj); + } + com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsRequest other = + (com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsRequest) obj; + + if (!getInstance().equals(other.getInstance())) 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) + INSTANCE_FIELD_NUMBER; + hash = (53 * hash) + getInstance().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.chronicle.v1.ListAllFindingsRefinementDeploymentsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 ListAllFindingsRefinementDeployments method.
                +   * 
                + * + * Protobuf type {@code google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsRequest) + com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_ListAllFindingsRefinementDeploymentsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_ListAllFindingsRefinementDeploymentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsRequest.class, + com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + instance_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_ListAllFindingsRefinementDeploymentsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsRequest + getDefaultInstanceForType() { + return com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsRequest build() { + com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsRequest + buildPartial() { + com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsRequest result = + new com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.instance_ = instance_; + } + 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.chronicle.v1.ListAllFindingsRefinementDeploymentsRequest) { + return mergeFrom( + (com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsRequest other) { + if (other + == com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsRequest + .getDefaultInstance()) return this; + if (!other.getInstance().isEmpty()) { + instance_ = other.instance_; + 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: + { + instance_ = 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 instance_ = ""; + + /** + * + * + *
                +     * Required. The name of the parent resource, which is the SecOps instance to
                +     * list all findings refinement deployments over. Format:
                +     * projects/{project}/locations/{location}/instances/{instance}
                +     * 
                + * + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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 name of the parent resource, which is the SecOps instance to
                +     * list all findings refinement deployments over. Format:
                +     * projects/{project}/locations/{location}/instances/{instance}
                +     * 
                + * + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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 name of the parent resource, which is the SecOps instance to
                +     * list all findings refinement deployments over. Format:
                +     * projects/{project}/locations/{location}/instances/{instance}
                +     * 
                + * + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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 name of the parent resource, which is the SecOps instance to
                +     * list all findings refinement deployments over. Format:
                +     * projects/{project}/locations/{location}/instances/{instance}
                +     * 
                + * + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearInstance() { + instance_ = getDefaultInstance().getInstance(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The name of the parent resource, which is the SecOps instance to
                +     * list all findings refinement deployments over. Format:
                +     * projects/{project}/locations/{location}/instances/{instance}
                +     * 
                + * + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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 int pageSize_; + + /** + * + * + *
                +     * The maximum number of findings refinement deployments to return. The
                +     * service may return fewer than this value. If unspecified, at most 100 rule
                +     * deployments will be returned. The maximum value is 1000; values above 1000
                +     * will be coerced to 1000.
                +     * 
                + * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
                +     * The maximum number of findings refinement deployments to return. The
                +     * service may return fewer than this value. If unspecified, at most 100 rule
                +     * deployments will be returned. The maximum value is 1000; values above 1000
                +     * will be coerced 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; + } + + /** + * + * + *
                +     * The maximum number of findings refinement deployments to return. The
                +     * service may return fewer than this value. If unspecified, at most 100 rule
                +     * deployments will be returned. The maximum value is 1000; values above 1000
                +     * will be coerced 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, received from a previous
                +     * `ListAllFindingsRefinementDeployments` call. Provide this to retrieve the
                +     * subsequent page.
                +     *
                +     * When paginating, all other parameters provided to
                +     * `ListAllFindingsRefinementDeployments` 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, received from a previous
                +     * `ListAllFindingsRefinementDeployments` call. Provide this to retrieve the
                +     * subsequent page.
                +     *
                +     * When paginating, all other parameters provided to
                +     * `ListAllFindingsRefinementDeployments` 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, received from a previous
                +     * `ListAllFindingsRefinementDeployments` call. Provide this to retrieve the
                +     * subsequent page.
                +     *
                +     * When paginating, all other parameters provided to
                +     * `ListAllFindingsRefinementDeployments` 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, received from a previous
                +     * `ListAllFindingsRefinementDeployments` call. Provide this to retrieve the
                +     * subsequent page.
                +     *
                +     * When paginating, all other parameters provided to
                +     * `ListAllFindingsRefinementDeployments` 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, received from a previous
                +     * `ListAllFindingsRefinementDeployments` call. Provide this to retrieve the
                +     * subsequent page.
                +     *
                +     * When paginating, all other parameters provided to
                +     * `ListAllFindingsRefinementDeployments` 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; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
                +     * A filter that can be used to retrieve specific findings refinement
                +     * deployments.
                +     * Only the following filters are allowed:
                +     * detection_exclusion_application.curated_rule_sets:"<curated_rule_set_name>"",
                +     * detection_exclusion_application.curated_rules:"<curated_rule_name>"
                +     * 
                + * + * string filter = 4; + * + * @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; + } + } + + /** + * + * + *
                +     * A filter that can be used to retrieve specific findings refinement
                +     * deployments.
                +     * Only the following filters are allowed:
                +     * detection_exclusion_application.curated_rule_sets:"<curated_rule_set_name>"",
                +     * detection_exclusion_application.curated_rules:"<curated_rule_name>"
                +     * 
                + * + * string filter = 4; + * + * @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; + } + } + + /** + * + * + *
                +     * A filter that can be used to retrieve specific findings refinement
                +     * deployments.
                +     * Only the following filters are allowed:
                +     * detection_exclusion_application.curated_rule_sets:"<curated_rule_set_name>"",
                +     * detection_exclusion_application.curated_rules:"<curated_rule_name>"
                +     * 
                + * + * string filter = 4; + * + * @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; + } + + /** + * + * + *
                +     * A filter that can be used to retrieve specific findings refinement
                +     * deployments.
                +     * Only the following filters are allowed:
                +     * detection_exclusion_application.curated_rule_sets:"<curated_rule_set_name>"",
                +     * detection_exclusion_application.curated_rules:"<curated_rule_name>"
                +     * 
                + * + * string filter = 4; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
                +     * A filter that can be used to retrieve specific findings refinement
                +     * deployments.
                +     * Only the following filters are allowed:
                +     * detection_exclusion_application.curated_rule_sets:"<curated_rule_set_name>"",
                +     * detection_exclusion_application.curated_rules:"<curated_rule_name>"
                +     * 
                + * + * string filter = 4; + * + * @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.chronicle.v1.ListAllFindingsRefinementDeploymentsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsRequest) + private static final com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsRequest(); + } + + public static com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAllFindingsRefinementDeploymentsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser + getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ListAllFindingsRefinementDeploymentsRequestOrBuilder.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ListAllFindingsRefinementDeploymentsRequestOrBuilder.java new file mode 100644 index 000000000000..34c56a851d53 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ListAllFindingsRefinementDeploymentsRequestOrBuilder.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/chronicle/v1/findings_refinement.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +@com.google.protobuf.Generated +public interface ListAllFindingsRefinementDeploymentsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                +   * Required. The name of the parent resource, which is the SecOps instance to
                +   * list all findings refinement deployments over. Format:
                +   * projects/{project}/locations/{location}/instances/{instance}
                +   * 
                + * + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The instance. + */ + java.lang.String getInstance(); + + /** + * + * + *
                +   * Required. The name of the parent resource, which is the SecOps instance to
                +   * list all findings refinement deployments over. Format:
                +   * projects/{project}/locations/{location}/instances/{instance}
                +   * 
                + * + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for instance. + */ + com.google.protobuf.ByteString getInstanceBytes(); + + /** + * + * + *
                +   * The maximum number of findings refinement deployments to return. The
                +   * service may return fewer than this value. If unspecified, at most 100 rule
                +   * deployments will be returned. The maximum value is 1000; values above 1000
                +   * will be coerced to 1000.
                +   * 
                + * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
                +   * A page token, received from a previous
                +   * `ListAllFindingsRefinementDeployments` call. Provide this to retrieve the
                +   * subsequent page.
                +   *
                +   * When paginating, all other parameters provided to
                +   * `ListAllFindingsRefinementDeployments` must match the call that provided
                +   * the page token.
                +   * 
                + * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
                +   * A page token, received from a previous
                +   * `ListAllFindingsRefinementDeployments` call. Provide this to retrieve the
                +   * subsequent page.
                +   *
                +   * When paginating, all other parameters provided to
                +   * `ListAllFindingsRefinementDeployments` must match the call that provided
                +   * the page token.
                +   * 
                + * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
                +   * A filter that can be used to retrieve specific findings refinement
                +   * deployments.
                +   * Only the following filters are allowed:
                +   * detection_exclusion_application.curated_rule_sets:"<curated_rule_set_name>"",
                +   * detection_exclusion_application.curated_rules:"<curated_rule_name>"
                +   * 
                + * + * string filter = 4; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
                +   * A filter that can be used to retrieve specific findings refinement
                +   * deployments.
                +   * Only the following filters are allowed:
                +   * detection_exclusion_application.curated_rule_sets:"<curated_rule_set_name>"",
                +   * detection_exclusion_application.curated_rules:"<curated_rule_name>"
                +   * 
                + * + * string filter = 4; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ListAllFindingsRefinementDeploymentsResponse.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ListAllFindingsRefinementDeploymentsResponse.java new file mode 100644 index 000000000000..5e7c777b1142 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ListAllFindingsRefinementDeploymentsResponse.java @@ -0,0 +1,1227 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/chronicle/v1/findings_refinement.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +/** + * + * + *
                + * Response message for ListAllFindingsRefinementDeployments method.
                + * 
                + * + * Protobuf type {@code google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsResponse} + */ +@com.google.protobuf.Generated +public final class ListAllFindingsRefinementDeploymentsResponse + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsResponse) + ListAllFindingsRefinementDeploymentsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListAllFindingsRefinementDeploymentsResponse"); + } + + // Use ListAllFindingsRefinementDeploymentsResponse.newBuilder() to construct. + private ListAllFindingsRefinementDeploymentsResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListAllFindingsRefinementDeploymentsResponse() { + allFindingsRefinementDeployments_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_ListAllFindingsRefinementDeploymentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_ListAllFindingsRefinementDeploymentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsResponse.class, + com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsResponse.Builder + .class); + } + + public static final int ALL_FINDINGS_REFINEMENT_DEPLOYMENTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + allFindingsRefinementDeployments_; + + /** + * + * + *
                +   * List of all findings refinement deployments.
                +   * 
                + * + * + * repeated .google.cloud.chronicle.v1.FindingsRefinementDeployment all_findings_refinement_deployments = 1; + * + */ + @java.lang.Override + public java.util.List + getAllFindingsRefinementDeploymentsList() { + return allFindingsRefinementDeployments_; + } + + /** + * + * + *
                +   * List of all findings refinement deployments.
                +   * 
                + * + * + * repeated .google.cloud.chronicle.v1.FindingsRefinementDeployment all_findings_refinement_deployments = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.chronicle.v1.FindingsRefinementDeploymentOrBuilder> + getAllFindingsRefinementDeploymentsOrBuilderList() { + return allFindingsRefinementDeployments_; + } + + /** + * + * + *
                +   * List of all findings refinement deployments.
                +   * 
                + * + * + * repeated .google.cloud.chronicle.v1.FindingsRefinementDeployment all_findings_refinement_deployments = 1; + * + */ + @java.lang.Override + public int getAllFindingsRefinementDeploymentsCount() { + return allFindingsRefinementDeployments_.size(); + } + + /** + * + * + *
                +   * List of all findings refinement deployments.
                +   * 
                + * + * + * repeated .google.cloud.chronicle.v1.FindingsRefinementDeployment all_findings_refinement_deployments = 1; + * + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.FindingsRefinementDeployment + getAllFindingsRefinementDeployments(int index) { + return allFindingsRefinementDeployments_.get(index); + } + + /** + * + * + *
                +   * List of all findings refinement deployments.
                +   * 
                + * + * + * repeated .google.cloud.chronicle.v1.FindingsRefinementDeployment all_findings_refinement_deployments = 1; + * + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.FindingsRefinementDeploymentOrBuilder + getAllFindingsRefinementDeploymentsOrBuilder(int index) { + return allFindingsRefinementDeployments_.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 < allFindingsRefinementDeployments_.size(); i++) { + output.writeMessage(1, allFindingsRefinementDeployments_.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 < allFindingsRefinementDeployments_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, allFindingsRefinementDeployments_.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.chronicle.v1.ListAllFindingsRefinementDeploymentsResponse)) { + return super.equals(obj); + } + com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsResponse other = + (com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsResponse) obj; + + if (!getAllFindingsRefinementDeploymentsList() + .equals(other.getAllFindingsRefinementDeploymentsList())) 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 (getAllFindingsRefinementDeploymentsCount() > 0) { + hash = (37 * hash) + ALL_FINDINGS_REFINEMENT_DEPLOYMENTS_FIELD_NUMBER; + hash = (53 * hash) + getAllFindingsRefinementDeploymentsList().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.chronicle.v1.ListAllFindingsRefinementDeploymentsResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsResponse + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsResponse + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsResponse + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 ListAllFindingsRefinementDeployments method.
                +   * 
                + * + * Protobuf type {@code google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsResponse) + com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_ListAllFindingsRefinementDeploymentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_ListAllFindingsRefinementDeploymentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsResponse.class, + com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (allFindingsRefinementDeploymentsBuilder_ == null) { + allFindingsRefinementDeployments_ = java.util.Collections.emptyList(); + } else { + allFindingsRefinementDeployments_ = null; + allFindingsRefinementDeploymentsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_ListAllFindingsRefinementDeploymentsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsResponse + getDefaultInstanceForType() { + return com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsResponse build() { + com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsResponse + buildPartial() { + com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsResponse result = + new com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsResponse result) { + if (allFindingsRefinementDeploymentsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + allFindingsRefinementDeployments_ = + java.util.Collections.unmodifiableList(allFindingsRefinementDeployments_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.allFindingsRefinementDeployments_ = allFindingsRefinementDeployments_; + } else { + result.allFindingsRefinementDeployments_ = allFindingsRefinementDeploymentsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsResponse 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.chronicle.v1.ListAllFindingsRefinementDeploymentsResponse) { + return mergeFrom( + (com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsResponse other) { + if (other + == com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsResponse + .getDefaultInstance()) return this; + if (allFindingsRefinementDeploymentsBuilder_ == null) { + if (!other.allFindingsRefinementDeployments_.isEmpty()) { + if (allFindingsRefinementDeployments_.isEmpty()) { + allFindingsRefinementDeployments_ = other.allFindingsRefinementDeployments_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAllFindingsRefinementDeploymentsIsMutable(); + allFindingsRefinementDeployments_.addAll(other.allFindingsRefinementDeployments_); + } + onChanged(); + } + } else { + if (!other.allFindingsRefinementDeployments_.isEmpty()) { + if (allFindingsRefinementDeploymentsBuilder_.isEmpty()) { + allFindingsRefinementDeploymentsBuilder_.dispose(); + allFindingsRefinementDeploymentsBuilder_ = null; + allFindingsRefinementDeployments_ = other.allFindingsRefinementDeployments_; + bitField0_ = (bitField0_ & ~0x00000001); + allFindingsRefinementDeploymentsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAllFindingsRefinementDeploymentsFieldBuilder() + : null; + } else { + allFindingsRefinementDeploymentsBuilder_.addAllMessages( + other.allFindingsRefinementDeployments_); + } + } + } + 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.chronicle.v1.FindingsRefinementDeployment m = + input.readMessage( + com.google.cloud.chronicle.v1.FindingsRefinementDeployment.parser(), + extensionRegistry); + if (allFindingsRefinementDeploymentsBuilder_ == null) { + ensureAllFindingsRefinementDeploymentsIsMutable(); + allFindingsRefinementDeployments_.add(m); + } else { + allFindingsRefinementDeploymentsBuilder_.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 + allFindingsRefinementDeployments_ = java.util.Collections.emptyList(); + + private void ensureAllFindingsRefinementDeploymentsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + allFindingsRefinementDeployments_ = + new java.util.ArrayList( + allFindingsRefinementDeployments_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.chronicle.v1.FindingsRefinementDeployment, + com.google.cloud.chronicle.v1.FindingsRefinementDeployment.Builder, + com.google.cloud.chronicle.v1.FindingsRefinementDeploymentOrBuilder> + allFindingsRefinementDeploymentsBuilder_; + + /** + * + * + *
                +     * List of all findings refinement deployments.
                +     * 
                + * + * + * repeated .google.cloud.chronicle.v1.FindingsRefinementDeployment all_findings_refinement_deployments = 1; + * + */ + public java.util.List + getAllFindingsRefinementDeploymentsList() { + if (allFindingsRefinementDeploymentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(allFindingsRefinementDeployments_); + } else { + return allFindingsRefinementDeploymentsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                +     * List of all findings refinement deployments.
                +     * 
                + * + * + * repeated .google.cloud.chronicle.v1.FindingsRefinementDeployment all_findings_refinement_deployments = 1; + * + */ + public int getAllFindingsRefinementDeploymentsCount() { + if (allFindingsRefinementDeploymentsBuilder_ == null) { + return allFindingsRefinementDeployments_.size(); + } else { + return allFindingsRefinementDeploymentsBuilder_.getCount(); + } + } + + /** + * + * + *
                +     * List of all findings refinement deployments.
                +     * 
                + * + * + * repeated .google.cloud.chronicle.v1.FindingsRefinementDeployment all_findings_refinement_deployments = 1; + * + */ + public com.google.cloud.chronicle.v1.FindingsRefinementDeployment + getAllFindingsRefinementDeployments(int index) { + if (allFindingsRefinementDeploymentsBuilder_ == null) { + return allFindingsRefinementDeployments_.get(index); + } else { + return allFindingsRefinementDeploymentsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                +     * List of all findings refinement deployments.
                +     * 
                + * + * + * repeated .google.cloud.chronicle.v1.FindingsRefinementDeployment all_findings_refinement_deployments = 1; + * + */ + public Builder setAllFindingsRefinementDeployments( + int index, com.google.cloud.chronicle.v1.FindingsRefinementDeployment value) { + if (allFindingsRefinementDeploymentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllFindingsRefinementDeploymentsIsMutable(); + allFindingsRefinementDeployments_.set(index, value); + onChanged(); + } else { + allFindingsRefinementDeploymentsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                +     * List of all findings refinement deployments.
                +     * 
                + * + * + * repeated .google.cloud.chronicle.v1.FindingsRefinementDeployment all_findings_refinement_deployments = 1; + * + */ + public Builder setAllFindingsRefinementDeployments( + int index, + com.google.cloud.chronicle.v1.FindingsRefinementDeployment.Builder builderForValue) { + if (allFindingsRefinementDeploymentsBuilder_ == null) { + ensureAllFindingsRefinementDeploymentsIsMutable(); + allFindingsRefinementDeployments_.set(index, builderForValue.build()); + onChanged(); + } else { + allFindingsRefinementDeploymentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                +     * List of all findings refinement deployments.
                +     * 
                + * + * + * repeated .google.cloud.chronicle.v1.FindingsRefinementDeployment all_findings_refinement_deployments = 1; + * + */ + public Builder addAllFindingsRefinementDeployments( + com.google.cloud.chronicle.v1.FindingsRefinementDeployment value) { + if (allFindingsRefinementDeploymentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllFindingsRefinementDeploymentsIsMutable(); + allFindingsRefinementDeployments_.add(value); + onChanged(); + } else { + allFindingsRefinementDeploymentsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                +     * List of all findings refinement deployments.
                +     * 
                + * + * + * repeated .google.cloud.chronicle.v1.FindingsRefinementDeployment all_findings_refinement_deployments = 1; + * + */ + public Builder addAllFindingsRefinementDeployments( + int index, com.google.cloud.chronicle.v1.FindingsRefinementDeployment value) { + if (allFindingsRefinementDeploymentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllFindingsRefinementDeploymentsIsMutable(); + allFindingsRefinementDeployments_.add(index, value); + onChanged(); + } else { + allFindingsRefinementDeploymentsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                +     * List of all findings refinement deployments.
                +     * 
                + * + * + * repeated .google.cloud.chronicle.v1.FindingsRefinementDeployment all_findings_refinement_deployments = 1; + * + */ + public Builder addAllFindingsRefinementDeployments( + com.google.cloud.chronicle.v1.FindingsRefinementDeployment.Builder builderForValue) { + if (allFindingsRefinementDeploymentsBuilder_ == null) { + ensureAllFindingsRefinementDeploymentsIsMutable(); + allFindingsRefinementDeployments_.add(builderForValue.build()); + onChanged(); + } else { + allFindingsRefinementDeploymentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                +     * List of all findings refinement deployments.
                +     * 
                + * + * + * repeated .google.cloud.chronicle.v1.FindingsRefinementDeployment all_findings_refinement_deployments = 1; + * + */ + public Builder addAllFindingsRefinementDeployments( + int index, + com.google.cloud.chronicle.v1.FindingsRefinementDeployment.Builder builderForValue) { + if (allFindingsRefinementDeploymentsBuilder_ == null) { + ensureAllFindingsRefinementDeploymentsIsMutable(); + allFindingsRefinementDeployments_.add(index, builderForValue.build()); + onChanged(); + } else { + allFindingsRefinementDeploymentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                +     * List of all findings refinement deployments.
                +     * 
                + * + * + * repeated .google.cloud.chronicle.v1.FindingsRefinementDeployment all_findings_refinement_deployments = 1; + * + */ + public Builder addAllAllFindingsRefinementDeployments( + java.lang.Iterable + values) { + if (allFindingsRefinementDeploymentsBuilder_ == null) { + ensureAllFindingsRefinementDeploymentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, allFindingsRefinementDeployments_); + onChanged(); + } else { + allFindingsRefinementDeploymentsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                +     * List of all findings refinement deployments.
                +     * 
                + * + * + * repeated .google.cloud.chronicle.v1.FindingsRefinementDeployment all_findings_refinement_deployments = 1; + * + */ + public Builder clearAllFindingsRefinementDeployments() { + if (allFindingsRefinementDeploymentsBuilder_ == null) { + allFindingsRefinementDeployments_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + allFindingsRefinementDeploymentsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                +     * List of all findings refinement deployments.
                +     * 
                + * + * + * repeated .google.cloud.chronicle.v1.FindingsRefinementDeployment all_findings_refinement_deployments = 1; + * + */ + public Builder removeAllFindingsRefinementDeployments(int index) { + if (allFindingsRefinementDeploymentsBuilder_ == null) { + ensureAllFindingsRefinementDeploymentsIsMutable(); + allFindingsRefinementDeployments_.remove(index); + onChanged(); + } else { + allFindingsRefinementDeploymentsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                +     * List of all findings refinement deployments.
                +     * 
                + * + * + * repeated .google.cloud.chronicle.v1.FindingsRefinementDeployment all_findings_refinement_deployments = 1; + * + */ + public com.google.cloud.chronicle.v1.FindingsRefinementDeployment.Builder + getAllFindingsRefinementDeploymentsBuilder(int index) { + return internalGetAllFindingsRefinementDeploymentsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                +     * List of all findings refinement deployments.
                +     * 
                + * + * + * repeated .google.cloud.chronicle.v1.FindingsRefinementDeployment all_findings_refinement_deployments = 1; + * + */ + public com.google.cloud.chronicle.v1.FindingsRefinementDeploymentOrBuilder + getAllFindingsRefinementDeploymentsOrBuilder(int index) { + if (allFindingsRefinementDeploymentsBuilder_ == null) { + return allFindingsRefinementDeployments_.get(index); + } else { + return allFindingsRefinementDeploymentsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                +     * List of all findings refinement deployments.
                +     * 
                + * + * + * repeated .google.cloud.chronicle.v1.FindingsRefinementDeployment all_findings_refinement_deployments = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.chronicle.v1.FindingsRefinementDeploymentOrBuilder> + getAllFindingsRefinementDeploymentsOrBuilderList() { + if (allFindingsRefinementDeploymentsBuilder_ != null) { + return allFindingsRefinementDeploymentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(allFindingsRefinementDeployments_); + } + } + + /** + * + * + *
                +     * List of all findings refinement deployments.
                +     * 
                + * + * + * repeated .google.cloud.chronicle.v1.FindingsRefinementDeployment all_findings_refinement_deployments = 1; + * + */ + public com.google.cloud.chronicle.v1.FindingsRefinementDeployment.Builder + addAllFindingsRefinementDeploymentsBuilder() { + return internalGetAllFindingsRefinementDeploymentsFieldBuilder() + .addBuilder( + com.google.cloud.chronicle.v1.FindingsRefinementDeployment.getDefaultInstance()); + } + + /** + * + * + *
                +     * List of all findings refinement deployments.
                +     * 
                + * + * + * repeated .google.cloud.chronicle.v1.FindingsRefinementDeployment all_findings_refinement_deployments = 1; + * + */ + public com.google.cloud.chronicle.v1.FindingsRefinementDeployment.Builder + addAllFindingsRefinementDeploymentsBuilder(int index) { + return internalGetAllFindingsRefinementDeploymentsFieldBuilder() + .addBuilder( + index, + com.google.cloud.chronicle.v1.FindingsRefinementDeployment.getDefaultInstance()); + } + + /** + * + * + *
                +     * List of all findings refinement deployments.
                +     * 
                + * + * + * repeated .google.cloud.chronicle.v1.FindingsRefinementDeployment all_findings_refinement_deployments = 1; + * + */ + public java.util.List + getAllFindingsRefinementDeploymentsBuilderList() { + return internalGetAllFindingsRefinementDeploymentsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.chronicle.v1.FindingsRefinementDeployment, + com.google.cloud.chronicle.v1.FindingsRefinementDeployment.Builder, + com.google.cloud.chronicle.v1.FindingsRefinementDeploymentOrBuilder> + internalGetAllFindingsRefinementDeploymentsFieldBuilder() { + if (allFindingsRefinementDeploymentsBuilder_ == null) { + allFindingsRefinementDeploymentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.chronicle.v1.FindingsRefinementDeployment, + com.google.cloud.chronicle.v1.FindingsRefinementDeployment.Builder, + com.google.cloud.chronicle.v1.FindingsRefinementDeploymentOrBuilder>( + allFindingsRefinementDeployments_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + allFindingsRefinementDeployments_ = null; + } + return allFindingsRefinementDeploymentsBuilder_; + } + + 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.chronicle.v1.ListAllFindingsRefinementDeploymentsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsResponse) + private static final com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsResponse(); + } + + public static com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAllFindingsRefinementDeploymentsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser + getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ListAllFindingsRefinementDeploymentsResponseOrBuilder.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ListAllFindingsRefinementDeploymentsResponseOrBuilder.java new file mode 100644 index 000000000000..7b4c96b627bf --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ListAllFindingsRefinementDeploymentsResponseOrBuilder.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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/chronicle/v1/findings_refinement.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +@com.google.protobuf.Generated +public interface ListAllFindingsRefinementDeploymentsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                +   * List of all findings refinement deployments.
                +   * 
                + * + * + * repeated .google.cloud.chronicle.v1.FindingsRefinementDeployment all_findings_refinement_deployments = 1; + * + */ + java.util.List + getAllFindingsRefinementDeploymentsList(); + + /** + * + * + *
                +   * List of all findings refinement deployments.
                +   * 
                + * + * + * repeated .google.cloud.chronicle.v1.FindingsRefinementDeployment all_findings_refinement_deployments = 1; + * + */ + com.google.cloud.chronicle.v1.FindingsRefinementDeployment getAllFindingsRefinementDeployments( + int index); + + /** + * + * + *
                +   * List of all findings refinement deployments.
                +   * 
                + * + * + * repeated .google.cloud.chronicle.v1.FindingsRefinementDeployment all_findings_refinement_deployments = 1; + * + */ + int getAllFindingsRefinementDeploymentsCount(); + + /** + * + * + *
                +   * List of all findings refinement deployments.
                +   * 
                + * + * + * repeated .google.cloud.chronicle.v1.FindingsRefinementDeployment all_findings_refinement_deployments = 1; + * + */ + java.util.List + getAllFindingsRefinementDeploymentsOrBuilderList(); + + /** + * + * + *
                +   * List of all findings refinement deployments.
                +   * 
                + * + * + * repeated .google.cloud.chronicle.v1.FindingsRefinementDeployment all_findings_refinement_deployments = 1; + * + */ + com.google.cloud.chronicle.v1.FindingsRefinementDeploymentOrBuilder + getAllFindingsRefinementDeploymentsOrBuilder(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-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ListFindingsRefinementsRequest.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ListFindingsRefinementsRequest.java new file mode 100644 index 000000000000..cfdfaed475fa --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ListFindingsRefinementsRequest.java @@ -0,0 +1,934 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/chronicle/v1/findings_refinement.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +/** + * + * + *
                + * Request message for ListFindingsRefinements method.
                + * 
                + * + * Protobuf type {@code google.cloud.chronicle.v1.ListFindingsRefinementsRequest} + */ +@com.google.protobuf.Generated +public final class ListFindingsRefinementsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.chronicle.v1.ListFindingsRefinementsRequest) + ListFindingsRefinementsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListFindingsRefinementsRequest"); + } + + // Use ListFindingsRefinementsRequest.newBuilder() to construct. + private ListFindingsRefinementsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListFindingsRefinementsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_ListFindingsRefinementsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_ListFindingsRefinementsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.ListFindingsRefinementsRequest.class, + com.google.cloud.chronicle.v1.ListFindingsRefinementsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
                +   * Required. The parent, which owns this collection of findings refinements.
                +   * Format:
                +   * projects/{project}/locations/{location}/instances/{instance}
                +   * 
                + * + * + * 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, which owns this collection of findings refinements.
                +   * Format:
                +   * projects/{project}/locations/{location}/instances/{instance}
                +   * 
                + * + * + * 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; + + /** + * + * + *
                +   * The maximum number of findings refinements to return. The service may
                +   * return fewer than this value. If unspecified, at most 100 rules will be
                +   * returned. The maximum value is 1000; values above 1000 will be coerced 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, received from a previous `ListFindingsRefinements` call.
                +   * Provide this to retrieve the subsequent page.
                +   * 
                + * + * 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, received from a previous `ListFindingsRefinements` call.
                +   * Provide this to retrieve the subsequent page.
                +   * 
                + * + * 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.chronicle.v1.ListFindingsRefinementsRequest)) { + return super.equals(obj); + } + com.google.cloud.chronicle.v1.ListFindingsRefinementsRequest other = + (com.google.cloud.chronicle.v1.ListFindingsRefinementsRequest) 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.chronicle.v1.ListFindingsRefinementsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.ListFindingsRefinementsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.ListFindingsRefinementsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.ListFindingsRefinementsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.ListFindingsRefinementsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.ListFindingsRefinementsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.ListFindingsRefinementsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.ListFindingsRefinementsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.ListFindingsRefinementsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.ListFindingsRefinementsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.ListFindingsRefinementsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.ListFindingsRefinementsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.chronicle.v1.ListFindingsRefinementsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 ListFindingsRefinements method.
                +   * 
                + * + * Protobuf type {@code google.cloud.chronicle.v1.ListFindingsRefinementsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.chronicle.v1.ListFindingsRefinementsRequest) + com.google.cloud.chronicle.v1.ListFindingsRefinementsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_ListFindingsRefinementsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_ListFindingsRefinementsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.ListFindingsRefinementsRequest.class, + com.google.cloud.chronicle.v1.ListFindingsRefinementsRequest.Builder.class); + } + + // Construct using com.google.cloud.chronicle.v1.ListFindingsRefinementsRequest.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.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_ListFindingsRefinementsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.ListFindingsRefinementsRequest + getDefaultInstanceForType() { + return com.google.cloud.chronicle.v1.ListFindingsRefinementsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.ListFindingsRefinementsRequest build() { + com.google.cloud.chronicle.v1.ListFindingsRefinementsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.ListFindingsRefinementsRequest buildPartial() { + com.google.cloud.chronicle.v1.ListFindingsRefinementsRequest result = + new com.google.cloud.chronicle.v1.ListFindingsRefinementsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.chronicle.v1.ListFindingsRefinementsRequest 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.chronicle.v1.ListFindingsRefinementsRequest) { + return mergeFrom((com.google.cloud.chronicle.v1.ListFindingsRefinementsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.chronicle.v1.ListFindingsRefinementsRequest other) { + if (other + == com.google.cloud.chronicle.v1.ListFindingsRefinementsRequest.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, which owns this collection of findings refinements.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}
                +     * 
                + * + * + * 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, which owns this collection of findings refinements.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}
                +     * 
                + * + * + * 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, which owns this collection of findings refinements.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}
                +     * 
                + * + * + * 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, which owns this collection of findings refinements.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}
                +     * 
                + * + * + * 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, which owns this collection of findings refinements.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}
                +     * 
                + * + * + * 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_; + + /** + * + * + *
                +     * The maximum number of findings refinements to return. The service may
                +     * return fewer than this value. If unspecified, at most 100 rules will be
                +     * returned. The maximum value is 1000; values above 1000 will be coerced to
                +     * 1000.
                +     * 
                + * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
                +     * The maximum number of findings refinements to return. The service may
                +     * return fewer than this value. If unspecified, at most 100 rules will be
                +     * returned. The maximum value is 1000; values above 1000 will be coerced 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; + } + + /** + * + * + *
                +     * The maximum number of findings refinements to return. The service may
                +     * return fewer than this value. If unspecified, at most 100 rules will be
                +     * returned. The maximum value is 1000; values above 1000 will be coerced 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, received from a previous `ListFindingsRefinements` call.
                +     * Provide this to retrieve the subsequent page.
                +     * 
                + * + * 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, received from a previous `ListFindingsRefinements` call.
                +     * Provide this to retrieve the subsequent page.
                +     * 
                + * + * 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, received from a previous `ListFindingsRefinements` call.
                +     * Provide this to retrieve the subsequent page.
                +     * 
                + * + * 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, received from a previous `ListFindingsRefinements` call.
                +     * Provide this to retrieve the subsequent page.
                +     * 
                + * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                +     * A page token, received from a previous `ListFindingsRefinements` call.
                +     * Provide this to retrieve the subsequent page.
                +     * 
                + * + * 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.chronicle.v1.ListFindingsRefinementsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.chronicle.v1.ListFindingsRefinementsRequest) + private static final com.google.cloud.chronicle.v1.ListFindingsRefinementsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.chronicle.v1.ListFindingsRefinementsRequest(); + } + + public static com.google.cloud.chronicle.v1.ListFindingsRefinementsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFindingsRefinementsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.ListFindingsRefinementsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ListFindingsRefinementsRequestOrBuilder.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ListFindingsRefinementsRequestOrBuilder.java new file mode 100644 index 000000000000..597f3d90f666 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ListFindingsRefinementsRequestOrBuilder.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/chronicle/v1/findings_refinement.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +@com.google.protobuf.Generated +public interface ListFindingsRefinementsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.chronicle.v1.ListFindingsRefinementsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                +   * Required. The parent, which owns this collection of findings refinements.
                +   * Format:
                +   * projects/{project}/locations/{location}/instances/{instance}
                +   * 
                + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
                +   * Required. The parent, which owns this collection of findings refinements.
                +   * Format:
                +   * projects/{project}/locations/{location}/instances/{instance}
                +   * 
                + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                +   * The maximum number of findings refinements to return. The service may
                +   * return fewer than this value. If unspecified, at most 100 rules will be
                +   * returned. The maximum value is 1000; values above 1000 will be coerced to
                +   * 1000.
                +   * 
                + * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
                +   * A page token, received from a previous `ListFindingsRefinements` call.
                +   * Provide this to retrieve the subsequent page.
                +   * 
                + * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
                +   * A page token, received from a previous `ListFindingsRefinements` call.
                +   * Provide this to retrieve the subsequent page.
                +   * 
                + * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ListFindingsRefinementsResponse.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ListFindingsRefinementsResponse.java new file mode 100644 index 000000000000..cc6a458a4d15 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ListFindingsRefinementsResponse.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/chronicle/v1/findings_refinement.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +/** + * + * + *
                + * Response message for ListFindingsRefinements method.
                + * 
                + * + * Protobuf type {@code google.cloud.chronicle.v1.ListFindingsRefinementsResponse} + */ +@com.google.protobuf.Generated +public final class ListFindingsRefinementsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.chronicle.v1.ListFindingsRefinementsResponse) + ListFindingsRefinementsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListFindingsRefinementsResponse"); + } + + // Use ListFindingsRefinementsResponse.newBuilder() to construct. + private ListFindingsRefinementsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListFindingsRefinementsResponse() { + findingsRefinements_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_ListFindingsRefinementsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_ListFindingsRefinementsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.ListFindingsRefinementsResponse.class, + com.google.cloud.chronicle.v1.ListFindingsRefinementsResponse.Builder.class); + } + + public static final int FINDINGS_REFINEMENTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List findingsRefinements_; + + /** + * + * + *
                +   * List of findings refinements.
                +   * 
                + * + * repeated .google.cloud.chronicle.v1.FindingsRefinement findings_refinements = 1; + */ + @java.lang.Override + public java.util.List + getFindingsRefinementsList() { + return findingsRefinements_; + } + + /** + * + * + *
                +   * List of findings refinements.
                +   * 
                + * + * repeated .google.cloud.chronicle.v1.FindingsRefinement findings_refinements = 1; + */ + @java.lang.Override + public java.util.List + getFindingsRefinementsOrBuilderList() { + return findingsRefinements_; + } + + /** + * + * + *
                +   * List of findings refinements.
                +   * 
                + * + * repeated .google.cloud.chronicle.v1.FindingsRefinement findings_refinements = 1; + */ + @java.lang.Override + public int getFindingsRefinementsCount() { + return findingsRefinements_.size(); + } + + /** + * + * + *
                +   * List of findings refinements.
                +   * 
                + * + * repeated .google.cloud.chronicle.v1.FindingsRefinement findings_refinements = 1; + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.FindingsRefinement getFindingsRefinements(int index) { + return findingsRefinements_.get(index); + } + + /** + * + * + *
                +   * List of findings refinements.
                +   * 
                + * + * repeated .google.cloud.chronicle.v1.FindingsRefinement findings_refinements = 1; + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.FindingsRefinementOrBuilder getFindingsRefinementsOrBuilder( + int index) { + return findingsRefinements_.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 < findingsRefinements_.size(); i++) { + output.writeMessage(1, findingsRefinements_.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 < findingsRefinements_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, findingsRefinements_.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.chronicle.v1.ListFindingsRefinementsResponse)) { + return super.equals(obj); + } + com.google.cloud.chronicle.v1.ListFindingsRefinementsResponse other = + (com.google.cloud.chronicle.v1.ListFindingsRefinementsResponse) obj; + + if (!getFindingsRefinementsList().equals(other.getFindingsRefinementsList())) 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 (getFindingsRefinementsCount() > 0) { + hash = (37 * hash) + FINDINGS_REFINEMENTS_FIELD_NUMBER; + hash = (53 * hash) + getFindingsRefinementsList().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.chronicle.v1.ListFindingsRefinementsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.ListFindingsRefinementsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.ListFindingsRefinementsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.ListFindingsRefinementsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.ListFindingsRefinementsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.ListFindingsRefinementsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.ListFindingsRefinementsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.ListFindingsRefinementsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.ListFindingsRefinementsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.ListFindingsRefinementsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.ListFindingsRefinementsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.ListFindingsRefinementsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.chronicle.v1.ListFindingsRefinementsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 ListFindingsRefinements method.
                +   * 
                + * + * Protobuf type {@code google.cloud.chronicle.v1.ListFindingsRefinementsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.chronicle.v1.ListFindingsRefinementsResponse) + com.google.cloud.chronicle.v1.ListFindingsRefinementsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_ListFindingsRefinementsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_ListFindingsRefinementsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.ListFindingsRefinementsResponse.class, + com.google.cloud.chronicle.v1.ListFindingsRefinementsResponse.Builder.class); + } + + // Construct using com.google.cloud.chronicle.v1.ListFindingsRefinementsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (findingsRefinementsBuilder_ == null) { + findingsRefinements_ = java.util.Collections.emptyList(); + } else { + findingsRefinements_ = null; + findingsRefinementsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_ListFindingsRefinementsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.ListFindingsRefinementsResponse + getDefaultInstanceForType() { + return com.google.cloud.chronicle.v1.ListFindingsRefinementsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.ListFindingsRefinementsResponse build() { + com.google.cloud.chronicle.v1.ListFindingsRefinementsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.ListFindingsRefinementsResponse buildPartial() { + com.google.cloud.chronicle.v1.ListFindingsRefinementsResponse result = + new com.google.cloud.chronicle.v1.ListFindingsRefinementsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.chronicle.v1.ListFindingsRefinementsResponse result) { + if (findingsRefinementsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + findingsRefinements_ = java.util.Collections.unmodifiableList(findingsRefinements_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.findingsRefinements_ = findingsRefinements_; + } else { + result.findingsRefinements_ = findingsRefinementsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.chronicle.v1.ListFindingsRefinementsResponse 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.chronicle.v1.ListFindingsRefinementsResponse) { + return mergeFrom((com.google.cloud.chronicle.v1.ListFindingsRefinementsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.chronicle.v1.ListFindingsRefinementsResponse other) { + if (other + == com.google.cloud.chronicle.v1.ListFindingsRefinementsResponse.getDefaultInstance()) + return this; + if (findingsRefinementsBuilder_ == null) { + if (!other.findingsRefinements_.isEmpty()) { + if (findingsRefinements_.isEmpty()) { + findingsRefinements_ = other.findingsRefinements_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFindingsRefinementsIsMutable(); + findingsRefinements_.addAll(other.findingsRefinements_); + } + onChanged(); + } + } else { + if (!other.findingsRefinements_.isEmpty()) { + if (findingsRefinementsBuilder_.isEmpty()) { + findingsRefinementsBuilder_.dispose(); + findingsRefinementsBuilder_ = null; + findingsRefinements_ = other.findingsRefinements_; + bitField0_ = (bitField0_ & ~0x00000001); + findingsRefinementsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetFindingsRefinementsFieldBuilder() + : null; + } else { + findingsRefinementsBuilder_.addAllMessages(other.findingsRefinements_); + } + } + } + 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.chronicle.v1.FindingsRefinement m = + input.readMessage( + com.google.cloud.chronicle.v1.FindingsRefinement.parser(), + extensionRegistry); + if (findingsRefinementsBuilder_ == null) { + ensureFindingsRefinementsIsMutable(); + findingsRefinements_.add(m); + } else { + findingsRefinementsBuilder_.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 findingsRefinements_ = + java.util.Collections.emptyList(); + + private void ensureFindingsRefinementsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + findingsRefinements_ = + new java.util.ArrayList( + findingsRefinements_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.chronicle.v1.FindingsRefinement, + com.google.cloud.chronicle.v1.FindingsRefinement.Builder, + com.google.cloud.chronicle.v1.FindingsRefinementOrBuilder> + findingsRefinementsBuilder_; + + /** + * + * + *
                +     * List of findings refinements.
                +     * 
                + * + * repeated .google.cloud.chronicle.v1.FindingsRefinement findings_refinements = 1; + */ + public java.util.List + getFindingsRefinementsList() { + if (findingsRefinementsBuilder_ == null) { + return java.util.Collections.unmodifiableList(findingsRefinements_); + } else { + return findingsRefinementsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                +     * List of findings refinements.
                +     * 
                + * + * repeated .google.cloud.chronicle.v1.FindingsRefinement findings_refinements = 1; + */ + public int getFindingsRefinementsCount() { + if (findingsRefinementsBuilder_ == null) { + return findingsRefinements_.size(); + } else { + return findingsRefinementsBuilder_.getCount(); + } + } + + /** + * + * + *
                +     * List of findings refinements.
                +     * 
                + * + * repeated .google.cloud.chronicle.v1.FindingsRefinement findings_refinements = 1; + */ + public com.google.cloud.chronicle.v1.FindingsRefinement getFindingsRefinements(int index) { + if (findingsRefinementsBuilder_ == null) { + return findingsRefinements_.get(index); + } else { + return findingsRefinementsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                +     * List of findings refinements.
                +     * 
                + * + * repeated .google.cloud.chronicle.v1.FindingsRefinement findings_refinements = 1; + */ + public Builder setFindingsRefinements( + int index, com.google.cloud.chronicle.v1.FindingsRefinement value) { + if (findingsRefinementsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFindingsRefinementsIsMutable(); + findingsRefinements_.set(index, value); + onChanged(); + } else { + findingsRefinementsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                +     * List of findings refinements.
                +     * 
                + * + * repeated .google.cloud.chronicle.v1.FindingsRefinement findings_refinements = 1; + */ + public Builder setFindingsRefinements( + int index, com.google.cloud.chronicle.v1.FindingsRefinement.Builder builderForValue) { + if (findingsRefinementsBuilder_ == null) { + ensureFindingsRefinementsIsMutable(); + findingsRefinements_.set(index, builderForValue.build()); + onChanged(); + } else { + findingsRefinementsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                +     * List of findings refinements.
                +     * 
                + * + * repeated .google.cloud.chronicle.v1.FindingsRefinement findings_refinements = 1; + */ + public Builder addFindingsRefinements(com.google.cloud.chronicle.v1.FindingsRefinement value) { + if (findingsRefinementsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFindingsRefinementsIsMutable(); + findingsRefinements_.add(value); + onChanged(); + } else { + findingsRefinementsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                +     * List of findings refinements.
                +     * 
                + * + * repeated .google.cloud.chronicle.v1.FindingsRefinement findings_refinements = 1; + */ + public Builder addFindingsRefinements( + int index, com.google.cloud.chronicle.v1.FindingsRefinement value) { + if (findingsRefinementsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFindingsRefinementsIsMutable(); + findingsRefinements_.add(index, value); + onChanged(); + } else { + findingsRefinementsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                +     * List of findings refinements.
                +     * 
                + * + * repeated .google.cloud.chronicle.v1.FindingsRefinement findings_refinements = 1; + */ + public Builder addFindingsRefinements( + com.google.cloud.chronicle.v1.FindingsRefinement.Builder builderForValue) { + if (findingsRefinementsBuilder_ == null) { + ensureFindingsRefinementsIsMutable(); + findingsRefinements_.add(builderForValue.build()); + onChanged(); + } else { + findingsRefinementsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                +     * List of findings refinements.
                +     * 
                + * + * repeated .google.cloud.chronicle.v1.FindingsRefinement findings_refinements = 1; + */ + public Builder addFindingsRefinements( + int index, com.google.cloud.chronicle.v1.FindingsRefinement.Builder builderForValue) { + if (findingsRefinementsBuilder_ == null) { + ensureFindingsRefinementsIsMutable(); + findingsRefinements_.add(index, builderForValue.build()); + onChanged(); + } else { + findingsRefinementsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                +     * List of findings refinements.
                +     * 
                + * + * repeated .google.cloud.chronicle.v1.FindingsRefinement findings_refinements = 1; + */ + public Builder addAllFindingsRefinements( + java.lang.Iterable values) { + if (findingsRefinementsBuilder_ == null) { + ensureFindingsRefinementsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, findingsRefinements_); + onChanged(); + } else { + findingsRefinementsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                +     * List of findings refinements.
                +     * 
                + * + * repeated .google.cloud.chronicle.v1.FindingsRefinement findings_refinements = 1; + */ + public Builder clearFindingsRefinements() { + if (findingsRefinementsBuilder_ == null) { + findingsRefinements_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + findingsRefinementsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                +     * List of findings refinements.
                +     * 
                + * + * repeated .google.cloud.chronicle.v1.FindingsRefinement findings_refinements = 1; + */ + public Builder removeFindingsRefinements(int index) { + if (findingsRefinementsBuilder_ == null) { + ensureFindingsRefinementsIsMutable(); + findingsRefinements_.remove(index); + onChanged(); + } else { + findingsRefinementsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                +     * List of findings refinements.
                +     * 
                + * + * repeated .google.cloud.chronicle.v1.FindingsRefinement findings_refinements = 1; + */ + public com.google.cloud.chronicle.v1.FindingsRefinement.Builder getFindingsRefinementsBuilder( + int index) { + return internalGetFindingsRefinementsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                +     * List of findings refinements.
                +     * 
                + * + * repeated .google.cloud.chronicle.v1.FindingsRefinement findings_refinements = 1; + */ + public com.google.cloud.chronicle.v1.FindingsRefinementOrBuilder + getFindingsRefinementsOrBuilder(int index) { + if (findingsRefinementsBuilder_ == null) { + return findingsRefinements_.get(index); + } else { + return findingsRefinementsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                +     * List of findings refinements.
                +     * 
                + * + * repeated .google.cloud.chronicle.v1.FindingsRefinement findings_refinements = 1; + */ + public java.util.List + getFindingsRefinementsOrBuilderList() { + if (findingsRefinementsBuilder_ != null) { + return findingsRefinementsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(findingsRefinements_); + } + } + + /** + * + * + *
                +     * List of findings refinements.
                +     * 
                + * + * repeated .google.cloud.chronicle.v1.FindingsRefinement findings_refinements = 1; + */ + public com.google.cloud.chronicle.v1.FindingsRefinement.Builder + addFindingsRefinementsBuilder() { + return internalGetFindingsRefinementsFieldBuilder() + .addBuilder(com.google.cloud.chronicle.v1.FindingsRefinement.getDefaultInstance()); + } + + /** + * + * + *
                +     * List of findings refinements.
                +     * 
                + * + * repeated .google.cloud.chronicle.v1.FindingsRefinement findings_refinements = 1; + */ + public com.google.cloud.chronicle.v1.FindingsRefinement.Builder addFindingsRefinementsBuilder( + int index) { + return internalGetFindingsRefinementsFieldBuilder() + .addBuilder(index, com.google.cloud.chronicle.v1.FindingsRefinement.getDefaultInstance()); + } + + /** + * + * + *
                +     * List of findings refinements.
                +     * 
                + * + * repeated .google.cloud.chronicle.v1.FindingsRefinement findings_refinements = 1; + */ + public java.util.List + getFindingsRefinementsBuilderList() { + return internalGetFindingsRefinementsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.chronicle.v1.FindingsRefinement, + com.google.cloud.chronicle.v1.FindingsRefinement.Builder, + com.google.cloud.chronicle.v1.FindingsRefinementOrBuilder> + internalGetFindingsRefinementsFieldBuilder() { + if (findingsRefinementsBuilder_ == null) { + findingsRefinementsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.chronicle.v1.FindingsRefinement, + com.google.cloud.chronicle.v1.FindingsRefinement.Builder, + com.google.cloud.chronicle.v1.FindingsRefinementOrBuilder>( + findingsRefinements_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + findingsRefinements_ = null; + } + return findingsRefinementsBuilder_; + } + + 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.chronicle.v1.ListFindingsRefinementsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.chronicle.v1.ListFindingsRefinementsResponse) + private static final com.google.cloud.chronicle.v1.ListFindingsRefinementsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.chronicle.v1.ListFindingsRefinementsResponse(); + } + + public static com.google.cloud.chronicle.v1.ListFindingsRefinementsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFindingsRefinementsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.ListFindingsRefinementsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ListFindingsRefinementsResponseOrBuilder.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ListFindingsRefinementsResponseOrBuilder.java new file mode 100644 index 000000000000..d839da8a1929 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ListFindingsRefinementsResponseOrBuilder.java @@ -0,0 +1,113 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/chronicle/v1/findings_refinement.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +@com.google.protobuf.Generated +public interface ListFindingsRefinementsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.chronicle.v1.ListFindingsRefinementsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                +   * List of findings refinements.
                +   * 
                + * + * repeated .google.cloud.chronicle.v1.FindingsRefinement findings_refinements = 1; + */ + java.util.List getFindingsRefinementsList(); + + /** + * + * + *
                +   * List of findings refinements.
                +   * 
                + * + * repeated .google.cloud.chronicle.v1.FindingsRefinement findings_refinements = 1; + */ + com.google.cloud.chronicle.v1.FindingsRefinement getFindingsRefinements(int index); + + /** + * + * + *
                +   * List of findings refinements.
                +   * 
                + * + * repeated .google.cloud.chronicle.v1.FindingsRefinement findings_refinements = 1; + */ + int getFindingsRefinementsCount(); + + /** + * + * + *
                +   * List of findings refinements.
                +   * 
                + * + * repeated .google.cloud.chronicle.v1.FindingsRefinement findings_refinements = 1; + */ + java.util.List + getFindingsRefinementsOrBuilderList(); + + /** + * + * + *
                +   * List of findings refinements.
                +   * 
                + * + * repeated .google.cloud.chronicle.v1.FindingsRefinement findings_refinements = 1; + */ + com.google.cloud.chronicle.v1.FindingsRefinementOrBuilder getFindingsRefinementsOrBuilder( + 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-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/OutcomeFilter.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/OutcomeFilter.java new file mode 100644 index 000000000000..cb53eb4c06ae --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/OutcomeFilter.java @@ -0,0 +1,1186 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/chronicle/v1/findings_refinement.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +/** + * + * + *
                + * Outcome filter for the findings refinement. This is used to filter the
                + * findings refinement based on the outcome variable values.
                + * 
                + * + * Protobuf type {@code google.cloud.chronicle.v1.OutcomeFilter} + */ +@com.google.protobuf.Generated +public final class OutcomeFilter extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.chronicle.v1.OutcomeFilter) + OutcomeFilterOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "OutcomeFilter"); + } + + // Use OutcomeFilter.newBuilder() to construct. + private OutcomeFilter(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private OutcomeFilter() { + outcomeVariable_ = ""; + outcomeValue_ = ""; + outcomeFilterOperator_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_OutcomeFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_OutcomeFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.OutcomeFilter.class, + com.google.cloud.chronicle.v1.OutcomeFilter.Builder.class); + } + + /** + * + * + *
                +   * The operator to compare the outcome variable value with the outcome value
                +   * in the outcome filter.
                +   * 
                + * + * Protobuf enum {@code google.cloud.chronicle.v1.OutcomeFilter.Operator} + */ + public enum Operator implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                +     * The operator is unspecified.
                +     * 
                + * + * OPERATOR_UNSPECIFIED = 0; + */ + OPERATOR_UNSPECIFIED(0), + /** + * + * + *
                +     * The outcome variable value must be equal to the outcome value in the
                +     * outcome filter.
                +     * 
                + * + * EQUAL = 1; + */ + EQUAL(1), + /** + * + * + *
                +     * The outcome variable value must contain the outcome value in the
                +     * outcome filter.
                +     * 
                + * + * CONTAINS = 2; + */ + CONTAINS(2), + /** + * + * + *
                +     * The outcome variable value must match the outcome value regex in the
                +     * outcome filter.
                +     * 
                + * + * MATCHES_REGEX = 3; + */ + MATCHES_REGEX(3), + /** + * + * + *
                +     * The outcome variable value must be a valid IP address in the outcome
                +     * filter value CIDR range.
                +     * 
                + * + * MATCHES_CIDR = 4; + */ + MATCHES_CIDR(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Operator"); + } + + /** + * + * + *
                +     * The operator is unspecified.
                +     * 
                + * + * OPERATOR_UNSPECIFIED = 0; + */ + public static final int OPERATOR_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                +     * The outcome variable value must be equal to the outcome value in the
                +     * outcome filter.
                +     * 
                + * + * EQUAL = 1; + */ + public static final int EQUAL_VALUE = 1; + + /** + * + * + *
                +     * The outcome variable value must contain the outcome value in the
                +     * outcome filter.
                +     * 
                + * + * CONTAINS = 2; + */ + public static final int CONTAINS_VALUE = 2; + + /** + * + * + *
                +     * The outcome variable value must match the outcome value regex in the
                +     * outcome filter.
                +     * 
                + * + * MATCHES_REGEX = 3; + */ + public static final int MATCHES_REGEX_VALUE = 3; + + /** + * + * + *
                +     * The outcome variable value must be a valid IP address in the outcome
                +     * filter value CIDR range.
                +     * 
                + * + * MATCHES_CIDR = 4; + */ + public static final int MATCHES_CIDR_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 Operator 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 Operator forNumber(int value) { + switch (value) { + case 0: + return OPERATOR_UNSPECIFIED; + case 1: + return EQUAL; + case 2: + return CONTAINS; + case 3: + return MATCHES_REGEX; + case 4: + return MATCHES_CIDR; + 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 Operator findValueByNumber(int number) { + return Operator.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.chronicle.v1.OutcomeFilter.getDescriptor().getEnumTypes().get(0); + } + + private static final Operator[] VALUES = values(); + + public static Operator 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 Operator(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.chronicle.v1.OutcomeFilter.Operator) + } + + public static final int OUTCOME_VARIABLE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object outcomeVariable_ = ""; + + /** + * + * + *
                +   * Required. The outcome variable name.
                +   * 
                + * + * string outcome_variable = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The outcomeVariable. + */ + @java.lang.Override + public java.lang.String getOutcomeVariable() { + java.lang.Object ref = outcomeVariable_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outcomeVariable_ = s; + return s; + } + } + + /** + * + * + *
                +   * Required. The outcome variable name.
                +   * 
                + * + * string outcome_variable = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for outcomeVariable. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOutcomeVariableBytes() { + java.lang.Object ref = outcomeVariable_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outcomeVariable_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OUTCOME_VALUE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object outcomeValue_ = ""; + + /** + * + * + *
                +   * Required. The value of the outcome variable to match.
                +   * 
                + * + * string outcome_value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The outcomeValue. + */ + @java.lang.Override + public java.lang.String getOutcomeValue() { + java.lang.Object ref = outcomeValue_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outcomeValue_ = s; + return s; + } + } + + /** + * + * + *
                +   * Required. The value of the outcome variable to match.
                +   * 
                + * + * string outcome_value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for outcomeValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOutcomeValueBytes() { + java.lang.Object ref = outcomeValue_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outcomeValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OUTCOME_FILTER_OPERATOR_FIELD_NUMBER = 3; + private int outcomeFilterOperator_ = 0; + + /** + * + * + *
                +   * Required. The operator to be applied to the outcome variable.
                +   * 
                + * + * + * .google.cloud.chronicle.v1.OutcomeFilter.Operator outcome_filter_operator = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for outcomeFilterOperator. + */ + @java.lang.Override + public int getOutcomeFilterOperatorValue() { + return outcomeFilterOperator_; + } + + /** + * + * + *
                +   * Required. The operator to be applied to the outcome variable.
                +   * 
                + * + * + * .google.cloud.chronicle.v1.OutcomeFilter.Operator outcome_filter_operator = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The outcomeFilterOperator. + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.OutcomeFilter.Operator getOutcomeFilterOperator() { + com.google.cloud.chronicle.v1.OutcomeFilter.Operator result = + com.google.cloud.chronicle.v1.OutcomeFilter.Operator.forNumber(outcomeFilterOperator_); + return result == null + ? com.google.cloud.chronicle.v1.OutcomeFilter.Operator.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(outcomeVariable_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, outcomeVariable_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(outcomeValue_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, outcomeValue_); + } + if (outcomeFilterOperator_ + != com.google.cloud.chronicle.v1.OutcomeFilter.Operator.OPERATOR_UNSPECIFIED.getNumber()) { + output.writeEnum(3, outcomeFilterOperator_); + } + 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(outcomeVariable_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, outcomeVariable_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(outcomeValue_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, outcomeValue_); + } + if (outcomeFilterOperator_ + != com.google.cloud.chronicle.v1.OutcomeFilter.Operator.OPERATOR_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, outcomeFilterOperator_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.chronicle.v1.OutcomeFilter)) { + return super.equals(obj); + } + com.google.cloud.chronicle.v1.OutcomeFilter other = + (com.google.cloud.chronicle.v1.OutcomeFilter) obj; + + if (!getOutcomeVariable().equals(other.getOutcomeVariable())) return false; + if (!getOutcomeValue().equals(other.getOutcomeValue())) return false; + if (outcomeFilterOperator_ != other.outcomeFilterOperator_) return false; + if (!getUnknownFields().equals(other.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) + OUTCOME_VARIABLE_FIELD_NUMBER; + hash = (53 * hash) + getOutcomeVariable().hashCode(); + hash = (37 * hash) + OUTCOME_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getOutcomeValue().hashCode(); + hash = (37 * hash) + OUTCOME_FILTER_OPERATOR_FIELD_NUMBER; + hash = (53 * hash) + outcomeFilterOperator_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.chronicle.v1.OutcomeFilter parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.OutcomeFilter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.OutcomeFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.OutcomeFilter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.OutcomeFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.OutcomeFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.OutcomeFilter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.OutcomeFilter parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.OutcomeFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.OutcomeFilter parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.OutcomeFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.OutcomeFilter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.chronicle.v1.OutcomeFilter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                +   * Outcome filter for the findings refinement. This is used to filter the
                +   * findings refinement based on the outcome variable values.
                +   * 
                + * + * Protobuf type {@code google.cloud.chronicle.v1.OutcomeFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.chronicle.v1.OutcomeFilter) + com.google.cloud.chronicle.v1.OutcomeFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_OutcomeFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_OutcomeFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.OutcomeFilter.class, + com.google.cloud.chronicle.v1.OutcomeFilter.Builder.class); + } + + // Construct using com.google.cloud.chronicle.v1.OutcomeFilter.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + outcomeVariable_ = ""; + outcomeValue_ = ""; + outcomeFilterOperator_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_OutcomeFilter_descriptor; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.OutcomeFilter getDefaultInstanceForType() { + return com.google.cloud.chronicle.v1.OutcomeFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.OutcomeFilter build() { + com.google.cloud.chronicle.v1.OutcomeFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.OutcomeFilter buildPartial() { + com.google.cloud.chronicle.v1.OutcomeFilter result = + new com.google.cloud.chronicle.v1.OutcomeFilter(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.chronicle.v1.OutcomeFilter result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.outcomeVariable_ = outcomeVariable_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.outcomeValue_ = outcomeValue_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.outcomeFilterOperator_ = outcomeFilterOperator_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.chronicle.v1.OutcomeFilter) { + return mergeFrom((com.google.cloud.chronicle.v1.OutcomeFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.chronicle.v1.OutcomeFilter other) { + if (other == com.google.cloud.chronicle.v1.OutcomeFilter.getDefaultInstance()) return this; + if (!other.getOutcomeVariable().isEmpty()) { + outcomeVariable_ = other.outcomeVariable_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getOutcomeValue().isEmpty()) { + outcomeValue_ = other.outcomeValue_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.outcomeFilterOperator_ != 0) { + setOutcomeFilterOperatorValue(other.getOutcomeFilterOperatorValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + outcomeVariable_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + outcomeValue_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + outcomeFilterOperator_ = 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 outcomeVariable_ = ""; + + /** + * + * + *
                +     * Required. The outcome variable name.
                +     * 
                + * + * string outcome_variable = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The outcomeVariable. + */ + public java.lang.String getOutcomeVariable() { + java.lang.Object ref = outcomeVariable_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outcomeVariable_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                +     * Required. The outcome variable name.
                +     * 
                + * + * string outcome_variable = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for outcomeVariable. + */ + public com.google.protobuf.ByteString getOutcomeVariableBytes() { + java.lang.Object ref = outcomeVariable_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outcomeVariable_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                +     * Required. The outcome variable name.
                +     * 
                + * + * string outcome_variable = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The outcomeVariable to set. + * @return This builder for chaining. + */ + public Builder setOutcomeVariable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + outcomeVariable_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The outcome variable name.
                +     * 
                + * + * string outcome_variable = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearOutcomeVariable() { + outcomeVariable_ = getDefaultInstance().getOutcomeVariable(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The outcome variable name.
                +     * 
                + * + * string outcome_variable = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for outcomeVariable to set. + * @return This builder for chaining. + */ + public Builder setOutcomeVariableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outcomeVariable_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object outcomeValue_ = ""; + + /** + * + * + *
                +     * Required. The value of the outcome variable to match.
                +     * 
                + * + * string outcome_value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The outcomeValue. + */ + public java.lang.String getOutcomeValue() { + java.lang.Object ref = outcomeValue_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outcomeValue_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                +     * Required. The value of the outcome variable to match.
                +     * 
                + * + * string outcome_value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for outcomeValue. + */ + public com.google.protobuf.ByteString getOutcomeValueBytes() { + java.lang.Object ref = outcomeValue_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outcomeValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                +     * Required. The value of the outcome variable to match.
                +     * 
                + * + * string outcome_value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The outcomeValue to set. + * @return This builder for chaining. + */ + public Builder setOutcomeValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + outcomeValue_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The value of the outcome variable to match.
                +     * 
                + * + * string outcome_value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearOutcomeValue() { + outcomeValue_ = getDefaultInstance().getOutcomeValue(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The value of the outcome variable to match.
                +     * 
                + * + * string outcome_value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for outcomeValue to set. + * @return This builder for chaining. + */ + public Builder setOutcomeValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outcomeValue_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int outcomeFilterOperator_ = 0; + + /** + * + * + *
                +     * Required. The operator to be applied to the outcome variable.
                +     * 
                + * + * + * .google.cloud.chronicle.v1.OutcomeFilter.Operator outcome_filter_operator = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for outcomeFilterOperator. + */ + @java.lang.Override + public int getOutcomeFilterOperatorValue() { + return outcomeFilterOperator_; + } + + /** + * + * + *
                +     * Required. The operator to be applied to the outcome variable.
                +     * 
                + * + * + * .google.cloud.chronicle.v1.OutcomeFilter.Operator outcome_filter_operator = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for outcomeFilterOperator to set. + * @return This builder for chaining. + */ + public Builder setOutcomeFilterOperatorValue(int value) { + outcomeFilterOperator_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The operator to be applied to the outcome variable.
                +     * 
                + * + * + * .google.cloud.chronicle.v1.OutcomeFilter.Operator outcome_filter_operator = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The outcomeFilterOperator. + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.OutcomeFilter.Operator getOutcomeFilterOperator() { + com.google.cloud.chronicle.v1.OutcomeFilter.Operator result = + com.google.cloud.chronicle.v1.OutcomeFilter.Operator.forNumber(outcomeFilterOperator_); + return result == null + ? com.google.cloud.chronicle.v1.OutcomeFilter.Operator.UNRECOGNIZED + : result; + } + + /** + * + * + *
                +     * Required. The operator to be applied to the outcome variable.
                +     * 
                + * + * + * .google.cloud.chronicle.v1.OutcomeFilter.Operator outcome_filter_operator = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The outcomeFilterOperator to set. + * @return This builder for chaining. + */ + public Builder setOutcomeFilterOperator( + com.google.cloud.chronicle.v1.OutcomeFilter.Operator value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + outcomeFilterOperator_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The operator to be applied to the outcome variable.
                +     * 
                + * + * + * .google.cloud.chronicle.v1.OutcomeFilter.Operator outcome_filter_operator = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearOutcomeFilterOperator() { + bitField0_ = (bitField0_ & ~0x00000004); + outcomeFilterOperator_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.chronicle.v1.OutcomeFilter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.chronicle.v1.OutcomeFilter) + private static final com.google.cloud.chronicle.v1.OutcomeFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.chronicle.v1.OutcomeFilter(); + } + + public static com.google.cloud.chronicle.v1.OutcomeFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OutcomeFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.OutcomeFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/OutcomeFilterOrBuilder.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/OutcomeFilterOrBuilder.java new file mode 100644 index 000000000000..e3ac8b535b2c --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/OutcomeFilterOrBuilder.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/chronicle/v1/findings_refinement.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +@com.google.protobuf.Generated +public interface OutcomeFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.chronicle.v1.OutcomeFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                +   * Required. The outcome variable name.
                +   * 
                + * + * string outcome_variable = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The outcomeVariable. + */ + java.lang.String getOutcomeVariable(); + + /** + * + * + *
                +   * Required. The outcome variable name.
                +   * 
                + * + * string outcome_variable = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for outcomeVariable. + */ + com.google.protobuf.ByteString getOutcomeVariableBytes(); + + /** + * + * + *
                +   * Required. The value of the outcome variable to match.
                +   * 
                + * + * string outcome_value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The outcomeValue. + */ + java.lang.String getOutcomeValue(); + + /** + * + * + *
                +   * Required. The value of the outcome variable to match.
                +   * 
                + * + * string outcome_value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for outcomeValue. + */ + com.google.protobuf.ByteString getOutcomeValueBytes(); + + /** + * + * + *
                +   * Required. The operator to be applied to the outcome variable.
                +   * 
                + * + * + * .google.cloud.chronicle.v1.OutcomeFilter.Operator outcome_filter_operator = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for outcomeFilterOperator. + */ + int getOutcomeFilterOperatorValue(); + + /** + * + * + *
                +   * Required. The operator to be applied to the outcome variable.
                +   * 
                + * + * + * .google.cloud.chronicle.v1.OutcomeFilter.Operator outcome_filter_operator = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The outcomeFilterOperator. + */ + com.google.cloud.chronicle.v1.OutcomeFilter.Operator getOutcomeFilterOperator(); +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/UpdateFindingsRefinementDeploymentRequest.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/UpdateFindingsRefinementDeploymentRequest.java new file mode 100644 index 000000000000..d3556199710c --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/UpdateFindingsRefinementDeploymentRequest.java @@ -0,0 +1,1121 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/chronicle/v1/findings_refinement.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +/** + * + * + *
                + * Request message for UpdateFindingsRefinementDeployment method.
                + * 
                + * + * Protobuf type {@code google.cloud.chronicle.v1.UpdateFindingsRefinementDeploymentRequest} + */ +@com.google.protobuf.Generated +public final class UpdateFindingsRefinementDeploymentRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.chronicle.v1.UpdateFindingsRefinementDeploymentRequest) + UpdateFindingsRefinementDeploymentRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateFindingsRefinementDeploymentRequest"); + } + + // Use UpdateFindingsRefinementDeploymentRequest.newBuilder() to construct. + private UpdateFindingsRefinementDeploymentRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateFindingsRefinementDeploymentRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_UpdateFindingsRefinementDeploymentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_UpdateFindingsRefinementDeploymentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.UpdateFindingsRefinementDeploymentRequest.class, + com.google.cloud.chronicle.v1.UpdateFindingsRefinementDeploymentRequest.Builder.class); + } + + private int bitField0_; + public static final int FINDINGS_REFINEMENT_DEPLOYMENT_FIELD_NUMBER = 1; + private com.google.cloud.chronicle.v1.FindingsRefinementDeployment findingsRefinementDeployment_; + + /** + * + * + *
                +   * Required. The findings refinement deployment to update.
                +   *
                +   * The findings refinement deployment's `name` field is used to identify the
                +   * findings refinement deployment to update.
                +   * Format:
                +   * projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}/deployment
                +   * 
                + * + * + * .google.cloud.chronicle.v1.FindingsRefinementDeployment findings_refinement_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the findingsRefinementDeployment field is set. + */ + @java.lang.Override + public boolean hasFindingsRefinementDeployment() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                +   * Required. The findings refinement deployment to update.
                +   *
                +   * The findings refinement deployment's `name` field is used to identify the
                +   * findings refinement deployment to update.
                +   * Format:
                +   * projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}/deployment
                +   * 
                + * + * + * .google.cloud.chronicle.v1.FindingsRefinementDeployment findings_refinement_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The findingsRefinementDeployment. + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.FindingsRefinementDeployment + getFindingsRefinementDeployment() { + return findingsRefinementDeployment_ == null + ? com.google.cloud.chronicle.v1.FindingsRefinementDeployment.getDefaultInstance() + : findingsRefinementDeployment_; + } + + /** + * + * + *
                +   * Required. The findings refinement deployment to update.
                +   *
                +   * The findings refinement deployment's `name` field is used to identify the
                +   * findings refinement deployment to update.
                +   * Format:
                +   * projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}/deployment
                +   * 
                + * + * + * .google.cloud.chronicle.v1.FindingsRefinementDeployment findings_refinement_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.FindingsRefinementDeploymentOrBuilder + getFindingsRefinementDeploymentOrBuilder() { + return findingsRefinementDeployment_ == null + ? com.google.cloud.chronicle.v1.FindingsRefinementDeployment.getDefaultInstance() + : findingsRefinementDeployment_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
                +   * Required. The list of fields to update. If `*` is provided, all fields will
                +   * be updated.
                +   * 
                + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                +   * Required. The list of fields to update. If `*` is provided, all fields will
                +   * be updated.
                +   * 
                + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
                +   * Required. The list of fields to update. If `*` is provided, all fields will
                +   * be updated.
                +   * 
                + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @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, getFindingsRefinementDeployment()); + } + 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, getFindingsRefinementDeployment()); + } + 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.chronicle.v1.UpdateFindingsRefinementDeploymentRequest)) { + return super.equals(obj); + } + com.google.cloud.chronicle.v1.UpdateFindingsRefinementDeploymentRequest other = + (com.google.cloud.chronicle.v1.UpdateFindingsRefinementDeploymentRequest) obj; + + if (hasFindingsRefinementDeployment() != other.hasFindingsRefinementDeployment()) return false; + if (hasFindingsRefinementDeployment()) { + if (!getFindingsRefinementDeployment().equals(other.getFindingsRefinementDeployment())) + 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 (hasFindingsRefinementDeployment()) { + hash = (37 * hash) + FINDINGS_REFINEMENT_DEPLOYMENT_FIELD_NUMBER; + hash = (53 * hash) + getFindingsRefinementDeployment().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.chronicle.v1.UpdateFindingsRefinementDeploymentRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.UpdateFindingsRefinementDeploymentRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.UpdateFindingsRefinementDeploymentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.UpdateFindingsRefinementDeploymentRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.UpdateFindingsRefinementDeploymentRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.UpdateFindingsRefinementDeploymentRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.UpdateFindingsRefinementDeploymentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.UpdateFindingsRefinementDeploymentRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.UpdateFindingsRefinementDeploymentRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.UpdateFindingsRefinementDeploymentRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.UpdateFindingsRefinementDeploymentRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.UpdateFindingsRefinementDeploymentRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.chronicle.v1.UpdateFindingsRefinementDeploymentRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 UpdateFindingsRefinementDeployment method.
                +   * 
                + * + * Protobuf type {@code google.cloud.chronicle.v1.UpdateFindingsRefinementDeploymentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.chronicle.v1.UpdateFindingsRefinementDeploymentRequest) + com.google.cloud.chronicle.v1.UpdateFindingsRefinementDeploymentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_UpdateFindingsRefinementDeploymentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_UpdateFindingsRefinementDeploymentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.UpdateFindingsRefinementDeploymentRequest.class, + com.google.cloud.chronicle.v1.UpdateFindingsRefinementDeploymentRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.chronicle.v1.UpdateFindingsRefinementDeploymentRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetFindingsRefinementDeploymentFieldBuilder(); + internalGetUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + findingsRefinementDeployment_ = null; + if (findingsRefinementDeploymentBuilder_ != null) { + findingsRefinementDeploymentBuilder_.dispose(); + findingsRefinementDeploymentBuilder_ = 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.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_UpdateFindingsRefinementDeploymentRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.UpdateFindingsRefinementDeploymentRequest + getDefaultInstanceForType() { + return com.google.cloud.chronicle.v1.UpdateFindingsRefinementDeploymentRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.UpdateFindingsRefinementDeploymentRequest build() { + com.google.cloud.chronicle.v1.UpdateFindingsRefinementDeploymentRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.UpdateFindingsRefinementDeploymentRequest buildPartial() { + com.google.cloud.chronicle.v1.UpdateFindingsRefinementDeploymentRequest result = + new com.google.cloud.chronicle.v1.UpdateFindingsRefinementDeploymentRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.chronicle.v1.UpdateFindingsRefinementDeploymentRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.findingsRefinementDeployment_ = + findingsRefinementDeploymentBuilder_ == null + ? findingsRefinementDeployment_ + : findingsRefinementDeploymentBuilder_.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.chronicle.v1.UpdateFindingsRefinementDeploymentRequest) { + return mergeFrom( + (com.google.cloud.chronicle.v1.UpdateFindingsRefinementDeploymentRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.chronicle.v1.UpdateFindingsRefinementDeploymentRequest other) { + if (other + == com.google.cloud.chronicle.v1.UpdateFindingsRefinementDeploymentRequest + .getDefaultInstance()) return this; + if (other.hasFindingsRefinementDeployment()) { + mergeFindingsRefinementDeployment(other.getFindingsRefinementDeployment()); + } + 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( + internalGetFindingsRefinementDeploymentFieldBuilder().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.chronicle.v1.FindingsRefinementDeployment + findingsRefinementDeployment_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.FindingsRefinementDeployment, + com.google.cloud.chronicle.v1.FindingsRefinementDeployment.Builder, + com.google.cloud.chronicle.v1.FindingsRefinementDeploymentOrBuilder> + findingsRefinementDeploymentBuilder_; + + /** + * + * + *
                +     * Required. The findings refinement deployment to update.
                +     *
                +     * The findings refinement deployment's `name` field is used to identify the
                +     * findings refinement deployment to update.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}/deployment
                +     * 
                + * + * + * .google.cloud.chronicle.v1.FindingsRefinementDeployment findings_refinement_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the findingsRefinementDeployment field is set. + */ + public boolean hasFindingsRefinementDeployment() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                +     * Required. The findings refinement deployment to update.
                +     *
                +     * The findings refinement deployment's `name` field is used to identify the
                +     * findings refinement deployment to update.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}/deployment
                +     * 
                + * + * + * .google.cloud.chronicle.v1.FindingsRefinementDeployment findings_refinement_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The findingsRefinementDeployment. + */ + public com.google.cloud.chronicle.v1.FindingsRefinementDeployment + getFindingsRefinementDeployment() { + if (findingsRefinementDeploymentBuilder_ == null) { + return findingsRefinementDeployment_ == null + ? com.google.cloud.chronicle.v1.FindingsRefinementDeployment.getDefaultInstance() + : findingsRefinementDeployment_; + } else { + return findingsRefinementDeploymentBuilder_.getMessage(); + } + } + + /** + * + * + *
                +     * Required. The findings refinement deployment to update.
                +     *
                +     * The findings refinement deployment's `name` field is used to identify the
                +     * findings refinement deployment to update.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}/deployment
                +     * 
                + * + * + * .google.cloud.chronicle.v1.FindingsRefinementDeployment findings_refinement_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFindingsRefinementDeployment( + com.google.cloud.chronicle.v1.FindingsRefinementDeployment value) { + if (findingsRefinementDeploymentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + findingsRefinementDeployment_ = value; + } else { + findingsRefinementDeploymentBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The findings refinement deployment to update.
                +     *
                +     * The findings refinement deployment's `name` field is used to identify the
                +     * findings refinement deployment to update.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}/deployment
                +     * 
                + * + * + * .google.cloud.chronicle.v1.FindingsRefinementDeployment findings_refinement_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFindingsRefinementDeployment( + com.google.cloud.chronicle.v1.FindingsRefinementDeployment.Builder builderForValue) { + if (findingsRefinementDeploymentBuilder_ == null) { + findingsRefinementDeployment_ = builderForValue.build(); + } else { + findingsRefinementDeploymentBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The findings refinement deployment to update.
                +     *
                +     * The findings refinement deployment's `name` field is used to identify the
                +     * findings refinement deployment to update.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}/deployment
                +     * 
                + * + * + * .google.cloud.chronicle.v1.FindingsRefinementDeployment findings_refinement_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeFindingsRefinementDeployment( + com.google.cloud.chronicle.v1.FindingsRefinementDeployment value) { + if (findingsRefinementDeploymentBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && findingsRefinementDeployment_ != null + && findingsRefinementDeployment_ + != com.google.cloud.chronicle.v1.FindingsRefinementDeployment + .getDefaultInstance()) { + getFindingsRefinementDeploymentBuilder().mergeFrom(value); + } else { + findingsRefinementDeployment_ = value; + } + } else { + findingsRefinementDeploymentBuilder_.mergeFrom(value); + } + if (findingsRefinementDeployment_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
                +     * Required. The findings refinement deployment to update.
                +     *
                +     * The findings refinement deployment's `name` field is used to identify the
                +     * findings refinement deployment to update.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}/deployment
                +     * 
                + * + * + * .google.cloud.chronicle.v1.FindingsRefinementDeployment findings_refinement_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearFindingsRefinementDeployment() { + bitField0_ = (bitField0_ & ~0x00000001); + findingsRefinementDeployment_ = null; + if (findingsRefinementDeploymentBuilder_ != null) { + findingsRefinementDeploymentBuilder_.dispose(); + findingsRefinementDeploymentBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The findings refinement deployment to update.
                +     *
                +     * The findings refinement deployment's `name` field is used to identify the
                +     * findings refinement deployment to update.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}/deployment
                +     * 
                + * + * + * .google.cloud.chronicle.v1.FindingsRefinementDeployment findings_refinement_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.chronicle.v1.FindingsRefinementDeployment.Builder + getFindingsRefinementDeploymentBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetFindingsRefinementDeploymentFieldBuilder().getBuilder(); + } + + /** + * + * + *
                +     * Required. The findings refinement deployment to update.
                +     *
                +     * The findings refinement deployment's `name` field is used to identify the
                +     * findings refinement deployment to update.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}/deployment
                +     * 
                + * + * + * .google.cloud.chronicle.v1.FindingsRefinementDeployment findings_refinement_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.chronicle.v1.FindingsRefinementDeploymentOrBuilder + getFindingsRefinementDeploymentOrBuilder() { + if (findingsRefinementDeploymentBuilder_ != null) { + return findingsRefinementDeploymentBuilder_.getMessageOrBuilder(); + } else { + return findingsRefinementDeployment_ == null + ? com.google.cloud.chronicle.v1.FindingsRefinementDeployment.getDefaultInstance() + : findingsRefinementDeployment_; + } + } + + /** + * + * + *
                +     * Required. The findings refinement deployment to update.
                +     *
                +     * The findings refinement deployment's `name` field is used to identify the
                +     * findings refinement deployment to update.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}/deployment
                +     * 
                + * + * + * .google.cloud.chronicle.v1.FindingsRefinementDeployment findings_refinement_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.FindingsRefinementDeployment, + com.google.cloud.chronicle.v1.FindingsRefinementDeployment.Builder, + com.google.cloud.chronicle.v1.FindingsRefinementDeploymentOrBuilder> + internalGetFindingsRefinementDeploymentFieldBuilder() { + if (findingsRefinementDeploymentBuilder_ == null) { + findingsRefinementDeploymentBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.FindingsRefinementDeployment, + com.google.cloud.chronicle.v1.FindingsRefinementDeployment.Builder, + com.google.cloud.chronicle.v1.FindingsRefinementDeploymentOrBuilder>( + getFindingsRefinementDeployment(), getParentForChildren(), isClean()); + findingsRefinementDeployment_ = null; + } + return findingsRefinementDeploymentBuilder_; + } + + 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_; + + /** + * + * + *
                +     * Required. The list of fields to update. If `*` is provided, all fields will
                +     * be updated.
                +     * 
                + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                +     * Required. The list of fields to update. If `*` is provided, all fields will
                +     * be updated.
                +     * 
                + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @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(); + } + } + + /** + * + * + *
                +     * Required. The list of fields to update. If `*` is provided, all fields will
                +     * be updated.
                +     * 
                + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + 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; + } + + /** + * + * + *
                +     * Required. The list of fields to update. If `*` is provided, all fields will
                +     * be updated.
                +     * 
                + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + 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; + } + + /** + * + * + *
                +     * Required. The list of fields to update. If `*` is provided, all fields will
                +     * be updated.
                +     * 
                + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + 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; + } + + /** + * + * + *
                +     * Required. The list of fields to update. If `*` is provided, all fields will
                +     * be updated.
                +     * 
                + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The list of fields to update. If `*` is provided, all fields will
                +     * be updated.
                +     * 
                + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
                +     * Required. The list of fields to update. If `*` is provided, all fields will
                +     * be updated.
                +     * 
                + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
                +     * Required. The list of fields to update. If `*` is provided, all fields will
                +     * be updated.
                +     * 
                + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + 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.chronicle.v1.UpdateFindingsRefinementDeploymentRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.chronicle.v1.UpdateFindingsRefinementDeploymentRequest) + private static final com.google.cloud.chronicle.v1.UpdateFindingsRefinementDeploymentRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.chronicle.v1.UpdateFindingsRefinementDeploymentRequest(); + } + + public static com.google.cloud.chronicle.v1.UpdateFindingsRefinementDeploymentRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateFindingsRefinementDeploymentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.UpdateFindingsRefinementDeploymentRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/UpdateFindingsRefinementDeploymentRequestOrBuilder.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/UpdateFindingsRefinementDeploymentRequestOrBuilder.java new file mode 100644 index 000000000000..258e30d3faf2 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/UpdateFindingsRefinementDeploymentRequestOrBuilder.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/chronicle/v1/findings_refinement.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +@com.google.protobuf.Generated +public interface UpdateFindingsRefinementDeploymentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.chronicle.v1.UpdateFindingsRefinementDeploymentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                +   * Required. The findings refinement deployment to update.
                +   *
                +   * The findings refinement deployment's `name` field is used to identify the
                +   * findings refinement deployment to update.
                +   * Format:
                +   * projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}/deployment
                +   * 
                + * + * + * .google.cloud.chronicle.v1.FindingsRefinementDeployment findings_refinement_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the findingsRefinementDeployment field is set. + */ + boolean hasFindingsRefinementDeployment(); + + /** + * + * + *
                +   * Required. The findings refinement deployment to update.
                +   *
                +   * The findings refinement deployment's `name` field is used to identify the
                +   * findings refinement deployment to update.
                +   * Format:
                +   * projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}/deployment
                +   * 
                + * + * + * .google.cloud.chronicle.v1.FindingsRefinementDeployment findings_refinement_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The findingsRefinementDeployment. + */ + com.google.cloud.chronicle.v1.FindingsRefinementDeployment getFindingsRefinementDeployment(); + + /** + * + * + *
                +   * Required. The findings refinement deployment to update.
                +   *
                +   * The findings refinement deployment's `name` field is used to identify the
                +   * findings refinement deployment to update.
                +   * Format:
                +   * projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}/deployment
                +   * 
                + * + * + * .google.cloud.chronicle.v1.FindingsRefinementDeployment findings_refinement_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.chronicle.v1.FindingsRefinementDeploymentOrBuilder + getFindingsRefinementDeploymentOrBuilder(); + + /** + * + * + *
                +   * Required. The list of fields to update. If `*` is provided, all fields will
                +   * be updated.
                +   * 
                + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
                +   * Required. The list of fields to update. If `*` is provided, all fields will
                +   * be updated.
                +   * 
                + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
                +   * Required. The list of fields to update. If `*` is provided, all fields will
                +   * be updated.
                +   * 
                + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/UpdateFindingsRefinementRequest.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/UpdateFindingsRefinementRequest.java new file mode 100644 index 000000000000..2596b71af98a --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/UpdateFindingsRefinementRequest.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/chronicle/v1/findings_refinement.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +/** + * + * + *
                + * Request message for UpdateFindingsRefinement method.
                + * 
                + * + * Protobuf type {@code google.cloud.chronicle.v1.UpdateFindingsRefinementRequest} + */ +@com.google.protobuf.Generated +public final class UpdateFindingsRefinementRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.chronicle.v1.UpdateFindingsRefinementRequest) + UpdateFindingsRefinementRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateFindingsRefinementRequest"); + } + + // Use UpdateFindingsRefinementRequest.newBuilder() to construct. + private UpdateFindingsRefinementRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateFindingsRefinementRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_UpdateFindingsRefinementRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_UpdateFindingsRefinementRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.UpdateFindingsRefinementRequest.class, + com.google.cloud.chronicle.v1.UpdateFindingsRefinementRequest.Builder.class); + } + + private int bitField0_; + public static final int FINDINGS_REFINEMENT_FIELD_NUMBER = 1; + private com.google.cloud.chronicle.v1.FindingsRefinement findingsRefinement_; + + /** + * + * + *
                +   * Required. The findings refinement to update.
                +   *
                +   * The findings refinement's `name` field is used to identify the findings
                +   * refinement to update.
                +   * Format:
                +   * projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}
                +   * 
                + * + * + * .google.cloud.chronicle.v1.FindingsRefinement findings_refinement = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the findingsRefinement field is set. + */ + @java.lang.Override + public boolean hasFindingsRefinement() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                +   * Required. The findings refinement to update.
                +   *
                +   * The findings refinement's `name` field is used to identify the findings
                +   * refinement to update.
                +   * Format:
                +   * projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}
                +   * 
                + * + * + * .google.cloud.chronicle.v1.FindingsRefinement findings_refinement = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The findingsRefinement. + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.FindingsRefinement getFindingsRefinement() { + return findingsRefinement_ == null + ? com.google.cloud.chronicle.v1.FindingsRefinement.getDefaultInstance() + : findingsRefinement_; + } + + /** + * + * + *
                +   * Required. The findings refinement to update.
                +   *
                +   * The findings refinement's `name` field is used to identify the findings
                +   * refinement to update.
                +   * Format:
                +   * projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}
                +   * 
                + * + * + * .google.cloud.chronicle.v1.FindingsRefinement findings_refinement = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.FindingsRefinementOrBuilder + getFindingsRefinementOrBuilder() { + return findingsRefinement_ == null + ? com.google.cloud.chronicle.v1.FindingsRefinement.getDefaultInstance() + : findingsRefinement_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
                +   * Optional. The list of fields to update. If `*` is provided, all fields will
                +   * be updated.
                +   * 
                + * + * .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. If `*` is provided, all fields will
                +   * be updated.
                +   * 
                + * + * .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. If `*` is provided, all fields will
                +   * be updated.
                +   * 
                + * + * .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, getFindingsRefinement()); + } + 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, getFindingsRefinement()); + } + 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.chronicle.v1.UpdateFindingsRefinementRequest)) { + return super.equals(obj); + } + com.google.cloud.chronicle.v1.UpdateFindingsRefinementRequest other = + (com.google.cloud.chronicle.v1.UpdateFindingsRefinementRequest) obj; + + if (hasFindingsRefinement() != other.hasFindingsRefinement()) return false; + if (hasFindingsRefinement()) { + if (!getFindingsRefinement().equals(other.getFindingsRefinement())) 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 (hasFindingsRefinement()) { + hash = (37 * hash) + FINDINGS_REFINEMENT_FIELD_NUMBER; + hash = (53 * hash) + getFindingsRefinement().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.chronicle.v1.UpdateFindingsRefinementRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.UpdateFindingsRefinementRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.UpdateFindingsRefinementRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.UpdateFindingsRefinementRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.UpdateFindingsRefinementRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.UpdateFindingsRefinementRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.UpdateFindingsRefinementRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.UpdateFindingsRefinementRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.UpdateFindingsRefinementRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.UpdateFindingsRefinementRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.UpdateFindingsRefinementRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.UpdateFindingsRefinementRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.chronicle.v1.UpdateFindingsRefinementRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 UpdateFindingsRefinement method.
                +   * 
                + * + * Protobuf type {@code google.cloud.chronicle.v1.UpdateFindingsRefinementRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.chronicle.v1.UpdateFindingsRefinementRequest) + com.google.cloud.chronicle.v1.UpdateFindingsRefinementRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_UpdateFindingsRefinementRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_UpdateFindingsRefinementRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.UpdateFindingsRefinementRequest.class, + com.google.cloud.chronicle.v1.UpdateFindingsRefinementRequest.Builder.class); + } + + // Construct using com.google.cloud.chronicle.v1.UpdateFindingsRefinementRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetFindingsRefinementFieldBuilder(); + internalGetUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + findingsRefinement_ = null; + if (findingsRefinementBuilder_ != null) { + findingsRefinementBuilder_.dispose(); + findingsRefinementBuilder_ = 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.chronicle.v1.FindingsRefinementProto + .internal_static_google_cloud_chronicle_v1_UpdateFindingsRefinementRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.UpdateFindingsRefinementRequest + getDefaultInstanceForType() { + return com.google.cloud.chronicle.v1.UpdateFindingsRefinementRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.UpdateFindingsRefinementRequest build() { + com.google.cloud.chronicle.v1.UpdateFindingsRefinementRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.UpdateFindingsRefinementRequest buildPartial() { + com.google.cloud.chronicle.v1.UpdateFindingsRefinementRequest result = + new com.google.cloud.chronicle.v1.UpdateFindingsRefinementRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.chronicle.v1.UpdateFindingsRefinementRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.findingsRefinement_ = + findingsRefinementBuilder_ == null + ? findingsRefinement_ + : findingsRefinementBuilder_.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.chronicle.v1.UpdateFindingsRefinementRequest) { + return mergeFrom((com.google.cloud.chronicle.v1.UpdateFindingsRefinementRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.chronicle.v1.UpdateFindingsRefinementRequest other) { + if (other + == com.google.cloud.chronicle.v1.UpdateFindingsRefinementRequest.getDefaultInstance()) + return this; + if (other.hasFindingsRefinement()) { + mergeFindingsRefinement(other.getFindingsRefinement()); + } + 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( + internalGetFindingsRefinementFieldBuilder().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.chronicle.v1.FindingsRefinement findingsRefinement_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.FindingsRefinement, + com.google.cloud.chronicle.v1.FindingsRefinement.Builder, + com.google.cloud.chronicle.v1.FindingsRefinementOrBuilder> + findingsRefinementBuilder_; + + /** + * + * + *
                +     * Required. The findings refinement to update.
                +     *
                +     * The findings refinement's `name` field is used to identify the findings
                +     * refinement to update.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}
                +     * 
                + * + * + * .google.cloud.chronicle.v1.FindingsRefinement findings_refinement = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the findingsRefinement field is set. + */ + public boolean hasFindingsRefinement() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                +     * Required. The findings refinement to update.
                +     *
                +     * The findings refinement's `name` field is used to identify the findings
                +     * refinement to update.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}
                +     * 
                + * + * + * .google.cloud.chronicle.v1.FindingsRefinement findings_refinement = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The findingsRefinement. + */ + public com.google.cloud.chronicle.v1.FindingsRefinement getFindingsRefinement() { + if (findingsRefinementBuilder_ == null) { + return findingsRefinement_ == null + ? com.google.cloud.chronicle.v1.FindingsRefinement.getDefaultInstance() + : findingsRefinement_; + } else { + return findingsRefinementBuilder_.getMessage(); + } + } + + /** + * + * + *
                +     * Required. The findings refinement to update.
                +     *
                +     * The findings refinement's `name` field is used to identify the findings
                +     * refinement to update.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}
                +     * 
                + * + * + * .google.cloud.chronicle.v1.FindingsRefinement findings_refinement = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFindingsRefinement(com.google.cloud.chronicle.v1.FindingsRefinement value) { + if (findingsRefinementBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + findingsRefinement_ = value; + } else { + findingsRefinementBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The findings refinement to update.
                +     *
                +     * The findings refinement's `name` field is used to identify the findings
                +     * refinement to update.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}
                +     * 
                + * + * + * .google.cloud.chronicle.v1.FindingsRefinement findings_refinement = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFindingsRefinement( + com.google.cloud.chronicle.v1.FindingsRefinement.Builder builderForValue) { + if (findingsRefinementBuilder_ == null) { + findingsRefinement_ = builderForValue.build(); + } else { + findingsRefinementBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The findings refinement to update.
                +     *
                +     * The findings refinement's `name` field is used to identify the findings
                +     * refinement to update.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}
                +     * 
                + * + * + * .google.cloud.chronicle.v1.FindingsRefinement findings_refinement = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeFindingsRefinement(com.google.cloud.chronicle.v1.FindingsRefinement value) { + if (findingsRefinementBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && findingsRefinement_ != null + && findingsRefinement_ + != com.google.cloud.chronicle.v1.FindingsRefinement.getDefaultInstance()) { + getFindingsRefinementBuilder().mergeFrom(value); + } else { + findingsRefinement_ = value; + } + } else { + findingsRefinementBuilder_.mergeFrom(value); + } + if (findingsRefinement_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
                +     * Required. The findings refinement to update.
                +     *
                +     * The findings refinement's `name` field is used to identify the findings
                +     * refinement to update.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}
                +     * 
                + * + * + * .google.cloud.chronicle.v1.FindingsRefinement findings_refinement = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearFindingsRefinement() { + bitField0_ = (bitField0_ & ~0x00000001); + findingsRefinement_ = null; + if (findingsRefinementBuilder_ != null) { + findingsRefinementBuilder_.dispose(); + findingsRefinementBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The findings refinement to update.
                +     *
                +     * The findings refinement's `name` field is used to identify the findings
                +     * refinement to update.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}
                +     * 
                + * + * + * .google.cloud.chronicle.v1.FindingsRefinement findings_refinement = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.chronicle.v1.FindingsRefinement.Builder getFindingsRefinementBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetFindingsRefinementFieldBuilder().getBuilder(); + } + + /** + * + * + *
                +     * Required. The findings refinement to update.
                +     *
                +     * The findings refinement's `name` field is used to identify the findings
                +     * refinement to update.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}
                +     * 
                + * + * + * .google.cloud.chronicle.v1.FindingsRefinement findings_refinement = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.chronicle.v1.FindingsRefinementOrBuilder + getFindingsRefinementOrBuilder() { + if (findingsRefinementBuilder_ != null) { + return findingsRefinementBuilder_.getMessageOrBuilder(); + } else { + return findingsRefinement_ == null + ? com.google.cloud.chronicle.v1.FindingsRefinement.getDefaultInstance() + : findingsRefinement_; + } + } + + /** + * + * + *
                +     * Required. The findings refinement to update.
                +     *
                +     * The findings refinement's `name` field is used to identify the findings
                +     * refinement to update.
                +     * Format:
                +     * projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}
                +     * 
                + * + * + * .google.cloud.chronicle.v1.FindingsRefinement findings_refinement = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.FindingsRefinement, + com.google.cloud.chronicle.v1.FindingsRefinement.Builder, + com.google.cloud.chronicle.v1.FindingsRefinementOrBuilder> + internalGetFindingsRefinementFieldBuilder() { + if (findingsRefinementBuilder_ == null) { + findingsRefinementBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.FindingsRefinement, + com.google.cloud.chronicle.v1.FindingsRefinement.Builder, + com.google.cloud.chronicle.v1.FindingsRefinementOrBuilder>( + getFindingsRefinement(), getParentForChildren(), isClean()); + findingsRefinement_ = null; + } + return findingsRefinementBuilder_; + } + + 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. If `*` is provided, all fields will
                +     * be updated.
                +     * 
                + * + * .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. If `*` is provided, all fields will
                +     * be updated.
                +     * 
                + * + * .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. If `*` is provided, all fields will
                +     * be updated.
                +     * 
                + * + * .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. If `*` is provided, all fields will
                +     * be updated.
                +     * 
                + * + * .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. If `*` is provided, all fields will
                +     * be updated.
                +     * 
                + * + * .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. If `*` is provided, all fields will
                +     * be updated.
                +     * 
                + * + * .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. If `*` is provided, all fields will
                +     * be updated.
                +     * 
                + * + * .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. If `*` is provided, all fields will
                +     * be updated.
                +     * 
                + * + * .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. If `*` is provided, all fields will
                +     * be updated.
                +     * 
                + * + * .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.chronicle.v1.UpdateFindingsRefinementRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.chronicle.v1.UpdateFindingsRefinementRequest) + private static final com.google.cloud.chronicle.v1.UpdateFindingsRefinementRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.chronicle.v1.UpdateFindingsRefinementRequest(); + } + + public static com.google.cloud.chronicle.v1.UpdateFindingsRefinementRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateFindingsRefinementRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.UpdateFindingsRefinementRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/UpdateFindingsRefinementRequestOrBuilder.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/UpdateFindingsRefinementRequestOrBuilder.java new file mode 100644 index 000000000000..a596302bdeba --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/UpdateFindingsRefinementRequestOrBuilder.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/chronicle/v1/findings_refinement.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +@com.google.protobuf.Generated +public interface UpdateFindingsRefinementRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.chronicle.v1.UpdateFindingsRefinementRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                +   * Required. The findings refinement to update.
                +   *
                +   * The findings refinement's `name` field is used to identify the findings
                +   * refinement to update.
                +   * Format:
                +   * projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}
                +   * 
                + * + * + * .google.cloud.chronicle.v1.FindingsRefinement findings_refinement = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the findingsRefinement field is set. + */ + boolean hasFindingsRefinement(); + + /** + * + * + *
                +   * Required. The findings refinement to update.
                +   *
                +   * The findings refinement's `name` field is used to identify the findings
                +   * refinement to update.
                +   * Format:
                +   * projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}
                +   * 
                + * + * + * .google.cloud.chronicle.v1.FindingsRefinement findings_refinement = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The findingsRefinement. + */ + com.google.cloud.chronicle.v1.FindingsRefinement getFindingsRefinement(); + + /** + * + * + *
                +   * Required. The findings refinement to update.
                +   *
                +   * The findings refinement's `name` field is used to identify the findings
                +   * refinement to update.
                +   * Format:
                +   * projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}
                +   * 
                + * + * + * .google.cloud.chronicle.v1.FindingsRefinement findings_refinement = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.chronicle.v1.FindingsRefinementOrBuilder getFindingsRefinementOrBuilder(); + + /** + * + * + *
                +   * Optional. The list of fields to update. If `*` is provided, all fields will
                +   * be updated.
                +   * 
                + * + * .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. If `*` is provided, all fields will
                +   * be updated.
                +   * 
                + * + * .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. If `*` is provided, all fields will
                +   * be updated.
                +   * 
                + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/proto/google/cloud/chronicle/v1/findings_refinement.proto b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/proto/google/cloud/chronicle/v1/findings_refinement.proto new file mode 100644 index 000000000000..1417dd0f4251 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/proto/google/cloud/chronicle/v1/findings_refinement.proto @@ -0,0 +1,573 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// 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.chronicle.v1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; +import "google/type/interval.proto"; + +option csharp_namespace = "Google.Cloud.Chronicle.V1"; +option go_package = "cloud.google.com/go/chronicle/apiv1/chroniclepb;chroniclepb"; +option java_multiple_files = true; +option java_outer_classname = "FindingsRefinementProto"; +option java_package = "com.google.cloud.chronicle.v1"; +option php_namespace = "Google\\Cloud\\Chronicle\\V1"; +option ruby_package = "Google::Cloud::Chronicle::V1"; +option (google.api.resource_definition) = { + type: "chronicle.googleapis.com/CuratedRuleSet" + pattern: "projects/{project}/locations/{location}/instances/{instance}/curatedRuleSetCategories/{category}/curatedRuleSets/{rule_set}" +}; + +// FindingsRefinementService provides an interface for filtering out +// findings that are unlikely to be real threats to prevent them +// from triggering alerts or notifications. +service FindingsRefinementService { + option (google.api.default_host) = "chronicle.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/chronicle," + "https://www.googleapis.com/auth/chronicle.readonly," + "https://www.googleapis.com/auth/cloud-platform"; + + // Gets a single findings refinement. + rpc GetFindingsRefinement(GetFindingsRefinementRequest) + returns (FindingsRefinement) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/instances/*/findingsRefinements/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists a collection of findings refinements. + rpc ListFindingsRefinements(ListFindingsRefinementsRequest) + returns (ListFindingsRefinementsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/instances/*}/findingsRefinements" + }; + option (google.api.method_signature) = "parent"; + } + + // Creates a new findings refinement. + rpc CreateFindingsRefinement(CreateFindingsRefinementRequest) + returns (FindingsRefinement) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/instances/*}/findingsRefinements" + body: "findings_refinement" + }; + option (google.api.method_signature) = "parent,findings_refinement"; + } + + // Updates a findings refinement. + rpc UpdateFindingsRefinement(UpdateFindingsRefinementRequest) + returns (FindingsRefinement) { + option (google.api.http) = { + patch: "/v1/{findings_refinement.name=projects/*/locations/*/instances/*/findingsRefinements/*}" + body: "findings_refinement" + }; + option (google.api.method_signature) = "findings_refinement,update_mask"; + } + + // Gets a findings refinement deployment. + rpc GetFindingsRefinementDeployment(GetFindingsRefinementDeploymentRequest) + returns (FindingsRefinementDeployment) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/instances/*/findingsRefinements/*/deployment}" + }; + option (google.api.method_signature) = "name"; + } + + // Updates a findings refinement deployment. + rpc UpdateFindingsRefinementDeployment( + UpdateFindingsRefinementDeploymentRequest) + returns (FindingsRefinementDeployment) { + option (google.api.http) = { + patch: "/v1/{findings_refinement_deployment.name=projects/*/locations/*/instances/*/findingsRefinements/*/deployment}" + body: "findings_refinement_deployment" + }; + option (google.api.method_signature) = + "findings_refinement_deployment,update_mask"; + } + + // Lists all findings refinement deployments. + rpc ListAllFindingsRefinementDeployments( + ListAllFindingsRefinementDeploymentsRequest) + returns (ListAllFindingsRefinementDeploymentsResponse) { + option (google.api.http) = { + get: "/v1/{instance=projects/*/locations/*/instances/*}:listAllFindingsRefinementDeployments" + }; + option (google.api.method_signature) = "instance"; + } + + // Returns findings refinement activity for a specific findings refinement. + rpc ComputeFindingsRefinementActivity( + ComputeFindingsRefinementActivityRequest) + returns (ComputeFindingsRefinementActivityResponse) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/instances/*/findingsRefinements/*}:computeFindingsRefinementActivity" + body: "*" + }; + option (google.api.method_signature) = "name"; + } + + // Returns findings refinement activity for all findings refinements. + rpc ComputeAllFindingsRefinementActivities( + ComputeAllFindingsRefinementActivitiesRequest) + returns (ComputeAllFindingsRefinementActivitiesResponse) { + option (google.api.http) = { + post: "/v1/{instance=projects/*/locations/*/instances/*}:computeAllFindingsRefinementActivities" + body: "*" + }; + option (google.api.method_signature) = "instance"; + } +} + +// The type of findings refinement, which determines what the findings +// refinement runs over and the mechanism by which it runs. +enum FindingsRefinementType { + // The findings refinement type is unspecified. + FINDINGS_REFINEMENT_TYPE_UNSPECIFIED = 0; + + // Indicates that the findings refinement is a detection exclusion and + // should exclude matching detections. + DETECTION_EXCLUSION = 1; +} + +// Represents a set of logic conditions used to refine various types of +// findings such as curated rule detections. +message FindingsRefinement { + option (google.api.resource) = { + type: "chronicle.googleapis.com/FindingsRefinement" + pattern: "projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}" + }; + + // Full resource name for the findings refinement. + // Format: + // projects/{project}/locations/{region}/instances/{instance}/findingsRefinements/{findings_refinement} + string name = 1; + + // Display name of the findings refinement. + string display_name = 2; + + // The type of findings refinement. + FindingsRefinementType type = 3; + + // Output only. The timestamp of when the findings refinement was created. + google.protobuf.Timestamp create_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp of when the findings refinement was last + // updated. + google.protobuf.Timestamp update_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The query for the findings refinement. Works in conjunction with the type + // field to determine the findings refinement behavior. The syntax of this + // query is the same as a UDM search string. See the following for more + // information: + // https://cloud.google.com/chronicle/docs/investigation/udm-search + string query = 7; + + // Optional. The outcome filters for the findings refinement. These allow you + // to specify filters that are applied to the outcome variables in the + // detection. All filters must be true for a detection to match the findings + // refinement. + repeated OutcomeFilter outcome_filters = 8 + [(google.api.field_behavior) = OPTIONAL]; +} + +// The FindingsRefinementDeployment resource represents the deployment state of +// a findings refinement. +message FindingsRefinementDeployment { + option (google.api.resource) = { + type: "chronicle.googleapis.com/FindingsRefinementDeployment" + pattern: "projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}/deployment" + }; + + // The resources which the findings refinement is applied to. Corresponds to + // the type of the findings refinement. + oneof FindingsRefinementApplication { + // The resources which the detection exclusion is applied to. + DetectionExclusionApplication detection_exclusion_application = 5; + } + + // Required. The resource name of the findings refinement deployment. + // Format: + // projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}/deployment + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Whether the findings refinement is currently deployed continuously against + // incoming findings. + bool enabled = 2; + + // The archive state of the findings refinement deployment. + // Cannot be set to true unless enabled is set to false. + // If currently set to true, enabled cannot be updated to true. + bool archived = 3; + + // Output only. The timestamp when the findings refinement deployment was last + // updated. + google.protobuf.Timestamp update_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Describes the detectors a detection exclusion is applied to. +message DetectionExclusionApplication { + // The CuratedRuleSets this detection exclusion applies to. + // Format: + // projects/{project}/locations/{location}/instances/{instance}/curatedRuleSetCategories/{category}/curatedRuleSets/{rule_set} + repeated string curated_rule_sets = 1 [(google.api.resource_reference) = { + type: "chronicle.googleapis.com/CuratedRuleSet" + }]; + + // The CuratedRules this detection exclusion applies to. + // Format: + // projects/{project}/locations/{location}/instances/{instance}/curatedRules/{rule} + repeated string curated_rules = 2 [(google.api.resource_reference) = { + type: "chronicle.googleapis.com/CuratedRule" + }]; + + // Optional. The Rules this detection exclusion applies to. + // Format: + // projects/{project}/locations/{location}/instances/{instance}/rules/{rule} + repeated string rules = 3 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { type: "chronicle.googleapis.com/Rule" } + ]; + + // Output only. The deleted CuratedRuleSets this detection exclusion applies + // to. Indicates to the customer that the detection exclusion no longer + // applies to the rule sets, so the detection exclusion should be updated. + // Format: + // projects/{project}/locations/{location}/instances/{instance}/curatedRuleSetCategories/{category}/curatedRuleSets/{rule_set} + repeated string deleted_curated_rule_sets = 4 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "chronicle.googleapis.com/CuratedRuleSet" + } + ]; +} + +// The activity for a specific findings refinement. +message FindingsRefinementActivity { + // The activity for the findings refinement. + oneof Activity { + // The activity for the detection exclusion. + DetectionExclusionActivity detection_exclusion_activity = 2; + } + + // Required. Full resource name for the findings refinement this activity + // corresponds to. Format: + // projects/{project}/locations/{region}/instances/{instance}/findingsRefinements/{findings_refinement} + string findings_refinement = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "chronicle.googleapis.com/FindingsRefinement" + } + ]; +} + +// The activity for a findings refinement that is a detection exclusion. The +// activity is broken down per detector. +message DetectionExclusionActivity { + // The activity for a findings refinement that is a detection exclusion broken + // down for one specific detector. + message DetectionExclusionDetectorActivity { + oneof detector_name { + // Full resource name for the curated rule this activity corresponds to. + // Format: + // projects/{project}/locations/{location}/instances/{instance}/curatedRules/{rule} + string curated_rule = 1 [(google.api.resource_reference) = { + type: "chronicle.googleapis.com/CuratedRule" + }]; + + // Full resource name for the curated rule set this activity corresponds + // to. This field will only be set if the customer has access to the + // curated rule set the exclusion is applied to. + // Format: + // projects/{project}/locations/{location}/instances/{instance}/curatedRuleSetCategories/{curated_rule_set_category}/curatedRuleSets/{curated_rule_set} + string curated_rule_set = 2 [(google.api.resource_reference) = { + type: "chronicle.googleapis.com/CuratedRuleSet" + }]; + + // Full resource name for the rule this activity corresponds to. + // Format: + // projects/{project}/locations/{location}/instances/{instance}/rules/{rule} + string rule = 5 [(google.api.resource_reference) = { + type: "chronicle.googleapis.com/Rule" + }]; + + // Full resource name for the deleted curated rule set this activity + // corresponds to. This field will only be set if the customer does + // not have access to the curated rule set the exclusion is applied to. + // Format: + // projects/{project}/locations/{location}/instances/{instance}/curatedRuleSetCategories/{curated_rule_set_category}/curatedRuleSets/{curated_rule_set} + string deleted_curated_rule_set = 6 [(google.api.resource_reference) = { + type: "chronicle.googleapis.com/CuratedRuleSet" + }]; + } + + // The number of detections for the detector that were excluded by the + // detection exclusion. + int64 excluded_detection_count = 3; + + // The total number of detections found by the detector. This includes both + // excluded detections and non-excluded detections. + int64 total_detection_count = 4; + } + + // The activity for the detection exclusion broken down by detector. + repeated DetectionExclusionDetectorActivity + detection_exclusion_detector_activities = 1; +} + +// Request message for GetFindingsRefinement method. +message GetFindingsRefinementRequest { + // Required. The name of the findings refinement to retrieve. + // Format: + // projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "chronicle.googleapis.com/FindingsRefinement" + } + ]; +} + +// Request message for ListFindingsRefinements method. +message ListFindingsRefinementsRequest { + // Required. The parent, which owns this collection of findings refinements. + // Format: + // projects/{project}/locations/{location}/instances/{instance} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "chronicle.googleapis.com/FindingsRefinement" + } + ]; + + // The maximum number of findings refinements to return. The service may + // return fewer than this value. If unspecified, at most 100 rules will be + // returned. The maximum value is 1000; values above 1000 will be coerced to + // 1000. + int32 page_size = 2; + + // A page token, received from a previous `ListFindingsRefinements` call. + // Provide this to retrieve the subsequent page. + string page_token = 3; +} + +// Response message for ListFindingsRefinements method. +message ListFindingsRefinementsResponse { + // List of findings refinements. + repeated FindingsRefinement findings_refinements = 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; +} + +// Request message for CreateFindingsRefinement method. +message CreateFindingsRefinementRequest { + // Required. The parent resource where this findings refinement will be + // created. Format: + // projects/{project}/locations/{location}/instances/{instance} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "chronicle.googleapis.com/FindingsRefinement" + } + ]; + + // Required. The findings refinement to create. + FindingsRefinement findings_refinement = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for UpdateFindingsRefinement method. +message UpdateFindingsRefinementRequest { + // Required. The findings refinement to update. + // + // The findings refinement's `name` field is used to identify the findings + // refinement to update. + // Format: + // projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement} + FindingsRefinement findings_refinement = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. The list of fields to update. If `*` is provided, all fields will + // be updated. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for GetFindingsRefinementDeployment method. +message GetFindingsRefinementDeploymentRequest { + // Required. The name of the findings refinement to retrieve. + // Format: + // projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}/deployment + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "chronicle.googleapis.com/FindingsRefinementDeployment" + } + ]; +} + +// Request message for UpdateFindingsRefinementDeployment method. +message UpdateFindingsRefinementDeploymentRequest { + // Required. The findings refinement deployment to update. + // + // The findings refinement deployment's `name` field is used to identify the + // findings refinement deployment to update. + // Format: + // projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}/deployment + FindingsRefinementDeployment findings_refinement_deployment = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of fields to update. If `*` is provided, all fields will + // be updated. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for ListAllFindingsRefinementDeployments method. +message ListAllFindingsRefinementDeploymentsRequest { + // Required. The name of the parent resource, which is the SecOps instance to + // list all findings refinement deployments over. Format: + // projects/{project}/locations/{location}/instances/{instance} + string instance = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "chronicle.googleapis.com/Instance" + } + ]; + + // The maximum number of findings refinement deployments to return. The + // service may return fewer than this value. If unspecified, at most 100 rule + // deployments will be returned. The maximum value is 1000; values above 1000 + // will be coerced to 1000. + int32 page_size = 2; + + // A page token, received from a previous + // `ListAllFindingsRefinementDeployments` call. Provide this to retrieve the + // subsequent page. + // + // When paginating, all other parameters provided to + // `ListAllFindingsRefinementDeployments` must match the call that provided + // the page token. + string page_token = 3; + + // A filter that can be used to retrieve specific findings refinement + // deployments. + // Only the following filters are allowed: + // detection_exclusion_application.curated_rule_sets:""", + // detection_exclusion_application.curated_rules:"" + string filter = 4; +} + +// Response message for ListAllFindingsRefinementDeployments method. +message ListAllFindingsRefinementDeploymentsResponse { + // List of all findings refinement deployments. + repeated FindingsRefinementDeployment all_findings_refinement_deployments = 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; +} + +// Outcome filter for the findings refinement. This is used to filter the +// findings refinement based on the outcome variable values. +message OutcomeFilter { + // The operator to compare the outcome variable value with the outcome value + // in the outcome filter. + enum Operator { + // The operator is unspecified. + OPERATOR_UNSPECIFIED = 0; + + // The outcome variable value must be equal to the outcome value in the + // outcome filter. + EQUAL = 1; + + // The outcome variable value must contain the outcome value in the + // outcome filter. + CONTAINS = 2; + + // The outcome variable value must match the outcome value regex in the + // outcome filter. + MATCHES_REGEX = 3; + + // The outcome variable value must be a valid IP address in the outcome + // filter value CIDR range. + MATCHES_CIDR = 4; + } + + // Required. The outcome variable name. + string outcome_variable = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The value of the outcome variable to match. + string outcome_value = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The operator to be applied to the outcome variable. + Operator outcome_filter_operator = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for ComputeFindingsRefinementActivity method. +message ComputeFindingsRefinementActivityRequest { + // Required. Full resource name for the findings refinement to fetch the + // activity for. Format: + // projects/{project}/locations/{region}/instances/{instance}/findingsRefinements/{findings_refinement} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "chronicle.googleapis.com/FindingsRefinement" + } + ]; + + // The time interval the activity is measured over. + google.type.Interval interval = 2; +} + +// Response message for ComputeFindingsRefinementActivity method. +message ComputeFindingsRefinementActivityResponse { + // The activity for the findings refinement. + FindingsRefinementActivity activity = 1; +} + +// Request message for ComputeAllFindingsRefinementActivities method. +message ComputeAllFindingsRefinementActivitiesRequest { + // Required. The ID of the Instance to retrieve counts for. + // Format: + // projects/{project}/locations/{location}/instances/{instance} + string instance = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "chronicle.googleapis.com/Instance" + } + ]; + + // The time interval the activity is measured over. + google.type.Interval interval = 2; +} + +// Response message for ComputeAllFindingsRefinementActivities method. +message ComputeAllFindingsRefinementActivitiesResponse { + // The activities of all findings refinements. + repeated FindingsRefinementActivity activities = 1; +} diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/computeallfindingsrefinementactivities/AsyncComputeAllFindingsRefinementActivities.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/computeallfindingsrefinementactivities/AsyncComputeAllFindingsRefinementActivities.java new file mode 100644 index 000000000000..0e98b06704b1 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/computeallfindingsrefinementactivities/AsyncComputeAllFindingsRefinementActivities.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_FindingsRefinementService_ComputeAllFindingsRefinementActivities_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesRequest; +import com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesResponse; +import com.google.cloud.chronicle.v1.FindingsRefinementServiceClient; +import com.google.cloud.chronicle.v1.InstanceName; +import com.google.type.Interval; + +public class AsyncComputeAllFindingsRefinementActivities { + + public static void main(String[] args) throws Exception { + asyncComputeAllFindingsRefinementActivities(); + } + + public static void asyncComputeAllFindingsRefinementActivities() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FindingsRefinementServiceClient findingsRefinementServiceClient = + FindingsRefinementServiceClient.create()) { + ComputeAllFindingsRefinementActivitiesRequest request = + ComputeAllFindingsRefinementActivitiesRequest.newBuilder() + .setInstance(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setInterval(Interval.newBuilder().build()) + .build(); + ApiFuture future = + findingsRefinementServiceClient + .computeAllFindingsRefinementActivitiesCallable() + .futureCall(request); + // Do something. + ComputeAllFindingsRefinementActivitiesResponse response = future.get(); + } + } +} +// [END chronicle_v1_generated_FindingsRefinementService_ComputeAllFindingsRefinementActivities_async] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/computeallfindingsrefinementactivities/SyncComputeAllFindingsRefinementActivities.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/computeallfindingsrefinementactivities/SyncComputeAllFindingsRefinementActivities.java new file mode 100644 index 000000000000..e9bae9a39256 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/computeallfindingsrefinementactivities/SyncComputeAllFindingsRefinementActivities.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_FindingsRefinementService_ComputeAllFindingsRefinementActivities_sync] +import com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesRequest; +import com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesResponse; +import com.google.cloud.chronicle.v1.FindingsRefinementServiceClient; +import com.google.cloud.chronicle.v1.InstanceName; +import com.google.type.Interval; + +public class SyncComputeAllFindingsRefinementActivities { + + public static void main(String[] args) throws Exception { + syncComputeAllFindingsRefinementActivities(); + } + + public static void syncComputeAllFindingsRefinementActivities() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FindingsRefinementServiceClient findingsRefinementServiceClient = + FindingsRefinementServiceClient.create()) { + ComputeAllFindingsRefinementActivitiesRequest request = + ComputeAllFindingsRefinementActivitiesRequest.newBuilder() + .setInstance(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setInterval(Interval.newBuilder().build()) + .build(); + ComputeAllFindingsRefinementActivitiesResponse response = + findingsRefinementServiceClient.computeAllFindingsRefinementActivities(request); + } + } +} +// [END chronicle_v1_generated_FindingsRefinementService_ComputeAllFindingsRefinementActivities_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/computeallfindingsrefinementactivities/SyncComputeAllFindingsRefinementActivitiesInstancename.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/computeallfindingsrefinementactivities/SyncComputeAllFindingsRefinementActivitiesInstancename.java new file mode 100644 index 000000000000..7ae8946c9e34 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/computeallfindingsrefinementactivities/SyncComputeAllFindingsRefinementActivitiesInstancename.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_FindingsRefinementService_ComputeAllFindingsRefinementActivities_Instancename_sync] +import com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesResponse; +import com.google.cloud.chronicle.v1.FindingsRefinementServiceClient; +import com.google.cloud.chronicle.v1.InstanceName; + +public class SyncComputeAllFindingsRefinementActivitiesInstancename { + + public static void main(String[] args) throws Exception { + syncComputeAllFindingsRefinementActivitiesInstancename(); + } + + public static void syncComputeAllFindingsRefinementActivitiesInstancename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FindingsRefinementServiceClient findingsRefinementServiceClient = + FindingsRefinementServiceClient.create()) { + InstanceName instance = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + ComputeAllFindingsRefinementActivitiesResponse response = + findingsRefinementServiceClient.computeAllFindingsRefinementActivities(instance); + } + } +} +// [END chronicle_v1_generated_FindingsRefinementService_ComputeAllFindingsRefinementActivities_Instancename_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/computeallfindingsrefinementactivities/SyncComputeAllFindingsRefinementActivitiesString.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/computeallfindingsrefinementactivities/SyncComputeAllFindingsRefinementActivitiesString.java new file mode 100644 index 000000000000..20320652afec --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/computeallfindingsrefinementactivities/SyncComputeAllFindingsRefinementActivitiesString.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_FindingsRefinementService_ComputeAllFindingsRefinementActivities_String_sync] +import com.google.cloud.chronicle.v1.ComputeAllFindingsRefinementActivitiesResponse; +import com.google.cloud.chronicle.v1.FindingsRefinementServiceClient; +import com.google.cloud.chronicle.v1.InstanceName; + +public class SyncComputeAllFindingsRefinementActivitiesString { + + public static void main(String[] args) throws Exception { + syncComputeAllFindingsRefinementActivitiesString(); + } + + public static void syncComputeAllFindingsRefinementActivitiesString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FindingsRefinementServiceClient findingsRefinementServiceClient = + FindingsRefinementServiceClient.create()) { + String instance = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); + ComputeAllFindingsRefinementActivitiesResponse response = + findingsRefinementServiceClient.computeAllFindingsRefinementActivities(instance); + } + } +} +// [END chronicle_v1_generated_FindingsRefinementService_ComputeAllFindingsRefinementActivities_String_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/computefindingsrefinementactivity/AsyncComputeFindingsRefinementActivity.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/computefindingsrefinementactivity/AsyncComputeFindingsRefinementActivity.java new file mode 100644 index 000000000000..e1d3b195ac81 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/computefindingsrefinementactivity/AsyncComputeFindingsRefinementActivity.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_FindingsRefinementService_ComputeFindingsRefinementActivity_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityRequest; +import com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityResponse; +import com.google.cloud.chronicle.v1.FindingsRefinementName; +import com.google.cloud.chronicle.v1.FindingsRefinementServiceClient; +import com.google.type.Interval; + +public class AsyncComputeFindingsRefinementActivity { + + public static void main(String[] args) throws Exception { + asyncComputeFindingsRefinementActivity(); + } + + public static void asyncComputeFindingsRefinementActivity() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FindingsRefinementServiceClient findingsRefinementServiceClient = + FindingsRefinementServiceClient.create()) { + ComputeFindingsRefinementActivityRequest request = + ComputeFindingsRefinementActivityRequest.newBuilder() + .setName( + FindingsRefinementName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FINDINGS_REFINEMENT]") + .toString()) + .setInterval(Interval.newBuilder().build()) + .build(); + ApiFuture future = + findingsRefinementServiceClient + .computeFindingsRefinementActivityCallable() + .futureCall(request); + // Do something. + ComputeFindingsRefinementActivityResponse response = future.get(); + } + } +} +// [END chronicle_v1_generated_FindingsRefinementService_ComputeFindingsRefinementActivity_async] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/computefindingsrefinementactivity/SyncComputeFindingsRefinementActivity.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/computefindingsrefinementactivity/SyncComputeFindingsRefinementActivity.java new file mode 100644 index 000000000000..297042994f33 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/computefindingsrefinementactivity/SyncComputeFindingsRefinementActivity.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_FindingsRefinementService_ComputeFindingsRefinementActivity_sync] +import com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityRequest; +import com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityResponse; +import com.google.cloud.chronicle.v1.FindingsRefinementName; +import com.google.cloud.chronicle.v1.FindingsRefinementServiceClient; +import com.google.type.Interval; + +public class SyncComputeFindingsRefinementActivity { + + public static void main(String[] args) throws Exception { + syncComputeFindingsRefinementActivity(); + } + + public static void syncComputeFindingsRefinementActivity() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FindingsRefinementServiceClient findingsRefinementServiceClient = + FindingsRefinementServiceClient.create()) { + ComputeFindingsRefinementActivityRequest request = + ComputeFindingsRefinementActivityRequest.newBuilder() + .setName( + FindingsRefinementName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FINDINGS_REFINEMENT]") + .toString()) + .setInterval(Interval.newBuilder().build()) + .build(); + ComputeFindingsRefinementActivityResponse response = + findingsRefinementServiceClient.computeFindingsRefinementActivity(request); + } + } +} +// [END chronicle_v1_generated_FindingsRefinementService_ComputeFindingsRefinementActivity_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/computefindingsrefinementactivity/SyncComputeFindingsRefinementActivityFindingsrefinementname.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/computefindingsrefinementactivity/SyncComputeFindingsRefinementActivityFindingsrefinementname.java new file mode 100644 index 000000000000..ff458ec9c214 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/computefindingsrefinementactivity/SyncComputeFindingsRefinementActivityFindingsrefinementname.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_FindingsRefinementService_ComputeFindingsRefinementActivity_Findingsrefinementname_sync] +import com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityResponse; +import com.google.cloud.chronicle.v1.FindingsRefinementName; +import com.google.cloud.chronicle.v1.FindingsRefinementServiceClient; + +public class SyncComputeFindingsRefinementActivityFindingsrefinementname { + + public static void main(String[] args) throws Exception { + syncComputeFindingsRefinementActivityFindingsrefinementname(); + } + + public static void syncComputeFindingsRefinementActivityFindingsrefinementname() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FindingsRefinementServiceClient findingsRefinementServiceClient = + FindingsRefinementServiceClient.create()) { + FindingsRefinementName name = + FindingsRefinementName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FINDINGS_REFINEMENT]"); + ComputeFindingsRefinementActivityResponse response = + findingsRefinementServiceClient.computeFindingsRefinementActivity(name); + } + } +} +// [END chronicle_v1_generated_FindingsRefinementService_ComputeFindingsRefinementActivity_Findingsrefinementname_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/computefindingsrefinementactivity/SyncComputeFindingsRefinementActivityString.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/computefindingsrefinementactivity/SyncComputeFindingsRefinementActivityString.java new file mode 100644 index 000000000000..74dd3e6df73a --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/computefindingsrefinementactivity/SyncComputeFindingsRefinementActivityString.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_FindingsRefinementService_ComputeFindingsRefinementActivity_String_sync] +import com.google.cloud.chronicle.v1.ComputeFindingsRefinementActivityResponse; +import com.google.cloud.chronicle.v1.FindingsRefinementName; +import com.google.cloud.chronicle.v1.FindingsRefinementServiceClient; + +public class SyncComputeFindingsRefinementActivityString { + + public static void main(String[] args) throws Exception { + syncComputeFindingsRefinementActivityString(); + } + + public static void syncComputeFindingsRefinementActivityString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FindingsRefinementServiceClient findingsRefinementServiceClient = + FindingsRefinementServiceClient.create()) { + String name = + FindingsRefinementName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FINDINGS_REFINEMENT]") + .toString(); + ComputeFindingsRefinementActivityResponse response = + findingsRefinementServiceClient.computeFindingsRefinementActivity(name); + } + } +} +// [END chronicle_v1_generated_FindingsRefinementService_ComputeFindingsRefinementActivity_String_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/create/SyncCreateSetCredentialsProvider.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..46dfdf9c4e67 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/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.chronicle.v1.samples; + +// [START chronicle_v1_generated_FindingsRefinementService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.chronicle.v1.FindingsRefinementServiceClient; +import com.google.cloud.chronicle.v1.FindingsRefinementServiceSettings; +import com.google.cloud.chronicle.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 + FindingsRefinementServiceSettings findingsRefinementServiceSettings = + FindingsRefinementServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + FindingsRefinementServiceClient findingsRefinementServiceClient = + FindingsRefinementServiceClient.create(findingsRefinementServiceSettings); + } +} +// [END chronicle_v1_generated_FindingsRefinementService_Create_SetCredentialsProvider_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/create/SyncCreateSetEndpoint.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..0144468e0e58 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/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.chronicle.v1.samples; + +// [START chronicle_v1_generated_FindingsRefinementService_Create_SetEndpoint_sync] +import com.google.cloud.chronicle.v1.FindingsRefinementServiceClient; +import com.google.cloud.chronicle.v1.FindingsRefinementServiceSettings; +import com.google.cloud.chronicle.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 + FindingsRefinementServiceSettings findingsRefinementServiceSettings = + FindingsRefinementServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + FindingsRefinementServiceClient findingsRefinementServiceClient = + FindingsRefinementServiceClient.create(findingsRefinementServiceSettings); + } +} +// [END chronicle_v1_generated_FindingsRefinementService_Create_SetEndpoint_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/create/SyncCreateUseHttpJsonTransport.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..414919e96e74 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/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.chronicle.v1.samples; + +// [START chronicle_v1_generated_FindingsRefinementService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.chronicle.v1.FindingsRefinementServiceClient; +import com.google.cloud.chronicle.v1.FindingsRefinementServiceSettings; + +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 + FindingsRefinementServiceSettings findingsRefinementServiceSettings = + FindingsRefinementServiceSettings.newHttpJsonBuilder().build(); + FindingsRefinementServiceClient findingsRefinementServiceClient = + FindingsRefinementServiceClient.create(findingsRefinementServiceSettings); + } +} +// [END chronicle_v1_generated_FindingsRefinementService_Create_UseHttpJsonTransport_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/createfindingsrefinement/AsyncCreateFindingsRefinement.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/createfindingsrefinement/AsyncCreateFindingsRefinement.java new file mode 100644 index 000000000000..7000a78a1a42 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/createfindingsrefinement/AsyncCreateFindingsRefinement.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_FindingsRefinementService_CreateFindingsRefinement_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.chronicle.v1.CreateFindingsRefinementRequest; +import com.google.cloud.chronicle.v1.FindingsRefinement; +import com.google.cloud.chronicle.v1.FindingsRefinementServiceClient; +import com.google.cloud.chronicle.v1.InstanceName; + +public class AsyncCreateFindingsRefinement { + + public static void main(String[] args) throws Exception { + asyncCreateFindingsRefinement(); + } + + public static void asyncCreateFindingsRefinement() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FindingsRefinementServiceClient findingsRefinementServiceClient = + FindingsRefinementServiceClient.create()) { + CreateFindingsRefinementRequest request = + CreateFindingsRefinementRequest.newBuilder() + .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setFindingsRefinement(FindingsRefinement.newBuilder().build()) + .build(); + ApiFuture future = + findingsRefinementServiceClient.createFindingsRefinementCallable().futureCall(request); + // Do something. + FindingsRefinement response = future.get(); + } + } +} +// [END chronicle_v1_generated_FindingsRefinementService_CreateFindingsRefinement_async] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/createfindingsrefinement/SyncCreateFindingsRefinement.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/createfindingsrefinement/SyncCreateFindingsRefinement.java new file mode 100644 index 000000000000..a08f351a67bf --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/createfindingsrefinement/SyncCreateFindingsRefinement.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_FindingsRefinementService_CreateFindingsRefinement_sync] +import com.google.cloud.chronicle.v1.CreateFindingsRefinementRequest; +import com.google.cloud.chronicle.v1.FindingsRefinement; +import com.google.cloud.chronicle.v1.FindingsRefinementServiceClient; +import com.google.cloud.chronicle.v1.InstanceName; + +public class SyncCreateFindingsRefinement { + + public static void main(String[] args) throws Exception { + syncCreateFindingsRefinement(); + } + + public static void syncCreateFindingsRefinement() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FindingsRefinementServiceClient findingsRefinementServiceClient = + FindingsRefinementServiceClient.create()) { + CreateFindingsRefinementRequest request = + CreateFindingsRefinementRequest.newBuilder() + .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setFindingsRefinement(FindingsRefinement.newBuilder().build()) + .build(); + FindingsRefinement response = + findingsRefinementServiceClient.createFindingsRefinement(request); + } + } +} +// [END chronicle_v1_generated_FindingsRefinementService_CreateFindingsRefinement_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/createfindingsrefinement/SyncCreateFindingsRefinementInstancenameFindingsrefinement.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/createfindingsrefinement/SyncCreateFindingsRefinementInstancenameFindingsrefinement.java new file mode 100644 index 000000000000..0d17c263fb9b --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/createfindingsrefinement/SyncCreateFindingsRefinementInstancenameFindingsrefinement.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_FindingsRefinementService_CreateFindingsRefinement_InstancenameFindingsrefinement_sync] +import com.google.cloud.chronicle.v1.FindingsRefinement; +import com.google.cloud.chronicle.v1.FindingsRefinementServiceClient; +import com.google.cloud.chronicle.v1.InstanceName; + +public class SyncCreateFindingsRefinementInstancenameFindingsrefinement { + + public static void main(String[] args) throws Exception { + syncCreateFindingsRefinementInstancenameFindingsrefinement(); + } + + public static void syncCreateFindingsRefinementInstancenameFindingsrefinement() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FindingsRefinementServiceClient findingsRefinementServiceClient = + FindingsRefinementServiceClient.create()) { + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + FindingsRefinement findingsRefinement = FindingsRefinement.newBuilder().build(); + FindingsRefinement response = + findingsRefinementServiceClient.createFindingsRefinement(parent, findingsRefinement); + } + } +} +// [END chronicle_v1_generated_FindingsRefinementService_CreateFindingsRefinement_InstancenameFindingsrefinement_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/createfindingsrefinement/SyncCreateFindingsRefinementStringFindingsrefinement.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/createfindingsrefinement/SyncCreateFindingsRefinementStringFindingsrefinement.java new file mode 100644 index 000000000000..16ff2c915d24 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/createfindingsrefinement/SyncCreateFindingsRefinementStringFindingsrefinement.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_FindingsRefinementService_CreateFindingsRefinement_StringFindingsrefinement_sync] +import com.google.cloud.chronicle.v1.FindingsRefinement; +import com.google.cloud.chronicle.v1.FindingsRefinementServiceClient; +import com.google.cloud.chronicle.v1.InstanceName; + +public class SyncCreateFindingsRefinementStringFindingsrefinement { + + public static void main(String[] args) throws Exception { + syncCreateFindingsRefinementStringFindingsrefinement(); + } + + public static void syncCreateFindingsRefinementStringFindingsrefinement() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FindingsRefinementServiceClient findingsRefinementServiceClient = + FindingsRefinementServiceClient.create()) { + String parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); + FindingsRefinement findingsRefinement = FindingsRefinement.newBuilder().build(); + FindingsRefinement response = + findingsRefinementServiceClient.createFindingsRefinement(parent, findingsRefinement); + } + } +} +// [END chronicle_v1_generated_FindingsRefinementService_CreateFindingsRefinement_StringFindingsrefinement_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/getfindingsrefinement/AsyncGetFindingsRefinement.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/getfindingsrefinement/AsyncGetFindingsRefinement.java new file mode 100644 index 000000000000..3f783c5821fd --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/getfindingsrefinement/AsyncGetFindingsRefinement.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_FindingsRefinementService_GetFindingsRefinement_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.chronicle.v1.FindingsRefinement; +import com.google.cloud.chronicle.v1.FindingsRefinementName; +import com.google.cloud.chronicle.v1.FindingsRefinementServiceClient; +import com.google.cloud.chronicle.v1.GetFindingsRefinementRequest; + +public class AsyncGetFindingsRefinement { + + public static void main(String[] args) throws Exception { + asyncGetFindingsRefinement(); + } + + public static void asyncGetFindingsRefinement() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FindingsRefinementServiceClient findingsRefinementServiceClient = + FindingsRefinementServiceClient.create()) { + GetFindingsRefinementRequest request = + GetFindingsRefinementRequest.newBuilder() + .setName( + FindingsRefinementName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FINDINGS_REFINEMENT]") + .toString()) + .build(); + ApiFuture future = + findingsRefinementServiceClient.getFindingsRefinementCallable().futureCall(request); + // Do something. + FindingsRefinement response = future.get(); + } + } +} +// [END chronicle_v1_generated_FindingsRefinementService_GetFindingsRefinement_async] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/getfindingsrefinement/SyncGetFindingsRefinement.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/getfindingsrefinement/SyncGetFindingsRefinement.java new file mode 100644 index 000000000000..dc5500b5afbb --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/getfindingsrefinement/SyncGetFindingsRefinement.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_FindingsRefinementService_GetFindingsRefinement_sync] +import com.google.cloud.chronicle.v1.FindingsRefinement; +import com.google.cloud.chronicle.v1.FindingsRefinementName; +import com.google.cloud.chronicle.v1.FindingsRefinementServiceClient; +import com.google.cloud.chronicle.v1.GetFindingsRefinementRequest; + +public class SyncGetFindingsRefinement { + + public static void main(String[] args) throws Exception { + syncGetFindingsRefinement(); + } + + public static void syncGetFindingsRefinement() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FindingsRefinementServiceClient findingsRefinementServiceClient = + FindingsRefinementServiceClient.create()) { + GetFindingsRefinementRequest request = + GetFindingsRefinementRequest.newBuilder() + .setName( + FindingsRefinementName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FINDINGS_REFINEMENT]") + .toString()) + .build(); + FindingsRefinement response = findingsRefinementServiceClient.getFindingsRefinement(request); + } + } +} +// [END chronicle_v1_generated_FindingsRefinementService_GetFindingsRefinement_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/getfindingsrefinement/SyncGetFindingsRefinementFindingsrefinementname.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/getfindingsrefinement/SyncGetFindingsRefinementFindingsrefinementname.java new file mode 100644 index 000000000000..48c15c6188f0 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/getfindingsrefinement/SyncGetFindingsRefinementFindingsrefinementname.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_FindingsRefinementService_GetFindingsRefinement_Findingsrefinementname_sync] +import com.google.cloud.chronicle.v1.FindingsRefinement; +import com.google.cloud.chronicle.v1.FindingsRefinementName; +import com.google.cloud.chronicle.v1.FindingsRefinementServiceClient; + +public class SyncGetFindingsRefinementFindingsrefinementname { + + public static void main(String[] args) throws Exception { + syncGetFindingsRefinementFindingsrefinementname(); + } + + public static void syncGetFindingsRefinementFindingsrefinementname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FindingsRefinementServiceClient findingsRefinementServiceClient = + FindingsRefinementServiceClient.create()) { + FindingsRefinementName name = + FindingsRefinementName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FINDINGS_REFINEMENT]"); + FindingsRefinement response = findingsRefinementServiceClient.getFindingsRefinement(name); + } + } +} +// [END chronicle_v1_generated_FindingsRefinementService_GetFindingsRefinement_Findingsrefinementname_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/getfindingsrefinement/SyncGetFindingsRefinementString.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/getfindingsrefinement/SyncGetFindingsRefinementString.java new file mode 100644 index 000000000000..31f492ff44e7 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/getfindingsrefinement/SyncGetFindingsRefinementString.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_FindingsRefinementService_GetFindingsRefinement_String_sync] +import com.google.cloud.chronicle.v1.FindingsRefinement; +import com.google.cloud.chronicle.v1.FindingsRefinementName; +import com.google.cloud.chronicle.v1.FindingsRefinementServiceClient; + +public class SyncGetFindingsRefinementString { + + public static void main(String[] args) throws Exception { + syncGetFindingsRefinementString(); + } + + public static void syncGetFindingsRefinementString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FindingsRefinementServiceClient findingsRefinementServiceClient = + FindingsRefinementServiceClient.create()) { + String name = + FindingsRefinementName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FINDINGS_REFINEMENT]") + .toString(); + FindingsRefinement response = findingsRefinementServiceClient.getFindingsRefinement(name); + } + } +} +// [END chronicle_v1_generated_FindingsRefinementService_GetFindingsRefinement_String_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/getfindingsrefinementdeployment/AsyncGetFindingsRefinementDeployment.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/getfindingsrefinementdeployment/AsyncGetFindingsRefinementDeployment.java new file mode 100644 index 000000000000..5f4223927b44 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/getfindingsrefinementdeployment/AsyncGetFindingsRefinementDeployment.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_FindingsRefinementService_GetFindingsRefinementDeployment_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.chronicle.v1.FindingsRefinementDeployment; +import com.google.cloud.chronicle.v1.FindingsRefinementDeploymentName; +import com.google.cloud.chronicle.v1.FindingsRefinementServiceClient; +import com.google.cloud.chronicle.v1.GetFindingsRefinementDeploymentRequest; + +public class AsyncGetFindingsRefinementDeployment { + + public static void main(String[] args) throws Exception { + asyncGetFindingsRefinementDeployment(); + } + + public static void asyncGetFindingsRefinementDeployment() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FindingsRefinementServiceClient findingsRefinementServiceClient = + FindingsRefinementServiceClient.create()) { + GetFindingsRefinementDeploymentRequest request = + GetFindingsRefinementDeploymentRequest.newBuilder() + .setName( + FindingsRefinementDeploymentName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FINDINGS_REFINEMENT]") + .toString()) + .build(); + ApiFuture future = + findingsRefinementServiceClient + .getFindingsRefinementDeploymentCallable() + .futureCall(request); + // Do something. + FindingsRefinementDeployment response = future.get(); + } + } +} +// [END chronicle_v1_generated_FindingsRefinementService_GetFindingsRefinementDeployment_async] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/getfindingsrefinementdeployment/SyncGetFindingsRefinementDeployment.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/getfindingsrefinementdeployment/SyncGetFindingsRefinementDeployment.java new file mode 100644 index 000000000000..109a7b086ab0 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/getfindingsrefinementdeployment/SyncGetFindingsRefinementDeployment.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_FindingsRefinementService_GetFindingsRefinementDeployment_sync] +import com.google.cloud.chronicle.v1.FindingsRefinementDeployment; +import com.google.cloud.chronicle.v1.FindingsRefinementDeploymentName; +import com.google.cloud.chronicle.v1.FindingsRefinementServiceClient; +import com.google.cloud.chronicle.v1.GetFindingsRefinementDeploymentRequest; + +public class SyncGetFindingsRefinementDeployment { + + public static void main(String[] args) throws Exception { + syncGetFindingsRefinementDeployment(); + } + + public static void syncGetFindingsRefinementDeployment() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FindingsRefinementServiceClient findingsRefinementServiceClient = + FindingsRefinementServiceClient.create()) { + GetFindingsRefinementDeploymentRequest request = + GetFindingsRefinementDeploymentRequest.newBuilder() + .setName( + FindingsRefinementDeploymentName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FINDINGS_REFINEMENT]") + .toString()) + .build(); + FindingsRefinementDeployment response = + findingsRefinementServiceClient.getFindingsRefinementDeployment(request); + } + } +} +// [END chronicle_v1_generated_FindingsRefinementService_GetFindingsRefinementDeployment_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/getfindingsrefinementdeployment/SyncGetFindingsRefinementDeploymentFindingsrefinementdeploymentname.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/getfindingsrefinementdeployment/SyncGetFindingsRefinementDeploymentFindingsrefinementdeploymentname.java new file mode 100644 index 000000000000..6ec3e6a70127 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/getfindingsrefinementdeployment/SyncGetFindingsRefinementDeploymentFindingsrefinementdeploymentname.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_FindingsRefinementService_GetFindingsRefinementDeployment_Findingsrefinementdeploymentname_sync] +import com.google.cloud.chronicle.v1.FindingsRefinementDeployment; +import com.google.cloud.chronicle.v1.FindingsRefinementDeploymentName; +import com.google.cloud.chronicle.v1.FindingsRefinementServiceClient; + +public class SyncGetFindingsRefinementDeploymentFindingsrefinementdeploymentname { + + public static void main(String[] args) throws Exception { + syncGetFindingsRefinementDeploymentFindingsrefinementdeploymentname(); + } + + public static void syncGetFindingsRefinementDeploymentFindingsrefinementdeploymentname() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FindingsRefinementServiceClient findingsRefinementServiceClient = + FindingsRefinementServiceClient.create()) { + FindingsRefinementDeploymentName name = + FindingsRefinementDeploymentName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FINDINGS_REFINEMENT]"); + FindingsRefinementDeployment response = + findingsRefinementServiceClient.getFindingsRefinementDeployment(name); + } + } +} +// [END chronicle_v1_generated_FindingsRefinementService_GetFindingsRefinementDeployment_Findingsrefinementdeploymentname_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/getfindingsrefinementdeployment/SyncGetFindingsRefinementDeploymentString.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/getfindingsrefinementdeployment/SyncGetFindingsRefinementDeploymentString.java new file mode 100644 index 000000000000..f51c648a89fb --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/getfindingsrefinementdeployment/SyncGetFindingsRefinementDeploymentString.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_FindingsRefinementService_GetFindingsRefinementDeployment_String_sync] +import com.google.cloud.chronicle.v1.FindingsRefinementDeployment; +import com.google.cloud.chronicle.v1.FindingsRefinementDeploymentName; +import com.google.cloud.chronicle.v1.FindingsRefinementServiceClient; + +public class SyncGetFindingsRefinementDeploymentString { + + public static void main(String[] args) throws Exception { + syncGetFindingsRefinementDeploymentString(); + } + + public static void syncGetFindingsRefinementDeploymentString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FindingsRefinementServiceClient findingsRefinementServiceClient = + FindingsRefinementServiceClient.create()) { + String name = + FindingsRefinementDeploymentName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FINDINGS_REFINEMENT]") + .toString(); + FindingsRefinementDeployment response = + findingsRefinementServiceClient.getFindingsRefinementDeployment(name); + } + } +} +// [END chronicle_v1_generated_FindingsRefinementService_GetFindingsRefinementDeployment_String_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/listallfindingsrefinementdeployments/AsyncListAllFindingsRefinementDeployments.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/listallfindingsrefinementdeployments/AsyncListAllFindingsRefinementDeployments.java new file mode 100644 index 000000000000..db78a18bbccb --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/listallfindingsrefinementdeployments/AsyncListAllFindingsRefinementDeployments.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_FindingsRefinementService_ListAllFindingsRefinementDeployments_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.chronicle.v1.FindingsRefinementDeployment; +import com.google.cloud.chronicle.v1.FindingsRefinementServiceClient; +import com.google.cloud.chronicle.v1.InstanceName; +import com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsRequest; + +public class AsyncListAllFindingsRefinementDeployments { + + public static void main(String[] args) throws Exception { + asyncListAllFindingsRefinementDeployments(); + } + + public static void asyncListAllFindingsRefinementDeployments() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FindingsRefinementServiceClient findingsRefinementServiceClient = + FindingsRefinementServiceClient.create()) { + ListAllFindingsRefinementDeploymentsRequest request = + ListAllFindingsRefinementDeploymentsRequest.newBuilder() + .setInstance(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + ApiFuture future = + findingsRefinementServiceClient + .listAllFindingsRefinementDeploymentsPagedCallable() + .futureCall(request); + // Do something. + for (FindingsRefinementDeployment element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END chronicle_v1_generated_FindingsRefinementService_ListAllFindingsRefinementDeployments_async] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/listallfindingsrefinementdeployments/AsyncListAllFindingsRefinementDeploymentsPaged.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/listallfindingsrefinementdeployments/AsyncListAllFindingsRefinementDeploymentsPaged.java new file mode 100644 index 000000000000..0b061a9c51fe --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/listallfindingsrefinementdeployments/AsyncListAllFindingsRefinementDeploymentsPaged.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_FindingsRefinementService_ListAllFindingsRefinementDeployments_Paged_async] +import com.google.cloud.chronicle.v1.FindingsRefinementDeployment; +import com.google.cloud.chronicle.v1.FindingsRefinementServiceClient; +import com.google.cloud.chronicle.v1.InstanceName; +import com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsRequest; +import com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsResponse; +import com.google.common.base.Strings; + +public class AsyncListAllFindingsRefinementDeploymentsPaged { + + public static void main(String[] args) throws Exception { + asyncListAllFindingsRefinementDeploymentsPaged(); + } + + public static void asyncListAllFindingsRefinementDeploymentsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FindingsRefinementServiceClient findingsRefinementServiceClient = + FindingsRefinementServiceClient.create()) { + ListAllFindingsRefinementDeploymentsRequest request = + ListAllFindingsRefinementDeploymentsRequest.newBuilder() + .setInstance(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + while (true) { + ListAllFindingsRefinementDeploymentsResponse response = + findingsRefinementServiceClient + .listAllFindingsRefinementDeploymentsCallable() + .call(request); + for (FindingsRefinementDeployment element : + response.getAllFindingsRefinementDeploymentsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END chronicle_v1_generated_FindingsRefinementService_ListAllFindingsRefinementDeployments_Paged_async] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/listallfindingsrefinementdeployments/SyncListAllFindingsRefinementDeployments.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/listallfindingsrefinementdeployments/SyncListAllFindingsRefinementDeployments.java new file mode 100644 index 000000000000..3d61e6afb3fe --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/listallfindingsrefinementdeployments/SyncListAllFindingsRefinementDeployments.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_FindingsRefinementService_ListAllFindingsRefinementDeployments_sync] +import com.google.cloud.chronicle.v1.FindingsRefinementDeployment; +import com.google.cloud.chronicle.v1.FindingsRefinementServiceClient; +import com.google.cloud.chronicle.v1.InstanceName; +import com.google.cloud.chronicle.v1.ListAllFindingsRefinementDeploymentsRequest; + +public class SyncListAllFindingsRefinementDeployments { + + public static void main(String[] args) throws Exception { + syncListAllFindingsRefinementDeployments(); + } + + public static void syncListAllFindingsRefinementDeployments() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FindingsRefinementServiceClient findingsRefinementServiceClient = + FindingsRefinementServiceClient.create()) { + ListAllFindingsRefinementDeploymentsRequest request = + ListAllFindingsRefinementDeploymentsRequest.newBuilder() + .setInstance(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + for (FindingsRefinementDeployment element : + findingsRefinementServiceClient + .listAllFindingsRefinementDeployments(request) + .iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END chronicle_v1_generated_FindingsRefinementService_ListAllFindingsRefinementDeployments_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/listallfindingsrefinementdeployments/SyncListAllFindingsRefinementDeploymentsInstancename.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/listallfindingsrefinementdeployments/SyncListAllFindingsRefinementDeploymentsInstancename.java new file mode 100644 index 000000000000..e7f5a2a47e63 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/listallfindingsrefinementdeployments/SyncListAllFindingsRefinementDeploymentsInstancename.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_FindingsRefinementService_ListAllFindingsRefinementDeployments_Instancename_sync] +import com.google.cloud.chronicle.v1.FindingsRefinementDeployment; +import com.google.cloud.chronicle.v1.FindingsRefinementServiceClient; +import com.google.cloud.chronicle.v1.InstanceName; + +public class SyncListAllFindingsRefinementDeploymentsInstancename { + + public static void main(String[] args) throws Exception { + syncListAllFindingsRefinementDeploymentsInstancename(); + } + + public static void syncListAllFindingsRefinementDeploymentsInstancename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FindingsRefinementServiceClient findingsRefinementServiceClient = + FindingsRefinementServiceClient.create()) { + InstanceName instance = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + for (FindingsRefinementDeployment element : + findingsRefinementServiceClient + .listAllFindingsRefinementDeployments(instance) + .iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END chronicle_v1_generated_FindingsRefinementService_ListAllFindingsRefinementDeployments_Instancename_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/listallfindingsrefinementdeployments/SyncListAllFindingsRefinementDeploymentsString.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/listallfindingsrefinementdeployments/SyncListAllFindingsRefinementDeploymentsString.java new file mode 100644 index 000000000000..7eb81b17c62b --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/listallfindingsrefinementdeployments/SyncListAllFindingsRefinementDeploymentsString.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_FindingsRefinementService_ListAllFindingsRefinementDeployments_String_sync] +import com.google.cloud.chronicle.v1.FindingsRefinementDeployment; +import com.google.cloud.chronicle.v1.FindingsRefinementServiceClient; +import com.google.cloud.chronicle.v1.InstanceName; + +public class SyncListAllFindingsRefinementDeploymentsString { + + public static void main(String[] args) throws Exception { + syncListAllFindingsRefinementDeploymentsString(); + } + + public static void syncListAllFindingsRefinementDeploymentsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FindingsRefinementServiceClient findingsRefinementServiceClient = + FindingsRefinementServiceClient.create()) { + String instance = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); + for (FindingsRefinementDeployment element : + findingsRefinementServiceClient + .listAllFindingsRefinementDeployments(instance) + .iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END chronicle_v1_generated_FindingsRefinementService_ListAllFindingsRefinementDeployments_String_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/listfindingsrefinements/AsyncListFindingsRefinements.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/listfindingsrefinements/AsyncListFindingsRefinements.java new file mode 100644 index 000000000000..51a22d061790 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/listfindingsrefinements/AsyncListFindingsRefinements.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_FindingsRefinementService_ListFindingsRefinements_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.chronicle.v1.FindingsRefinement; +import com.google.cloud.chronicle.v1.FindingsRefinementServiceClient; +import com.google.cloud.chronicle.v1.InstanceName; +import com.google.cloud.chronicle.v1.ListFindingsRefinementsRequest; + +public class AsyncListFindingsRefinements { + + public static void main(String[] args) throws Exception { + asyncListFindingsRefinements(); + } + + public static void asyncListFindingsRefinements() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FindingsRefinementServiceClient findingsRefinementServiceClient = + FindingsRefinementServiceClient.create()) { + ListFindingsRefinementsRequest request = + ListFindingsRefinementsRequest.newBuilder() + .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + findingsRefinementServiceClient + .listFindingsRefinementsPagedCallable() + .futureCall(request); + // Do something. + for (FindingsRefinement element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END chronicle_v1_generated_FindingsRefinementService_ListFindingsRefinements_async] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/listfindingsrefinements/AsyncListFindingsRefinementsPaged.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/listfindingsrefinements/AsyncListFindingsRefinementsPaged.java new file mode 100644 index 000000000000..b40d814686a4 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/listfindingsrefinements/AsyncListFindingsRefinementsPaged.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_FindingsRefinementService_ListFindingsRefinements_Paged_async] +import com.google.cloud.chronicle.v1.FindingsRefinement; +import com.google.cloud.chronicle.v1.FindingsRefinementServiceClient; +import com.google.cloud.chronicle.v1.InstanceName; +import com.google.cloud.chronicle.v1.ListFindingsRefinementsRequest; +import com.google.cloud.chronicle.v1.ListFindingsRefinementsResponse; +import com.google.common.base.Strings; + +public class AsyncListFindingsRefinementsPaged { + + public static void main(String[] args) throws Exception { + asyncListFindingsRefinementsPaged(); + } + + public static void asyncListFindingsRefinementsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FindingsRefinementServiceClient findingsRefinementServiceClient = + FindingsRefinementServiceClient.create()) { + ListFindingsRefinementsRequest request = + ListFindingsRefinementsRequest.newBuilder() + .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListFindingsRefinementsResponse response = + findingsRefinementServiceClient.listFindingsRefinementsCallable().call(request); + for (FindingsRefinement element : response.getFindingsRefinementsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END chronicle_v1_generated_FindingsRefinementService_ListFindingsRefinements_Paged_async] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/listfindingsrefinements/SyncListFindingsRefinements.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/listfindingsrefinements/SyncListFindingsRefinements.java new file mode 100644 index 000000000000..a6121f627e13 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/listfindingsrefinements/SyncListFindingsRefinements.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_FindingsRefinementService_ListFindingsRefinements_sync] +import com.google.cloud.chronicle.v1.FindingsRefinement; +import com.google.cloud.chronicle.v1.FindingsRefinementServiceClient; +import com.google.cloud.chronicle.v1.InstanceName; +import com.google.cloud.chronicle.v1.ListFindingsRefinementsRequest; + +public class SyncListFindingsRefinements { + + public static void main(String[] args) throws Exception { + syncListFindingsRefinements(); + } + + public static void syncListFindingsRefinements() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FindingsRefinementServiceClient findingsRefinementServiceClient = + FindingsRefinementServiceClient.create()) { + ListFindingsRefinementsRequest request = + ListFindingsRefinementsRequest.newBuilder() + .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (FindingsRefinement element : + findingsRefinementServiceClient.listFindingsRefinements(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END chronicle_v1_generated_FindingsRefinementService_ListFindingsRefinements_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/listfindingsrefinements/SyncListFindingsRefinementsInstancename.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/listfindingsrefinements/SyncListFindingsRefinementsInstancename.java new file mode 100644 index 000000000000..66ebee04eec5 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/listfindingsrefinements/SyncListFindingsRefinementsInstancename.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_FindingsRefinementService_ListFindingsRefinements_Instancename_sync] +import com.google.cloud.chronicle.v1.FindingsRefinement; +import com.google.cloud.chronicle.v1.FindingsRefinementServiceClient; +import com.google.cloud.chronicle.v1.InstanceName; + +public class SyncListFindingsRefinementsInstancename { + + public static void main(String[] args) throws Exception { + syncListFindingsRefinementsInstancename(); + } + + public static void syncListFindingsRefinementsInstancename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FindingsRefinementServiceClient findingsRefinementServiceClient = + FindingsRefinementServiceClient.create()) { + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + for (FindingsRefinement element : + findingsRefinementServiceClient.listFindingsRefinements(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END chronicle_v1_generated_FindingsRefinementService_ListFindingsRefinements_Instancename_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/listfindingsrefinements/SyncListFindingsRefinementsString.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/listfindingsrefinements/SyncListFindingsRefinementsString.java new file mode 100644 index 000000000000..482223df8f3b --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/listfindingsrefinements/SyncListFindingsRefinementsString.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_FindingsRefinementService_ListFindingsRefinements_String_sync] +import com.google.cloud.chronicle.v1.FindingsRefinement; +import com.google.cloud.chronicle.v1.FindingsRefinementServiceClient; +import com.google.cloud.chronicle.v1.InstanceName; + +public class SyncListFindingsRefinementsString { + + public static void main(String[] args) throws Exception { + syncListFindingsRefinementsString(); + } + + public static void syncListFindingsRefinementsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FindingsRefinementServiceClient findingsRefinementServiceClient = + FindingsRefinementServiceClient.create()) { + String parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); + for (FindingsRefinement element : + findingsRefinementServiceClient.listFindingsRefinements(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END chronicle_v1_generated_FindingsRefinementService_ListFindingsRefinements_String_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/updatefindingsrefinement/AsyncUpdateFindingsRefinement.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/updatefindingsrefinement/AsyncUpdateFindingsRefinement.java new file mode 100644 index 000000000000..85a2eb907c7d --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/updatefindingsrefinement/AsyncUpdateFindingsRefinement.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_FindingsRefinementService_UpdateFindingsRefinement_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.chronicle.v1.FindingsRefinement; +import com.google.cloud.chronicle.v1.FindingsRefinementServiceClient; +import com.google.cloud.chronicle.v1.UpdateFindingsRefinementRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateFindingsRefinement { + + public static void main(String[] args) throws Exception { + asyncUpdateFindingsRefinement(); + } + + public static void asyncUpdateFindingsRefinement() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FindingsRefinementServiceClient findingsRefinementServiceClient = + FindingsRefinementServiceClient.create()) { + UpdateFindingsRefinementRequest request = + UpdateFindingsRefinementRequest.newBuilder() + .setFindingsRefinement(FindingsRefinement.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + findingsRefinementServiceClient.updateFindingsRefinementCallable().futureCall(request); + // Do something. + FindingsRefinement response = future.get(); + } + } +} +// [END chronicle_v1_generated_FindingsRefinementService_UpdateFindingsRefinement_async] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/updatefindingsrefinement/SyncUpdateFindingsRefinement.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/updatefindingsrefinement/SyncUpdateFindingsRefinement.java new file mode 100644 index 000000000000..ae484fc94a3f --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/updatefindingsrefinement/SyncUpdateFindingsRefinement.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_FindingsRefinementService_UpdateFindingsRefinement_sync] +import com.google.cloud.chronicle.v1.FindingsRefinement; +import com.google.cloud.chronicle.v1.FindingsRefinementServiceClient; +import com.google.cloud.chronicle.v1.UpdateFindingsRefinementRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateFindingsRefinement { + + public static void main(String[] args) throws Exception { + syncUpdateFindingsRefinement(); + } + + public static void syncUpdateFindingsRefinement() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FindingsRefinementServiceClient findingsRefinementServiceClient = + FindingsRefinementServiceClient.create()) { + UpdateFindingsRefinementRequest request = + UpdateFindingsRefinementRequest.newBuilder() + .setFindingsRefinement(FindingsRefinement.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + FindingsRefinement response = + findingsRefinementServiceClient.updateFindingsRefinement(request); + } + } +} +// [END chronicle_v1_generated_FindingsRefinementService_UpdateFindingsRefinement_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/updatefindingsrefinement/SyncUpdateFindingsRefinementFindingsrefinementFieldmask.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/updatefindingsrefinement/SyncUpdateFindingsRefinementFindingsrefinementFieldmask.java new file mode 100644 index 000000000000..a8535e22f4cb --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/updatefindingsrefinement/SyncUpdateFindingsRefinementFindingsrefinementFieldmask.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_FindingsRefinementService_UpdateFindingsRefinement_FindingsrefinementFieldmask_sync] +import com.google.cloud.chronicle.v1.FindingsRefinement; +import com.google.cloud.chronicle.v1.FindingsRefinementServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateFindingsRefinementFindingsrefinementFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateFindingsRefinementFindingsrefinementFieldmask(); + } + + public static void syncUpdateFindingsRefinementFindingsrefinementFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FindingsRefinementServiceClient findingsRefinementServiceClient = + FindingsRefinementServiceClient.create()) { + FindingsRefinement findingsRefinement = FindingsRefinement.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + FindingsRefinement response = + findingsRefinementServiceClient.updateFindingsRefinement(findingsRefinement, updateMask); + } + } +} +// [END chronicle_v1_generated_FindingsRefinementService_UpdateFindingsRefinement_FindingsrefinementFieldmask_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/updatefindingsrefinementdeployment/AsyncUpdateFindingsRefinementDeployment.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/updatefindingsrefinementdeployment/AsyncUpdateFindingsRefinementDeployment.java new file mode 100644 index 000000000000..dfae6cec6955 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/updatefindingsrefinementdeployment/AsyncUpdateFindingsRefinementDeployment.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_FindingsRefinementService_UpdateFindingsRefinementDeployment_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.chronicle.v1.FindingsRefinementDeployment; +import com.google.cloud.chronicle.v1.FindingsRefinementServiceClient; +import com.google.cloud.chronicle.v1.UpdateFindingsRefinementDeploymentRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateFindingsRefinementDeployment { + + public static void main(String[] args) throws Exception { + asyncUpdateFindingsRefinementDeployment(); + } + + public static void asyncUpdateFindingsRefinementDeployment() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FindingsRefinementServiceClient findingsRefinementServiceClient = + FindingsRefinementServiceClient.create()) { + UpdateFindingsRefinementDeploymentRequest request = + UpdateFindingsRefinementDeploymentRequest.newBuilder() + .setFindingsRefinementDeployment(FindingsRefinementDeployment.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + findingsRefinementServiceClient + .updateFindingsRefinementDeploymentCallable() + .futureCall(request); + // Do something. + FindingsRefinementDeployment response = future.get(); + } + } +} +// [END chronicle_v1_generated_FindingsRefinementService_UpdateFindingsRefinementDeployment_async] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/updatefindingsrefinementdeployment/SyncUpdateFindingsRefinementDeployment.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/updatefindingsrefinementdeployment/SyncUpdateFindingsRefinementDeployment.java new file mode 100644 index 000000000000..576215f74279 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/updatefindingsrefinementdeployment/SyncUpdateFindingsRefinementDeployment.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_FindingsRefinementService_UpdateFindingsRefinementDeployment_sync] +import com.google.cloud.chronicle.v1.FindingsRefinementDeployment; +import com.google.cloud.chronicle.v1.FindingsRefinementServiceClient; +import com.google.cloud.chronicle.v1.UpdateFindingsRefinementDeploymentRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateFindingsRefinementDeployment { + + public static void main(String[] args) throws Exception { + syncUpdateFindingsRefinementDeployment(); + } + + public static void syncUpdateFindingsRefinementDeployment() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FindingsRefinementServiceClient findingsRefinementServiceClient = + FindingsRefinementServiceClient.create()) { + UpdateFindingsRefinementDeploymentRequest request = + UpdateFindingsRefinementDeploymentRequest.newBuilder() + .setFindingsRefinementDeployment(FindingsRefinementDeployment.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + FindingsRefinementDeployment response = + findingsRefinementServiceClient.updateFindingsRefinementDeployment(request); + } + } +} +// [END chronicle_v1_generated_FindingsRefinementService_UpdateFindingsRefinementDeployment_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/updatefindingsrefinementdeployment/SyncUpdateFindingsRefinementDeploymentFindingsrefinementdeploymentFieldmask.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/updatefindingsrefinementdeployment/SyncUpdateFindingsRefinementDeploymentFindingsrefinementdeploymentFieldmask.java new file mode 100644 index 000000000000..b9419ad3c2b5 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservice/updatefindingsrefinementdeployment/SyncUpdateFindingsRefinementDeploymentFindingsrefinementdeploymentFieldmask.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_FindingsRefinementService_UpdateFindingsRefinementDeployment_FindingsrefinementdeploymentFieldmask_sync] +import com.google.cloud.chronicle.v1.FindingsRefinementDeployment; +import com.google.cloud.chronicle.v1.FindingsRefinementServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateFindingsRefinementDeploymentFindingsrefinementdeploymentFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateFindingsRefinementDeploymentFindingsrefinementdeploymentFieldmask(); + } + + public static void syncUpdateFindingsRefinementDeploymentFindingsrefinementdeploymentFieldmask() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FindingsRefinementServiceClient findingsRefinementServiceClient = + FindingsRefinementServiceClient.create()) { + FindingsRefinementDeployment findingsRefinementDeployment = + FindingsRefinementDeployment.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + FindingsRefinementDeployment response = + findingsRefinementServiceClient.updateFindingsRefinementDeployment( + findingsRefinementDeployment, updateMask); + } + } +} +// [END chronicle_v1_generated_FindingsRefinementService_UpdateFindingsRefinementDeployment_FindingsrefinementdeploymentFieldmask_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservicesettings/getfindingsrefinement/SyncGetFindingsRefinement.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservicesettings/getfindingsrefinement/SyncGetFindingsRefinement.java new file mode 100644 index 000000000000..9796acb2b408 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/findingsrefinementservicesettings/getfindingsrefinement/SyncGetFindingsRefinement.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_FindingsRefinementServiceSettings_GetFindingsRefinement_sync] +import com.google.cloud.chronicle.v1.FindingsRefinementServiceSettings; +import java.time.Duration; + +public class SyncGetFindingsRefinement { + + public static void main(String[] args) throws Exception { + syncGetFindingsRefinement(); + } + + public static void syncGetFindingsRefinement() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + FindingsRefinementServiceSettings.Builder findingsRefinementServiceSettingsBuilder = + FindingsRefinementServiceSettings.newBuilder(); + findingsRefinementServiceSettingsBuilder + .getFindingsRefinementSettings() + .setRetrySettings( + findingsRefinementServiceSettingsBuilder + .getFindingsRefinementSettings() + .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()); + FindingsRefinementServiceSettings findingsRefinementServiceSettings = + findingsRefinementServiceSettingsBuilder.build(); + } +} +// [END chronicle_v1_generated_FindingsRefinementServiceSettings_GetFindingsRefinement_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/stub/findingsrefinementservicestubsettings/getfindingsrefinement/SyncGetFindingsRefinement.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/stub/findingsrefinementservicestubsettings/getfindingsrefinement/SyncGetFindingsRefinement.java new file mode 100644 index 000000000000..d87f8bad94ca --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/stub/findingsrefinementservicestubsettings/getfindingsrefinement/SyncGetFindingsRefinement.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.chronicle.v1.stub.samples; + +// [START chronicle_v1_generated_FindingsRefinementServiceStubSettings_GetFindingsRefinement_sync] +import com.google.cloud.chronicle.v1.stub.FindingsRefinementServiceStubSettings; +import java.time.Duration; + +public class SyncGetFindingsRefinement { + + public static void main(String[] args) throws Exception { + syncGetFindingsRefinement(); + } + + public static void syncGetFindingsRefinement() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + FindingsRefinementServiceStubSettings.Builder findingsRefinementServiceSettingsBuilder = + FindingsRefinementServiceStubSettings.newBuilder(); + findingsRefinementServiceSettingsBuilder + .getFindingsRefinementSettings() + .setRetrySettings( + findingsRefinementServiceSettingsBuilder + .getFindingsRefinementSettings() + .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()); + FindingsRefinementServiceStubSettings findingsRefinementServiceSettings = + findingsRefinementServiceSettingsBuilder.build(); + } +} +// [END chronicle_v1_generated_FindingsRefinementServiceStubSettings_GetFindingsRefinement_sync] diff --git a/java-dataproc/google-cloud-dataproc/src/main/resources/META-INF/native-image/com.google.cloud.dataproc.v1/reflect-config.json b/java-dataproc/google-cloud-dataproc/src/main/resources/META-INF/native-image/com.google.cloud.dataproc.v1/reflect-config.json index 6f64a62796b8..503aa98ddce0 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/resources/META-INF/native-image/com.google.cloud.dataproc.v1/reflect-config.json +++ b/java-dataproc/google-cloud-dataproc/src/main/resources/META-INF/native-image/com.google.cloud.dataproc.v1/reflect-config.json @@ -494,6 +494,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dataproc.v1.AttachedDiskConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataproc.v1.AttachedDiskConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataproc.v1.AttachedDiskConfig$DiskType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dataproc.v1.AuthenticationConfig", "queryAllDeclaredConstructors": true, diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AttachedDiskConfig.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AttachedDiskConfig.java new file mode 100644 index 000000000000..cd83f2320f4e --- /dev/null +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AttachedDiskConfig.java @@ -0,0 +1,1197 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataproc/v1/clusters.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataproc.v1; + +/** + * + * + *
                + * Specifies the config of attached disk options for single VM instance.
                + * 
                + * + * Protobuf type {@code google.cloud.dataproc.v1.AttachedDiskConfig} + */ +@com.google.protobuf.Generated +public final class AttachedDiskConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.AttachedDiskConfig) + AttachedDiskConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AttachedDiskConfig"); + } + + // Use AttachedDiskConfig.newBuilder() to construct. + private AttachedDiskConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AttachedDiskConfig() { + diskType_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_AttachedDiskConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_AttachedDiskConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.AttachedDiskConfig.class, + com.google.cloud.dataproc.v1.AttachedDiskConfig.Builder.class); + } + + /** Protobuf enum {@code google.cloud.dataproc.v1.AttachedDiskConfig.DiskType} */ + public enum DiskType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                +     * Required unspecified disk type.
                +     * 
                + * + * DISK_TYPE_UNSPECIFIED = 0; + */ + DISK_TYPE_UNSPECIFIED(0), + /** + * + * + *
                +     * Hyperdisk Balanced disk type.
                +     * 
                + * + * HYPERDISK_BALANCED = 1; + */ + HYPERDISK_BALANCED(1), + /** + * + * + *
                +     * Hyperdisk Extreme disk type.
                +     * 
                + * + * HYPERDISK_EXTREME = 2; + */ + HYPERDISK_EXTREME(2), + /** + * + * + *
                +     * Hyperdisk ML disk type.
                +     * 
                + * + * HYPERDISK_ML = 3; + */ + HYPERDISK_ML(3), + /** + * + * + *
                +     * Hyperdisk Throughput disk type.
                +     * 
                + * + * HYPERDISK_THROUGHPUT = 4; + */ + HYPERDISK_THROUGHPUT(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DiskType"); + } + + /** + * + * + *
                +     * Required unspecified disk type.
                +     * 
                + * + * DISK_TYPE_UNSPECIFIED = 0; + */ + public static final int DISK_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                +     * Hyperdisk Balanced disk type.
                +     * 
                + * + * HYPERDISK_BALANCED = 1; + */ + public static final int HYPERDISK_BALANCED_VALUE = 1; + + /** + * + * + *
                +     * Hyperdisk Extreme disk type.
                +     * 
                + * + * HYPERDISK_EXTREME = 2; + */ + public static final int HYPERDISK_EXTREME_VALUE = 2; + + /** + * + * + *
                +     * Hyperdisk ML disk type.
                +     * 
                + * + * HYPERDISK_ML = 3; + */ + public static final int HYPERDISK_ML_VALUE = 3; + + /** + * + * + *
                +     * Hyperdisk Throughput disk type.
                +     * 
                + * + * HYPERDISK_THROUGHPUT = 4; + */ + public static final int HYPERDISK_THROUGHPUT_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 DiskType 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 DiskType forNumber(int value) { + switch (value) { + case 0: + return DISK_TYPE_UNSPECIFIED; + case 1: + return HYPERDISK_BALANCED; + case 2: + return HYPERDISK_EXTREME; + case 3: + return HYPERDISK_ML; + case 4: + return HYPERDISK_THROUGHPUT; + 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 DiskType findValueByNumber(int number) { + return DiskType.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.dataproc.v1.AttachedDiskConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final DiskType[] VALUES = values(); + + public static DiskType 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 DiskType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dataproc.v1.AttachedDiskConfig.DiskType) + } + + private int bitField0_; + public static final int DISK_TYPE_FIELD_NUMBER = 1; + private int diskType_ = 0; + + /** + * + * + *
                +   * Optional. Disk type.
                +   * 
                + * + * + * .google.cloud.dataproc.v1.AttachedDiskConfig.DiskType disk_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for diskType. + */ + @java.lang.Override + public int getDiskTypeValue() { + return diskType_; + } + + /** + * + * + *
                +   * Optional. Disk type.
                +   * 
                + * + * + * .google.cloud.dataproc.v1.AttachedDiskConfig.DiskType disk_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The diskType. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.AttachedDiskConfig.DiskType getDiskType() { + com.google.cloud.dataproc.v1.AttachedDiskConfig.DiskType result = + com.google.cloud.dataproc.v1.AttachedDiskConfig.DiskType.forNumber(diskType_); + return result == null + ? com.google.cloud.dataproc.v1.AttachedDiskConfig.DiskType.UNRECOGNIZED + : result; + } + + public static final int DISK_SIZE_GB_FIELD_NUMBER = 2; + private int diskSizeGb_ = 0; + + /** + * + * + *
                +   * Optional. Disk size in GB.
                +   * 
                + * + * int32 disk_size_gb = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The diskSizeGb. + */ + @java.lang.Override + public int getDiskSizeGb() { + return diskSizeGb_; + } + + public static final int PROVISIONED_IOPS_FIELD_NUMBER = 3; + private long provisionedIops_ = 0L; + + /** + * + * + *
                +   * Optional. Indicates how many IOPS to provision for the attached disk. This
                +   * sets the number of I/O operations per second that the disk can handle. See
                +   * https://cloud.google.com/compute/docs/disks/hyperdisks#hyperdisk-features
                +   * 
                + * + * optional int64 provisioned_iops = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the provisionedIops field is set. + */ + @java.lang.Override + public boolean hasProvisionedIops() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                +   * Optional. Indicates how many IOPS to provision for the attached disk. This
                +   * sets the number of I/O operations per second that the disk can handle. See
                +   * https://cloud.google.com/compute/docs/disks/hyperdisks#hyperdisk-features
                +   * 
                + * + * optional int64 provisioned_iops = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The provisionedIops. + */ + @java.lang.Override + public long getProvisionedIops() { + return provisionedIops_; + } + + public static final int PROVISIONED_THROUGHPUT_FIELD_NUMBER = 4; + private long provisionedThroughput_ = 0L; + + /** + * + * + *
                +   * Optional. Indicates how much throughput to provision for the attached
                +   * disk. This sets the number of throughput mb per second that the disk can
                +   * handle. See
                +   * https://cloud.google.com/compute/docs/disks/hyperdisks#hyperdisk-features
                +   * 
                + * + * optional int64 provisioned_throughput = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the provisionedThroughput field is set. + */ + @java.lang.Override + public boolean hasProvisionedThroughput() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                +   * Optional. Indicates how much throughput to provision for the attached
                +   * disk. This sets the number of throughput mb per second that the disk can
                +   * handle. See
                +   * https://cloud.google.com/compute/docs/disks/hyperdisks#hyperdisk-features
                +   * 
                + * + * optional int64 provisioned_throughput = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The provisionedThroughput. + */ + @java.lang.Override + public long getProvisionedThroughput() { + return provisionedThroughput_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (diskType_ + != com.google.cloud.dataproc.v1.AttachedDiskConfig.DiskType.DISK_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, diskType_); + } + if (diskSizeGb_ != 0) { + output.writeInt32(2, diskSizeGb_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeInt64(3, provisionedIops_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeInt64(4, provisionedThroughput_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (diskType_ + != com.google.cloud.dataproc.v1.AttachedDiskConfig.DiskType.DISK_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, diskType_); + } + if (diskSizeGb_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, diskSizeGb_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, provisionedIops_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, provisionedThroughput_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataproc.v1.AttachedDiskConfig)) { + return super.equals(obj); + } + com.google.cloud.dataproc.v1.AttachedDiskConfig other = + (com.google.cloud.dataproc.v1.AttachedDiskConfig) obj; + + if (diskType_ != other.diskType_) return false; + if (getDiskSizeGb() != other.getDiskSizeGb()) return false; + if (hasProvisionedIops() != other.hasProvisionedIops()) return false; + if (hasProvisionedIops()) { + if (getProvisionedIops() != other.getProvisionedIops()) return false; + } + if (hasProvisionedThroughput() != other.hasProvisionedThroughput()) return false; + if (hasProvisionedThroughput()) { + if (getProvisionedThroughput() != other.getProvisionedThroughput()) return false; + } + if (!getUnknownFields().equals(other.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) + DISK_TYPE_FIELD_NUMBER; + hash = (53 * hash) + diskType_; + hash = (37 * hash) + DISK_SIZE_GB_FIELD_NUMBER; + hash = (53 * hash) + getDiskSizeGb(); + if (hasProvisionedIops()) { + hash = (37 * hash) + PROVISIONED_IOPS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getProvisionedIops()); + } + if (hasProvisionedThroughput()) { + hash = (37 * hash) + PROVISIONED_THROUGHPUT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getProvisionedThroughput()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataproc.v1.AttachedDiskConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.AttachedDiskConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.AttachedDiskConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.AttachedDiskConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.AttachedDiskConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.AttachedDiskConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.AttachedDiskConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.AttachedDiskConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.AttachedDiskConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.AttachedDiskConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.AttachedDiskConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.AttachedDiskConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.dataproc.v1.AttachedDiskConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 the config of attached disk options for single VM instance.
                +   * 
                + * + * Protobuf type {@code google.cloud.dataproc.v1.AttachedDiskConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.AttachedDiskConfig) + com.google.cloud.dataproc.v1.AttachedDiskConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_AttachedDiskConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_AttachedDiskConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.AttachedDiskConfig.class, + com.google.cloud.dataproc.v1.AttachedDiskConfig.Builder.class); + } + + // Construct using com.google.cloud.dataproc.v1.AttachedDiskConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + diskType_ = 0; + diskSizeGb_ = 0; + provisionedIops_ = 0L; + provisionedThroughput_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_AttachedDiskConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.AttachedDiskConfig getDefaultInstanceForType() { + return com.google.cloud.dataproc.v1.AttachedDiskConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.AttachedDiskConfig build() { + com.google.cloud.dataproc.v1.AttachedDiskConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.AttachedDiskConfig buildPartial() { + com.google.cloud.dataproc.v1.AttachedDiskConfig result = + new com.google.cloud.dataproc.v1.AttachedDiskConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataproc.v1.AttachedDiskConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.diskType_ = diskType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.diskSizeGb_ = diskSizeGb_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.provisionedIops_ = provisionedIops_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.provisionedThroughput_ = provisionedThroughput_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataproc.v1.AttachedDiskConfig) { + return mergeFrom((com.google.cloud.dataproc.v1.AttachedDiskConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataproc.v1.AttachedDiskConfig other) { + if (other == com.google.cloud.dataproc.v1.AttachedDiskConfig.getDefaultInstance()) + return this; + if (other.diskType_ != 0) { + setDiskTypeValue(other.getDiskTypeValue()); + } + if (other.getDiskSizeGb() != 0) { + setDiskSizeGb(other.getDiskSizeGb()); + } + if (other.hasProvisionedIops()) { + setProvisionedIops(other.getProvisionedIops()); + } + if (other.hasProvisionedThroughput()) { + setProvisionedThroughput(other.getProvisionedThroughput()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + diskType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + diskSizeGb_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + provisionedIops_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + provisionedThroughput_ = 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 int diskType_ = 0; + + /** + * + * + *
                +     * Optional. Disk type.
                +     * 
                + * + * + * .google.cloud.dataproc.v1.AttachedDiskConfig.DiskType disk_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for diskType. + */ + @java.lang.Override + public int getDiskTypeValue() { + return diskType_; + } + + /** + * + * + *
                +     * Optional. Disk type.
                +     * 
                + * + * + * .google.cloud.dataproc.v1.AttachedDiskConfig.DiskType disk_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for diskType to set. + * @return This builder for chaining. + */ + public Builder setDiskTypeValue(int value) { + diskType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. Disk type.
                +     * 
                + * + * + * .google.cloud.dataproc.v1.AttachedDiskConfig.DiskType disk_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The diskType. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.AttachedDiskConfig.DiskType getDiskType() { + com.google.cloud.dataproc.v1.AttachedDiskConfig.DiskType result = + com.google.cloud.dataproc.v1.AttachedDiskConfig.DiskType.forNumber(diskType_); + return result == null + ? com.google.cloud.dataproc.v1.AttachedDiskConfig.DiskType.UNRECOGNIZED + : result; + } + + /** + * + * + *
                +     * Optional. Disk type.
                +     * 
                + * + * + * .google.cloud.dataproc.v1.AttachedDiskConfig.DiskType disk_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The diskType to set. + * @return This builder for chaining. + */ + public Builder setDiskType(com.google.cloud.dataproc.v1.AttachedDiskConfig.DiskType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + diskType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. Disk type.
                +     * 
                + * + * + * .google.cloud.dataproc.v1.AttachedDiskConfig.DiskType disk_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearDiskType() { + bitField0_ = (bitField0_ & ~0x00000001); + diskType_ = 0; + onChanged(); + return this; + } + + private int diskSizeGb_; + + /** + * + * + *
                +     * Optional. Disk size in GB.
                +     * 
                + * + * int32 disk_size_gb = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The diskSizeGb. + */ + @java.lang.Override + public int getDiskSizeGb() { + return diskSizeGb_; + } + + /** + * + * + *
                +     * Optional. Disk size in GB.
                +     * 
                + * + * int32 disk_size_gb = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The diskSizeGb to set. + * @return This builder for chaining. + */ + public Builder setDiskSizeGb(int value) { + + diskSizeGb_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. Disk size in GB.
                +     * 
                + * + * int32 disk_size_gb = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDiskSizeGb() { + bitField0_ = (bitField0_ & ~0x00000002); + diskSizeGb_ = 0; + onChanged(); + return this; + } + + private long provisionedIops_; + + /** + * + * + *
                +     * Optional. Indicates how many IOPS to provision for the attached disk. This
                +     * sets the number of I/O operations per second that the disk can handle. See
                +     * https://cloud.google.com/compute/docs/disks/hyperdisks#hyperdisk-features
                +     * 
                + * + * optional int64 provisioned_iops = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the provisionedIops field is set. + */ + @java.lang.Override + public boolean hasProvisionedIops() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                +     * Optional. Indicates how many IOPS to provision for the attached disk. This
                +     * sets the number of I/O operations per second that the disk can handle. See
                +     * https://cloud.google.com/compute/docs/disks/hyperdisks#hyperdisk-features
                +     * 
                + * + * optional int64 provisioned_iops = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The provisionedIops. + */ + @java.lang.Override + public long getProvisionedIops() { + return provisionedIops_; + } + + /** + * + * + *
                +     * Optional. Indicates how many IOPS to provision for the attached disk. This
                +     * sets the number of I/O operations per second that the disk can handle. See
                +     * https://cloud.google.com/compute/docs/disks/hyperdisks#hyperdisk-features
                +     * 
                + * + * optional int64 provisioned_iops = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The provisionedIops to set. + * @return This builder for chaining. + */ + public Builder setProvisionedIops(long value) { + + provisionedIops_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. Indicates how many IOPS to provision for the attached disk. This
                +     * sets the number of I/O operations per second that the disk can handle. See
                +     * https://cloud.google.com/compute/docs/disks/hyperdisks#hyperdisk-features
                +     * 
                + * + * optional int64 provisioned_iops = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearProvisionedIops() { + bitField0_ = (bitField0_ & ~0x00000004); + provisionedIops_ = 0L; + onChanged(); + return this; + } + + private long provisionedThroughput_; + + /** + * + * + *
                +     * Optional. Indicates how much throughput to provision for the attached
                +     * disk. This sets the number of throughput mb per second that the disk can
                +     * handle. See
                +     * https://cloud.google.com/compute/docs/disks/hyperdisks#hyperdisk-features
                +     * 
                + * + * optional int64 provisioned_throughput = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the provisionedThroughput field is set. + */ + @java.lang.Override + public boolean hasProvisionedThroughput() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
                +     * Optional. Indicates how much throughput to provision for the attached
                +     * disk. This sets the number of throughput mb per second that the disk can
                +     * handle. See
                +     * https://cloud.google.com/compute/docs/disks/hyperdisks#hyperdisk-features
                +     * 
                + * + * optional int64 provisioned_throughput = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The provisionedThroughput. + */ + @java.lang.Override + public long getProvisionedThroughput() { + return provisionedThroughput_; + } + + /** + * + * + *
                +     * Optional. Indicates how much throughput to provision for the attached
                +     * disk. This sets the number of throughput mb per second that the disk can
                +     * handle. See
                +     * https://cloud.google.com/compute/docs/disks/hyperdisks#hyperdisk-features
                +     * 
                + * + * optional int64 provisioned_throughput = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The provisionedThroughput to set. + * @return This builder for chaining. + */ + public Builder setProvisionedThroughput(long value) { + + provisionedThroughput_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. Indicates how much throughput to provision for the attached
                +     * disk. This sets the number of throughput mb per second that the disk can
                +     * handle. See
                +     * https://cloud.google.com/compute/docs/disks/hyperdisks#hyperdisk-features
                +     * 
                + * + * optional int64 provisioned_throughput = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearProvisionedThroughput() { + bitField0_ = (bitField0_ & ~0x00000008); + provisionedThroughput_ = 0L; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.AttachedDiskConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.AttachedDiskConfig) + private static final com.google.cloud.dataproc.v1.AttachedDiskConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.AttachedDiskConfig(); + } + + public static com.google.cloud.dataproc.v1.AttachedDiskConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AttachedDiskConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.AttachedDiskConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AttachedDiskConfigOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AttachedDiskConfigOrBuilder.java new file mode 100644 index 000000000000..d37a94a8953b --- /dev/null +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AttachedDiskConfigOrBuilder.java @@ -0,0 +1,135 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataproc/v1/clusters.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataproc.v1; + +@com.google.protobuf.Generated +public interface AttachedDiskConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.AttachedDiskConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                +   * Optional. Disk type.
                +   * 
                + * + * + * .google.cloud.dataproc.v1.AttachedDiskConfig.DiskType disk_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for diskType. + */ + int getDiskTypeValue(); + + /** + * + * + *
                +   * Optional. Disk type.
                +   * 
                + * + * + * .google.cloud.dataproc.v1.AttachedDiskConfig.DiskType disk_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The diskType. + */ + com.google.cloud.dataproc.v1.AttachedDiskConfig.DiskType getDiskType(); + + /** + * + * + *
                +   * Optional. Disk size in GB.
                +   * 
                + * + * int32 disk_size_gb = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The diskSizeGb. + */ + int getDiskSizeGb(); + + /** + * + * + *
                +   * Optional. Indicates how many IOPS to provision for the attached disk. This
                +   * sets the number of I/O operations per second that the disk can handle. See
                +   * https://cloud.google.com/compute/docs/disks/hyperdisks#hyperdisk-features
                +   * 
                + * + * optional int64 provisioned_iops = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the provisionedIops field is set. + */ + boolean hasProvisionedIops(); + + /** + * + * + *
                +   * Optional. Indicates how many IOPS to provision for the attached disk. This
                +   * sets the number of I/O operations per second that the disk can handle. See
                +   * https://cloud.google.com/compute/docs/disks/hyperdisks#hyperdisk-features
                +   * 
                + * + * optional int64 provisioned_iops = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The provisionedIops. + */ + long getProvisionedIops(); + + /** + * + * + *
                +   * Optional. Indicates how much throughput to provision for the attached
                +   * disk. This sets the number of throughput mb per second that the disk can
                +   * handle. See
                +   * https://cloud.google.com/compute/docs/disks/hyperdisks#hyperdisk-features
                +   * 
                + * + * optional int64 provisioned_throughput = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the provisionedThroughput field is set. + */ + boolean hasProvisionedThroughput(); + + /** + * + * + *
                +   * Optional. Indicates how much throughput to provision for the attached
                +   * disk. This sets the number of throughput mb per second that the disk can
                +   * handle. See
                +   * https://cloud.google.com/compute/docs/disks/hyperdisks#hyperdisk-features
                +   * 
                + * + * optional int64 provisioned_throughput = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The provisionedThroughput. + */ + long getProvisionedThroughput(); +} diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java index 6dbf904a1848..0d518b2e3d9e 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java @@ -140,6 +140,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dataproc_v1_DiskConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dataproc_v1_DiskConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_AttachedDiskConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_AttachedDiskConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dataproc_v1_AuxiliaryNodeGroup_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -464,7 +468,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022ManagedGroupConfig\022#\n" + "\026instance_template_name\030\001 \001(\tB\003\340A\003\022(\n" + "\033instance_group_manager_name\030\002 \001(\tB\003\340A\003\022\'\n" - + "\032instance_group_manager_uri\030\003 \001(\tB\003\340A\003\"\345\005\n" + + "\032instance_group_manager_uri\030\003 \001(\tB\003\340A\003\"\246\006\n" + "\031InstanceFlexibilityPolicy\022m\n" + "\026provisioning_model_mix\030\001 \001(\0132H.google.cloud" + ".dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMixB\003\340A\001\022k\n" @@ -477,19 +481,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "$standard_capacity_percent_above_base\030\002" + " \001(\005B\003\340A\001H\001\210\001\001B\031\n" + "\027_standard_capacity_baseB\'\n" - + "%_standard_capacity_percent_above_base\032B\n" + + "%_standard_capacity_percent_above_base\032\202\001\n" + "\021InstanceSelection\022\032\n\r" + "machine_types\030\001 \003(\tB\003\340A\001\022\021\n" - + "\004rank\030\002 \001(\005B\003\340A\001\032s\n" + + "\004rank\030\002 \001(\005B\003\340A\001\022>\n" + + "\013disk_config\030\003" + + " \001(\0132$.google.cloud.dataproc.v1.DiskConfigB\003\340A\001\032s\n" + "\027InstanceSelectionResult\022\036\n" + "\014machine_type\030\001 \001(\tB\003\340A\003H\000\210\001\001\022\032\n" - + "\010vm_count\030\002 \001(\005B\003\340A\003H\001\210\001\001B\017\n" - + "\r" + + "\010vm_count\030\002 \001(\005B\003\340A\003H\001\210\001\001B\017\n\r" + "_machine_typeB\013\n" + "\t_vm_count\"L\n" + "\021AcceleratorConfig\022\034\n" + "\024accelerator_type_uri\030\001 \001(\t\022\031\n" - + "\021accelerator_count\030\002 \001(\005\"\256\002\n\n" + + "\021accelerator_count\030\002 \001(\005\"\200\003\n\n" + "DiskConfig\022\033\n" + "\016boot_disk_type\030\003 \001(\tB\003\340A\001\022\036\n" + "\021boot_disk_size_gb\030\001 \001(\005B\003\340A\001\022\033\n" @@ -497,9 +502,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023local_ssd_interface\030\004 \001(\tB\003\340A\001\022,\n" + "\032boot_disk_provisioned_iops\030\005 \001(\003B\003\340A\001H\000\210\001\001\0222\n" + " boot_disk_provisioned_throughput\030\006" - + " \001(\003B\003\340A\001H\001\210\001\001B\035\n" + + " \001(\003B\003\340A\001H\001\210\001\001\022P\n" + + "\025attached_disk_configs\030\007 \003(\0132," + + ".google.cloud.dataproc.v1.AttachedDiskConfigB\003\340A\001B\035\n" + "\033_boot_disk_provisioned_iopsB#\n" - + "!_boot_disk_provisioned_throughput\"n\n" + + "!_boot_disk_provisioned_throughput\"\377\002\n" + + "\022AttachedDiskConfig\022M\n" + + "\tdisk_type\030\001 \001(\0162" + + "5.google.cloud.dataproc.v1.AttachedDiskConfig.DiskTypeB\003\340A\001\022\031\n" + + "\014disk_size_gb\030\002 \001(\005B\003\340A\001\022\"\n" + + "\020provisioned_iops\030\003 \001(\003B\003\340A\001H\000\210\001\001\022(\n" + + "\026provisioned_throughput\030\004" + + " \001(\003B\003\340A\001H\001\210\001\001\"\200\001\n" + + "\010DiskType\022\031\n" + + "\025DISK_TYPE_UNSPECIFIED\020\000\022\026\n" + + "\022HYPERDISK_BALANCED\020\001\022\025\n" + + "\021HYPERDISK_EXTREME\020\002\022\020\n" + + "\014HYPERDISK_ML\020\003\022\030\n" + + "\024HYPERDISK_THROUGHPUT\020\004B\023\n" + + "\021_provisioned_iopsB\031\n" + + "\027_provisioned_throughput\"n\n" + "\022AuxiliaryNodeGroup\022<\n\n" + "node_group\030\001" + " \001(\0132#.google.cloud.dataproc.v1.NodeGroupB\003\340A\002\022\032\n\r" @@ -508,31 +530,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\t\022<\n" + "\005roles\030\002" + " \003(\0162(.google.cloud.dataproc.v1.NodeGroup.RoleB\003\340A\002\022M\n" - + "\021node_group_config\030\003 \001(\0132" - + "-.google.cloud.dataproc.v1.InstanceGroupConfigB\003\340A\001\022D\n" - + "\006labels\030\004 \003(\0132/.google.clo" - + "ud.dataproc.v1.NodeGroup.LabelsEntryB\003\340A\001\032-\n" + + "\021node_group_config\030\003" + + " \001(\0132-.google.cloud.dataproc.v1.InstanceGroupConfigB\003\340A\001\022D\n" + + "\006labels\030\004 \003(\013" + + "2/.google.cloud.dataproc.v1.NodeGroup.LabelsEntryB\003\340A\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"(\n" + "\004Role\022\024\n" - + "\020ROLE_UNSPECIFIED\020\000\022\n" - + "\n" + + "\020ROLE_UNSPECIFIED\020\000\022\n\n" + "\006DRIVER\020\001:v\352As\n" - + "!dataproc.googleapis.com/NodeGroup\022Nprojects/{project}/regions/{" - + "region}/clusters/{cluster}/nodeGroups/{node_group}\"s\n" + + "!dataproc.googleapis.com/NodeGroup\022Nprojects/{proje" + + "ct}/regions/{region}/clusters/{cluster}/nodeGroups/{node_group}\"s\n" + "\030NodeInitializationAction\022\034\n" + "\017executable_file\030\001 \001(\tB\003\340A\002\0229\n" + "\021execution_timeout\030\002" + " \001(\0132\031.google.protobuf.DurationB\003\340A\001\"\326\003\n\r" + "ClusterStatus\022A\n" - + "\005state\030\001 \001(\016" - + "2-.google.cloud.dataproc.v1.ClusterStatus.StateB\003\340A\003\022\026\n" + + "\005state\030\001" + + " \001(\0162-.google.cloud.dataproc.v1.ClusterStatus.StateB\003\340A\003\022\026\n" + "\006detail\030\002 \001(\tB\006\340A\003\340A\001\0229\n" + "\020state_start_time\030\003" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022G\n" - + "\010substate\030\004 \001(\01620.goog" - + "le.cloud.dataproc.v1.ClusterStatus.SubstateB\003\340A\003\"\247\001\n" + + "\010substate\030\004" + + " \001(\01620.google.cloud.dataproc.v1.ClusterStatus.SubstateB\003\340A\003\"\247\001\n" + "\005State\022\013\n" + "\007UNKNOWN\020\000\022\014\n" + "\010CREATING\020\001\022\013\n" @@ -553,8 +574,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016SecurityConfig\022F\n" + "\017kerberos_config\030\001" + " \001(\0132(.google.cloud.dataproc.v1.KerberosConfigB\003\340A\001\022F\n" - + "\017identity_config\030\002 \001(\0132(.g" - + "oogle.cloud.dataproc.v1.IdentityConfigB\003\340A\001\"\220\004\n" + + "\017identity_config\030\002" + + " \001(\0132(.google.cloud.dataproc.v1.IdentityConfigB\003\340A\001\"\220\004\n" + "\016KerberosConfig\022\034\n" + "\017enable_kerberos\030\001 \001(\010B\003\340A\001\022(\n" + "\033root_principal_password_uri\030\002 \001(\tB\003\340A\001\022\030\n" @@ -574,15 +595,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022tgt_lifetime_hours\030\016 \001(\005B\003\340A\001\022\022\n" + "\005realm\030\017 \001(\tB\003\340A\001\"\306\001\n" + "\016IdentityConfig\022r\n" - + "\034user_service_account_mapping\030\001 \003(\0132G.google" - + ".cloud.dataproc.v1.IdentityConfig.UserServiceAccountMappingEntryB\003\340A\002\032@\n" + + "\034user_service_account_mapping\030\001 \003(\0132G.google.cloud.dataproc.v1.Identity" + + "Config.UserServiceAccountMappingEntryB\003\340A\002\032@\n" + "\036UserServiceAccountMappingEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\371\001\n" + "\016SoftwareConfig\022\032\n\r" + "image_version\030\001 \001(\tB\003\340A\001\022Q\n\n" - + "properties\030\002 \003" - + "(\01328.google.cloud.dataproc.v1.SoftwareConfig.PropertiesEntryB\003\340A\001\022E\n" + + "properties\030\002 \003(\01328.google.cloud.dataproc." + + "v1.SoftwareConfig.PropertiesEntryB\003\340A\001\022E\n" + "\023optional_components\030\003" + " \003(\0162#.google.cloud.dataproc.v1.ComponentB\003\340A\001\0321\n" + "\017PropertiesEntry\022\013\n" @@ -594,7 +615,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020auto_delete_time\030\002" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\001H\000\0229\n" + "\017auto_delete_ttl\030\003" - + " \001(\0132\031.google.protobuf.DurationB\003\340A\001H\000\0225\n\r" + + " \001(\0132\031.google.protobuf.DurationB\003\340A\001H\000\0225\n" + + "\r" + "idle_stop_ttl\030\005 \001(\0132\031.google.protobuf.DurationB\003\340A\001\0229\n" + "\016auto_stop_time\030\006" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\001H\001\0227\n\r" @@ -608,10 +630,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032dataproc_metastore_service\030\001 \001(\tB(\340A\002\372A\"\n" + " metastore.googleapis.com/Service\"\232\002\n" + "\016ClusterMetrics\022O\n" - + "\014hdfs_metrics\030\001" - + " \003(\01329.google.cloud.dataproc.v1.ClusterMetrics.HdfsMetricsEntry\022O\n" - + "\014yarn_metrics\030\002" - + " \003(\01329.google.cloud.dataproc.v1.ClusterMetrics.YarnMetricsEntry\0322\n" + + "\014hdfs_metrics\030\001 \003(\01329.google.cloud.d" + + "ataproc.v1.ClusterMetrics.HdfsMetricsEntry\022O\n" + + "\014yarn_metrics\030\002 \003(\01329.google.cloud." + + "dataproc.v1.ClusterMetrics.YarnMetricsEntry\0322\n" + "\020HdfsMetricsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\003:\0028\001\0322\n" @@ -619,11 +641,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\003:\0028\001\"\235\003\n" + "\024DataprocMetricConfig\022K\n" - + "\007metrics\030\001" - + " \003(\01325.google.cloud.dataproc.v1.DataprocMetricConfig.MetricB\003\340A\002\032\200\001\n" + + "\007metrics\030\001 \003(\01325.google.c" + + "loud.dataproc.v1.DataprocMetricConfig.MetricB\003\340A\002\032\200\001\n" + "\006Metric\022W\n\r" - + "metric_source\030\001 \001(\0162;.google." - + "cloud.dataproc.v1.DataprocMetricConfig.MetricSourceB\003\340A\002\022\035\n" + + "metric_source\030\001 " + + "\001(\0162;.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSourceB\003\340A\002\022\035\n" + "\020metric_overrides\030\002 \003(\tB\003\340A\001\"\264\001\n" + "\014MetricSource\022\035\n" + "\031METRIC_SOURCE_UNSPECIFIED\020\000\022\035\n" @@ -638,11 +660,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024CreateClusterRequest\022\027\n\n" + "project_id\030\001 \001(\tB\003\340A\002\022\023\n" + "\006region\030\003 \001(\tB\003\340A\002\0227\n" - + "\007cluster\030\002 \001(\0132!" - + ".google.cloud.dataproc.v1.ClusterB\003\340A\002\022\027\n\n" + + "\007cluster\030\002" + + " \001(\0132!.google.cloud.dataproc.v1.ClusterB\003\340A\002\022\027\n\n" + "request_id\030\004 \001(\tB\003\340A\001\022V\n" - + " action_on_failed_primary_workers\030\005" - + " \001(\0162\'.google.cloud.dataproc.v1.FailureActionB\003\340A\001\"\256\002\n" + + " action_on_failed_primary_workers\030\005 \001(\0162\'" + + ".google.cloud.dataproc.v1.FailureActionB\003\340A\001\"\256\002\n" + "\024UpdateClusterRequest\022\027\n\n" + "project_id\030\001 \001(\tB\003\340A\002\022\023\n" + "\006region\030\005 \001(\tB\003\340A\002\022\031\n" @@ -690,8 +712,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\003 \001(\tB\003\340A\002\022\031\n" + "\014cluster_name\030\002 \001(\tB\003\340A\002\022\034\n" + "\017tarball_gcs_dir\030\004 \001(\tB\003\340A\001\022[\n" - + "\016tarball_access\030\005 " - + "\001(\0162>.google.cloud.dataproc.v1.DiagnoseClusterRequest.TarballAccessB\003\340A\001\0226\n" + + "\016tarball_access\030\005 \001(\0162>.google.cloud.dataproc" + + ".v1.DiagnoseClusterRequest.TarballAccessB\003\340A\001\0226\n" + "\022diagnosis_interval\030\006" + " \001(\0132\025.google.type.IntervalB\003\340A\001\022\021\n" + "\004jobs\030\n" @@ -704,8 +726,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026DiagnoseClusterResults\022\027\n\n" + "output_uri\030\001 \001(\tB\003\340A\003\"\370\001\n" + "\023ReservationAffinity\022Y\n" - + "\030consume_reservation_type\030\001 \001(\01622.g" - + "oogle.cloud.dataproc.v1.ReservationAffinity.TypeB\003\340A\001\022\020\n" + + "\030consume_reservation_type\030\001" + + " \001(\01622.google.cloud.dataproc.v1.ReservationAffinity.TypeB\003\340A\001\022\020\n" + "\003key\030\002 \001(\tB\003\340A\001\022\023\n" + "\006values\030\003 \003(\tB\003\340A\001\"_\n" + "\004Type\022\024\n" @@ -714,53 +736,52 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017ANY_RESERVATION\020\002\022\030\n" + "\024SPECIFIC_RESERVATION\020\0032\344\020\n" + "\021ClusterController\022\200\002\n\r" - + "CreateCluster\022..google.c" - + "loud.dataproc.v1.CreateClusterRequest\032\035.google.longrunning.Operation\"\237\001\312A<\n" - + "\007Cluster\0221google.cloud.dataproc.v1.ClusterOpe" - + "rationMetadata\332A\031project_id,region,clust" - + "er\202\323\344\223\002>\"3/v1/projects/{project_id}/regions/{region}/clusters:\007cluster\022\250\002\n\r" - + "UpdateCluster\022..google.cloud.dataproc.v1.Upda" - + "teClusterRequest\032\035.google.longrunning.Operation\"\307\001\312A<\n" - + "\007Cluster\0221google.cloud.dataproc.v1.ClusterOperationMetadata\332A2proj" - + "ect_id,region,cluster_name,cluster,updat" - + "e_mask\202\323\344\223\002M2B/v1/projects/{project_id}/" - + "regions/{region}/clusters/{cluster_name}:\007cluster\022\356\001\n" - + "\013StopCluster\022,.google.cloud" - + ".dataproc.v1.StopClusterRequest\032\035.google.longrunning.Operation\"\221\001\312A<\n" - + "\007Cluster\0221google.cloud.dataproc.v1.ClusterOperation" - + "Metadata\202\323\344\223\002L\"G/v1/projects/{project_id" - + "}/regions/{region}/clusters/{cluster_name}:stop:\001*\022\361\001\n" - + "\014StartCluster\022-.google.clo" - + "ud.dataproc.v1.StartClusterRequest\032\035.google.longrunning.Operation\"\222\001\312A<\n" - + "\007Cluster\0221google.cloud.dataproc.v1.ClusterOperat" - + "ionMetadata\202\323\344\223\002M\"H/v1/projects/{project" - + "_id}/regions/{region}/clusters/{cluster_name}:start:\001*\022\231\002\n\r" - + "DeleteCluster\022..googl" - + "e.cloud.dataproc.v1.DeleteClusterRequest\032\035.google.longrunning.Operation\"\270\001\312AJ\n" - + "\025google.protobuf.Empty\0221google.cloud.datap" - + "roc.v1.ClusterOperationMetadata\332A\036projec" - + "t_id,region,cluster_name\202\323\344\223\002D*B/v1/proj" - + "ects/{project_id}/regions/{region}/clusters/{cluster_name}\022\311\001\n\n" - + "GetCluster\022+.google.cloud.dataproc.v1.GetClusterRequest\032!" - + ".google.cloud.dataproc.v1.Cluster\"k\332A\036pr" - + "oject_id,region,cluster_name\202\323\344\223\002D\022B/v1/" - + "projects/{project_id}/regions/{region}/clusters/{cluster_name}\022\331\001\n" - + "\014ListClusters\022-.google.cloud.dataproc.v1.ListClustersR" - + "equest\032..google.cloud.dataproc.v1.ListCl" - + "ustersResponse\"j\332A\021project_id,region\332A\030p" - + "roject_id,region,filter\202\323\344\223\0025\0223/v1/proje" - + "cts/{project_id}/regions/{region}/clusters\022\252\002\n" - + "\017DiagnoseCluster\0220.google.cloud.da" - + "taproc.v1.DiagnoseClusterRequest\032\035.google.longrunning.Operation\"\305\001\312AK\n" - + "\026DiagnoseClusterResults\0221google.cloud.dataproc.v1." - + "ClusterOperationMetadata\332A\036project_id,re" - + "gion,cluster_name\202\323\344\223\002P\"K/v1/projects/{p" - + "roject_id}/regions/{region}/clusters/{cl" - + "uster_name}:diagnose:\001*\032K\312A\027dataproc.goo" - + "gleapis.com\322A.https://www.googleapis.com/auth/cloud-platformBl\n" + + "CreateCluster\022..google.cloud.dataproc.v1.CreateClus" + + "terRequest\032\035.google.longrunning.Operation\"\237\001\312A<\n" + + "\007Cluster\0221google.cloud.dataproc.v1.ClusterOperationMetadata\332A\031project_id" + + ",region,cluster\202\323\344\223\002>\"3/v1/projects/{pro" + + "ject_id}/regions/{region}/clusters:\007cluster\022\250\002\n\r" + + "UpdateCluster\022..google.cloud.dat" + + "aproc.v1.UpdateClusterRequest\032\035.google.longrunning.Operation\"\307\001\312A<\n" + + "\007Cluster\0221google.cloud.dataproc.v1.ClusterOperationMe" + + "tadata\332A2project_id,region,cluster_name," + + "cluster,update_mask\202\323\344\223\002M2B/v1/projects/" + + "{project_id}/regions/{region}/clusters/{cluster_name}:\007cluster\022\356\001\n" + + "\013StopCluster\022,.google.cloud.dataproc.v1.StopClusterReq" + + "uest\032\035.google.longrunning.Operation\"\221\001\312A<\n" + + "\007Cluster\0221google.cloud.dataproc.v1.Clu" + + "sterOperationMetadata\202\323\344\223\002L\"G/v1/project" + + "s/{project_id}/regions/{region}/clusters/{cluster_name}:stop:\001*\022\361\001\n" + + "\014StartCluster\022-.google.cloud.dataproc.v1.StartCluster" + + "Request\032\035.google.longrunning.Operation\"\222\001\312A<\n" + + "\007Cluster\0221google.cloud.dataproc.v1." + + "ClusterOperationMetadata\202\323\344\223\002M\"H/v1/proj" + + "ects/{project_id}/regions/{region}/clusters/{cluster_name}:start:\001*\022\231\002\n\r" + + "DeleteCluster\022..google.cloud.dataproc.v1.DeleteC" + + "lusterRequest\032\035.google.longrunning.Operation\"\270\001\312AJ\n" + + "\025google.protobuf.Empty\0221google.cloud.dataproc.v1.ClusterOperationMeta" + + "data\332A\036project_id,region,cluster_name\202\323\344" + + "\223\002D*B/v1/projects/{project_id}/regions/{region}/clusters/{cluster_name}\022\311\001\n\n" + + "GetCluster\022+.google.cloud.dataproc.v1.GetClu" + + "sterRequest\032!.google.cloud.dataproc.v1.C" + + "luster\"k\332A\036project_id,region,cluster_nam" + + "e\202\323\344\223\002D\022B/v1/projects/{project_id}/regions/{region}/clusters/{cluster_name}\022\331\001\n" + + "\014ListClusters\022-.google.cloud.dataproc.v1." + + "ListClustersRequest\032..google.cloud.datap" + + "roc.v1.ListClustersResponse\"j\332A\021project_" + + "id,region\332A\030project_id,region,filter\202\323\344\223" + + "\0025\0223/v1/projects/{project_id}/regions/{region}/clusters\022\252\002\n" + + "\017DiagnoseCluster\0220.google.cloud.dataproc.v1.DiagnoseClusterRe" + + "quest\032\035.google.longrunning.Operation\"\305\001\312AK\n" + + "\026DiagnoseClusterResults\0221google.cloud" + + ".dataproc.v1.ClusterOperationMetadata\332A\036" + + "project_id,region,cluster_name\202\323\344\223\002P\"K/v" + + "1/projects/{project_id}/regions/{region}" + + "/clusters/{cluster_name}:diagnose:\001*\032K\312A" + + "\027dataproc.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformBl\n" + "\034com.google.cloud.dataproc.v1B\r" - + "ClustersProtoP\001Z;cloud.google.com/go/dataproc/v2/apiv1/dataprocpb;" - + "dataprocpbb\006proto3" + + "ClustersProtoP\001Z;cloud.google.com/go/dataproc/v2/apiv" + + "1/dataprocpb;dataprocpbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1010,7 +1031,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_InstanceFlexibilityPolicy_InstanceSelection_descriptor, new java.lang.String[] { - "MachineTypes", "Rank", + "MachineTypes", "Rank", "DiskConfig", }); internal_static_google_cloud_dataproc_v1_InstanceFlexibilityPolicy_InstanceSelectionResult_descriptor = internal_static_google_cloud_dataproc_v1_InstanceFlexibilityPolicy_descriptor.getNestedType( @@ -1041,9 +1062,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "LocalSsdInterface", "BootDiskProvisionedIops", "BootDiskProvisionedThroughput", + "AttachedDiskConfigs", }); - internal_static_google_cloud_dataproc_v1_AuxiliaryNodeGroup_descriptor = + internal_static_google_cloud_dataproc_v1_AttachedDiskConfig_descriptor = getDescriptor().getMessageType(18); + internal_static_google_cloud_dataproc_v1_AttachedDiskConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_AttachedDiskConfig_descriptor, + new java.lang.String[] { + "DiskType", "DiskSizeGb", "ProvisionedIops", "ProvisionedThroughput", + }); + internal_static_google_cloud_dataproc_v1_AuxiliaryNodeGroup_descriptor = + getDescriptor().getMessageType(19); internal_static_google_cloud_dataproc_v1_AuxiliaryNodeGroup_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_AuxiliaryNodeGroup_descriptor, @@ -1051,7 +1081,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NodeGroup", "NodeGroupId", }); internal_static_google_cloud_dataproc_v1_NodeGroup_descriptor = - getDescriptor().getMessageType(19); + getDescriptor().getMessageType(20); internal_static_google_cloud_dataproc_v1_NodeGroup_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_NodeGroup_descriptor, @@ -1067,7 +1097,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_dataproc_v1_NodeInitializationAction_descriptor = - getDescriptor().getMessageType(20); + getDescriptor().getMessageType(21); internal_static_google_cloud_dataproc_v1_NodeInitializationAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_NodeInitializationAction_descriptor, @@ -1075,7 +1105,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExecutableFile", "ExecutionTimeout", }); internal_static_google_cloud_dataproc_v1_ClusterStatus_descriptor = - getDescriptor().getMessageType(21); + getDescriptor().getMessageType(22); internal_static_google_cloud_dataproc_v1_ClusterStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_ClusterStatus_descriptor, @@ -1083,7 +1113,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "State", "Detail", "StateStartTime", "Substate", }); internal_static_google_cloud_dataproc_v1_SecurityConfig_descriptor = - getDescriptor().getMessageType(22); + getDescriptor().getMessageType(23); internal_static_google_cloud_dataproc_v1_SecurityConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_SecurityConfig_descriptor, @@ -1091,7 +1121,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "KerberosConfig", "IdentityConfig", }); internal_static_google_cloud_dataproc_v1_KerberosConfig_descriptor = - getDescriptor().getMessageType(23); + getDescriptor().getMessageType(24); internal_static_google_cloud_dataproc_v1_KerberosConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_KerberosConfig_descriptor, @@ -1113,7 +1143,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Realm", }); internal_static_google_cloud_dataproc_v1_IdentityConfig_descriptor = - getDescriptor().getMessageType(24); + getDescriptor().getMessageType(25); internal_static_google_cloud_dataproc_v1_IdentityConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_IdentityConfig_descriptor, @@ -1129,7 +1159,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_dataproc_v1_SoftwareConfig_descriptor = - getDescriptor().getMessageType(25); + getDescriptor().getMessageType(26); internal_static_google_cloud_dataproc_v1_SoftwareConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_SoftwareConfig_descriptor, @@ -1145,7 +1175,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_dataproc_v1_LifecycleConfig_descriptor = - getDescriptor().getMessageType(26); + getDescriptor().getMessageType(27); internal_static_google_cloud_dataproc_v1_LifecycleConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_LifecycleConfig_descriptor, @@ -1161,7 +1191,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "StopTtl", }); internal_static_google_cloud_dataproc_v1_MetastoreConfig_descriptor = - getDescriptor().getMessageType(27); + getDescriptor().getMessageType(28); internal_static_google_cloud_dataproc_v1_MetastoreConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_MetastoreConfig_descriptor, @@ -1169,7 +1199,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DataprocMetastoreService", }); internal_static_google_cloud_dataproc_v1_ClusterMetrics_descriptor = - getDescriptor().getMessageType(28); + getDescriptor().getMessageType(29); internal_static_google_cloud_dataproc_v1_ClusterMetrics_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_ClusterMetrics_descriptor, @@ -1193,7 +1223,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_descriptor = - getDescriptor().getMessageType(29); + getDescriptor().getMessageType(30); internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_descriptor, @@ -1209,7 +1239,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MetricSource", "MetricOverrides", }); internal_static_google_cloud_dataproc_v1_CreateClusterRequest_descriptor = - getDescriptor().getMessageType(30); + getDescriptor().getMessageType(31); internal_static_google_cloud_dataproc_v1_CreateClusterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_CreateClusterRequest_descriptor, @@ -1217,7 +1247,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Region", "Cluster", "RequestId", "ActionOnFailedPrimaryWorkers", }); internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_descriptor = - getDescriptor().getMessageType(31); + getDescriptor().getMessageType(32); internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_descriptor, @@ -1231,7 +1261,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RequestId", }); internal_static_google_cloud_dataproc_v1_StopClusterRequest_descriptor = - getDescriptor().getMessageType(32); + getDescriptor().getMessageType(33); internal_static_google_cloud_dataproc_v1_StopClusterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_StopClusterRequest_descriptor, @@ -1239,7 +1269,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Region", "ClusterName", "ClusterUuid", "RequestId", }); internal_static_google_cloud_dataproc_v1_StartClusterRequest_descriptor = - getDescriptor().getMessageType(33); + getDescriptor().getMessageType(34); internal_static_google_cloud_dataproc_v1_StartClusterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_StartClusterRequest_descriptor, @@ -1247,7 +1277,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Region", "ClusterName", "ClusterUuid", "RequestId", }); internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_descriptor = - getDescriptor().getMessageType(34); + getDescriptor().getMessageType(35); internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_descriptor, @@ -1255,7 +1285,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Region", "ClusterName", "ClusterUuid", "RequestId", }); internal_static_google_cloud_dataproc_v1_GetClusterRequest_descriptor = - getDescriptor().getMessageType(35); + getDescriptor().getMessageType(36); internal_static_google_cloud_dataproc_v1_GetClusterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_GetClusterRequest_descriptor, @@ -1263,7 +1293,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Region", "ClusterName", }); internal_static_google_cloud_dataproc_v1_ListClustersRequest_descriptor = - getDescriptor().getMessageType(36); + getDescriptor().getMessageType(37); internal_static_google_cloud_dataproc_v1_ListClustersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_ListClustersRequest_descriptor, @@ -1271,7 +1301,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Region", "Filter", "PageSize", "PageToken", }); internal_static_google_cloud_dataproc_v1_ListClustersResponse_descriptor = - getDescriptor().getMessageType(37); + getDescriptor().getMessageType(38); internal_static_google_cloud_dataproc_v1_ListClustersResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_ListClustersResponse_descriptor, @@ -1279,7 +1309,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Clusters", "NextPageToken", }); internal_static_google_cloud_dataproc_v1_DiagnoseClusterRequest_descriptor = - getDescriptor().getMessageType(38); + getDescriptor().getMessageType(39); internal_static_google_cloud_dataproc_v1_DiagnoseClusterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_DiagnoseClusterRequest_descriptor, @@ -1294,7 +1324,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "YarnApplicationIds", }); internal_static_google_cloud_dataproc_v1_DiagnoseClusterResults_descriptor = - getDescriptor().getMessageType(39); + getDescriptor().getMessageType(40); internal_static_google_cloud_dataproc_v1_DiagnoseClusterResults_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_DiagnoseClusterResults_descriptor, @@ -1302,7 +1332,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OutputUri", }); internal_static_google_cloud_dataproc_v1_ReservationAffinity_descriptor = - getDescriptor().getMessageType(40); + getDescriptor().getMessageType(41); internal_static_google_cloud_dataproc_v1_ReservationAffinity_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_ReservationAffinity_descriptor, diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfig.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfig.java index 9a8e1def7790..64c7143789ce 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfig.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfig.java @@ -24,7 +24,8 @@ * * *
                - * Specifies the config of disk options for a group of VM instances.
                + * Specifies the config of boot disk and attached disk options for a group of VM
                + * instances.
                  * 
                * * Protobuf type {@code google.cloud.dataproc.v1.DiskConfig} @@ -54,6 +55,7 @@ private DiskConfig(com.google.protobuf.GeneratedMessage.Builder builder) { private DiskConfig() { bootDiskType_ = ""; localSsdInterface_ = ""; + attachedDiskConfigs_ = java.util.Collections.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -81,10 +83,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                -   * Optional. Type of the boot disk (default is "pd-standard").
                -   * Valid values: "pd-balanced" (Persistent Disk Balanced Solid State Drive),
                -   * "pd-ssd" (Persistent Disk Solid State Drive),
                -   * or "pd-standard" (Persistent Disk Hard Disk Drive).
                +   * Optional. Type of the boot disk (default is `pd-standard`).
                +   * Valid values: `pd-balanced` (Persistent Disk Balanced Solid State Drive),
                +   * `pd-ssd` (Persistent Disk Solid State Drive),
                +   * or `pd-standard` (Persistent Disk Hard Disk Drive).
                    * See [Disk types](https://cloud.google.com/compute/docs/disks#disk-types).
                    * 
                * @@ -109,10 +111,10 @@ public java.lang.String getBootDiskType() { * * *
                -   * Optional. Type of the boot disk (default is "pd-standard").
                -   * Valid values: "pd-balanced" (Persistent Disk Balanced Solid State Drive),
                -   * "pd-ssd" (Persistent Disk Solid State Drive),
                -   * or "pd-standard" (Persistent Disk Hard Disk Drive).
                +   * Optional. Type of the boot disk (default is `pd-standard`).
                +   * Valid values: `pd-balanced` (Persistent Disk Balanced Solid State Drive),
                +   * `pd-ssd` (Persistent Disk Solid State Drive),
                +   * or `pd-standard` (Persistent Disk Hard Disk Drive).
                    * See [Disk types](https://cloud.google.com/compute/docs/disks#disk-types).
                    * 
                * @@ -188,9 +190,9 @@ public int getNumLocalSsds() { * * *
                -   * Optional. Interface type of local SSDs (default is "scsi").
                -   * Valid values: "scsi" (Small Computer System Interface),
                -   * "nvme" (Non-Volatile Memory Express).
                +   * Optional. Interface type of local SSDs (default is `scsi`).
                +   * Valid values: `scsi` (Small Computer System Interface),
                +   * `nvme` (Non-Volatile Memory Express).
                    * See [local SSD
                    * performance](https://cloud.google.com/compute/docs/disks/local-ssd#performance).
                    * 
                @@ -216,9 +218,9 @@ public java.lang.String getLocalSsdInterface() { * * *
                -   * Optional. Interface type of local SSDs (default is "scsi").
                -   * Valid values: "scsi" (Small Computer System Interface),
                -   * "nvme" (Non-Volatile Memory Express).
                +   * Optional. Interface type of local SSDs (default is `scsi`).
                +   * Valid values: `scsi` (Small Computer System Interface),
                +   * `nvme` (Non-Volatile Memory Express).
                    * See [local SSD
                    * performance](https://cloud.google.com/compute/docs/disks/local-ssd#performance).
                    * 
                @@ -248,8 +250,10 @@ public com.google.protobuf.ByteString getLocalSsdInterfaceBytes() { * *
                    * Optional. Indicates how many IOPS to provision for the disk. This sets the
                -   * number of I/O operations per second that the disk can handle. Note: This
                -   * field is only supported if boot_disk_type is hyperdisk-balanced.
                +   * number of I/O operations per second that the disk can handle.
                +   * **This field is supported only if
                +   * [boot_disk_type][google.cloud.dataproc.v1.DiskConfig.boot_disk_type] is
                +   * `hyperdisk-balanced`.**
                    * 
                * * optional int64 boot_disk_provisioned_iops = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -267,8 +271,10 @@ public boolean hasBootDiskProvisionedIops() { * *
                    * Optional. Indicates how many IOPS to provision for the disk. This sets the
                -   * number of I/O operations per second that the disk can handle. Note: This
                -   * field is only supported if boot_disk_type is hyperdisk-balanced.
                +   * number of I/O operations per second that the disk can handle.
                +   * **This field is supported only if
                +   * [boot_disk_type][google.cloud.dataproc.v1.DiskConfig.boot_disk_type] is
                +   * `hyperdisk-balanced`.**
                    * 
                * * optional int64 boot_disk_provisioned_iops = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -290,8 +296,9 @@ public long getBootDiskProvisionedIops() { *
                    * Optional. Indicates how much throughput to provision for the disk. This
                    * sets the number of throughput mb per second that the disk can handle.
                -   * Values must be greater than or equal to 1. Note: This field is only
                -   * supported if boot_disk_type is hyperdisk-balanced.
                +   * Values must be greater than or equal to 1. **This field is supported only
                +   * if [boot_disk_type][google.cloud.dataproc.v1.DiskConfig.boot_disk_type] is
                +   * `hyperdisk-balanced`.**
                    * 
                * * @@ -311,8 +318,9 @@ public boolean hasBootDiskProvisionedThroughput() { *
                    * Optional. Indicates how much throughput to provision for the disk. This
                    * sets the number of throughput mb per second that the disk can handle.
                -   * Values must be greater than or equal to 1. Note: This field is only
                -   * supported if boot_disk_type is hyperdisk-balanced.
                +   * Values must be greater than or equal to 1. **This field is supported only
                +   * if [boot_disk_type][google.cloud.dataproc.v1.DiskConfig.boot_disk_type] is
                +   * `hyperdisk-balanced`.**
                    * 
                * * @@ -326,6 +334,94 @@ public long getBootDiskProvisionedThroughput() { return bootDiskProvisionedThroughput_; } + public static final int ATTACHED_DISK_CONFIGS_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private java.util.List attachedDiskConfigs_; + + /** + * + * + *
                +   * Optional. A list of attached disk configs for a group of VM instances.
                +   * 
                + * + * + * repeated .google.cloud.dataproc.v1.AttachedDiskConfig attached_disk_configs = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getAttachedDiskConfigsList() { + return attachedDiskConfigs_; + } + + /** + * + * + *
                +   * Optional. A list of attached disk configs for a group of VM instances.
                +   * 
                + * + * + * repeated .google.cloud.dataproc.v1.AttachedDiskConfig attached_disk_configs = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getAttachedDiskConfigsOrBuilderList() { + return attachedDiskConfigs_; + } + + /** + * + * + *
                +   * Optional. A list of attached disk configs for a group of VM instances.
                +   * 
                + * + * + * repeated .google.cloud.dataproc.v1.AttachedDiskConfig attached_disk_configs = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getAttachedDiskConfigsCount() { + return attachedDiskConfigs_.size(); + } + + /** + * + * + *
                +   * Optional. A list of attached disk configs for a group of VM instances.
                +   * 
                + * + * + * repeated .google.cloud.dataproc.v1.AttachedDiskConfig attached_disk_configs = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.AttachedDiskConfig getAttachedDiskConfigs(int index) { + return attachedDiskConfigs_.get(index); + } + + /** + * + * + *
                +   * Optional. A list of attached disk configs for a group of VM instances.
                +   * 
                + * + * + * repeated .google.cloud.dataproc.v1.AttachedDiskConfig attached_disk_configs = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.AttachedDiskConfigOrBuilder getAttachedDiskConfigsOrBuilder( + int index) { + return attachedDiskConfigs_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -358,6 +454,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { output.writeInt64(6, bootDiskProvisionedThroughput_); } + for (int i = 0; i < attachedDiskConfigs_.size(); i++) { + output.writeMessage(7, attachedDiskConfigs_.get(i)); + } getUnknownFields().writeTo(output); } @@ -386,6 +485,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, bootDiskProvisionedThroughput_); } + for (int i = 0; i < attachedDiskConfigs_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(7, attachedDiskConfigs_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -415,6 +518,7 @@ public boolean equals(final java.lang.Object obj) { if (getBootDiskProvisionedThroughput() != other.getBootDiskProvisionedThroughput()) return false; } + if (!getAttachedDiskConfigsList().equals(other.getAttachedDiskConfigsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -443,6 +547,10 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBootDiskProvisionedThroughput()); } + if (getAttachedDiskConfigsCount() > 0) { + hash = (37 * hash) + ATTACHED_DISK_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + getAttachedDiskConfigsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -548,7 +656,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
                -   * Specifies the config of disk options for a group of VM instances.
                +   * Specifies the config of boot disk and attached disk options for a group of VM
                +   * instances.
                    * 
                * * Protobuf type {@code google.cloud.dataproc.v1.DiskConfig} @@ -589,6 +698,13 @@ public Builder clear() { localSsdInterface_ = ""; bootDiskProvisionedIops_ = 0L; bootDiskProvisionedThroughput_ = 0L; + if (attachedDiskConfigsBuilder_ == null) { + attachedDiskConfigs_ = java.util.Collections.emptyList(); + } else { + attachedDiskConfigs_ = null; + attachedDiskConfigsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000040); return this; } @@ -616,6 +732,7 @@ public com.google.cloud.dataproc.v1.DiskConfig build() { public com.google.cloud.dataproc.v1.DiskConfig buildPartial() { com.google.cloud.dataproc.v1.DiskConfig result = new com.google.cloud.dataproc.v1.DiskConfig(this); + buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -623,6 +740,18 @@ public com.google.cloud.dataproc.v1.DiskConfig buildPartial() { return result; } + private void buildPartialRepeatedFields(com.google.cloud.dataproc.v1.DiskConfig result) { + if (attachedDiskConfigsBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0)) { + attachedDiskConfigs_ = java.util.Collections.unmodifiableList(attachedDiskConfigs_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.attachedDiskConfigs_ = attachedDiskConfigs_; + } else { + result.attachedDiskConfigs_ = attachedDiskConfigsBuilder_.build(); + } + } + private void buildPartial0(com.google.cloud.dataproc.v1.DiskConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { @@ -683,6 +812,33 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.DiskConfig other) { if (other.hasBootDiskProvisionedThroughput()) { setBootDiskProvisionedThroughput(other.getBootDiskProvisionedThroughput()); } + if (attachedDiskConfigsBuilder_ == null) { + if (!other.attachedDiskConfigs_.isEmpty()) { + if (attachedDiskConfigs_.isEmpty()) { + attachedDiskConfigs_ = other.attachedDiskConfigs_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureAttachedDiskConfigsIsMutable(); + attachedDiskConfigs_.addAll(other.attachedDiskConfigs_); + } + onChanged(); + } + } else { + if (!other.attachedDiskConfigs_.isEmpty()) { + if (attachedDiskConfigsBuilder_.isEmpty()) { + attachedDiskConfigsBuilder_.dispose(); + attachedDiskConfigsBuilder_ = null; + attachedDiskConfigs_ = other.attachedDiskConfigs_; + bitField0_ = (bitField0_ & ~0x00000040); + attachedDiskConfigsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAttachedDiskConfigsFieldBuilder() + : null; + } else { + attachedDiskConfigsBuilder_.addAllMessages(other.attachedDiskConfigs_); + } + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -745,6 +901,20 @@ public Builder mergeFrom( bitField0_ |= 0x00000020; break; } // case 48 + case 58: + { + com.google.cloud.dataproc.v1.AttachedDiskConfig m = + input.readMessage( + com.google.cloud.dataproc.v1.AttachedDiskConfig.parser(), + extensionRegistry); + if (attachedDiskConfigsBuilder_ == null) { + ensureAttachedDiskConfigsIsMutable(); + attachedDiskConfigs_.add(m); + } else { + attachedDiskConfigsBuilder_.addMessage(m); + } + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -770,10 +940,10 @@ public Builder mergeFrom( * * *
                -     * Optional. Type of the boot disk (default is "pd-standard").
                -     * Valid values: "pd-balanced" (Persistent Disk Balanced Solid State Drive),
                -     * "pd-ssd" (Persistent Disk Solid State Drive),
                -     * or "pd-standard" (Persistent Disk Hard Disk Drive).
                +     * Optional. Type of the boot disk (default is `pd-standard`).
                +     * Valid values: `pd-balanced` (Persistent Disk Balanced Solid State Drive),
                +     * `pd-ssd` (Persistent Disk Solid State Drive),
                +     * or `pd-standard` (Persistent Disk Hard Disk Drive).
                      * See [Disk types](https://cloud.google.com/compute/docs/disks#disk-types).
                      * 
                * @@ -797,10 +967,10 @@ public java.lang.String getBootDiskType() { * * *
                -     * Optional. Type of the boot disk (default is "pd-standard").
                -     * Valid values: "pd-balanced" (Persistent Disk Balanced Solid State Drive),
                -     * "pd-ssd" (Persistent Disk Solid State Drive),
                -     * or "pd-standard" (Persistent Disk Hard Disk Drive).
                +     * Optional. Type of the boot disk (default is `pd-standard`).
                +     * Valid values: `pd-balanced` (Persistent Disk Balanced Solid State Drive),
                +     * `pd-ssd` (Persistent Disk Solid State Drive),
                +     * or `pd-standard` (Persistent Disk Hard Disk Drive).
                      * See [Disk types](https://cloud.google.com/compute/docs/disks#disk-types).
                      * 
                * @@ -824,10 +994,10 @@ public com.google.protobuf.ByteString getBootDiskTypeBytes() { * * *
                -     * Optional. Type of the boot disk (default is "pd-standard").
                -     * Valid values: "pd-balanced" (Persistent Disk Balanced Solid State Drive),
                -     * "pd-ssd" (Persistent Disk Solid State Drive),
                -     * or "pd-standard" (Persistent Disk Hard Disk Drive).
                +     * Optional. Type of the boot disk (default is `pd-standard`).
                +     * Valid values: `pd-balanced` (Persistent Disk Balanced Solid State Drive),
                +     * `pd-ssd` (Persistent Disk Solid State Drive),
                +     * or `pd-standard` (Persistent Disk Hard Disk Drive).
                      * See [Disk types](https://cloud.google.com/compute/docs/disks#disk-types).
                      * 
                * @@ -850,10 +1020,10 @@ public Builder setBootDiskType(java.lang.String value) { * * *
                -     * Optional. Type of the boot disk (default is "pd-standard").
                -     * Valid values: "pd-balanced" (Persistent Disk Balanced Solid State Drive),
                -     * "pd-ssd" (Persistent Disk Solid State Drive),
                -     * or "pd-standard" (Persistent Disk Hard Disk Drive).
                +     * Optional. Type of the boot disk (default is `pd-standard`).
                +     * Valid values: `pd-balanced` (Persistent Disk Balanced Solid State Drive),
                +     * `pd-ssd` (Persistent Disk Solid State Drive),
                +     * or `pd-standard` (Persistent Disk Hard Disk Drive).
                      * See [Disk types](https://cloud.google.com/compute/docs/disks#disk-types).
                      * 
                * @@ -872,10 +1042,10 @@ public Builder clearBootDiskType() { * * *
                -     * Optional. Type of the boot disk (default is "pd-standard").
                -     * Valid values: "pd-balanced" (Persistent Disk Balanced Solid State Drive),
                -     * "pd-ssd" (Persistent Disk Solid State Drive),
                -     * or "pd-standard" (Persistent Disk Hard Disk Drive).
                +     * Optional. Type of the boot disk (default is `pd-standard`).
                +     * Valid values: `pd-balanced` (Persistent Disk Balanced Solid State Drive),
                +     * `pd-ssd` (Persistent Disk Solid State Drive),
                +     * or `pd-standard` (Persistent Disk Hard Disk Drive).
                      * See [Disk types](https://cloud.google.com/compute/docs/disks#disk-types).
                      * 
                * @@ -1037,9 +1207,9 @@ public Builder clearNumLocalSsds() { * * *
                -     * Optional. Interface type of local SSDs (default is "scsi").
                -     * Valid values: "scsi" (Small Computer System Interface),
                -     * "nvme" (Non-Volatile Memory Express).
                +     * Optional. Interface type of local SSDs (default is `scsi`).
                +     * Valid values: `scsi` (Small Computer System Interface),
                +     * `nvme` (Non-Volatile Memory Express).
                      * See [local SSD
                      * performance](https://cloud.google.com/compute/docs/disks/local-ssd#performance).
                      * 
                @@ -1064,9 +1234,9 @@ public java.lang.String getLocalSsdInterface() { * * *
                -     * Optional. Interface type of local SSDs (default is "scsi").
                -     * Valid values: "scsi" (Small Computer System Interface),
                -     * "nvme" (Non-Volatile Memory Express).
                +     * Optional. Interface type of local SSDs (default is `scsi`).
                +     * Valid values: `scsi` (Small Computer System Interface),
                +     * `nvme` (Non-Volatile Memory Express).
                      * See [local SSD
                      * performance](https://cloud.google.com/compute/docs/disks/local-ssd#performance).
                      * 
                @@ -1091,9 +1261,9 @@ public com.google.protobuf.ByteString getLocalSsdInterfaceBytes() { * * *
                -     * Optional. Interface type of local SSDs (default is "scsi").
                -     * Valid values: "scsi" (Small Computer System Interface),
                -     * "nvme" (Non-Volatile Memory Express).
                +     * Optional. Interface type of local SSDs (default is `scsi`).
                +     * Valid values: `scsi` (Small Computer System Interface),
                +     * `nvme` (Non-Volatile Memory Express).
                      * See [local SSD
                      * performance](https://cloud.google.com/compute/docs/disks/local-ssd#performance).
                      * 
                @@ -1117,9 +1287,9 @@ public Builder setLocalSsdInterface(java.lang.String value) { * * *
                -     * Optional. Interface type of local SSDs (default is "scsi").
                -     * Valid values: "scsi" (Small Computer System Interface),
                -     * "nvme" (Non-Volatile Memory Express).
                +     * Optional. Interface type of local SSDs (default is `scsi`).
                +     * Valid values: `scsi` (Small Computer System Interface),
                +     * `nvme` (Non-Volatile Memory Express).
                      * See [local SSD
                      * performance](https://cloud.google.com/compute/docs/disks/local-ssd#performance).
                      * 
                @@ -1139,9 +1309,9 @@ public Builder clearLocalSsdInterface() { * * *
                -     * Optional. Interface type of local SSDs (default is "scsi").
                -     * Valid values: "scsi" (Small Computer System Interface),
                -     * "nvme" (Non-Volatile Memory Express).
                +     * Optional. Interface type of local SSDs (default is `scsi`).
                +     * Valid values: `scsi` (Small Computer System Interface),
                +     * `nvme` (Non-Volatile Memory Express).
                      * See [local SSD
                      * performance](https://cloud.google.com/compute/docs/disks/local-ssd#performance).
                      * 
                @@ -1169,8 +1339,10 @@ public Builder setLocalSsdInterfaceBytes(com.google.protobuf.ByteString value) { * *
                      * Optional. Indicates how many IOPS to provision for the disk. This sets the
                -     * number of I/O operations per second that the disk can handle. Note: This
                -     * field is only supported if boot_disk_type is hyperdisk-balanced.
                +     * number of I/O operations per second that the disk can handle.
                +     * **This field is supported only if
                +     * [boot_disk_type][google.cloud.dataproc.v1.DiskConfig.boot_disk_type] is
                +     * `hyperdisk-balanced`.**
                      * 
                * * @@ -1189,8 +1361,10 @@ public boolean hasBootDiskProvisionedIops() { * *
                      * Optional. Indicates how many IOPS to provision for the disk. This sets the
                -     * number of I/O operations per second that the disk can handle. Note: This
                -     * field is only supported if boot_disk_type is hyperdisk-balanced.
                +     * number of I/O operations per second that the disk can handle.
                +     * **This field is supported only if
                +     * [boot_disk_type][google.cloud.dataproc.v1.DiskConfig.boot_disk_type] is
                +     * `hyperdisk-balanced`.**
                      * 
                * * @@ -1209,8 +1383,10 @@ public long getBootDiskProvisionedIops() { * *
                      * Optional. Indicates how many IOPS to provision for the disk. This sets the
                -     * number of I/O operations per second that the disk can handle. Note: This
                -     * field is only supported if boot_disk_type is hyperdisk-balanced.
                +     * number of I/O operations per second that the disk can handle.
                +     * **This field is supported only if
                +     * [boot_disk_type][google.cloud.dataproc.v1.DiskConfig.boot_disk_type] is
                +     * `hyperdisk-balanced`.**
                      * 
                * * @@ -1233,8 +1409,10 @@ public Builder setBootDiskProvisionedIops(long value) { * *
                      * Optional. Indicates how many IOPS to provision for the disk. This sets the
                -     * number of I/O operations per second that the disk can handle. Note: This
                -     * field is only supported if boot_disk_type is hyperdisk-balanced.
                +     * number of I/O operations per second that the disk can handle.
                +     * **This field is supported only if
                +     * [boot_disk_type][google.cloud.dataproc.v1.DiskConfig.boot_disk_type] is
                +     * `hyperdisk-balanced`.**
                      * 
                * * @@ -1258,8 +1436,9 @@ public Builder clearBootDiskProvisionedIops() { *
                      * Optional. Indicates how much throughput to provision for the disk. This
                      * sets the number of throughput mb per second that the disk can handle.
                -     * Values must be greater than or equal to 1. Note: This field is only
                -     * supported if boot_disk_type is hyperdisk-balanced.
                +     * Values must be greater than or equal to 1. **This field is supported only
                +     * if [boot_disk_type][google.cloud.dataproc.v1.DiskConfig.boot_disk_type] is
                +     * `hyperdisk-balanced`.**
                      * 
                * * @@ -1279,8 +1458,9 @@ public boolean hasBootDiskProvisionedThroughput() { *
                      * Optional. Indicates how much throughput to provision for the disk. This
                      * sets the number of throughput mb per second that the disk can handle.
                -     * Values must be greater than or equal to 1. Note: This field is only
                -     * supported if boot_disk_type is hyperdisk-balanced.
                +     * Values must be greater than or equal to 1. **This field is supported only
                +     * if [boot_disk_type][google.cloud.dataproc.v1.DiskConfig.boot_disk_type] is
                +     * `hyperdisk-balanced`.**
                      * 
                * * @@ -1300,8 +1480,9 @@ public long getBootDiskProvisionedThroughput() { *
                      * Optional. Indicates how much throughput to provision for the disk. This
                      * sets the number of throughput mb per second that the disk can handle.
                -     * Values must be greater than or equal to 1. Note: This field is only
                -     * supported if boot_disk_type is hyperdisk-balanced.
                +     * Values must be greater than or equal to 1. **This field is supported only
                +     * if [boot_disk_type][google.cloud.dataproc.v1.DiskConfig.boot_disk_type] is
                +     * `hyperdisk-balanced`.**
                      * 
                * * @@ -1325,8 +1506,9 @@ public Builder setBootDiskProvisionedThroughput(long value) { *
                      * Optional. Indicates how much throughput to provision for the disk. This
                      * sets the number of throughput mb per second that the disk can handle.
                -     * Values must be greater than or equal to 1. Note: This field is only
                -     * supported if boot_disk_type is hyperdisk-balanced.
                +     * Values must be greater than or equal to 1. **This field is supported only
                +     * if [boot_disk_type][google.cloud.dataproc.v1.DiskConfig.boot_disk_type] is
                +     * `hyperdisk-balanced`.**
                      * 
                * * @@ -1342,6 +1524,420 @@ public Builder clearBootDiskProvisionedThroughput() { return this; } + private java.util.List attachedDiskConfigs_ = + java.util.Collections.emptyList(); + + private void ensureAttachedDiskConfigsIsMutable() { + if (!((bitField0_ & 0x00000040) != 0)) { + attachedDiskConfigs_ = + new java.util.ArrayList( + attachedDiskConfigs_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dataproc.v1.AttachedDiskConfig, + com.google.cloud.dataproc.v1.AttachedDiskConfig.Builder, + com.google.cloud.dataproc.v1.AttachedDiskConfigOrBuilder> + attachedDiskConfigsBuilder_; + + /** + * + * + *
                +     * Optional. A list of attached disk configs for a group of VM instances.
                +     * 
                + * + * + * repeated .google.cloud.dataproc.v1.AttachedDiskConfig attached_disk_configs = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getAttachedDiskConfigsList() { + if (attachedDiskConfigsBuilder_ == null) { + return java.util.Collections.unmodifiableList(attachedDiskConfigs_); + } else { + return attachedDiskConfigsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                +     * Optional. A list of attached disk configs for a group of VM instances.
                +     * 
                + * + * + * repeated .google.cloud.dataproc.v1.AttachedDiskConfig attached_disk_configs = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getAttachedDiskConfigsCount() { + if (attachedDiskConfigsBuilder_ == null) { + return attachedDiskConfigs_.size(); + } else { + return attachedDiskConfigsBuilder_.getCount(); + } + } + + /** + * + * + *
                +     * Optional. A list of attached disk configs for a group of VM instances.
                +     * 
                + * + * + * repeated .google.cloud.dataproc.v1.AttachedDiskConfig attached_disk_configs = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.AttachedDiskConfig getAttachedDiskConfigs(int index) { + if (attachedDiskConfigsBuilder_ == null) { + return attachedDiskConfigs_.get(index); + } else { + return attachedDiskConfigsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                +     * Optional. A list of attached disk configs for a group of VM instances.
                +     * 
                + * + * + * repeated .google.cloud.dataproc.v1.AttachedDiskConfig attached_disk_configs = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAttachedDiskConfigs( + int index, com.google.cloud.dataproc.v1.AttachedDiskConfig value) { + if (attachedDiskConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttachedDiskConfigsIsMutable(); + attachedDiskConfigs_.set(index, value); + onChanged(); + } else { + attachedDiskConfigsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                +     * Optional. A list of attached disk configs for a group of VM instances.
                +     * 
                + * + * + * repeated .google.cloud.dataproc.v1.AttachedDiskConfig attached_disk_configs = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAttachedDiskConfigs( + int index, com.google.cloud.dataproc.v1.AttachedDiskConfig.Builder builderForValue) { + if (attachedDiskConfigsBuilder_ == null) { + ensureAttachedDiskConfigsIsMutable(); + attachedDiskConfigs_.set(index, builderForValue.build()); + onChanged(); + } else { + attachedDiskConfigsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                +     * Optional. A list of attached disk configs for a group of VM instances.
                +     * 
                + * + * + * repeated .google.cloud.dataproc.v1.AttachedDiskConfig attached_disk_configs = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAttachedDiskConfigs(com.google.cloud.dataproc.v1.AttachedDiskConfig value) { + if (attachedDiskConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttachedDiskConfigsIsMutable(); + attachedDiskConfigs_.add(value); + onChanged(); + } else { + attachedDiskConfigsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                +     * Optional. A list of attached disk configs for a group of VM instances.
                +     * 
                + * + * + * repeated .google.cloud.dataproc.v1.AttachedDiskConfig attached_disk_configs = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAttachedDiskConfigs( + int index, com.google.cloud.dataproc.v1.AttachedDiskConfig value) { + if (attachedDiskConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttachedDiskConfigsIsMutable(); + attachedDiskConfigs_.add(index, value); + onChanged(); + } else { + attachedDiskConfigsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                +     * Optional. A list of attached disk configs for a group of VM instances.
                +     * 
                + * + * + * repeated .google.cloud.dataproc.v1.AttachedDiskConfig attached_disk_configs = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAttachedDiskConfigs( + com.google.cloud.dataproc.v1.AttachedDiskConfig.Builder builderForValue) { + if (attachedDiskConfigsBuilder_ == null) { + ensureAttachedDiskConfigsIsMutable(); + attachedDiskConfigs_.add(builderForValue.build()); + onChanged(); + } else { + attachedDiskConfigsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                +     * Optional. A list of attached disk configs for a group of VM instances.
                +     * 
                + * + * + * repeated .google.cloud.dataproc.v1.AttachedDiskConfig attached_disk_configs = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAttachedDiskConfigs( + int index, com.google.cloud.dataproc.v1.AttachedDiskConfig.Builder builderForValue) { + if (attachedDiskConfigsBuilder_ == null) { + ensureAttachedDiskConfigsIsMutable(); + attachedDiskConfigs_.add(index, builderForValue.build()); + onChanged(); + } else { + attachedDiskConfigsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                +     * Optional. A list of attached disk configs for a group of VM instances.
                +     * 
                + * + * + * repeated .google.cloud.dataproc.v1.AttachedDiskConfig attached_disk_configs = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllAttachedDiskConfigs( + java.lang.Iterable values) { + if (attachedDiskConfigsBuilder_ == null) { + ensureAttachedDiskConfigsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, attachedDiskConfigs_); + onChanged(); + } else { + attachedDiskConfigsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                +     * Optional. A list of attached disk configs for a group of VM instances.
                +     * 
                + * + * + * repeated .google.cloud.dataproc.v1.AttachedDiskConfig attached_disk_configs = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAttachedDiskConfigs() { + if (attachedDiskConfigsBuilder_ == null) { + attachedDiskConfigs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + attachedDiskConfigsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                +     * Optional. A list of attached disk configs for a group of VM instances.
                +     * 
                + * + * + * repeated .google.cloud.dataproc.v1.AttachedDiskConfig attached_disk_configs = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeAttachedDiskConfigs(int index) { + if (attachedDiskConfigsBuilder_ == null) { + ensureAttachedDiskConfigsIsMutable(); + attachedDiskConfigs_.remove(index); + onChanged(); + } else { + attachedDiskConfigsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                +     * Optional. A list of attached disk configs for a group of VM instances.
                +     * 
                + * + * + * repeated .google.cloud.dataproc.v1.AttachedDiskConfig attached_disk_configs = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.AttachedDiskConfig.Builder getAttachedDiskConfigsBuilder( + int index) { + return internalGetAttachedDiskConfigsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                +     * Optional. A list of attached disk configs for a group of VM instances.
                +     * 
                + * + * + * repeated .google.cloud.dataproc.v1.AttachedDiskConfig attached_disk_configs = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.AttachedDiskConfigOrBuilder getAttachedDiskConfigsOrBuilder( + int index) { + if (attachedDiskConfigsBuilder_ == null) { + return attachedDiskConfigs_.get(index); + } else { + return attachedDiskConfigsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                +     * Optional. A list of attached disk configs for a group of VM instances.
                +     * 
                + * + * + * repeated .google.cloud.dataproc.v1.AttachedDiskConfig attached_disk_configs = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getAttachedDiskConfigsOrBuilderList() { + if (attachedDiskConfigsBuilder_ != null) { + return attachedDiskConfigsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(attachedDiskConfigs_); + } + } + + /** + * + * + *
                +     * Optional. A list of attached disk configs for a group of VM instances.
                +     * 
                + * + * + * repeated .google.cloud.dataproc.v1.AttachedDiskConfig attached_disk_configs = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.AttachedDiskConfig.Builder addAttachedDiskConfigsBuilder() { + return internalGetAttachedDiskConfigsFieldBuilder() + .addBuilder(com.google.cloud.dataproc.v1.AttachedDiskConfig.getDefaultInstance()); + } + + /** + * + * + *
                +     * Optional. A list of attached disk configs for a group of VM instances.
                +     * 
                + * + * + * repeated .google.cloud.dataproc.v1.AttachedDiskConfig attached_disk_configs = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.AttachedDiskConfig.Builder addAttachedDiskConfigsBuilder( + int index) { + return internalGetAttachedDiskConfigsFieldBuilder() + .addBuilder(index, com.google.cloud.dataproc.v1.AttachedDiskConfig.getDefaultInstance()); + } + + /** + * + * + *
                +     * Optional. A list of attached disk configs for a group of VM instances.
                +     * 
                + * + * + * repeated .google.cloud.dataproc.v1.AttachedDiskConfig attached_disk_configs = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getAttachedDiskConfigsBuilderList() { + return internalGetAttachedDiskConfigsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dataproc.v1.AttachedDiskConfig, + com.google.cloud.dataproc.v1.AttachedDiskConfig.Builder, + com.google.cloud.dataproc.v1.AttachedDiskConfigOrBuilder> + internalGetAttachedDiskConfigsFieldBuilder() { + if (attachedDiskConfigsBuilder_ == null) { + attachedDiskConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dataproc.v1.AttachedDiskConfig, + com.google.cloud.dataproc.v1.AttachedDiskConfig.Builder, + com.google.cloud.dataproc.v1.AttachedDiskConfigOrBuilder>( + attachedDiskConfigs_, + ((bitField0_ & 0x00000040) != 0), + getParentForChildren(), + isClean()); + attachedDiskConfigs_ = null; + } + return attachedDiskConfigsBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.DiskConfig) } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfigOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfigOrBuilder.java index 852ad06a20f3..fe88b61ee09b 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfigOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfigOrBuilder.java @@ -30,10 +30,10 @@ public interface DiskConfigOrBuilder * * *
                -   * Optional. Type of the boot disk (default is "pd-standard").
                -   * Valid values: "pd-balanced" (Persistent Disk Balanced Solid State Drive),
                -   * "pd-ssd" (Persistent Disk Solid State Drive),
                -   * or "pd-standard" (Persistent Disk Hard Disk Drive).
                +   * Optional. Type of the boot disk (default is `pd-standard`).
                +   * Valid values: `pd-balanced` (Persistent Disk Balanced Solid State Drive),
                +   * `pd-ssd` (Persistent Disk Solid State Drive),
                +   * or `pd-standard` (Persistent Disk Hard Disk Drive).
                    * See [Disk types](https://cloud.google.com/compute/docs/disks#disk-types).
                    * 
                * @@ -47,10 +47,10 @@ public interface DiskConfigOrBuilder * * *
                -   * Optional. Type of the boot disk (default is "pd-standard").
                -   * Valid values: "pd-balanced" (Persistent Disk Balanced Solid State Drive),
                -   * "pd-ssd" (Persistent Disk Solid State Drive),
                -   * or "pd-standard" (Persistent Disk Hard Disk Drive).
                +   * Optional. Type of the boot disk (default is `pd-standard`).
                +   * Valid values: `pd-balanced` (Persistent Disk Balanced Solid State Drive),
                +   * `pd-ssd` (Persistent Disk Solid State Drive),
                +   * or `pd-standard` (Persistent Disk Hard Disk Drive).
                    * See [Disk types](https://cloud.google.com/compute/docs/disks#disk-types).
                    * 
                * @@ -98,9 +98,9 @@ public interface DiskConfigOrBuilder * * *
                -   * Optional. Interface type of local SSDs (default is "scsi").
                -   * Valid values: "scsi" (Small Computer System Interface),
                -   * "nvme" (Non-Volatile Memory Express).
                +   * Optional. Interface type of local SSDs (default is `scsi`).
                +   * Valid values: `scsi` (Small Computer System Interface),
                +   * `nvme` (Non-Volatile Memory Express).
                    * See [local SSD
                    * performance](https://cloud.google.com/compute/docs/disks/local-ssd#performance).
                    * 
                @@ -115,9 +115,9 @@ public interface DiskConfigOrBuilder * * *
                -   * Optional. Interface type of local SSDs (default is "scsi").
                -   * Valid values: "scsi" (Small Computer System Interface),
                -   * "nvme" (Non-Volatile Memory Express).
                +   * Optional. Interface type of local SSDs (default is `scsi`).
                +   * Valid values: `scsi` (Small Computer System Interface),
                +   * `nvme` (Non-Volatile Memory Express).
                    * See [local SSD
                    * performance](https://cloud.google.com/compute/docs/disks/local-ssd#performance).
                    * 
                @@ -133,8 +133,10 @@ public interface DiskConfigOrBuilder * *
                    * Optional. Indicates how many IOPS to provision for the disk. This sets the
                -   * number of I/O operations per second that the disk can handle. Note: This
                -   * field is only supported if boot_disk_type is hyperdisk-balanced.
                +   * number of I/O operations per second that the disk can handle.
                +   * **This field is supported only if
                +   * [boot_disk_type][google.cloud.dataproc.v1.DiskConfig.boot_disk_type] is
                +   * `hyperdisk-balanced`.**
                    * 
                * * optional int64 boot_disk_provisioned_iops = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -149,8 +151,10 @@ public interface DiskConfigOrBuilder * *
                    * Optional. Indicates how many IOPS to provision for the disk. This sets the
                -   * number of I/O operations per second that the disk can handle. Note: This
                -   * field is only supported if boot_disk_type is hyperdisk-balanced.
                +   * number of I/O operations per second that the disk can handle.
                +   * **This field is supported only if
                +   * [boot_disk_type][google.cloud.dataproc.v1.DiskConfig.boot_disk_type] is
                +   * `hyperdisk-balanced`.**
                    * 
                * * optional int64 boot_disk_provisioned_iops = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -166,8 +170,9 @@ public interface DiskConfigOrBuilder *
                    * Optional. Indicates how much throughput to provision for the disk. This
                    * sets the number of throughput mb per second that the disk can handle.
                -   * Values must be greater than or equal to 1. Note: This field is only
                -   * supported if boot_disk_type is hyperdisk-balanced.
                +   * Values must be greater than or equal to 1. **This field is supported only
                +   * if [boot_disk_type][google.cloud.dataproc.v1.DiskConfig.boot_disk_type] is
                +   * `hyperdisk-balanced`.**
                    * 
                * * @@ -184,8 +189,9 @@ public interface DiskConfigOrBuilder *
                    * Optional. Indicates how much throughput to provision for the disk. This
                    * sets the number of throughput mb per second that the disk can handle.
                -   * Values must be greater than or equal to 1. Note: This field is only
                -   * supported if boot_disk_type is hyperdisk-balanced.
                +   * Values must be greater than or equal to 1. **This field is supported only
                +   * if [boot_disk_type][google.cloud.dataproc.v1.DiskConfig.boot_disk_type] is
                +   * `hyperdisk-balanced`.**
                    * 
                * * @@ -195,4 +201,71 @@ public interface DiskConfigOrBuilder * @return The bootDiskProvisionedThroughput. */ long getBootDiskProvisionedThroughput(); + + /** + * + * + *
                +   * Optional. A list of attached disk configs for a group of VM instances.
                +   * 
                + * + * + * repeated .google.cloud.dataproc.v1.AttachedDiskConfig attached_disk_configs = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getAttachedDiskConfigsList(); + + /** + * + * + *
                +   * Optional. A list of attached disk configs for a group of VM instances.
                +   * 
                + * + * + * repeated .google.cloud.dataproc.v1.AttachedDiskConfig attached_disk_configs = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dataproc.v1.AttachedDiskConfig getAttachedDiskConfigs(int index); + + /** + * + * + *
                +   * Optional. A list of attached disk configs for a group of VM instances.
                +   * 
                + * + * + * repeated .google.cloud.dataproc.v1.AttachedDiskConfig attached_disk_configs = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getAttachedDiskConfigsCount(); + + /** + * + * + *
                +   * Optional. A list of attached disk configs for a group of VM instances.
                +   * 
                + * + * + * repeated .google.cloud.dataproc.v1.AttachedDiskConfig attached_disk_configs = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getAttachedDiskConfigsOrBuilderList(); + + /** + * + * + *
                +   * Optional. A list of attached disk configs for a group of VM instances.
                +   * 
                + * + * + * repeated .google.cloud.dataproc.v1.AttachedDiskConfig attached_disk_configs = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dataproc.v1.AttachedDiskConfigOrBuilder getAttachedDiskConfigsOrBuilder( + int index); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceFlexibilityPolicy.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceFlexibilityPolicy.java index 4161b090e1b1..05df7a45ba6f 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceFlexibilityPolicy.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceFlexibilityPolicy.java @@ -1014,6 +1014,58 @@ public interface InstanceSelectionOrBuilder * @return The rank. */ int getRank(); + + /** + * + * + *
                +     * Optional. Disk configuration to apply to the instances in this instance
                +     * selection. If specified on any entry in instanceSelectionList, then it
                +     * must be specified on every entry in instanceSelectionList and the
                +     * instanceGroupConfig must not specify any diskConfig.
                +     * 
                + * + * + * .google.cloud.dataproc.v1.DiskConfig disk_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the diskConfig field is set. + */ + boolean hasDiskConfig(); + + /** + * + * + *
                +     * Optional. Disk configuration to apply to the instances in this instance
                +     * selection. If specified on any entry in instanceSelectionList, then it
                +     * must be specified on every entry in instanceSelectionList and the
                +     * instanceGroupConfig must not specify any diskConfig.
                +     * 
                + * + * + * .google.cloud.dataproc.v1.DiskConfig disk_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The diskConfig. + */ + com.google.cloud.dataproc.v1.DiskConfig getDiskConfig(); + + /** + * + * + *
                +     * Optional. Disk configuration to apply to the instances in this instance
                +     * selection. If specified on any entry in instanceSelectionList, then it
                +     * must be specified on every entry in instanceSelectionList and the
                +     * instanceGroupConfig must not specify any diskConfig.
                +     * 
                + * + * + * .google.cloud.dataproc.v1.DiskConfig disk_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dataproc.v1.DiskConfigOrBuilder getDiskConfigOrBuilder(); } /** @@ -1066,6 +1118,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .class); } + private int bitField0_; public static final int MACHINE_TYPES_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -1157,6 +1210,74 @@ public int getRank() { return rank_; } + public static final int DISK_CONFIG_FIELD_NUMBER = 3; + private com.google.cloud.dataproc.v1.DiskConfig diskConfig_; + + /** + * + * + *
                +     * Optional. Disk configuration to apply to the instances in this instance
                +     * selection. If specified on any entry in instanceSelectionList, then it
                +     * must be specified on every entry in instanceSelectionList and the
                +     * instanceGroupConfig must not specify any diskConfig.
                +     * 
                + * + * + * .google.cloud.dataproc.v1.DiskConfig disk_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the diskConfig field is set. + */ + @java.lang.Override + public boolean hasDiskConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                +     * Optional. Disk configuration to apply to the instances in this instance
                +     * selection. If specified on any entry in instanceSelectionList, then it
                +     * must be specified on every entry in instanceSelectionList and the
                +     * instanceGroupConfig must not specify any diskConfig.
                +     * 
                + * + * + * .google.cloud.dataproc.v1.DiskConfig disk_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The diskConfig. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.DiskConfig getDiskConfig() { + return diskConfig_ == null + ? com.google.cloud.dataproc.v1.DiskConfig.getDefaultInstance() + : diskConfig_; + } + + /** + * + * + *
                +     * Optional. Disk configuration to apply to the instances in this instance
                +     * selection. If specified on any entry in instanceSelectionList, then it
                +     * must be specified on every entry in instanceSelectionList and the
                +     * instanceGroupConfig must not specify any diskConfig.
                +     * 
                + * + * + * .google.cloud.dataproc.v1.DiskConfig disk_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.DiskConfigOrBuilder getDiskConfigOrBuilder() { + return diskConfig_ == null + ? com.google.cloud.dataproc.v1.DiskConfig.getDefaultInstance() + : diskConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1177,6 +1298,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (rank_ != 0) { output.writeInt32(2, rank_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getDiskConfig()); + } getUnknownFields().writeTo(output); } @@ -1197,6 +1321,9 @@ public int getSerializedSize() { if (rank_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, rank_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDiskConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1216,6 +1343,10 @@ public boolean equals(final java.lang.Object obj) { if (!getMachineTypesList().equals(other.getMachineTypesList())) return false; if (getRank() != other.getRank()) return false; + if (hasDiskConfig() != other.hasDiskConfig()) return false; + if (hasDiskConfig()) { + if (!getDiskConfig().equals(other.getDiskConfig())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1233,6 +1364,10 @@ public int hashCode() { } hash = (37 * hash) + RANK_FIELD_NUMBER; hash = (53 * hash) + getRank(); + if (hasDiskConfig()) { + hash = (37 * hash) + DISK_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDiskConfig().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1372,10 +1507,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.InstanceSelection.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) { + internalGetDiskConfigFieldBuilder(); + } } @java.lang.Override @@ -1384,6 +1528,11 @@ public Builder clear() { bitField0_ = 0; machineTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); rank_ = 0; + diskConfig_ = null; + if (diskConfigBuilder_ != null) { + diskConfigBuilder_.dispose(); + diskConfigBuilder_ = null; + } return this; } @@ -1432,6 +1581,13 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000002) != 0)) { result.rank_ = rank_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.diskConfig_ = + diskConfigBuilder_ == null ? diskConfig_ : diskConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -1464,6 +1620,9 @@ public Builder mergeFrom( if (other.getRank() != 0) { setRank(other.getRank()); } + if (other.hasDiskConfig()) { + mergeDiskConfig(other.getDiskConfig()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1503,6 +1662,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 16 + case 26: + { + input.readMessage( + internalGetDiskConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1773,6 +1939,246 @@ public Builder clearRank() { return this; } + private com.google.cloud.dataproc.v1.DiskConfig diskConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataproc.v1.DiskConfig, + com.google.cloud.dataproc.v1.DiskConfig.Builder, + com.google.cloud.dataproc.v1.DiskConfigOrBuilder> + diskConfigBuilder_; + + /** + * + * + *
                +       * Optional. Disk configuration to apply to the instances in this instance
                +       * selection. If specified on any entry in instanceSelectionList, then it
                +       * must be specified on every entry in instanceSelectionList and the
                +       * instanceGroupConfig must not specify any diskConfig.
                +       * 
                + * + * + * .google.cloud.dataproc.v1.DiskConfig disk_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the diskConfig field is set. + */ + public boolean hasDiskConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                +       * Optional. Disk configuration to apply to the instances in this instance
                +       * selection. If specified on any entry in instanceSelectionList, then it
                +       * must be specified on every entry in instanceSelectionList and the
                +       * instanceGroupConfig must not specify any diskConfig.
                +       * 
                + * + * + * .google.cloud.dataproc.v1.DiskConfig disk_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The diskConfig. + */ + public com.google.cloud.dataproc.v1.DiskConfig getDiskConfig() { + if (diskConfigBuilder_ == null) { + return diskConfig_ == null + ? com.google.cloud.dataproc.v1.DiskConfig.getDefaultInstance() + : diskConfig_; + } else { + return diskConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
                +       * Optional. Disk configuration to apply to the instances in this instance
                +       * selection. If specified on any entry in instanceSelectionList, then it
                +       * must be specified on every entry in instanceSelectionList and the
                +       * instanceGroupConfig must not specify any diskConfig.
                +       * 
                + * + * + * .google.cloud.dataproc.v1.DiskConfig disk_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDiskConfig(com.google.cloud.dataproc.v1.DiskConfig value) { + if (diskConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + diskConfig_ = value; + } else { + diskConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                +       * Optional. Disk configuration to apply to the instances in this instance
                +       * selection. If specified on any entry in instanceSelectionList, then it
                +       * must be specified on every entry in instanceSelectionList and the
                +       * instanceGroupConfig must not specify any diskConfig.
                +       * 
                + * + * + * .google.cloud.dataproc.v1.DiskConfig disk_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDiskConfig( + com.google.cloud.dataproc.v1.DiskConfig.Builder builderForValue) { + if (diskConfigBuilder_ == null) { + diskConfig_ = builderForValue.build(); + } else { + diskConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                +       * Optional. Disk configuration to apply to the instances in this instance
                +       * selection. If specified on any entry in instanceSelectionList, then it
                +       * must be specified on every entry in instanceSelectionList and the
                +       * instanceGroupConfig must not specify any diskConfig.
                +       * 
                + * + * + * .google.cloud.dataproc.v1.DiskConfig disk_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDiskConfig(com.google.cloud.dataproc.v1.DiskConfig value) { + if (diskConfigBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && diskConfig_ != null + && diskConfig_ != com.google.cloud.dataproc.v1.DiskConfig.getDefaultInstance()) { + getDiskConfigBuilder().mergeFrom(value); + } else { + diskConfig_ = value; + } + } else { + diskConfigBuilder_.mergeFrom(value); + } + if (diskConfig_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                +       * Optional. Disk configuration to apply to the instances in this instance
                +       * selection. If specified on any entry in instanceSelectionList, then it
                +       * must be specified on every entry in instanceSelectionList and the
                +       * instanceGroupConfig must not specify any diskConfig.
                +       * 
                + * + * + * .google.cloud.dataproc.v1.DiskConfig disk_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDiskConfig() { + bitField0_ = (bitField0_ & ~0x00000004); + diskConfig_ = null; + if (diskConfigBuilder_ != null) { + diskConfigBuilder_.dispose(); + diskConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                +       * Optional. Disk configuration to apply to the instances in this instance
                +       * selection. If specified on any entry in instanceSelectionList, then it
                +       * must be specified on every entry in instanceSelectionList and the
                +       * instanceGroupConfig must not specify any diskConfig.
                +       * 
                + * + * + * .google.cloud.dataproc.v1.DiskConfig disk_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.DiskConfig.Builder getDiskConfigBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetDiskConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
                +       * Optional. Disk configuration to apply to the instances in this instance
                +       * selection. If specified on any entry in instanceSelectionList, then it
                +       * must be specified on every entry in instanceSelectionList and the
                +       * instanceGroupConfig must not specify any diskConfig.
                +       * 
                + * + * + * .google.cloud.dataproc.v1.DiskConfig disk_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.DiskConfigOrBuilder getDiskConfigOrBuilder() { + if (diskConfigBuilder_ != null) { + return diskConfigBuilder_.getMessageOrBuilder(); + } else { + return diskConfig_ == null + ? com.google.cloud.dataproc.v1.DiskConfig.getDefaultInstance() + : diskConfig_; + } + } + + /** + * + * + *
                +       * Optional. Disk configuration to apply to the instances in this instance
                +       * selection. If specified on any entry in instanceSelectionList, then it
                +       * must be specified on every entry in instanceSelectionList and the
                +       * instanceGroupConfig must not specify any diskConfig.
                +       * 
                + * + * + * .google.cloud.dataproc.v1.DiskConfig disk_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataproc.v1.DiskConfig, + com.google.cloud.dataproc.v1.DiskConfig.Builder, + com.google.cloud.dataproc.v1.DiskConfigOrBuilder> + internalGetDiskConfigFieldBuilder() { + if (diskConfigBuilder_ == null) { + diskConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataproc.v1.DiskConfig, + com.google.cloud.dataproc.v1.DiskConfig.Builder, + com.google.cloud.dataproc.v1.DiskConfigOrBuilder>( + getDiskConfig(), getParentForChildren(), isClean()); + diskConfig_ = null; + } + return diskConfigBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.InstanceFlexibilityPolicy.InstanceSelection) } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/clusters.proto b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/clusters.proto index 984f3ebbdadc..2e50b5f4bb03 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/clusters.proto +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/clusters.proto @@ -910,6 +910,12 @@ message InstanceFlexibilityPolicy { // availability. Machine types and instance selections with the same // priority have the same preference. int32 rank = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Disk configuration to apply to the instances in this instance + // selection. If specified on any entry in instanceSelectionList, then it + // must be specified on every entry in instanceSelectionList and the + // instanceGroupConfig must not specify any diskConfig. + DiskConfig disk_config = 3 [(google.api.field_behavior) = OPTIONAL]; } // Defines a mapping from machine types to the number of VMs that are created @@ -964,12 +970,13 @@ message AcceleratorConfig { int32 accelerator_count = 2; } -// Specifies the config of disk options for a group of VM instances. +// Specifies the config of boot disk and attached disk options for a group of VM +// instances. message DiskConfig { - // Optional. Type of the boot disk (default is "pd-standard"). - // Valid values: "pd-balanced" (Persistent Disk Balanced Solid State Drive), - // "pd-ssd" (Persistent Disk Solid State Drive), - // or "pd-standard" (Persistent Disk Hard Disk Drive). + // Optional. Type of the boot disk (default is `pd-standard`). + // Valid values: `pd-balanced` (Persistent Disk Balanced Solid State Drive), + // `pd-ssd` (Persistent Disk Solid State Drive), + // or `pd-standard` (Persistent Disk Hard Disk Drive). // See [Disk types](https://cloud.google.com/compute/docs/disks#disk-types). string boot_disk_type = 3 [(google.api.field_behavior) = OPTIONAL]; @@ -987,25 +994,70 @@ message DiskConfig { // selected. int32 num_local_ssds = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Interface type of local SSDs (default is "scsi"). - // Valid values: "scsi" (Small Computer System Interface), - // "nvme" (Non-Volatile Memory Express). + // Optional. Interface type of local SSDs (default is `scsi`). + // Valid values: `scsi` (Small Computer System Interface), + // `nvme` (Non-Volatile Memory Express). // See [local SSD // performance](https://cloud.google.com/compute/docs/disks/local-ssd#performance). string local_ssd_interface = 4 [(google.api.field_behavior) = OPTIONAL]; // Optional. Indicates how many IOPS to provision for the disk. This sets the - // number of I/O operations per second that the disk can handle. Note: This - // field is only supported if boot_disk_type is hyperdisk-balanced. + // number of I/O operations per second that the disk can handle. + // **This field is supported only if + // [boot_disk_type][google.cloud.dataproc.v1.DiskConfig.boot_disk_type] is + // `hyperdisk-balanced`.** optional int64 boot_disk_provisioned_iops = 5 [(google.api.field_behavior) = OPTIONAL]; // Optional. Indicates how much throughput to provision for the disk. This // sets the number of throughput mb per second that the disk can handle. - // Values must be greater than or equal to 1. Note: This field is only - // supported if boot_disk_type is hyperdisk-balanced. + // Values must be greater than or equal to 1. **This field is supported only + // if [boot_disk_type][google.cloud.dataproc.v1.DiskConfig.boot_disk_type] is + // `hyperdisk-balanced`.** optional int64 boot_disk_provisioned_throughput = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A list of attached disk configs for a group of VM instances. + repeated AttachedDiskConfig attached_disk_configs = 7 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Specifies the config of attached disk options for single VM instance. +message AttachedDiskConfig { + enum DiskType { + // Required unspecified disk type. + DISK_TYPE_UNSPECIFIED = 0; + + // Hyperdisk Balanced disk type. + HYPERDISK_BALANCED = 1; + + // Hyperdisk Extreme disk type. + HYPERDISK_EXTREME = 2; + + // Hyperdisk ML disk type. + HYPERDISK_ML = 3; + + // Hyperdisk Throughput disk type. + HYPERDISK_THROUGHPUT = 4; + } + + // Optional. Disk type. + DiskType disk_type = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Disk size in GB. + int32 disk_size_gb = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Indicates how many IOPS to provision for the attached disk. This + // sets the number of I/O operations per second that the disk can handle. See + // https://cloud.google.com/compute/docs/disks/hyperdisks#hyperdisk-features + optional int64 provisioned_iops = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Indicates how much throughput to provision for the attached + // disk. This sets the number of throughput mb per second that the disk can + // handle. See + // https://cloud.google.com/compute/docs/disks/hyperdisks#hyperdisk-features + optional int64 provisioned_throughput = 4 + [(google.api.field_behavior) = OPTIONAL]; } // Node group identification and configuration information. diff --git a/java-modelarmor/google-cloud-modelarmor/src/main/resources/META-INF/native-image/com.google.cloud.modelarmor.v1/reflect-config.json b/java-modelarmor/google-cloud-modelarmor/src/main/resources/META-INF/native-image/com.google.cloud.modelarmor.v1/reflect-config.json index b96941009f4b..aa5e68aea7b5 100644 --- a/java-modelarmor/google-cloud-modelarmor/src/main/resources/META-INF/native-image/com.google.cloud.modelarmor.v1/reflect-config.json +++ b/java-modelarmor/google-cloud-modelarmor/src/main/resources/META-INF/native-image/com.google.cloud.modelarmor.v1/reflect-config.json @@ -1007,6 +1007,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.modelarmor.v1.Modality", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata", "queryAllDeclaredConstructors": true, @@ -1322,6 +1331,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.modelarmor.v1.SdpContentLocation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.modelarmor.v1.SdpContentLocation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.modelarmor.v1.SdpDeidentifyResult", "queryAllDeclaredConstructors": true, @@ -1421,6 +1448,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.modelarmor.v1.SdpImageFindingLocation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.modelarmor.v1.SdpImageFindingLocation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.modelarmor.v1.SdpImageFindingLocation$SdpBoundingBox", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.modelarmor.v1.SdpImageFindingLocation$SdpBoundingBox$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.modelarmor.v1.SdpInspectResult", "queryAllDeclaredConstructors": true, @@ -1439,6 +1502,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.modelarmor.v1.SdpRedactResult", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.modelarmor.v1.SdpRedactResult$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.modelarmor.v1.StreamingMode", "queryAllDeclaredConstructors": true, diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/ByteDataItem.java b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/ByteDataItem.java index f6128af21d63..ef0f116fcce0 100644 --- a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/ByteDataItem.java +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/ByteDataItem.java @@ -161,6 +161,16 @@ public enum ByteItemType implements com.google.protobuf.ProtocolMessageEnum { * CSV = 7; */ CSV(7), + /** + * + * + *
                +     * IMAGE
                +     * 
                + * + * IMAGE = 8; + */ + IMAGE(8), UNRECOGNIZED(-1), ; @@ -262,6 +272,17 @@ public enum ByteItemType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CSV_VALUE = 7; + /** + * + * + *
                +     * IMAGE
                +     * 
                + * + * IMAGE = 8; + */ + public static final int IMAGE_VALUE = 8; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -302,6 +323,8 @@ public static ByteItemType forNumber(int value) { return TXT; case 7: return CSV; + case 8: + return IMAGE; default: return null; } diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/Modality.java b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/Modality.java new file mode 100644 index 000000000000..2acd14831ddc --- /dev/null +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/Modality.java @@ -0,0 +1,200 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/modelarmor/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.modelarmor.v1; + +/** + * + * + *
                + * This enum is used in the TemplateMetadata message to indicate the modality
                + * supported for sanitize API calls.
                + * 
                + * + * Protobuf enum {@code google.cloud.modelarmor.v1.Modality} + */ +@com.google.protobuf.Generated +public enum Modality implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                +   * Unspecified modality. If specified, all modalities will be sanitized.
                +   * 
                + * + * MODALITY_UNSPECIFIED = 0; + */ + MODALITY_UNSPECIFIED(0), + /** + * + * + *
                +   * Represents text modality. If specified, it will sanitize text fields, and
                +   * text extracted from rich text files (like PDFs, DOCs) and plain text files
                +   * (like TXT).
                +   * 
                + * + * MODALITY_TEXT = 1; + */ + MODALITY_TEXT(1), + /** + * + * + *
                +   * Represents image modality. If specified, it will sanitize image files. The
                +   * visual content and the text content in the image will be sanitized
                +   * depending on the filter configuration.
                +   * 
                + * + * MODALITY_IMAGE = 2; + */ + MODALITY_IMAGE(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Modality"); + } + + /** + * + * + *
                +   * Unspecified modality. If specified, all modalities will be sanitized.
                +   * 
                + * + * MODALITY_UNSPECIFIED = 0; + */ + public static final int MODALITY_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                +   * Represents text modality. If specified, it will sanitize text fields, and
                +   * text extracted from rich text files (like PDFs, DOCs) and plain text files
                +   * (like TXT).
                +   * 
                + * + * MODALITY_TEXT = 1; + */ + public static final int MODALITY_TEXT_VALUE = 1; + + /** + * + * + *
                +   * Represents image modality. If specified, it will sanitize image files. The
                +   * visual content and the text content in the image will be sanitized
                +   * depending on the filter configuration.
                +   * 
                + * + * MODALITY_IMAGE = 2; + */ + public static final int MODALITY_IMAGE_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 Modality 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 Modality forNumber(int value) { + switch (value) { + case 0: + return MODALITY_UNSPECIFIED; + case 1: + return MODALITY_TEXT; + case 2: + return MODALITY_IMAGE; + 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 Modality findValueByNumber(int number) { + return Modality.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.modelarmor.v1.V1mainProto.getDescriptor().getEnumTypes().get(7); + } + + private static final Modality[] VALUES = values(); + + public static Modality 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 Modality(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.modelarmor.v1.Modality) +} diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/PiAndJailbreakFilterSettings.java b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/PiAndJailbreakFilterSettings.java index 26db3f9dbb7f..6c4d49a398ec 100644 --- a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/PiAndJailbreakFilterSettings.java +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/PiAndJailbreakFilterSettings.java @@ -107,7 +107,7 @@ public enum PiAndJailbreakFilterEnforcement implements com.google.protobuf.Proto * * *
                -     * Enabled
                +     * Disabled
                      * 
                * * DISABLED = 2; @@ -152,7 +152,7 @@ public enum PiAndJailbreakFilterEnforcement implements com.google.protobuf.Proto * * *
                -     * Enabled
                +     * Disabled
                      * 
                * * DISABLED = 2; diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/RaiFilterResult.java b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/RaiFilterResult.java index 49db95d183c2..7b7299edb445 100644 --- a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/RaiFilterResult.java +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/RaiFilterResult.java @@ -1292,7 +1292,8 @@ public int getRaiFilterTypeResultsCount() { * *
                    * The map of RAI filter results where key is RAI filter type - either of
                -   * "sexually_explicit", "hate_speech", "harassment", "dangerous".
                +   * "sexually_explicit", "hate_speech", "harassment", "dangerous", "violence",
                +   * "sexually_suggestive".
                    * 
                * * @@ -1321,7 +1322,8 @@ public boolean containsRaiFilterTypeResults(java.lang.String key) { * *
                    * The map of RAI filter results where key is RAI filter type - either of
                -   * "sexually_explicit", "hate_speech", "harassment", "dangerous".
                +   * "sexually_explicit", "hate_speech", "harassment", "dangerous", "violence",
                +   * "sexually_suggestive".
                    * 
                * * @@ -1340,7 +1342,8 @@ public boolean containsRaiFilterTypeResults(java.lang.String key) { * *
                    * The map of RAI filter results where key is RAI filter type - either of
                -   * "sexually_explicit", "hate_speech", "harassment", "dangerous".
                +   * "sexually_explicit", "hate_speech", "harassment", "dangerous", "violence",
                +   * "sexually_suggestive".
                    * 
                * * @@ -1367,7 +1370,8 @@ public boolean containsRaiFilterTypeResults(java.lang.String key) { * *
                    * The map of RAI filter results where key is RAI filter type - either of
                -   * "sexually_explicit", "hate_speech", "harassment", "dangerous".
                +   * "sexually_explicit", "hate_speech", "harassment", "dangerous", "violence",
                +   * "sexually_suggestive".
                    * 
                * * @@ -2585,7 +2589,8 @@ public int getRaiFilterTypeResultsCount() { * *
                      * The map of RAI filter results where key is RAI filter type - either of
                -     * "sexually_explicit", "hate_speech", "harassment", "dangerous".
                +     * "sexually_explicit", "hate_speech", "harassment", "dangerous", "violence",
                +     * "sexually_suggestive".
                      * 
                * * @@ -2614,7 +2619,8 @@ public boolean containsRaiFilterTypeResults(java.lang.String key) { * *
                      * The map of RAI filter results where key is RAI filter type - either of
                -     * "sexually_explicit", "hate_speech", "harassment", "dangerous".
                +     * "sexually_explicit", "hate_speech", "harassment", "dangerous", "violence",
                +     * "sexually_suggestive".
                      * 
                * * @@ -2633,7 +2639,8 @@ public boolean containsRaiFilterTypeResults(java.lang.String key) { * *
                      * The map of RAI filter results where key is RAI filter type - either of
                -     * "sexually_explicit", "hate_speech", "harassment", "dangerous".
                +     * "sexually_explicit", "hate_speech", "harassment", "dangerous", "violence",
                +     * "sexually_suggestive".
                      * 
                * * @@ -2663,7 +2670,8 @@ public boolean containsRaiFilterTypeResults(java.lang.String key) { * *
                      * The map of RAI filter results where key is RAI filter type - either of
                -     * "sexually_explicit", "hate_speech", "harassment", "dangerous".
                +     * "sexually_explicit", "hate_speech", "harassment", "dangerous", "violence",
                +     * "sexually_suggestive".
                      * 
                * * @@ -2697,7 +2705,8 @@ public Builder clearRaiFilterTypeResults() { * *
                      * The map of RAI filter results where key is RAI filter type - either of
                -     * "sexually_explicit", "hate_speech", "harassment", "dangerous".
                +     * "sexually_explicit", "hate_speech", "harassment", "dangerous", "violence",
                +     * "sexually_suggestive".
                      * 
                * * @@ -2726,7 +2735,8 @@ public Builder removeRaiFilterTypeResults(java.lang.String key) { * *
                      * The map of RAI filter results where key is RAI filter type - either of
                -     * "sexually_explicit", "hate_speech", "harassment", "dangerous".
                +     * "sexually_explicit", "hate_speech", "harassment", "dangerous", "violence",
                +     * "sexually_suggestive".
                      * 
                * * @@ -2752,7 +2762,8 @@ public Builder putRaiFilterTypeResults( * *
                      * The map of RAI filter results where key is RAI filter type - either of
                -     * "sexually_explicit", "hate_speech", "harassment", "dangerous".
                +     * "sexually_explicit", "hate_speech", "harassment", "dangerous", "violence",
                +     * "sexually_suggestive".
                      * 
                * * @@ -2781,7 +2792,8 @@ public Builder putAllRaiFilterTypeResults( * *
                      * The map of RAI filter results where key is RAI filter type - either of
                -     * "sexually_explicit", "hate_speech", "harassment", "dangerous".
                +     * "sexually_explicit", "hate_speech", "harassment", "dangerous", "violence",
                +     * "sexually_suggestive".
                      * 
                * * diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/RaiFilterResultOrBuilder.java b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/RaiFilterResultOrBuilder.java index 310d7223c1d7..ec15e59e944a 100644 --- a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/RaiFilterResultOrBuilder.java +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/RaiFilterResultOrBuilder.java @@ -168,7 +168,8 @@ public interface RaiFilterResultOrBuilder * *
                    * The map of RAI filter results where key is RAI filter type - either of
                -   * "sexually_explicit", "hate_speech", "harassment", "dangerous".
                +   * "sexually_explicit", "hate_speech", "harassment", "dangerous", "violence",
                +   * "sexually_suggestive".
                    * 
                * * @@ -182,7 +183,8 @@ public interface RaiFilterResultOrBuilder * *
                    * The map of RAI filter results where key is RAI filter type - either of
                -   * "sexually_explicit", "hate_speech", "harassment", "dangerous".
                +   * "sexually_explicit", "hate_speech", "harassment", "dangerous", "violence",
                +   * "sexually_suggestive".
                    * 
                * * @@ -202,7 +204,8 @@ public interface RaiFilterResultOrBuilder * *
                    * The map of RAI filter results where key is RAI filter type - either of
                -   * "sexually_explicit", "hate_speech", "harassment", "dangerous".
                +   * "sexually_explicit", "hate_speech", "harassment", "dangerous", "violence",
                +   * "sexually_suggestive".
                    * 
                * * @@ -218,7 +221,8 @@ public interface RaiFilterResultOrBuilder * *
                    * The map of RAI filter results where key is RAI filter type - either of
                -   * "sexually_explicit", "hate_speech", "harassment", "dangerous".
                +   * "sexually_explicit", "hate_speech", "harassment", "dangerous", "violence",
                +   * "sexually_suggestive".
                    * 
                * * @@ -237,7 +241,8 @@ public interface RaiFilterResultOrBuilder * *
                    * The map of RAI filter results where key is RAI filter type - either of
                -   * "sexually_explicit", "hate_speech", "harassment", "dangerous".
                +   * "sexually_explicit", "hate_speech", "harassment", "dangerous", "violence",
                +   * "sexually_suggestive".
                    * 
                * * diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SdpContentLocation.java b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SdpContentLocation.java new file mode 100644 index 000000000000..7797504fdfe1 --- /dev/null +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SdpContentLocation.java @@ -0,0 +1,1021 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/modelarmor/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.modelarmor.v1; + +/** + * + * + *
                + * Precise location of the finding within a document, record, image, or
                + * metadata container.
                + * 
                + * + * Protobuf type {@code google.cloud.modelarmor.v1.SdpContentLocation} + */ +@com.google.protobuf.Generated +public final class SdpContentLocation extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.modelarmor.v1.SdpContentLocation) + SdpContentLocationOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SdpContentLocation"); + } + + // Use SdpContentLocation.newBuilder() to construct. + private SdpContentLocation(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SdpContentLocation() { + containerName_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.modelarmor.v1.V1mainProto + .internal_static_google_cloud_modelarmor_v1_SdpContentLocation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.modelarmor.v1.V1mainProto + .internal_static_google_cloud_modelarmor_v1_SdpContentLocation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.modelarmor.v1.SdpContentLocation.class, + com.google.cloud.modelarmor.v1.SdpContentLocation.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 { + IMAGE_FINDING_LOCATION(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 2: + return IMAGE_FINDING_LOCATION; + 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 IMAGE_FINDING_LOCATION_FIELD_NUMBER = 2; + + /** + * + * + *
                +   * Location within an image's pixels.
                +   * 
                + * + * .google.cloud.modelarmor.v1.SdpImageFindingLocation image_finding_location = 2; + * + * @return Whether the imageFindingLocation field is set. + */ + @java.lang.Override + public boolean hasImageFindingLocation() { + return locationCase_ == 2; + } + + /** + * + * + *
                +   * Location within an image's pixels.
                +   * 
                + * + * .google.cloud.modelarmor.v1.SdpImageFindingLocation image_finding_location = 2; + * + * @return The imageFindingLocation. + */ + @java.lang.Override + public com.google.cloud.modelarmor.v1.SdpImageFindingLocation getImageFindingLocation() { + if (locationCase_ == 2) { + return (com.google.cloud.modelarmor.v1.SdpImageFindingLocation) location_; + } + return com.google.cloud.modelarmor.v1.SdpImageFindingLocation.getDefaultInstance(); + } + + /** + * + * + *
                +   * Location within an image's pixels.
                +   * 
                + * + * .google.cloud.modelarmor.v1.SdpImageFindingLocation image_finding_location = 2; + */ + @java.lang.Override + public com.google.cloud.modelarmor.v1.SdpImageFindingLocationOrBuilder + getImageFindingLocationOrBuilder() { + if (locationCase_ == 2) { + return (com.google.cloud.modelarmor.v1.SdpImageFindingLocation) location_; + } + return com.google.cloud.modelarmor.v1.SdpImageFindingLocation.getDefaultInstance(); + } + + public static final int CONTAINER_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object containerName_ = ""; + + /** + * + * + *
                +   * Name of the container where the finding is located.
                +   * The top level name is the source file name or table name.
                +   *
                +   * Nested names could be absent if the embedded object has no string
                +   * identifier (for example, an image contained within a document).
                +   * 
                + * + * string container_name = 1; + * + * @return The containerName. + */ + @java.lang.Override + public java.lang.String getContainerName() { + java.lang.Object ref = containerName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + containerName_ = s; + return s; + } + } + + /** + * + * + *
                +   * Name of the container where the finding is located.
                +   * The top level name is the source file name or table name.
                +   *
                +   * Nested names could be absent if the embedded object has no string
                +   * identifier (for example, an image contained within a document).
                +   * 
                + * + * string container_name = 1; + * + * @return The bytes for containerName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getContainerNameBytes() { + java.lang.Object ref = containerName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + containerName_ = 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(containerName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, containerName_); + } + if (locationCase_ == 2) { + output.writeMessage(2, (com.google.cloud.modelarmor.v1.SdpImageFindingLocation) 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(containerName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, containerName_); + } + if (locationCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.modelarmor.v1.SdpImageFindingLocation) 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.modelarmor.v1.SdpContentLocation)) { + return super.equals(obj); + } + com.google.cloud.modelarmor.v1.SdpContentLocation other = + (com.google.cloud.modelarmor.v1.SdpContentLocation) obj; + + if (!getContainerName().equals(other.getContainerName())) return false; + if (!getLocationCase().equals(other.getLocationCase())) return false; + switch (locationCase_) { + case 2: + if (!getImageFindingLocation().equals(other.getImageFindingLocation())) 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) + CONTAINER_NAME_FIELD_NUMBER; + hash = (53 * hash) + getContainerName().hashCode(); + switch (locationCase_) { + case 2: + hash = (37 * hash) + IMAGE_FINDING_LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getImageFindingLocation().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.modelarmor.v1.SdpContentLocation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.modelarmor.v1.SdpContentLocation parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.modelarmor.v1.SdpContentLocation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.modelarmor.v1.SdpContentLocation parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.modelarmor.v1.SdpContentLocation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.modelarmor.v1.SdpContentLocation parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.modelarmor.v1.SdpContentLocation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.modelarmor.v1.SdpContentLocation parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.modelarmor.v1.SdpContentLocation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.modelarmor.v1.SdpContentLocation parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.modelarmor.v1.SdpContentLocation parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.modelarmor.v1.SdpContentLocation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.modelarmor.v1.SdpContentLocation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 of the finding within a document, record, image, or
                +   * metadata container.
                +   * 
                + * + * Protobuf type {@code google.cloud.modelarmor.v1.SdpContentLocation} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.modelarmor.v1.SdpContentLocation) + com.google.cloud.modelarmor.v1.SdpContentLocationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.modelarmor.v1.V1mainProto + .internal_static_google_cloud_modelarmor_v1_SdpContentLocation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.modelarmor.v1.V1mainProto + .internal_static_google_cloud_modelarmor_v1_SdpContentLocation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.modelarmor.v1.SdpContentLocation.class, + com.google.cloud.modelarmor.v1.SdpContentLocation.Builder.class); + } + + // Construct using com.google.cloud.modelarmor.v1.SdpContentLocation.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (imageFindingLocationBuilder_ != null) { + imageFindingLocationBuilder_.clear(); + } + containerName_ = ""; + locationCase_ = 0; + location_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.modelarmor.v1.V1mainProto + .internal_static_google_cloud_modelarmor_v1_SdpContentLocation_descriptor; + } + + @java.lang.Override + public com.google.cloud.modelarmor.v1.SdpContentLocation getDefaultInstanceForType() { + return com.google.cloud.modelarmor.v1.SdpContentLocation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.modelarmor.v1.SdpContentLocation build() { + com.google.cloud.modelarmor.v1.SdpContentLocation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.modelarmor.v1.SdpContentLocation buildPartial() { + com.google.cloud.modelarmor.v1.SdpContentLocation result = + new com.google.cloud.modelarmor.v1.SdpContentLocation(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.modelarmor.v1.SdpContentLocation result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.containerName_ = containerName_; + } + } + + private void buildPartialOneofs(com.google.cloud.modelarmor.v1.SdpContentLocation result) { + result.locationCase_ = locationCase_; + result.location_ = this.location_; + if (locationCase_ == 2 && imageFindingLocationBuilder_ != null) { + result.location_ = imageFindingLocationBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.modelarmor.v1.SdpContentLocation) { + return mergeFrom((com.google.cloud.modelarmor.v1.SdpContentLocation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.modelarmor.v1.SdpContentLocation other) { + if (other == com.google.cloud.modelarmor.v1.SdpContentLocation.getDefaultInstance()) + return this; + if (!other.getContainerName().isEmpty()) { + containerName_ = other.containerName_; + bitField0_ |= 0x00000002; + onChanged(); + } + switch (other.getLocationCase()) { + case IMAGE_FINDING_LOCATION: + { + mergeImageFindingLocation(other.getImageFindingLocation()); + 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: + { + containerName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetImageFindingLocationFieldBuilder().getBuilder(), extensionRegistry); + locationCase_ = 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 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.cloud.modelarmor.v1.SdpImageFindingLocation, + com.google.cloud.modelarmor.v1.SdpImageFindingLocation.Builder, + com.google.cloud.modelarmor.v1.SdpImageFindingLocationOrBuilder> + imageFindingLocationBuilder_; + + /** + * + * + *
                +     * Location within an image's pixels.
                +     * 
                + * + * .google.cloud.modelarmor.v1.SdpImageFindingLocation image_finding_location = 2; + * + * @return Whether the imageFindingLocation field is set. + */ + @java.lang.Override + public boolean hasImageFindingLocation() { + return locationCase_ == 2; + } + + /** + * + * + *
                +     * Location within an image's pixels.
                +     * 
                + * + * .google.cloud.modelarmor.v1.SdpImageFindingLocation image_finding_location = 2; + * + * @return The imageFindingLocation. + */ + @java.lang.Override + public com.google.cloud.modelarmor.v1.SdpImageFindingLocation getImageFindingLocation() { + if (imageFindingLocationBuilder_ == null) { + if (locationCase_ == 2) { + return (com.google.cloud.modelarmor.v1.SdpImageFindingLocation) location_; + } + return com.google.cloud.modelarmor.v1.SdpImageFindingLocation.getDefaultInstance(); + } else { + if (locationCase_ == 2) { + return imageFindingLocationBuilder_.getMessage(); + } + return com.google.cloud.modelarmor.v1.SdpImageFindingLocation.getDefaultInstance(); + } + } + + /** + * + * + *
                +     * Location within an image's pixels.
                +     * 
                + * + * .google.cloud.modelarmor.v1.SdpImageFindingLocation image_finding_location = 2; + */ + public Builder setImageFindingLocation( + com.google.cloud.modelarmor.v1.SdpImageFindingLocation value) { + if (imageFindingLocationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + location_ = value; + onChanged(); + } else { + imageFindingLocationBuilder_.setMessage(value); + } + locationCase_ = 2; + return this; + } + + /** + * + * + *
                +     * Location within an image's pixels.
                +     * 
                + * + * .google.cloud.modelarmor.v1.SdpImageFindingLocation image_finding_location = 2; + */ + public Builder setImageFindingLocation( + com.google.cloud.modelarmor.v1.SdpImageFindingLocation.Builder builderForValue) { + if (imageFindingLocationBuilder_ == null) { + location_ = builderForValue.build(); + onChanged(); + } else { + imageFindingLocationBuilder_.setMessage(builderForValue.build()); + } + locationCase_ = 2; + return this; + } + + /** + * + * + *
                +     * Location within an image's pixels.
                +     * 
                + * + * .google.cloud.modelarmor.v1.SdpImageFindingLocation image_finding_location = 2; + */ + public Builder mergeImageFindingLocation( + com.google.cloud.modelarmor.v1.SdpImageFindingLocation value) { + if (imageFindingLocationBuilder_ == null) { + if (locationCase_ == 2 + && location_ + != com.google.cloud.modelarmor.v1.SdpImageFindingLocation.getDefaultInstance()) { + location_ = + com.google.cloud.modelarmor.v1.SdpImageFindingLocation.newBuilder( + (com.google.cloud.modelarmor.v1.SdpImageFindingLocation) location_) + .mergeFrom(value) + .buildPartial(); + } else { + location_ = value; + } + onChanged(); + } else { + if (locationCase_ == 2) { + imageFindingLocationBuilder_.mergeFrom(value); + } else { + imageFindingLocationBuilder_.setMessage(value); + } + } + locationCase_ = 2; + return this; + } + + /** + * + * + *
                +     * Location within an image's pixels.
                +     * 
                + * + * .google.cloud.modelarmor.v1.SdpImageFindingLocation image_finding_location = 2; + */ + public Builder clearImageFindingLocation() { + if (imageFindingLocationBuilder_ == null) { + if (locationCase_ == 2) { + locationCase_ = 0; + location_ = null; + onChanged(); + } + } else { + if (locationCase_ == 2) { + locationCase_ = 0; + location_ = null; + } + imageFindingLocationBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                +     * Location within an image's pixels.
                +     * 
                + * + * .google.cloud.modelarmor.v1.SdpImageFindingLocation image_finding_location = 2; + */ + public com.google.cloud.modelarmor.v1.SdpImageFindingLocation.Builder + getImageFindingLocationBuilder() { + return internalGetImageFindingLocationFieldBuilder().getBuilder(); + } + + /** + * + * + *
                +     * Location within an image's pixels.
                +     * 
                + * + * .google.cloud.modelarmor.v1.SdpImageFindingLocation image_finding_location = 2; + */ + @java.lang.Override + public com.google.cloud.modelarmor.v1.SdpImageFindingLocationOrBuilder + getImageFindingLocationOrBuilder() { + if ((locationCase_ == 2) && (imageFindingLocationBuilder_ != null)) { + return imageFindingLocationBuilder_.getMessageOrBuilder(); + } else { + if (locationCase_ == 2) { + return (com.google.cloud.modelarmor.v1.SdpImageFindingLocation) location_; + } + return com.google.cloud.modelarmor.v1.SdpImageFindingLocation.getDefaultInstance(); + } + } + + /** + * + * + *
                +     * Location within an image's pixels.
                +     * 
                + * + * .google.cloud.modelarmor.v1.SdpImageFindingLocation image_finding_location = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.modelarmor.v1.SdpImageFindingLocation, + com.google.cloud.modelarmor.v1.SdpImageFindingLocation.Builder, + com.google.cloud.modelarmor.v1.SdpImageFindingLocationOrBuilder> + internalGetImageFindingLocationFieldBuilder() { + if (imageFindingLocationBuilder_ == null) { + if (!(locationCase_ == 2)) { + location_ = com.google.cloud.modelarmor.v1.SdpImageFindingLocation.getDefaultInstance(); + } + imageFindingLocationBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.modelarmor.v1.SdpImageFindingLocation, + com.google.cloud.modelarmor.v1.SdpImageFindingLocation.Builder, + com.google.cloud.modelarmor.v1.SdpImageFindingLocationOrBuilder>( + (com.google.cloud.modelarmor.v1.SdpImageFindingLocation) location_, + getParentForChildren(), + isClean()); + location_ = null; + } + locationCase_ = 2; + onChanged(); + return imageFindingLocationBuilder_; + } + + private java.lang.Object containerName_ = ""; + + /** + * + * + *
                +     * Name of the container where the finding is located.
                +     * The top level name is the source file name or table name.
                +     *
                +     * Nested names could be absent if the embedded object has no string
                +     * identifier (for example, an image contained within a document).
                +     * 
                + * + * string container_name = 1; + * + * @return The containerName. + */ + public java.lang.String getContainerName() { + java.lang.Object ref = containerName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + containerName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                +     * Name of the container where the finding is located.
                +     * The top level name is the source file name or table name.
                +     *
                +     * Nested names could be absent if the embedded object has no string
                +     * identifier (for example, an image contained within a document).
                +     * 
                + * + * string container_name = 1; + * + * @return The bytes for containerName. + */ + public com.google.protobuf.ByteString getContainerNameBytes() { + java.lang.Object ref = containerName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + containerName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                +     * Name of the container where the finding is located.
                +     * The top level name is the source file name or table name.
                +     *
                +     * Nested names could be absent if the embedded object has no string
                +     * identifier (for example, an image contained within a document).
                +     * 
                + * + * string container_name = 1; + * + * @param value The containerName to set. + * @return This builder for chaining. + */ + public Builder setContainerName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + containerName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Name of the container where the finding is located.
                +     * The top level name is the source file name or table name.
                +     *
                +     * Nested names could be absent if the embedded object has no string
                +     * identifier (for example, an image contained within a document).
                +     * 
                + * + * string container_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearContainerName() { + containerName_ = getDefaultInstance().getContainerName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Name of the container where the finding is located.
                +     * The top level name is the source file name or table name.
                +     *
                +     * Nested names could be absent if the embedded object has no string
                +     * identifier (for example, an image contained within a document).
                +     * 
                + * + * string container_name = 1; + * + * @param value The bytes for containerName to set. + * @return This builder for chaining. + */ + public Builder setContainerNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + containerName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.modelarmor.v1.SdpContentLocation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.modelarmor.v1.SdpContentLocation) + private static final com.google.cloud.modelarmor.v1.SdpContentLocation DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.modelarmor.v1.SdpContentLocation(); + } + + public static com.google.cloud.modelarmor.v1.SdpContentLocation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SdpContentLocation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.modelarmor.v1.SdpContentLocation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SdpContentLocationOrBuilder.java b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SdpContentLocationOrBuilder.java new file mode 100644 index 000000000000..7d4bec8f1ae1 --- /dev/null +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SdpContentLocationOrBuilder.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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/modelarmor/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.modelarmor.v1; + +@com.google.protobuf.Generated +public interface SdpContentLocationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.modelarmor.v1.SdpContentLocation) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                +   * Location within an image's pixels.
                +   * 
                + * + * .google.cloud.modelarmor.v1.SdpImageFindingLocation image_finding_location = 2; + * + * @return Whether the imageFindingLocation field is set. + */ + boolean hasImageFindingLocation(); + + /** + * + * + *
                +   * Location within an image's pixels.
                +   * 
                + * + * .google.cloud.modelarmor.v1.SdpImageFindingLocation image_finding_location = 2; + * + * @return The imageFindingLocation. + */ + com.google.cloud.modelarmor.v1.SdpImageFindingLocation getImageFindingLocation(); + + /** + * + * + *
                +   * Location within an image's pixels.
                +   * 
                + * + * .google.cloud.modelarmor.v1.SdpImageFindingLocation image_finding_location = 2; + */ + com.google.cloud.modelarmor.v1.SdpImageFindingLocationOrBuilder + getImageFindingLocationOrBuilder(); + + /** + * + * + *
                +   * Name of the container where the finding is located.
                +   * The top level name is the source file name or table name.
                +   *
                +   * Nested names could be absent if the embedded object has no string
                +   * identifier (for example, an image contained within a document).
                +   * 
                + * + * string container_name = 1; + * + * @return The containerName. + */ + java.lang.String getContainerName(); + + /** + * + * + *
                +   * Name of the container where the finding is located.
                +   * The top level name is the source file name or table name.
                +   *
                +   * Nested names could be absent if the embedded object has no string
                +   * identifier (for example, an image contained within a document).
                +   * 
                + * + * string container_name = 1; + * + * @return The bytes for containerName. + */ + com.google.protobuf.ByteString getContainerNameBytes(); + + com.google.cloud.modelarmor.v1.SdpContentLocation.LocationCase getLocationCase(); +} diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SdpFilterResult.java b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SdpFilterResult.java index be129532be79..b88c4da7d9ac 100644 --- a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SdpFilterResult.java +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SdpFilterResult.java @@ -79,6 +79,7 @@ public enum ResultCase com.google.protobuf.AbstractMessage.InternalOneOfEnum { INSPECT_RESULT(1), DEIDENTIFY_RESULT(2), + REDACT_RESULT(3), RESULT_NOT_SET(0); private final int value; @@ -102,6 +103,8 @@ public static ResultCase forNumber(int value) { return INSPECT_RESULT; case 2: return DEIDENTIFY_RESULT; + case 3: + return REDACT_RESULT; case 0: return RESULT_NOT_SET; default: @@ -230,6 +233,63 @@ public com.google.cloud.modelarmor.v1.SdpDeidentifyResult getDeidentifyResult() return com.google.cloud.modelarmor.v1.SdpDeidentifyResult.getDefaultInstance(); } + public static final int REDACT_RESULT_FIELD_NUMBER = 3; + + /** + * + * + *
                +   * Sensitive Data Protection Redaction result if redaction is performed.
                +   * This is primarily used for image redaction.
                +   * 
                + * + * .google.cloud.modelarmor.v1.SdpRedactResult redact_result = 3; + * + * @return Whether the redactResult field is set. + */ + @java.lang.Override + public boolean hasRedactResult() { + return resultCase_ == 3; + } + + /** + * + * + *
                +   * Sensitive Data Protection Redaction result if redaction is performed.
                +   * This is primarily used for image redaction.
                +   * 
                + * + * .google.cloud.modelarmor.v1.SdpRedactResult redact_result = 3; + * + * @return The redactResult. + */ + @java.lang.Override + public com.google.cloud.modelarmor.v1.SdpRedactResult getRedactResult() { + if (resultCase_ == 3) { + return (com.google.cloud.modelarmor.v1.SdpRedactResult) result_; + } + return com.google.cloud.modelarmor.v1.SdpRedactResult.getDefaultInstance(); + } + + /** + * + * + *
                +   * Sensitive Data Protection Redaction result if redaction is performed.
                +   * This is primarily used for image redaction.
                +   * 
                + * + * .google.cloud.modelarmor.v1.SdpRedactResult redact_result = 3; + */ + @java.lang.Override + public com.google.cloud.modelarmor.v1.SdpRedactResultOrBuilder getRedactResultOrBuilder() { + if (resultCase_ == 3) { + return (com.google.cloud.modelarmor.v1.SdpRedactResult) result_; + } + return com.google.cloud.modelarmor.v1.SdpRedactResult.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -250,6 +310,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (resultCase_ == 2) { output.writeMessage(2, (com.google.cloud.modelarmor.v1.SdpDeidentifyResult) result_); } + if (resultCase_ == 3) { + output.writeMessage(3, (com.google.cloud.modelarmor.v1.SdpRedactResult) result_); + } getUnknownFields().writeTo(output); } @@ -269,6 +332,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 2, (com.google.cloud.modelarmor.v1.SdpDeidentifyResult) result_); } + if (resultCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.modelarmor.v1.SdpRedactResult) result_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -293,6 +361,9 @@ public boolean equals(final java.lang.Object obj) { case 2: if (!getDeidentifyResult().equals(other.getDeidentifyResult())) return false; break; + case 3: + if (!getRedactResult().equals(other.getRedactResult())) return false; + break; case 0: default: } @@ -316,6 +387,10 @@ public int hashCode() { hash = (37 * hash) + DEIDENTIFY_RESULT_FIELD_NUMBER; hash = (53 * hash) + getDeidentifyResult().hashCode(); break; + case 3: + hash = (37 * hash) + REDACT_RESULT_FIELD_NUMBER; + hash = (53 * hash) + getRedactResult().hashCode(); + break; case 0: default: } @@ -465,6 +540,9 @@ public Builder clear() { if (deidentifyResultBuilder_ != null) { deidentifyResultBuilder_.clear(); } + if (redactResultBuilder_ != null) { + redactResultBuilder_.clear(); + } resultCase_ = 0; result_ = null; return this; @@ -515,6 +593,9 @@ private void buildPartialOneofs(com.google.cloud.modelarmor.v1.SdpFilterResult r if (resultCase_ == 2 && deidentifyResultBuilder_ != null) { result.result_ = deidentifyResultBuilder_.build(); } + if (resultCase_ == 3 && redactResultBuilder_ != null) { + result.result_ = redactResultBuilder_.build(); + } } @java.lang.Override @@ -540,6 +621,11 @@ public Builder mergeFrom(com.google.cloud.modelarmor.v1.SdpFilterResult other) { mergeDeidentifyResult(other.getDeidentifyResult()); break; } + case REDACT_RESULT: + { + mergeRedactResult(other.getRedactResult()); + break; + } case RESULT_NOT_SET: { break; @@ -585,6 +671,13 @@ public Builder mergeFrom( resultCase_ = 2; break; } // case 18 + case 26: + { + input.readMessage( + internalGetRedactResultFieldBuilder().getBuilder(), extensionRegistry); + resultCase_ = 3; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1064,6 +1157,233 @@ public com.google.cloud.modelarmor.v1.SdpDeidentifyResult.Builder getDeidentifyR return deidentifyResultBuilder_; } + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.modelarmor.v1.SdpRedactResult, + com.google.cloud.modelarmor.v1.SdpRedactResult.Builder, + com.google.cloud.modelarmor.v1.SdpRedactResultOrBuilder> + redactResultBuilder_; + + /** + * + * + *
                +     * Sensitive Data Protection Redaction result if redaction is performed.
                +     * This is primarily used for image redaction.
                +     * 
                + * + * .google.cloud.modelarmor.v1.SdpRedactResult redact_result = 3; + * + * @return Whether the redactResult field is set. + */ + @java.lang.Override + public boolean hasRedactResult() { + return resultCase_ == 3; + } + + /** + * + * + *
                +     * Sensitive Data Protection Redaction result if redaction is performed.
                +     * This is primarily used for image redaction.
                +     * 
                + * + * .google.cloud.modelarmor.v1.SdpRedactResult redact_result = 3; + * + * @return The redactResult. + */ + @java.lang.Override + public com.google.cloud.modelarmor.v1.SdpRedactResult getRedactResult() { + if (redactResultBuilder_ == null) { + if (resultCase_ == 3) { + return (com.google.cloud.modelarmor.v1.SdpRedactResult) result_; + } + return com.google.cloud.modelarmor.v1.SdpRedactResult.getDefaultInstance(); + } else { + if (resultCase_ == 3) { + return redactResultBuilder_.getMessage(); + } + return com.google.cloud.modelarmor.v1.SdpRedactResult.getDefaultInstance(); + } + } + + /** + * + * + *
                +     * Sensitive Data Protection Redaction result if redaction is performed.
                +     * This is primarily used for image redaction.
                +     * 
                + * + * .google.cloud.modelarmor.v1.SdpRedactResult redact_result = 3; + */ + public Builder setRedactResult(com.google.cloud.modelarmor.v1.SdpRedactResult value) { + if (redactResultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + result_ = value; + onChanged(); + } else { + redactResultBuilder_.setMessage(value); + } + resultCase_ = 3; + return this; + } + + /** + * + * + *
                +     * Sensitive Data Protection Redaction result if redaction is performed.
                +     * This is primarily used for image redaction.
                +     * 
                + * + * .google.cloud.modelarmor.v1.SdpRedactResult redact_result = 3; + */ + public Builder setRedactResult( + com.google.cloud.modelarmor.v1.SdpRedactResult.Builder builderForValue) { + if (redactResultBuilder_ == null) { + result_ = builderForValue.build(); + onChanged(); + } else { + redactResultBuilder_.setMessage(builderForValue.build()); + } + resultCase_ = 3; + return this; + } + + /** + * + * + *
                +     * Sensitive Data Protection Redaction result if redaction is performed.
                +     * This is primarily used for image redaction.
                +     * 
                + * + * .google.cloud.modelarmor.v1.SdpRedactResult redact_result = 3; + */ + public Builder mergeRedactResult(com.google.cloud.modelarmor.v1.SdpRedactResult value) { + if (redactResultBuilder_ == null) { + if (resultCase_ == 3 + && result_ != com.google.cloud.modelarmor.v1.SdpRedactResult.getDefaultInstance()) { + result_ = + com.google.cloud.modelarmor.v1.SdpRedactResult.newBuilder( + (com.google.cloud.modelarmor.v1.SdpRedactResult) result_) + .mergeFrom(value) + .buildPartial(); + } else { + result_ = value; + } + onChanged(); + } else { + if (resultCase_ == 3) { + redactResultBuilder_.mergeFrom(value); + } else { + redactResultBuilder_.setMessage(value); + } + } + resultCase_ = 3; + return this; + } + + /** + * + * + *
                +     * Sensitive Data Protection Redaction result if redaction is performed.
                +     * This is primarily used for image redaction.
                +     * 
                + * + * .google.cloud.modelarmor.v1.SdpRedactResult redact_result = 3; + */ + public Builder clearRedactResult() { + if (redactResultBuilder_ == null) { + if (resultCase_ == 3) { + resultCase_ = 0; + result_ = null; + onChanged(); + } + } else { + if (resultCase_ == 3) { + resultCase_ = 0; + result_ = null; + } + redactResultBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                +     * Sensitive Data Protection Redaction result if redaction is performed.
                +     * This is primarily used for image redaction.
                +     * 
                + * + * .google.cloud.modelarmor.v1.SdpRedactResult redact_result = 3; + */ + public com.google.cloud.modelarmor.v1.SdpRedactResult.Builder getRedactResultBuilder() { + return internalGetRedactResultFieldBuilder().getBuilder(); + } + + /** + * + * + *
                +     * Sensitive Data Protection Redaction result if redaction is performed.
                +     * This is primarily used for image redaction.
                +     * 
                + * + * .google.cloud.modelarmor.v1.SdpRedactResult redact_result = 3; + */ + @java.lang.Override + public com.google.cloud.modelarmor.v1.SdpRedactResultOrBuilder getRedactResultOrBuilder() { + if ((resultCase_ == 3) && (redactResultBuilder_ != null)) { + return redactResultBuilder_.getMessageOrBuilder(); + } else { + if (resultCase_ == 3) { + return (com.google.cloud.modelarmor.v1.SdpRedactResult) result_; + } + return com.google.cloud.modelarmor.v1.SdpRedactResult.getDefaultInstance(); + } + } + + /** + * + * + *
                +     * Sensitive Data Protection Redaction result if redaction is performed.
                +     * This is primarily used for image redaction.
                +     * 
                + * + * .google.cloud.modelarmor.v1.SdpRedactResult redact_result = 3; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.modelarmor.v1.SdpRedactResult, + com.google.cloud.modelarmor.v1.SdpRedactResult.Builder, + com.google.cloud.modelarmor.v1.SdpRedactResultOrBuilder> + internalGetRedactResultFieldBuilder() { + if (redactResultBuilder_ == null) { + if (!(resultCase_ == 3)) { + result_ = com.google.cloud.modelarmor.v1.SdpRedactResult.getDefaultInstance(); + } + redactResultBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.modelarmor.v1.SdpRedactResult, + com.google.cloud.modelarmor.v1.SdpRedactResult.Builder, + com.google.cloud.modelarmor.v1.SdpRedactResultOrBuilder>( + (com.google.cloud.modelarmor.v1.SdpRedactResult) result_, + getParentForChildren(), + isClean()); + result_ = null; + } + resultCase_ = 3; + onChanged(); + return redactResultBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.modelarmor.v1.SdpFilterResult) } diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SdpFilterResultOrBuilder.java b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SdpFilterResultOrBuilder.java index 9ae045f5e851..dec33a4cf549 100644 --- a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SdpFilterResultOrBuilder.java +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SdpFilterResultOrBuilder.java @@ -103,5 +103,45 @@ public interface SdpFilterResultOrBuilder */ com.google.cloud.modelarmor.v1.SdpDeidentifyResultOrBuilder getDeidentifyResultOrBuilder(); + /** + * + * + *
                +   * Sensitive Data Protection Redaction result if redaction is performed.
                +   * This is primarily used for image redaction.
                +   * 
                + * + * .google.cloud.modelarmor.v1.SdpRedactResult redact_result = 3; + * + * @return Whether the redactResult field is set. + */ + boolean hasRedactResult(); + + /** + * + * + *
                +   * Sensitive Data Protection Redaction result if redaction is performed.
                +   * This is primarily used for image redaction.
                +   * 
                + * + * .google.cloud.modelarmor.v1.SdpRedactResult redact_result = 3; + * + * @return The redactResult. + */ + com.google.cloud.modelarmor.v1.SdpRedactResult getRedactResult(); + + /** + * + * + *
                +   * Sensitive Data Protection Redaction result if redaction is performed.
                +   * This is primarily used for image redaction.
                +   * 
                + * + * .google.cloud.modelarmor.v1.SdpRedactResult redact_result = 3; + */ + com.google.cloud.modelarmor.v1.SdpRedactResultOrBuilder getRedactResultOrBuilder(); + com.google.cloud.modelarmor.v1.SdpFilterResult.ResultCase getResultCase(); } diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SdpFinding.java b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SdpFinding.java index 975d2e74da10..8d30d16671c5 100644 --- a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SdpFinding.java +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SdpFinding.java @@ -84,6 +84,7 @@ public interface SdpFindingLocationOrBuilder * These are relative to the finding's containing element. * Note that when the content is not textual, this references * the UTF-8 encoded textual representation of the content. + * Note: Omitted if content is an image. * * * .google.cloud.modelarmor.v1.RangeInfo byte_range = 1; @@ -100,6 +101,7 @@ public interface SdpFindingLocationOrBuilder * These are relative to the finding's containing element. * Note that when the content is not textual, this references * the UTF-8 encoded textual representation of the content. + * Note: Omitted if content is an image. * * * .google.cloud.modelarmor.v1.RangeInfo byte_range = 1; @@ -116,6 +118,7 @@ public interface SdpFindingLocationOrBuilder * These are relative to the finding's containing element. * Note that when the content is not textual, this references * the UTF-8 encoded textual representation of the content. + * Note: Omitted if content is an image. * * * .google.cloud.modelarmor.v1.RangeInfo byte_range = 1; @@ -129,6 +132,7 @@ public interface SdpFindingLocationOrBuilder * Unicode character offsets delimiting the finding. * These are relative to the finding's containing element. * Provided when the content is text. + * Note: Omitted if content is an image. * * * .google.cloud.modelarmor.v1.RangeInfo codepoint_range = 2; @@ -144,6 +148,7 @@ public interface SdpFindingLocationOrBuilder * Unicode character offsets delimiting the finding. * These are relative to the finding's containing element. * Provided when the content is text. + * Note: Omitted if content is an image. * * * .google.cloud.modelarmor.v1.RangeInfo codepoint_range = 2; @@ -159,11 +164,104 @@ public interface SdpFindingLocationOrBuilder * Unicode character offsets delimiting the finding. * These are relative to the finding's containing element. * Provided when the content is text. + * Note: Omitted if content is an image. * * * .google.cloud.modelarmor.v1.RangeInfo codepoint_range = 2; */ com.google.cloud.modelarmor.v1.RangeInfoOrBuilder getCodepointRangeOrBuilder(); + + /** + * + * + *
                +     * List of nested objects pointing to the precise location of the finding
                +     * within an image, file or record.
                +     *
                +     * For example, a single finding might be detected in two
                +     * separate bounding boxes within an image (e.g., if it wraps across
                +     * a line or is partially obscured). In such cases, content_locations
                +     * would contain two SdpContentLocation entries, each with an
                +     * image_finding_location pointing to a different bounding box.
                +     * 
                + * + * repeated .google.cloud.modelarmor.v1.SdpContentLocation content_locations = 3; + */ + java.util.List getContentLocationsList(); + + /** + * + * + *
                +     * List of nested objects pointing to the precise location of the finding
                +     * within an image, file or record.
                +     *
                +     * For example, a single finding might be detected in two
                +     * separate bounding boxes within an image (e.g., if it wraps across
                +     * a line or is partially obscured). In such cases, content_locations
                +     * would contain two SdpContentLocation entries, each with an
                +     * image_finding_location pointing to a different bounding box.
                +     * 
                + * + * repeated .google.cloud.modelarmor.v1.SdpContentLocation content_locations = 3; + */ + com.google.cloud.modelarmor.v1.SdpContentLocation getContentLocations(int index); + + /** + * + * + *
                +     * List of nested objects pointing to the precise location of the finding
                +     * within an image, file or record.
                +     *
                +     * For example, a single finding might be detected in two
                +     * separate bounding boxes within an image (e.g., if it wraps across
                +     * a line or is partially obscured). In such cases, content_locations
                +     * would contain two SdpContentLocation entries, each with an
                +     * image_finding_location pointing to a different bounding box.
                +     * 
                + * + * repeated .google.cloud.modelarmor.v1.SdpContentLocation content_locations = 3; + */ + int getContentLocationsCount(); + + /** + * + * + *
                +     * List of nested objects pointing to the precise location of the finding
                +     * within an image, file or record.
                +     *
                +     * For example, a single finding might be detected in two
                +     * separate bounding boxes within an image (e.g., if it wraps across
                +     * a line or is partially obscured). In such cases, content_locations
                +     * would contain two SdpContentLocation entries, each with an
                +     * image_finding_location pointing to a different bounding box.
                +     * 
                + * + * repeated .google.cloud.modelarmor.v1.SdpContentLocation content_locations = 3; + */ + java.util.List + getContentLocationsOrBuilderList(); + + /** + * + * + *
                +     * List of nested objects pointing to the precise location of the finding
                +     * within an image, file or record.
                +     *
                +     * For example, a single finding might be detected in two
                +     * separate bounding boxes within an image (e.g., if it wraps across
                +     * a line or is partially obscured). In such cases, content_locations
                +     * would contain two SdpContentLocation entries, each with an
                +     * image_finding_location pointing to a different bounding box.
                +     * 
                + * + * repeated .google.cloud.modelarmor.v1.SdpContentLocation content_locations = 3; + */ + com.google.cloud.modelarmor.v1.SdpContentLocationOrBuilder getContentLocationsOrBuilder( + int index); } /** @@ -196,7 +294,9 @@ private SdpFindingLocation(com.google.protobuf.GeneratedMessage.Builder build super(builder); } - private SdpFindingLocation() {} + private SdpFindingLocation() { + contentLocations_ = java.util.Collections.emptyList(); + } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.modelarmor.v1.V1mainProto @@ -225,6 +325,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * These are relative to the finding's containing element. * Note that when the content is not textual, this references * the UTF-8 encoded textual representation of the content. + * Note: Omitted if content is an image. * * * .google.cloud.modelarmor.v1.RangeInfo byte_range = 1; @@ -244,6 +345,7 @@ public boolean hasByteRange() { * These are relative to the finding's containing element. * Note that when the content is not textual, this references * the UTF-8 encoded textual representation of the content. + * Note: Omitted if content is an image. * * * .google.cloud.modelarmor.v1.RangeInfo byte_range = 1; @@ -265,6 +367,7 @@ public com.google.cloud.modelarmor.v1.RangeInfo getByteRange() { * These are relative to the finding's containing element. * Note that when the content is not textual, this references * the UTF-8 encoded textual representation of the content. + * Note: Omitted if content is an image. * * * .google.cloud.modelarmor.v1.RangeInfo byte_range = 1; @@ -286,6 +389,7 @@ public com.google.cloud.modelarmor.v1.RangeInfoOrBuilder getByteRangeOrBuilder() * Unicode character offsets delimiting the finding. * These are relative to the finding's containing element. * Provided when the content is text. + * Note: Omitted if content is an image. * * * .google.cloud.modelarmor.v1.RangeInfo codepoint_range = 2; @@ -304,6 +408,7 @@ public boolean hasCodepointRange() { * Unicode character offsets delimiting the finding. * These are relative to the finding's containing element. * Provided when the content is text. + * Note: Omitted if content is an image. * * * .google.cloud.modelarmor.v1.RangeInfo codepoint_range = 2; @@ -324,6 +429,7 @@ public com.google.cloud.modelarmor.v1.RangeInfo getCodepointRange() { * Unicode character offsets delimiting the finding. * These are relative to the finding's containing element. * Provided when the content is text. + * Note: Omitted if content is an image. * * * .google.cloud.modelarmor.v1.RangeInfo codepoint_range = 2; @@ -335,6 +441,119 @@ public com.google.cloud.modelarmor.v1.RangeInfoOrBuilder getCodepointRangeOrBuil : codepointRange_; } + public static final int CONTENT_LOCATIONS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List contentLocations_; + + /** + * + * + *
                +     * List of nested objects pointing to the precise location of the finding
                +     * within an image, file or record.
                +     *
                +     * For example, a single finding might be detected in two
                +     * separate bounding boxes within an image (e.g., if it wraps across
                +     * a line or is partially obscured). In such cases, content_locations
                +     * would contain two SdpContentLocation entries, each with an
                +     * image_finding_location pointing to a different bounding box.
                +     * 
                + * + * repeated .google.cloud.modelarmor.v1.SdpContentLocation content_locations = 3; + */ + @java.lang.Override + public java.util.List + getContentLocationsList() { + return contentLocations_; + } + + /** + * + * + *
                +     * List of nested objects pointing to the precise location of the finding
                +     * within an image, file or record.
                +     *
                +     * For example, a single finding might be detected in two
                +     * separate bounding boxes within an image (e.g., if it wraps across
                +     * a line or is partially obscured). In such cases, content_locations
                +     * would contain two SdpContentLocation entries, each with an
                +     * image_finding_location pointing to a different bounding box.
                +     * 
                + * + * repeated .google.cloud.modelarmor.v1.SdpContentLocation content_locations = 3; + */ + @java.lang.Override + public java.util.List + getContentLocationsOrBuilderList() { + return contentLocations_; + } + + /** + * + * + *
                +     * List of nested objects pointing to the precise location of the finding
                +     * within an image, file or record.
                +     *
                +     * For example, a single finding might be detected in two
                +     * separate bounding boxes within an image (e.g., if it wraps across
                +     * a line or is partially obscured). In such cases, content_locations
                +     * would contain two SdpContentLocation entries, each with an
                +     * image_finding_location pointing to a different bounding box.
                +     * 
                + * + * repeated .google.cloud.modelarmor.v1.SdpContentLocation content_locations = 3; + */ + @java.lang.Override + public int getContentLocationsCount() { + return contentLocations_.size(); + } + + /** + * + * + *
                +     * List of nested objects pointing to the precise location of the finding
                +     * within an image, file or record.
                +     *
                +     * For example, a single finding might be detected in two
                +     * separate bounding boxes within an image (e.g., if it wraps across
                +     * a line or is partially obscured). In such cases, content_locations
                +     * would contain two SdpContentLocation entries, each with an
                +     * image_finding_location pointing to a different bounding box.
                +     * 
                + * + * repeated .google.cloud.modelarmor.v1.SdpContentLocation content_locations = 3; + */ + @java.lang.Override + public com.google.cloud.modelarmor.v1.SdpContentLocation getContentLocations(int index) { + return contentLocations_.get(index); + } + + /** + * + * + *
                +     * List of nested objects pointing to the precise location of the finding
                +     * within an image, file or record.
                +     *
                +     * For example, a single finding might be detected in two
                +     * separate bounding boxes within an image (e.g., if it wraps across
                +     * a line or is partially obscured). In such cases, content_locations
                +     * would contain two SdpContentLocation entries, each with an
                +     * image_finding_location pointing to a different bounding box.
                +     * 
                + * + * repeated .google.cloud.modelarmor.v1.SdpContentLocation content_locations = 3; + */ + @java.lang.Override + public com.google.cloud.modelarmor.v1.SdpContentLocationOrBuilder getContentLocationsOrBuilder( + int index) { + return contentLocations_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -355,6 +574,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getCodepointRange()); } + for (int i = 0; i < contentLocations_.size(); i++) { + output.writeMessage(3, contentLocations_.get(i)); + } getUnknownFields().writeTo(output); } @@ -370,6 +592,10 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCodepointRange()); } + for (int i = 0; i < contentLocations_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, contentLocations_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -394,6 +620,7 @@ public boolean equals(final java.lang.Object obj) { if (hasCodepointRange()) { if (!getCodepointRange().equals(other.getCodepointRange())) return false; } + if (!getContentLocationsList().equals(other.getContentLocationsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -413,6 +640,10 @@ public int hashCode() { hash = (37 * hash) + CODEPOINT_RANGE_FIELD_NUMBER; hash = (53 * hash) + getCodepointRange().hashCode(); } + if (getContentLocationsCount() > 0) { + hash = (37 * hash) + CONTENT_LOCATIONS_FIELD_NUMBER; + hash = (53 * hash) + getContentLocationsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -557,6 +788,7 @@ private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { internalGetByteRangeFieldBuilder(); internalGetCodepointRangeFieldBuilder(); + internalGetContentLocationsFieldBuilder(); } } @@ -574,6 +806,13 @@ public Builder clear() { codepointRangeBuilder_.dispose(); codepointRangeBuilder_ = null; } + if (contentLocationsBuilder_ == null) { + contentLocations_ = java.util.Collections.emptyList(); + } else { + contentLocations_ = null; + contentLocationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); return this; } @@ -602,6 +841,7 @@ public com.google.cloud.modelarmor.v1.SdpFinding.SdpFindingLocation build() { public com.google.cloud.modelarmor.v1.SdpFinding.SdpFindingLocation buildPartial() { com.google.cloud.modelarmor.v1.SdpFinding.SdpFindingLocation result = new com.google.cloud.modelarmor.v1.SdpFinding.SdpFindingLocation(this); + buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -609,6 +849,19 @@ public com.google.cloud.modelarmor.v1.SdpFinding.SdpFindingLocation buildPartial return result; } + private void buildPartialRepeatedFields( + com.google.cloud.modelarmor.v1.SdpFinding.SdpFindingLocation result) { + if (contentLocationsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + contentLocations_ = java.util.Collections.unmodifiableList(contentLocations_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.contentLocations_ = contentLocations_; + } else { + result.contentLocations_ = contentLocationsBuilder_.build(); + } + } + private void buildPartial0( com.google.cloud.modelarmor.v1.SdpFinding.SdpFindingLocation result) { int from_bitField0_ = bitField0_; @@ -645,6 +898,33 @@ public Builder mergeFrom(com.google.cloud.modelarmor.v1.SdpFinding.SdpFindingLoc if (other.hasCodepointRange()) { mergeCodepointRange(other.getCodepointRange()); } + if (contentLocationsBuilder_ == null) { + if (!other.contentLocations_.isEmpty()) { + if (contentLocations_.isEmpty()) { + contentLocations_ = other.contentLocations_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureContentLocationsIsMutable(); + contentLocations_.addAll(other.contentLocations_); + } + onChanged(); + } + } else { + if (!other.contentLocations_.isEmpty()) { + if (contentLocationsBuilder_.isEmpty()) { + contentLocationsBuilder_.dispose(); + contentLocationsBuilder_ = null; + contentLocations_ = other.contentLocations_; + bitField0_ = (bitField0_ & ~0x00000004); + contentLocationsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetContentLocationsFieldBuilder() + : null; + } else { + contentLocationsBuilder_.addAllMessages(other.contentLocations_); + } + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -685,6 +965,20 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 18 + case 26: + { + com.google.cloud.modelarmor.v1.SdpContentLocation m = + input.readMessage( + com.google.cloud.modelarmor.v1.SdpContentLocation.parser(), + extensionRegistry); + if (contentLocationsBuilder_ == null) { + ensureContentLocationsIsMutable(); + contentLocations_.add(m); + } else { + contentLocationsBuilder_.addMessage(m); + } + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -719,6 +1013,7 @@ public Builder mergeFrom( * These are relative to the finding's containing element. * Note that when the content is not textual, this references * the UTF-8 encoded textual representation of the content. + * Note: Omitted if content is an image. * * * .google.cloud.modelarmor.v1.RangeInfo byte_range = 1; @@ -737,6 +1032,7 @@ public boolean hasByteRange() { * These are relative to the finding's containing element. * Note that when the content is not textual, this references * the UTF-8 encoded textual representation of the content. + * Note: Omitted if content is an image. * * * .google.cloud.modelarmor.v1.RangeInfo byte_range = 1; @@ -761,6 +1057,7 @@ public com.google.cloud.modelarmor.v1.RangeInfo getByteRange() { * These are relative to the finding's containing element. * Note that when the content is not textual, this references * the UTF-8 encoded textual representation of the content. + * Note: Omitted if content is an image. * * * .google.cloud.modelarmor.v1.RangeInfo byte_range = 1; @@ -787,6 +1084,7 @@ public Builder setByteRange(com.google.cloud.modelarmor.v1.RangeInfo value) { * These are relative to the finding's containing element. * Note that when the content is not textual, this references * the UTF-8 encoded textual representation of the content. + * Note: Omitted if content is an image. * * * .google.cloud.modelarmor.v1.RangeInfo byte_range = 1; @@ -811,6 +1109,7 @@ public Builder setByteRange( * These are relative to the finding's containing element. * Note that when the content is not textual, this references * the UTF-8 encoded textual representation of the content. + * Note: Omitted if content is an image. * * * .google.cloud.modelarmor.v1.RangeInfo byte_range = 1; @@ -842,6 +1141,7 @@ public Builder mergeByteRange(com.google.cloud.modelarmor.v1.RangeInfo value) { * These are relative to the finding's containing element. * Note that when the content is not textual, this references * the UTF-8 encoded textual representation of the content. + * Note: Omitted if content is an image. * * * .google.cloud.modelarmor.v1.RangeInfo byte_range = 1; @@ -865,6 +1165,7 @@ public Builder clearByteRange() { * These are relative to the finding's containing element. * Note that when the content is not textual, this references * the UTF-8 encoded textual representation of the content. + * Note: Omitted if content is an image. * * * .google.cloud.modelarmor.v1.RangeInfo byte_range = 1; @@ -883,6 +1184,7 @@ public com.google.cloud.modelarmor.v1.RangeInfo.Builder getByteRangeBuilder() { * These are relative to the finding's containing element. * Note that when the content is not textual, this references * the UTF-8 encoded textual representation of the content. + * Note: Omitted if content is an image. * * * .google.cloud.modelarmor.v1.RangeInfo byte_range = 1; @@ -905,6 +1207,7 @@ public com.google.cloud.modelarmor.v1.RangeInfoOrBuilder getByteRangeOrBuilder() * These are relative to the finding's containing element. * Note that when the content is not textual, this references * the UTF-8 encoded textual representation of the content. + * Note: Omitted if content is an image. * * * .google.cloud.modelarmor.v1.RangeInfo byte_range = 1; @@ -940,6 +1243,7 @@ public com.google.cloud.modelarmor.v1.RangeInfoOrBuilder getByteRangeOrBuilder() * Unicode character offsets delimiting the finding. * These are relative to the finding's containing element. * Provided when the content is text. + * Note: Omitted if content is an image. * * * .google.cloud.modelarmor.v1.RangeInfo codepoint_range = 2; @@ -957,6 +1261,7 @@ public boolean hasCodepointRange() { * Unicode character offsets delimiting the finding. * These are relative to the finding's containing element. * Provided when the content is text. + * Note: Omitted if content is an image. * * * .google.cloud.modelarmor.v1.RangeInfo codepoint_range = 2; @@ -980,6 +1285,7 @@ public com.google.cloud.modelarmor.v1.RangeInfo getCodepointRange() { * Unicode character offsets delimiting the finding. * These are relative to the finding's containing element. * Provided when the content is text. + * Note: Omitted if content is an image. * * * .google.cloud.modelarmor.v1.RangeInfo codepoint_range = 2; @@ -1005,6 +1311,7 @@ public Builder setCodepointRange(com.google.cloud.modelarmor.v1.RangeInfo value) * Unicode character offsets delimiting the finding. * These are relative to the finding's containing element. * Provided when the content is text. + * Note: Omitted if content is an image. * * * .google.cloud.modelarmor.v1.RangeInfo codepoint_range = 2; @@ -1028,6 +1335,7 @@ public Builder setCodepointRange( * Unicode character offsets delimiting the finding. * These are relative to the finding's containing element. * Provided when the content is text. + * Note: Omitted if content is an image. * * * .google.cloud.modelarmor.v1.RangeInfo codepoint_range = 2; @@ -1058,6 +1366,7 @@ public Builder mergeCodepointRange(com.google.cloud.modelarmor.v1.RangeInfo valu * Unicode character offsets delimiting the finding. * These are relative to the finding's containing element. * Provided when the content is text. + * Note: Omitted if content is an image. * * * .google.cloud.modelarmor.v1.RangeInfo codepoint_range = 2; @@ -1080,6 +1389,7 @@ public Builder clearCodepointRange() { * Unicode character offsets delimiting the finding. * These are relative to the finding's containing element. * Provided when the content is text. + * Note: Omitted if content is an image. * * * .google.cloud.modelarmor.v1.RangeInfo codepoint_range = 2; @@ -1097,6 +1407,7 @@ public com.google.cloud.modelarmor.v1.RangeInfo.Builder getCodepointRangeBuilder * Unicode character offsets delimiting the finding. * These are relative to the finding's containing element. * Provided when the content is text. + * Note: Omitted if content is an image. * * * .google.cloud.modelarmor.v1.RangeInfo codepoint_range = 2; @@ -1118,6 +1429,7 @@ public com.google.cloud.modelarmor.v1.RangeInfoOrBuilder getCodepointRangeOrBuil * Unicode character offsets delimiting the finding. * These are relative to the finding's containing element. * Provided when the content is text. + * Note: Omitted if content is an image. * * * .google.cloud.modelarmor.v1.RangeInfo codepoint_range = 2; @@ -1139,6 +1451,512 @@ public com.google.cloud.modelarmor.v1.RangeInfoOrBuilder getCodepointRangeOrBuil return codepointRangeBuilder_; } + private java.util.List contentLocations_ = + java.util.Collections.emptyList(); + + private void ensureContentLocationsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + contentLocations_ = + new java.util.ArrayList( + contentLocations_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.modelarmor.v1.SdpContentLocation, + com.google.cloud.modelarmor.v1.SdpContentLocation.Builder, + com.google.cloud.modelarmor.v1.SdpContentLocationOrBuilder> + contentLocationsBuilder_; + + /** + * + * + *
                +       * List of nested objects pointing to the precise location of the finding
                +       * within an image, file or record.
                +       *
                +       * For example, a single finding might be detected in two
                +       * separate bounding boxes within an image (e.g., if it wraps across
                +       * a line or is partially obscured). In such cases, content_locations
                +       * would contain two SdpContentLocation entries, each with an
                +       * image_finding_location pointing to a different bounding box.
                +       * 
                + * + * repeated .google.cloud.modelarmor.v1.SdpContentLocation content_locations = 3; + */ + public java.util.List + getContentLocationsList() { + if (contentLocationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(contentLocations_); + } else { + return contentLocationsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                +       * List of nested objects pointing to the precise location of the finding
                +       * within an image, file or record.
                +       *
                +       * For example, a single finding might be detected in two
                +       * separate bounding boxes within an image (e.g., if it wraps across
                +       * a line or is partially obscured). In such cases, content_locations
                +       * would contain two SdpContentLocation entries, each with an
                +       * image_finding_location pointing to a different bounding box.
                +       * 
                + * + * repeated .google.cloud.modelarmor.v1.SdpContentLocation content_locations = 3; + */ + public int getContentLocationsCount() { + if (contentLocationsBuilder_ == null) { + return contentLocations_.size(); + } else { + return contentLocationsBuilder_.getCount(); + } + } + + /** + * + * + *
                +       * List of nested objects pointing to the precise location of the finding
                +       * within an image, file or record.
                +       *
                +       * For example, a single finding might be detected in two
                +       * separate bounding boxes within an image (e.g., if it wraps across
                +       * a line or is partially obscured). In such cases, content_locations
                +       * would contain two SdpContentLocation entries, each with an
                +       * image_finding_location pointing to a different bounding box.
                +       * 
                + * + * repeated .google.cloud.modelarmor.v1.SdpContentLocation content_locations = 3; + */ + public com.google.cloud.modelarmor.v1.SdpContentLocation getContentLocations(int index) { + if (contentLocationsBuilder_ == null) { + return contentLocations_.get(index); + } else { + return contentLocationsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                +       * List of nested objects pointing to the precise location of the finding
                +       * within an image, file or record.
                +       *
                +       * For example, a single finding might be detected in two
                +       * separate bounding boxes within an image (e.g., if it wraps across
                +       * a line or is partially obscured). In such cases, content_locations
                +       * would contain two SdpContentLocation entries, each with an
                +       * image_finding_location pointing to a different bounding box.
                +       * 
                + * + * repeated .google.cloud.modelarmor.v1.SdpContentLocation content_locations = 3; + */ + public Builder setContentLocations( + int index, com.google.cloud.modelarmor.v1.SdpContentLocation value) { + if (contentLocationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContentLocationsIsMutable(); + contentLocations_.set(index, value); + onChanged(); + } else { + contentLocationsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                +       * List of nested objects pointing to the precise location of the finding
                +       * within an image, file or record.
                +       *
                +       * For example, a single finding might be detected in two
                +       * separate bounding boxes within an image (e.g., if it wraps across
                +       * a line or is partially obscured). In such cases, content_locations
                +       * would contain two SdpContentLocation entries, each with an
                +       * image_finding_location pointing to a different bounding box.
                +       * 
                + * + * repeated .google.cloud.modelarmor.v1.SdpContentLocation content_locations = 3; + */ + public Builder setContentLocations( + int index, com.google.cloud.modelarmor.v1.SdpContentLocation.Builder builderForValue) { + if (contentLocationsBuilder_ == null) { + ensureContentLocationsIsMutable(); + contentLocations_.set(index, builderForValue.build()); + onChanged(); + } else { + contentLocationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                +       * List of nested objects pointing to the precise location of the finding
                +       * within an image, file or record.
                +       *
                +       * For example, a single finding might be detected in two
                +       * separate bounding boxes within an image (e.g., if it wraps across
                +       * a line or is partially obscured). In such cases, content_locations
                +       * would contain two SdpContentLocation entries, each with an
                +       * image_finding_location pointing to a different bounding box.
                +       * 
                + * + * repeated .google.cloud.modelarmor.v1.SdpContentLocation content_locations = 3; + */ + public Builder addContentLocations(com.google.cloud.modelarmor.v1.SdpContentLocation value) { + if (contentLocationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContentLocationsIsMutable(); + contentLocations_.add(value); + onChanged(); + } else { + contentLocationsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                +       * List of nested objects pointing to the precise location of the finding
                +       * within an image, file or record.
                +       *
                +       * For example, a single finding might be detected in two
                +       * separate bounding boxes within an image (e.g., if it wraps across
                +       * a line or is partially obscured). In such cases, content_locations
                +       * would contain two SdpContentLocation entries, each with an
                +       * image_finding_location pointing to a different bounding box.
                +       * 
                + * + * repeated .google.cloud.modelarmor.v1.SdpContentLocation content_locations = 3; + */ + public Builder addContentLocations( + int index, com.google.cloud.modelarmor.v1.SdpContentLocation value) { + if (contentLocationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContentLocationsIsMutable(); + contentLocations_.add(index, value); + onChanged(); + } else { + contentLocationsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                +       * List of nested objects pointing to the precise location of the finding
                +       * within an image, file or record.
                +       *
                +       * For example, a single finding might be detected in two
                +       * separate bounding boxes within an image (e.g., if it wraps across
                +       * a line or is partially obscured). In such cases, content_locations
                +       * would contain two SdpContentLocation entries, each with an
                +       * image_finding_location pointing to a different bounding box.
                +       * 
                + * + * repeated .google.cloud.modelarmor.v1.SdpContentLocation content_locations = 3; + */ + public Builder addContentLocations( + com.google.cloud.modelarmor.v1.SdpContentLocation.Builder builderForValue) { + if (contentLocationsBuilder_ == null) { + ensureContentLocationsIsMutable(); + contentLocations_.add(builderForValue.build()); + onChanged(); + } else { + contentLocationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                +       * List of nested objects pointing to the precise location of the finding
                +       * within an image, file or record.
                +       *
                +       * For example, a single finding might be detected in two
                +       * separate bounding boxes within an image (e.g., if it wraps across
                +       * a line or is partially obscured). In such cases, content_locations
                +       * would contain two SdpContentLocation entries, each with an
                +       * image_finding_location pointing to a different bounding box.
                +       * 
                + * + * repeated .google.cloud.modelarmor.v1.SdpContentLocation content_locations = 3; + */ + public Builder addContentLocations( + int index, com.google.cloud.modelarmor.v1.SdpContentLocation.Builder builderForValue) { + if (contentLocationsBuilder_ == null) { + ensureContentLocationsIsMutable(); + contentLocations_.add(index, builderForValue.build()); + onChanged(); + } else { + contentLocationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                +       * List of nested objects pointing to the precise location of the finding
                +       * within an image, file or record.
                +       *
                +       * For example, a single finding might be detected in two
                +       * separate bounding boxes within an image (e.g., if it wraps across
                +       * a line or is partially obscured). In such cases, content_locations
                +       * would contain two SdpContentLocation entries, each with an
                +       * image_finding_location pointing to a different bounding box.
                +       * 
                + * + * repeated .google.cloud.modelarmor.v1.SdpContentLocation content_locations = 3; + */ + public Builder addAllContentLocations( + java.lang.Iterable values) { + if (contentLocationsBuilder_ == null) { + ensureContentLocationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, contentLocations_); + onChanged(); + } else { + contentLocationsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                +       * List of nested objects pointing to the precise location of the finding
                +       * within an image, file or record.
                +       *
                +       * For example, a single finding might be detected in two
                +       * separate bounding boxes within an image (e.g., if it wraps across
                +       * a line or is partially obscured). In such cases, content_locations
                +       * would contain two SdpContentLocation entries, each with an
                +       * image_finding_location pointing to a different bounding box.
                +       * 
                + * + * repeated .google.cloud.modelarmor.v1.SdpContentLocation content_locations = 3; + */ + public Builder clearContentLocations() { + if (contentLocationsBuilder_ == null) { + contentLocations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + contentLocationsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                +       * List of nested objects pointing to the precise location of the finding
                +       * within an image, file or record.
                +       *
                +       * For example, a single finding might be detected in two
                +       * separate bounding boxes within an image (e.g., if it wraps across
                +       * a line or is partially obscured). In such cases, content_locations
                +       * would contain two SdpContentLocation entries, each with an
                +       * image_finding_location pointing to a different bounding box.
                +       * 
                + * + * repeated .google.cloud.modelarmor.v1.SdpContentLocation content_locations = 3; + */ + public Builder removeContentLocations(int index) { + if (contentLocationsBuilder_ == null) { + ensureContentLocationsIsMutable(); + contentLocations_.remove(index); + onChanged(); + } else { + contentLocationsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                +       * List of nested objects pointing to the precise location of the finding
                +       * within an image, file or record.
                +       *
                +       * For example, a single finding might be detected in two
                +       * separate bounding boxes within an image (e.g., if it wraps across
                +       * a line or is partially obscured). In such cases, content_locations
                +       * would contain two SdpContentLocation entries, each with an
                +       * image_finding_location pointing to a different bounding box.
                +       * 
                + * + * repeated .google.cloud.modelarmor.v1.SdpContentLocation content_locations = 3; + */ + public com.google.cloud.modelarmor.v1.SdpContentLocation.Builder getContentLocationsBuilder( + int index) { + return internalGetContentLocationsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                +       * List of nested objects pointing to the precise location of the finding
                +       * within an image, file or record.
                +       *
                +       * For example, a single finding might be detected in two
                +       * separate bounding boxes within an image (e.g., if it wraps across
                +       * a line or is partially obscured). In such cases, content_locations
                +       * would contain two SdpContentLocation entries, each with an
                +       * image_finding_location pointing to a different bounding box.
                +       * 
                + * + * repeated .google.cloud.modelarmor.v1.SdpContentLocation content_locations = 3; + */ + public com.google.cloud.modelarmor.v1.SdpContentLocationOrBuilder + getContentLocationsOrBuilder(int index) { + if (contentLocationsBuilder_ == null) { + return contentLocations_.get(index); + } else { + return contentLocationsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                +       * List of nested objects pointing to the precise location of the finding
                +       * within an image, file or record.
                +       *
                +       * For example, a single finding might be detected in two
                +       * separate bounding boxes within an image (e.g., if it wraps across
                +       * a line or is partially obscured). In such cases, content_locations
                +       * would contain two SdpContentLocation entries, each with an
                +       * image_finding_location pointing to a different bounding box.
                +       * 
                + * + * repeated .google.cloud.modelarmor.v1.SdpContentLocation content_locations = 3; + */ + public java.util.List + getContentLocationsOrBuilderList() { + if (contentLocationsBuilder_ != null) { + return contentLocationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(contentLocations_); + } + } + + /** + * + * + *
                +       * List of nested objects pointing to the precise location of the finding
                +       * within an image, file or record.
                +       *
                +       * For example, a single finding might be detected in two
                +       * separate bounding boxes within an image (e.g., if it wraps across
                +       * a line or is partially obscured). In such cases, content_locations
                +       * would contain two SdpContentLocation entries, each with an
                +       * image_finding_location pointing to a different bounding box.
                +       * 
                + * + * repeated .google.cloud.modelarmor.v1.SdpContentLocation content_locations = 3; + */ + public com.google.cloud.modelarmor.v1.SdpContentLocation.Builder + addContentLocationsBuilder() { + return internalGetContentLocationsFieldBuilder() + .addBuilder(com.google.cloud.modelarmor.v1.SdpContentLocation.getDefaultInstance()); + } + + /** + * + * + *
                +       * List of nested objects pointing to the precise location of the finding
                +       * within an image, file or record.
                +       *
                +       * For example, a single finding might be detected in two
                +       * separate bounding boxes within an image (e.g., if it wraps across
                +       * a line or is partially obscured). In such cases, content_locations
                +       * would contain two SdpContentLocation entries, each with an
                +       * image_finding_location pointing to a different bounding box.
                +       * 
                + * + * repeated .google.cloud.modelarmor.v1.SdpContentLocation content_locations = 3; + */ + public com.google.cloud.modelarmor.v1.SdpContentLocation.Builder addContentLocationsBuilder( + int index) { + return internalGetContentLocationsFieldBuilder() + .addBuilder( + index, com.google.cloud.modelarmor.v1.SdpContentLocation.getDefaultInstance()); + } + + /** + * + * + *
                +       * List of nested objects pointing to the precise location of the finding
                +       * within an image, file or record.
                +       *
                +       * For example, a single finding might be detected in two
                +       * separate bounding boxes within an image (e.g., if it wraps across
                +       * a line or is partially obscured). In such cases, content_locations
                +       * would contain two SdpContentLocation entries, each with an
                +       * image_finding_location pointing to a different bounding box.
                +       * 
                + * + * repeated .google.cloud.modelarmor.v1.SdpContentLocation content_locations = 3; + */ + public java.util.List + getContentLocationsBuilderList() { + return internalGetContentLocationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.modelarmor.v1.SdpContentLocation, + com.google.cloud.modelarmor.v1.SdpContentLocation.Builder, + com.google.cloud.modelarmor.v1.SdpContentLocationOrBuilder> + internalGetContentLocationsFieldBuilder() { + if (contentLocationsBuilder_ == null) { + contentLocationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.modelarmor.v1.SdpContentLocation, + com.google.cloud.modelarmor.v1.SdpContentLocation.Builder, + com.google.cloud.modelarmor.v1.SdpContentLocationOrBuilder>( + contentLocations_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + contentLocations_ = null; + } + return contentLocationsBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.modelarmor.v1.SdpFinding.SdpFindingLocation) } diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SdpImageFindingLocation.java b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SdpImageFindingLocation.java new file mode 100644 index 000000000000..131fa524b70e --- /dev/null +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SdpImageFindingLocation.java @@ -0,0 +1,1854 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/modelarmor/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.modelarmor.v1; + +/** + * + * + *
                + * Location of the finding within an image.
                + * 
                + * + * Protobuf type {@code google.cloud.modelarmor.v1.SdpImageFindingLocation} + */ +@com.google.protobuf.Generated +public final class SdpImageFindingLocation extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.modelarmor.v1.SdpImageFindingLocation) + SdpImageFindingLocationOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SdpImageFindingLocation"); + } + + // Use SdpImageFindingLocation.newBuilder() to construct. + private SdpImageFindingLocation(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SdpImageFindingLocation() { + boundingBoxes_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.modelarmor.v1.V1mainProto + .internal_static_google_cloud_modelarmor_v1_SdpImageFindingLocation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.modelarmor.v1.V1mainProto + .internal_static_google_cloud_modelarmor_v1_SdpImageFindingLocation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.modelarmor.v1.SdpImageFindingLocation.class, + com.google.cloud.modelarmor.v1.SdpImageFindingLocation.Builder.class); + } + + public interface SdpBoundingBoxOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                +     * Top coordinate of the bounding box. (0,0) is upper left.
                +     * 
                + * + * int32 top = 1; + * + * @return The top. + */ + int getTop(); + + /** + * + * + *
                +     * Left coordinate of the bounding box. (0,0) is upper left.
                +     * 
                + * + * int32 left = 2; + * + * @return The left. + */ + int getLeft(); + + /** + * + * + *
                +     * Width of the bounding box in pixels.
                +     * 
                + * + * int32 width = 3; + * + * @return The width. + */ + int getWidth(); + + /** + * + * + *
                +     * Height of the bounding box in pixels.
                +     * 
                + * + * int32 height = 4; + * + * @return The height. + */ + int getHeight(); + } + + /** + * + * + *
                +   * Bounding box encompassing a finding within an image.
                +   * 
                + * + * Protobuf type {@code google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox} + */ + public static final class SdpBoundingBox extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox) + SdpBoundingBoxOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SdpBoundingBox"); + } + + // Use SdpBoundingBox.newBuilder() to construct. + private SdpBoundingBox(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SdpBoundingBox() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.modelarmor.v1.V1mainProto + .internal_static_google_cloud_modelarmor_v1_SdpImageFindingLocation_SdpBoundingBox_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.modelarmor.v1.V1mainProto + .internal_static_google_cloud_modelarmor_v1_SdpImageFindingLocation_SdpBoundingBox_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox.class, + com.google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox.Builder.class); + } + + public static final int TOP_FIELD_NUMBER = 1; + private int top_ = 0; + + /** + * + * + *
                +     * Top coordinate of the bounding box. (0,0) is upper left.
                +     * 
                + * + * int32 top = 1; + * + * @return The top. + */ + @java.lang.Override + public int getTop() { + return top_; + } + + public static final int LEFT_FIELD_NUMBER = 2; + private int left_ = 0; + + /** + * + * + *
                +     * Left coordinate of the bounding box. (0,0) is upper left.
                +     * 
                + * + * int32 left = 2; + * + * @return The left. + */ + @java.lang.Override + public int getLeft() { + return left_; + } + + public static final int WIDTH_FIELD_NUMBER = 3; + private int width_ = 0; + + /** + * + * + *
                +     * Width of the bounding box in pixels.
                +     * 
                + * + * int32 width = 3; + * + * @return The width. + */ + @java.lang.Override + public int getWidth() { + return width_; + } + + public static final int HEIGHT_FIELD_NUMBER = 4; + private int height_ = 0; + + /** + * + * + *
                +     * Height of the bounding box in pixels.
                +     * 
                + * + * int32 height = 4; + * + * @return The height. + */ + @java.lang.Override + public int getHeight() { + return height_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (top_ != 0) { + output.writeInt32(1, top_); + } + if (left_ != 0) { + output.writeInt32(2, left_); + } + if (width_ != 0) { + output.writeInt32(3, width_); + } + if (height_ != 0) { + output.writeInt32(4, height_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (top_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, top_); + } + if (left_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, left_); + } + if (width_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, width_); + } + if (height_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, height_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox)) { + return super.equals(obj); + } + com.google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox other = + (com.google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox) obj; + + if (getTop() != other.getTop()) return false; + if (getLeft() != other.getLeft()) return false; + if (getWidth() != other.getWidth()) return false; + if (getHeight() != other.getHeight()) return false; + if (!getUnknownFields().equals(other.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) + TOP_FIELD_NUMBER; + hash = (53 * hash) + getTop(); + hash = (37 * hash) + LEFT_FIELD_NUMBER; + hash = (53 * hash) + getLeft(); + hash = (37 * hash) + WIDTH_FIELD_NUMBER; + hash = (53 * hash) + getWidth(); + hash = (37 * hash) + HEIGHT_FIELD_NUMBER; + hash = (53 * hash) + getHeight(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                +     * Bounding box encompassing a finding within an image.
                +     * 
                + * + * Protobuf type {@code google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox) + com.google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBoxOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.modelarmor.v1.V1mainProto + .internal_static_google_cloud_modelarmor_v1_SdpImageFindingLocation_SdpBoundingBox_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.modelarmor.v1.V1mainProto + .internal_static_google_cloud_modelarmor_v1_SdpImageFindingLocation_SdpBoundingBox_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox.class, + com.google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox.Builder + .class); + } + + // Construct using + // com.google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + top_ = 0; + left_ = 0; + width_ = 0; + height_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.modelarmor.v1.V1mainProto + .internal_static_google_cloud_modelarmor_v1_SdpImageFindingLocation_SdpBoundingBox_descriptor; + } + + @java.lang.Override + public com.google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox + getDefaultInstanceForType() { + return com.google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox build() { + com.google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox buildPartial() { + com.google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox result = + new com.google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.top_ = top_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.left_ = left_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.width_ = width_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.height_ = height_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox) { + return mergeFrom( + (com.google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox other) { + if (other + == com.google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox + .getDefaultInstance()) return this; + if (other.getTop() != 0) { + setTop(other.getTop()); + } + if (other.getLeft() != 0) { + setLeft(other.getLeft()); + } + if (other.getWidth() != 0) { + setWidth(other.getWidth()); + } + if (other.getHeight() != 0) { + setHeight(other.getHeight()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + top_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + left_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + width_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + height_ = input.readInt32(); + 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 int top_; + + /** + * + * + *
                +       * Top coordinate of the bounding box. (0,0) is upper left.
                +       * 
                + * + * int32 top = 1; + * + * @return The top. + */ + @java.lang.Override + public int getTop() { + return top_; + } + + /** + * + * + *
                +       * Top coordinate of the bounding box. (0,0) is upper left.
                +       * 
                + * + * int32 top = 1; + * + * @param value The top to set. + * @return This builder for chaining. + */ + public Builder setTop(int value) { + + top_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                +       * Top coordinate of the bounding box. (0,0) is upper left.
                +       * 
                + * + * int32 top = 1; + * + * @return This builder for chaining. + */ + public Builder clearTop() { + bitField0_ = (bitField0_ & ~0x00000001); + top_ = 0; + onChanged(); + return this; + } + + private int left_; + + /** + * + * + *
                +       * Left coordinate of the bounding box. (0,0) is upper left.
                +       * 
                + * + * int32 left = 2; + * + * @return The left. + */ + @java.lang.Override + public int getLeft() { + return left_; + } + + /** + * + * + *
                +       * Left coordinate of the bounding box. (0,0) is upper left.
                +       * 
                + * + * int32 left = 2; + * + * @param value The left to set. + * @return This builder for chaining. + */ + public Builder setLeft(int value) { + + left_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                +       * Left coordinate of the bounding box. (0,0) is upper left.
                +       * 
                + * + * int32 left = 2; + * + * @return This builder for chaining. + */ + public Builder clearLeft() { + bitField0_ = (bitField0_ & ~0x00000002); + left_ = 0; + onChanged(); + return this; + } + + private int width_; + + /** + * + * + *
                +       * Width of the bounding box in pixels.
                +       * 
                + * + * int32 width = 3; + * + * @return The width. + */ + @java.lang.Override + public int getWidth() { + return width_; + } + + /** + * + * + *
                +       * Width of the bounding box in pixels.
                +       * 
                + * + * int32 width = 3; + * + * @param value The width to set. + * @return This builder for chaining. + */ + public Builder setWidth(int value) { + + width_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                +       * Width of the bounding box in pixels.
                +       * 
                + * + * int32 width = 3; + * + * @return This builder for chaining. + */ + public Builder clearWidth() { + bitField0_ = (bitField0_ & ~0x00000004); + width_ = 0; + onChanged(); + return this; + } + + private int height_; + + /** + * + * + *
                +       * Height of the bounding box in pixels.
                +       * 
                + * + * int32 height = 4; + * + * @return The height. + */ + @java.lang.Override + public int getHeight() { + return height_; + } + + /** + * + * + *
                +       * Height of the bounding box in pixels.
                +       * 
                + * + * int32 height = 4; + * + * @param value The height to set. + * @return This builder for chaining. + */ + public Builder setHeight(int value) { + + height_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                +       * Height of the bounding box in pixels.
                +       * 
                + * + * int32 height = 4; + * + * @return This builder for chaining. + */ + public Builder clearHeight() { + bitField0_ = (bitField0_ & ~0x00000008); + height_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox) + } + + // @@protoc_insertion_point(class_scope:google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox) + private static final com.google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox(); + } + + public static com.google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SdpBoundingBox parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int BOUNDING_BOXES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + boundingBoxes_; + + /** + * + * + *
                +   * Bounding boxes locating the pixels within the image containing the finding.
                +   * 
                + * + * + * repeated .google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox bounding_boxes = 1; + * + */ + @java.lang.Override + public java.util.List + getBoundingBoxesList() { + return boundingBoxes_; + } + + /** + * + * + *
                +   * Bounding boxes locating the pixels within the image containing the finding.
                +   * 
                + * + * + * repeated .google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox bounding_boxes = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBoxOrBuilder> + getBoundingBoxesOrBuilderList() { + return boundingBoxes_; + } + + /** + * + * + *
                +   * Bounding boxes locating the pixels within the image containing the finding.
                +   * 
                + * + * + * repeated .google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox bounding_boxes = 1; + * + */ + @java.lang.Override + public int getBoundingBoxesCount() { + return boundingBoxes_.size(); + } + + /** + * + * + *
                +   * Bounding boxes locating the pixels within the image containing the finding.
                +   * 
                + * + * + * repeated .google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox bounding_boxes = 1; + * + */ + @java.lang.Override + public com.google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox getBoundingBoxes( + int index) { + return boundingBoxes_.get(index); + } + + /** + * + * + *
                +   * Bounding boxes locating the pixels within the image containing the finding.
                +   * 
                + * + * + * repeated .google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox bounding_boxes = 1; + * + */ + @java.lang.Override + public com.google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBoxOrBuilder + getBoundingBoxesOrBuilder(int index) { + return boundingBoxes_.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 < boundingBoxes_.size(); i++) { + output.writeMessage(1, boundingBoxes_.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 < boundingBoxes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, boundingBoxes_.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.modelarmor.v1.SdpImageFindingLocation)) { + return super.equals(obj); + } + com.google.cloud.modelarmor.v1.SdpImageFindingLocation other = + (com.google.cloud.modelarmor.v1.SdpImageFindingLocation) obj; + + if (!getBoundingBoxesList().equals(other.getBoundingBoxesList())) return false; + if (!getUnknownFields().equals(other.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 (getBoundingBoxesCount() > 0) { + hash = (37 * hash) + BOUNDING_BOXES_FIELD_NUMBER; + hash = (53 * hash) + getBoundingBoxesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.modelarmor.v1.SdpImageFindingLocation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.modelarmor.v1.SdpImageFindingLocation parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.modelarmor.v1.SdpImageFindingLocation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.modelarmor.v1.SdpImageFindingLocation parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.modelarmor.v1.SdpImageFindingLocation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.modelarmor.v1.SdpImageFindingLocation parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.modelarmor.v1.SdpImageFindingLocation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.modelarmor.v1.SdpImageFindingLocation parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.modelarmor.v1.SdpImageFindingLocation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.modelarmor.v1.SdpImageFindingLocation parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.modelarmor.v1.SdpImageFindingLocation parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.modelarmor.v1.SdpImageFindingLocation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.modelarmor.v1.SdpImageFindingLocation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                +   * Location of the finding within an image.
                +   * 
                + * + * Protobuf type {@code google.cloud.modelarmor.v1.SdpImageFindingLocation} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.modelarmor.v1.SdpImageFindingLocation) + com.google.cloud.modelarmor.v1.SdpImageFindingLocationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.modelarmor.v1.V1mainProto + .internal_static_google_cloud_modelarmor_v1_SdpImageFindingLocation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.modelarmor.v1.V1mainProto + .internal_static_google_cloud_modelarmor_v1_SdpImageFindingLocation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.modelarmor.v1.SdpImageFindingLocation.class, + com.google.cloud.modelarmor.v1.SdpImageFindingLocation.Builder.class); + } + + // Construct using com.google.cloud.modelarmor.v1.SdpImageFindingLocation.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (boundingBoxesBuilder_ == null) { + boundingBoxes_ = java.util.Collections.emptyList(); + } else { + boundingBoxes_ = null; + boundingBoxesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.modelarmor.v1.V1mainProto + .internal_static_google_cloud_modelarmor_v1_SdpImageFindingLocation_descriptor; + } + + @java.lang.Override + public com.google.cloud.modelarmor.v1.SdpImageFindingLocation getDefaultInstanceForType() { + return com.google.cloud.modelarmor.v1.SdpImageFindingLocation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.modelarmor.v1.SdpImageFindingLocation build() { + com.google.cloud.modelarmor.v1.SdpImageFindingLocation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.modelarmor.v1.SdpImageFindingLocation buildPartial() { + com.google.cloud.modelarmor.v1.SdpImageFindingLocation result = + new com.google.cloud.modelarmor.v1.SdpImageFindingLocation(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.modelarmor.v1.SdpImageFindingLocation result) { + if (boundingBoxesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + boundingBoxes_ = java.util.Collections.unmodifiableList(boundingBoxes_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.boundingBoxes_ = boundingBoxes_; + } else { + result.boundingBoxes_ = boundingBoxesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.modelarmor.v1.SdpImageFindingLocation result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.modelarmor.v1.SdpImageFindingLocation) { + return mergeFrom((com.google.cloud.modelarmor.v1.SdpImageFindingLocation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.modelarmor.v1.SdpImageFindingLocation other) { + if (other == com.google.cloud.modelarmor.v1.SdpImageFindingLocation.getDefaultInstance()) + return this; + if (boundingBoxesBuilder_ == null) { + if (!other.boundingBoxes_.isEmpty()) { + if (boundingBoxes_.isEmpty()) { + boundingBoxes_ = other.boundingBoxes_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureBoundingBoxesIsMutable(); + boundingBoxes_.addAll(other.boundingBoxes_); + } + onChanged(); + } + } else { + if (!other.boundingBoxes_.isEmpty()) { + if (boundingBoxesBuilder_.isEmpty()) { + boundingBoxesBuilder_.dispose(); + boundingBoxesBuilder_ = null; + boundingBoxes_ = other.boundingBoxes_; + bitField0_ = (bitField0_ & ~0x00000001); + boundingBoxesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetBoundingBoxesFieldBuilder() + : null; + } else { + boundingBoxesBuilder_.addAllMessages(other.boundingBoxes_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox m = + input.readMessage( + com.google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox + .parser(), + extensionRegistry); + if (boundingBoxesBuilder_ == null) { + ensureBoundingBoxesIsMutable(); + boundingBoxes_.add(m); + } else { + boundingBoxesBuilder_.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 + boundingBoxes_ = java.util.Collections.emptyList(); + + private void ensureBoundingBoxesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + boundingBoxes_ = + new java.util.ArrayList< + com.google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox>( + boundingBoxes_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox, + com.google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox.Builder, + com.google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBoxOrBuilder> + boundingBoxesBuilder_; + + /** + * + * + *
                +     * Bounding boxes locating the pixels within the image containing the finding.
                +     * 
                + * + * + * repeated .google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox bounding_boxes = 1; + * + */ + public java.util.List + getBoundingBoxesList() { + if (boundingBoxesBuilder_ == null) { + return java.util.Collections.unmodifiableList(boundingBoxes_); + } else { + return boundingBoxesBuilder_.getMessageList(); + } + } + + /** + * + * + *
                +     * Bounding boxes locating the pixels within the image containing the finding.
                +     * 
                + * + * + * repeated .google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox bounding_boxes = 1; + * + */ + public int getBoundingBoxesCount() { + if (boundingBoxesBuilder_ == null) { + return boundingBoxes_.size(); + } else { + return boundingBoxesBuilder_.getCount(); + } + } + + /** + * + * + *
                +     * Bounding boxes locating the pixels within the image containing the finding.
                +     * 
                + * + * + * repeated .google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox bounding_boxes = 1; + * + */ + public com.google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox getBoundingBoxes( + int index) { + if (boundingBoxesBuilder_ == null) { + return boundingBoxes_.get(index); + } else { + return boundingBoxesBuilder_.getMessage(index); + } + } + + /** + * + * + *
                +     * Bounding boxes locating the pixels within the image containing the finding.
                +     * 
                + * + * + * repeated .google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox bounding_boxes = 1; + * + */ + public Builder setBoundingBoxes( + int index, com.google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox value) { + if (boundingBoxesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBoundingBoxesIsMutable(); + boundingBoxes_.set(index, value); + onChanged(); + } else { + boundingBoxesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                +     * Bounding boxes locating the pixels within the image containing the finding.
                +     * 
                + * + * + * repeated .google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox bounding_boxes = 1; + * + */ + public Builder setBoundingBoxes( + int index, + com.google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox.Builder + builderForValue) { + if (boundingBoxesBuilder_ == null) { + ensureBoundingBoxesIsMutable(); + boundingBoxes_.set(index, builderForValue.build()); + onChanged(); + } else { + boundingBoxesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                +     * Bounding boxes locating the pixels within the image containing the finding.
                +     * 
                + * + * + * repeated .google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox bounding_boxes = 1; + * + */ + public Builder addBoundingBoxes( + com.google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox value) { + if (boundingBoxesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBoundingBoxesIsMutable(); + boundingBoxes_.add(value); + onChanged(); + } else { + boundingBoxesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                +     * Bounding boxes locating the pixels within the image containing the finding.
                +     * 
                + * + * + * repeated .google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox bounding_boxes = 1; + * + */ + public Builder addBoundingBoxes( + int index, com.google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox value) { + if (boundingBoxesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBoundingBoxesIsMutable(); + boundingBoxes_.add(index, value); + onChanged(); + } else { + boundingBoxesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                +     * Bounding boxes locating the pixels within the image containing the finding.
                +     * 
                + * + * + * repeated .google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox bounding_boxes = 1; + * + */ + public Builder addBoundingBoxes( + com.google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox.Builder + builderForValue) { + if (boundingBoxesBuilder_ == null) { + ensureBoundingBoxesIsMutable(); + boundingBoxes_.add(builderForValue.build()); + onChanged(); + } else { + boundingBoxesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                +     * Bounding boxes locating the pixels within the image containing the finding.
                +     * 
                + * + * + * repeated .google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox bounding_boxes = 1; + * + */ + public Builder addBoundingBoxes( + int index, + com.google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox.Builder + builderForValue) { + if (boundingBoxesBuilder_ == null) { + ensureBoundingBoxesIsMutable(); + boundingBoxes_.add(index, builderForValue.build()); + onChanged(); + } else { + boundingBoxesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                +     * Bounding boxes locating the pixels within the image containing the finding.
                +     * 
                + * + * + * repeated .google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox bounding_boxes = 1; + * + */ + public Builder addAllBoundingBoxes( + java.lang.Iterable< + ? extends com.google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox> + values) { + if (boundingBoxesBuilder_ == null) { + ensureBoundingBoxesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, boundingBoxes_); + onChanged(); + } else { + boundingBoxesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                +     * Bounding boxes locating the pixels within the image containing the finding.
                +     * 
                + * + * + * repeated .google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox bounding_boxes = 1; + * + */ + public Builder clearBoundingBoxes() { + if (boundingBoxesBuilder_ == null) { + boundingBoxes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + boundingBoxesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                +     * Bounding boxes locating the pixels within the image containing the finding.
                +     * 
                + * + * + * repeated .google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox bounding_boxes = 1; + * + */ + public Builder removeBoundingBoxes(int index) { + if (boundingBoxesBuilder_ == null) { + ensureBoundingBoxesIsMutable(); + boundingBoxes_.remove(index); + onChanged(); + } else { + boundingBoxesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                +     * Bounding boxes locating the pixels within the image containing the finding.
                +     * 
                + * + * + * repeated .google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox bounding_boxes = 1; + * + */ + public com.google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox.Builder + getBoundingBoxesBuilder(int index) { + return internalGetBoundingBoxesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                +     * Bounding boxes locating the pixels within the image containing the finding.
                +     * 
                + * + * + * repeated .google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox bounding_boxes = 1; + * + */ + public com.google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBoxOrBuilder + getBoundingBoxesOrBuilder(int index) { + if (boundingBoxesBuilder_ == null) { + return boundingBoxes_.get(index); + } else { + return boundingBoxesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                +     * Bounding boxes locating the pixels within the image containing the finding.
                +     * 
                + * + * + * repeated .google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox bounding_boxes = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBoxOrBuilder> + getBoundingBoxesOrBuilderList() { + if (boundingBoxesBuilder_ != null) { + return boundingBoxesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(boundingBoxes_); + } + } + + /** + * + * + *
                +     * Bounding boxes locating the pixels within the image containing the finding.
                +     * 
                + * + * + * repeated .google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox bounding_boxes = 1; + * + */ + public com.google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox.Builder + addBoundingBoxesBuilder() { + return internalGetBoundingBoxesFieldBuilder() + .addBuilder( + com.google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox + .getDefaultInstance()); + } + + /** + * + * + *
                +     * Bounding boxes locating the pixels within the image containing the finding.
                +     * 
                + * + * + * repeated .google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox bounding_boxes = 1; + * + */ + public com.google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox.Builder + addBoundingBoxesBuilder(int index) { + return internalGetBoundingBoxesFieldBuilder() + .addBuilder( + index, + com.google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox + .getDefaultInstance()); + } + + /** + * + * + *
                +     * Bounding boxes locating the pixels within the image containing the finding.
                +     * 
                + * + * + * repeated .google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox bounding_boxes = 1; + * + */ + public java.util.List< + com.google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox.Builder> + getBoundingBoxesBuilderList() { + return internalGetBoundingBoxesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox, + com.google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox.Builder, + com.google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBoxOrBuilder> + internalGetBoundingBoxesFieldBuilder() { + if (boundingBoxesBuilder_ == null) { + boundingBoxesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox, + com.google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox.Builder, + com.google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBoxOrBuilder>( + boundingBoxes_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + boundingBoxes_ = null; + } + return boundingBoxesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.modelarmor.v1.SdpImageFindingLocation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.modelarmor.v1.SdpImageFindingLocation) + private static final com.google.cloud.modelarmor.v1.SdpImageFindingLocation DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.modelarmor.v1.SdpImageFindingLocation(); + } + + public static com.google.cloud.modelarmor.v1.SdpImageFindingLocation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SdpImageFindingLocation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.modelarmor.v1.SdpImageFindingLocation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SdpImageFindingLocationOrBuilder.java b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SdpImageFindingLocationOrBuilder.java new file mode 100644 index 000000000000..405cf70c55d3 --- /dev/null +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SdpImageFindingLocationOrBuilder.java @@ -0,0 +1,97 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/modelarmor/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.modelarmor.v1; + +@com.google.protobuf.Generated +public interface SdpImageFindingLocationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.modelarmor.v1.SdpImageFindingLocation) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                +   * Bounding boxes locating the pixels within the image containing the finding.
                +   * 
                + * + * + * repeated .google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox bounding_boxes = 1; + * + */ + java.util.List + getBoundingBoxesList(); + + /** + * + * + *
                +   * Bounding boxes locating the pixels within the image containing the finding.
                +   * 
                + * + * + * repeated .google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox bounding_boxes = 1; + * + */ + com.google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox getBoundingBoxes(int index); + + /** + * + * + *
                +   * Bounding boxes locating the pixels within the image containing the finding.
                +   * 
                + * + * + * repeated .google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox bounding_boxes = 1; + * + */ + int getBoundingBoxesCount(); + + /** + * + * + *
                +   * Bounding boxes locating the pixels within the image containing the finding.
                +   * 
                + * + * + * repeated .google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox bounding_boxes = 1; + * + */ + java.util.List< + ? extends com.google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBoxOrBuilder> + getBoundingBoxesOrBuilderList(); + + /** + * + * + *
                +   * Bounding boxes locating the pixels within the image containing the finding.
                +   * 
                + * + * + * repeated .google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox bounding_boxes = 1; + * + */ + com.google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBoxOrBuilder + getBoundingBoxesOrBuilder(int index); +} diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SdpInspectResult.java b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SdpInspectResult.java index f18cf9d30ae7..0dde53b1e692 100644 --- a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SdpInspectResult.java +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SdpInspectResult.java @@ -56,6 +56,7 @@ private SdpInspectResult() { messageItems_ = java.util.Collections.emptyList(); matchState_ = 0; findings_ = java.util.Collections.emptyList(); + extractedImageText_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -353,6 +354,59 @@ public boolean getFindingsTruncated() { return findingsTruncated_; } + public static final int EXTRACTED_IMAGE_TEXT_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object extractedImageText_ = ""; + + /** + * + * + *
                +   * Contains text extracted from the image, if applicable.
                +   * 
                + * + * string extracted_image_text = 6; + * + * @return The extractedImageText. + */ + @java.lang.Override + public java.lang.String getExtractedImageText() { + java.lang.Object ref = extractedImageText_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + extractedImageText_ = s; + return s; + } + } + + /** + * + * + *
                +   * Contains text extracted from the image, if applicable.
                +   * 
                + * + * string extracted_image_text = 6; + * + * @return The bytes for extractedImageText. + */ + @java.lang.Override + public com.google.protobuf.ByteString getExtractedImageTextBytes() { + java.lang.Object ref = extractedImageText_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + extractedImageText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -386,6 +440,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (findingsTruncated_ != false) { output.writeBool(5, findingsTruncated_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(extractedImageText_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, extractedImageText_); + } getUnknownFields().writeTo(output); } @@ -414,6 +471,9 @@ public int getSerializedSize() { if (findingsTruncated_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, findingsTruncated_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(extractedImageText_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, extractedImageText_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -435,6 +495,7 @@ public boolean equals(final java.lang.Object obj) { if (matchState_ != other.matchState_) return false; if (!getFindingsList().equals(other.getFindingsList())) return false; if (getFindingsTruncated() != other.getFindingsTruncated()) return false; + if (!getExtractedImageText().equals(other.getExtractedImageText())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -460,6 +521,8 @@ public int hashCode() { } hash = (37 * hash) + FINDINGS_TRUNCATED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getFindingsTruncated()); + hash = (37 * hash) + EXTRACTED_IMAGE_TEXT_FIELD_NUMBER; + hash = (53 * hash) + getExtractedImageText().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -617,6 +680,7 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000008); findingsTruncated_ = false; + extractedImageText_ = ""; return this; } @@ -685,6 +749,9 @@ private void buildPartial0(com.google.cloud.modelarmor.v1.SdpInspectResult resul if (((from_bitField0_ & 0x00000010) != 0)) { result.findingsTruncated_ = findingsTruncated_; } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.extractedImageText_ = extractedImageText_; + } } @java.lang.Override @@ -763,6 +830,11 @@ public Builder mergeFrom(com.google.cloud.modelarmor.v1.SdpInspectResult other) if (other.getFindingsTruncated() != false) { setFindingsTruncated(other.getFindingsTruncated()); } + if (!other.getExtractedImageText().isEmpty()) { + extractedImageText_ = other.extractedImageText_; + bitField0_ |= 0x00000020; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -833,6 +905,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000010; break; } // case 40 + case 50: + { + extractedImageText_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1935,6 +2013,117 @@ public Builder clearFindingsTruncated() { return this; } + private java.lang.Object extractedImageText_ = ""; + + /** + * + * + *
                +     * Contains text extracted from the image, if applicable.
                +     * 
                + * + * string extracted_image_text = 6; + * + * @return The extractedImageText. + */ + public java.lang.String getExtractedImageText() { + java.lang.Object ref = extractedImageText_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + extractedImageText_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                +     * Contains text extracted from the image, if applicable.
                +     * 
                + * + * string extracted_image_text = 6; + * + * @return The bytes for extractedImageText. + */ + public com.google.protobuf.ByteString getExtractedImageTextBytes() { + java.lang.Object ref = extractedImageText_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + extractedImageText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                +     * Contains text extracted from the image, if applicable.
                +     * 
                + * + * string extracted_image_text = 6; + * + * @param value The extractedImageText to set. + * @return This builder for chaining. + */ + public Builder setExtractedImageText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + extractedImageText_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Contains text extracted from the image, if applicable.
                +     * 
                + * + * string extracted_image_text = 6; + * + * @return This builder for chaining. + */ + public Builder clearExtractedImageText() { + extractedImageText_ = getDefaultInstance().getExtractedImageText(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Contains text extracted from the image, if applicable.
                +     * 
                + * + * string extracted_image_text = 6; + * + * @param value The bytes for extractedImageText to set. + * @return This builder for chaining. + */ + public Builder setExtractedImageTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + extractedImageText_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.modelarmor.v1.SdpInspectResult) } diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SdpInspectResultOrBuilder.java b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SdpInspectResultOrBuilder.java index 64edac9bb964..eba1a5ba071b 100644 --- a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SdpInspectResultOrBuilder.java +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SdpInspectResultOrBuilder.java @@ -235,4 +235,30 @@ public interface SdpInspectResultOrBuilder * @return The findingsTruncated. */ boolean getFindingsTruncated(); + + /** + * + * + *
                +   * Contains text extracted from the image, if applicable.
                +   * 
                + * + * string extracted_image_text = 6; + * + * @return The extractedImageText. + */ + java.lang.String getExtractedImageText(); + + /** + * + * + *
                +   * Contains text extracted from the image, if applicable.
                +   * 
                + * + * string extracted_image_text = 6; + * + * @return The bytes for extractedImageText. + */ + com.google.protobuf.ByteString getExtractedImageTextBytes(); } diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SdpRedactResult.java b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SdpRedactResult.java new file mode 100644 index 000000000000..b70b5a640f32 --- /dev/null +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SdpRedactResult.java @@ -0,0 +1,2273 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/modelarmor/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.modelarmor.v1; + +/** + * + * + *
                + * Sensitive Data Protection Redaction Result.
                + * 
                + * + * Protobuf type {@code google.cloud.modelarmor.v1.SdpRedactResult} + */ +@com.google.protobuf.Generated +public final class SdpRedactResult extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.modelarmor.v1.SdpRedactResult) + SdpRedactResultOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SdpRedactResult"); + } + + // Use SdpRedactResult.newBuilder() to construct. + private SdpRedactResult(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SdpRedactResult() { + executionState_ = 0; + messageItems_ = java.util.Collections.emptyList(); + matchState_ = 0; + redactedImage_ = com.google.protobuf.ByteString.EMPTY; + findings_ = java.util.Collections.emptyList(); + extractedImageText_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.modelarmor.v1.V1mainProto + .internal_static_google_cloud_modelarmor_v1_SdpRedactResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.modelarmor.v1.V1mainProto + .internal_static_google_cloud_modelarmor_v1_SdpRedactResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.modelarmor.v1.SdpRedactResult.class, + com.google.cloud.modelarmor.v1.SdpRedactResult.Builder.class); + } + + public static final int EXECUTION_STATE_FIELD_NUMBER = 1; + private int executionState_ = 0; + + /** + * + * + *
                +   * Output only. Reports whether Sensitive Data Protection redaction was
                +   * successfully executed or not.
                +   * 
                + * + * + * .google.cloud.modelarmor.v1.FilterExecutionState execution_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for executionState. + */ + @java.lang.Override + public int getExecutionStateValue() { + return executionState_; + } + + /** + * + * + *
                +   * Output only. Reports whether Sensitive Data Protection redaction was
                +   * successfully executed or not.
                +   * 
                + * + * + * .google.cloud.modelarmor.v1.FilterExecutionState execution_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The executionState. + */ + @java.lang.Override + public com.google.cloud.modelarmor.v1.FilterExecutionState getExecutionState() { + com.google.cloud.modelarmor.v1.FilterExecutionState result = + com.google.cloud.modelarmor.v1.FilterExecutionState.forNumber(executionState_); + return result == null + ? com.google.cloud.modelarmor.v1.FilterExecutionState.UNRECOGNIZED + : result; + } + + public static final int MESSAGE_ITEMS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List messageItems_; + + /** + * + * + *
                +   * Output only. Optional messages corresponding to the result.
                +   * A message can provide warnings or error details.
                +   * For example, if execution state is skipped then this field provides
                +   * related reason/explanation.
                +   * 
                + * + * + * repeated .google.cloud.modelarmor.v1.MessageItem message_items = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getMessageItemsList() { + return messageItems_; + } + + /** + * + * + *
                +   * Output only. Optional messages corresponding to the result.
                +   * A message can provide warnings or error details.
                +   * For example, if execution state is skipped then this field provides
                +   * related reason/explanation.
                +   * 
                + * + * + * repeated .google.cloud.modelarmor.v1.MessageItem message_items = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getMessageItemsOrBuilderList() { + return messageItems_; + } + + /** + * + * + *
                +   * Output only. Optional messages corresponding to the result.
                +   * A message can provide warnings or error details.
                +   * For example, if execution state is skipped then this field provides
                +   * related reason/explanation.
                +   * 
                + * + * + * repeated .google.cloud.modelarmor.v1.MessageItem message_items = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getMessageItemsCount() { + return messageItems_.size(); + } + + /** + * + * + *
                +   * Output only. Optional messages corresponding to the result.
                +   * A message can provide warnings or error details.
                +   * For example, if execution state is skipped then this field provides
                +   * related reason/explanation.
                +   * 
                + * + * + * repeated .google.cloud.modelarmor.v1.MessageItem message_items = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.modelarmor.v1.MessageItem getMessageItems(int index) { + return messageItems_.get(index); + } + + /** + * + * + *
                +   * Output only. Optional messages corresponding to the result.
                +   * A message can provide warnings or error details.
                +   * For example, if execution state is skipped then this field provides
                +   * related reason/explanation.
                +   * 
                + * + * + * repeated .google.cloud.modelarmor.v1.MessageItem message_items = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.modelarmor.v1.MessageItemOrBuilder getMessageItemsOrBuilder(int index) { + return messageItems_.get(index); + } + + public static final int MATCH_STATE_FIELD_NUMBER = 3; + private int matchState_ = 0; + + /** + * + * + *
                +   * Output only. Match state for Sensitive Data Protection Redaction.
                +   * Value is MATCH_FOUND if content is redacted.
                +   * 
                + * + * + * .google.cloud.modelarmor.v1.FilterMatchState match_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for matchState. + */ + @java.lang.Override + public int getMatchStateValue() { + return matchState_; + } + + /** + * + * + *
                +   * Output only. Match state for Sensitive Data Protection Redaction.
                +   * Value is MATCH_FOUND if content is redacted.
                +   * 
                + * + * + * .google.cloud.modelarmor.v1.FilterMatchState match_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The matchState. + */ + @java.lang.Override + public com.google.cloud.modelarmor.v1.FilterMatchState getMatchState() { + com.google.cloud.modelarmor.v1.FilterMatchState result = + com.google.cloud.modelarmor.v1.FilterMatchState.forNumber(matchState_); + return result == null ? com.google.cloud.modelarmor.v1.FilterMatchState.UNRECOGNIZED : result; + } + + public static final int REDACTED_IMAGE_FIELD_NUMBER = 4; + private com.google.protobuf.ByteString redactedImage_ = com.google.protobuf.ByteString.EMPTY; + + /** + * + * + *
                +   * Output only. The redacted image. The type will be the same as the original
                +   * image.
                +   * 
                + * + * bytes redacted_image = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The redactedImage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRedactedImage() { + return redactedImage_; + } + + public static final int FINDINGS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private java.util.List findings_; + + /** + * + * + *
                +   * Output only. The findings. This field is populated in the response only
                +   * when include_findings in the SDP template is set to true.
                +   * 
                + * + * + * repeated .google.cloud.modelarmor.v1.SdpFinding findings = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getFindingsList() { + return findings_; + } + + /** + * + * + *
                +   * Output only. The findings. This field is populated in the response only
                +   * when include_findings in the SDP template is set to true.
                +   * 
                + * + * + * repeated .google.cloud.modelarmor.v1.SdpFinding findings = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getFindingsOrBuilderList() { + return findings_; + } + + /** + * + * + *
                +   * Output only. The findings. This field is populated in the response only
                +   * when include_findings in the SDP template is set to true.
                +   * 
                + * + * + * repeated .google.cloud.modelarmor.v1.SdpFinding findings = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getFindingsCount() { + return findings_.size(); + } + + /** + * + * + *
                +   * Output only. The findings. This field is populated in the response only
                +   * when include_findings in the SDP template is set to true.
                +   * 
                + * + * + * repeated .google.cloud.modelarmor.v1.SdpFinding findings = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.modelarmor.v1.SdpFinding getFindings(int index) { + return findings_.get(index); + } + + /** + * + * + *
                +   * Output only. The findings. This field is populated in the response only
                +   * when include_findings in the SDP template is set to true.
                +   * 
                + * + * + * repeated .google.cloud.modelarmor.v1.SdpFinding findings = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.modelarmor.v1.SdpFindingOrBuilder getFindingsOrBuilder(int index) { + return findings_.get(index); + } + + public static final int EXTRACTED_IMAGE_TEXT_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object extractedImageText_ = ""; + + /** + * + * + *
                +   * The extracted text from the image.
                +   * 
                + * + * string extracted_image_text = 6; + * + * @return The extractedImageText. + */ + @java.lang.Override + public java.lang.String getExtractedImageText() { + java.lang.Object ref = extractedImageText_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + extractedImageText_ = s; + return s; + } + } + + /** + * + * + *
                +   * The extracted text from the image.
                +   * 
                + * + * string extracted_image_text = 6; + * + * @return The bytes for extractedImageText. + */ + @java.lang.Override + public com.google.protobuf.ByteString getExtractedImageTextBytes() { + java.lang.Object ref = extractedImageText_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + extractedImageText_ = 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 (executionState_ + != com.google.cloud.modelarmor.v1.FilterExecutionState.FILTER_EXECUTION_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, executionState_); + } + for (int i = 0; i < messageItems_.size(); i++) { + output.writeMessage(2, messageItems_.get(i)); + } + if (matchState_ + != com.google.cloud.modelarmor.v1.FilterMatchState.FILTER_MATCH_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, matchState_); + } + if (!redactedImage_.isEmpty()) { + output.writeBytes(4, redactedImage_); + } + for (int i = 0; i < findings_.size(); i++) { + output.writeMessage(5, findings_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(extractedImageText_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, extractedImageText_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (executionState_ + != com.google.cloud.modelarmor.v1.FilterExecutionState.FILTER_EXECUTION_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, executionState_); + } + for (int i = 0; i < messageItems_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, messageItems_.get(i)); + } + if (matchState_ + != com.google.cloud.modelarmor.v1.FilterMatchState.FILTER_MATCH_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, matchState_); + } + if (!redactedImage_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(4, redactedImage_); + } + for (int i = 0; i < findings_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, findings_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(extractedImageText_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, extractedImageText_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.modelarmor.v1.SdpRedactResult)) { + return super.equals(obj); + } + com.google.cloud.modelarmor.v1.SdpRedactResult other = + (com.google.cloud.modelarmor.v1.SdpRedactResult) obj; + + if (executionState_ != other.executionState_) return false; + if (!getMessageItemsList().equals(other.getMessageItemsList())) return false; + if (matchState_ != other.matchState_) return false; + if (!getRedactedImage().equals(other.getRedactedImage())) return false; + if (!getFindingsList().equals(other.getFindingsList())) return false; + if (!getExtractedImageText().equals(other.getExtractedImageText())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + EXECUTION_STATE_FIELD_NUMBER; + hash = (53 * hash) + executionState_; + if (getMessageItemsCount() > 0) { + hash = (37 * hash) + MESSAGE_ITEMS_FIELD_NUMBER; + hash = (53 * hash) + getMessageItemsList().hashCode(); + } + hash = (37 * hash) + MATCH_STATE_FIELD_NUMBER; + hash = (53 * hash) + matchState_; + hash = (37 * hash) + REDACTED_IMAGE_FIELD_NUMBER; + hash = (53 * hash) + getRedactedImage().hashCode(); + if (getFindingsCount() > 0) { + hash = (37 * hash) + FINDINGS_FIELD_NUMBER; + hash = (53 * hash) + getFindingsList().hashCode(); + } + hash = (37 * hash) + EXTRACTED_IMAGE_TEXT_FIELD_NUMBER; + hash = (53 * hash) + getExtractedImageText().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.modelarmor.v1.SdpRedactResult parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.modelarmor.v1.SdpRedactResult parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.modelarmor.v1.SdpRedactResult parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.modelarmor.v1.SdpRedactResult parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.modelarmor.v1.SdpRedactResult parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.modelarmor.v1.SdpRedactResult parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.modelarmor.v1.SdpRedactResult parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.modelarmor.v1.SdpRedactResult parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.modelarmor.v1.SdpRedactResult parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.modelarmor.v1.SdpRedactResult parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.modelarmor.v1.SdpRedactResult parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.modelarmor.v1.SdpRedactResult parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.modelarmor.v1.SdpRedactResult prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                +   * Sensitive Data Protection Redaction Result.
                +   * 
                + * + * Protobuf type {@code google.cloud.modelarmor.v1.SdpRedactResult} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.modelarmor.v1.SdpRedactResult) + com.google.cloud.modelarmor.v1.SdpRedactResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.modelarmor.v1.V1mainProto + .internal_static_google_cloud_modelarmor_v1_SdpRedactResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.modelarmor.v1.V1mainProto + .internal_static_google_cloud_modelarmor_v1_SdpRedactResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.modelarmor.v1.SdpRedactResult.class, + com.google.cloud.modelarmor.v1.SdpRedactResult.Builder.class); + } + + // Construct using com.google.cloud.modelarmor.v1.SdpRedactResult.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + executionState_ = 0; + if (messageItemsBuilder_ == null) { + messageItems_ = java.util.Collections.emptyList(); + } else { + messageItems_ = null; + messageItemsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + matchState_ = 0; + redactedImage_ = com.google.protobuf.ByteString.EMPTY; + if (findingsBuilder_ == null) { + findings_ = java.util.Collections.emptyList(); + } else { + findings_ = null; + findingsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + extractedImageText_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.modelarmor.v1.V1mainProto + .internal_static_google_cloud_modelarmor_v1_SdpRedactResult_descriptor; + } + + @java.lang.Override + public com.google.cloud.modelarmor.v1.SdpRedactResult getDefaultInstanceForType() { + return com.google.cloud.modelarmor.v1.SdpRedactResult.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.modelarmor.v1.SdpRedactResult build() { + com.google.cloud.modelarmor.v1.SdpRedactResult result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.modelarmor.v1.SdpRedactResult buildPartial() { + com.google.cloud.modelarmor.v1.SdpRedactResult result = + new com.google.cloud.modelarmor.v1.SdpRedactResult(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.modelarmor.v1.SdpRedactResult result) { + if (messageItemsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + messageItems_ = java.util.Collections.unmodifiableList(messageItems_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.messageItems_ = messageItems_; + } else { + result.messageItems_ = messageItemsBuilder_.build(); + } + if (findingsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + findings_ = java.util.Collections.unmodifiableList(findings_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.findings_ = findings_; + } else { + result.findings_ = findingsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.modelarmor.v1.SdpRedactResult result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.executionState_ = executionState_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.matchState_ = matchState_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.redactedImage_ = redactedImage_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.extractedImageText_ = extractedImageText_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.modelarmor.v1.SdpRedactResult) { + return mergeFrom((com.google.cloud.modelarmor.v1.SdpRedactResult) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.modelarmor.v1.SdpRedactResult other) { + if (other == com.google.cloud.modelarmor.v1.SdpRedactResult.getDefaultInstance()) return this; + if (other.executionState_ != 0) { + setExecutionStateValue(other.getExecutionStateValue()); + } + if (messageItemsBuilder_ == null) { + if (!other.messageItems_.isEmpty()) { + if (messageItems_.isEmpty()) { + messageItems_ = other.messageItems_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureMessageItemsIsMutable(); + messageItems_.addAll(other.messageItems_); + } + onChanged(); + } + } else { + if (!other.messageItems_.isEmpty()) { + if (messageItemsBuilder_.isEmpty()) { + messageItemsBuilder_.dispose(); + messageItemsBuilder_ = null; + messageItems_ = other.messageItems_; + bitField0_ = (bitField0_ & ~0x00000002); + messageItemsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetMessageItemsFieldBuilder() + : null; + } else { + messageItemsBuilder_.addAllMessages(other.messageItems_); + } + } + } + if (other.matchState_ != 0) { + setMatchStateValue(other.getMatchStateValue()); + } + if (!other.getRedactedImage().isEmpty()) { + setRedactedImage(other.getRedactedImage()); + } + if (findingsBuilder_ == null) { + if (!other.findings_.isEmpty()) { + if (findings_.isEmpty()) { + findings_ = other.findings_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureFindingsIsMutable(); + findings_.addAll(other.findings_); + } + onChanged(); + } + } else { + if (!other.findings_.isEmpty()) { + if (findingsBuilder_.isEmpty()) { + findingsBuilder_.dispose(); + findingsBuilder_ = null; + findings_ = other.findings_; + bitField0_ = (bitField0_ & ~0x00000010); + findingsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetFindingsFieldBuilder() + : null; + } else { + findingsBuilder_.addAllMessages(other.findings_); + } + } + } + if (!other.getExtractedImageText().isEmpty()) { + extractedImageText_ = other.extractedImageText_; + 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 8: + { + executionState_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + com.google.cloud.modelarmor.v1.MessageItem m = + input.readMessage( + com.google.cloud.modelarmor.v1.MessageItem.parser(), extensionRegistry); + if (messageItemsBuilder_ == null) { + ensureMessageItemsIsMutable(); + messageItems_.add(m); + } else { + messageItemsBuilder_.addMessage(m); + } + break; + } // case 18 + case 24: + { + matchState_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + redactedImage_ = input.readBytes(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + com.google.cloud.modelarmor.v1.SdpFinding m = + input.readMessage( + com.google.cloud.modelarmor.v1.SdpFinding.parser(), extensionRegistry); + if (findingsBuilder_ == null) { + ensureFindingsIsMutable(); + findings_.add(m); + } else { + findingsBuilder_.addMessage(m); + } + break; + } // case 42 + case 50: + { + extractedImageText_ = 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 int executionState_ = 0; + + /** + * + * + *
                +     * Output only. Reports whether Sensitive Data Protection redaction was
                +     * successfully executed or not.
                +     * 
                + * + * + * .google.cloud.modelarmor.v1.FilterExecutionState execution_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for executionState. + */ + @java.lang.Override + public int getExecutionStateValue() { + return executionState_; + } + + /** + * + * + *
                +     * Output only. Reports whether Sensitive Data Protection redaction was
                +     * successfully executed or not.
                +     * 
                + * + * + * .google.cloud.modelarmor.v1.FilterExecutionState execution_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for executionState to set. + * @return This builder for chaining. + */ + public Builder setExecutionStateValue(int value) { + executionState_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. Reports whether Sensitive Data Protection redaction was
                +     * successfully executed or not.
                +     * 
                + * + * + * .google.cloud.modelarmor.v1.FilterExecutionState execution_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The executionState. + */ + @java.lang.Override + public com.google.cloud.modelarmor.v1.FilterExecutionState getExecutionState() { + com.google.cloud.modelarmor.v1.FilterExecutionState result = + com.google.cloud.modelarmor.v1.FilterExecutionState.forNumber(executionState_); + return result == null + ? com.google.cloud.modelarmor.v1.FilterExecutionState.UNRECOGNIZED + : result; + } + + /** + * + * + *
                +     * Output only. Reports whether Sensitive Data Protection redaction was
                +     * successfully executed or not.
                +     * 
                + * + * + * .google.cloud.modelarmor.v1.FilterExecutionState execution_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The executionState to set. + * @return This builder for chaining. + */ + public Builder setExecutionState(com.google.cloud.modelarmor.v1.FilterExecutionState value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + executionState_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. Reports whether Sensitive Data Protection redaction was
                +     * successfully executed or not.
                +     * 
                + * + * + * .google.cloud.modelarmor.v1.FilterExecutionState execution_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearExecutionState() { + bitField0_ = (bitField0_ & ~0x00000001); + executionState_ = 0; + onChanged(); + return this; + } + + private java.util.List messageItems_ = + java.util.Collections.emptyList(); + + private void ensureMessageItemsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + messageItems_ = + new java.util.ArrayList(messageItems_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.modelarmor.v1.MessageItem, + com.google.cloud.modelarmor.v1.MessageItem.Builder, + com.google.cloud.modelarmor.v1.MessageItemOrBuilder> + messageItemsBuilder_; + + /** + * + * + *
                +     * Output only. Optional messages corresponding to the result.
                +     * A message can provide warnings or error details.
                +     * For example, if execution state is skipped then this field provides
                +     * related reason/explanation.
                +     * 
                + * + * + * repeated .google.cloud.modelarmor.v1.MessageItem message_items = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getMessageItemsList() { + if (messageItemsBuilder_ == null) { + return java.util.Collections.unmodifiableList(messageItems_); + } else { + return messageItemsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                +     * Output only. Optional messages corresponding to the result.
                +     * A message can provide warnings or error details.
                +     * For example, if execution state is skipped then this field provides
                +     * related reason/explanation.
                +     * 
                + * + * + * repeated .google.cloud.modelarmor.v1.MessageItem message_items = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getMessageItemsCount() { + if (messageItemsBuilder_ == null) { + return messageItems_.size(); + } else { + return messageItemsBuilder_.getCount(); + } + } + + /** + * + * + *
                +     * Output only. Optional messages corresponding to the result.
                +     * A message can provide warnings or error details.
                +     * For example, if execution state is skipped then this field provides
                +     * related reason/explanation.
                +     * 
                + * + * + * repeated .google.cloud.modelarmor.v1.MessageItem message_items = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.modelarmor.v1.MessageItem getMessageItems(int index) { + if (messageItemsBuilder_ == null) { + return messageItems_.get(index); + } else { + return messageItemsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                +     * Output only. Optional messages corresponding to the result.
                +     * A message can provide warnings or error details.
                +     * For example, if execution state is skipped then this field provides
                +     * related reason/explanation.
                +     * 
                + * + * + * repeated .google.cloud.modelarmor.v1.MessageItem message_items = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setMessageItems(int index, com.google.cloud.modelarmor.v1.MessageItem value) { + if (messageItemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMessageItemsIsMutable(); + messageItems_.set(index, value); + onChanged(); + } else { + messageItemsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                +     * Output only. Optional messages corresponding to the result.
                +     * A message can provide warnings or error details.
                +     * For example, if execution state is skipped then this field provides
                +     * related reason/explanation.
                +     * 
                + * + * + * repeated .google.cloud.modelarmor.v1.MessageItem message_items = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setMessageItems( + int index, com.google.cloud.modelarmor.v1.MessageItem.Builder builderForValue) { + if (messageItemsBuilder_ == null) { + ensureMessageItemsIsMutable(); + messageItems_.set(index, builderForValue.build()); + onChanged(); + } else { + messageItemsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                +     * Output only. Optional messages corresponding to the result.
                +     * A message can provide warnings or error details.
                +     * For example, if execution state is skipped then this field provides
                +     * related reason/explanation.
                +     * 
                + * + * + * repeated .google.cloud.modelarmor.v1.MessageItem message_items = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addMessageItems(com.google.cloud.modelarmor.v1.MessageItem value) { + if (messageItemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMessageItemsIsMutable(); + messageItems_.add(value); + onChanged(); + } else { + messageItemsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                +     * Output only. Optional messages corresponding to the result.
                +     * A message can provide warnings or error details.
                +     * For example, if execution state is skipped then this field provides
                +     * related reason/explanation.
                +     * 
                + * + * + * repeated .google.cloud.modelarmor.v1.MessageItem message_items = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addMessageItems(int index, com.google.cloud.modelarmor.v1.MessageItem value) { + if (messageItemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMessageItemsIsMutable(); + messageItems_.add(index, value); + onChanged(); + } else { + messageItemsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                +     * Output only. Optional messages corresponding to the result.
                +     * A message can provide warnings or error details.
                +     * For example, if execution state is skipped then this field provides
                +     * related reason/explanation.
                +     * 
                + * + * + * repeated .google.cloud.modelarmor.v1.MessageItem message_items = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addMessageItems( + com.google.cloud.modelarmor.v1.MessageItem.Builder builderForValue) { + if (messageItemsBuilder_ == null) { + ensureMessageItemsIsMutable(); + messageItems_.add(builderForValue.build()); + onChanged(); + } else { + messageItemsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                +     * Output only. Optional messages corresponding to the result.
                +     * A message can provide warnings or error details.
                +     * For example, if execution state is skipped then this field provides
                +     * related reason/explanation.
                +     * 
                + * + * + * repeated .google.cloud.modelarmor.v1.MessageItem message_items = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addMessageItems( + int index, com.google.cloud.modelarmor.v1.MessageItem.Builder builderForValue) { + if (messageItemsBuilder_ == null) { + ensureMessageItemsIsMutable(); + messageItems_.add(index, builderForValue.build()); + onChanged(); + } else { + messageItemsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                +     * Output only. Optional messages corresponding to the result.
                +     * A message can provide warnings or error details.
                +     * For example, if execution state is skipped then this field provides
                +     * related reason/explanation.
                +     * 
                + * + * + * repeated .google.cloud.modelarmor.v1.MessageItem message_items = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllMessageItems( + java.lang.Iterable values) { + if (messageItemsBuilder_ == null) { + ensureMessageItemsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, messageItems_); + onChanged(); + } else { + messageItemsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                +     * Output only. Optional messages corresponding to the result.
                +     * A message can provide warnings or error details.
                +     * For example, if execution state is skipped then this field provides
                +     * related reason/explanation.
                +     * 
                + * + * + * repeated .google.cloud.modelarmor.v1.MessageItem message_items = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearMessageItems() { + if (messageItemsBuilder_ == null) { + messageItems_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + messageItemsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                +     * Output only. Optional messages corresponding to the result.
                +     * A message can provide warnings or error details.
                +     * For example, if execution state is skipped then this field provides
                +     * related reason/explanation.
                +     * 
                + * + * + * repeated .google.cloud.modelarmor.v1.MessageItem message_items = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeMessageItems(int index) { + if (messageItemsBuilder_ == null) { + ensureMessageItemsIsMutable(); + messageItems_.remove(index); + onChanged(); + } else { + messageItemsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                +     * Output only. Optional messages corresponding to the result.
                +     * A message can provide warnings or error details.
                +     * For example, if execution state is skipped then this field provides
                +     * related reason/explanation.
                +     * 
                + * + * + * repeated .google.cloud.modelarmor.v1.MessageItem message_items = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.modelarmor.v1.MessageItem.Builder getMessageItemsBuilder(int index) { + return internalGetMessageItemsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                +     * Output only. Optional messages corresponding to the result.
                +     * A message can provide warnings or error details.
                +     * For example, if execution state is skipped then this field provides
                +     * related reason/explanation.
                +     * 
                + * + * + * repeated .google.cloud.modelarmor.v1.MessageItem message_items = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.modelarmor.v1.MessageItemOrBuilder getMessageItemsOrBuilder(int index) { + if (messageItemsBuilder_ == null) { + return messageItems_.get(index); + } else { + return messageItemsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                +     * Output only. Optional messages corresponding to the result.
                +     * A message can provide warnings or error details.
                +     * For example, if execution state is skipped then this field provides
                +     * related reason/explanation.
                +     * 
                + * + * + * repeated .google.cloud.modelarmor.v1.MessageItem message_items = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getMessageItemsOrBuilderList() { + if (messageItemsBuilder_ != null) { + return messageItemsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(messageItems_); + } + } + + /** + * + * + *
                +     * Output only. Optional messages corresponding to the result.
                +     * A message can provide warnings or error details.
                +     * For example, if execution state is skipped then this field provides
                +     * related reason/explanation.
                +     * 
                + * + * + * repeated .google.cloud.modelarmor.v1.MessageItem message_items = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.modelarmor.v1.MessageItem.Builder addMessageItemsBuilder() { + return internalGetMessageItemsFieldBuilder() + .addBuilder(com.google.cloud.modelarmor.v1.MessageItem.getDefaultInstance()); + } + + /** + * + * + *
                +     * Output only. Optional messages corresponding to the result.
                +     * A message can provide warnings or error details.
                +     * For example, if execution state is skipped then this field provides
                +     * related reason/explanation.
                +     * 
                + * + * + * repeated .google.cloud.modelarmor.v1.MessageItem message_items = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.modelarmor.v1.MessageItem.Builder addMessageItemsBuilder(int index) { + return internalGetMessageItemsFieldBuilder() + .addBuilder(index, com.google.cloud.modelarmor.v1.MessageItem.getDefaultInstance()); + } + + /** + * + * + *
                +     * Output only. Optional messages corresponding to the result.
                +     * A message can provide warnings or error details.
                +     * For example, if execution state is skipped then this field provides
                +     * related reason/explanation.
                +     * 
                + * + * + * repeated .google.cloud.modelarmor.v1.MessageItem message_items = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getMessageItemsBuilderList() { + return internalGetMessageItemsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.modelarmor.v1.MessageItem, + com.google.cloud.modelarmor.v1.MessageItem.Builder, + com.google.cloud.modelarmor.v1.MessageItemOrBuilder> + internalGetMessageItemsFieldBuilder() { + if (messageItemsBuilder_ == null) { + messageItemsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.modelarmor.v1.MessageItem, + com.google.cloud.modelarmor.v1.MessageItem.Builder, + com.google.cloud.modelarmor.v1.MessageItemOrBuilder>( + messageItems_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + messageItems_ = null; + } + return messageItemsBuilder_; + } + + private int matchState_ = 0; + + /** + * + * + *
                +     * Output only. Match state for Sensitive Data Protection Redaction.
                +     * Value is MATCH_FOUND if content is redacted.
                +     * 
                + * + * + * .google.cloud.modelarmor.v1.FilterMatchState match_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for matchState. + */ + @java.lang.Override + public int getMatchStateValue() { + return matchState_; + } + + /** + * + * + *
                +     * Output only. Match state for Sensitive Data Protection Redaction.
                +     * Value is MATCH_FOUND if content is redacted.
                +     * 
                + * + * + * .google.cloud.modelarmor.v1.FilterMatchState match_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for matchState to set. + * @return This builder for chaining. + */ + public Builder setMatchStateValue(int value) { + matchState_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. Match state for Sensitive Data Protection Redaction.
                +     * Value is MATCH_FOUND if content is redacted.
                +     * 
                + * + * + * .google.cloud.modelarmor.v1.FilterMatchState match_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The matchState. + */ + @java.lang.Override + public com.google.cloud.modelarmor.v1.FilterMatchState getMatchState() { + com.google.cloud.modelarmor.v1.FilterMatchState result = + com.google.cloud.modelarmor.v1.FilterMatchState.forNumber(matchState_); + return result == null ? com.google.cloud.modelarmor.v1.FilterMatchState.UNRECOGNIZED : result; + } + + /** + * + * + *
                +     * Output only. Match state for Sensitive Data Protection Redaction.
                +     * Value is MATCH_FOUND if content is redacted.
                +     * 
                + * + * + * .google.cloud.modelarmor.v1.FilterMatchState match_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The matchState to set. + * @return This builder for chaining. + */ + public Builder setMatchState(com.google.cloud.modelarmor.v1.FilterMatchState value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + matchState_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. Match state for Sensitive Data Protection Redaction.
                +     * Value is MATCH_FOUND if content is redacted.
                +     * 
                + * + * + * .google.cloud.modelarmor.v1.FilterMatchState match_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearMatchState() { + bitField0_ = (bitField0_ & ~0x00000004); + matchState_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString redactedImage_ = com.google.protobuf.ByteString.EMPTY; + + /** + * + * + *
                +     * Output only. The redacted image. The type will be the same as the original
                +     * image.
                +     * 
                + * + * bytes redacted_image = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The redactedImage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRedactedImage() { + return redactedImage_; + } + + /** + * + * + *
                +     * Output only. The redacted image. The type will be the same as the original
                +     * image.
                +     * 
                + * + * bytes redacted_image = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The redactedImage to set. + * @return This builder for chaining. + */ + public Builder setRedactedImage(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + redactedImage_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. The redacted image. The type will be the same as the original
                +     * image.
                +     * 
                + * + * bytes redacted_image = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearRedactedImage() { + bitField0_ = (bitField0_ & ~0x00000008); + redactedImage_ = getDefaultInstance().getRedactedImage(); + onChanged(); + return this; + } + + private java.util.List findings_ = + java.util.Collections.emptyList(); + + private void ensureFindingsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + findings_ = new java.util.ArrayList(findings_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.modelarmor.v1.SdpFinding, + com.google.cloud.modelarmor.v1.SdpFinding.Builder, + com.google.cloud.modelarmor.v1.SdpFindingOrBuilder> + findingsBuilder_; + + /** + * + * + *
                +     * Output only. The findings. This field is populated in the response only
                +     * when include_findings in the SDP template is set to true.
                +     * 
                + * + * + * repeated .google.cloud.modelarmor.v1.SdpFinding findings = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getFindingsList() { + if (findingsBuilder_ == null) { + return java.util.Collections.unmodifiableList(findings_); + } else { + return findingsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                +     * Output only. The findings. This field is populated in the response only
                +     * when include_findings in the SDP template is set to true.
                +     * 
                + * + * + * repeated .google.cloud.modelarmor.v1.SdpFinding findings = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getFindingsCount() { + if (findingsBuilder_ == null) { + return findings_.size(); + } else { + return findingsBuilder_.getCount(); + } + } + + /** + * + * + *
                +     * Output only. The findings. This field is populated in the response only
                +     * when include_findings in the SDP template is set to true.
                +     * 
                + * + * + * repeated .google.cloud.modelarmor.v1.SdpFinding findings = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.modelarmor.v1.SdpFinding getFindings(int index) { + if (findingsBuilder_ == null) { + return findings_.get(index); + } else { + return findingsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                +     * Output only. The findings. This field is populated in the response only
                +     * when include_findings in the SDP template is set to true.
                +     * 
                + * + * + * repeated .google.cloud.modelarmor.v1.SdpFinding findings = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setFindings(int index, com.google.cloud.modelarmor.v1.SdpFinding value) { + if (findingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFindingsIsMutable(); + findings_.set(index, value); + onChanged(); + } else { + findingsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                +     * Output only. The findings. This field is populated in the response only
                +     * when include_findings in the SDP template is set to true.
                +     * 
                + * + * + * repeated .google.cloud.modelarmor.v1.SdpFinding findings = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setFindings( + int index, com.google.cloud.modelarmor.v1.SdpFinding.Builder builderForValue) { + if (findingsBuilder_ == null) { + ensureFindingsIsMutable(); + findings_.set(index, builderForValue.build()); + onChanged(); + } else { + findingsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                +     * Output only. The findings. This field is populated in the response only
                +     * when include_findings in the SDP template is set to true.
                +     * 
                + * + * + * repeated .google.cloud.modelarmor.v1.SdpFinding findings = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addFindings(com.google.cloud.modelarmor.v1.SdpFinding value) { + if (findingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFindingsIsMutable(); + findings_.add(value); + onChanged(); + } else { + findingsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                +     * Output only. The findings. This field is populated in the response only
                +     * when include_findings in the SDP template is set to true.
                +     * 
                + * + * + * repeated .google.cloud.modelarmor.v1.SdpFinding findings = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addFindings(int index, com.google.cloud.modelarmor.v1.SdpFinding value) { + if (findingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFindingsIsMutable(); + findings_.add(index, value); + onChanged(); + } else { + findingsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                +     * Output only. The findings. This field is populated in the response only
                +     * when include_findings in the SDP template is set to true.
                +     * 
                + * + * + * repeated .google.cloud.modelarmor.v1.SdpFinding findings = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addFindings(com.google.cloud.modelarmor.v1.SdpFinding.Builder builderForValue) { + if (findingsBuilder_ == null) { + ensureFindingsIsMutable(); + findings_.add(builderForValue.build()); + onChanged(); + } else { + findingsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                +     * Output only. The findings. This field is populated in the response only
                +     * when include_findings in the SDP template is set to true.
                +     * 
                + * + * + * repeated .google.cloud.modelarmor.v1.SdpFinding findings = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addFindings( + int index, com.google.cloud.modelarmor.v1.SdpFinding.Builder builderForValue) { + if (findingsBuilder_ == null) { + ensureFindingsIsMutable(); + findings_.add(index, builderForValue.build()); + onChanged(); + } else { + findingsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                +     * Output only. The findings. This field is populated in the response only
                +     * when include_findings in the SDP template is set to true.
                +     * 
                + * + * + * repeated .google.cloud.modelarmor.v1.SdpFinding findings = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllFindings( + java.lang.Iterable values) { + if (findingsBuilder_ == null) { + ensureFindingsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, findings_); + onChanged(); + } else { + findingsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                +     * Output only. The findings. This field is populated in the response only
                +     * when include_findings in the SDP template is set to true.
                +     * 
                + * + * + * repeated .google.cloud.modelarmor.v1.SdpFinding findings = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearFindings() { + if (findingsBuilder_ == null) { + findings_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + findingsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                +     * Output only. The findings. This field is populated in the response only
                +     * when include_findings in the SDP template is set to true.
                +     * 
                + * + * + * repeated .google.cloud.modelarmor.v1.SdpFinding findings = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeFindings(int index) { + if (findingsBuilder_ == null) { + ensureFindingsIsMutable(); + findings_.remove(index); + onChanged(); + } else { + findingsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                +     * Output only. The findings. This field is populated in the response only
                +     * when include_findings in the SDP template is set to true.
                +     * 
                + * + * + * repeated .google.cloud.modelarmor.v1.SdpFinding findings = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.modelarmor.v1.SdpFinding.Builder getFindingsBuilder(int index) { + return internalGetFindingsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                +     * Output only. The findings. This field is populated in the response only
                +     * when include_findings in the SDP template is set to true.
                +     * 
                + * + * + * repeated .google.cloud.modelarmor.v1.SdpFinding findings = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.modelarmor.v1.SdpFindingOrBuilder getFindingsOrBuilder(int index) { + if (findingsBuilder_ == null) { + return findings_.get(index); + } else { + return findingsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                +     * Output only. The findings. This field is populated in the response only
                +     * when include_findings in the SDP template is set to true.
                +     * 
                + * + * + * repeated .google.cloud.modelarmor.v1.SdpFinding findings = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getFindingsOrBuilderList() { + if (findingsBuilder_ != null) { + return findingsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(findings_); + } + } + + /** + * + * + *
                +     * Output only. The findings. This field is populated in the response only
                +     * when include_findings in the SDP template is set to true.
                +     * 
                + * + * + * repeated .google.cloud.modelarmor.v1.SdpFinding findings = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.modelarmor.v1.SdpFinding.Builder addFindingsBuilder() { + return internalGetFindingsFieldBuilder() + .addBuilder(com.google.cloud.modelarmor.v1.SdpFinding.getDefaultInstance()); + } + + /** + * + * + *
                +     * Output only. The findings. This field is populated in the response only
                +     * when include_findings in the SDP template is set to true.
                +     * 
                + * + * + * repeated .google.cloud.modelarmor.v1.SdpFinding findings = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.modelarmor.v1.SdpFinding.Builder addFindingsBuilder(int index) { + return internalGetFindingsFieldBuilder() + .addBuilder(index, com.google.cloud.modelarmor.v1.SdpFinding.getDefaultInstance()); + } + + /** + * + * + *
                +     * Output only. The findings. This field is populated in the response only
                +     * when include_findings in the SDP template is set to true.
                +     * 
                + * + * + * repeated .google.cloud.modelarmor.v1.SdpFinding findings = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getFindingsBuilderList() { + return internalGetFindingsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.modelarmor.v1.SdpFinding, + com.google.cloud.modelarmor.v1.SdpFinding.Builder, + com.google.cloud.modelarmor.v1.SdpFindingOrBuilder> + internalGetFindingsFieldBuilder() { + if (findingsBuilder_ == null) { + findingsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.modelarmor.v1.SdpFinding, + com.google.cloud.modelarmor.v1.SdpFinding.Builder, + com.google.cloud.modelarmor.v1.SdpFindingOrBuilder>( + findings_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); + findings_ = null; + } + return findingsBuilder_; + } + + private java.lang.Object extractedImageText_ = ""; + + /** + * + * + *
                +     * The extracted text from the image.
                +     * 
                + * + * string extracted_image_text = 6; + * + * @return The extractedImageText. + */ + public java.lang.String getExtractedImageText() { + java.lang.Object ref = extractedImageText_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + extractedImageText_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                +     * The extracted text from the image.
                +     * 
                + * + * string extracted_image_text = 6; + * + * @return The bytes for extractedImageText. + */ + public com.google.protobuf.ByteString getExtractedImageTextBytes() { + java.lang.Object ref = extractedImageText_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + extractedImageText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                +     * The extracted text from the image.
                +     * 
                + * + * string extracted_image_text = 6; + * + * @param value The extractedImageText to set. + * @return This builder for chaining. + */ + public Builder setExtractedImageText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + extractedImageText_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                +     * The extracted text from the image.
                +     * 
                + * + * string extracted_image_text = 6; + * + * @return This builder for chaining. + */ + public Builder clearExtractedImageText() { + extractedImageText_ = getDefaultInstance().getExtractedImageText(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
                +     * The extracted text from the image.
                +     * 
                + * + * string extracted_image_text = 6; + * + * @param value The bytes for extractedImageText to set. + * @return This builder for chaining. + */ + public Builder setExtractedImageTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + extractedImageText_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.modelarmor.v1.SdpRedactResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.modelarmor.v1.SdpRedactResult) + private static final com.google.cloud.modelarmor.v1.SdpRedactResult DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.modelarmor.v1.SdpRedactResult(); + } + + public static com.google.cloud.modelarmor.v1.SdpRedactResult getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SdpRedactResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.modelarmor.v1.SdpRedactResult getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SdpRedactResultOrBuilder.java b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SdpRedactResultOrBuilder.java new file mode 100644 index 000000000000..c8fdbd55c45c --- /dev/null +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SdpRedactResultOrBuilder.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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/modelarmor/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.modelarmor.v1; + +@com.google.protobuf.Generated +public interface SdpRedactResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.modelarmor.v1.SdpRedactResult) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                +   * Output only. Reports whether Sensitive Data Protection redaction was
                +   * successfully executed or not.
                +   * 
                + * + * + * .google.cloud.modelarmor.v1.FilterExecutionState execution_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for executionState. + */ + int getExecutionStateValue(); + + /** + * + * + *
                +   * Output only. Reports whether Sensitive Data Protection redaction was
                +   * successfully executed or not.
                +   * 
                + * + * + * .google.cloud.modelarmor.v1.FilterExecutionState execution_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The executionState. + */ + com.google.cloud.modelarmor.v1.FilterExecutionState getExecutionState(); + + /** + * + * + *
                +   * Output only. Optional messages corresponding to the result.
                +   * A message can provide warnings or error details.
                +   * For example, if execution state is skipped then this field provides
                +   * related reason/explanation.
                +   * 
                + * + * + * repeated .google.cloud.modelarmor.v1.MessageItem message_items = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getMessageItemsList(); + + /** + * + * + *
                +   * Output only. Optional messages corresponding to the result.
                +   * A message can provide warnings or error details.
                +   * For example, if execution state is skipped then this field provides
                +   * related reason/explanation.
                +   * 
                + * + * + * repeated .google.cloud.modelarmor.v1.MessageItem message_items = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.modelarmor.v1.MessageItem getMessageItems(int index); + + /** + * + * + *
                +   * Output only. Optional messages corresponding to the result.
                +   * A message can provide warnings or error details.
                +   * For example, if execution state is skipped then this field provides
                +   * related reason/explanation.
                +   * 
                + * + * + * repeated .google.cloud.modelarmor.v1.MessageItem message_items = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getMessageItemsCount(); + + /** + * + * + *
                +   * Output only. Optional messages corresponding to the result.
                +   * A message can provide warnings or error details.
                +   * For example, if execution state is skipped then this field provides
                +   * related reason/explanation.
                +   * 
                + * + * + * repeated .google.cloud.modelarmor.v1.MessageItem message_items = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getMessageItemsOrBuilderList(); + + /** + * + * + *
                +   * Output only. Optional messages corresponding to the result.
                +   * A message can provide warnings or error details.
                +   * For example, if execution state is skipped then this field provides
                +   * related reason/explanation.
                +   * 
                + * + * + * repeated .google.cloud.modelarmor.v1.MessageItem message_items = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.modelarmor.v1.MessageItemOrBuilder getMessageItemsOrBuilder(int index); + + /** + * + * + *
                +   * Output only. Match state for Sensitive Data Protection Redaction.
                +   * Value is MATCH_FOUND if content is redacted.
                +   * 
                + * + * + * .google.cloud.modelarmor.v1.FilterMatchState match_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for matchState. + */ + int getMatchStateValue(); + + /** + * + * + *
                +   * Output only. Match state for Sensitive Data Protection Redaction.
                +   * Value is MATCH_FOUND if content is redacted.
                +   * 
                + * + * + * .google.cloud.modelarmor.v1.FilterMatchState match_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The matchState. + */ + com.google.cloud.modelarmor.v1.FilterMatchState getMatchState(); + + /** + * + * + *
                +   * Output only. The redacted image. The type will be the same as the original
                +   * image.
                +   * 
                + * + * bytes redacted_image = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The redactedImage. + */ + com.google.protobuf.ByteString getRedactedImage(); + + /** + * + * + *
                +   * Output only. The findings. This field is populated in the response only
                +   * when include_findings in the SDP template is set to true.
                +   * 
                + * + * + * repeated .google.cloud.modelarmor.v1.SdpFinding findings = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getFindingsList(); + + /** + * + * + *
                +   * Output only. The findings. This field is populated in the response only
                +   * when include_findings in the SDP template is set to true.
                +   * 
                + * + * + * repeated .google.cloud.modelarmor.v1.SdpFinding findings = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.modelarmor.v1.SdpFinding getFindings(int index); + + /** + * + * + *
                +   * Output only. The findings. This field is populated in the response only
                +   * when include_findings in the SDP template is set to true.
                +   * 
                + * + * + * repeated .google.cloud.modelarmor.v1.SdpFinding findings = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getFindingsCount(); + + /** + * + * + *
                +   * Output only. The findings. This field is populated in the response only
                +   * when include_findings in the SDP template is set to true.
                +   * 
                + * + * + * repeated .google.cloud.modelarmor.v1.SdpFinding findings = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getFindingsOrBuilderList(); + + /** + * + * + *
                +   * Output only. The findings. This field is populated in the response only
                +   * when include_findings in the SDP template is set to true.
                +   * 
                + * + * + * repeated .google.cloud.modelarmor.v1.SdpFinding findings = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.modelarmor.v1.SdpFindingOrBuilder getFindingsOrBuilder(int index); + + /** + * + * + *
                +   * The extracted text from the image.
                +   * 
                + * + * string extracted_image_text = 6; + * + * @return The extractedImageText. + */ + java.lang.String getExtractedImageText(); + + /** + * + * + *
                +   * The extracted text from the image.
                +   * 
                + * + * string extracted_image_text = 6; + * + * @return The bytes for extractedImageText. + */ + com.google.protobuf.ByteString getExtractedImageTextBytes(); +} diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/Template.java b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/Template.java index 6c692c9bf79a..70a60b4f3707 100644 --- a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/Template.java +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/Template.java @@ -297,6 +297,88 @@ public interface TemplateMetadataOrBuilder */ com.google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetectionOrBuilder getMultiLanguageDetectionOrBuilder(); + + /** + * + * + *
                +     * Optional. Specifies the modalities to scan.
                +     * If empty, only text modality will be scanned.
                +     * 
                + * + * + * repeated .google.cloud.modelarmor.v1.Modality modalities = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the modalities. + */ + java.util.List getModalitiesList(); + + /** + * + * + *
                +     * Optional. Specifies the modalities to scan.
                +     * If empty, only text modality will be scanned.
                +     * 
                + * + * + * repeated .google.cloud.modelarmor.v1.Modality modalities = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of modalities. + */ + int getModalitiesCount(); + + /** + * + * + *
                +     * Optional. Specifies the modalities to scan.
                +     * If empty, only text modality will be scanned.
                +     * 
                + * + * + * repeated .google.cloud.modelarmor.v1.Modality modalities = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The modalities at the given index. + */ + com.google.cloud.modelarmor.v1.Modality getModalities(int index); + + /** + * + * + *
                +     * Optional. Specifies the modalities to scan.
                +     * If empty, only text modality will be scanned.
                +     * 
                + * + * + * repeated .google.cloud.modelarmor.v1.Modality modalities = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for modalities. + */ + java.util.List getModalitiesValueList(); + + /** + * + * + *
                +     * Optional. Specifies the modalities to scan.
                +     * If empty, only text modality will be scanned.
                +     * 
                + * + * + * repeated .google.cloud.modelarmor.v1.Modality modalities = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of modalities at the given index. + */ + int getModalitiesValue(int index); } /** @@ -333,6 +415,7 @@ private TemplateMetadata() { customPromptSafetyErrorMessage_ = ""; customLlmResponseSafetyErrorMessage_ = ""; enforcementType_ = 0; + modalities_ = emptyIntList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -1409,6 +1492,125 @@ public boolean hasMultiLanguageDetection() { : multiLanguageDetection_; } + public static final int MODALITIES_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private com.google.protobuf.Internal.IntList modalities_ = emptyIntList(); + + private static final com.google.protobuf.Internal.IntListAdapter.IntConverter< + com.google.cloud.modelarmor.v1.Modality> + modalities_converter_ = + new com.google.protobuf.Internal.IntListAdapter.IntConverter< + com.google.cloud.modelarmor.v1.Modality>() { + public com.google.cloud.modelarmor.v1.Modality convert(int from) { + com.google.cloud.modelarmor.v1.Modality result = + com.google.cloud.modelarmor.v1.Modality.forNumber(from); + return result == null + ? com.google.cloud.modelarmor.v1.Modality.UNRECOGNIZED + : result; + } + }; + + /** + * + * + *
                +     * Optional. Specifies the modalities to scan.
                +     * If empty, only text modality will be scanned.
                +     * 
                + * + * + * repeated .google.cloud.modelarmor.v1.Modality modalities = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the modalities. + */ + @java.lang.Override + public java.util.List getModalitiesList() { + return new com.google.protobuf.Internal.IntListAdapter< + com.google.cloud.modelarmor.v1.Modality>(modalities_, modalities_converter_); + } + + /** + * + * + *
                +     * Optional. Specifies the modalities to scan.
                +     * If empty, only text modality will be scanned.
                +     * 
                + * + * + * repeated .google.cloud.modelarmor.v1.Modality modalities = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of modalities. + */ + @java.lang.Override + public int getModalitiesCount() { + return modalities_.size(); + } + + /** + * + * + *
                +     * Optional. Specifies the modalities to scan.
                +     * If empty, only text modality will be scanned.
                +     * 
                + * + * + * repeated .google.cloud.modelarmor.v1.Modality modalities = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The modalities at the given index. + */ + @java.lang.Override + public com.google.cloud.modelarmor.v1.Modality getModalities(int index) { + return modalities_converter_.convert(modalities_.getInt(index)); + } + + /** + * + * + *
                +     * Optional. Specifies the modalities to scan.
                +     * If empty, only text modality will be scanned.
                +     * 
                + * + * + * repeated .google.cloud.modelarmor.v1.Modality modalities = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for modalities. + */ + @java.lang.Override + public java.util.List getModalitiesValueList() { + return modalities_; + } + + /** + * + * + *
                +     * Optional. Specifies the modalities to scan.
                +     * If empty, only text modality will be scanned.
                +     * 
                + * + * + * repeated .google.cloud.modelarmor.v1.Modality modalities = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of modalities at the given index. + */ + @java.lang.Override + public int getModalitiesValue(int index) { + return modalities_.getInt(index); + } + + private int modalitiesMemoizedSerializedSize; + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1423,6 +1625,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); if (ignorePartialInvocationFailures_ != false) { output.writeBool(1, ignorePartialInvocationFailures_); } @@ -1456,6 +1659,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(9, getMultiLanguageDetection()); } + if (getModalitiesList().size() > 0) { + output.writeUInt32NoTag(90); + output.writeUInt32NoTag(modalitiesMemoizedSerializedSize); + } + for (int i = 0; i < modalities_.size(); i++) { + output.writeEnumNoTag(modalities_.getInt(i)); + } getUnknownFields().writeTo(output); } @@ -1507,6 +1717,19 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 9, getMultiLanguageDetection()); } + { + int dataSize = 0; + for (int i = 0; i < modalities_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(modalities_.getInt(i)); + } + size += dataSize; + if (!getModalitiesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + modalitiesMemoizedSerializedSize = dataSize; + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1539,6 +1762,7 @@ public boolean equals(final java.lang.Object obj) { if (hasMultiLanguageDetection()) { if (!getMultiLanguageDetection().equals(other.getMultiLanguageDetection())) return false; } + if (!modalities_.equals(other.modalities_)) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1572,6 +1796,10 @@ public int hashCode() { hash = (37 * hash) + MULTI_LANGUAGE_DETECTION_FIELD_NUMBER; hash = (53 * hash) + getMultiLanguageDetection().hashCode(); } + if (getModalitiesCount() > 0) { + hash = (37 * hash) + MODALITIES_FIELD_NUMBER; + hash = (53 * hash) + modalities_.hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1735,6 +1963,7 @@ public Builder clear() { multiLanguageDetectionBuilder_.dispose(); multiLanguageDetectionBuilder_ = null; } + modalities_ = emptyIntList(); return this; } @@ -1803,6 +2032,10 @@ private void buildPartial0(com.google.cloud.modelarmor.v1.Template.TemplateMetad : multiLanguageDetectionBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000200) != 0)) { + modalities_.makeImmutable(); + result.modalities_ = modalities_; + } result.bitField0_ |= to_bitField0_; } @@ -1850,6 +2083,17 @@ public Builder mergeFrom(com.google.cloud.modelarmor.v1.Template.TemplateMetadat if (other.hasMultiLanguageDetection()) { mergeMultiLanguageDetection(other.getMultiLanguageDetection()); } + if (!other.modalities_.isEmpty()) { + if (modalities_.isEmpty()) { + modalities_ = other.modalities_; + modalities_.makeImmutable(); + bitField0_ |= 0x00000200; + } else { + ensureModalitiesIsMutable(); + modalities_.addAll(other.modalities_); + } + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1932,6 +2176,24 @@ public Builder mergeFrom( bitField0_ |= 0x00000100; break; } // case 74 + case 88: + { + int tmpRaw = input.readEnum(); + ensureModalitiesIsMutable(); + modalities_.addInt(tmpRaw); + break; + } // case 88 + case 90: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureModalitiesIsMutable(); + while (input.getBytesUntilLimit() > 0) { + modalities_.addInt(input.readEnum()); + } + input.popLimit(limit); + break; + } // case 90 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2850,6 +3112,275 @@ public Builder clearMultiLanguageDetection() { return multiLanguageDetectionBuilder_; } + private com.google.protobuf.Internal.IntList modalities_ = emptyIntList(); + + private void ensureModalitiesIsMutable() { + if (!modalities_.isModifiable()) { + modalities_ = makeMutableCopy(modalities_); + } + bitField0_ |= 0x00000200; + } + + /** + * + * + *
                +       * Optional. Specifies the modalities to scan.
                +       * If empty, only text modality will be scanned.
                +       * 
                + * + * + * repeated .google.cloud.modelarmor.v1.Modality modalities = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the modalities. + */ + public java.util.List getModalitiesList() { + return new com.google.protobuf.Internal.IntListAdapter< + com.google.cloud.modelarmor.v1.Modality>(modalities_, modalities_converter_); + } + + /** + * + * + *
                +       * Optional. Specifies the modalities to scan.
                +       * If empty, only text modality will be scanned.
                +       * 
                + * + * + * repeated .google.cloud.modelarmor.v1.Modality modalities = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of modalities. + */ + public int getModalitiesCount() { + return modalities_.size(); + } + + /** + * + * + *
                +       * Optional. Specifies the modalities to scan.
                +       * If empty, only text modality will be scanned.
                +       * 
                + * + * + * repeated .google.cloud.modelarmor.v1.Modality modalities = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The modalities at the given index. + */ + public com.google.cloud.modelarmor.v1.Modality getModalities(int index) { + return modalities_converter_.convert(modalities_.getInt(index)); + } + + /** + * + * + *
                +       * Optional. Specifies the modalities to scan.
                +       * If empty, only text modality will be scanned.
                +       * 
                + * + * + * repeated .google.cloud.modelarmor.v1.Modality modalities = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The modalities to set. + * @return This builder for chaining. + */ + public Builder setModalities(int index, com.google.cloud.modelarmor.v1.Modality value) { + if (value == null) { + throw new NullPointerException(); + } + ensureModalitiesIsMutable(); + modalities_.setInt(index, value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
                +       * Optional. Specifies the modalities to scan.
                +       * If empty, only text modality will be scanned.
                +       * 
                + * + * + * repeated .google.cloud.modelarmor.v1.Modality modalities = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The modalities to add. + * @return This builder for chaining. + */ + public Builder addModalities(com.google.cloud.modelarmor.v1.Modality value) { + if (value == null) { + throw new NullPointerException(); + } + ensureModalitiesIsMutable(); + modalities_.addInt(value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
                +       * Optional. Specifies the modalities to scan.
                +       * If empty, only text modality will be scanned.
                +       * 
                + * + * + * repeated .google.cloud.modelarmor.v1.Modality modalities = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The modalities to add. + * @return This builder for chaining. + */ + public Builder addAllModalities( + java.lang.Iterable values) { + ensureModalitiesIsMutable(); + for (com.google.cloud.modelarmor.v1.Modality value : values) { + modalities_.addInt(value.getNumber()); + } + onChanged(); + return this; + } + + /** + * + * + *
                +       * Optional. Specifies the modalities to scan.
                +       * If empty, only text modality will be scanned.
                +       * 
                + * + * + * repeated .google.cloud.modelarmor.v1.Modality modalities = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearModalities() { + modalities_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + + /** + * + * + *
                +       * Optional. Specifies the modalities to scan.
                +       * If empty, only text modality will be scanned.
                +       * 
                + * + * + * repeated .google.cloud.modelarmor.v1.Modality modalities = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for modalities. + */ + public java.util.List getModalitiesValueList() { + modalities_.makeImmutable(); + return modalities_; + } + + /** + * + * + *
                +       * Optional. Specifies the modalities to scan.
                +       * If empty, only text modality will be scanned.
                +       * 
                + * + * + * repeated .google.cloud.modelarmor.v1.Modality modalities = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of modalities at the given index. + */ + public int getModalitiesValue(int index) { + return modalities_.getInt(index); + } + + /** + * + * + *
                +       * Optional. Specifies the modalities to scan.
                +       * If empty, only text modality will be scanned.
                +       * 
                + * + * + * repeated .google.cloud.modelarmor.v1.Modality modalities = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for modalities to set. + * @return This builder for chaining. + */ + public Builder setModalitiesValue(int index, int value) { + ensureModalitiesIsMutable(); + modalities_.setInt(index, value); + onChanged(); + return this; + } + + /** + * + * + *
                +       * Optional. Specifies the modalities to scan.
                +       * If empty, only text modality will be scanned.
                +       * 
                + * + * + * repeated .google.cloud.modelarmor.v1.Modality modalities = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for modalities to add. + * @return This builder for chaining. + */ + public Builder addModalitiesValue(int value) { + ensureModalitiesIsMutable(); + modalities_.addInt(value); + onChanged(); + return this; + } + + /** + * + * + *
                +       * Optional. Specifies the modalities to scan.
                +       * If empty, only text modality will be scanned.
                +       * 
                + * + * + * repeated .google.cloud.modelarmor.v1.Modality modalities = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The enum numeric values on the wire for modalities to add. + * @return This builder for chaining. + */ + public Builder addAllModalitiesValue(java.lang.Iterable values) { + ensureModalitiesIsMutable(); + for (int value : values) { + modalities_.addInt(value); + } + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.modelarmor.v1.Template.TemplateMetadata) } diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/V1mainProto.java b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/V1mainProto.java index 1ede956578e5..4c545ed33e70 100644 --- a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/V1mainProto.java +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/V1mainProto.java @@ -204,6 +204,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_modelarmor_v1_SdpDeidentifyResult_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_modelarmor_v1_SdpDeidentifyResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_modelarmor_v1_SdpImageFindingLocation_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_modelarmor_v1_SdpImageFindingLocation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_modelarmor_v1_SdpImageFindingLocation_SdpBoundingBox_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_modelarmor_v1_SdpImageFindingLocation_SdpBoundingBox_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_modelarmor_v1_SdpContentLocation_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_modelarmor_v1_SdpContentLocation_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_modelarmor_v1_SdpFinding_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -212,6 +224,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_modelarmor_v1_SdpFinding_SdpFindingLocation_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_modelarmor_v1_SdpFinding_SdpFindingLocation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_modelarmor_v1_SdpRedactResult_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_modelarmor_v1_SdpRedactResult_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_modelarmor_v1_PiAndJailbreakFilterResult_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -261,7 +277,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "google/api/field_info.proto\032\031google/api/" + "resource.proto\032\033google/protobuf/empty.proto\032" + " google/protobuf/field_mask.proto\032\037g" - + "oogle/protobuf/timestamp.proto\032\026google/type/date.proto\"\365\t\n" + + "oogle/protobuf/timestamp.proto\032\026google/type/date.proto\"\264\n\n" + "\010Template\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\0224\n" + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" @@ -271,7 +287,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "filter_config\030\005" + " \001(\0132(.google.cloud.modelarmor.v1.FilterConfigB\003\340A\002\022U\n" + "\021template_metadata\030\006 \001" - + "(\01325.google.cloud.modelarmor.v1.Template.TemplateMetadataB\003\340A\001\032\332\005\n" + + "(\01325.google.cloud.modelarmor.v1.Template.TemplateMetadataB\003\340A\001\032\231\006\n" + "\020TemplateMetadata\022/\n" + "\"ignore_partial_invocation_failures\030\001 \001(\010B\003\340A\001\022,\n" + "\037custom_prompt_safety_error_code\030\002 \001(\005B\003\340A\001\022/\n" @@ -283,7 +299,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020enforcement_type\030\010 \001(\0162E.g" + "oogle.cloud.modelarmor.v1.Template.TemplateMetadata.EnforcementTypeB\003\340A\001\022s\n" + "\030multi_language_detection\030\t \001(\0132L.google.clou" - + "d.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetectionB\003\340A\001\032F\n" + + "d.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetectionB\003\340A\001\022=\n\n" + + "modalities\030\013" + + " \003(\0162$.google.cloud.modelarmor.v1.ModalityB\003\340A\001\032F\n" + "\026MultiLanguageDetection\022,\n" + "\037enable_multi_language_detection\030\001 \001(\010B\003\340A\002\"\\\n" + "\017EnforcementType\022 \n" @@ -293,35 +311,34 @@ 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:z\352Aw\n" - + "\"modelarmor.googleapis.com/Templ" - + "ate\022organizations/{organization}/locations/{location}/floorSetting*\r" + + "&modelarmor.googleapis.com/FloorSetting\0224projects/{project}/locations/" + + "{location}/floorSetting\0222folders/{folder}/locations/{location}/floorSetting\022>org" + + "anizations/{organization}/locations/{location}/floorSetting*\r" + "floorSettings2\014floorSettingB#\n" + "!_enable_floor_setting_enforcementB\034\n" + "\032_ai_platform_floor_setting\"\216\001\n" @@ -331,8 +348,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024enable_cloud_logging\030\003 \001(\010B\003\340A\001B\022\n" + "\020enforcement_type\"\257\001\n" + "\024ListTemplatesRequest\022:\n" - + "\006parent\030\001 \001(\tB*" - + "\340A\002\372A$\022\"modelarmor.googleapis.com/Template\022\026\n" + + "\006parent\030\001 \001(" + + "\tB*\340A\002\372A$\022\"modelarmor.googleapis.com/Template\022\026\n" + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" @@ -363,55 +380,53 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026GetFloorSettingRequest\022<\n" + "\004name\030\001 \001(\tB.\340A\002\372A(\n" + "&modelarmor.googleapis.com/FloorSetting\"\227\001\n" - + "\031UpdateFloorSettingRequest\022D\n" - + "\r" - + "floor_setting\030\001" - + " \001(\0132(.google.cloud.modelarmor.v1.FloorSettingB\003\340A\002\0224\n" + + "\031UpdateFloorSettingRequest\022D\n\r" + + "floor_setting\030\001 " + + "\001(\0132(.google.cloud.modelarmor.v1.FloorSettingB\003\340A\002\0224\n" + "\013update_mask\030\002" + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\"\357\002\n" + "\014FilterConfig\022H\n" - + "\014rai_settings\030\001 \001(\013" - + "2-.google.cloud.modelarmor.v1.RaiFilterSettingsB\003\340A\001\022H\n" - + "\014sdp_settings\030\002 \001(\0132-.goo" - + "gle.cloud.modelarmor.v1.SdpFilterSettingsB\003\340A\001\022g\n" - + " pi_and_jailbreak_filter_settings\030\003" - + " \001(\01328.google.cloud.modelarmor.v1.PiAndJailbreakFilterSettingsB\003\340A\001\022b\n" - + "\035malicious_uri_filter_settings\030\004 \001(\01326.google." - + "cloud.modelarmor.v1.MaliciousUriFilterSettingsB\003\340A\001\"\341\002\n" + + "\014rai_settings\030\001" + + " \001(\0132-.google.cloud.modelarmor.v1.RaiFilterSettingsB\003\340A\001\022H\n" + + "\014sdp_settings\030\002" + + " \001(\0132-.google.cloud.modelarmor.v1.SdpFilterSettingsB\003\340A\001\022g\n" + + " pi_and_jailbreak_filter_settings\030\003 \001(\01328.google" + + ".cloud.modelarmor.v1.PiAndJailbreakFilterSettingsB\003\340A\001\022b\n" + + "\035malicious_uri_filter_settings\030\004" + + " \001(\01326.google.cloud.modelarmor.v1.MaliciousUriFilterSettingsB\003\340A\001\"\341\002\n" + "\034PiAndJailbreakFilterSettings\022y\n" - + "\022filter_enforcement\030\001 \001(\0162X.googl" - + "e.cloud.modelarmor.v1.PiAndJailbreakFilt" - + "erSettings.PiAndJailbreakFilterEnforcementB\003\340A\001\022S\n" - + "\020confidence_level\030\003 \001(\01624.goog" - + "le.cloud.modelarmor.v1.DetectionConfidenceLevelB\003\340A\001\"q\n" + + "\022filter_enforcement\030\001 \001(\0162X.google.cloud.modelarmo" + + "r.v1.PiAndJailbreakFilterSettings.PiAndJailbreakFilterEnforcementB\003\340A\001\022S\n" + + "\020confidence_level\030\003" + + " \001(\01624.google.cloud.modelarmor.v1.DetectionConfidenceLevelB\003\340A\001\"q\n" + "\037PiAndJailbreakFilterEnforcement\0223\n" + "/PI_AND_JAILBREAK_FILTER_ENFORCEMENT_UNSPECIFIED\020\000\022\013\n" + "\007ENABLED\020\001\022\014\n" + "\010DISABLED\020\002\"\201\002\n" + "\032MaliciousUriFilterSettings\022u\n" - + "\022filter_enforcement\030\001 \001(\0162T.google.clou" - + "d.modelarmor.v1.MaliciousUriFilterSettings.MaliciousUriFilterEnforcementB\003\340A\001\"l\n" + + "\022filter_enforcement\030\001 \001(\0162T.google.cloud.modelarmor.v1.M" + + "aliciousUriFilterSettings.MaliciousUriFilterEnforcementB\003\340A\001\"l\n" + "\035MaliciousUriFilterEnforcement\0220\n" + ",MALICIOUS_URI_FILTER_ENFORCEMENT_UNSPECIFIED\020\000\022\013\n" + "\007ENABLED\020\001\022\014\n" + "\010DISABLED\020\002\"\216\002\n" + "\021RaiFilterSettings\022Q\n" - + "\013rai_filters\030\001 \003(\01327.google." - + "cloud.modelarmor.v1.RaiFilterSettings.RaiFilterB\003\340A\002\032\245\001\n" + + "\013rai_filters\030\001" + + " \003(\01327.google.cloud.modelarmor.v1.RaiFilterSettings.RaiFilterB\003\340A\002\032\245\001\n" + "\tRaiFilter\022C\n" - + "\013filter_type\030\001" - + " \001(\0162).google.cloud.modelarmor.v1.RaiFilterTypeB\003\340A\002\022S\n" - + "\020confidence_level\030\002 \001(" - + "\01624.google.cloud.modelarmor.v1.DetectionConfidenceLevelB\003\340A\001\"\300\001\n" + + "\013filter_type\030\001 \001(\0162).google." + + "cloud.modelarmor.v1.RaiFilterTypeB\003\340A\002\022S\n" + + "\020confidence_level\030\002 \001(\01624.google.cloud." + + "modelarmor.v1.DetectionConfidenceLevelB\003\340A\001\"\300\001\n" + "\021SdpFilterSettings\022G\n" + "\014basic_config\030\001" + " \001(\0132*.google.cloud.modelarmor.v1.SdpBasicConfigB\003\340A\001H\000\022M\n" - + "\017advanced_config\030\002" - + " \001(\0132-.google.cloud.modelarmor.v1.SdpAdvancedConfigB\003\340A\001H\000B\023\n" + + "\017advanced_config\030\002 " + + "\001(\0132-.google.cloud.modelarmor.v1.SdpAdvancedConfigB\003\340A\001H\000B\023\n" + "\021sdp_configuration\"\335\001\n" + "\016SdpBasicConfig\022e\n" - + "\022filter_enforcement\030\003 \001(\0162D.google.cloud.mo" - + "delarmor.v1.SdpBasicConfig.SdpBasicConfigEnforcementB\003\340A\001\"d\n" + + "\022filter_enforcement\030\003 \001(\0162D.google.cloud.modelarmor.v1.SdpBa" + + "sicConfig.SdpBasicConfigEnforcementB\003\340A\001\"d\n" + "\031SdpBasicConfigEnforcement\022,\n" + "(SDP_BASIC_CONFIG_ENFORCEMENT_UNSPECIFIED\020\000\022\013\n" + "\007ENABLED\020\001\022\014\n" @@ -422,12 +437,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031SanitizeUserPromptRequest\0228\n" + "\004name\030\001 \001(\tB*\340A\002\372A$\n" + "\"modelarmor.googleapis.com/Template\022C\n" - + "\020user_prompt_data\030\002 \001(\0132" - + "$.google.cloud.modelarmor.v1.DataItemB\003\340A\002\022j\n" - + "!multi_language_detection_metadata\030\006" - + " \001(\0132:.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadataB\003\340A\001\022K\n" - + "\016streaming_mode\030\007" - + " \001(\0162).google.cloud.modelarmor.v1.StreamingModeB\003\340A\001H\000\210\001\001B\021\n" + + "\020user_prompt_data\030\002" + + " \001(\0132$.google.cloud.modelarmor.v1.DataItemB\003\340A\002\022j\n" + + "!multi_language_detection_metadata\030\006 \001(\0132:.google.cl" + + "oud.modelarmor.v1.MultiLanguageDetectionMetadataB\003\340A\001\022K\n" + + "\016streaming_mode\030\007 \001(\0162)." + + "google.cloud.modelarmor.v1.StreamingModeB\003\340A\001H\000\210\001\001B\021\n" + "\017_streaming_mode\"\206\003\n" + "\034SanitizeModelResponseRequest\0228\n" + "\004name\030\001 \001(\tB*\340A\002\372A$\n" @@ -435,26 +450,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023model_response_data\030\002" + " \001(\0132$.google.cloud.modelarmor.v1.DataItemB\003\340A\002\022\030\n" + "\013user_prompt\030\004 \001(\tB\003\340A\001\022j\n" - + "!multi_language_detection_metadata\030\007 \001(\0132:" - + ".google.cloud.modelarmor.v1.MultiLanguageDetectionMetadataB\003\340A\001\022K\n" - + "\016streaming_mode\030\010" - + " \001(\0162).google.cloud.modelarmor.v1.StreamingModeB\003\340A\001H\000\210\001\001B\021\n" + + "!multi_language_detection_metadata\030\007 \001(\0132:.google.cloud.mod" + + "elarmor.v1.MultiLanguageDetectionMetadataB\003\340A\001\022K\n" + + "\016streaming_mode\030\010 \001(\0162).google." + + "cloud.modelarmor.v1.StreamingModeB\003\340A\001H\000\210\001\001B\021\n" + "\017_streaming_mode\"n\n" + "\032SanitizeUserPromptResponse\022P\n" - + "\023sanitization_result\030\001" - + " \001(\0132..google.cloud.modelarmor.v1.SanitizationResultB\003\340A\003\"q\n" + + "\023sanitization_result\030\001 \001(" + + "\0132..google.cloud.modelarmor.v1.SanitizationResultB\003\340A\003\"q\n" + "\035SanitizeModelResponseResponse\022P\n" - + "\023sanitization_result\030\001" - + " \001(\0132..google.cloud.modelarmor.v1.SanitizationResultB\003\340A\003\"\225\005\n" + + "\023sanitization_result\030\001 \001(\0132..g" + + "oogle.cloud.modelarmor.v1.SanitizationResultB\003\340A\003\"\225\005\n" + "\022SanitizationResult\022M\n" - + "\022filter_match_state\030\001 \001(\0162,." - + "google.cloud.modelarmor.v1.FilterMatchStateB\003\340A\003\022^\n" - + "\016filter_results\030\002 \003(\0132A.googl" - + "e.cloud.modelarmor.v1.SanitizationResult.FilterResultsEntryB\003\340A\003\022L\n" - + "\021invocation_result\030\004" - + " \001(\0162,.google.cloud.modelarmor.v1.InvocationResultB\003\340A\003\022g\n" - + "\025sanitization_metadata\030\003 \001(\0132C.google.cloud.modelarmor." - + "v1.SanitizationResult.SanitizationMetadataB\003\340A\003\032\270\001\n" + + "\022filter_match_state\030\001" + + " \001(\0162,.google.cloud.modelarmor.v1.FilterMatchStateB\003\340A\003\022^\n" + + "\016filter_results\030\002 \003(\0132A.google.cloud.modelarmo" + + "r.v1.SanitizationResult.FilterResultsEntryB\003\340A\003\022L\n" + + "\021invocation_result\030\004 \001(\0162,.goo" + + "gle.cloud.modelarmor.v1.InvocationResultB\003\340A\003\022g\n" + + "\025sanitization_metadata\030\003 \001(\0132C.g" + + "oogle.cloud.modelarmor.v1.SanitizationResult.SanitizationMetadataB\003\340A\003\032\270\001\n" + "\024SanitizationMetadata\022\022\n\n" + "error_code\030\001 \001(\003\022\025\n\r" + "error_message\030\002 \001(\t\022*\n" @@ -470,57 +485,60 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014FilterResult\022H\n" + "\021rai_filter_result\030\001" + " \001(\0132+.google.cloud.modelarmor.v1.RaiFilterResultH\000\022H\n" - + "\021sdp_filter_result\030\002 \001(\0132+" - + ".google.cloud.modelarmor.v1.SdpFilterResultH\000\022`\n" - + "\036pi_and_jailbreak_filter_result\030\003" - + " \001(\01326.google.cloud.modelarmor.v1.PiAndJailbreakFilterResultH\000\022[\n" - + "\033malicious_uri_filter_result\030\004" - + " \001(\01324.google.cloud.modelarmor.v1.MaliciousUriFilterResultH\000\022Q\n" - + "\031csam_filter_filter_result\030\005 \001(\0132,.google" - + ".cloud.modelarmor.v1.CsamFilterResultH\000\022U\n" - + "\030virus_scan_filter_result\030\006 \001(\01321.goog" - + "le.cloud.modelarmor.v1.VirusScanFilterResultH\000B\017\n\r" + + "\021sdp_filter_result\030\002" + + " \001(\0132+.google.cloud.modelarmor.v1.SdpFilterResultH\000\022`\n" + + "\036pi_and_jailbreak_filter_result\030\003 \001(\01326.google.cl" + + "oud.modelarmor.v1.PiAndJailbreakFilterResultH\000\022[\n" + + "\033malicious_uri_filter_result\030\004 " + + "\001(\01324.google.cloud.modelarmor.v1.MaliciousUriFilterResultH\000\022Q\n" + + "\031csam_filter_filter_result\030\005" + + " \001(\0132,.google.cloud.modelarmor.v1.CsamFilterResultH\000\022U\n" + + "\030virus_scan_filter_result\030\006" + + " \001(\01321.google.cloud.modelarmor.v1.VirusScanFilterResultH\000B\017\n\r" + "filter_result\"\277\005\n" + "\017RaiFilterResult\022N\n" - + "\017execution_state\030\001 \001(\01620.google.cl" - + "oud.modelarmor.v1.FilterExecutionStateB\003\340A\003\022>\n\r" + + "\017execution_state\030\001" + + " \001(\01620.google.cloud.modelarmor.v1.FilterExecutionStateB\003\340A\003\022>\n\r" + "message_items\030\002 \003(\0132\'.google.cloud.modelarmor.v1.MessageItem\022F\n" - + "\013match_state\030\003" - + " \001(\0162,.google.cloud.modelarmor.v1.FilterMatchStateB\003\340A\003\022f\n" - + "\027rai_filter_type_results\030\004 \003(\0132E.google.cloud.modelarmor.v" - + "1.RaiFilterResult.RaiFilterTypeResultsEntry\032\355\001\n" + + "\013match_state\030\003 \001(\0162,.google" + + ".cloud.modelarmor.v1.FilterMatchStateB\003\340A\003\022f\n" + + "\027rai_filter_type_results\030\004 \003(\0132E.go" + + "ogle.cloud.modelarmor.v1.RaiFilterResult.RaiFilterTypeResultsEntry\032\355\001\n" + "\023RaiFilterTypeResult\022>\n" + "\013filter_type\030\001 \001(\0162).google.cloud.modelarmor.v1.RaiFilterType\022N\n" - + "\020confidence_level\030\002 \001(\01624." - + "google.cloud.modelarmor.v1.DetectionConfidenceLevel\022F\n" - + "\013match_state\030\003 \001(\0162,.googl" - + "e.cloud.modelarmor.v1.FilterMatchStateB\003\340A\003\032|\n" + + "\020confidence_level\030\002" + + " \001(\01624.google.cloud.modelarmor.v1.DetectionConfidenceLevel\022F\n" + + "\013match_state\030\003" + + " \001(\0162,.google.cloud.modelarmor.v1.FilterMatchStateB\003\340A\003\032|\n" + "\031RaiFilterTypeResultsEntry\022\013\n" + "\003key\030\001 \001(\t\022N\n" - + "\005value\030\002 \001(\0132?.google.cloud.mode" - + "larmor.v1.RaiFilterResult.RaiFilterTypeResult:\0028\001\"\261\001\n" + + "\005value\030\002 " + + "\001(\0132?.google.cloud.modelarmor.v1.RaiFilterResult.RaiFilterTypeResult:\0028\001\"\367\001\n" + "\017SdpFilterResult\022F\n" - + "\016inspect_result\030\001" - + " \001(\0132,.google.cloud.modelarmor.v1.SdpInspectResultH\000\022L\n" - + "\021deidentify_result\030\002" - + " \001(\0132/.google.cloud.modelarmor.v1.SdpDeidentifyResultH\000B\010\n" - + "\006result\"\300\002\n" + + "\016inspect_result\030\001 \001(\0132,.g" + + "oogle.cloud.modelarmor.v1.SdpInspectResultH\000\022L\n" + + "\021deidentify_result\030\002 \001(\0132/.google" + + ".cloud.modelarmor.v1.SdpDeidentifyResultH\000\022D\n\r" + + "redact_result\030\003" + + " \001(\0132+.google.cloud.modelarmor.v1.SdpRedactResultH\000B\010\n" + + "\006result\"\336\002\n" + "\020SdpInspectResult\022N\n" - + "\017execution_state\030\001 \001(\01620.go" - + "ogle.cloud.modelarmor.v1.FilterExecutionStateB\003\340A\003\022>\n\r" + + "\017execution_state\030\001" + + " \001(\01620.google.cloud.modelarmor.v1.FilterExecutionStateB\003\340A\003\022>\n\r" + "message_items\030\002 \003(\0132\'.google.cloud.modelarmor.v1.MessageItem\022F\n" - + "\013match_state\030\003" - + " \001(\0162,.google.cloud.modelarmor.v1.FilterMatchStateB\003\340A\003\0228\n" + + "\013match_state\030\003 \001(\0162,.google.cl" + + "oud.modelarmor.v1.FilterMatchStateB\003\340A\003\0228\n" + "\010findings\030\004 \003(\0132&.google.cloud.modelarmor.v1.SdpFinding\022\032\n" - + "\022findings_truncated\030\005 \001(\010\"f\n" + + "\022findings_truncated\030\005 \001(\010\022\034\n" + + "\024extracted_image_text\030\006 \001(\t\"f\n" + "\010DataItem\022\016\n" + "\004text\030\001 \001(\tH\000\022=\n" + "\tbyte_item\030\002 \001(\0132(.google.cloud.modelarmor.v1.ByteDataItemH\000B\013\n" - + "\tdata_item\"\232\002\n" + + "\tdata_item\"\245\002\n" + "\014ByteDataItem\022R\n" - + "\016byte_data_type\030\001" - + " \001(\01625.google.cloud.modelarmor.v1.ByteDataItem.ByteItemTypeB\003\340A\002\022\026\n" - + "\tbyte_data\030\002 \001(\014B\003\340A\002\"\235\001\n" + + "\016byte_data_type\030\001 \001(\01625.google.cloud.mode" + + "larmor.v1.ByteDataItem.ByteItemTypeB\003\340A\002\022\026\n" + + "\tbyte_data\030\002 \001(\014B\003\340A\002\"\250\001\n" + "\014ByteItemType\022\036\n" + "\032BYTE_ITEM_TYPE_UNSPECIFIED\020\000\022\022\n" + "\016PLAINTEXT_UTF8\020\001\022\007\n" @@ -529,52 +547,80 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016EXCEL_DOCUMENT\020\004\022\027\n" + "\023POWERPOINT_DOCUMENT\020\005\022\007\n" + "\003TXT\020\006\022\007\n" - + "\003CSV\020\007\"\320\002\n" + + "\003CSV\020\007\022\t\n" + + "\005IMAGE\020\010\"\320\002\n" + "\023SdpDeidentifyResult\022N\n" - + "\017execution_state\030\001 \001(\01620.google." - + "cloud.modelarmor.v1.FilterExecutionStateB\003\340A\003\022>\n\r" + + "\017execution_state\030\001" + + " \001(\01620.google.cloud.modelarmor.v1.FilterExecutionStateB\003\340A\003\022>\n\r" + "message_items\030\002 \003(\0132\'.google.cloud.modelarmor.v1.MessageItem\022F\n" + "\013match_state\030\003" + " \001(\0162,.google.cloud.modelarmor.v1.FilterMatchStateB\003\340A\003\0222\n" + "\004data\030\004 \001(\0132$.google.cloud.modelarmor.v1.DataItem\022\031\n" + "\021transformed_bytes\030\005 \001(\003\022\022\n\n" - + "info_types\030\006 \003(\t\"\304\002\n\n" + + "info_types\030\006 \003(\t\"\301\001\n" + + "\027SdpImageFindingLocation\022Z\n" + + "\016bounding_boxes\030\001 \003(\0132B.google.clou" + + "d.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox\032J\n" + + "\016SdpBoundingBox\022\013\n" + + "\003top\030\001 \001(\005\022\014\n" + + "\004left\030\002 \001(\005\022\r\n" + + "\005width\030\003 \001(\005\022\016\n" + + "\006height\030\004 \001(\005\"\217\001\n" + + "\022SdpContentLocation\022U\n" + + "\026image_finding_location\030\002 \001(\01323.google.cloud" + + ".modelarmor.v1.SdpImageFindingLocationH\000\022\026\n" + + "\016container_name\030\001 \001(\tB\n\n" + + "\010location\"\217\003\n" + + "\n" + "SdpFinding\022\021\n" + "\tinfo_type\030\001 \001(\t\022D\n\n" + "likelihood\030\002 \001(\01620.google.cloud.modelarmor.v1.SdpFindingLikelihood\022K\n" - + "\010location\030\003 \001" - + "(\01329.google.cloud.modelarmor.v1.SdpFinding.SdpFindingLocation\032\217\001\n" + + "\010location\030\003 \001(\01329" + + ".google.cloud.modelarmor.v1.SdpFinding.SdpFindingLocation\032\332\001\n" + "\022SdpFindingLocation\0229\n\n" + "byte_range\030\001 \001(\0132%.google.cloud.modelarmor.v1.RangeInfo\022>\n" - + "\017codepoint_range\030\002" - + " \001(\0132%.google.cloud.modelarmor.v1.RangeInfo\"\304\002\n" + + "\017codepoint_range\030\002 \001(\0132%.google.cloud.modelarmor.v1.RangeInfo\022I\n" + + "\021content_locations\030\003 \003(\0132..google." + + "cloud.modelarmor.v1.SdpContentLocation\"\350\002\n" + + "\017SdpRedactResult\022N\n" + + "\017execution_state\030\001 " + + "\001(\01620.google.cloud.modelarmor.v1.FilterExecutionStateB\003\340A\003\022C\n\r" + + "message_items\030\002 \003(" + + "\0132\'.google.cloud.modelarmor.v1.MessageItemB\003\340A\003\022F\n" + + "\013match_state\030\003 \001(\0162,.google.cl" + + "oud.modelarmor.v1.FilterMatchStateB\003\340A\003\022\033\n" + + "\016redacted_image\030\004 \001(\014B\003\340A\003\022=\n" + + "\010findings\030\005" + + " \003(\0132&.google.cloud.modelarmor.v1.SdpFindingB\003\340A\003\022\034\n" + + "\024extracted_image_text\030\006 \001(\t\"\304\002\n" + "\032PiAndJailbreakFilterResult\022N\n" - + "\017execution_state\030\001 \001(\01620.google.cloud.m" - + "odelarmor.v1.FilterExecutionStateB\003\340A\003\022>\n\r" + + "\017execution_state\030\001" + + " \001(\01620.google.cloud.modelarmor.v1.FilterExecutionStateB\003\340A\003\022>\n\r" + "message_items\030\002 \003(\0132\'.google.cloud.modelarmor.v1.MessageItem\022F\n" - + "\013match_state\030\003 " - + "\001(\0162,.google.cloud.modelarmor.v1.FilterMatchStateB\003\340A\003\022N\n" - + "\020confidence_level\030\005 \001(\016" - + "24.google.cloud.modelarmor.v1.DetectionConfidenceLevel\"\307\003\n" + + "\013match_state\030\003 \001(\0162,." + + "google.cloud.modelarmor.v1.FilterMatchStateB\003\340A\003\022N\n" + + "\020confidence_level\030\005 \001(\01624.goo" + + "gle.cloud.modelarmor.v1.DetectionConfidenceLevel\"\307\003\n" + "\030MaliciousUriFilterResult\022N\n" - + "\017execution_state\030\001 \001(\01620.google.cl" - + "oud.modelarmor.v1.FilterExecutionStateB\003\340A\003\022>\n\r" + + "\017execution_state\030\001" + + " \001(\01620.google.cloud.modelarmor.v1.FilterExecutionStateB\003\340A\003\022>\n" + + "\r" + "message_items\030\002 \003(\0132\'.google.cloud.modelarmor.v1.MessageItem\022F\n" - + "\013match_state\030\003" - + " \001(\0162,.google.cloud.modelarmor.v1.FilterMatchStateB\003\340A\003\022q\n" - + "\033malicious_uri_matched_items\030\004 \003(\0132L.google.cloud.modelarm" - + "or.v1.MaliciousUriFilterResult.MaliciousUriMatchedItem\032`\n" + + "\013match_state\030\003 \001" + + "(\0162,.google.cloud.modelarmor.v1.FilterMatchStateB\003\340A\003\022q\n" + + "\033malicious_uri_matched_items\030\004 \003(\0132L.google.cloud.modelarmor.v1." + + "MaliciousUriFilterResult.MaliciousUriMatchedItem\032`\n" + "\027MaliciousUriMatchedItem\022\013\n" + "\003uri\030\001 \001(\t\0228\n" + "\tlocations\030\002 \003(\0132%.google.cloud.modelarmor.v1.RangeInfo\"\240\004\n" + "\025VirusScanFilterResult\022N\n" - + "\017execution_state\030\001 " - + "\001(\01620.google.cloud.modelarmor.v1.FilterExecutionStateB\003\340A\003\022>\n\r" + + "\017execution_state\030\001 \001(\01620." + + "google.cloud.modelarmor.v1.FilterExecutionStateB\003\340A\003\022>\n\r" + "message_items\030\002 \003(\0132\'.google.cloud.modelarmor.v1.MessageItem\022F\n" + "\013match_state\030\003" + " \001(\0162,.google.cloud.modelarmor.v1.FilterMatchStateB\003\340A\003\022b\n" - + "\024scanned_content_type\030\004 \001(\0162D.google.cloud." - + "modelarmor.v1.VirusScanFilterResult.ScannedContentType\022\031\n" + + "\024scanned_content_type\030\004 \001(\0162D.google.cloud.modela" + + "rmor.v1.VirusScanFilterResult.ScannedContentType\022\031\n" + "\014scanned_size\030\005 \001(\003H\000\210\001\001\022>\n\r" + "virus_details\030\006 \003(\0132\'.google.cloud.modelarmor.v1.VirusDetail\"_\n" + "\022ScannedContentType\022$\n" @@ -586,8 +632,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013VirusDetail\022\016\n" + "\006vendor\030\001 \001(\t\022\r\n" + "\005names\030\002 \003(\t\022G\n" - + "\013threat_type\030\003" - + " \001(\01622.google.cloud.modelarmor.v1.VirusDetail.ThreatType\"\243\001\n\n" + + "\013threat_type\030\003 \001(" + + "\01622.google.cloud.modelarmor.v1.VirusDetail.ThreatType\"\243\001\n\n" + "ThreatType\022\033\n" + "\027THREAT_TYPE_UNSPECIFIED\020\000\022\013\n" + "\007UNKNOWN\020\001\022\021\n\r" @@ -596,8 +642,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033POTENTIALLY_HARMFUL_CONTENT\020\004\022 \n" + "\034POTENTIALLY_UNWANTED_CONTENT\020\005\"\352\001\n" + "\020CsamFilterResult\022N\n" - + "\017execution_state\030\001 \001(\01620.google" - + ".cloud.modelarmor.v1.FilterExecutionStateB\003\340A\003\022>\n\r" + + "\017execution_state\030\001 \001(\01620.google.cloud" + + ".modelarmor.v1.FilterExecutionStateB\003\340A\003\022>\n\r" + "message_items\030\002 \003(\0132\'.google.cloud.modelarmor.v1.MessageItem\022F\n" + "\013match_state\030\003" + " \001(\0162,.google.cloud.modelarmor.v1.FilterMatchStateB\003\340A\003\"\270\001\n" @@ -649,59 +695,68 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "StreamingMode\022\036\n" + "\032STREAMING_MODE_UNSPECIFIED\020\000\022\033\n" + "\027STREAMING_MODE_BUFFERED\020\001\022\033\n" - + "\027STREAMING_MODE_REALTIME\020\0022\361\022\n\n" + + "\027STREAMING_MODE_REALTIME\020\002*K\n" + + "\010Modality\022\030\n" + + "\024MODALITY_UNSPECIFIED\020\000\022\021\n\r" + + "MODALITY_TEXT\020\001\022\022\n" + + "\016MODALITY_IMAGE\020\0022\361\022\n\n" + "ModelArmor\022\264\001\n\r" - + "ListTemplates\0220.google.cloud.modelarmor.v1.ListTemplatesRequest\0321.google." - + "cloud.modelarmor.v1.ListTemplatesRespons" - + "e\">\332A\006parent\202\323\344\223\002/\022-/v1/{parent=projects/*/locations/*}/templates\022\241\001\n" - + "\013GetTemplate\022..google.cloud.modelarmor.v1.GetTempla" - + "teRequest\032$.google.cloud.modelarmor.v1.T" - + "emplate\"<\332A\004name\202\323\344\223\002/\022-/v1/{name=projects/*/locations/*/templates/*}\022\310\001\n" - + "\016CreateTemplate\0221.google.cloud.modelarmor.v1.Cr" - + "eateTemplateRequest\032$.google.cloud.model" - + "armor.v1.Template\"]\332A\033parent,template,te" - + "mplate_id\202\323\344\223\0029\"-/v1/{parent=projects/*/locations/*}/templates:\010template\022\312\001\n" - + "\016UpdateTemplate\0221.google.cloud.modelarmor.v1" - + ".UpdateTemplateRequest\032$.google.cloud.mo" - + "delarmor.v1.Template\"_\332A\024template,update" - + "_mask\202\323\344\223\002B26/v1/{template.name=projects" - + "/*/locations/*/templates/*}:\010template\022\231\001\n" - + "\016DeleteTemplate\0221.google.cloud.modelarm" - + "or.v1.DeleteTemplateRequest\032\026.google.pro" - + "tobuf.Empty\"<\332A\004name\202\323\344\223\002/*-/v1/{name=projects/*/locations/*/templates/*}\022\230\002\n" - + "\017GetFloorSetting\0222.google.cloud.modelarmor." - + "v1.GetFloorSettingRequest\032(.google.cloud" - + ".modelarmor.v1.FloorSetting\"\246\001\332A\004name\202\323\344" - + "\223\002\230\001\022./v1/{name=projects/*/locations/*/f" - + "loorSetting}Z/\022-/v1/{name=folders/*/loca" - + "tions/*/floorSetting}Z5\0223/v1/{name=organizations/*/locations/*/floorSetting}\022\212\003\n" - + "\022UpdateFloorSetting\0225.google.cloud.model" - + "armor.v1.UpdateFloorSettingRequest\032(.goo" - + "gle.cloud.modelarmor.v1.FloorSetting\"\222\002\332" - + "A\031floor_setting,update_mask\202\323\344\223\002\357\0012\332A\006par" + + "ent\202\323\344\223\002/\022-/v1/{parent=projects/*/locations/*}/templates\022\241\001\n" + + "\013GetTemplate\022..google.cloud.modelarmor.v1.GetTemplateRequest" + + "\032$.google.cloud.modelarmor.v1.Template\"<" + + "\332A\004name\202\323\344\223\002/\022-/v1/{name=projects/*/locations/*/templates/*}\022\310\001\n" + + "\016CreateTemplate\0221.google.cloud.modelarmor.v1.CreateTempl" + + "ateRequest\032$.google.cloud.modelarmor.v1." + + "Template\"]\332A\033parent,template,template_id" + + "\202\323\344\223\0029\"-/v1/{parent=projects/*/locations/*}/templates:\010template\022\312\001\n" + + "\016UpdateTemplate\0221.google.cloud.modelarmor.v1.UpdateTe" + + "mplateRequest\032$.google.cloud.modelarmor." + + "v1.Template\"_\332A\024template,update_mask\202\323\344\223" + + "\002B26/v1/{template.name=projects/*/locations/*/templates/*}:\010template\022\231\001\n" + + "\016DeleteTemplate\0221.google.cloud.modelarmor.v1.Del" + + "eteTemplateRequest\032\026.google.protobuf.Emp" + + "ty\"<\332A\004name\202\323\344\223\002/*-/v1/{name=projects/*/locations/*/templates/*}\022\230\002\n" + + "\017GetFloorSetting\0222.google.cloud.modelarmor.v1.GetFlo" + + "orSettingRequest\032(.google.cloud.modelarm" + + "or.v1.FloorSetting\"\246\001\332A\004name\202\323\344\223\002\230\001\022./v1" + + "/{name=projects/*/locations/*/floorSetting}Z/\022-/v1/{name=folders/*/locations/*/f" + + "loorSetting}Z5\0223/v1/{name=organizations/*/locations/*/floorSetting}\022\212\003\n" + + "\022UpdateFloorSetting\0225.google.cloud.modelarmor.v1." + + "UpdateFloorSettingRequest\032(.google.cloud" + + ".modelarmor.v1.FloorSetting\"\222\002\332A\031floor_s" + + "etting,update_mask\202\323\344\223\002\357\0012cloud.google.com/go/m" - + "odelarmor/apiv1/modelarmorpb;modelarmorp" - + "b\252\002\032Google.Cloud.ModelArmor.V1\312\002\032Google\\" - + "Cloud\\ModelArmor\\V1b\006proto3" + + "\022SanitizeUserPrompt\0225.google.cloud.modelarmor.v1.San" + + "itizeUserPromptRequest\0326.google.cloud.mo", + "delarmor.v1.SanitizeUserPromptResponse\"K" + + "\202\323\344\223\002E\"@/v1/{name=projects/*/locations/*" + + "/templates/*}:sanitizeUserPrompt:\001*\022\334\001\n\025" + + "SanitizeModelResponse\0228.google.cloud.mod" + + "elarmor.v1.SanitizeModelResponseRequest\032" + + "9.google.cloud.modelarmor.v1.SanitizeMod" + + "elResponseResponse\"N\202\323\344\223\002H\"C/v1/{name=pr" + + "ojects/*/locations/*/templates/*}:saniti" + + "zeModelResponse:\001*\022\217\001\n\030StreamSanitizeUse" + + "rPrompt\0225.google.cloud.modelarmor.v1.San" + + "itizeUserPromptRequest\0326.google.cloud.mo" + + "delarmor.v1.SanitizeUserPromptResponse\"\000" + + "(\0010\001\022\230\001\n\033StreamSanitizeModelResponse\0228.g" + + "oogle.cloud.modelarmor.v1.SanitizeModelR" + + "esponseRequest\0329.google.cloud.modelarmor" + + ".v1.SanitizeModelResponseResponse\"\000(\0010\001\032" + + "M\312A\031modelarmor.googleapis.com\322A.https://" + + "www.googleapis.com/auth/cloud-platformB\251" + + "\001\n\036com.google.cloud.modelarmor.v1B\013V1mai" + + "nProtoP\001Z>cloud.google.com/go/modelarmor" + + "/apiv1/modelarmorpb;modelarmorpb\252\002\032Googl" + + "e.Cloud.ModelArmor.V1\312\002\032Google\\Cloud\\Mod" + + "elArmor\\V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -740,6 +795,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "LogSanitizeOperations", "EnforcementType", "MultiLanguageDetection", + "Modalities", }); internal_static_google_cloud_modelarmor_v1_Template_TemplateMetadata_MultiLanguageDetection_descriptor = internal_static_google_cloud_modelarmor_v1_Template_TemplateMetadata_descriptor @@ -1044,7 +1100,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1_SdpFilterResult_descriptor, new java.lang.String[] { - "InspectResult", "DeidentifyResult", "Result", + "InspectResult", "DeidentifyResult", "RedactResult", "Result", }); internal_static_google_cloud_modelarmor_v1_SdpInspectResult_descriptor = getDescriptor().getMessageType(27); @@ -1052,7 +1108,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1_SdpInspectResult_descriptor, new java.lang.String[] { - "ExecutionState", "MessageItems", "MatchState", "Findings", "FindingsTruncated", + "ExecutionState", + "MessageItems", + "MatchState", + "Findings", + "FindingsTruncated", + "ExtractedImageText", }); internal_static_google_cloud_modelarmor_v1_DataItem_descriptor = getDescriptor().getMessageType(28); @@ -1083,8 +1144,33 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TransformedBytes", "InfoTypes", }); - internal_static_google_cloud_modelarmor_v1_SdpFinding_descriptor = + internal_static_google_cloud_modelarmor_v1_SdpImageFindingLocation_descriptor = getDescriptor().getMessageType(31); + internal_static_google_cloud_modelarmor_v1_SdpImageFindingLocation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_modelarmor_v1_SdpImageFindingLocation_descriptor, + new java.lang.String[] { + "BoundingBoxes", + }); + internal_static_google_cloud_modelarmor_v1_SdpImageFindingLocation_SdpBoundingBox_descriptor = + internal_static_google_cloud_modelarmor_v1_SdpImageFindingLocation_descriptor.getNestedType( + 0); + internal_static_google_cloud_modelarmor_v1_SdpImageFindingLocation_SdpBoundingBox_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_modelarmor_v1_SdpImageFindingLocation_SdpBoundingBox_descriptor, + new java.lang.String[] { + "Top", "Left", "Width", "Height", + }); + internal_static_google_cloud_modelarmor_v1_SdpContentLocation_descriptor = + getDescriptor().getMessageType(32); + internal_static_google_cloud_modelarmor_v1_SdpContentLocation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_modelarmor_v1_SdpContentLocation_descriptor, + new java.lang.String[] { + "ImageFindingLocation", "ContainerName", "Location", + }); + internal_static_google_cloud_modelarmor_v1_SdpFinding_descriptor = + getDescriptor().getMessageType(33); internal_static_google_cloud_modelarmor_v1_SdpFinding_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1_SdpFinding_descriptor, @@ -1097,10 +1183,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1_SdpFinding_SdpFindingLocation_descriptor, new java.lang.String[] { - "ByteRange", "CodepointRange", + "ByteRange", "CodepointRange", "ContentLocations", + }); + internal_static_google_cloud_modelarmor_v1_SdpRedactResult_descriptor = + getDescriptor().getMessageType(34); + internal_static_google_cloud_modelarmor_v1_SdpRedactResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_modelarmor_v1_SdpRedactResult_descriptor, + new java.lang.String[] { + "ExecutionState", + "MessageItems", + "MatchState", + "RedactedImage", + "Findings", + "ExtractedImageText", }); internal_static_google_cloud_modelarmor_v1_PiAndJailbreakFilterResult_descriptor = - getDescriptor().getMessageType(32); + getDescriptor().getMessageType(35); internal_static_google_cloud_modelarmor_v1_PiAndJailbreakFilterResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1_PiAndJailbreakFilterResult_descriptor, @@ -1108,7 +1207,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExecutionState", "MessageItems", "MatchState", "ConfidenceLevel", }); internal_static_google_cloud_modelarmor_v1_MaliciousUriFilterResult_descriptor = - getDescriptor().getMessageType(33); + getDescriptor().getMessageType(36); internal_static_google_cloud_modelarmor_v1_MaliciousUriFilterResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1_MaliciousUriFilterResult_descriptor, @@ -1125,7 +1224,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Uri", "Locations", }); internal_static_google_cloud_modelarmor_v1_VirusScanFilterResult_descriptor = - getDescriptor().getMessageType(34); + getDescriptor().getMessageType(37); internal_static_google_cloud_modelarmor_v1_VirusScanFilterResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1_VirusScanFilterResult_descriptor, @@ -1138,7 +1237,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "VirusDetails", }); internal_static_google_cloud_modelarmor_v1_VirusDetail_descriptor = - getDescriptor().getMessageType(35); + getDescriptor().getMessageType(38); internal_static_google_cloud_modelarmor_v1_VirusDetail_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1_VirusDetail_descriptor, @@ -1146,7 +1245,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Vendor", "Names", "ThreatType", }); internal_static_google_cloud_modelarmor_v1_CsamFilterResult_descriptor = - getDescriptor().getMessageType(36); + getDescriptor().getMessageType(39); internal_static_google_cloud_modelarmor_v1_CsamFilterResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1_CsamFilterResult_descriptor, @@ -1154,7 +1253,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExecutionState", "MessageItems", "MatchState", }); internal_static_google_cloud_modelarmor_v1_MessageItem_descriptor = - getDescriptor().getMessageType(37); + getDescriptor().getMessageType(40); internal_static_google_cloud_modelarmor_v1_MessageItem_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1_MessageItem_descriptor, @@ -1162,7 +1261,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MessageType", "Message", }); internal_static_google_cloud_modelarmor_v1_RangeInfo_descriptor = - getDescriptor().getMessageType(38); + getDescriptor().getMessageType(41); internal_static_google_cloud_modelarmor_v1_RangeInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1_RangeInfo_descriptor, diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/proto/google/cloud/modelarmor/v1/service.proto b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/proto/google/cloud/modelarmor/v1/service.proto index cdc1dd92a7dc..290803b6aae1 100644 --- a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/proto/google/cloud/modelarmor/v1/service.proto +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/proto/google/cloud/modelarmor/v1/service.proto @@ -249,6 +249,23 @@ enum StreamingMode { STREAMING_MODE_REALTIME = 2; } +// This enum is used in the TemplateMetadata message to indicate the modality +// supported for sanitize API calls. +enum Modality { + // Unspecified modality. If specified, all modalities will be sanitized. + MODALITY_UNSPECIFIED = 0; + + // Represents text modality. If specified, it will sanitize text fields, and + // text extracted from rich text files (like PDFs, DOCs) and plain text files + // (like TXT). + MODALITY_TEXT = 1; + + // Represents image modality. If specified, it will sanitize image files. The + // visual content and the text content in the image will be sanitized + // depending on the filter configuration. + MODALITY_IMAGE = 2; +} + // Message describing Template resource message Template { option (google.api.resource) = { @@ -319,6 +336,10 @@ message Template { // Optional. Metadata for multi language detection. MultiLanguageDetection multi_language_detection = 9 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specifies the modalities to scan. + // If empty, only text modality will be scanned. + repeated Modality modalities = 11 [(google.api.field_behavior) = OPTIONAL]; } // Identifier. name of resource @@ -625,7 +646,7 @@ message PiAndJailbreakFilterSettings { // Enabled ENABLED = 1; - // Enabled + // Disabled DISABLED = 2; } @@ -930,7 +951,8 @@ message RaiFilterResult { FilterMatchState match_state = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; // The map of RAI filter results where key is RAI filter type - either of - // "sexually_explicit", "hate_speech", "harassment", "dangerous". + // "sexually_explicit", "hate_speech", "harassment", "dangerous", "violence", + // "sexually_suggestive". map rai_filter_type_results = 4; } @@ -944,6 +966,10 @@ message SdpFilterResult { // Sensitive Data Protection Deidentification result if deidentification is // performed. SdpDeidentifyResult deidentify_result = 2; + + // Sensitive Data Protection Redaction result if redaction is performed. + // This is primarily used for image redaction. + SdpRedactResult redact_result = 3; } } @@ -974,6 +1000,9 @@ message SdpInspectResult { // the server reached the maximum amount of resources allowed for a single API // call. bool findings_truncated = 5; + + // Contains text extracted from the image, if applicable. + string extracted_image_text = 6; } // Represents Data item @@ -1015,6 +1044,9 @@ message ByteDataItem { // CSV CSV = 7; + + // IMAGE + IMAGE = 8; } // Required. The type of byte data @@ -1051,6 +1083,46 @@ message SdpDeidentifyResult { repeated string info_types = 6; } +// Location of the finding within an image. +message SdpImageFindingLocation { + // Bounding box encompassing a finding within an image. + message SdpBoundingBox { + // Top coordinate of the bounding box. (0,0) is upper left. + int32 top = 1; + + // Left coordinate of the bounding box. (0,0) is upper left. + int32 left = 2; + + // Width of the bounding box in pixels. + int32 width = 3; + + // Height of the bounding box in pixels. + int32 height = 4; + } + + // Bounding boxes locating the pixels within the image containing the finding. + repeated SdpBoundingBox bounding_boxes = 1; +} + +// Precise location of the finding within a document, record, image, or +// metadata container. +message SdpContentLocation { + // Type of the container within the file with location of the finding. This + // may be extended to include other container types like audio, video, etc in + // future. + oneof location { + // Location within an image's pixels. + SdpImageFindingLocation image_finding_location = 2; + } + + // Name of the container where the finding is located. + // The top level name is the source file name or table name. + // + // Nested names could be absent if the embedded object has no string + // identifier (for example, an image contained within a document). + string container_name = 1; +} + // Finding corresponding to Sensitive Data Protection filter. message SdpFinding { // Location of this Sensitive Data Protection Finding within input content. @@ -1059,12 +1131,24 @@ message SdpFinding { // These are relative to the finding's containing element. // Note that when the content is not textual, this references // the UTF-8 encoded textual representation of the content. + // Note: Omitted if content is an image. RangeInfo byte_range = 1; // Unicode character offsets delimiting the finding. // These are relative to the finding's containing element. // Provided when the content is text. + // Note: Omitted if content is an image. RangeInfo codepoint_range = 2; + + // List of nested objects pointing to the precise location of the finding + // within an image, file or record. + // + // For example, a single finding might be detected in two + // separate bounding boxes within an image (e.g., if it wraps across + // a line or is partially obscured). In such cases, content_locations + // would contain two SdpContentLocation entries, each with an + // image_finding_location pointing to a different bounding box. + repeated SdpContentLocation content_locations = 3; } // Name of Sensitive Data Protection info type for this finding. @@ -1077,6 +1161,36 @@ message SdpFinding { SdpFindingLocation location = 3; } +// Sensitive Data Protection Redaction Result. +message SdpRedactResult { + // Output only. Reports whether Sensitive Data Protection redaction was + // successfully executed or not. + FilterExecutionState execution_state = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Optional messages corresponding to the result. + // A message can provide warnings or error details. + // For example, if execution state is skipped then this field provides + // related reason/explanation. + repeated MessageItem message_items = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Match state for Sensitive Data Protection Redaction. + // Value is MATCH_FOUND if content is redacted. + FilterMatchState match_state = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The redacted image. The type will be the same as the original + // image. + bytes redacted_image = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The findings. This field is populated in the response only + // when include_findings in the SDP template is set to true. + repeated SdpFinding findings = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The extracted text from the image. + string extracted_image_text = 6; +} + // Prompt injection and Jailbreak Filter Result. message PiAndJailbreakFilterResult { // Output only. Reports whether Prompt injection and Jailbreak filter was diff --git a/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerClient.java b/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerClient.java index 518477cc1cec..2ecfa7adf09f 100644 --- a/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerClient.java +++ b/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerClient.java @@ -1094,8 +1094,7 @@ * *

                ListLocations *

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

                This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

                * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

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

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

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

                @@ -8895,9 +8894,8 @@ public final UnaryCallable deleteIssueComm * Lists information about the supported locations for this service. * *

                This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

                * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -8941,9 +8939,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

                This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

                * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -8988,9 +8985,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

                This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

                * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-securesourcemanager/google-cloud-securesourcemanager/src/main/resources/META-INF/native-image/com.google.cloud.securesourcemanager.v1/reflect-config.json b/java-securesourcemanager/google-cloud-securesourcemanager/src/main/resources/META-INF/native-image/com.google.cloud.securesourcemanager.v1/reflect-config.json index ec094899f01a..9afaeda59652 100644 --- a/java-securesourcemanager/google-cloud-securesourcemanager/src/main/resources/META-INF/native-image/com.google.cloud.securesourcemanager.v1/reflect-config.json +++ b/java-securesourcemanager/google-cloud-securesourcemanager/src/main/resources/META-INF/native-image/com.google.cloud.securesourcemanager.v1/reflect-config.json @@ -1988,6 +1988,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.securesourcemanager.v1.Repository$ScanConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.securesourcemanager.v1.Repository$ScanConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.securesourcemanager.v1.Repository$ScanConfig$SecretScanConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.securesourcemanager.v1.Repository$ScanConfig$SecretScanConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.securesourcemanager.v1.Repository$URIs", "queryAllDeclaredConstructors": true, diff --git a/java-securesourcemanager/google-cloud-securesourcemanager/src/test/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerClientHttpJsonTest.java b/java-securesourcemanager/google-cloud-securesourcemanager/src/test/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerClientHttpJsonTest.java index 81315814a6f7..1fe6f90fba50 100644 --- a/java-securesourcemanager/google-cloud-securesourcemanager/src/test/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerClientHttpJsonTest.java +++ b/java-securesourcemanager/google-cloud-securesourcemanager/src/test/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerClientHttpJsonTest.java @@ -636,6 +636,8 @@ public void getRepositoryTest() throws Exception { .setEtag("etag3123477") .setUris(Repository.URIs.newBuilder().build()) .setInitialConfig(Repository.InitialConfig.newBuilder().build()) + .setServiceAccount("serviceAccount1079137720") + .setScanConfig(Repository.ScanConfig.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -688,6 +690,8 @@ public void getRepositoryTest2() throws Exception { .setEtag("etag3123477") .setUris(Repository.URIs.newBuilder().build()) .setInitialConfig(Repository.InitialConfig.newBuilder().build()) + .setServiceAccount("serviceAccount1079137720") + .setScanConfig(Repository.ScanConfig.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -740,6 +744,8 @@ public void createRepositoryTest() throws Exception { .setEtag("etag3123477") .setUris(Repository.URIs.newBuilder().build()) .setInitialConfig(Repository.InitialConfig.newBuilder().build()) + .setServiceAccount("serviceAccount1079137720") + .setScanConfig(Repository.ScanConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -802,6 +808,8 @@ public void createRepositoryTest2() throws Exception { .setEtag("etag3123477") .setUris(Repository.URIs.newBuilder().build()) .setInitialConfig(Repository.InitialConfig.newBuilder().build()) + .setServiceAccount("serviceAccount1079137720") + .setScanConfig(Repository.ScanConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -864,6 +872,8 @@ public void updateRepositoryTest() throws Exception { .setEtag("etag3123477") .setUris(Repository.URIs.newBuilder().build()) .setInitialConfig(Repository.InitialConfig.newBuilder().build()) + .setServiceAccount("serviceAccount1079137720") + .setScanConfig(Repository.ScanConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -884,6 +894,8 @@ public void updateRepositoryTest() throws Exception { .setEtag("etag3123477") .setUris(Repository.URIs.newBuilder().build()) .setInitialConfig(Repository.InitialConfig.newBuilder().build()) + .setServiceAccount("serviceAccount1079137720") + .setScanConfig(Repository.ScanConfig.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -924,6 +936,8 @@ public void updateRepositoryExceptionTest() throws Exception { .setEtag("etag3123477") .setUris(Repository.URIs.newBuilder().build()) .setInitialConfig(Repository.InitialConfig.newBuilder().build()) + .setServiceAccount("serviceAccount1079137720") + .setScanConfig(Repository.ScanConfig.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateRepositoryAsync(repository, updateMask).get(); diff --git a/java-securesourcemanager/google-cloud-securesourcemanager/src/test/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerClientTest.java b/java-securesourcemanager/google-cloud-securesourcemanager/src/test/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerClientTest.java index 7c394115f51f..e2a5143121d7 100644 --- a/java-securesourcemanager/google-cloud-securesourcemanager/src/test/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerClientTest.java +++ b/java-securesourcemanager/google-cloud-securesourcemanager/src/test/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerClientTest.java @@ -601,6 +601,8 @@ public void getRepositoryTest() throws Exception { .setEtag("etag3123477") .setUris(Repository.URIs.newBuilder().build()) .setInitialConfig(Repository.InitialConfig.newBuilder().build()) + .setServiceAccount("serviceAccount1079137720") + .setScanConfig(Repository.ScanConfig.newBuilder().build()) .build(); mockSecureSourceManager.addResponse(expectedResponse); @@ -647,6 +649,8 @@ public void getRepositoryTest2() throws Exception { .setEtag("etag3123477") .setUris(Repository.URIs.newBuilder().build()) .setInitialConfig(Repository.InitialConfig.newBuilder().build()) + .setServiceAccount("serviceAccount1079137720") + .setScanConfig(Repository.ScanConfig.newBuilder().build()) .build(); mockSecureSourceManager.addResponse(expectedResponse); @@ -693,6 +697,8 @@ public void createRepositoryTest() throws Exception { .setEtag("etag3123477") .setUris(Repository.URIs.newBuilder().build()) .setInitialConfig(Repository.InitialConfig.newBuilder().build()) + .setServiceAccount("serviceAccount1079137720") + .setScanConfig(Repository.ScanConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -754,6 +760,8 @@ public void createRepositoryTest2() throws Exception { .setEtag("etag3123477") .setUris(Repository.URIs.newBuilder().build()) .setInitialConfig(Repository.InitialConfig.newBuilder().build()) + .setServiceAccount("serviceAccount1079137720") + .setScanConfig(Repository.ScanConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -815,6 +823,8 @@ public void updateRepositoryTest() throws Exception { .setEtag("etag3123477") .setUris(Repository.URIs.newBuilder().build()) .setInitialConfig(Repository.InitialConfig.newBuilder().build()) + .setServiceAccount("serviceAccount1079137720") + .setScanConfig(Repository.ScanConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/Repository.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/Repository.java index edbc70a181db..8447414f6957 100644 --- a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/Repository.java +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/Repository.java @@ -57,6 +57,7 @@ private Repository() { instance_ = ""; uid_ = ""; etag_ = ""; + serviceAccount_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -3886,6 +3887,1566 @@ public com.google.protobuf.Parser getParserForType() { } } + public interface ScanConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securesourcemanager.v1.Repository.ScanConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *

                +     * Optional. Configuration for secret scanning.
                +     * 
                + * + * + * .google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig secret_scan_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the secretScanConfig field is set. + */ + boolean hasSecretScanConfig(); + + /** + * + * + *
                +     * Optional. Configuration for secret scanning.
                +     * 
                + * + * + * .google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig secret_scan_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The secretScanConfig. + */ + com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig + getSecretScanConfig(); + + /** + * + * + *
                +     * Optional. Configuration for secret scanning.
                +     * 
                + * + * + * .google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig secret_scan_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfigOrBuilder + getSecretScanConfigOrBuilder(); + } + + /** + * + * + *
                +   * Configuration for scanning.
                +   * 
                + * + * Protobuf type {@code google.cloud.securesourcemanager.v1.Repository.ScanConfig} + */ + public static final class ScanConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.securesourcemanager.v1.Repository.ScanConfig) + ScanConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ScanConfig"); + } + + // Use ScanConfig.newBuilder() to construct. + private ScanConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ScanConfig() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securesourcemanager.v1.SecureSourceManagerProto + .internal_static_google_cloud_securesourcemanager_v1_Repository_ScanConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securesourcemanager.v1.SecureSourceManagerProto + .internal_static_google_cloud_securesourcemanager_v1_Repository_ScanConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.class, + com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.Builder.class); + } + + public interface SecretScanConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                +       * Optional. Enables secret scanning for the repository.
                +       * 
                + * + * bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enabled. + */ + boolean getEnabled(); + + /** + * + * + *
                +       * Optional. The DLP inspect template to use for secret scanning.
                +       * 
                + * + * + * string inspect_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The inspectTemplate. + */ + java.lang.String getInspectTemplate(); + + /** + * + * + *
                +       * Optional. The DLP inspect template to use for secret scanning.
                +       * 
                + * + * + * string inspect_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for inspectTemplate. + */ + com.google.protobuf.ByteString getInspectTemplateBytes(); + } + + /** + * + * + *
                +     * Configuration for secret scanning.
                +     * 
                + * + * Protobuf type {@code + * google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig} + */ + public static final class SecretScanConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig) + SecretScanConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SecretScanConfig"); + } + + // Use SecretScanConfig.newBuilder() to construct. + private SecretScanConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SecretScanConfig() { + inspectTemplate_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securesourcemanager.v1.SecureSourceManagerProto + .internal_static_google_cloud_securesourcemanager_v1_Repository_ScanConfig_SecretScanConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securesourcemanager.v1.SecureSourceManagerProto + .internal_static_google_cloud_securesourcemanager_v1_Repository_ScanConfig_SecretScanConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig + .class, + com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig + .Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + + /** + * + * + *
                +       * Optional. Enables secret scanning for the repository.
                +       * 
                + * + * bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + public static final int INSPECT_TEMPLATE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object inspectTemplate_ = ""; + + /** + * + * + *
                +       * Optional. The DLP inspect template to use for secret scanning.
                +       * 
                + * + * + * string inspect_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The inspectTemplate. + */ + @java.lang.Override + public java.lang.String getInspectTemplate() { + java.lang.Object ref = inspectTemplate_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inspectTemplate_ = s; + return s; + } + } + + /** + * + * + *
                +       * Optional. The DLP inspect template to use for secret scanning.
                +       * 
                + * + * + * string inspect_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for inspectTemplate. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInspectTemplateBytes() { + java.lang.Object ref = inspectTemplate_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + inspectTemplate_ = 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 (enabled_ != false) { + output.writeBool(1, enabled_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(inspectTemplate_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, inspectTemplate_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(inspectTemplate_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, inspectTemplate_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig)) { + return super.equals(obj); + } + com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig other = + (com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig) obj; + + if (getEnabled() != other.getEnabled()) return false; + if (!getInspectTemplate().equals(other.getInspectTemplate())) return false; + if (!getUnknownFields().equals(other.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) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); + hash = (37 * hash) + INSPECT_TEMPLATE_FIELD_NUMBER; + hash = (53 * hash) + getInspectTemplate().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 secret scanning.
                +       * 
                + * + * Protobuf type {@code + * google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig) + com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securesourcemanager.v1.SecureSourceManagerProto + .internal_static_google_cloud_securesourcemanager_v1_Repository_ScanConfig_SecretScanConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securesourcemanager.v1.SecureSourceManagerProto + .internal_static_google_cloud_securesourcemanager_v1_Repository_ScanConfig_SecretScanConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig + .class, + com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig + .Builder.class); + } + + // Construct using + // com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enabled_ = false; + inspectTemplate_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securesourcemanager.v1.SecureSourceManagerProto + .internal_static_google_cloud_securesourcemanager_v1_Repository_ScanConfig_SecretScanConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig + getDefaultInstanceForType() { + return com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig + build() { + com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig + buildPartial() { + com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig result = + new com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.inspectTemplate_ = inspectTemplate_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig) { + return mergeFrom( + (com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig other) { + if (other + == com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig + .getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + if (!other.getInspectTemplate().isEmpty()) { + inspectTemplate_ = other.inspectTemplate_; + 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: + { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + inspectTemplate_ = 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 boolean enabled_; + + /** + * + * + *
                +         * Optional. Enables secret scanning for the repository.
                +         * 
                + * + * bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + /** + * + * + *
                +         * Optional. Enables secret scanning for the repository.
                +         * 
                + * + * bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                +         * Optional. Enables secret scanning for the repository.
                +         * 
                + * + * bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + enabled_ = false; + onChanged(); + return this; + } + + private java.lang.Object inspectTemplate_ = ""; + + /** + * + * + *
                +         * Optional. The DLP inspect template to use for secret scanning.
                +         * 
                + * + * + * string inspect_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The inspectTemplate. + */ + public java.lang.String getInspectTemplate() { + java.lang.Object ref = inspectTemplate_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inspectTemplate_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                +         * Optional. The DLP inspect template to use for secret scanning.
                +         * 
                + * + * + * string inspect_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for inspectTemplate. + */ + public com.google.protobuf.ByteString getInspectTemplateBytes() { + java.lang.Object ref = inspectTemplate_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + inspectTemplate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                +         * Optional. The DLP inspect template to use for secret scanning.
                +         * 
                + * + * + * string inspect_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The inspectTemplate to set. + * @return This builder for chaining. + */ + public Builder setInspectTemplate(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + inspectTemplate_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                +         * Optional. The DLP inspect template to use for secret scanning.
                +         * 
                + * + * + * string inspect_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearInspectTemplate() { + inspectTemplate_ = getDefaultInstance().getInspectTemplate(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                +         * Optional. The DLP inspect template to use for secret scanning.
                +         * 
                + * + * + * string inspect_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for inspectTemplate to set. + * @return This builder for chaining. + */ + public Builder setInspectTemplateBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + inspectTemplate_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig) + private static final com.google.cloud.securesourcemanager.v1.Repository.ScanConfig + .SecretScanConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig(); + } + + public static com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SecretScanConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int SECRET_SCAN_CONFIG_FIELD_NUMBER = 1; + private com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig + secretScanConfig_; + + /** + * + * + *
                +     * Optional. Configuration for secret scanning.
                +     * 
                + * + * + * .google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig secret_scan_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the secretScanConfig field is set. + */ + @java.lang.Override + public boolean hasSecretScanConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                +     * Optional. Configuration for secret scanning.
                +     * 
                + * + * + * .google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig secret_scan_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The secretScanConfig. + */ + @java.lang.Override + public com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig + getSecretScanConfig() { + return secretScanConfig_ == null + ? com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig + .getDefaultInstance() + : secretScanConfig_; + } + + /** + * + * + *
                +     * Optional. Configuration for secret scanning.
                +     * 
                + * + * + * .google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig secret_scan_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfigOrBuilder + getSecretScanConfigOrBuilder() { + return secretScanConfig_ == null + ? com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig + .getDefaultInstance() + : secretScanConfig_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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, getSecretScanConfig()); + } + 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, getSecretScanConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.securesourcemanager.v1.Repository.ScanConfig)) { + return super.equals(obj); + } + com.google.cloud.securesourcemanager.v1.Repository.ScanConfig other = + (com.google.cloud.securesourcemanager.v1.Repository.ScanConfig) obj; + + if (hasSecretScanConfig() != other.hasSecretScanConfig()) return false; + if (hasSecretScanConfig()) { + if (!getSecretScanConfig().equals(other.getSecretScanConfig())) return false; + } + if (!getUnknownFields().equals(other.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 (hasSecretScanConfig()) { + hash = (37 * hash) + SECRET_SCAN_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getSecretScanConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securesourcemanager.v1.Repository.ScanConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securesourcemanager.v1.Repository.ScanConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securesourcemanager.v1.Repository.ScanConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securesourcemanager.v1.Repository.ScanConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securesourcemanager.v1.Repository.ScanConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securesourcemanager.v1.Repository.ScanConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securesourcemanager.v1.Repository.ScanConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securesourcemanager.v1.Repository.ScanConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securesourcemanager.v1.Repository.ScanConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securesourcemanager.v1.Repository.ScanConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securesourcemanager.v1.Repository.ScanConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securesourcemanager.v1.Repository.ScanConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.securesourcemanager.v1.Repository.ScanConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 scanning.
                +     * 
                + * + * Protobuf type {@code google.cloud.securesourcemanager.v1.Repository.ScanConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securesourcemanager.v1.Repository.ScanConfig) + com.google.cloud.securesourcemanager.v1.Repository.ScanConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securesourcemanager.v1.SecureSourceManagerProto + .internal_static_google_cloud_securesourcemanager_v1_Repository_ScanConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securesourcemanager.v1.SecureSourceManagerProto + .internal_static_google_cloud_securesourcemanager_v1_Repository_ScanConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.class, + com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.Builder.class); + } + + // Construct using com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetSecretScanConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + secretScanConfig_ = null; + if (secretScanConfigBuilder_ != null) { + secretScanConfigBuilder_.dispose(); + secretScanConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securesourcemanager.v1.SecureSourceManagerProto + .internal_static_google_cloud_securesourcemanager_v1_Repository_ScanConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.securesourcemanager.v1.Repository.ScanConfig + getDefaultInstanceForType() { + return com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securesourcemanager.v1.Repository.ScanConfig build() { + com.google.cloud.securesourcemanager.v1.Repository.ScanConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securesourcemanager.v1.Repository.ScanConfig buildPartial() { + com.google.cloud.securesourcemanager.v1.Repository.ScanConfig result = + new com.google.cloud.securesourcemanager.v1.Repository.ScanConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.securesourcemanager.v1.Repository.ScanConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.secretScanConfig_ = + secretScanConfigBuilder_ == null + ? secretScanConfig_ + : secretScanConfigBuilder_.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.securesourcemanager.v1.Repository.ScanConfig) { + return mergeFrom((com.google.cloud.securesourcemanager.v1.Repository.ScanConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.securesourcemanager.v1.Repository.ScanConfig other) { + if (other + == com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.getDefaultInstance()) + return this; + if (other.hasSecretScanConfig()) { + mergeSecretScanConfig(other.getSecretScanConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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( + internalGetSecretScanConfigFieldBuilder().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.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig + secretScanConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig, + com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig + .Builder, + com.google.cloud.securesourcemanager.v1.Repository.ScanConfig + .SecretScanConfigOrBuilder> + secretScanConfigBuilder_; + + /** + * + * + *
                +       * Optional. Configuration for secret scanning.
                +       * 
                + * + * + * .google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig secret_scan_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the secretScanConfig field is set. + */ + public boolean hasSecretScanConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                +       * Optional. Configuration for secret scanning.
                +       * 
                + * + * + * .google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig secret_scan_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The secretScanConfig. + */ + public com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig + getSecretScanConfig() { + if (secretScanConfigBuilder_ == null) { + return secretScanConfig_ == null + ? com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig + .getDefaultInstance() + : secretScanConfig_; + } else { + return secretScanConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
                +       * Optional. Configuration for secret scanning.
                +       * 
                + * + * + * .google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig secret_scan_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSecretScanConfig( + com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig value) { + if (secretScanConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + secretScanConfig_ = value; + } else { + secretScanConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                +       * Optional. Configuration for secret scanning.
                +       * 
                + * + * + * .google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig secret_scan_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSecretScanConfig( + com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig.Builder + builderForValue) { + if (secretScanConfigBuilder_ == null) { + secretScanConfig_ = builderForValue.build(); + } else { + secretScanConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                +       * Optional. Configuration for secret scanning.
                +       * 
                + * + * + * .google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig secret_scan_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSecretScanConfig( + com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig value) { + if (secretScanConfigBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && secretScanConfig_ != null + && secretScanConfig_ + != com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig + .getDefaultInstance()) { + getSecretScanConfigBuilder().mergeFrom(value); + } else { + secretScanConfig_ = value; + } + } else { + secretScanConfigBuilder_.mergeFrom(value); + } + if (secretScanConfig_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
                +       * Optional. Configuration for secret scanning.
                +       * 
                + * + * + * .google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig secret_scan_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSecretScanConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + secretScanConfig_ = null; + if (secretScanConfigBuilder_ != null) { + secretScanConfigBuilder_.dispose(); + secretScanConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                +       * Optional. Configuration for secret scanning.
                +       * 
                + * + * + * .google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig secret_scan_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig.Builder + getSecretScanConfigBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetSecretScanConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
                +       * Optional. Configuration for secret scanning.
                +       * 
                + * + * + * .google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig secret_scan_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfigOrBuilder + getSecretScanConfigOrBuilder() { + if (secretScanConfigBuilder_ != null) { + return secretScanConfigBuilder_.getMessageOrBuilder(); + } else { + return secretScanConfig_ == null + ? com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig + .getDefaultInstance() + : secretScanConfig_; + } + } + + /** + * + * + *
                +       * Optional. Configuration for secret scanning.
                +       * 
                + * + * + * .google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig secret_scan_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig, + com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig + .Builder, + com.google.cloud.securesourcemanager.v1.Repository.ScanConfig + .SecretScanConfigOrBuilder> + internalGetSecretScanConfigFieldBuilder() { + if (secretScanConfigBuilder_ == null) { + secretScanConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig, + com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.SecretScanConfig + .Builder, + com.google.cloud.securesourcemanager.v1.Repository.ScanConfig + .SecretScanConfigOrBuilder>( + getSecretScanConfig(), getParentForChildren(), isClean()); + secretScanConfig_ = null; + } + return secretScanConfigBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securesourcemanager.v1.Repository.ScanConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securesourcemanager.v1.Repository.ScanConfig) + private static final com.google.cloud.securesourcemanager.v1.Repository.ScanConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.securesourcemanager.v1.Repository.ScanConfig(); + } + + public static com.google.cloud.securesourcemanager.v1.Repository.ScanConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ScanConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securesourcemanager.v1.Repository.ScanConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @@ -4368,39 +5929,156 @@ public boolean hasInitialConfig() { * * *
                -   * Input only. Initial configurations for the repository.
                +   * Input only. Initial configurations for the repository.
                +   * 
                + * + * + * .google.cloud.securesourcemanager.v1.Repository.InitialConfig initial_config = 10 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The initialConfig. + */ + @java.lang.Override + public com.google.cloud.securesourcemanager.v1.Repository.InitialConfig getInitialConfig() { + return initialConfig_ == null + ? com.google.cloud.securesourcemanager.v1.Repository.InitialConfig.getDefaultInstance() + : initialConfig_; + } + + /** + * + * + *
                +   * Input only. Initial configurations for the repository.
                +   * 
                + * + * + * .google.cloud.securesourcemanager.v1.Repository.InitialConfig initial_config = 10 [(.google.api.field_behavior) = INPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.securesourcemanager.v1.Repository.InitialConfigOrBuilder + getInitialConfigOrBuilder() { + return initialConfig_ == null + ? com.google.cloud.securesourcemanager.v1.Repository.InitialConfig.getDefaultInstance() + : initialConfig_; + } + + public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private volatile java.lang.Object serviceAccount_ = ""; + + /** + * + * + *
                +   * Optional. Repository level service account (BYOSA).
                +   * 
                + * + * + * string service_account = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The serviceAccount. + */ + @java.lang.Override + public java.lang.String getServiceAccount() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccount_ = s; + return s; + } + } + + /** + * + * + *
                +   * Optional. Repository level service account (BYOSA).
                +   * 
                + * + * + * string service_account = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for serviceAccount. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceAccountBytes() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCAN_CONFIG_FIELD_NUMBER = 13; + private com.google.cloud.securesourcemanager.v1.Repository.ScanConfig scanConfig_; + + /** + * + * + *
                +   * Optional. Provides configuration for scanning.
                +   * 
                + * + * + * .google.cloud.securesourcemanager.v1.Repository.ScanConfig scan_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the scanConfig field is set. + */ + @java.lang.Override + public boolean hasScanConfig() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
                +   * Optional. Provides configuration for scanning.
                    * 
                * * - * .google.cloud.securesourcemanager.v1.Repository.InitialConfig initial_config = 10 [(.google.api.field_behavior) = INPUT_ONLY]; + * .google.cloud.securesourcemanager.v1.Repository.ScanConfig scan_config = 13 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The initialConfig. + * @return The scanConfig. */ @java.lang.Override - public com.google.cloud.securesourcemanager.v1.Repository.InitialConfig getInitialConfig() { - return initialConfig_ == null - ? com.google.cloud.securesourcemanager.v1.Repository.InitialConfig.getDefaultInstance() - : initialConfig_; + public com.google.cloud.securesourcemanager.v1.Repository.ScanConfig getScanConfig() { + return scanConfig_ == null + ? com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.getDefaultInstance() + : scanConfig_; } /** * * *
                -   * Input only. Initial configurations for the repository.
                +   * Optional. Provides configuration for scanning.
                    * 
                * * - * .google.cloud.securesourcemanager.v1.Repository.InitialConfig initial_config = 10 [(.google.api.field_behavior) = INPUT_ONLY]; + * .google.cloud.securesourcemanager.v1.Repository.ScanConfig scan_config = 13 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public com.google.cloud.securesourcemanager.v1.Repository.InitialConfigOrBuilder - getInitialConfigOrBuilder() { - return initialConfig_ == null - ? com.google.cloud.securesourcemanager.v1.Repository.InitialConfig.getDefaultInstance() - : initialConfig_; + public com.google.cloud.securesourcemanager.v1.Repository.ScanConfigOrBuilder + getScanConfigOrBuilder() { + return scanConfig_ == null + ? com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.getDefaultInstance() + : scanConfig_; } private byte memoizedIsInitialized = -1; @@ -4444,6 +6122,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(10, getInitialConfig()); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(serviceAccount_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 11, serviceAccount_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(13, getScanConfig()); + } getUnknownFields().writeTo(output); } @@ -4480,6 +6164,12 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getInitialConfig()); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(serviceAccount_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(11, serviceAccount_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getScanConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -4517,6 +6207,11 @@ public boolean equals(final java.lang.Object obj) { if (hasInitialConfig()) { if (!getInitialConfig().equals(other.getInitialConfig())) return false; } + if (!getServiceAccount().equals(other.getServiceAccount())) return false; + if (hasScanConfig() != other.hasScanConfig()) return false; + if (hasScanConfig()) { + if (!getScanConfig().equals(other.getScanConfig())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -4554,6 +6249,12 @@ public int hashCode() { hash = (37 * hash) + INITIAL_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getInitialConfig().hashCode(); } + hash = (37 * hash) + SERVICE_ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getServiceAccount().hashCode(); + if (hasScanConfig()) { + hash = (37 * hash) + SCAN_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getScanConfig().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -4699,6 +6400,7 @@ private void maybeForceBuilderInitialization() { internalGetUpdateTimeFieldBuilder(); internalGetUrisFieldBuilder(); internalGetInitialConfigFieldBuilder(); + internalGetScanConfigFieldBuilder(); } } @@ -4731,6 +6433,12 @@ public Builder clear() { initialConfigBuilder_.dispose(); initialConfigBuilder_ = null; } + serviceAccount_ = ""; + scanConfig_ = null; + if (scanConfigBuilder_ != null) { + scanConfigBuilder_.dispose(); + scanConfigBuilder_ = null; + } return this; } @@ -4800,6 +6508,13 @@ private void buildPartial0(com.google.cloud.securesourcemanager.v1.Repository re initialConfigBuilder_ == null ? initialConfig_ : initialConfigBuilder_.build(); to_bitField0_ |= 0x00000008; } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.serviceAccount_ = serviceAccount_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.scanConfig_ = scanConfigBuilder_ == null ? scanConfig_ : scanConfigBuilder_.build(); + to_bitField0_ |= 0x00000010; + } result.bitField0_ |= to_bitField0_; } @@ -4853,6 +6568,14 @@ public Builder mergeFrom(com.google.cloud.securesourcemanager.v1.Repository othe if (other.hasInitialConfig()) { mergeInitialConfig(other.getInitialConfig()); } + if (!other.getServiceAccount().isEmpty()) { + serviceAccount_ = other.serviceAccount_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (other.hasScanConfig()) { + mergeScanConfig(other.getScanConfig()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -4936,6 +6659,19 @@ public Builder mergeFrom( bitField0_ |= 0x00000100; break; } // case 82 + case 90: + { + serviceAccount_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 90 + case 106: + { + input.readMessage( + internalGetScanConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 106 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -6437,6 +8173,346 @@ public Builder clearInitialConfig() { return initialConfigBuilder_; } + private java.lang.Object serviceAccount_ = ""; + + /** + * + * + *
                +     * Optional. Repository level service account (BYOSA).
                +     * 
                + * + * + * string service_account = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The serviceAccount. + */ + public java.lang.String getServiceAccount() { + java.lang.Object ref = serviceAccount_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccount_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                +     * Optional. Repository level service account (BYOSA).
                +     * 
                + * + * + * string service_account = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for serviceAccount. + */ + public com.google.protobuf.ByteString getServiceAccountBytes() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                +     * Optional. Repository level service account (BYOSA).
                +     * 
                + * + * + * string service_account = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The serviceAccount to set. + * @return This builder for chaining. + */ + public Builder setServiceAccount(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + serviceAccount_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. Repository level service account (BYOSA).
                +     * 
                + * + * + * string service_account = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearServiceAccount() { + serviceAccount_ = getDefaultInstance().getServiceAccount(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. Repository level service account (BYOSA).
                +     * 
                + * + * + * string service_account = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for serviceAccount to set. + * @return This builder for chaining. + */ + public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceAccount_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + private com.google.cloud.securesourcemanager.v1.Repository.ScanConfig scanConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.securesourcemanager.v1.Repository.ScanConfig, + com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.Builder, + com.google.cloud.securesourcemanager.v1.Repository.ScanConfigOrBuilder> + scanConfigBuilder_; + + /** + * + * + *
                +     * Optional. Provides configuration for scanning.
                +     * 
                + * + * + * .google.cloud.securesourcemanager.v1.Repository.ScanConfig scan_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the scanConfig field is set. + */ + public boolean hasScanConfig() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
                +     * Optional. Provides configuration for scanning.
                +     * 
                + * + * + * .google.cloud.securesourcemanager.v1.Repository.ScanConfig scan_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The scanConfig. + */ + public com.google.cloud.securesourcemanager.v1.Repository.ScanConfig getScanConfig() { + if (scanConfigBuilder_ == null) { + return scanConfig_ == null + ? com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.getDefaultInstance() + : scanConfig_; + } else { + return scanConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
                +     * Optional. Provides configuration for scanning.
                +     * 
                + * + * + * .google.cloud.securesourcemanager.v1.Repository.ScanConfig scan_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setScanConfig( + com.google.cloud.securesourcemanager.v1.Repository.ScanConfig value) { + if (scanConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + scanConfig_ = value; + } else { + scanConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. Provides configuration for scanning.
                +     * 
                + * + * + * .google.cloud.securesourcemanager.v1.Repository.ScanConfig scan_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setScanConfig( + com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.Builder builderForValue) { + if (scanConfigBuilder_ == null) { + scanConfig_ = builderForValue.build(); + } else { + scanConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. Provides configuration for scanning.
                +     * 
                + * + * + * .google.cloud.securesourcemanager.v1.Repository.ScanConfig scan_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeScanConfig( + com.google.cloud.securesourcemanager.v1.Repository.ScanConfig value) { + if (scanConfigBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0) + && scanConfig_ != null + && scanConfig_ + != com.google.cloud.securesourcemanager.v1.Repository.ScanConfig + .getDefaultInstance()) { + getScanConfigBuilder().mergeFrom(value); + } else { + scanConfig_ = value; + } + } else { + scanConfigBuilder_.mergeFrom(value); + } + if (scanConfig_ != null) { + bitField0_ |= 0x00000400; + onChanged(); + } + return this; + } + + /** + * + * + *
                +     * Optional. Provides configuration for scanning.
                +     * 
                + * + * + * .google.cloud.securesourcemanager.v1.Repository.ScanConfig scan_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearScanConfig() { + bitField0_ = (bitField0_ & ~0x00000400); + scanConfig_ = null; + if (scanConfigBuilder_ != null) { + scanConfigBuilder_.dispose(); + scanConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. Provides configuration for scanning.
                +     * 
                + * + * + * .google.cloud.securesourcemanager.v1.Repository.ScanConfig scan_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.Builder + getScanConfigBuilder() { + bitField0_ |= 0x00000400; + onChanged(); + return internalGetScanConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
                +     * Optional. Provides configuration for scanning.
                +     * 
                + * + * + * .google.cloud.securesourcemanager.v1.Repository.ScanConfig scan_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.securesourcemanager.v1.Repository.ScanConfigOrBuilder + getScanConfigOrBuilder() { + if (scanConfigBuilder_ != null) { + return scanConfigBuilder_.getMessageOrBuilder(); + } else { + return scanConfig_ == null + ? com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.getDefaultInstance() + : scanConfig_; + } + } + + /** + * + * + *
                +     * Optional. Provides configuration for scanning.
                +     * 
                + * + * + * .google.cloud.securesourcemanager.v1.Repository.ScanConfig scan_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.securesourcemanager.v1.Repository.ScanConfig, + com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.Builder, + com.google.cloud.securesourcemanager.v1.Repository.ScanConfigOrBuilder> + internalGetScanConfigFieldBuilder() { + if (scanConfigBuilder_ == null) { + scanConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.securesourcemanager.v1.Repository.ScanConfig, + com.google.cloud.securesourcemanager.v1.Repository.ScanConfig.Builder, + com.google.cloud.securesourcemanager.v1.Repository.ScanConfigOrBuilder>( + getScanConfig(), getParentForChildren(), isClean()); + scanConfig_ = null; + } + return scanConfigBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.securesourcemanager.v1.Repository) } diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/RepositoryOrBuilder.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/RepositoryOrBuilder.java index 7c8dd0640a76..0be9e3e86364 100644 --- a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/RepositoryOrBuilder.java +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/RepositoryOrBuilder.java @@ -350,4 +350,77 @@ public interface RepositoryOrBuilder */ com.google.cloud.securesourcemanager.v1.Repository.InitialConfigOrBuilder getInitialConfigOrBuilder(); + + /** + * + * + *
                +   * Optional. Repository level service account (BYOSA).
                +   * 
                + * + * + * string service_account = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The serviceAccount. + */ + java.lang.String getServiceAccount(); + + /** + * + * + *
                +   * Optional. Repository level service account (BYOSA).
                +   * 
                + * + * + * string service_account = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for serviceAccount. + */ + com.google.protobuf.ByteString getServiceAccountBytes(); + + /** + * + * + *
                +   * Optional. Provides configuration for scanning.
                +   * 
                + * + * + * .google.cloud.securesourcemanager.v1.Repository.ScanConfig scan_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the scanConfig field is set. + */ + boolean hasScanConfig(); + + /** + * + * + *
                +   * Optional. Provides configuration for scanning.
                +   * 
                + * + * + * .google.cloud.securesourcemanager.v1.Repository.ScanConfig scan_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The scanConfig. + */ + com.google.cloud.securesourcemanager.v1.Repository.ScanConfig getScanConfig(); + + /** + * + * + *
                +   * Optional. Provides configuration for scanning.
                +   * 
                + * + * + * .google.cloud.securesourcemanager.v1.Repository.ScanConfig scan_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.securesourcemanager.v1.Repository.ScanConfigOrBuilder getScanConfigOrBuilder(); } diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerProto.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerProto.java index 55472f412fa2..55888da55d3a 100644 --- a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerProto.java +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerProto.java @@ -76,6 +76,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_securesourcemanager_v1_Repository_InitialConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_securesourcemanager_v1_Repository_InitialConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securesourcemanager_v1_Repository_ScanConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_securesourcemanager_v1_Repository_ScanConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securesourcemanager_v1_Repository_ScanConfig_SecretScanConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_securesourcemanager_v1_Repository_ScanConfig_SecretScanConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_securesourcemanager_v1_Hook_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -472,7 +480,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027PAUSED_CMEK_UNAVAILABLE\020\001\022\031\n" + "\021INSTANCE_RESUMING\020\002\032\002\010\001:q\352An\n" + "+securesourcemanager.googleapis.com/Instance\022.goo" - + "gle.cloud.securesourcemanager.v1.PullRequestComment.ReviewB\003\340A\001H\000\022W\n" - + "\007comment\030\005 \001" - + "(\0132?.google.cloud.securesourcemanager.v1.PullRequestComment.CommentB\003\340A\001H\000\022Q\n" - + "\004code\030\006 \001(\0132<.google.cloud.securesourcemana" - + "ger.v1.PullRequestComment.CodeB\003\340A\001H\000\032\377\001\n" + + "\006review\030\004 \001(\0132>.google.cloud" + + ".securesourcemanager.v1.PullRequestComment.ReviewB\003\340A\001H\000\022W\n" + + "\007comment\030\005 \001(\0132?.goog" + + "le.cloud.securesourcemanager.v1.PullRequestComment.CommentB\003\340A\001H\000\022Q\n" + + "\004code\030\006 \001(\0132" + + "<.google.cloud.securesourcemanager.v1.PullRequestComment.CodeB\003\340A\001H\000\032\377\001\n" + "\006Review\022c\n" - + "\013action_type\030\001 \001(\0162I.google.c" - + "loud.securesourcemanager.v1.PullRequestComment.Review.ActionTypeB\003\340A\002\022\021\n" + + "\013action_type\030\001 \001(\0162I.google.cloud.secu" + + "resourcemanager.v1.PullRequestComment.Review.ActionTypeB\003\340A\002\022\021\n" + "\004body\030\002 \001(\tB\003\340A\001\022!\n" + "\024effective_commit_sha\030\004 \001(\tB\003\340A\003\"Z\n\n" + "ActionType\022\033\n" @@ -635,17 +657,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004Code\022\021\n" + "\004body\030\001 \001(\tB\003\340A\002\022\025\n" + "\005reply\030\002 \001(\tB\006\340A\001\340A\004\022W\n" - + "\010position\030\003 \001(\0132@.goo" - + "gle.cloud.securesourcemanager.v1.PullRequestComment.PositionB\003\340A\001\022#\n" + + "\010position\030\003 \001(\0132@.google.cloud" + + ".securesourcemanager.v1.PullRequestComment.PositionB\003\340A\001\022#\n" + "\026effective_root_comment\030\004 \001(\tB\003\340A\003\022\025\n" + "\010resolved\030\005 \001(\010B\003\340A\003\022!\n" + "\024effective_commit_sha\030\007 \001(\tB\003\340A\003\0320\n" + "\010Position\022\021\n" + "\004path\030\001 \001(\tB\003\340A\002\022\021\n" + "\004line\030\002 \001(\003B\003\340A\002:\270\001\352A\264\001\n" - + "5securesourcemanager.googleapis.com/PullRequestComment\022{projec" - + "ts/{project}/locations/{location}/reposi" - + "tories/{repository}/pullRequests/{pull_request}/pullRequestComments/{comment}B\020\n" + + "5securesourcemanager.googleapis.com/PullRequestComment\022{projects/{proje" + + "ct}/locations/{location}/repositories/{r" + + "epository}/pullRequests/{pull_request}/pullRequestComments/{comment}B\020\n" + "\016comment_detail\"\270\001\n" + "\024ListInstancesRequest\022C\n" + "\006parent\030\001 \001(" @@ -662,11 +684,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB3\340A\002\372A-\n" + "+securesourcemanager.googleapis.com/Instance\"\335\001\n" + "\025CreateInstanceRequest\022C\n" - + "\006parent\030\001 \001(\tB3\340A\002\372A-\022" - + "+securesourcemanager.googleapis.com/Instance\022\030\n" + + "\006parent\030\001 \001(" + + "\tB3\340A\002\372A-\022+securesourcemanager.googleapis.com/Instance\022\030\n" + "\013instance_id\030\002 \001(\tB\003\340A\002\022D\n" - + "\010instance\030\003" - + " \001(\0132-.google.cloud.securesourcemanager.v1.InstanceB\003\340A\002\022\037\n\n" + + "\010instance\030\003 \001(\0132" + + "-.google.cloud.securesourcemanager.v1.InstanceB\003\340A\002\022\037\n\n" + "request_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\217\001\n" + "\025DeleteInstanceRequest\022A\n" + "\004name\030\001 \001(\tB3\340A\002\372A-\n" @@ -697,10 +719,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB5\340A\002\372A/\n" + "-securesourcemanager.googleapis.com/Repository\"\306\001\n" + "\027CreateRepositoryRequest\022E\n" - + "\006parent\030\001 \001(\tB" - + "5\340A\002\372A/\022-securesourcemanager.googleapis.com/Repository\022H\n\n" - + "repository\030\002 \001(\0132/.goo" - + "gle.cloud.securesourcemanager.v1.RepositoryB\003\340A\002\022\032\n\r" + + "\006parent\030\001 \001(\tB5\340A\002\372A/\022-" + + "securesourcemanager.googleapis.com/Repository\022H\n\n" + + "repository\030\002 \001(\0132/.google.cloud" + + ".securesourcemanager.v1.RepositoryB\003\340A\002\022\032\n\r" + "repository_id\030\003 \001(\tB\003\340A\002\"\265\001\n" + "\027UpdateRepositoryRequest\0224\n" + "\013update_mask\030\001" @@ -726,13 +748,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021CreateHookRequest\022E\n" + "\006parent\030\001 \001(\tB5\340A\002\372A/\n" + "-securesourcemanager.googleapis.com/Repository\022<\n" - + "\004hook\030\002" - + " \001(\0132).google.cloud.securesourcemanager.v1.HookB\003\340A\002\022\024\n" + + "\004hook\030\002 \001" + + "(\0132).google.cloud.securesourcemanager.v1.HookB\003\340A\002\022\024\n" + "\007hook_id\030\003 \001(\tB\003\340A\002\"\207\001\n" + "\021UpdateHookRequest\0224\n" + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022<\n" - + "\004hook\030\002" - + " \001(\0132).google.cloud.securesourcemanager.v1.HookB\003\340A\002\"R\n" + + "\004hook\030\002 \001" + + "(\0132).google.cloud.securesourcemanager.v1.HookB\003\340A\002\"R\n" + "\021DeleteHookRequest\022=\n" + "\004name\030\001 \001(\tB/\340A\002\372A)\n" + "\'securesourcemanager.googleapis.com/Hook\"[\n" @@ -740,14 +762,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB5\340A\002\372A/\n" + "-securesourcemanager.googleapis.com/BranchRule\"\310\001\n" + "\027CreateBranchRuleRequest\022E\n" - + "\006parent\030\001 \001(\t" - + "B5\340A\002\372A/\022-securesourcemanager.googleapis.com/BranchRule\022I\n" - + "\013branch_rule\030\002 \001(\0132/.g" - + "oogle.cloud.securesourcemanager.v1.BranchRuleB\003\340A\002\022\033\n" + + "\006parent\030\001 \001(\tB5\340A\002\372A/\022" + + "-securesourcemanager.googleapis.com/BranchRule\022I\n" + + "\013branch_rule\030\002 \001(\0132/.google.clo" + + "ud.securesourcemanager.v1.BranchRuleB\003\340A\002\022\033\n" + "\016branch_rule_id\030\003 \001(\tB\003\340A\002\"\220\001\n" + "\026ListBranchRulesRequest\022E\n" - + "\006parent\030\001 \001(" - + "\tB5\340A\002\372A/\022-securesourcemanager.googleapis.com/BranchRule\022\026\n" + + "\006parent\030\001 \001(\tB5\340A\002\372A" + + "/\022-securesourcemanager.googleapis.com/BranchRule\022\026\n" + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\"z\n" + "\027DeleteBranchRuleRequest\022C\n" @@ -755,8 +777,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "-securesourcemanager.googleapis.com/BranchRule\022\032\n\r" + "allow_missing\030\002 \001(\010B\003\340A\001\"\266\001\n" + "\027UpdateBranchRuleRequest\022I\n" - + "\013branch_rule\030\001 \001(\0132" - + "/.google.cloud.securesourcemanager.v1.BranchRuleB\003\340A\002\022\032\n\r" + + "\013branch_rule\030\001 \001(\0132/.google." + + "cloud.securesourcemanager.v1.BranchRuleB\003\340A\002\022\032\n\r" + "validate_only\030\002 \001(\010B\003\340A\001\0224\n" + "\013update_mask\030\003 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\"y\n" + "\027ListBranchRulesResponse\022E\n" @@ -777,8 +799,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\"|\n" + "\030ListPullRequestsResponse\022G\n\r" - + "pull_requests\030\001" - + " \003(\01320.google.cloud.securesourcemanager.v1.PullRequest\022\027\n" + + "pull_requests\030\001 \003(\013" + + "20.google.cloud.securesourcemanager.v1.PullRequest\022\027\n" + "\017next_page_token\030\002 \001(\t\"\235\001\n" + "\030UpdatePullRequestRequest\022K\n" + "\014pull_request\030\001" @@ -804,8 +826,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022CreateIssueRequest\022E\n" + "\006parent\030\001 \001(\tB5\340A\002\372A/\n" + "-securesourcemanager.googleapis.com/Repository\022>\n" - + "\005issue\030\002" - + " \001(\0132*.google.cloud.securesourcemanager.v1.IssueB\003\340A\002\"Q\n" + + "\005issue\030\002 \001(\0132*." + + "google.cloud.securesourcemanager.v1.IssueB\003\340A\002\"Q\n" + "\017GetIssueRequest\022>\n" + "\004name\030\001 \001(\tB0\340A\002\372A*\n" + "(securesourcemanager.googleapis.com/Issue\"\233\001\n" @@ -819,8 +841,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006issues\030\001 \003(\0132*.google.cloud.securesourcemanager.v1.Issue\022\027\n" + "\017next_page_token\030\002 \001(\t\"\212\001\n" + "\022UpdateIssueRequest\022>\n" - + "\005issue\030\001 \001(" - + "\0132*.google.cloud.securesourcemanager.v1.IssueB\003\340A\002\0224\n" + + "\005issue\030\001 \001(\0132*.googl" + + "e.cloud.securesourcemanager.v1.IssueB\003\340A\002\0224\n" + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\"g\n" + "\022DeleteIssueRequest\022>\n" + "\004name\030\001 \001(\tB0\340A\002\372A*\n" @@ -835,8 +857,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "(securesourcemanager.googleapis.com/Issue\022\021\n" + "\004etag\030\002 \001(\tB\003\340A\001\"\357\001\n" + "\tTreeEntry\022L\n" - + "\004type\030\001" - + " \001(\01629.google.cloud.securesourcemanager.v1.TreeEntry.ObjectTypeB\003\340A\003\022\020\n" + + "\004type\030\001 \001(\01629.go" + + "ogle.cloud.securesourcemanager.v1.TreeEntry.ObjectTypeB\003\340A\003\022\020\n" + "\003sha\030\002 \001(\tB\003\340A\003\022\021\n" + "\004path\030\003 \001(\tB\003\340A\003\022\021\n" + "\004mode\030\004 \001(\tB\003\340A\003\022\021\n" @@ -854,8 +876,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tpage_size\030\004 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\005 \001(\tB\003\340A\001\"r\n" + "\021FetchTreeResponse\022D\n" - + "\014tree_entries\030\001" - + " \003(\0132..google.cloud.securesourcemanager.v1.TreeEntry\022\027\n" + + "\014tree_entries\030\001 \003(\0132" + + "..google.cloud.securesourcemanager.v1.TreeEntry\022\027\n" + "\017next_page_token\030\002 \001(\t\"o\n" + "\020FetchBlobRequest\022I\n\n" + "repository\030\001 \001(\tB5\340A\002\372A/\n" @@ -865,27 +887,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003sha\030\001 \001(\t\022\017\n" + "\007content\030\002 \001(\t\"\240\001\n" + "\036ListPullRequestCommentsRequest\022M\n" - + "\006parent\030\001 \001(\tB=\340A\002\372A7\0225securesourcema" - + "nager.googleapis.com/PullRequestComment\022\026\n" + + "\006parent\030\001 \001(" + + "\tB=\340A\002\372A7\0225securesourcemanager.googleapis.com/PullRequestComment\022\026\n" + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\"\222\001\n" + "\037ListPullRequestCommentsResponse\022V\n" - + "\025pull_request_comments\030\001 \003(\01327.go" - + "ogle.cloud.securesourcemanager.v1.PullRequestComment\022\027\n" + + "\025pull_request_comments\030\001 \003(\01327.google.clou" + + "d.securesourcemanager.v1.PullRequestComment\022\027\n" + "\017next_page_token\030\002 \001(\t\"\314\001\n" + "\037CreatePullRequestCommentRequest\022M\n" - + "\006parent\030\001 \001(" - + "\tB=\340A\002\372A7\0225securesourcemanager.googleapis.com/PullRequestComment\022Z\n" - + "\024pull_request_comment\030\002 \001(\01327.google.cloud.se" - + "curesourcemanager.v1.PullRequestCommentB\003\340A\002\"\323\001\n" + + "\006parent\030\001 \001(\t" + + "B=\340A\002\372A7\0225securesourcemanager.googleapis.com/PullRequestComment\022Z\n" + + "\024pull_request_comment\030\002" + + " \001(\01327.google.cloud.securesourcemanager.v1.PullRequestCommentB\003\340A\002\"\323\001\n" + "%BatchCreatePullRequestCommentsRequest\022M\n" - + "\006parent\030\001 \001(\tB=\340A\002\372A7\0225secureso" - + "urcemanager.googleapis.com/PullRequestComment\022[\n" - + "\010requests\030\002 \003(\0132D.google.cloud.s" - + "ecuresourcemanager.v1.CreatePullRequestCommentRequestB\003\340A\002\"\200\001\n" + + "\006parent\030\001 \001(" + + "\tB=\340A\002\372A7\0225securesourcemanager.googleapis.com/PullRequestComment\022[\n" + + "\010requests\030\002 \003(\0132D.google.cloud.securesour" + + "cemanager.v1.CreatePullRequestCommentRequestB\003\340A\002\"\200\001\n" + "&BatchCreatePullRequestCommentsResponse\022V\n" - + "\025pull_request_comments\030\001" - + " \003(\01327.google.cloud.securesourcemanager.v1.PullRequestComment\"\263\001\n" + + "\025pull_request_comments\030\001 " + + "\003(\01327.google.cloud.securesourcemanager.v1.PullRequestComment\"\263\001\n" + "\037UpdatePullRequestCommentRequest\022Z\n" + "\024pull_request_comment\030\001" + " \001(\01327.google.cloud.securesourcemanager.v1.PullRequestCommentB\003\340A\002\0224\n" @@ -897,384 +919,388 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB=\340A\002\372A7\n" + "5securesourcemanager.googleapis.com/PullRequestComment\"\330\001\n" + "!ResolvePullRequestCommentsRequest\022M\n" - + "\006parent\030\001 \001(" - + "\tB=\340A\002\372A7\0225securesourcemanager.googleapis.com/PullRequestComment\022L\n" + + "\006parent\030\001 \001(\tB=\340" + + "A\002\372A7\0225securesourcemanager.googleapis.com/PullRequestComment\022L\n" + "\005names\030\002 \003(\tB=\340A\002\372A7\n" + "5securesourcemanager.googleapis.com/PullRequestComment\022\026\n" + "\tauto_fill\030\003 \001(\010B\003\340A\001\"|\n" + "\"ResolvePullRequestCommentsResponse\022V\n" - + "\025pull_request_comments\030\001 \003(\013" - + "27.google.cloud.securesourcemanager.v1.PullRequestComment\"\332\001\n" - + "#UnresolvePullRequestCommentsRequest\022M\n" - + "\006parent\030\001 \001(\tB=\340A\002\372A" - + "7\0225securesourcemanager.googleapis.com/PullRequestComment\022L\n" - + "\005names\030\002 \003(\tB=\340A\002\372A7\n" - + "5securesourcemanager.googleapis.com/PullRequestComment\022\026\n" - + "\tauto_fill\030\003 \001(\010B\003\340A\001\"~\n" - + "$UnresolvePullRequestCommentsResponse\022V\n" - + "\025pull_request_comments\030\001 \003(\01327.google.c" - + "loud.securesourcemanager.v1.PullRequestComment\"\254\001\n" - + "\031CreateIssueCommentRequest\022@\n" - + "\006", - "parent\030\001 \001(\tB0\340A\002\372A*\n(securesourcemanage" - + "r.googleapis.com/Issue\022M\n\rissue_comment\030" - + "\002 \001(\01321.google.cloud.securesourcemanager" - + ".v1.IssueCommentB\003\340A\002\"_\n\026GetIssueComment" - + "Request\022E\n\004name\030\001 \001(\tB7\340A\002\372A1\n/securesou" - + "rcemanager.googleapis.com/IssueComment\"\224" - + "\001\n\030ListIssueCommentsRequest\022G\n\006parent\030\001 " - + "\001(\tB7\340A\002\372A1\022/securesourcemanager.googlea" - + "pis.com/IssueComment\022\026\n\tpage_size\030\002 \001(\005B" - + "\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"\177\n\031ListIss" - + "ueCommentsResponse\022I\n\016issue_comments\030\001 \003" + + "\025pull_request_comments\030\001 \003(\01327.google" + + ".cloud.securesourcemanager.v1.PullReques", + "tComment\"\332\001\n#UnresolvePullRequestComment" + + "sRequest\022M\n\006parent\030\001 \001(\tB=\340A\002\372A7\0225secure" + + "sourcemanager.googleapis.com/PullRequest" + + "Comment\022L\n\005names\030\002 \003(\tB=\340A\002\372A7\n5secureso" + + "urcemanager.googleapis.com/PullRequestCo" + + "mment\022\026\n\tauto_fill\030\003 \001(\010B\003\340A\001\"~\n$Unresol" + + "vePullRequestCommentsResponse\022V\n\025pull_re" + + "quest_comments\030\001 \003(\01327.google.cloud.secu" + + "resourcemanager.v1.PullRequestComment\"\254\001" + + "\n\031CreateIssueCommentRequest\022@\n\006parent\030\001 " + + "\001(\tB0\340A\002\372A*\n(securesourcemanager.googlea" + + "pis.com/Issue\022M\n\rissue_comment\030\002 \001(\01321.g" + + "oogle.cloud.securesourcemanager.v1.Issue" + + "CommentB\003\340A\002\"_\n\026GetIssueCommentRequest\022E" + + "\n\004name\030\001 \001(\tB7\340A\002\372A1\n/securesourcemanage" + + "r.googleapis.com/IssueComment\"\224\001\n\030ListIs" + + "sueCommentsRequest\022G\n\006parent\030\001 \001(\tB7\340A\002\372" + + "A1\022/securesourcemanager.googleapis.com/I" + + "ssueComment\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\np" + + "age_token\030\003 \001(\tB\003\340A\001\"\177\n\031ListIssueComment" + + "sResponse\022I\n\016issue_comments\030\001 \003(\01321.goog" + + "le.cloud.securesourcemanager.v1.IssueCom" + + "ment\022\027\n\017next_page_token\030\002 \001(\t\"\240\001\n\031Update" + + "IssueCommentRequest\022M\n\rissue_comment\030\001 \001" + "(\01321.google.cloud.securesourcemanager.v1" - + ".IssueComment\022\027\n\017next_page_token\030\002 \001(\t\"\240" - + "\001\n\031UpdateIssueCommentRequest\022M\n\rissue_co" - + "mment\030\001 \001(\01321.google.cloud.securesourcem" - + "anager.v1.IssueCommentB\003\340A\002\0224\n\013update_ma" - + "sk\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A" - + "\001\"b\n\031DeleteIssueCommentRequest\022E\n\004name\030\001" - + " \001(\tB7\340A\002\372A1\n/securesourcemanager.google" - + "apis.com/IssueComment2\376d\n\023SecureSourceMa" - + "nager\022\306\001\n\rListInstances\0229.google.cloud.s" - + "ecuresourcemanager.v1.ListInstancesReque" - + "st\032:.google.cloud.securesourcemanager.v1" - + ".ListInstancesResponse\">\332A\006parent\202\323\344\223\002/\022" + + ".IssueCommentB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132" + + "\032.google.protobuf.FieldMaskB\003\340A\001\"b\n\031Dele" + + "teIssueCommentRequest\022E\n\004name\030\001 \001(\tB7\340A\002" + + "\372A1\n/securesourcemanager.googleapis.com/" + + "IssueComment2\376d\n\023SecureSourceManager\022\306\001\n" + + "\rListInstances\0229.google.cloud.securesour" + + "cemanager.v1.ListInstancesRequest\032:.goog" + + "le.cloud.securesourcemanager.v1.ListInst" + + "ancesResponse\">\332A\006parent\202\323\344\223\002/\022-/v1/{par" + + "ent=projects/*/locations/*}/instances\022\263\001" + + "\n\013GetInstance\0227.google.cloud.securesourc" + + "emanager.v1.GetInstanceRequest\032-.google." + + "cloud.securesourcemanager.v1.Instance\"<\332" + + "A\004name\202\323\344\223\002/\022-/v1/{name=projects/*/locat" + + "ions/*/instances/*}\022\352\001\n\016CreateInstance\022:" + + ".google.cloud.securesourcemanager.v1.Cre" + + "ateInstanceRequest\032\035.google.longrunning." + + "Operation\"}\312A\035\n\010Instance\022\021OperationMetad" + + "ata\332A\033parent,instance,instance_id\202\323\344\223\0029\"" + "-/v1/{parent=projects/*/locations/*}/ins" - + "tances\022\263\001\n\013GetInstance\0227.google.cloud.se" - + "curesourcemanager.v1.GetInstanceRequest\032" - + "-.google.cloud.securesourcemanager.v1.In" - + "stance\"<\332A\004name\202\323\344\223\002/\022-/v1/{name=project" - + "s/*/locations/*/instances/*}\022\352\001\n\016CreateI" - + "nstance\022:.google.cloud.securesourcemanag" - + "er.v1.CreateInstanceRequest\032\035.google.lon" - + "grunning.Operation\"}\312A\035\n\010Instance\022\021Opera" - + "tionMetadata\332A\033parent,instance,instance_" - + "id\202\323\344\223\0029\"-/v1/{parent=projects/*/locatio" - + "ns/*}/instances:\010instance\022\326\001\n\016DeleteInst" - + "ance\022:.google.cloud.securesourcemanager." - + "v1.DeleteInstanceRequest\032\035.google.longru" - + "nning.Operation\"i\312A*\n\025google.protobuf.Em" - + "pty\022\021OperationMetadata\332A\004name\202\323\344\223\002/*-/v1" - + "/{name=projects/*/locations/*/instances/" - + "*}\022\322\001\n\020ListRepositories\022<.google.cloud.s" - + "ecuresourcemanager.v1.ListRepositoriesRe" - + "quest\032=.google.cloud.securesourcemanager" - + ".v1.ListRepositoriesResponse\"A\332A\006parent\202" - + "\323\344\223\0022\0220/v1/{parent=projects/*/locations/" - + "*}/repositories\022\274\001\n\rGetRepository\0229.goog" - + "le.cloud.securesourcemanager.v1.GetRepos" - + "itoryRequest\032/.google.cloud.securesource" - + "manager.v1.Repository\"?\332A\004name\202\323\344\223\0022\0220/v" - + "1/{name=projects/*/locations/*/repositor" - + "ies/*}\022\372\001\n\020CreateRepository\022<.google.clo" - + "ud.securesourcemanager.v1.CreateReposito" - + "ryRequest\032\035.google.longrunning.Operation" - + "\"\210\001\312A\037\n\nRepository\022\021OperationMetadata\332A\037" - + "parent,repository,repository_id\202\323\344\223\002>\"0/" - + "v1/{parent=projects/*/locations/*}/repos" - + "itories:\nrepository\022\374\001\n\020UpdateRepository" - + "\022<.google.cloud.securesourcemanager.v1.U" - + "pdateRepositoryRequest\032\035.google.longrunn" - + "ing.Operation\"\212\001\312A\037\n\nRepository\022\021Operati" - + "onMetadata\332A\026repository,update_mask\202\323\344\223\002" - + "I2;/v1/{repository.name=projects/*/locat" - + "ions/*/repositories/*}:\nrepository\022\335\001\n\020D" - + "eleteRepository\022<.google.cloud.securesou" - + "rcemanager.v1.DeleteRepositoryRequest\032\035." - + "google.longrunning.Operation\"l\312A*\n\025googl" - + "e.protobuf.Empty\022\021OperationMetadata\332A\004na" - + "me\202\323\344\223\0022*0/v1/{name=projects/*/locations" - + "/*/repositories/*}\022\305\001\n\tListHooks\0225.googl" - + "e.cloud.securesourcemanager.v1.ListHooks" - + "Request\0326.google.cloud.securesourcemanag" - + "er.v1.ListHooksResponse\"I\332A\006parent\202\323\344\223\002:" - + "\0228/v1/{parent=projects/*/locations/*/rep" - + "ositories/*}/hooks\022\262\001\n\007GetHook\0223.google." - + "cloud.securesourcemanager.v1.GetHookRequ" - + "est\032).google.cloud.securesourcemanager.v" - + "1.Hook\"G\332A\004name\202\323\344\223\002:\0228/v1/{name=project" - + "s/*/locations/*/repositories/*/hooks/*}\022" - + "\335\001\n\nCreateHook\0226.google.cloud.securesour" - + "cemanager.v1.CreateHookRequest\032\035.google." - + "longrunning.Operation\"x\312A\031\n\004Hook\022\021Operat" - + "ionMetadata\332A\023parent,hook,hook_id\202\323\344\223\002@\"" - + "8/v1/{parent=projects/*/locations/*/repo" - + "sitories/*}/hooks:\004hook\022\337\001\n\nUpdateHook\0226" - + ".google.cloud.securesourcemanager.v1.Upd" - + "ateHookRequest\032\035.google.longrunning.Oper" - + "ation\"z\312A\031\n\004Hook\022\021OperationMetadata\332A\020ho" - + "ok,update_mask\202\323\344\223\002E2=/v1/{hook.name=pro" - + "jects/*/locations/*/repositories/*/hooks" - + "/*}:\004hook\022\331\001\n\nDeleteHook\0226.google.cloud." - + "securesourcemanager.v1.DeleteHookRequest" - + "\032\035.google.longrunning.Operation\"t\312A*\n\025go" - + "ogle.protobuf.Empty\022\021OperationMetadata\332A" - + "\004name\202\323\344\223\002:*8/v1/{name=projects/*/locati" - + "ons/*/repositories/*/hooks/*}\022\243\001\n\020GetIam" - + "PolicyRepo\022\".google.iam.v1.GetIamPolicyR" - + "equest\032\025.google.iam.v1.Policy\"T\332A\010resour" - + "ce\202\323\344\223\002C\022A/v1/{resource=projects/*/locat" - + "ions/*/repositories/*}:getIamPolicy\022\246\001\n\020" - + "SetIamPolicyRepo\022\".google.iam.v1.SetIamP" - + "olicyRequest\032\025.google.iam.v1.Policy\"W\332A\010" - + "resource\202\323\344\223\002F\"A/v1/{resource=projects/*" - + "/locations/*/repositories/*}:setIamPolic" - + "y:\001*\022\314\001\n\026TestIamPermissionsRepo\022(.google" - + ".iam.v1.TestIamPermissionsRequest\032).goog" - + "le.iam.v1.TestIamPermissionsResponse\"]\332A" - + "\010resource\202\323\344\223\002L\"G/v1/{resource=projects/" - + "*/locations/*/repositories/*}:testIamPer" - + "missions:\001*\022\213\002\n\020CreateBranchRule\022<.googl" - + "e.cloud.securesourcemanager.v1.CreateBra" - + "nchRuleRequest\032\035.google.longrunning.Oper" - + "ation\"\231\001\312A\037\n\nBranchRule\022\021OperationMetada" - + "ta\332A!parent,branch_rule,branch_rule_id\202\323" - + "\344\223\002M\">/v1/{parent=projects/*/locations/*" - + "/repositories/*}/branchRules:\013branch_rul" - + "e\022\335\001\n\017ListBranchRules\022;.google.cloud.sec" - + "uresourcemanager.v1.ListBranchRulesReque" - + "st\032<.google.cloud.securesourcemanager.v1" - + ".ListBranchRulesResponse\"O\332A\006parent\202\323\344\223\002" - + "@\022>/v1/{parent=projects/*/locations/*/re" - + "positories/*}/branchRules\022\312\001\n\rGetBranchR" - + "ule\0229.google.cloud.securesourcemanager.v" - + "1.GetBranchRuleRequest\032/.google.cloud.se" - + "curesourcemanager.v1.BranchRule\"M\332A\004name" - + "\202\323\344\223\002@\022>/v1/{name=projects/*/locations/*" - + "/repositories/*/branchRules/*}\022\215\002\n\020Updat" - + "eBranchRule\022<.google.cloud.securesourcem" - + "anager.v1.UpdateBranchRuleRequest\032\035.goog" - + "le.longrunning.Operation\"\233\001\312A\037\n\nBranchRu" - + "le\022\021OperationMetadata\332A\027branch_rule,upda" - + "te_mask\202\323\344\223\002Y2J/v1/{branch_rule.name=pro" - + "jects/*/locations/*/repositories/*/branc" - + "hRules/*}:\013branch_rule\022\353\001\n\020DeleteBranchR" - + "ule\022<.google.cloud.securesourcemanager.v" - + "1.DeleteBranchRuleRequest\032\035.google.longr" - + "unning.Operation\"z\312A*\n\025google.protobuf.E" - + "mpty\022\021OperationMetadata\332A\004name\202\323\344\223\002@*>/v" - + "1/{name=projects/*/locations/*/repositor" - + "ies/*/branchRules/*}\022\246\002\n\021CreatePullReque" - + "st\022=.google.cloud.securesourcemanager.v1" - + ".CreatePullRequestRequest\032\035.google.longr" - + "unning.Operation\"\262\001\312AD\n/google.cloud.sec" - + "uresourcemanager.v1.PullRequest\022\021Operati" - + "onMetadata\332A\023parent,pull_request\202\323\344\223\002O\"?" - + "/v1/{parent=projects/*/locations/*/repos" - + "itories/*}/pullRequests:\014pull_request\022\316\001" - + "\n\016GetPullRequest\022:.google.cloud.secureso" - + "urcemanager.v1.GetPullRequestRequest\0320.g" - + "oogle.cloud.securesourcemanager.v1.PullR" - + "equest\"N\332A\004name\202\323\344\223\002A\022?/v1/{name=project" + + "tances:\010instance\022\326\001\n\016DeleteInstance\022:.go" + + "ogle.cloud.securesourcemanager.v1.Delete" + + "InstanceRequest\032\035.google.longrunning.Ope" + + "ration\"i\312A*\n\025google.protobuf.Empty\022\021Oper" + + "ationMetadata\332A\004name\202\323\344\223\002/*-/v1/{name=pr" + + "ojects/*/locations/*/instances/*}\022\322\001\n\020Li" + + "stRepositories\022<.google.cloud.securesour" + + "cemanager.v1.ListRepositoriesRequest\032=.g" + + "oogle.cloud.securesourcemanager.v1.ListR" + + "epositoriesResponse\"A\332A\006parent\202\323\344\223\0022\0220/v" + + "1/{parent=projects/*/locations/*}/reposi" + + "tories\022\274\001\n\rGetRepository\0229.google.cloud." + + "securesourcemanager.v1.GetRepositoryRequ" + + "est\032/.google.cloud.securesourcemanager.v" + + "1.Repository\"?\332A\004name\202\323\344\223\0022\0220/v1/{name=p" + + "rojects/*/locations/*/repositories/*}\022\372\001" + + "\n\020CreateRepository\022<.google.cloud.secure" + + "sourcemanager.v1.CreateRepositoryRequest" + + "\032\035.google.longrunning.Operation\"\210\001\312A\037\n\nR" + + "epository\022\021OperationMetadata\332A\037parent,re" + + "pository,repository_id\202\323\344\223\002>\"0/v1/{paren" + + "t=projects/*/locations/*}/repositories:\n" + + "repository\022\374\001\n\020UpdateRepository\022<.google" + + ".cloud.securesourcemanager.v1.UpdateRepo" + + "sitoryRequest\032\035.google.longrunning.Opera" + + "tion\"\212\001\312A\037\n\nRepository\022\021OperationMetadat" + + "a\332A\026repository,update_mask\202\323\344\223\002I2;/v1/{r" + + "epository.name=projects/*/locations/*/re" + + "positories/*}:\nrepository\022\335\001\n\020DeleteRepo" + + "sitory\022<.google.cloud.securesourcemanage" + + "r.v1.DeleteRepositoryRequest\032\035.google.lo" + + "ngrunning.Operation\"l\312A*\n\025google.protobu" + + "f.Empty\022\021OperationMetadata\332A\004name\202\323\344\223\0022*" + + "0/v1/{name=projects/*/locations/*/reposi" + + "tories/*}\022\305\001\n\tListHooks\0225.google.cloud.s" + + "ecuresourcemanager.v1.ListHooksRequest\0326" + + ".google.cloud.securesourcemanager.v1.Lis" + + "tHooksResponse\"I\332A\006parent\202\323\344\223\002:\0228/v1/{pa" + + "rent=projects/*/locations/*/repositories" + + "/*}/hooks\022\262\001\n\007GetHook\0223.google.cloud.sec" + + "uresourcemanager.v1.GetHookRequest\032).goo" + + "gle.cloud.securesourcemanager.v1.Hook\"G\332" + + "A\004name\202\323\344\223\002:\0228/v1/{name=projects/*/locat" + + "ions/*/repositories/*/hooks/*}\022\335\001\n\nCreat" + + "eHook\0226.google.cloud.securesourcemanager" + + ".v1.CreateHookRequest\032\035.google.longrunni" + + "ng.Operation\"x\312A\031\n\004Hook\022\021OperationMetada" + + "ta\332A\023parent,hook,hook_id\202\323\344\223\002@\"8/v1/{par" + + "ent=projects/*/locations/*/repositories/" + + "*}/hooks:\004hook\022\337\001\n\nUpdateHook\0226.google.c" + + "loud.securesourcemanager.v1.UpdateHookRe" + + "quest\032\035.google.longrunning.Operation\"z\312A" + + "\031\n\004Hook\022\021OperationMetadata\332A\020hook,update" + + "_mask\202\323\344\223\002E2=/v1/{hook.name=projects/*/l" + + "ocations/*/repositories/*/hooks/*}:\004hook" + + "\022\331\001\n\nDeleteHook\0226.google.cloud.securesou" + + "rcemanager.v1.DeleteHookRequest\032\035.google" + + ".longrunning.Operation\"t\312A*\n\025google.prot" + + "obuf.Empty\022\021OperationMetadata\332A\004name\202\323\344\223" + + "\002:*8/v1/{name=projects/*/locations/*/rep" + + "ositories/*/hooks/*}\022\243\001\n\020GetIamPolicyRep" + + "o\022\".google.iam.v1.GetIamPolicyRequest\032\025." + + "google.iam.v1.Policy\"T\332A\010resource\202\323\344\223\002C\022" + + "A/v1/{resource=projects/*/locations/*/re" + + "positories/*}:getIamPolicy\022\246\001\n\020SetIamPol" + + "icyRepo\022\".google.iam.v1.SetIamPolicyRequ" + + "est\032\025.google.iam.v1.Policy\"W\332A\010resource\202" + + "\323\344\223\002F\"A/v1/{resource=projects/*/location" + + "s/*/repositories/*}:setIamPolicy:\001*\022\314\001\n\026" + + "TestIamPermissionsRepo\022(.google.iam.v1.T" + + "estIamPermissionsRequest\032).google.iam.v1" + + ".TestIamPermissionsResponse\"]\332A\010resource" + + "\202\323\344\223\002L\"G/v1/{resource=projects/*/locatio" + + "ns/*/repositories/*}:testIamPermissions:" + + "\001*\022\213\002\n\020CreateBranchRule\022<.google.cloud.s" + + "ecuresourcemanager.v1.CreateBranchRuleRe" + + "quest\032\035.google.longrunning.Operation\"\231\001\312" + + "A\037\n\nBranchRule\022\021OperationMetadata\332A!pare" + + "nt,branch_rule,branch_rule_id\202\323\344\223\002M\">/v1" + + "/{parent=projects/*/locations/*/reposito" + + "ries/*}/branchRules:\013branch_rule\022\335\001\n\017Lis" + + "tBranchRules\022;.google.cloud.securesource" + + "manager.v1.ListBranchRulesRequest\032<.goog" + + "le.cloud.securesourcemanager.v1.ListBran" + + "chRulesResponse\"O\332A\006parent\202\323\344\223\002@\022>/v1/{p" + + "arent=projects/*/locations/*/repositorie" + + "s/*}/branchRules\022\312\001\n\rGetBranchRule\0229.goo" + + "gle.cloud.securesourcemanager.v1.GetBran" + + "chRuleRequest\032/.google.cloud.securesourc" + + "emanager.v1.BranchRule\"M\332A\004name\202\323\344\223\002@\022>/" + + "v1/{name=projects/*/locations/*/reposito" + + "ries/*/branchRules/*}\022\215\002\n\020UpdateBranchRu" + + "le\022<.google.cloud.securesourcemanager.v1" + + ".UpdateBranchRuleRequest\032\035.google.longru" + + "nning.Operation\"\233\001\312A\037\n\nBranchRule\022\021Opera" + + "tionMetadata\332A\027branch_rule,update_mask\202\323" + + "\344\223\002Y2J/v1/{branch_rule.name=projects/*/l" + + "ocations/*/repositories/*/branchRules/*}" + + ":\013branch_rule\022\353\001\n\020DeleteBranchRule\022<.goo" + + "gle.cloud.securesourcemanager.v1.DeleteB" + + "ranchRuleRequest\032\035.google.longrunning.Op" + + "eration\"z\312A*\n\025google.protobuf.Empty\022\021Ope" + + "rationMetadata\332A\004name\202\323\344\223\002@*>/v1/{name=p" + + "rojects/*/locations/*/repositories/*/bra" + + "nchRules/*}\022\246\002\n\021CreatePullRequest\022=.goog" + + "le.cloud.securesourcemanager.v1.CreatePu" + + "llRequestRequest\032\035.google.longrunning.Op" + + "eration\"\262\001\312AD\n/google.cloud.securesource" + + "manager.v1.PullRequest\022\021OperationMetadat" + + "a\332A\023parent,pull_request\202\323\344\223\002O\"?/v1/{pare" + + "nt=projects/*/locations/*/repositories/*" + + "}/pullRequests:\014pull_request\022\316\001\n\016GetPull" + + "Request\022:.google.cloud.securesourcemanag" + + "er.v1.GetPullRequestRequest\0320.google.clo" + + "ud.securesourcemanager.v1.PullRequest\"N\332" + + "A\004name\202\323\344\223\002A\022?/v1/{name=projects/*/locat" + + "ions/*/repositories/*/pullRequests/*}\022\341\001" + + "\n\020ListPullRequests\022<.google.cloud.secure" + + "sourcemanager.v1.ListPullRequestsRequest" + + "\032=.google.cloud.securesourcemanager.v1.L" + + "istPullRequestsResponse\"P\332A\006parent\202\323\344\223\002A" + + "\022?/v1/{parent=projects/*/locations/*/rep" + + "ositories/*}/pullRequests\022\270\002\n\021UpdatePull" + + "Request\022=.google.cloud.securesourcemanag" + + "er.v1.UpdatePullRequestRequest\032\035.google." + + "longrunning.Operation\"\304\001\312AD\n/google.clou" + + "d.securesourcemanager.v1.PullRequest\022\021Op" + + "erationMetadata\332A\030pull_request,update_ma" + + "sk\202\323\344\223\002\\2L/v1/{pull_request.name=project" + "s/*/locations/*/repositories/*/pullReque" - + "sts/*}\022\341\001\n\020ListPullRequests\022<.google.clo" - + "ud.securesourcemanager.v1.ListPullReques" - + "tsRequest\032=.google.cloud.securesourceman" - + "ager.v1.ListPullRequestsResponse\"P\332A\006par" - + "ent\202\323\344\223\002A\022?/v1/{parent=projects/*/locati" - + "ons/*/repositories/*}/pullRequests\022\270\002\n\021U" - + "pdatePullRequest\022=.google.cloud.secureso" - + "urcemanager.v1.UpdatePullRequestRequest\032" - + "\035.google.longrunning.Operation\"\304\001\312AD\n/go" - + "ogle.cloud.securesourcemanager.v1.PullRe" - + "quest\022\021OperationMetadata\332A\030pull_request," - + "update_mask\202\323\344\223\002\\2L/v1/{pull_request.nam" - + "e=projects/*/locations/*/repositories/*/" - + "pullRequests/*}:\014pull_request\022\220\002\n\020MergeP" - + "ullRequest\022<.google.cloud.securesourcema" - + "nager.v1.MergePullRequestRequest\032\035.googl" - + "e.longrunning.Operation\"\236\001\312AD\n/google.cl" - + "oud.securesourcemanager.v1.PullRequest\022\021" - + "OperationMetadata\332A\004name\202\323\344\223\002J\"E/v1/{nam" - + "e=projects/*/locations/*/repositories/*/" - + "pullRequests/*}:merge:\001*\022\215\002\n\017OpenPullReq" - + "uest\022;.google.cloud.securesourcemanager." - + "v1.OpenPullRequestRequest\032\035.google.longr" - + "unning.Operation\"\235\001\312AD\n/google.cloud.sec" - + "uresourcemanager.v1.PullRequest\022\021Operati" - + "onMetadata\332A\004name\202\323\344\223\002I\"D/v1/{name=proje" - + "cts/*/locations/*/repositories/*/pullReq" - + "uests/*}:open:\001*\022\220\002\n\020ClosePullRequest\022<." - + "google.cloud.securesourcemanager.v1.Clos" - + "ePullRequestRequest\032\035.google.longrunning" - + ".Operation\"\236\001\312AD\n/google.cloud.securesou" - + "rcemanager.v1.PullRequest\022\021OperationMeta" - + "data\332A\004name\202\323\344\223\002J\"E/v1/{name=projects/*/" - + "locations/*/repositories/*/pullRequests/" - + "*}:close:\001*\022\205\002\n\030ListPullRequestFileDiffs" - + "\022D.google.cloud.securesourcemanager.v1.L" - + "istPullRequestFileDiffsRequest\032E.google." - + "cloud.securesourcemanager.v1.ListPullReq" - + "uestFileDiffsResponse\"\\\332A\004name\202\323\344\223\002O\022M/v" - + "1/{name=projects/*/locations/*/repositor" - + "ies/*/pullRequests/*}:listFileDiffs\022\304\001\n\t" - + "FetchTree\0225.google.cloud.securesourceman" - + "ager.v1.FetchTreeRequest\0326.google.cloud." - + "securesourcemanager.v1.FetchTreeResponse" - + "\"H\202\323\344\223\002B\022@/v1/{repository=projects/*/loc" - + "ations/*/repositories/*}:fetchTree\022\304\001\n\tF" - + "etchBlob\0225.google.cloud.securesourcemana" - + "ger.v1.FetchBlobRequest\0326.google.cloud.s" - + "ecuresourcemanager.v1.FetchBlobResponse\"" - + "H\202\323\344\223\002B\022@/v1/{repository=projects/*/loca" - + "tions/*/repositories/*}:fetchBlob\022\200\002\n\013Cr" - + "eateIssue\0227.google.cloud.securesourceman" - + "ager.v1.CreateIssueRequest\032\035.google.long" - + "running.Operation\"\230\001\312A>\n)google.cloud.se" - + "curesourcemanager.v1.Issue\022\021OperationMet" - + "adata\332A\014parent,issue\202\323\344\223\002B\"9/v1/{parent=" - + "projects/*/locations/*/repositories/*}/i" - + "ssues:\005issue\022\266\001\n\010GetIssue\0224.google.cloud" - + ".securesourcemanager.v1.GetIssueRequest\032" - + "*.google.cloud.securesourcemanager.v1.Is" - + "sue\"H\332A\004name\202\323\344\223\002;\0229/v1/{name=projects/*" - + "/locations/*/repositories/*/issues/*}\022\311\001" - + "\n\nListIssues\0226.google.cloud.securesource" - + "manager.v1.ListIssuesRequest\0327.google.cl" - + "oud.securesourcemanager.v1.ListIssuesRes" - + "ponse\"J\332A\006parent\202\323\344\223\002;\0229/v1/{parent=proj" - + "ects/*/locations/*/repositories/*}/issue" - + "s\022\213\002\n\013UpdateIssue\0227.google.cloud.secures" - + "ourcemanager.v1.UpdateIssueRequest\032\035.goo" - + "gle.longrunning.Operation\"\243\001\312A>\n)google." + + "sts/*}:\014pull_request\022\220\002\n\020MergePullReques" + + "t\022<.google.cloud.securesourcemanager.v1." + + "MergePullRequestRequest\032\035.google.longrun" + + "ning.Operation\"\236\001\312AD\n/google.cloud.secur" + + "esourcemanager.v1.PullRequest\022\021Operation" + + "Metadata\332A\004name\202\323\344\223\002J\"E/v1/{name=project" + + "s/*/locations/*/repositories/*/pullReque" + + "sts/*}:merge:\001*\022\215\002\n\017OpenPullRequest\022;.go" + + "ogle.cloud.securesourcemanager.v1.OpenPu" + + "llRequestRequest\032\035.google.longrunning.Op" + + "eration\"\235\001\312AD\n/google.cloud.securesource" + + "manager.v1.PullRequest\022\021OperationMetadat" + + "a\332A\004name\202\323\344\223\002I\"D/v1/{name=projects/*/loc" + + "ations/*/repositories/*/pullRequests/*}:" + + "open:\001*\022\220\002\n\020ClosePullRequest\022<.google.cl" + + "oud.securesourcemanager.v1.ClosePullRequ" + + "estRequest\032\035.google.longrunning.Operatio" + + "n\"\236\001\312AD\n/google.cloud.securesourcemanage" + + "r.v1.PullRequest\022\021OperationMetadata\332A\004na" + + "me\202\323\344\223\002J\"E/v1/{name=projects/*/locations" + + "/*/repositories/*/pullRequests/*}:close:" + + "\001*\022\205\002\n\030ListPullRequestFileDiffs\022D.google" + + ".cloud.securesourcemanager.v1.ListPullRe" + + "questFileDiffsRequest\032E.google.cloud.sec" + + "uresourcemanager.v1.ListPullRequestFileD" + + "iffsResponse\"\\\332A\004name\202\323\344\223\002O\022M/v1/{name=p" + + "rojects/*/locations/*/repositories/*/pul" + + "lRequests/*}:listFileDiffs\022\304\001\n\tFetchTree" + + "\0225.google.cloud.securesourcemanager.v1.F" + + "etchTreeRequest\0326.google.cloud.securesou" + + "rcemanager.v1.FetchTreeResponse\"H\202\323\344\223\002B\022" + + "@/v1/{repository=projects/*/locations/*/" + + "repositories/*}:fetchTree\022\304\001\n\tFetchBlob\022" + + "5.google.cloud.securesourcemanager.v1.Fe" + + "tchBlobRequest\0326.google.cloud.securesour" + + "cemanager.v1.FetchBlobResponse\"H\202\323\344\223\002B\022@" + + "/v1/{repository=projects/*/locations/*/r" + + "epositories/*}:fetchBlob\022\200\002\n\013CreateIssue" + + "\0227.google.cloud.securesourcemanager.v1.C" + + "reateIssueRequest\032\035.google.longrunning.O" + + "peration\"\230\001\312A>\n)google.cloud.securesourc" + + "emanager.v1.Issue\022\021OperationMetadata\332A\014p" + + "arent,issue\202\323\344\223\002B\"9/v1/{parent=projects/" + + "*/locations/*/repositories/*}/issues:\005is" + + "sue\022\266\001\n\010GetIssue\0224.google.cloud.secureso" + + "urcemanager.v1.GetIssueRequest\032*.google." + + "cloud.securesourcemanager.v1.Issue\"H\332A\004n" + + "ame\202\323\344\223\002;\0229/v1/{name=projects/*/location" + + "s/*/repositories/*/issues/*}\022\311\001\n\nListIss" + + "ues\0226.google.cloud.securesourcemanager.v" + + "1.ListIssuesRequest\0327.google.cloud.secur" + + "esourcemanager.v1.ListIssuesResponse\"J\332A" + + "\006parent\202\323\344\223\002;\0229/v1/{parent=projects/*/lo" + + "cations/*/repositories/*}/issues\022\213\002\n\013Upd" + + "ateIssue\0227.google.cloud.securesourcemana" + + "ger.v1.UpdateIssueRequest\032\035.google.longr" + + "unning.Operation\"\243\001\312A>\n)google.cloud.sec" + + "uresourcemanager.v1.Issue\022\021OperationMeta" + + "data\332A\021issue,update_mask\202\323\344\223\002H2?/v1/{iss" + + "ue.name=projects/*/locations/*/repositor" + + "ies/*/issues/*}:\005issue\022\334\001\n\013DeleteIssue\0227" + + ".google.cloud.securesourcemanager.v1.Del" + + "eteIssueRequest\032\035.google.longrunning.Ope" + + "ration\"u\312A*\n\025google.protobuf.Empty\022\021Oper" + + "ationMetadata\332A\004name\202\323\344\223\002;*9/v1/{name=pr" + + "ojects/*/locations/*/repositories/*/issu" + + "es/*}\022\365\001\n\tOpenIssue\0225.google.cloud.secur" + + "esourcemanager.v1.OpenIssueRequest\032\035.goo" + + "gle.longrunning.Operation\"\221\001\312A>\n)google." + "cloud.securesourcemanager.v1.Issue\022\021Oper" - + "ationMetadata\332A\021issue,update_mask\202\323\344\223\002H2" - + "?/v1/{issue.name=projects/*/locations/*/" - + "repositories/*/issues/*}:\005issue\022\334\001\n\013Dele" - + "teIssue\0227.google.cloud.securesourcemanag" - + "er.v1.DeleteIssueRequest\032\035.google.longru" - + "nning.Operation\"u\312A*\n\025google.protobuf.Em" - + "pty\022\021OperationMetadata\332A\004name\202\323\344\223\002;*9/v1" - + "/{name=projects/*/locations/*/repositori" - + "es/*/issues/*}\022\365\001\n\tOpenIssue\0225.google.cl" - + "oud.securesourcemanager.v1.OpenIssueRequ" - + "est\032\035.google.longrunning.Operation\"\221\001\312A>" - + "\n)google.cloud.securesourcemanager.v1.Is" - + "sue\022\021OperationMetadata\332A\004name\202\323\344\223\002C\">/v1" - + "/{name=projects/*/locations/*/repositori" - + "es/*/issues/*}:open:\001*\022\370\001\n\nCloseIssue\0226." - + "google.cloud.securesourcemanager.v1.Clos" - + "eIssueRequest\032\035.google.longrunning.Opera" - + "tion\"\222\001\312A>\n)google.cloud.securesourceman" - + "ager.v1.Issue\022\021OperationMetadata\332A\004name\202" - + "\323\344\223\002D\"?/v1/{name=projects/*/locations/*/" - + "repositories/*/issues/*}:close:\001*\022\371\001\n\025Ge" - + "tPullRequestComment\022A.google.cloud.secur" - + "esourcemanager.v1.GetPullRequestCommentR" - + "equest\0327.google.cloud.securesourcemanage" - + "r.v1.PullRequestComment\"d\332A\004name\202\323\344\223\002W\022U" - + "/v1/{name=projects/*/locations/*/reposit" - + "ories/*/pullRequests/*/pullRequestCommen" - + "ts/*}\022\214\002\n\027ListPullRequestComments\022C.goog" - + "le.cloud.securesourcemanager.v1.ListPull" - + "RequestCommentsRequest\032D.google.cloud.se" - + "curesourcemanager.v1.ListPullRequestComm" - + "entsResponse\"f\332A\006parent\202\323\344\223\002W\022U/v1/{pare" - + "nt=projects/*/locations/*/repositories/*" - + "/pullRequests/*}/pullRequestComments\022\341\002\n" - + "\030CreatePullRequestComment\022D.google.cloud" - + ".securesourcemanager.v1.CreatePullReques" - + "tCommentRequest\032\035.google.longrunning.Ope" - + "ration\"\337\001\312AK\n6google.cloud.securesourcem" - + "anager.v1.PullRequestComment\022\021OperationM" - + "etadata\332A\033parent,pull_request_comment\202\323\344" - + "\223\002m\"U/v1/{parent=projects/*/locations/*/" - + "repositories/*/pullRequests/*}/pullReque" - + "stComments:\024pull_request_comment\022\374\002\n\030Upd" - + "atePullRequestComment\022D.google.cloud.sec" - + "uresourcemanager.v1.UpdatePullRequestCom" - + "mentRequest\032\035.google.longrunning.Operati" - + "on\"\372\001\312AK\n6google.cloud.securesourcemanag" - + "er.v1.PullRequestComment\022\021OperationMetad" - + "ata\332A pull_request_comment,update_mask\202\323" - + "\344\223\002\202\0012j/v1/{pull_request_comment.name=pr" - + "ojects/*/locations/*/repositories/*/pull" - + "Requests/*/pullRequestComments/*}:\024pull_" - + "request_comment\022\223\002\n\030DeletePullRequestCom" - + "ment\022D.google.cloud.securesourcemanager." - + "v1.DeletePullRequestCommentRequest\032\035.goo" - + "gle.longrunning.Operation\"\221\001\312A*\n\025google." - + "protobuf.Empty\022\021OperationMetadata\332A\004name" - + "\202\323\344\223\002W*U/v1/{name=projects/*/locations/*" - + "/repositories/*/pullRequests/*/pullReque" - + "stComments/*}\022\312\002\n\036BatchCreatePullRequest" - + "Comments\022J.google.cloud.securesourcemana" - + "ger.v1.BatchCreatePullRequestCommentsReq" - + "uest\032\035.google.longrunning.Operation\"\274\001\312A" - + ";\n&BatchCreatePullRequestCommentsRespons" - + "e\022\021OperationMetadata\332A\017parent,requests\202\323" - + "\344\223\002f\"a/v1/{parent=projects/*/locations/*" - + "/repositories/*/pullRequests/*}/pullRequ" - + "estComments:batchCreate:\001*\022\267\002\n\032ResolvePu" - + "llRequestComments\022F.google.cloud.secures" - + "ourcemanager.v1.ResolvePullRequestCommen" - + "tsRequest\032\035.google.longrunning.Operation" - + "\"\261\001\312A7\n\"ResolvePullRequestCommentsRespon" - + "se\022\021OperationMetadata\332A\014parent,names\202\323\344\223" - + "\002b\"]/v1/{parent=projects/*/locations/*/r" - + "epositories/*/pullRequests/*}/pullReques" - + "tComments:resolve:\001*\022\277\002\n\034UnresolvePullRe" - + "questComments\022H.google.cloud.securesourc" - + "emanager.v1.UnresolvePullRequestComments" - + "Request\032\035.google.longrunning.Operation\"\265" - + "\001\312A9\n$UnresolvePullRequestCommentsRespon" - + "se\022\021OperationMetadata\332A\014parent,names\202\323\344\223" - + "\002d\"_/v1/{parent=projects/*/locations/*/r" - + "epositories/*/pullRequests/*}/pullReques" - + "tComments:unresolve:\001*\022\265\002\n\022CreateIssueCo" - + "mment\022>.google.cloud.securesourcemanager" - + ".v1.CreateIssueCommentRequest\032\035.google.l" - + "ongrunning.Operation\"\277\001\312AE\n0google.cloud" - + ".securesourcemanager.v1.IssueComment\022\021Op" - + "erationMetadata\332A\024parent,issue_comment\202\323" - + "\344\223\002Z\"I/v1/{parent=projects/*/locations/*" - + "/repositories/*/issues/*}/issueComments:" - + "\rissue_comment\022\333\001\n\017GetIssueComment\022;.goo" - + "gle.cloud.securesourcemanager.v1.GetIssu" - + "eCommentRequest\0321.google.cloud.securesou" - + "rcemanager.v1.IssueComment\"X\332A\004name\202\323\344\223\002" - + "K\022I/v1/{name=projects/*/locations/*/repo" - + "sitories/*/issues/*/issueComments/*}\022\356\001\n" - + "\021ListIssueComments\022=.google.cloud.secure" - + "sourcemanager.v1.ListIssueCommentsReques" - + "t\032>.google.cloud.securesourcemanager.v1." - + "ListIssueCommentsResponse\"Z\332A\006parent\202\323\344\223" - + "\002K\022I/v1/{parent=projects/*/locations/*/r" - + "epositories/*/issues/*}/issueComments\022\310\002" - + "\n\022UpdateIssueComment\022>.google.cloud.secu" - + "resourcemanager.v1.UpdateIssueCommentReq" - + "uest\032\035.google.longrunning.Operation\"\322\001\312A" - + "E\n0google.cloud.securesourcemanager.v1.I" - + "ssueComment\022\021OperationMetadata\332A\031issue_c" - + "omment,update_mask\202\323\344\223\002h2W/v1/{issue_com" - + "ment.name=projects/*/locations/*/reposit" - + "ories/*/issues/*/issueComments/*}:\rissue" - + "_comment\022\373\001\n\022DeleteIssueComment\022>.google" - + ".cloud.securesourcemanager.v1.DeleteIssu" - + "eCommentRequest\032\035.google.longrunning.Ope" - + "ration\"\205\001\312A*\n\025google.protobuf.Empty\022\021Ope" - + "rationMetadata\332A\004name\202\323\344\223\002K*I/v1/{name=p" - + "rojects/*/locations/*/repositories/*/iss" - + "ues/*/issueComments/*}\032V\312A\"securesourcem" - + "anager.googleapis.com\322A.https://www.goog" - + "leapis.com/auth/cloud-platformB\351\004\n\'com.g" - + "oogle.cloud.securesourcemanager.v1B\030Secu" - + "reSourceManagerProtoP\001ZYcloud.google.com" - + "/go/securesourcemanager/apiv1/securesour" - + "cemanagerpb;securesourcemanagerpb\252\002#Goog" - + "le.Cloud.SecureSourceManager.V1\312\002#Google" - + "\\Cloud\\SecureSourceManager\\V1\352\002&Google::" - + "Cloud::SecureSourceManager::V1\352Ax\n!cloud" - + "kms.googleapis.com/CryptoKey\022Sprojects/{" - + "project}/locations/{location}/keyRings/{" - + "key_ring}/cryptoKeys/{crypto_key}\352A\\\n\037pr" - + "ivateca.googleapis.com/CaPool\0229projects/" - + "{project}/locations/{location}/caPools/{" - + "ca_pool}\352Aw\n(compute.googleapis.com/Serv" - + "iceAttachment\022Kprojects/{project}/region" - + "s/{region}/serviceAttachments/{service_a" - + "ttachment}b\006proto3" + + "ationMetadata\332A\004name\202\323\344\223\002C\">/v1/{name=pr" + + "ojects/*/locations/*/repositories/*/issu" + + "es/*}:open:\001*\022\370\001\n\nCloseIssue\0226.google.cl" + + "oud.securesourcemanager.v1.CloseIssueReq" + + "uest\032\035.google.longrunning.Operation\"\222\001\312A" + + ">\n)google.cloud.securesourcemanager.v1.I" + + "ssue\022\021OperationMetadata\332A\004name\202\323\344\223\002D\"?/v" + + "1/{name=projects/*/locations/*/repositor" + + "ies/*/issues/*}:close:\001*\022\371\001\n\025GetPullRequ" + + "estComment\022A.google.cloud.securesourcema" + + "nager.v1.GetPullRequestCommentRequest\0327." + + "google.cloud.securesourcemanager.v1.Pull" + + "RequestComment\"d\332A\004name\202\323\344\223\002W\022U/v1/{name" + + "=projects/*/locations/*/repositories/*/p" + + "ullRequests/*/pullRequestComments/*}\022\214\002\n" + + "\027ListPullRequestComments\022C.google.cloud." + + "securesourcemanager.v1.ListPullRequestCo" + + "mmentsRequest\032D.google.cloud.securesourc" + + "emanager.v1.ListPullRequestCommentsRespo" + + "nse\"f\332A\006parent\202\323\344\223\002W\022U/v1/{parent=projec" + + "ts/*/locations/*/repositories/*/pullRequ" + + "ests/*}/pullRequestComments\022\341\002\n\030CreatePu" + + "llRequestComment\022D.google.cloud.secureso" + + "urcemanager.v1.CreatePullRequestCommentR" + + "equest\032\035.google.longrunning.Operation\"\337\001" + + "\312AK\n6google.cloud.securesourcemanager.v1" + + ".PullRequestComment\022\021OperationMetadata\332A" + + "\033parent,pull_request_comment\202\323\344\223\002m\"U/v1/" + + "{parent=projects/*/locations/*/repositor" + + "ies/*/pullRequests/*}/pullRequestComment" + + "s:\024pull_request_comment\022\374\002\n\030UpdatePullRe" + + "questComment\022D.google.cloud.securesource" + + "manager.v1.UpdatePullRequestCommentReque" + + "st\032\035.google.longrunning.Operation\"\372\001\312AK\n" + + "6google.cloud.securesourcemanager.v1.Pul" + + "lRequestComment\022\021OperationMetadata\332A pul" + + "l_request_comment,update_mask\202\323\344\223\002\202\0012j/v" + + "1/{pull_request_comment.name=projects/*/" + + "locations/*/repositories/*/pullRequests/" + + "*/pullRequestComments/*}:\024pull_request_c" + + "omment\022\223\002\n\030DeletePullRequestComment\022D.go" + + "ogle.cloud.securesourcemanager.v1.Delete" + + "PullRequestCommentRequest\032\035.google.longr" + + "unning.Operation\"\221\001\312A*\n\025google.protobuf." + + "Empty\022\021OperationMetadata\332A\004name\202\323\344\223\002W*U/" + + "v1/{name=projects/*/locations/*/reposito" + + "ries/*/pullRequests/*/pullRequestComment" + + "s/*}\022\312\002\n\036BatchCreatePullRequestComments\022" + + "J.google.cloud.securesourcemanager.v1.Ba" + + "tchCreatePullRequestCommentsRequest\032\035.go" + + "ogle.longrunning.Operation\"\274\001\312A;\n&BatchC" + + "reatePullRequestCommentsResponse\022\021Operat" + + "ionMetadata\332A\017parent,requests\202\323\344\223\002f\"a/v1" + + "/{parent=projects/*/locations/*/reposito" + + "ries/*/pullRequests/*}/pullRequestCommen" + + "ts:batchCreate:\001*\022\267\002\n\032ResolvePullRequest" + + "Comments\022F.google.cloud.securesourcemana" + + "ger.v1.ResolvePullRequestCommentsRequest" + + "\032\035.google.longrunning.Operation\"\261\001\312A7\n\"R" + + "esolvePullRequestCommentsResponse\022\021Opera" + + "tionMetadata\332A\014parent,names\202\323\344\223\002b\"]/v1/{" + + "parent=projects/*/locations/*/repositori" + + "es/*/pullRequests/*}/pullRequestComments" + + ":resolve:\001*\022\277\002\n\034UnresolvePullRequestComm" + + "ents\022H.google.cloud.securesourcemanager." + + "v1.UnresolvePullRequestCommentsRequest\032\035" + + ".google.longrunning.Operation\"\265\001\312A9\n$Unr" + + "esolvePullRequestCommentsResponse\022\021Opera" + + "tionMetadata\332A\014parent,names\202\323\344\223\002d\"_/v1/{" + + "parent=projects/*/locations/*/repositori" + + "es/*/pullRequests/*}/pullRequestComments" + + ":unresolve:\001*\022\265\002\n\022CreateIssueComment\022>.g" + + "oogle.cloud.securesourcemanager.v1.Creat" + + "eIssueCommentRequest\032\035.google.longrunnin" + + "g.Operation\"\277\001\312AE\n0google.cloud.secureso" + + "urcemanager.v1.IssueComment\022\021OperationMe" + + "tadata\332A\024parent,issue_comment\202\323\344\223\002Z\"I/v1" + + "/{parent=projects/*/locations/*/reposito" + + "ries/*/issues/*}/issueComments:\rissue_co" + + "mment\022\333\001\n\017GetIssueComment\022;.google.cloud" + + ".securesourcemanager.v1.GetIssueCommentR" + + "equest\0321.google.cloud.securesourcemanage" + + "r.v1.IssueComment\"X\332A\004name\202\323\344\223\002K\022I/v1/{n" + + "ame=projects/*/locations/*/repositories/" + + "*/issues/*/issueComments/*}\022\356\001\n\021ListIssu" + + "eComments\022=.google.cloud.securesourceman" + + "ager.v1.ListIssueCommentsRequest\032>.googl" + + "e.cloud.securesourcemanager.v1.ListIssue" + + "CommentsResponse\"Z\332A\006parent\202\323\344\223\002K\022I/v1/{" + + "parent=projects/*/locations/*/repositori" + + "es/*/issues/*}/issueComments\022\310\002\n\022UpdateI" + + "ssueComment\022>.google.cloud.securesourcem" + + "anager.v1.UpdateIssueCommentRequest\032\035.go" + + "ogle.longrunning.Operation\"\322\001\312AE\n0google" + + ".cloud.securesourcemanager.v1.IssueComme" + + "nt\022\021OperationMetadata\332A\031issue_comment,up" + + "date_mask\202\323\344\223\002h2W/v1/{issue_comment.name" + + "=projects/*/locations/*/repositories/*/i" + + "ssues/*/issueComments/*}:\rissue_comment\022" + + "\373\001\n\022DeleteIssueComment\022>.google.cloud.se" + + "curesourcemanager.v1.DeleteIssueCommentR" + + "equest\032\035.google.longrunning.Operation\"\205\001" + + "\312A*\n\025google.protobuf.Empty\022\021OperationMet" + + "adata\332A\004name\202\323\344\223\002K*I/v1/{name=projects/*" + + "/locations/*/repositories/*/issues/*/iss" + + "ueComments/*}\032V\312A\"securesourcemanager.go" + + "ogleapis.com\322A.https://www.googleapis.co" + + "m/auth/cloud-platformB\271\006\n\'com.google.clo" + + "ud.securesourcemanager.v1B\030SecureSourceM" + + "anagerProtoP\001ZYcloud.google.com/go/secur" + + "esourcemanager/apiv1/securesourcemanager" + + "pb;securesourcemanagerpb\252\002#Google.Cloud." + + "SecureSourceManager.V1\312\002#Google\\Cloud\\Se" + + "cureSourceManager\\V1\352\002&Google::Cloud::Se" + + "cureSourceManager::V1\352Ax\n!cloudkms.googl" + + "eapis.com/CryptoKey\022Sprojects/{project}/" + + "locations/{location}/keyRings/{key_ring}" + + "/cryptoKeys/{crypto_key}\352A\\\n\037privateca.g" + + "oogleapis.com/CaPool\0229projects/{project}" + + "/locations/{location}/caPools/{ca_pool}\352" + + "AY\n!iam.googleapis.com/ServiceAccount\0224p" + + "rojects/{project}/serviceAccounts/{servi" + + "ce_account}\352Aw\n(compute.googleapis.com/S" + + "erviceAttachment\022Kprojects/{project}/reg" + + "ions/{region}/serviceAttachments/{servic" + + "e_attachment}\352Aq\n\"dlp.googleapis.com/Ins" + + "pectTemplate\022Kprojects/{project}/locatio" + + "ns/{location}/inspectTemplates/{inspect_" + + "template}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1370,6 +1396,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Etag", "Uris", "InitialConfig", + "ServiceAccount", + "ScanConfig", }); internal_static_google_cloud_securesourcemanager_v1_Repository_URIs_descriptor = internal_static_google_cloud_securesourcemanager_v1_Repository_descriptor.getNestedType(0); @@ -1387,6 +1415,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "DefaultBranch", "Gitignores", "License", "Readme", }); + internal_static_google_cloud_securesourcemanager_v1_Repository_ScanConfig_descriptor = + internal_static_google_cloud_securesourcemanager_v1_Repository_descriptor.getNestedType(2); + internal_static_google_cloud_securesourcemanager_v1_Repository_ScanConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_securesourcemanager_v1_Repository_ScanConfig_descriptor, + new java.lang.String[] { + "SecretScanConfig", + }); + internal_static_google_cloud_securesourcemanager_v1_Repository_ScanConfig_SecretScanConfig_descriptor = + internal_static_google_cloud_securesourcemanager_v1_Repository_ScanConfig_descriptor + .getNestedType(0); + internal_static_google_cloud_securesourcemanager_v1_Repository_ScanConfig_SecretScanConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_securesourcemanager_v1_Repository_ScanConfig_SecretScanConfig_descriptor, + new java.lang.String[] { + "Enabled", "InspectTemplate", + }); internal_static_google_cloud_securesourcemanager_v1_Hook_descriptor = getDescriptor().getMessageType(2); internal_static_google_cloud_securesourcemanager_v1_Hook_fieldAccessorTable = diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/proto/google/cloud/securesourcemanager/v1/secure_source_manager.proto b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/proto/google/cloud/securesourcemanager/v1/secure_source_manager.proto index 1189e930e778..ea2218a4673a 100644 --- a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/proto/google/cloud/securesourcemanager/v1/secure_source_manager.proto +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/proto/google/cloud/securesourcemanager/v1/secure_source_manager.proto @@ -43,10 +43,18 @@ option (google.api.resource_definition) = { type: "privateca.googleapis.com/CaPool" pattern: "projects/{project}/locations/{location}/caPools/{ca_pool}" }; +option (google.api.resource_definition) = { + type: "iam.googleapis.com/ServiceAccount" + pattern: "projects/{project}/serviceAccounts/{service_account}" +}; option (google.api.resource_definition) = { type: "compute.googleapis.com/ServiceAttachment" pattern: "projects/{project}/regions/{region}/serviceAttachments/{service_attachment}" }; +option (google.api.resource_definition) = { + type: "dlp.googleapis.com/InspectTemplate" + pattern: "projects/{project}/locations/{location}/inspectTemplates/{inspect_template}" +}; // Secure Source Manager API // @@ -1018,6 +1026,27 @@ message Repository { string readme = 4; } + // Configuration for scanning. + message ScanConfig { + // Configuration for secret scanning. + message SecretScanConfig { + // Optional. Enables secret scanning for the repository. + bool enabled = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The DLP inspect template to use for secret scanning. + string inspect_template = 2 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "dlp.googleapis.com/InspectTemplate" + } + ]; + } + + // Optional. Configuration for secret scanning. + SecretScanConfig secret_scan_config = 1 + [(google.api.field_behavior) = OPTIONAL]; + } + // Identifier. A unique identifier for a repository. The name should be of the // format: // `projects/{project}/locations/{location_id}/repositories/{repository_id}` @@ -1064,6 +1093,17 @@ message Repository { // Input only. Initial configurations for the repository. InitialConfig initial_config = 10 [(google.api.field_behavior) = INPUT_ONLY]; + + // Optional. Repository level service account (BYOSA). + string service_account = 11 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "iam.googleapis.com/ServiceAccount" + } + ]; + + // Optional. Provides configuration for scanning. + ScanConfig scan_config = 13 [(google.api.field_behavior) = OPTIONAL]; } // Metadata of a Secure Source Manager Hook.