From ea4ee5921699264c967443a0ba851e97e81f0a63 Mon Sep 17 00:00:00 2001 From: cloud-java-bot Date: Wed, 8 Jul 2026 05:33:40 +0000 Subject: [PATCH 1/2] chore: update googleapis commitish to ea20a7c --- librarian.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/librarian.yaml b/librarian.yaml index b5f4c77bc8e3..a77d4c6ca71a 100644 --- a/librarian.yaml +++ b/librarian.yaml @@ -16,8 +16,8 @@ version: v0.24.1-0.20260707150039-db37cc1a8f59 repo: googleapis/google-cloud-java sources: googleapis: - commit: 28476cc22e6b39ecaa1e171391b623f0ecb8cb89 - sha256: c17ed78d71a7cd7614e9cbebb91a1b8d6b26f75cb74a5d6f607ff2e243db3187 + commit: ea20a7cf3abac294a5ee22d418d04623925c09bb + sha256: f75ce7b619dc48c1ec22ca3e574b70b9bca331c0765a6f69a17719fafda07791 showcase: commit: f97fd357084b9e85ef5dd02ba084551c3f85191c sha256: b5d293831e6895ca139d9a0a92eec75a82e73398978b140af8f7c5e91c7c969a From 48b9afdf3bbc8b2b8d075f05008d7447137cfc18 Mon Sep 17 00:00:00 2001 From: cloud-java-bot Date: Wed, 8 Jul 2026 05:33:41 +0000 Subject: [PATCH 2/2] chore: generate libraries --- gapic-libraries-bom/pom.xml | 2 +- java-admanager/.repo-metadata.json | 2 +- java-admanager/README.md | 10 +- .../v1/stub/AdBreakServiceStubSettings.java | 2 +- .../AdReviewCenterAdServiceStubSettings.java | 2 +- .../v1/stub/AdUnitServiceStubSettings.java | 2 +- .../stub/ApplicationServiceStubSettings.java | 2 +- .../AudienceSegmentServiceStubSettings.java | 2 +- .../BandwidthGroupServiceStubSettings.java | 2 +- .../BrowserLanguageServiceStubSettings.java | 2 +- .../v1/stub/BrowserServiceStubSettings.java | 2 +- .../CmsMetadataKeyServiceStubSettings.java | 2 +- .../CmsMetadataValueServiceStubSettings.java | 2 +- .../v1/stub/CompanyServiceStubSettings.java | 2 +- .../v1/stub/ContactServiceStubSettings.java | 2 +- .../ContentBundleServiceStubSettings.java | 2 +- .../stub/ContentLabelServiceStubSettings.java | 2 +- .../v1/stub/ContentServiceStubSettings.java | 2 +- .../CreativeTemplateServiceStubSettings.java | 2 +- .../stub/CustomFieldServiceStubSettings.java | 2 +- ...CustomTargetingKeyServiceStubSettings.java | 2 +- ...stomTargetingValueServiceStubSettings.java | 2 +- .../DeviceCapabilityServiceStubSettings.java | 2 +- .../DeviceCategoryServiceStubSettings.java | 2 +- ...DeviceManufacturerServiceStubSettings.java | 2 +- ...titySignalsMappingServiceStubSettings.java | 2 +- .../v1/stub/GeoTargetServiceStubSettings.java | 2 +- .../v1/stub/LabelServiceStubSettings.java | 2 +- .../v1/stub/LineItemServiceStubSettings.java | 2 +- .../stub/LinkedDeviceServiceStubSettings.java | 2 +- .../stub/McmEarningsServiceStubSettings.java | 2 +- .../MobileCarrierServiceStubSettings.java | 2 +- .../stub/MobileDeviceServiceStubSettings.java | 2 +- ...bileDeviceSubmodelServiceStubSettings.java | 2 +- .../v1/stub/NetworkServiceStubSettings.java | 2 +- .../OperatingSystemServiceStubSettings.java | 2 +- ...atingSystemVersionServiceStubSettings.java | 2 +- .../v1/stub/OrderServiceStubSettings.java | 2 +- .../v1/stub/PlacementServiceStubSettings.java | 2 +- ...PrivateAuctionDealServiceStubSettings.java | 2 +- .../PrivateAuctionServiceStubSettings.java | 2 +- .../ProgrammaticBuyerServiceStubSettings.java | 2 +- .../v1/stub/ReportServiceStubSettings.java | 2 +- ...ichMediaAdsCompanyServiceStubSettings.java | 2 +- .../v1/stub/RoleServiceStubSettings.java | 2 +- .../v1/stub/SiteServiceStubSettings.java | 2 +- .../TaxonomyCategoryServiceStubSettings.java | 2 +- .../v1/stub/TeamServiceStubSettings.java | 2 +- .../v1/stub/UserServiceStubSettings.java | 2 +- .../reflect-config.json | 9 + .../reflect-config.json | 9 + .../aiplatform/v1/ReasoningEngineProto.java | 81 +- .../aiplatform/v1/ReasoningEngineSpec.java | 378 ++ .../v1/ReasoningEngineSpecOrBuilder.java | 36 + .../aiplatform/v1/reasoning_engine.proto | 22 + .../v1beta1/ReasoningEngineProto.java | 133 +- .../v1beta1/ReasoningEngineSpec.java | 382 ++ .../v1beta1/ReasoningEngineSpecOrBuilder.java | 36 + .../aiplatform/v1beta1/reasoning_engine.proto | 22 + .../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 +- .../cloud/ces/v1/AgentServiceClient.java | 18 +- .../cloud/ces/v1/SessionServiceClient.java | 18 +- .../cloud/ces/v1/ToolServiceClient.java | 23 +- .../cloud/ces/v1/WidgetServiceClient.java | 18 +- .../com/google/cloud/ces/v1/package-info.java | 1 + .../ces/v1beta/EvaluationServiceClient.java | 3 + .../reflect-config.json | 378 ++ .../reflect-config.json | 117 + .../v1/AgentServiceClientHttpJsonTest.java | 73 + .../cloud/ces/v1/AgentServiceClientTest.java | 57 + .../ces/v1/ToolServiceClientHttpJsonTest.java | 6 + .../cloud/ces/v1/ToolServiceClientTest.java | 9 + .../AgentServiceClientHttpJsonTest.java | 27 + .../ces/v1beta/AgentServiceClientTest.java | 21 + .../java/com/google/cloud/ces/v1/Agent.java | 549 ++ .../com/google/cloud/ces/v1/AgentCard.java | 2166 ++++++ .../cloud/ces/v1/AgentCardOrBuilder.java | 252 + .../google/cloud/ces/v1/AgentCardProto.java | 144 + .../google/cloud/ces/v1/AgentInterface.java | 1207 ++++ .../cloud/ces/v1/AgentInterfaceOrBuilder.java | 144 + .../google/cloud/ces/v1/AgentOrBuilder.java | 62 + .../com/google/cloud/ces/v1/AgentProto.java | 28 +- .../com/google/cloud/ces/v1/AgentSkill.java | 2156 ++++++ .../cloud/ces/v1/AgentSkillOrBuilder.java | 330 + .../cloud/ces/v1/AmbientSoundConfig.java | 18 +- .../ces/v1/AmbientSoundConfigOrBuilder.java | 6 +- .../java/com/google/cloud/ces/v1/App.java | 615 +- .../com/google/cloud/ces/v1/AppOrBuilder.java | 101 + .../com/google/cloud/ces/v1/AppProto.java | 219 +- .../google/cloud/ces/v1/BargeInConfig.java | 40 +- .../cloud/ces/v1/BargeInConfigOrBuilder.java | 10 +- .../google/cloud/ces/v1/ChannelProfile.java | 5816 ++++++++++++---- .../cloud/ces/v1/ChannelProfileOrBuilder.java | 86 + .../cloud/ces/v1/ChannelProfileProto.java | 124 +- .../com/google/cloud/ces/v1/Citations.java | 110 + .../com/google/cloud/ces/v1/CommonProto.java | 86 +- .../com/google/cloud/ces/v1/Conversation.java | 86 +- .../ces/v1/ConversationLoggingSettings.java | 328 +- .../ConversationLoggingSettingsOrBuilder.java | 43 + .../cloud/ces/v1/ConversationOrBuilder.java | 4 +- .../cloud/ces/v1/ConversationProto.java | 29 +- .../com/google/cloud/ces/v1/Deployment.java | 954 +++ .../cloud/ces/v1/DeploymentOrBuilder.java | 135 + .../cloud/ces/v1/ErrorHandlingSettings.java | 2285 ++++++- .../v1/ErrorHandlingSettingsOrBuilder.java | 91 + .../ces/v1/EvaluationMetricsThresholds.java | 14 +- .../EvaluationMetricsThresholdsOrBuilder.java | 4 +- .../cloud/ces/v1/ExecuteToolRequest.java | 329 + .../ces/v1/ExecuteToolRequestOrBuilder.java | 49 + .../cloud/ces/v1/ExecuteToolResponse.java | 582 ++ .../ces/v1/ExecuteToolResponseOrBuilder.java | 77 + .../google/cloud/ces/v1/ExperimentConfig.java | 3228 +++++++++ .../ces/v1/ExperimentConfigOrBuilder.java | 71 + .../cloud/ces/v1/InstagramCredentials.java | 784 +++ .../ces/v1/InstagramCredentialsOrBuilder.java | 80 + .../google/cloud/ces/v1/LanguageSettings.java | 14 +- .../ces/v1/LanguageSettingsOrBuilder.java | 4 +- .../google/cloud/ces/v1/LoggingSettings.java | 1046 ++- .../ces/v1/LoggingSettingsOrBuilder.java | 130 +- .../java/com/google/cloud/ces/v1/McpTool.java | 696 +- .../cloud/ces/v1/McpToolDefinition.java | 1227 ++++ .../ces/v1/McpToolDefinitionOrBuilder.java | 142 + .../google/cloud/ces/v1/McpToolOrBuilder.java | 60 + .../google/cloud/ces/v1/McpToolOverride.java | 1337 ++++ .../ces/v1/McpToolOverrideOrBuilder.java | 161 + .../com/google/cloud/ces/v1/McpToolProto.java | 28 +- .../com/google/cloud/ces/v1/McpToolset.java | 612 ++ .../cloud/ces/v1/McpToolsetOrBuilder.java | 76 + .../google/cloud/ces/v1/McpToolsetProto.java | 71 +- .../com/google/cloud/ces/v1/MockConfig.java | 1333 ++++ .../cloud/ces/v1/MockConfigOrBuilder.java | 126 + .../google/cloud/ces/v1/MockedToolCall.java | 1950 ++++++ .../cloud/ces/v1/MockedToolCallOrBuilder.java | 246 + .../com/google/cloud/ces/v1/MocksProto.java | 103 + .../google/cloud/ces/v1/PythonFunction.java | 329 +- .../cloud/ces/v1/PythonFunctionOrBuilder.java | 43 + .../cloud/ces/v1/PythonFunctionProto.java | 15 +- .../google/cloud/ces/v1/RemoteAgentTool.java | 1092 +++ .../ces/v1/RemoteAgentToolOrBuilder.java | 120 + .../cloud/ces/v1/RetrieveToolsRequest.java | 105 + .../ces/v1/RetrieveToolsRequestOrBuilder.java | 15 + .../google/cloud/ces/v1/SessionOutput.java | 510 +- .../cloud/ces/v1/SessionOutputOrBuilder.java | 55 + .../cloud/ces/v1/SessionServiceProto.java | 158 +- .../cloud/ces/v1/SynthesizeSpeechConfig.java | 636 +- .../v1/SynthesizeSpeechConfigOrBuilder.java | 96 + .../java/com/google/cloud/ces/v1/Tool.java | 773 ++- .../google/cloud/ces/v1/ToolOrBuilder.java | 86 + .../com/google/cloud/ces/v1/ToolProto.java | 65 +- .../google/cloud/ces/v1/ToolServiceProto.java | 107 +- .../java/com/google/cloud/ces/v1/Toolset.java | 399 +- .../google/cloud/ces/v1/ToolsetOrBuilder.java | 43 + .../com/google/cloud/ces/v1/ToolsetProto.java | 25 +- .../google/cloud/ces/v1/VpcScSettings.java | 746 +++ .../cloud/ces/v1/VpcScSettingsOrBuilder.java | 98 + .../cloud/ces/v1/WhatsAppCredentials.java | 1540 +++++ .../ces/v1/WhatsAppCredentialsOrBuilder.java | 184 + .../com/google/cloud/ces/v1/WidgetTool.java | 1582 ++++- .../cloud/ces/v1/WidgetToolOrBuilder.java | 43 + .../google/cloud/ces/v1/WidgetToolProto.java | 47 +- .../proto/google/cloud/ces/v1/agent.proto | 10 + .../google/cloud/ces/v1/agent_card.proto | 109 + .../main/proto/google/cloud/ces/v1/app.proto | 104 +- .../proto/google/cloud/ces/v1/common.proto | 52 + .../google/cloud/ces/v1/conversation.proto | 19 +- .../google/cloud/ces/v1/deployment.proto | 103 + .../proto/google/cloud/ces/v1/mcp_tool.proto | 25 + .../google/cloud/ces/v1/mcp_toolset.proto | 43 + .../proto/google/cloud/ces/v1/mocks.proto | 65 + .../google/cloud/ces/v1/python_function.proto | 5 + .../google/cloud/ces/v1/session_service.proto | 33 + .../main/proto/google/cloud/ces/v1/tool.proto | 12 + .../google/cloud/ces/v1/tool_service.proto | 19 + .../proto/google/cloud/ces/v1/toolset.proto | 7 + .../google/cloud/ces/v1/widget_tool.proto | 35 + .../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 + .../executetool/AsyncExecuteTool.java | 2 + .../executetool/SyncExecuteTool.java | 2 + .../retrievetools/AsyncRetrieveTools.java | 1 + .../retrievetools/SyncRetrieveTools.java | 1 + .../runevaluation/AsyncRunEvaluation.java | 2 + .../runevaluation/AsyncRunEvaluationLRO.java | 2 + .../runevaluation/SyncRunEvaluation.java | 2 + .../com/google/chat/v1/ChatServiceClient.java | 615 ++ .../google/chat/v1/ChatServiceSettings.java | 53 + .../com/google/chat/v1/gapic_metadata.json | 15 + .../google/chat/v1/stub/ChatServiceStub.java | 26 + .../chat/v1/stub/ChatServiceStubSettings.java | 126 + .../chat/v1/stub/GrpcChatServiceStub.java | 163 + .../chat/v1/stub/HttpJsonChatServiceStub.java | 306 + .../com.google.chat.v1/reflect-config.json | 153 + .../v1/ChatServiceClientHttpJsonTest.java | 292 + .../google/chat/v1/ChatServiceClientTest.java | 253 + .../google/chat/v1/MockChatServiceImpl.java | 104 + .../com/google/chat/v1/ChatServiceGrpc.java | 848 ++- .../java/com/google/chat/v1/Availability.java | 1769 +++++ .../com/google/chat/v1/AvailabilityName.java | 168 + .../google/chat/v1/AvailabilityOrBuilder.java | 185 + .../com/google/chat/v1/AvailabilityProto.java | 231 + .../com/google/chat/v1/ChatServiceProto.java | 443 +- .../java/com/google/chat/v1/CustomStatus.java | 1595 +++++ .../google/chat/v1/CustomStatusOrBuilder.java | 175 + .../google/chat/v1/DoNotDisturbMetadata.java | 735 +++ .../v1/DoNotDisturbMetadataOrBuilder.java | 74 + .../chat/v1/GetAvailabilityRequest.java | 665 ++ .../v1/GetAvailabilityRequestOrBuilder.java | 74 + .../google/chat/v1/MarkAsActiveRequest.java | 1369 ++++ .../chat/v1/MarkAsActiveRequestOrBuilder.java | 154 + .../com/google/chat/v1/MarkAsAwayRequest.java | 655 ++ .../chat/v1/MarkAsAwayRequestOrBuilder.java | 72 + .../chat/v1/MarkAsDoNotDisturbRequest.java | 1346 ++++ .../MarkAsDoNotDisturbRequestOrBuilder.java | 148 + .../chat/v1/UpdateAvailabilityRequest.java | 1020 +++ .../UpdateAvailabilityRequestOrBuilder.java | 111 + .../proto/google/chat/v1/availability.proto | 232 + .../proto/google/chat/v1/chat_service.proto | 105 + .../getavailability/AsyncGetAvailability.java | 50 + .../getavailability/SyncGetAvailability.java | 46 + .../SyncGetAvailabilityAvailabilityname.java | 42 + .../SyncGetAvailabilityString.java | 42 + .../markasactive/AsyncMarkAsActive.java | 49 + .../markasactive/SyncMarkAsActive.java | 46 + .../markasaway/AsyncMarkAsAway.java | 47 + .../markasaway/SyncMarkAsAway.java | 44 + .../AsyncMarkAsDoNotDisturb.java | 50 + .../SyncMarkAsDoNotDisturb.java | 46 + .../AsyncUpdateAvailability.java | 51 + .../SyncUpdateAvailability.java | 47 + ...dateAvailabilityAvailabilityFieldmask.java | 43 + .../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 + java-datamanager/.repo-metadata.json | 2 +- java-datamanager/README.md | 10 +- .../v1/stub/IngestionServiceStubSettings.java | 2 +- ...ketingDataInsightsServiceStubSettings.java | 2 +- .../stub/PartnerLinkServiceStubSettings.java | 2 +- ...rListDirectLicenseServiceStubSettings.java | 2 +- ...rListGlobalLicenseServiceStubSettings.java | 2 +- .../v1/stub/UserListServiceStubSettings.java | 2 +- .../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 +- .../health/v4/EndpointAuthorization.java | 4 +- .../health/v4/data_subscription_service.proto | 2 +- .../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 + .../memorystore/v1/MemorystoreClient.java | 346 +- .../memorystore/v1/MemorystoreSettings.java | 44 + .../cloud/memorystore/v1/gapic_metadata.json | 6 + .../v1/stub/GrpcMemorystoreStub.java | 92 + .../v1/stub/HttpJsonMemorystoreStub.java | 154 + .../memorystore/v1/stub/MemorystoreStub.java | 20 + .../v1/stub/MemorystoreStubSettings.java | 140 +- .../reflect-config.json | 81 + .../v1/MemorystoreClientHttpJsonTest.java | 282 + .../memorystore/v1/MemorystoreClientTest.java | 274 + .../memorystore/v1/MockMemorystoreImpl.java | 42 + .../cloud/memorystore/v1/MemorystoreGrpc.java | 303 + .../memorystore/v1/BackupInstanceRequest.java | 4 +- .../memorystore/v1/DeleteBackupRequest.java | 4 +- .../memorystore/v1/DiscoveryEndpoint.java | 14 +- .../v1/DiscoveryEndpointOrBuilder.java | 4 +- .../memorystore/v1/ExportBackupRequest.java | 4 +- .../v1/FinishMigrationRequest.java | 723 ++ .../v1/FinishMigrationRequestOrBuilder.java | 75 + .../v1/GetBackupCollectionRequest.java | 4 +- .../memorystore/v1/GetBackupRequest.java | 4 +- .../v1/GetCertificateAuthorityRequest.java | 4 +- ...edRegionalCertificateAuthorityRequest.java | 6 +- .../google/cloud/memorystore/v1/Instance.java | 383 +- .../memorystore/v1/InstanceOrBuilder.java | 57 +- .../v1/ListBackupCollectionsRequest.java | 26 +- ...ListBackupCollectionsRequestOrBuilder.java | 6 +- .../v1/ListBackupCollectionsResponse.java | 4 +- .../memorystore/v1/ListBackupsRequest.java | 26 +- .../v1/ListBackupsRequestOrBuilder.java | 6 +- .../memorystore/v1/ListBackupsResponse.java | 4 +- .../memorystore/v1/ListInstancesResponse.java | 4 +- .../cloud/memorystore/v1/MigrationConfig.java | 1344 ++++ .../v1/MigrationConfigOrBuilder.java | 121 + .../memorystore/v1/PscAutoConnection.java | 14 +- .../v1/PscAutoConnectionOrBuilder.java | 4 +- .../cloud/memorystore/v1/PscConnection.java | 14 +- .../v1/PscConnectionOrBuilder.java | 4 +- .../memorystore/v1/SelfManagedSource.java | 995 +++ .../v1/SelfManagedSourceOrBuilder.java | 125 + .../memorystore/v1/StartMigrationRequest.java | 1045 +++ .../v1/StartMigrationRequestOrBuilder.java | 108 + .../cloud/memorystore/v1/V1mainProto.java | 586 +- .../cloud/memorystore/v1/memorystore.proto | 217 +- .../finishmigration/AsyncFinishMigration.java | 50 + .../AsyncFinishMigrationLRO.java | 52 + .../finishmigration/SyncFinishMigration.java | 47 + ...yncFinishMigrationInstancenameBoolean.java | 43 + .../SyncFinishMigrationStringBoolean.java | 43 + .../startmigration/AsyncStartMigration.java | 49 + .../AsyncStartMigrationLRO.java | 51 + .../startmigration/SyncStartMigration.java | 46 + 520 files changed, 135066 insertions(+), 7346 deletions(-) create mode 100644 java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentCard.java create mode 100644 java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentCardOrBuilder.java create mode 100644 java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentCardProto.java create mode 100644 java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentInterface.java create mode 100644 java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentInterfaceOrBuilder.java create mode 100644 java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentSkill.java create mode 100644 java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentSkillOrBuilder.java create mode 100644 java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExperimentConfig.java create mode 100644 java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExperimentConfigOrBuilder.java create mode 100644 java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/InstagramCredentials.java create mode 100644 java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/InstagramCredentialsOrBuilder.java create mode 100644 java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolDefinition.java create mode 100644 java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolDefinitionOrBuilder.java create mode 100644 java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolOverride.java create mode 100644 java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolOverrideOrBuilder.java create mode 100644 java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/MockConfig.java create mode 100644 java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/MockConfigOrBuilder.java create mode 100644 java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/MockedToolCall.java create mode 100644 java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/MockedToolCallOrBuilder.java create mode 100644 java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/MocksProto.java create mode 100644 java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RemoteAgentTool.java create mode 100644 java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RemoteAgentToolOrBuilder.java create mode 100644 java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/VpcScSettings.java create mode 100644 java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/VpcScSettingsOrBuilder.java create mode 100644 java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/WhatsAppCredentials.java create mode 100644 java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/WhatsAppCredentialsOrBuilder.java create mode 100644 java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/agent_card.proto create mode 100644 java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/mocks.proto 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-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Availability.java create mode 100644 java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/AvailabilityName.java create mode 100644 java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/AvailabilityOrBuilder.java create mode 100644 java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/AvailabilityProto.java create mode 100644 java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CustomStatus.java create mode 100644 java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CustomStatusOrBuilder.java create mode 100644 java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/DoNotDisturbMetadata.java create mode 100644 java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/DoNotDisturbMetadataOrBuilder.java create mode 100644 java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/GetAvailabilityRequest.java create mode 100644 java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/GetAvailabilityRequestOrBuilder.java create mode 100644 java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MarkAsActiveRequest.java create mode 100644 java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MarkAsActiveRequestOrBuilder.java create mode 100644 java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MarkAsAwayRequest.java create mode 100644 java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MarkAsAwayRequestOrBuilder.java create mode 100644 java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MarkAsDoNotDisturbRequest.java create mode 100644 java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MarkAsDoNotDisturbRequestOrBuilder.java create mode 100644 java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/UpdateAvailabilityRequest.java create mode 100644 java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/UpdateAvailabilityRequestOrBuilder.java create mode 100644 java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/availability.proto create mode 100644 java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/getavailability/AsyncGetAvailability.java create mode 100644 java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/getavailability/SyncGetAvailability.java create mode 100644 java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/getavailability/SyncGetAvailabilityAvailabilityname.java create mode 100644 java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/getavailability/SyncGetAvailabilityString.java create mode 100644 java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/markasactive/AsyncMarkAsActive.java create mode 100644 java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/markasactive/SyncMarkAsActive.java create mode 100644 java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/markasaway/AsyncMarkAsAway.java create mode 100644 java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/markasaway/SyncMarkAsAway.java create mode 100644 java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/markasdonotdisturb/AsyncMarkAsDoNotDisturb.java create mode 100644 java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/markasdonotdisturb/SyncMarkAsDoNotDisturb.java create mode 100644 java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/updateavailability/AsyncUpdateAvailability.java create mode 100644 java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/updateavailability/SyncUpdateAvailability.java create mode 100644 java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/updateavailability/SyncUpdateAvailabilityAvailabilityFieldmask.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 create mode 100644 java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/FinishMigrationRequest.java create mode 100644 java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/FinishMigrationRequestOrBuilder.java create mode 100644 java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/MigrationConfig.java create mode 100644 java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/MigrationConfigOrBuilder.java create mode 100644 java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/SelfManagedSource.java create mode 100644 java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/SelfManagedSourceOrBuilder.java create mode 100644 java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/StartMigrationRequest.java create mode 100644 java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/StartMigrationRequestOrBuilder.java create mode 100644 java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/finishmigration/AsyncFinishMigration.java create mode 100644 java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/finishmigration/AsyncFinishMigrationLRO.java create mode 100644 java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/finishmigration/SyncFinishMigration.java create mode 100644 java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/finishmigration/SyncFinishMigrationInstancenameBoolean.java create mode 100644 java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/finishmigration/SyncFinishMigrationStringBoolean.java create mode 100644 java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/startmigration/AsyncStartMigration.java create mode 100644 java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/startmigration/AsyncStartMigrationLRO.java create mode 100644 java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/startmigration/SyncStartMigration.java diff --git a/gapic-libraries-bom/pom.xml b/gapic-libraries-bom/pom.xml index 5652ee714f13..840164e9cbf0 100644 --- a/gapic-libraries-bom/pom.xml +++ b/gapic-libraries-bom/pom.xml @@ -16,7 +16,7 @@ google-cloud-pom-parent com.google.cloud - 1.89.0-SNAPSHOT + 1.88.0 ../google-cloud-pom-parent/pom.xml diff --git a/java-admanager/.repo-metadata.json b/java-admanager/.repo-metadata.json index 624303fed269..166069246bc1 100644 --- a/java-admanager/.repo-metadata.json +++ b/java-admanager/.repo-metadata.json @@ -9,7 +9,7 @@ "language": "java", "repo": "googleapis/google-cloud-java", "repo_short": "java-admanager", - "distribution_name": "com.google.api-ads:ad-manager", + "distribution_name": "com.google.api-ad:ad-manager", "api_id": "admanager.googleapis.com", "library_type": "GAPIC_AUTO", "requires_billing": true diff --git a/java-admanager/README.md b/java-admanager/README.md index 3b568e92fd1e..9a300366c37c 100644 --- a/java-admanager/README.md +++ b/java-admanager/README.md @@ -20,7 +20,7 @@ If you are using Maven, add this to your pom.xml file: ```xml - com.google.api-ads + com.google.api-ad ad-manager 0.53.0 @@ -29,13 +29,13 @@ If you are using Maven, add this to your pom.xml file: If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.api-ads:ad-manager:0.53.0' +implementation 'com.google.api-ad:ad-manager:0.53.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.api-ads" % "ad-manager" % "0.53.0" +libraryDependencies += "com.google.api-ad" % "ad-manager" % "0.53.0" ``` ## Authentication @@ -157,8 +157,8 @@ Java is a registered trademark of Oracle and/or its affiliates. [product-docs]: https://developers.google.com/ad-manager/api/beta [javadocs]: https://cloud.google.com/java/docs/reference/ad-manager/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow -[maven-version-image]: https://img.shields.io/maven-central/v/com.google.api-ads/ad-manager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.api-ads/ad-manager/0.53.0 +[maven-version-image]: https://img.shields.io/maven-central/v/com.google.api-ad/ad-manager.svg +[maven-version-link]: https://central.sonatype.com/artifact/com.google.api-ad/ad-manager/0.53.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AdBreakServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AdBreakServiceStubSettings.java index a6e01673b88b..ba350877bb7d 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AdBreakServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AdBreakServiceStubSettings.java @@ -294,7 +294,7 @@ protected AdBreakServiceStubSettings(Builder settingsBuilder) throws IOException @Override protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() - .setArtifactName("com.google.api-ads:ad-manager") + .setArtifactName("com.google.api-ad:ad-manager") .setRepository("googleapis/google-cloud-java") .setVersion(Version.VERSION) .build(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AdReviewCenterAdServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AdReviewCenterAdServiceStubSettings.java index 449710bbb6d7..6e18159a713e 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AdReviewCenterAdServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AdReviewCenterAdServiceStubSettings.java @@ -374,7 +374,7 @@ protected AdReviewCenterAdServiceStubSettings(Builder settingsBuilder) throws IO @Override protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() - .setArtifactName("com.google.api-ads:ad-manager") + .setArtifactName("com.google.api-ad:ad-manager") .setRepository("googleapis/google-cloud-java") .setVersion(Version.VERSION) .build(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AdUnitServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AdUnitServiceStubSettings.java index 462c22a3c09c..72f2f9bf9058 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AdUnitServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AdUnitServiceStubSettings.java @@ -408,7 +408,7 @@ protected AdUnitServiceStubSettings(Builder settingsBuilder) throws IOException @Override protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() - .setArtifactName("com.google.api-ads:ad-manager") + .setArtifactName("com.google.api-ad:ad-manager") .setRepository("googleapis/google-cloud-java") .setVersion(Version.VERSION) .build(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ApplicationServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ApplicationServiceStubSettings.java index 5b7b99784300..11f18b2bd179 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ApplicationServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ApplicationServiceStubSettings.java @@ -339,7 +339,7 @@ protected ApplicationServiceStubSettings(Builder settingsBuilder) throws IOExcep @Override protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() - .setArtifactName("com.google.api-ads:ad-manager") + .setArtifactName("com.google.api-ad:ad-manager") .setRepository("googleapis/google-cloud-java") .setVersion(Version.VERSION) .build(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AudienceSegmentServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AudienceSegmentServiceStubSettings.java index 7a92dcc6f598..dd433802bf87 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AudienceSegmentServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AudienceSegmentServiceStubSettings.java @@ -290,7 +290,7 @@ protected AudienceSegmentServiceStubSettings(Builder settingsBuilder) throws IOE @Override protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() - .setArtifactName("com.google.api-ads:ad-manager") + .setArtifactName("com.google.api-ad:ad-manager") .setRepository("googleapis/google-cloud-java") .setVersion(Version.VERSION) .build(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/BandwidthGroupServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/BandwidthGroupServiceStubSettings.java index 5a0fbeb6034f..38d5f955dcb9 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/BandwidthGroupServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/BandwidthGroupServiceStubSettings.java @@ -281,7 +281,7 @@ protected BandwidthGroupServiceStubSettings(Builder settingsBuilder) throws IOEx @Override protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() - .setArtifactName("com.google.api-ads:ad-manager") + .setArtifactName("com.google.api-ad:ad-manager") .setRepository("googleapis/google-cloud-java") .setVersion(Version.VERSION) .build(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/BrowserLanguageServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/BrowserLanguageServiceStubSettings.java index a2f11ac6e7bf..e63ae1cc2db4 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/BrowserLanguageServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/BrowserLanguageServiceStubSettings.java @@ -290,7 +290,7 @@ protected BrowserLanguageServiceStubSettings(Builder settingsBuilder) throws IOE @Override protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() - .setArtifactName("com.google.api-ads:ad-manager") + .setArtifactName("com.google.api-ad:ad-manager") .setRepository("googleapis/google-cloud-java") .setVersion(Version.VERSION) .build(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/BrowserServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/BrowserServiceStubSettings.java index 33be088b10bf..41381b101799 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/BrowserServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/BrowserServiceStubSettings.java @@ -269,7 +269,7 @@ protected BrowserServiceStubSettings(Builder settingsBuilder) throws IOException @Override protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() - .setArtifactName("com.google.api-ads:ad-manager") + .setArtifactName("com.google.api-ad:ad-manager") .setRepository("googleapis/google-cloud-java") .setVersion(Version.VERSION) .build(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CmsMetadataKeyServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CmsMetadataKeyServiceStubSettings.java index 8b3dd7bb29a1..b467685b20de 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CmsMetadataKeyServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CmsMetadataKeyServiceStubSettings.java @@ -309,7 +309,7 @@ protected CmsMetadataKeyServiceStubSettings(Builder settingsBuilder) throws IOEx @Override protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() - .setArtifactName("com.google.api-ads:ad-manager") + .setArtifactName("com.google.api-ad:ad-manager") .setRepository("googleapis/google-cloud-java") .setVersion(Version.VERSION) .build(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CmsMetadataValueServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CmsMetadataValueServiceStubSettings.java index a1d73a7be13a..b38b6f5ada03 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CmsMetadataValueServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CmsMetadataValueServiceStubSettings.java @@ -318,7 +318,7 @@ protected CmsMetadataValueServiceStubSettings(Builder settingsBuilder) throws IO @Override protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() - .setArtifactName("com.google.api-ads:ad-manager") + .setArtifactName("com.google.api-ad:ad-manager") .setRepository("googleapis/google-cloud-java") .setVersion(Version.VERSION) .build(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CompanyServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CompanyServiceStubSettings.java index b3305740f209..01aedbe50137 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CompanyServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CompanyServiceStubSettings.java @@ -269,7 +269,7 @@ protected CompanyServiceStubSettings(Builder settingsBuilder) throws IOException @Override protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() - .setArtifactName("com.google.api-ads:ad-manager") + .setArtifactName("com.google.api-ad:ad-manager") .setRepository("googleapis/google-cloud-java") .setVersion(Version.VERSION) .build(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ContactServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ContactServiceStubSettings.java index d5a9f0786215..97573a3aac2c 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ContactServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ContactServiceStubSettings.java @@ -307,7 +307,7 @@ protected ContactServiceStubSettings(Builder settingsBuilder) throws IOException @Override protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() - .setArtifactName("com.google.api-ads:ad-manager") + .setArtifactName("com.google.api-ad:ad-manager") .setRepository("googleapis/google-cloud-java") .setVersion(Version.VERSION) .build(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ContentBundleServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ContentBundleServiceStubSettings.java index 0a56844afb40..bff299d9584b 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ContentBundleServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ContentBundleServiceStubSettings.java @@ -280,7 +280,7 @@ protected ContentBundleServiceStubSettings(Builder settingsBuilder) throws IOExc @Override protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() - .setArtifactName("com.google.api-ads:ad-manager") + .setArtifactName("com.google.api-ad:ad-manager") .setRepository("googleapis/google-cloud-java") .setVersion(Version.VERSION) .build(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ContentLabelServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ContentLabelServiceStubSettings.java index ed10dcc48249..5f0c95255257 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ContentLabelServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ContentLabelServiceStubSettings.java @@ -279,7 +279,7 @@ protected ContentLabelServiceStubSettings(Builder settingsBuilder) throws IOExce @Override protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() - .setArtifactName("com.google.api-ads:ad-manager") + .setArtifactName("com.google.api-ad:ad-manager") .setRepository("googleapis/google-cloud-java") .setVersion(Version.VERSION) .build(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ContentServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ContentServiceStubSettings.java index b17885f5edd7..e01ba7cd619c 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ContentServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ContentServiceStubSettings.java @@ -268,7 +268,7 @@ protected ContentServiceStubSettings(Builder settingsBuilder) throws IOException @Override protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() - .setArtifactName("com.google.api-ads:ad-manager") + .setArtifactName("com.google.api-ad:ad-manager") .setRepository("googleapis/google-cloud-java") .setVersion(Version.VERSION) .build(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CreativeTemplateServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CreativeTemplateServiceStubSettings.java index 958c03142202..fe68485841c2 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CreativeTemplateServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CreativeTemplateServiceStubSettings.java @@ -290,7 +290,7 @@ protected CreativeTemplateServiceStubSettings(Builder settingsBuilder) throws IO @Override protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() - .setArtifactName("com.google.api-ads:ad-manager") + .setArtifactName("com.google.api-ad:ad-manager") .setRepository("googleapis/google-cloud-java") .setVersion(Version.VERSION) .build(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CustomFieldServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CustomFieldServiceStubSettings.java index 1fba62141b58..4f3949c5b60f 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CustomFieldServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CustomFieldServiceStubSettings.java @@ -340,7 +340,7 @@ protected CustomFieldServiceStubSettings(Builder settingsBuilder) throws IOExcep @Override protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() - .setArtifactName("com.google.api-ads:ad-manager") + .setArtifactName("com.google.api-ad:ad-manager") .setRepository("googleapis/google-cloud-java") .setVersion(Version.VERSION) .build(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CustomTargetingKeyServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CustomTargetingKeyServiceStubSettings.java index 0317ca4062cd..126351dff0f3 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CustomTargetingKeyServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CustomTargetingKeyServiceStubSettings.java @@ -373,7 +373,7 @@ protected CustomTargetingKeyServiceStubSettings(Builder settingsBuilder) throws @Override protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() - .setArtifactName("com.google.api-ads:ad-manager") + .setArtifactName("com.google.api-ad:ad-manager") .setRepository("googleapis/google-cloud-java") .setVersion(Version.VERSION) .build(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CustomTargetingValueServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CustomTargetingValueServiceStubSettings.java index 89fe8f7bd846..1f9920cac348 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CustomTargetingValueServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CustomTargetingValueServiceStubSettings.java @@ -300,7 +300,7 @@ protected CustomTargetingValueServiceStubSettings(Builder settingsBuilder) throw @Override protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() - .setArtifactName("com.google.api-ads:ad-manager") + .setArtifactName("com.google.api-ad:ad-manager") .setRepository("googleapis/google-cloud-java") .setVersion(Version.VERSION) .build(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/DeviceCapabilityServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/DeviceCapabilityServiceStubSettings.java index dcaf64714179..502e9231def7 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/DeviceCapabilityServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/DeviceCapabilityServiceStubSettings.java @@ -295,7 +295,7 @@ protected DeviceCapabilityServiceStubSettings(Builder settingsBuilder) throws IO @Override protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() - .setArtifactName("com.google.api-ads:ad-manager") + .setArtifactName("com.google.api-ad:ad-manager") .setRepository("googleapis/google-cloud-java") .setVersion(Version.VERSION) .build(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/DeviceCategoryServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/DeviceCategoryServiceStubSettings.java index 5c02dd34f46d..09d5529bf55e 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/DeviceCategoryServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/DeviceCategoryServiceStubSettings.java @@ -287,7 +287,7 @@ protected DeviceCategoryServiceStubSettings(Builder settingsBuilder) throws IOEx @Override protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() - .setArtifactName("com.google.api-ads:ad-manager") + .setArtifactName("com.google.api-ad:ad-manager") .setRepository("googleapis/google-cloud-java") .setVersion(Version.VERSION) .build(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/DeviceManufacturerServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/DeviceManufacturerServiceStubSettings.java index 7ceae24fc4cf..9f834966c66a 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/DeviceManufacturerServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/DeviceManufacturerServiceStubSettings.java @@ -297,7 +297,7 @@ protected DeviceManufacturerServiceStubSettings(Builder settingsBuilder) throws @Override protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() - .setArtifactName("com.google.api-ads:ad-manager") + .setArtifactName("com.google.api-ad:ad-manager") .setRepository("googleapis/google-cloud-java") .setVersion(Version.VERSION) .build(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/EntitySignalsMappingServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/EntitySignalsMappingServiceStubSettings.java index a14a6f4d14ba..ef74e4f11f36 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/EntitySignalsMappingServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/EntitySignalsMappingServiceStubSettings.java @@ -350,7 +350,7 @@ protected EntitySignalsMappingServiceStubSettings(Builder settingsBuilder) throw @Override protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() - .setArtifactName("com.google.api-ads:ad-manager") + .setArtifactName("com.google.api-ad:ad-manager") .setRepository("googleapis/google-cloud-java") .setVersion(Version.VERSION) .build(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/GeoTargetServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/GeoTargetServiceStubSettings.java index 36421848395e..799e5d01d71c 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/GeoTargetServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/GeoTargetServiceStubSettings.java @@ -271,7 +271,7 @@ protected GeoTargetServiceStubSettings(Builder settingsBuilder) throws IOExcepti @Override protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() - .setArtifactName("com.google.api-ads:ad-manager") + .setArtifactName("com.google.api-ad:ad-manager") .setRepository("googleapis/google-cloud-java") .setVersion(Version.VERSION) .build(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/LabelServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/LabelServiceStubSettings.java index 169d1d09ad79..ca4c0d553eb5 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/LabelServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/LabelServiceStubSettings.java @@ -328,7 +328,7 @@ protected LabelServiceStubSettings(Builder settingsBuilder) throws IOException { @Override protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() - .setArtifactName("com.google.api-ads:ad-manager") + .setArtifactName("com.google.api-ad:ad-manager") .setRepository("googleapis/google-cloud-java") .setVersion(Version.VERSION) .build(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/LineItemServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/LineItemServiceStubSettings.java index 5a1bcd1a542d..4fd8e44bf34d 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/LineItemServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/LineItemServiceStubSettings.java @@ -269,7 +269,7 @@ protected LineItemServiceStubSettings(Builder settingsBuilder) throws IOExceptio @Override protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() - .setArtifactName("com.google.api-ads:ad-manager") + .setArtifactName("com.google.api-ad:ad-manager") .setRepository("googleapis/google-cloud-java") .setVersion(Version.VERSION) .build(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/LinkedDeviceServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/LinkedDeviceServiceStubSettings.java index bf40629f2934..7734b9c5db6d 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/LinkedDeviceServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/LinkedDeviceServiceStubSettings.java @@ -279,7 +279,7 @@ protected LinkedDeviceServiceStubSettings(Builder settingsBuilder) throws IOExce @Override protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() - .setArtifactName("com.google.api-ads:ad-manager") + .setArtifactName("com.google.api-ad:ad-manager") .setRepository("googleapis/google-cloud-java") .setVersion(Version.VERSION) .build(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/McmEarningsServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/McmEarningsServiceStubSettings.java index 9ce690c7686d..f9369f213b8f 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/McmEarningsServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/McmEarningsServiceStubSettings.java @@ -269,7 +269,7 @@ protected McmEarningsServiceStubSettings(Builder settingsBuilder) throws IOExcep @Override protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() - .setArtifactName("com.google.api-ads:ad-manager") + .setArtifactName("com.google.api-ad:ad-manager") .setRepository("googleapis/google-cloud-java") .setVersion(Version.VERSION) .build(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/MobileCarrierServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/MobileCarrierServiceStubSettings.java index 7b8e51b708e7..22a87c6bc711 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/MobileCarrierServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/MobileCarrierServiceStubSettings.java @@ -280,7 +280,7 @@ protected MobileCarrierServiceStubSettings(Builder settingsBuilder) throws IOExc @Override protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() - .setArtifactName("com.google.api-ads:ad-manager") + .setArtifactName("com.google.api-ad:ad-manager") .setRepository("googleapis/google-cloud-java") .setVersion(Version.VERSION) .build(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/MobileDeviceServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/MobileDeviceServiceStubSettings.java index 7c4fb5dc29d2..4a9242a55cfb 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/MobileDeviceServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/MobileDeviceServiceStubSettings.java @@ -279,7 +279,7 @@ protected MobileDeviceServiceStubSettings(Builder settingsBuilder) throws IOExce @Override protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() - .setArtifactName("com.google.api-ads:ad-manager") + .setArtifactName("com.google.api-ad:ad-manager") .setRepository("googleapis/google-cloud-java") .setVersion(Version.VERSION) .build(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/MobileDeviceSubmodelServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/MobileDeviceSubmodelServiceStubSettings.java index 5e20d5b33195..8dccc83bb71e 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/MobileDeviceSubmodelServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/MobileDeviceSubmodelServiceStubSettings.java @@ -300,7 +300,7 @@ protected MobileDeviceSubmodelServiceStubSettings(Builder settingsBuilder) throw @Override protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() - .setArtifactName("com.google.api-ads:ad-manager") + .setArtifactName("com.google.api-ad:ad-manager") .setRepository("googleapis/google-cloud-java") .setVersion(Version.VERSION) .build(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/NetworkServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/NetworkServiceStubSettings.java index 821cc6033dd6..7bef81ec97b6 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/NetworkServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/NetworkServiceStubSettings.java @@ -269,7 +269,7 @@ protected NetworkServiceStubSettings(Builder settingsBuilder) throws IOException @Override protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() - .setArtifactName("com.google.api-ads:ad-manager") + .setArtifactName("com.google.api-ad:ad-manager") .setRepository("googleapis/google-cloud-java") .setVersion(Version.VERSION) .build(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/OperatingSystemServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/OperatingSystemServiceStubSettings.java index 6c1227e4fe27..bc3f6ded4b30 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/OperatingSystemServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/OperatingSystemServiceStubSettings.java @@ -290,7 +290,7 @@ protected OperatingSystemServiceStubSettings(Builder settingsBuilder) throws IOE @Override protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() - .setArtifactName("com.google.api-ads:ad-manager") + .setArtifactName("com.google.api-ad:ad-manager") .setRepository("googleapis/google-cloud-java") .setVersion(Version.VERSION) .build(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/OperatingSystemVersionServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/OperatingSystemVersionServiceStubSettings.java index 961703c87c97..15d0b45951b9 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/OperatingSystemVersionServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/OperatingSystemVersionServiceStubSettings.java @@ -305,7 +305,7 @@ protected OperatingSystemVersionServiceStubSettings(Builder settingsBuilder) thr @Override protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() - .setArtifactName("com.google.api-ads:ad-manager") + .setArtifactName("com.google.api-ad:ad-manager") .setRepository("googleapis/google-cloud-java") .setVersion(Version.VERSION) .build(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/OrderServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/OrderServiceStubSettings.java index a1ee2ca53c0d..27e37af53751 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/OrderServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/OrderServiceStubSettings.java @@ -269,7 +269,7 @@ protected OrderServiceStubSettings(Builder settingsBuilder) throws IOException { @Override protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() - .setArtifactName("com.google.api-ads:ad-manager") + .setArtifactName("com.google.api-ad:ad-manager") .setRepository("googleapis/google-cloud-java") .setVersion(Version.VERSION) .build(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/PlacementServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/PlacementServiceStubSettings.java index 03542f02acf7..b3e9ca868c12 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/PlacementServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/PlacementServiceStubSettings.java @@ -343,7 +343,7 @@ protected PlacementServiceStubSettings(Builder settingsBuilder) throws IOExcepti @Override protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() - .setArtifactName("com.google.api-ads:ad-manager") + .setArtifactName("com.google.api-ad:ad-manager") .setRepository("googleapis/google-cloud-java") .setVersion(Version.VERSION) .build(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/PrivateAuctionDealServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/PrivateAuctionDealServiceStubSettings.java index b2eca40588b6..22384129cf2f 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/PrivateAuctionDealServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/PrivateAuctionDealServiceStubSettings.java @@ -317,7 +317,7 @@ protected PrivateAuctionDealServiceStubSettings(Builder settingsBuilder) throws @Override protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() - .setArtifactName("com.google.api-ads:ad-manager") + .setArtifactName("com.google.api-ad:ad-manager") .setRepository("googleapis/google-cloud-java") .setVersion(Version.VERSION) .build(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/PrivateAuctionServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/PrivateAuctionServiceStubSettings.java index 4628d0ef540a..cac74b076621 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/PrivateAuctionServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/PrivateAuctionServiceStubSettings.java @@ -301,7 +301,7 @@ protected PrivateAuctionServiceStubSettings(Builder settingsBuilder) throws IOEx @Override protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() - .setArtifactName("com.google.api-ads:ad-manager") + .setArtifactName("com.google.api-ad:ad-manager") .setRepository("googleapis/google-cloud-java") .setVersion(Version.VERSION) .build(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ProgrammaticBuyerServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ProgrammaticBuyerServiceStubSettings.java index b7cfe7b3308e..7844c7b1e966 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ProgrammaticBuyerServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ProgrammaticBuyerServiceStubSettings.java @@ -295,7 +295,7 @@ protected ProgrammaticBuyerServiceStubSettings(Builder settingsBuilder) throws I @Override protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() - .setArtifactName("com.google.api-ads:ad-manager") + .setArtifactName("com.google.api-ad:ad-manager") .setRepository("googleapis/google-cloud-java") .setVersion(Version.VERSION) .build(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ReportServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ReportServiceStubSettings.java index 0f67c45573c1..6d296fd740c1 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ReportServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ReportServiceStubSettings.java @@ -419,7 +419,7 @@ protected ReportServiceStubSettings(Builder settingsBuilder) throws IOException @Override protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() - .setArtifactName("com.google.api-ads:ad-manager") + .setArtifactName("com.google.api-ad:ad-manager") .setRepository("googleapis/google-cloud-java") .setVersion(Version.VERSION) .build(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/RichMediaAdsCompanyServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/RichMediaAdsCompanyServiceStubSettings.java index 420e6c0f835d..be301ffa5e4c 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/RichMediaAdsCompanyServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/RichMediaAdsCompanyServiceStubSettings.java @@ -300,7 +300,7 @@ protected RichMediaAdsCompanyServiceStubSettings(Builder settingsBuilder) throws @Override protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() - .setArtifactName("com.google.api-ads:ad-manager") + .setArtifactName("com.google.api-ad:ad-manager") .setRepository("googleapis/google-cloud-java") .setVersion(Version.VERSION) .build(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/RoleServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/RoleServiceStubSettings.java index 22c8d00d0281..43daa73d1674 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/RoleServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/RoleServiceStubSettings.java @@ -268,7 +268,7 @@ protected RoleServiceStubSettings(Builder settingsBuilder) throws IOException { @Override protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() - .setArtifactName("com.google.api-ads:ad-manager") + .setArtifactName("com.google.api-ad:ad-manager") .setRepository("googleapis/google-cloud-java") .setVersion(Version.VERSION) .build(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/SiteServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/SiteServiceStubSettings.java index 9f915ddec040..aff8ff1c2ed3 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/SiteServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/SiteServiceStubSettings.java @@ -330,7 +330,7 @@ protected SiteServiceStubSettings(Builder settingsBuilder) throws IOException { @Override protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() - .setArtifactName("com.google.api-ads:ad-manager") + .setArtifactName("com.google.api-ad:ad-manager") .setRepository("googleapis/google-cloud-java") .setVersion(Version.VERSION) .build(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/TaxonomyCategoryServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/TaxonomyCategoryServiceStubSettings.java index a2e672aa140a..ad13a7fc459c 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/TaxonomyCategoryServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/TaxonomyCategoryServiceStubSettings.java @@ -295,7 +295,7 @@ protected TaxonomyCategoryServiceStubSettings(Builder settingsBuilder) throws IO @Override protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() - .setArtifactName("com.google.api-ads:ad-manager") + .setArtifactName("com.google.api-ad:ad-manager") .setRepository("googleapis/google-cloud-java") .setVersion(Version.VERSION) .build(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/TeamServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/TeamServiceStubSettings.java index 867df3385043..bfd12c96af7f 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/TeamServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/TeamServiceStubSettings.java @@ -328,7 +328,7 @@ protected TeamServiceStubSettings(Builder settingsBuilder) throws IOException { @Override protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() - .setArtifactName("com.google.api-ads:ad-manager") + .setArtifactName("com.google.api-ad:ad-manager") .setRepository("googleapis/google-cloud-java") .setVersion(Version.VERSION) .build(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/UserServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/UserServiceStubSettings.java index 7d26baf96cdf..4e3a3abde833 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/UserServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/UserServiceStubSettings.java @@ -197,7 +197,7 @@ protected UserServiceStubSettings(Builder settingsBuilder) throws IOException { @Override protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() - .setArtifactName("com.google.api-ads:ad-manager") + .setArtifactName("com.google.api-ad:ad-manager") .setRepository("googleapis/google-cloud-java") .setVersion(Version.VERSION) .build(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1/reflect-config.json b/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1/reflect-config.json index 3b3d0dcd91c0..451d7e56b802 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1/reflect-config.json +++ b/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1/reflect-config.json @@ -17999,6 +17999,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.ReasoningEngineSpec$IdentityType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.ReasoningEngineSpec$PackageSpec", "queryAllDeclaredConstructors": true, diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1beta1/reflect-config.json b/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1beta1/reflect-config.json index fc7ab666763f..b540f3e71959 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1beta1/reflect-config.json +++ b/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1beta1/reflect-config.json @@ -23120,6 +23120,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec$IdentityType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec$PackageSpec", "queryAllDeclaredConstructors": true, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineProto.java index aa837e27da40..39a9a6adf755 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineProto.java @@ -111,7 +111,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\037google/api/field_behavior.proto\032\031google" + "/api/resource.proto\0320google/cloud/aiplatform/v1/encryption_spec.proto\032(google/cl" + "oud/aiplatform/v1/env_var.proto\0323google/cloud/aiplatform/v1/service_networking.p" - + "roto\032\034google/protobuf/struct.proto\032\037google/protobuf/timestamp.proto\"\364\022\n" + + "roto\032\034google/protobuf/struct.proto\032\037google/protobuf/timestamp.proto\"\246\024\n" + "\023ReasoningEngineSpec\022Z\n" + "\020source_code_spec\030\013 \001(\0132>." + "google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpecH\000\022W\n" @@ -123,7 +123,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017deployment_spec\030\004 \001(\0132>.google.cloud.aipl" + "atform.v1.ReasoningEngineSpec.DeploymentSpecB\003\340A\001\0223\n\r" + "class_methods\030\003 \003(\0132\027.google.protobuf.StructB\003\340A\001\022\034\n" - + "\017agent_framework\030\005 \001(\tB\003\340A\001\032\230\001\n" + + "\017agent_framework\030\005 \001(\tB\003\340A\001\022X\n\r" + + "identity_type\030\014 \001(\0162<.go" + + "ogle.cloud.aiplatform.v1.ReasoningEngineSpec.IdentityTypeB\003\340A\001\032\230\001\n" + "\013PackageSpec\022\"\n" + "\025pickle_object_gcs_uri\030\001 \001(\tB\003\340A\001\022%\n" + "\030dependency_files_gcs_uri\030\002 \001(\tB\003\340A\001\022!\n" @@ -133,12 +135,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003env\030\001 \003(\0132\".google.cloud.aiplatform.v1.EnvVarB\003\340A\001\022A\n\n" + "secret_env\030\002" + " \003(\0132(.google.cloud.aiplatform.v1.SecretEnvVarB\003\340A\001\022Q\n" - + "\024psc_interface_config\030\004" - + " \001(\0132..google.cloud.aiplatform.v1.PscInterfaceConfigB\003\340A\001\022\037\n\r" + + "\024psc_interface_config\030\004 \001(\0132..google.clo" + + "ud.aiplatform.v1.PscInterfaceConfigB\003\340A\001\022\037\n\r" + "min_instances\030\005 \001(\005B\003\340A\001H\000\210\001\001\022\037\n\r" + "max_instances\030\006 \001(\005B\003\340A\001H\001\210\001\001\022p\n" - + "\017resource_limits\030\007 \003(\0132R.google.cloud.aiplatform.v1.Reasoning" - + "EngineSpec.DeploymentSpec.ResourceLimitsEntryB\003\340A\001\022\'\n" + + "\017resource_limits\030\007 \003(\0132R.google.cloud.aiplatform.v1" + + ".ReasoningEngineSpec.DeploymentSpec.ResourceLimitsEntryB\003\340A\001\022\'\n" + "\025container_concurrency\030\010 \001(\005B\003\340A\001H\002\210\001\001\0325\n" + "\023ResourceLimitsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -146,20 +148,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016_min_instancesB\020\n" + "\016_max_instancesB\030\n" + "\026_container_concurrency\032\335\010\n" - + "\016SourceCodeSpec\022d\n\r" - + "inline_source\030\001 \001(\0132K.google.cloud.aiplatform.v1." - + "ReasoningEngineSpec.SourceCodeSpec.InlineSourceH\000\022y\n" - + "\030developer_connect_source\030\003 \001(\0132U.google.cloud.aiplatform.v1.Reasoni" - + "ngEngineSpec.SourceCodeSpec.DeveloperConnectSourceH\000\022`\n" - + "\013python_spec\030\002 \001(\0132I.goog" - + "le.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.PythonSpecH\001\022c\n\n" - + "image_spec\030\005 \001(\0132H.google.cloud.aiplatform.v1." - + "ReasoningEngineSpec.SourceCodeSpec.ImageSpecB\003\340A\001H\001\032.\n" + + "\016SourceCodeSpec\022d\n" + + "\r" + + "inline_source\030\001 \001(\0132K.google.cloud.aipl" + + "atform.v1.ReasoningEngineSpec.SourceCodeSpec.InlineSourceH\000\022y\n" + + "\030developer_connect_source\030\003 \001(\0132U.google.cloud.aiplatform." + + "v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSourceH\000\022`\n" + + "\013python_spec\030\002 \001(\0132I.google.cloud.aiplatform.v1.Reasoni" + + "ngEngineSpec.SourceCodeSpec.PythonSpecH\001\022c\n\n" + + "image_spec\030\005 \001(\0132H.google.cloud.aipl" + + "atform.v1.ReasoningEngineSpec.SourceCodeSpec.ImageSpecB\003\340A\001H\001\032.\n" + "\014InlineSource\022\036\n" + "\016source_archive\030\001 \001(\014B\006\340A\002\340A\004\032\257\001\n" + "\tImageSpec\022p\n\n" - + "build_args\030\001 \003(\0132W.google.cloud.aiplatform." - + "v1.ReasoningEngineSpec.SourceCodeSpec.ImageSpec.BuildArgsEntryB\003\340A\001\0320\n" + + "build_args\030\001 \003(\0132W.google.cloud.a" + + "iplatform.v1.ReasoningEngineSpec.SourceCodeSpec.ImageSpec.BuildArgsEntryB\003\340A\001\0320\n" + "\016BuildArgsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\032\231\001\n" @@ -169,8 +172,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003dir\030\002 \001(\tB\003\340A\002\022\025\n" + "\010revision\030\003 \001(\tB\003\340A\002\032\204\001\n" + "\026DeveloperConnectSource\022j\n" - + "\006config\030\001 \001(\0132U.google.cloud.aiplatform.v1.ReasoningEngin" - + "eSpec.SourceCodeSpec.DeveloperConnectConfigB\003\340A\002\032\202\001\n\n" + + "\006config\030\001 \001(\0132U.google.cloud.aiplatform.v1.Reas" + + "oningEngineSpec.SourceCodeSpec.DeveloperConnectConfigB\003\340A\002\032\202\001\n\n" + "PythonSpec\022\024\n" + "\007version\030\001 \001(\tB\003\340A\001\022\036\n" + "\021entrypoint_module\030\002 \001(\tB\003\340A\001\022\036\n" @@ -179,36 +182,41 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006sourceB\017\n\r" + "language_spec\032\'\n\r" + "ContainerSpec\022\026\n" - + "\timage_uri\030\001 \001(\tB\003\340A\002B\023\n" + + "\timage_uri\030\001 \001(\tB\003\340A\002\"V\n" + + "\014IdentityType\022\035\n" + + "\031IDENTITY_TYPE_UNSPECIFIED\020\000\022\023\n" + + "\017SERVICE_ACCOUNT\020\002\022\022\n" + + "\016AGENT_IDENTITY\020\003B\023\n" + "\021deployment_sourceB\022\n" + "\020_service_account\"\373\004\n" + "\017ReasoningEngine\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\031\n" + "\014display_name\030\002 \001(\tB\003\340A\002\022\030\n" + "\013description\030\007 \001(\tB\003\340A\001\022B\n" - + "\004spec\030\003 \001(\0132/.g" - + "oogle.cloud.aiplatform.v1.ReasoningEngineSpecB\003\340A\001\0224\n" + + "\004spec\030\003" + + " \001(\0132/.google.cloud.aiplatform.v1.ReasoningEngineSpecB\003\340A\001\0224\n" + "\013create_time\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\005" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\021\n" + "\004etag\030\006 \001(\tB\003\340A\001\022C\n" - + "\017encryption_spec\030\013 \001" - + "(\0132*.google.cloud.aiplatform.v1.EncryptionSpec\022G\n" - + "\006labels\030\021 \003(\01327.google.cloud.ai" - + "platform.v1.ReasoningEngine.LabelsEntry\032-\n" + + "\017encryption_spec\030\013" + + " \001(\0132*.google.cloud.aiplatform.v1.EncryptionSpec\022G\n" + + "\006labels\030\021 \003(\013" + + "27.google.cloud.aiplatform.v1.ReasoningEngine.LabelsEntry\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:\237\001\352A\233\001\n" - + ")aiplatform.googleapis.com/ReasoningEngine\022Kprojects/{project}/loc" - + "ations/{location}/reasoningEngines/{reas" - + "oning_engine}*\020reasoningEngines2\017reasoningEngineB\364\002\n" - + "\036com.google.cloud.aiplatform.v1B\024ReasoningEngineProtoP\001Z>cloud.googl" - + "e.com/go/aiplatform/apiv1/aiplatformpb;a" - + "iplatformpb\252\002\032Google.Cloud.AIPlatform.V1" - + "\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035Google::Cloud::AIPlatform::V1\352A\236\001\n" - + "1developerconnect.googleapis.com/GitRepositoryLink\022ipr" - + "ojects/{project}/locations/{location}/connections/{connection}/gitRepositoryLink" - + "s/{git_repository_link}b\006proto3" + + ")aiplatform.googleapis.com/ReasoningEngine\022Kproj" + + "ects/{project}/locations/{location}/reas" + + "oningEngines/{reasoning_engine}*\020reasoningEngines2\017reasoningEngineB\364\002\n" + + "\036com.google.cloud.aiplatform.v1B\024ReasoningEnginePr" + + "otoP\001Z>cloud.google.com/go/aiplatform/ap" + + "iv1/aiplatformpb;aiplatformpb\252\002\032Google.C" + + "loud.AIPlatform.V1\312\002\032Google\\Cloud\\AIPlat" + + "form\\V1\352\002\035Google::Cloud::AIPlatform::V1\352A\236\001\n" + + "1developerconnect.googleapis.com/GitRepositoryLink\022iprojects/{project}/locat" + + "ions/{location}/connections/{connection}/gitRepositoryLinks/{git_repository_link" + + "}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -235,6 +243,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DeploymentSpec", "ClassMethods", "AgentFramework", + "IdentityType", "DeploymentSource", }); internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_PackageSpec_descriptor = diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineSpec.java index 815571a023e1..8d9ac10989b8 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineSpec.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineSpec.java @@ -55,6 +55,7 @@ private ReasoningEngineSpec() { serviceAccount_ = ""; classMethods_ = java.util.Collections.emptyList(); agentFramework_ = ""; + identityType_ = 0; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -72,6 +73,185 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.aiplatform.v1.ReasoningEngineSpec.Builder.class); } + /** + * + * + *
+   * The identity type to use for the Reasoning Engine.
+   * 
+ * + * Protobuf enum {@code google.cloud.aiplatform.v1.ReasoningEngineSpec.IdentityType} + */ + public enum IdentityType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value. Use a custom service account if the `service_account`
+     * field is set, otherwise use the default Vertex AI Reasoning Engine
+     * Service Agent in the project. Same behavior as SERVICE_ACCOUNT.
+     * 
+ * + * IDENTITY_TYPE_UNSPECIFIED = 0; + */ + IDENTITY_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Use a custom service account if the `service_account` field is set,
+     * otherwise use the default Vertex AI Reasoning Engine Service Agent in the
+     * project.
+     * 
+ * + * SERVICE_ACCOUNT = 2; + */ + SERVICE_ACCOUNT(2), + /** + * + * + *
+     * Use Agent Identity. The `service_account` field must not be set.
+     * 
+ * + * AGENT_IDENTITY = 3; + */ + AGENT_IDENTITY(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "IdentityType"); + } + + /** + * + * + *
+     * Default value. Use a custom service account if the `service_account`
+     * field is set, otherwise use the default Vertex AI Reasoning Engine
+     * Service Agent in the project. Same behavior as SERVICE_ACCOUNT.
+     * 
+ * + * IDENTITY_TYPE_UNSPECIFIED = 0; + */ + public static final int IDENTITY_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Use a custom service account if the `service_account` field is set,
+     * otherwise use the default Vertex AI Reasoning Engine Service Agent in the
+     * project.
+     * 
+ * + * SERVICE_ACCOUNT = 2; + */ + public static final int SERVICE_ACCOUNT_VALUE = 2; + + /** + * + * + *
+     * Use Agent Identity. The `service_account` field must not be set.
+     * 
+ * + * AGENT_IDENTITY = 3; + */ + public static final int AGENT_IDENTITY_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static IdentityType 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 IdentityType forNumber(int value) { + switch (value) { + case 0: + return IDENTITY_TYPE_UNSPECIFIED; + case 2: + return SERVICE_ACCOUNT; + case 3: + return AGENT_IDENTITY; + 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 IdentityType findValueByNumber(int number) { + return IdentityType.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.aiplatform.v1.ReasoningEngineSpec.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final IdentityType[] VALUES = values(); + + public static IdentityType 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 IdentityType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1.ReasoningEngineSpec.IdentityType) + } + public interface PackageSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec) @@ -12906,6 +13086,55 @@ public com.google.protobuf.ByteString getAgentFrameworkBytes() { } } + public static final int IDENTITY_TYPE_FIELD_NUMBER = 12; + private int identityType_ = 0; + + /** + * + * + *
+   * Optional. The identity type to use for the Reasoning Engine. If not
+   * specified, the `service_account` field will be used if set, otherwise the
+   * default Vertex AI Reasoning Engine Service Agent in the project will be
+   * used.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec.IdentityType identity_type = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for identityType. + */ + @java.lang.Override + public int getIdentityTypeValue() { + return identityType_; + } + + /** + * + * + *
+   * Optional. The identity type to use for the Reasoning Engine. If not
+   * specified, the `service_account` field will be used if set, otherwise the
+   * default Vertex AI Reasoning Engine Service Agent in the project will be
+   * used.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec.IdentityType identity_type = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The identityType. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ReasoningEngineSpec.IdentityType getIdentityType() { + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.IdentityType result = + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.IdentityType.forNumber(identityType_); + return result == null + ? com.google.cloud.aiplatform.v1.ReasoningEngineSpec.IdentityType.UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -12940,6 +13169,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io 11, (com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec) deploymentSource_); } + if (identityType_ + != com.google.cloud.aiplatform.v1.ReasoningEngineSpec.IdentityType.IDENTITY_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(12, identityType_); + } if (deploymentSourceCase_ == 15) { output.writeMessage( 15, (com.google.cloud.aiplatform.v1.ReasoningEngineSpec.ContainerSpec) deploymentSource_); @@ -12975,6 +13209,11 @@ public int getSerializedSize() { (com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec) deploymentSource_); } + if (identityType_ + != com.google.cloud.aiplatform.v1.ReasoningEngineSpec.IdentityType.IDENTITY_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, identityType_); + } if (deploymentSourceCase_ == 15) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( @@ -13011,6 +13250,7 @@ public boolean equals(final java.lang.Object obj) { } if (!getClassMethodsList().equals(other.getClassMethodsList())) return false; if (!getAgentFramework().equals(other.getAgentFramework())) return false; + if (identityType_ != other.identityType_) return false; if (!getDeploymentSourceCase().equals(other.getDeploymentSourceCase())) return false; switch (deploymentSourceCase_) { case 11: @@ -13051,6 +13291,8 @@ public int hashCode() { } hash = (37 * hash) + AGENT_FRAMEWORK_FIELD_NUMBER; hash = (53 * hash) + getAgentFramework().hashCode(); + hash = (37 * hash) + IDENTITY_TYPE_FIELD_NUMBER; + hash = (53 * hash) + identityType_; switch (deploymentSourceCase_) { case 11: hash = (37 * hash) + SOURCE_CODE_SPEC_FIELD_NUMBER; @@ -13239,6 +13481,7 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000020); agentFramework_ = ""; + identityType_ = 0; deploymentSourceCase_ = 0; deploymentSource_ = null; return this; @@ -13310,6 +13553,9 @@ private void buildPartial0(com.google.cloud.aiplatform.v1.ReasoningEngineSpec re if (((from_bitField0_ & 0x00000040) != 0)) { result.agentFramework_ = agentFramework_; } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.identityType_ = identityType_; + } result.bitField0_ |= to_bitField0_; } @@ -13380,6 +13626,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ReasoningEngineSpec othe bitField0_ |= 0x00000040; onChanged(); } + if (other.identityType_ != 0) { + setIdentityTypeValue(other.getIdentityTypeValue()); + } switch (other.getDeploymentSourceCase()) { case SOURCE_CODE_SPEC: { @@ -13467,6 +13716,12 @@ public Builder mergeFrom( deploymentSourceCase_ = 11; break; } // case 90 + case 96: + { + identityType_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 96 case 122: { input.readMessage( @@ -15161,6 +15416,129 @@ public Builder setAgentFrameworkBytes(com.google.protobuf.ByteString value) { return this; } + private int identityType_ = 0; + + /** + * + * + *
+     * Optional. The identity type to use for the Reasoning Engine. If not
+     * specified, the `service_account` field will be used if set, otherwise the
+     * default Vertex AI Reasoning Engine Service Agent in the project will be
+     * used.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec.IdentityType identity_type = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for identityType. + */ + @java.lang.Override + public int getIdentityTypeValue() { + return identityType_; + } + + /** + * + * + *
+     * Optional. The identity type to use for the Reasoning Engine. If not
+     * specified, the `service_account` field will be used if set, otherwise the
+     * default Vertex AI Reasoning Engine Service Agent in the project will be
+     * used.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec.IdentityType identity_type = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for identityType to set. + * @return This builder for chaining. + */ + public Builder setIdentityTypeValue(int value) { + identityType_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The identity type to use for the Reasoning Engine. If not
+     * specified, the `service_account` field will be used if set, otherwise the
+     * default Vertex AI Reasoning Engine Service Agent in the project will be
+     * used.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec.IdentityType identity_type = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The identityType. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ReasoningEngineSpec.IdentityType getIdentityType() { + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.IdentityType result = + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.IdentityType.forNumber(identityType_); + return result == null + ? com.google.cloud.aiplatform.v1.ReasoningEngineSpec.IdentityType.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Optional. The identity type to use for the Reasoning Engine. If not
+     * specified, the `service_account` field will be used if set, otherwise the
+     * default Vertex AI Reasoning Engine Service Agent in the project will be
+     * used.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec.IdentityType identity_type = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The identityType to set. + * @return This builder for chaining. + */ + public Builder setIdentityType( + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.IdentityType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + identityType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The identity type to use for the Reasoning Engine. If not
+     * specified, the `service_account` field will be used if set, otherwise the
+     * default Vertex AI Reasoning Engine Service Agent in the project will be
+     * used.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec.IdentityType identity_type = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearIdentityType() { + bitField0_ = (bitField0_ & ~0x00000080); + identityType_ = 0; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.ReasoningEngineSpec) } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineSpecOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineSpecOrBuilder.java index ca1f8a92a605..60e10338a690 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineSpecOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineSpecOrBuilder.java @@ -358,5 +358,41 @@ public interface ReasoningEngineSpecOrBuilder */ com.google.protobuf.ByteString getAgentFrameworkBytes(); + /** + * + * + *
+   * Optional. The identity type to use for the Reasoning Engine. If not
+   * specified, the `service_account` field will be used if set, otherwise the
+   * default Vertex AI Reasoning Engine Service Agent in the project will be
+   * used.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec.IdentityType identity_type = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for identityType. + */ + int getIdentityTypeValue(); + + /** + * + * + *
+   * Optional. The identity type to use for the Reasoning Engine. If not
+   * specified, the `service_account` field will be used if set, otherwise the
+   * default Vertex AI Reasoning Engine Service Agent in the project will be
+   * used.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec.IdentityType identity_type = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The identityType. + */ + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.IdentityType getIdentityType(); + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.DeploymentSourceCase getDeploymentSourceCase(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/reasoning_engine.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/reasoning_engine.proto index e17271219082..80c8b3bad95d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/reasoning_engine.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/reasoning_engine.proto @@ -210,6 +210,22 @@ message ReasoningEngineSpec { string image_uri = 1 [(google.api.field_behavior) = REQUIRED]; } + // The identity type to use for the Reasoning Engine. + enum IdentityType { + // Default value. Use a custom service account if the `service_account` + // field is set, otherwise use the default Vertex AI Reasoning Engine + // Service Agent in the project. Same behavior as SERVICE_ACCOUNT. + IDENTITY_TYPE_UNSPECIFIED = 0; + + // Use a custom service account if the `service_account` field is set, + // otherwise use the default Vertex AI Reasoning Engine Service Agent in the + // project. + SERVICE_ACCOUNT = 2; + + // Use Agent Identity. The `service_account` field must not be set. + AGENT_IDENTITY = 3; + } + // Defines the source for the deployment. // The `package_spec` field should not be set if `deployment_source` is // specified. @@ -248,6 +264,12 @@ message ReasoningEngineSpec { // Currently supported values: "google-adk", "langchain", "langgraph", "ag2", // "llama-index", "custom". string agent_framework = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The identity type to use for the Reasoning Engine. If not + // specified, the `service_account` field will be used if set, otherwise the + // default Vertex AI Reasoning Engine Service Agent in the project will be + // used. + IdentityType identity_type = 12 [(google.api.field_behavior) = OPTIONAL]; } // ReasoningEngine provides a customizable runtime for models to determine diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineProto.java index 86fb0a49e7b2..b18f36db06b4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineProto.java @@ -153,7 +153,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "v_var.proto\0328google/cloud/aiplatform/v1b" + "eta1/service_networking.proto\032\036google/pr" + "otobuf/duration.proto\032\034google/protobuf/s" - + "truct.proto\032\037google/protobuf/timestamp.proto\"\272\023\n" + + "truct.proto\032\037google/protobuf/timestamp.proto\"\361\024\n" + "\023ReasoningEngineSpec\022_\n" + "\020source_code_spec\030\013 \001(\0132C.google.cloud.aiplatform" + ".v1beta1.ReasoningEngineSpec.SourceCodeSpecH\000\022\\\n" @@ -165,23 +165,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017deployment_spec\030\004 \001(\0132C.google.cloud.aiplatform.v" + "1beta1.ReasoningEngineSpec.DeploymentSpecB\003\340A\001\0223\n\r" + "class_methods\030\003 \003(\0132\027.google.protobuf.StructB\003\340A\001\022\034\n" - + "\017agent_framework\030\005 \001(\tB\003\340A\001\032\230\001\n" + + "\017agent_framework\030\005 \001(\tB\003\340A\001\022]\n\r" + + "identity_type\030\014 \001(\0162A.googl" + + "e.cloud.aiplatform.v1beta1.ReasoningEngineSpec.IdentityTypeB\003\340A\001\032\230\001\n" + "\013PackageSpec\022\"\n" + "\025pickle_object_gcs_uri\030\001 \001(\tB\003\340A\001\022%\n" + "\030dependency_files_gcs_uri\030\002 \001(\tB\003\340A\001\022!\n" + "\024requirements_gcs_uri\030\003 \001(\tB\003\340A\001\022\033\n" + "\016python_version\030\004 \001(\tB\003\340A\001\032\302\004\n" + "\016DeploymentSpec\0229\n" - + "\003env\030\001 \003(\0132\'.g" - + "oogle.cloud.aiplatform.v1beta1.EnvVarB\003\340A\001\022F\n\n" - + "secret_env\030\002" - + " \003(\0132-.google.cloud.aiplatform.v1beta1.SecretEnvVarB\003\340A\001\022V\n" - + "\024psc_interface_config\030\004 \001(\01323.google.cloud." - + "aiplatform.v1beta1.PscInterfaceConfigB\003\340A\001\022\037\n\r" + + "\003env\030\001" + + " \003(\0132\'.google.cloud.aiplatform.v1beta1.EnvVarB\003\340A\001\022F\n\n" + + "secret_env\030\002 \003(\0132-." + + "google.cloud.aiplatform.v1beta1.SecretEnvVarB\003\340A\001\022V\n" + + "\024psc_interface_config\030\004 \001(\0132" + + "3.google.cloud.aiplatform.v1beta1.PscInterfaceConfigB\003\340A\001\022\037\n\r" + "min_instances\030\005 \001(\005B\003\340A\001H\000\210\001\001\022\037\n\r" + "max_instances\030\006 \001(\005B\003\340A\001H\001\210\001\001\022u\n" - + "\017resource_limits\030\007 \003(\0132W.google.cloud.aiplatform." - + "v1beta1.ReasoningEngineSpec.DeploymentSpec.ResourceLimitsEntryB\003\340A\001\022\'\n" + + "\017resource_limits\030\007 \003(\0132W.google.cl" + + "oud.aiplatform.v1beta1.ReasoningEngineSp" + + "ec.DeploymentSpec.ResourceLimitsEntryB\003\340A\001\022\'\n" + "\025container_concurrency\030\010 \001(\005B\003\340A\001H\002\210\001\001\0325\n" + "\023ResourceLimitsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -190,20 +193,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016_max_instancesB\030\n" + "\026_container_concurrency\032\373\010\n" + "\016SourceCodeSpec\022i\n\r" - + "inline_source\030\001 \001(\0132P.google.clo" - + "ud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.InlineSourceH\000\022~\n" - + "\030developer_connect_source\030\003 \001(\0132Z.google.cloud" - + ".aiplatform.v1beta1.ReasoningEngineSpec." - + "SourceCodeSpec.DeveloperConnectSourceH\000\022e\n" - + "\013python_spec\030\002 \001(\0132N.google.cloud.aipl" - + "atform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.PythonSpecH\001\022h\n\n" - + "image_spec\030\005 \001(\0132M.google.cloud.aiplatform.v1beta1.Rea" - + "soningEngineSpec.SourceCodeSpec.ImageSpecB\003\340A\001H\001\032.\n" + + "inline_source\030\001 \001(\0132P.google.cloud.aiplatform.v1beta1.Rea" + + "soningEngineSpec.SourceCodeSpec.InlineSourceH\000\022~\n" + + "\030developer_connect_source\030\003 \001(\0132Z.google.cloud.aiplatform.v1beta1.Reaso" + + "ningEngineSpec.SourceCodeSpec.DeveloperConnectSourceH\000\022e\n" + + "\013python_spec\030\002 \001(\0132N.go" + + "ogle.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.PythonSpecH\001\022h\n" + + "\n" + + "image_spec\030\005 \001(\0132M.google.cloud.aiplatf" + + "orm.v1beta1.ReasoningEngineSpec.SourceCodeSpec.ImageSpecB\003\340A\001H\001\032.\n" + "\014InlineSource\022\036\n" + "\016source_archive\030\001 \001(\014B\006\340A\002\340A\004\032\264\001\n" + "\tImageSpec\022u\n\n" - + "build_args\030\001 \003(\0132\\.google.cloud.aiplatform.v1b" - + "eta1.ReasoningEngineSpec.SourceCodeSpec.ImageSpec.BuildArgsEntryB\003\340A\001\0320\n" + + "build_args\030\001 \003(\0132\\.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec." + + "SourceCodeSpec.ImageSpec.BuildArgsEntryB\003\340A\001\0320\n" + "\016BuildArgsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\032\231\001\n" @@ -213,8 +216,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003dir\030\002 \001(\tB\003\340A\002\022\025\n" + "\010revision\030\003 \001(\tB\003\340A\002\032\211\001\n" + "\026DeveloperConnectSource\022o\n" - + "\006config\030\001 \001(\0132Z.google.cloud.aiplatform.v1beta1.Reasoni" - + "ngEngineSpec.SourceCodeSpec.DeveloperConnectConfigB\003\340A\002\032\202\001\n\n" + + "\006config\030\001 \001(\0132Z.google.cloud.aiplatform." + + "v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfigB\003\340A\002\032\202\001\n\n" + "PythonSpec\022\024\n" + "\007version\030\001 \001(\tB\003\340A\001\022\036\n" + "\021entrypoint_module\030\002 \001(\tB\003\340A\001\022\036\n" @@ -223,35 +226,41 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006sourceB\017\n\r" + "language_spec\032\'\n\r" + "ContainerSpec\022\026\n" - + "\timage_uri\030\001 \001(\tB\003\340A\002B\023\n" + + "\timage_uri\030\001 \001(\tB\003\340A\002\"V\n" + + "\014IdentityType\022\035\n" + + "\031IDENTITY_TYPE_UNSPECIFIED\020\000\022\023\n" + + "\017SERVICE_ACCOUNT\020\002\022\022\n" + + "\016AGENT_IDENTITY\020\003B\023\n" + "\021deployment_sourceB\022\n" + "\020_service_account\"\377\n\n" + "\017ReasoningEngine\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\031\n" + "\014display_name\030\002 \001(\tB\003\340A\002\022\030\n" + "\013description\030\007 \001(\tB\003\340A\001\022G\n" - + "\004spec\030\003 " - + "\001(\01324.google.cloud.aiplatform.v1beta1.ReasoningEngineSpecB\003\340A\001\0224\n" + + "\004spec\030\003 \001(\01324.google.clou" + + "d.aiplatform.v1beta1.ReasoningEngineSpecB\003\340A\001\0224\n" + "\013create_time\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\005" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\021\n" + "\004etag\030\006 \001(\tB\003\340A\001\022V\n" - + "\014context_spec\030\t" - + " \001(\0132;.google.cloud.aiplatform.v1beta1.ReasoningEngineContextSpecB\003\340A\001\022H\n" + + "\014context_spec\030\t \001(\0132;.goo" + + "gle.cloud.aiplatform.v1beta1.ReasoningEngineContextSpecB\003\340A\001\022H\n" + "\017encryption_spec\030\013" + " \001(\0132/.google.cloud.aiplatform.v1beta1.EncryptionSpec\022L\n" - + "\006labels\030\021" - + " \003(\0132<.google.cloud.aiplatform.v1beta1.ReasoningEngine.LabelsEntry\022[\n" - + "\016traffic_config\030\024 \001(\0132>.google.cloud.aiplatform." - + "v1beta1.ReasoningEngine.TrafficConfigB\003\340A\001\032\275\004\n\r" + + "\006labels\030\021 \003(\0132<.google." + + "cloud.aiplatform.v1beta1.ReasoningEngine.LabelsEntry\022[\n" + + "\016traffic_config\030\024 \001(\0132>.g" + + "oogle.cloud.aiplatform.v1beta1.ReasoningEngine.TrafficConfigB\003\340A\001\032\275\004\n\r" + "TrafficConfig\022v\n" - + "\024traffic_split_manual\030\022 \001(\0132Q.google.cloud.aiplatform.v1b" - + "eta1.ReasoningEngine.TrafficConfig.TrafficSplitManualB\003\340A\001H\000\022\203\001\n" - + "\033traffic_split_always_latest\030\023 \001(\0132W.google.cloud.aiplat" - + "form.v1beta1.ReasoningEngine.TrafficConfig.TrafficSplitAlwaysLatestB\003\340A\001H\000\032\200\002\n" + + "\024traffic_split_manual\030\022 \001(\0132Q.goog" + + "le.cloud.aiplatform.v1beta1.ReasoningEng" + + "ine.TrafficConfig.TrafficSplitManualB\003\340A\001H\000\022\203\001\n" + + "\033traffic_split_always_latest\030\023 \001(" + + "\0132W.google.cloud.aiplatform.v1beta1.Reas" + + "oningEngine.TrafficConfig.TrafficSplitAlwaysLatestB\003\340A\001H\000\032\200\002\n" + "\022TrafficSplitManual\022i\n" - + "\007targets\030\001 \003(\0132X.google.cloud.aiplatform.v1beta1.ReasoningEn" - + "gine.TrafficConfig.TrafficSplitManual.Target\032\177\n" + + "\007targets\030\001 \003(\0132X.google.cloud.aiplatf" + + "orm.v1beta1.ReasoningEngine.TrafficConfig.TrafficSplitManual.Target\032\177\n" + "\006Target\022_\n" + "\025runtime_revision_name\030\001 \001(\tB@\340A\002\372A:\n" + "8aiplatform.googleapis.com/ReasoningEngineRuntimeRevision\022\024\n" @@ -261,27 +270,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:\237\001\352A\233\001\n" - + ")aiplatform.googleapis.com/ReasoningEngine\022Kpro" - + "jects/{project}/locations/{location}/rea" - + "soningEngines/{reasoning_engine}*\020reasoningEngines2\017reasoningEngine\"\354\010\n" + + ")aiplatform.googleapis.com/ReasoningEngine\022Kprojects/{project}/l" + + "ocations/{location}/reasoningEngines/{re" + + "asoning_engine}*\020reasoningEngines2\017reasoningEngine\"\354\010\n" + "\032ReasoningEngineContextSpec\022m\n" - + "\022memory_bank_config\030\001 \001(\0132L.google.cloud.aiplatform.v1beta1" - + ".ReasoningEngineContextSpec.MemoryBankConfigB\003\340A\001\032\336\007\n" + + "\022memory_bank_config\030\001 \001(\0132L.google.c" + + "loud.aiplatform.v1beta1.ReasoningEngineContextSpec.MemoryBankConfigB\003\340A\001\032\336\007\n" + "\020MemoryBankConfig\022}\n" - + "\021generation_config\030\001 \001(\0132].google.cloud.aiplatf" - + "orm.v1beta1.ReasoningEngineContextSpec.M" - + "emoryBankConfig.GenerationConfigB\003\340A\001\022\212\001\n" - + "\030similarity_search_config\030\002 \001(\0132c.googl" - + "e.cloud.aiplatform.v1beta1.ReasoningEngi" - + "neContextSpec.MemoryBankConfig.SimilaritySearchConfigB\003\340A\001\022o\n\n" - + "ttl_config\030\005 \001(\0132V.google.cloud.aiplatform.v1beta1.Reasoni" - + "ngEngineContextSpec.MemoryBankConfig.TtlConfigB\003\340A\001\032\236\003\n" + + "\021generation_config\030\001 \001(\0132].google.cloud.aiplatform.v1beta1.Reaso" + + "ningEngineContextSpec.MemoryBankConfig.GenerationConfigB\003\340A\001\022\212\001\n" + + "\030similarity_search_config\030\002 \001(\0132c.google.cloud.aiplatfor" + + "m.v1beta1.ReasoningEngineContextSpec.Mem" + + "oryBankConfig.SimilaritySearchConfigB\003\340A\001\022o\n\n" + + "ttl_config\030\005 \001(\0132V.google.cloud.aip" + + "latform.v1beta1.ReasoningEngineContextSpec.MemoryBankConfig.TtlConfigB\003\340A\001\032\236\003\n" + "\tTtlConfig\0225\n" + "\013default_ttl\030\001" + " \001(\0132\031.google.protobuf.DurationB\003\340A\001H\000\022\214\001\n" - + "\023granular_ttl_config\030\002 \001(\0132h.google." - + "cloud.aiplatform.v1beta1.ReasoningEngine" - + "ContextSpec.MemoryBankConfig.TtlConfig.GranularTtlConfigB\003\340A\001H\000\032\303\001\n" + + "\023granular_ttl_config\030\002 \001(\0132h.google.cloud.aiplatform." + + "v1beta1.ReasoningEngineContextSpec.Memor" + + "yBankConfig.TtlConfig.GranularTtlConfigB\003\340A\001H\000\032\303\001\n" + "\021GranularTtlConfig\0222\n\n" + "create_ttl\030\001 \001(\0132\031.google.protobuf.DurationB\003\340A\001\022<\n" + "\024generate_created_ttl\030\002" @@ -295,14 +303,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026SimilaritySearchConfig\022C\n" + "\017embedding_model\030\001 \001(\tB*\340A\002\372A$\n" + "\"aiplatform.googleapis.com/EndpointB\215\003\n" - + "#com.google.cloud.aiplatform.v1beta1B\024ReasoningEngineProtoP\001ZCcloud.google" - + ".com/go/aiplatform/apiv1beta1/aiplatform" - + "pb;aiplatformpb\252\002\037Google.Cloud.AIPlatfor" - + "m.V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1be" - + "ta1\352\002\"Google::Cloud::AIPlatform::V1beta1\352A\236\001\n" - + "1developerconnect.googleapis.com/GitRepositoryLink\022iprojects/{project}/loca" - + "tions/{location}/connections/{connection}/gitRepositoryLinks/{git_repository_lin" - + "k}b\006proto3" + + "#com.google.cloud.aiplatform.v1beta1B\024ReasoningEngi" + + "neProtoP\001ZCcloud.google.com/go/aiplatfor" + + "m/apiv1beta1/aiplatformpb;aiplatformpb\252\002" + + "\037Google.Cloud.AIPlatform.V1Beta1\312\002\037Googl" + + "e\\Cloud\\AIPlatform\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1\352A\236\001\n" + + "1developerconnect.googleapis.com/GitRepositoryLink\022i" + + "projects/{project}/locations/{location}/connections/{connection}/gitRepositoryLi" + + "nks/{git_repository_link}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -330,6 +338,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DeploymentSpec", "ClassMethods", "AgentFramework", + "IdentityType", "DeploymentSource", }); internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_PackageSpec_descriptor = diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineSpec.java index aa958d816ead..b31c7a1408be 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineSpec.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineSpec.java @@ -55,6 +55,7 @@ private ReasoningEngineSpec() { serviceAccount_ = ""; classMethods_ = java.util.Collections.emptyList(); agentFramework_ = ""; + identityType_ = 0; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -72,6 +73,185 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.Builder.class); } + /** + * + * + *
+   * The identity type to use for the Reasoning Engine.
+   * 
+ * + * Protobuf enum {@code google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.IdentityType} + */ + public enum IdentityType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value. Use a custom service account if the `service_account`
+     * field is set, otherwise use the default Vertex AI Reasoning Engine
+     * Service Agent in the project. Same behavior as SERVICE_ACCOUNT.
+     * 
+ * + * IDENTITY_TYPE_UNSPECIFIED = 0; + */ + IDENTITY_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Use a custom service account if the `service_account` field is set,
+     * otherwise use the default Vertex AI Reasoning Engine Service Agent in the
+     * project.
+     * 
+ * + * SERVICE_ACCOUNT = 2; + */ + SERVICE_ACCOUNT(2), + /** + * + * + *
+     * Use Agent Identity. The `service_account` field must not be set.
+     * 
+ * + * AGENT_IDENTITY = 3; + */ + AGENT_IDENTITY(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "IdentityType"); + } + + /** + * + * + *
+     * Default value. Use a custom service account if the `service_account`
+     * field is set, otherwise use the default Vertex AI Reasoning Engine
+     * Service Agent in the project. Same behavior as SERVICE_ACCOUNT.
+     * 
+ * + * IDENTITY_TYPE_UNSPECIFIED = 0; + */ + public static final int IDENTITY_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Use a custom service account if the `service_account` field is set,
+     * otherwise use the default Vertex AI Reasoning Engine Service Agent in the
+     * project.
+     * 
+ * + * SERVICE_ACCOUNT = 2; + */ + public static final int SERVICE_ACCOUNT_VALUE = 2; + + /** + * + * + *
+     * Use Agent Identity. The `service_account` field must not be set.
+     * 
+ * + * AGENT_IDENTITY = 3; + */ + public static final int AGENT_IDENTITY_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static IdentityType 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 IdentityType forNumber(int value) { + switch (value) { + case 0: + return IDENTITY_TYPE_UNSPECIFIED; + case 2: + return SERVICE_ACCOUNT; + case 3: + return AGENT_IDENTITY; + 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 IdentityType findValueByNumber(int number) { + return IdentityType.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.aiplatform.v1beta1.ReasoningEngineSpec.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final IdentityType[] VALUES = values(); + + public static IdentityType 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 IdentityType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.IdentityType) + } + public interface PackageSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.PackageSpec) @@ -13053,6 +13233,56 @@ public com.google.protobuf.ByteString getAgentFrameworkBytes() { } } + public static final int IDENTITY_TYPE_FIELD_NUMBER = 12; + private int identityType_ = 0; + + /** + * + * + *
+   * Optional. The identity type to use for the Reasoning Engine. If not
+   * specified, the `service_account` field will be used if set, otherwise the
+   * default Vertex AI Reasoning Engine Service Agent in the project will be
+   * used.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.IdentityType identity_type = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for identityType. + */ + @java.lang.Override + public int getIdentityTypeValue() { + return identityType_; + } + + /** + * + * + *
+   * Optional. The identity type to use for the Reasoning Engine. If not
+   * specified, the `service_account` field will be used if set, otherwise the
+   * default Vertex AI Reasoning Engine Service Agent in the project will be
+   * used.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.IdentityType identity_type = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The identityType. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.IdentityType getIdentityType() { + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.IdentityType result = + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.IdentityType.forNumber( + identityType_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.IdentityType.UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -13088,6 +13318,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io (com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec) deploymentSource_); } + if (identityType_ + != com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.IdentityType + .IDENTITY_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(12, identityType_); + } if (deploymentSourceCase_ == 15) { output.writeMessage( 15, @@ -13125,6 +13361,12 @@ public int getSerializedSize() { (com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec) deploymentSource_); } + if (identityType_ + != com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.IdentityType + .IDENTITY_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, identityType_); + } if (deploymentSourceCase_ == 15) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( @@ -13162,6 +13404,7 @@ public boolean equals(final java.lang.Object obj) { } if (!getClassMethodsList().equals(other.getClassMethodsList())) return false; if (!getAgentFramework().equals(other.getAgentFramework())) return false; + if (identityType_ != other.identityType_) return false; if (!getDeploymentSourceCase().equals(other.getDeploymentSourceCase())) return false; switch (deploymentSourceCase_) { case 11: @@ -13202,6 +13445,8 @@ public int hashCode() { } hash = (37 * hash) + AGENT_FRAMEWORK_FIELD_NUMBER; hash = (53 * hash) + getAgentFramework().hashCode(); + hash = (37 * hash) + IDENTITY_TYPE_FIELD_NUMBER; + hash = (53 * hash) + identityType_; switch (deploymentSourceCase_) { case 11: hash = (37 * hash) + SOURCE_CODE_SPEC_FIELD_NUMBER; @@ -13391,6 +13636,7 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000020); agentFramework_ = ""; + identityType_ = 0; deploymentSourceCase_ = 0; deploymentSource_ = null; return this; @@ -13462,6 +13708,9 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.ReasoningEngineSp if (((from_bitField0_ & 0x00000040) != 0)) { result.agentFramework_ = agentFramework_; } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.identityType_ = identityType_; + } result.bitField0_ |= to_bitField0_; } @@ -13533,6 +13782,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec bitField0_ |= 0x00000040; onChanged(); } + if (other.identityType_ != 0) { + setIdentityTypeValue(other.getIdentityTypeValue()); + } switch (other.getDeploymentSourceCase()) { case SOURCE_CODE_SPEC: { @@ -13620,6 +13872,12 @@ public Builder mergeFrom( deploymentSourceCase_ = 11; break; } // case 90 + case 96: + { + identityType_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 96 case 122: { input.readMessage( @@ -15335,6 +15593,130 @@ public Builder setAgentFrameworkBytes(com.google.protobuf.ByteString value) { return this; } + private int identityType_ = 0; + + /** + * + * + *
+     * Optional. The identity type to use for the Reasoning Engine. If not
+     * specified, the `service_account` field will be used if set, otherwise the
+     * default Vertex AI Reasoning Engine Service Agent in the project will be
+     * used.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.IdentityType identity_type = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for identityType. + */ + @java.lang.Override + public int getIdentityTypeValue() { + return identityType_; + } + + /** + * + * + *
+     * Optional. The identity type to use for the Reasoning Engine. If not
+     * specified, the `service_account` field will be used if set, otherwise the
+     * default Vertex AI Reasoning Engine Service Agent in the project will be
+     * used.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.IdentityType identity_type = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for identityType to set. + * @return This builder for chaining. + */ + public Builder setIdentityTypeValue(int value) { + identityType_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The identity type to use for the Reasoning Engine. If not
+     * specified, the `service_account` field will be used if set, otherwise the
+     * default Vertex AI Reasoning Engine Service Agent in the project will be
+     * used.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.IdentityType identity_type = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The identityType. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.IdentityType getIdentityType() { + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.IdentityType result = + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.IdentityType.forNumber( + identityType_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.IdentityType.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Optional. The identity type to use for the Reasoning Engine. If not
+     * specified, the `service_account` field will be used if set, otherwise the
+     * default Vertex AI Reasoning Engine Service Agent in the project will be
+     * used.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.IdentityType identity_type = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The identityType to set. + * @return This builder for chaining. + */ + public Builder setIdentityType( + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.IdentityType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + identityType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The identity type to use for the Reasoning Engine. If not
+     * specified, the `service_account` field will be used if set, otherwise the
+     * default Vertex AI Reasoning Engine Service Agent in the project will be
+     * used.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.IdentityType identity_type = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearIdentityType() { + bitField0_ = (bitField0_ & ~0x00000080); + identityType_ = 0; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.ReasoningEngineSpec) } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineSpecOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineSpecOrBuilder.java index aff3d93ca161..922d1828209f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineSpecOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineSpecOrBuilder.java @@ -365,6 +365,42 @@ public interface ReasoningEngineSpecOrBuilder */ com.google.protobuf.ByteString getAgentFrameworkBytes(); + /** + * + * + *
+   * Optional. The identity type to use for the Reasoning Engine. If not
+   * specified, the `service_account` field will be used if set, otherwise the
+   * default Vertex AI Reasoning Engine Service Agent in the project will be
+   * used.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.IdentityType identity_type = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for identityType. + */ + int getIdentityTypeValue(); + + /** + * + * + *
+   * Optional. The identity type to use for the Reasoning Engine. If not
+   * specified, the `service_account` field will be used if set, otherwise the
+   * default Vertex AI Reasoning Engine Service Agent in the project will be
+   * used.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.IdentityType identity_type = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The identityType. + */ + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.IdentityType getIdentityType(); + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.DeploymentSourceCase getDeploymentSourceCase(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/reasoning_engine.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/reasoning_engine.proto index acbdbacf8f1e..919beef371bc 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/reasoning_engine.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/reasoning_engine.proto @@ -212,6 +212,22 @@ message ReasoningEngineSpec { string image_uri = 1 [(google.api.field_behavior) = REQUIRED]; } + // The identity type to use for the Reasoning Engine. + enum IdentityType { + // Default value. Use a custom service account if the `service_account` + // field is set, otherwise use the default Vertex AI Reasoning Engine + // Service Agent in the project. Same behavior as SERVICE_ACCOUNT. + IDENTITY_TYPE_UNSPECIFIED = 0; + + // Use a custom service account if the `service_account` field is set, + // otherwise use the default Vertex AI Reasoning Engine Service Agent in the + // project. + SERVICE_ACCOUNT = 2; + + // Use Agent Identity. The `service_account` field must not be set. + AGENT_IDENTITY = 3; + } + // Defines the source for the deployment. // The `package_spec` field should not be set if `deployment_source` is // specified. @@ -250,6 +266,12 @@ message ReasoningEngineSpec { // Currently supported values: "google-adk", "langchain", "langgraph", "ag2", // "llama-index", "custom". string agent_framework = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The identity type to use for the Reasoning Engine. If not + // specified, the `service_account` field will be used if set, otherwise the + // default Vertex AI Reasoning Engine Service Agent in the project will be + // used. + IdentityType identity_type = 12 [(google.api.field_behavior) = OPTIONAL]; } // ReasoningEngine provides a customizable runtime for models to determine 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/v1/AgentServiceClient.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/AgentServiceClient.java index 2555a783c586..2da164c479be 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/AgentServiceClient.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/AgentServiceClient.java @@ -1013,8 +1013,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.

                @@ -7851,9 +7850,8 @@ public final UnaryCallable getChangelogCallable( * 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 @@ -7897,9 +7895,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 @@ -7944,9 +7941,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-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/SessionServiceClient.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/SessionServiceClient.java index eee67573da6d..a9f4d039f06d 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/SessionServiceClient.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/SessionServiceClient.java @@ -119,8 +119,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.

                @@ -427,9 +426,8 @@ public final UnaryCallable runSessionCall * 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 @@ -473,9 +471,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 @@ -520,9 +517,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-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/ToolServiceClient.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/ToolServiceClient.java index 765abe5915aa..3890fe2ff648 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/ToolServiceClient.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/ToolServiceClient.java @@ -54,6 +54,7 @@ * ExecuteToolRequest.newBuilder() * .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) * .setArgs(Struct.newBuilder().build()) + * .setMockConfig(MockConfig.newBuilder().build()) * .build(); * ExecuteToolResponse response = toolServiceClient.executeTool(request); * } @@ -114,8 +115,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.

                @@ -263,6 +263,7 @@ public ToolServiceStub getStub() { * ExecuteToolRequest.newBuilder() * .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) * .setArgs(Struct.newBuilder().build()) + * .setMockConfig(MockConfig.newBuilder().build()) * .build(); * ExecuteToolResponse response = toolServiceClient.executeTool(request); * } @@ -292,6 +293,7 @@ public final ExecuteToolResponse executeTool(ExecuteToolRequest request) { * ExecuteToolRequest.newBuilder() * .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) * .setArgs(Struct.newBuilder().build()) + * .setMockConfig(MockConfig.newBuilder().build()) * .build(); * ApiFuture future = * toolServiceClient.executeToolCallable().futureCall(request); @@ -381,6 +383,7 @@ public final RetrieveToolSchemaResponse retrieveToolSchema(RetrieveToolSchemaReq * .setToolset( * ToolsetName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOLSET]").toString()) * .addAllToolIds(new ArrayList()) + * .setBypassPersistenceConfig(true) * .build(); * RetrieveToolsResponse response = toolServiceClient.retrieveTools(request); * } @@ -411,6 +414,7 @@ public final RetrieveToolsResponse retrieveTools(RetrieveToolsRequest request) { * .setToolset( * ToolsetName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOLSET]").toString()) * .addAllToolIds(new ArrayList()) + * .setBypassPersistenceConfig(true) * .build(); * ApiFuture future = * toolServiceClient.retrieveToolsCallable().futureCall(request); @@ -428,9 +432,8 @@ public final UnaryCallable retrieve * 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 @@ -474,9 +477,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 @@ -521,9 +523,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-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/WidgetServiceClient.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/WidgetServiceClient.java index 0692ae2bd31c..cb30408a02f8 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/WidgetServiceClient.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/WidgetServiceClient.java @@ -89,8 +89,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.

                @@ -293,9 +292,8 @@ public final GenerateChatTokenResponse generateChatToken(GenerateChatTokenReques * 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 @@ -339,9 +337,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 @@ -386,9 +383,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-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/package-info.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/package-info.java index 717f98697cb6..bc4f36899a4b 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/package-info.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/package-info.java @@ -77,6 +77,7 @@ * ExecuteToolRequest.newBuilder() * .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) * .setArgs(Struct.newBuilder().build()) + * .setMockConfig(MockConfig.newBuilder().build()) * .build(); * ExecuteToolResponse response = toolServiceClient.executeTool(request); * } 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.v1/reflect-config.json b/java-ces/google-cloud-ces/src/main/resources/META-INF/native-image/com.google.cloud.ces.v1/reflect-config.json index 71fcde3b602f..27dcb987f17f 100644 --- a/java-ces/google-cloud-ces/src/main/resources/META-INF/native-image/com.google.cloud.ces.v1/reflect-config.json +++ b/java-ces/google-cloud-ces/src/main/resources/META-INF/native-image/com.google.cloud.ces.v1/reflect-config.json @@ -629,6 +629,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.ces.v1.AgentCard", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.AgentCard$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.AgentInterface", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.AgentInterface$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.AgentSkill", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.AgentSkill$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.ces.v1.AgentTool", "queryAllDeclaredConstructors": true, @@ -1070,6 +1124,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.ces.v1.ChannelProfile$InstagramConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ChannelProfile$InstagramConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.ces.v1.ChannelProfile$PersonaProperty", "queryAllDeclaredConstructors": true, @@ -1151,6 +1223,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.ces.v1.ChannelProfile$WhatsAppConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ChannelProfile$WhatsAppConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.ces.v1.Chunk", "queryAllDeclaredConstructors": true, @@ -2186,6 +2276,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.ces.v1.ErrorHandlingSettings$EndSessionConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ErrorHandlingSettings$EndSessionConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.ces.v1.ErrorHandlingSettings$ErrorHandlingStrategy", "queryAllDeclaredConstructors": true, @@ -2195,6 +2303,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.ces.v1.ErrorHandlingSettings$FallbackResponseConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ErrorHandlingSettings$FallbackResponseConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.ces.v1.EvaluationMetricsThresholds", "queryAllDeclaredConstructors": true, @@ -2393,6 +2519,69 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.ces.v1.ExperimentConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ExperimentConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ExperimentConfig$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ExperimentConfig$VersionRelease", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ExperimentConfig$VersionRelease$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ExperimentConfig$VersionRelease$TrafficAllocation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ExperimentConfig$VersionRelease$TrafficAllocation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.ces.v1.ExportAppRequest", "queryAllDeclaredConstructors": true, @@ -3050,6 +3239,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.ces.v1.InstagramCredentials", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.InstagramCredentials$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.ces.v1.InterruptionSignal", "queryAllDeclaredConstructors": true, @@ -3482,6 +3689,51 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.ces.v1.McpTool$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.McpToolDefinition", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.McpToolDefinition$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.McpToolOverride", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.McpToolOverride$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.ces.v1.McpToolset", "queryAllDeclaredConstructors": true, @@ -3536,6 +3788,51 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.ces.v1.MockConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.MockConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.MockConfig$UnmatchedToolCallBehavior", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.MockedToolCall", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.MockedToolCall$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.ces.v1.ModelSettings", "queryAllDeclaredConstructors": true, @@ -3869,6 +4166,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.ces.v1.RemoteAgentTool", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.RemoteAgentTool$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.ces.v1.RestoreAppVersionRequest", "queryAllDeclaredConstructors": true, @@ -4733,6 +5048,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.ces.v1.VpcScSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.VpcScSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.ces.v1.WebSearchQuery", "queryAllDeclaredConstructors": true, @@ -4751,6 +5084,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.ces.v1.WhatsAppCredentials", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.WhatsAppCredentials$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.ces.v1.WidgetTool", "queryAllDeclaredConstructors": true, @@ -4796,6 +5147,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.ces.v1.WidgetTool$TextResponseConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.WidgetTool$TextResponseConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.WidgetTool$TextResponseConfig$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.ces.v1.WidgetTool$WidgetType", "queryAllDeclaredConstructors": true, 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/v1/AgentServiceClientHttpJsonTest.java b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/AgentServiceClientHttpJsonTest.java index 3b092d29458f..d67f0e1119c1 100644 --- a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/AgentServiceClientHttpJsonTest.java +++ b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/AgentServiceClientHttpJsonTest.java @@ -45,6 +45,7 @@ import com.google.common.collect.Lists; import com.google.longrunning.Operation; import com.google.protobuf.Any; +import com.google.protobuf.Duration; import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; import com.google.protobuf.Struct; @@ -226,7 +227,9 @@ public void getAppTest() throws Exception { .setEtag("etag3123477") .setDeploymentCount(2081851157) .setClientCertificateSettings(ClientCertificateSettings.newBuilder().build()) + .setVpcScSettings(VpcScSettings.newBuilder().build()) .setLocked(true) + .addAllValidationErrors(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -294,7 +297,9 @@ public void getAppTest2() throws Exception { .setEtag("etag3123477") .setDeploymentCount(2081851157) .setClientCertificateSettings(ClientCertificateSettings.newBuilder().build()) + .setVpcScSettings(VpcScSettings.newBuilder().build()) .setLocked(true) + .addAllValidationErrors(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -362,7 +367,9 @@ public void createAppTest() throws Exception { .setEtag("etag3123477") .setDeploymentCount(2081851157) .setClientCertificateSettings(ClientCertificateSettings.newBuilder().build()) + .setVpcScSettings(VpcScSettings.newBuilder().build()) .setLocked(true) + .addAllValidationErrors(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -437,7 +444,9 @@ public void createAppTest2() throws Exception { .setEtag("etag3123477") .setDeploymentCount(2081851157) .setClientCertificateSettings(ClientCertificateSettings.newBuilder().build()) + .setVpcScSettings(VpcScSettings.newBuilder().build()) .setLocked(true) + .addAllValidationErrors(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -512,7 +521,9 @@ public void createAppTest3() throws Exception { .setEtag("etag3123477") .setDeploymentCount(2081851157) .setClientCertificateSettings(ClientCertificateSettings.newBuilder().build()) + .setVpcScSettings(VpcScSettings.newBuilder().build()) .setLocked(true) + .addAllValidationErrors(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -589,7 +600,9 @@ public void createAppTest4() throws Exception { .setEtag("etag3123477") .setDeploymentCount(2081851157) .setClientCertificateSettings(ClientCertificateSettings.newBuilder().build()) + .setVpcScSettings(VpcScSettings.newBuilder().build()) .setLocked(true) + .addAllValidationErrors(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -666,7 +679,9 @@ public void updateAppTest() throws Exception { .setEtag("etag3123477") .setDeploymentCount(2081851157) .setClientCertificateSettings(ClientCertificateSettings.newBuilder().build()) + .setVpcScSettings(VpcScSettings.newBuilder().build()) .setLocked(true) + .addAllValidationErrors(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -696,7 +711,9 @@ public void updateAppTest() throws Exception { .setEtag("etag3123477") .setDeploymentCount(2081851157) .setClientCertificateSettings(ClientCertificateSettings.newBuilder().build()) + .setVpcScSettings(VpcScSettings.newBuilder().build()) .setLocked(true) + .addAllValidationErrors(new ArrayList()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -752,7 +769,9 @@ public void updateAppExceptionTest() throws Exception { .setEtag("etag3123477") .setDeploymentCount(2081851157) .setClientCertificateSettings(ClientCertificateSettings.newBuilder().build()) + .setVpcScSettings(VpcScSettings.newBuilder().build()) .setLocked(true) + .addAllValidationErrors(new ArrayList()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateApp(app, updateMask); @@ -1176,6 +1195,7 @@ public void getAgentTest() throws Exception { .addAllToolsets(new ArrayList()) .setGeneratedSummary("generatedSummary-323053801") .addAllTransferRules(new ArrayList()) + .addAllValidationErrors(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -1239,6 +1259,7 @@ public void getAgentTest2() throws Exception { .addAllToolsets(new ArrayList()) .setGeneratedSummary("generatedSummary-323053801") .addAllTransferRules(new ArrayList()) + .addAllValidationErrors(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -1302,6 +1323,7 @@ public void createAgentTest() throws Exception { .addAllToolsets(new ArrayList()) .setGeneratedSummary("generatedSummary-323053801") .addAllTransferRules(new ArrayList()) + .addAllValidationErrors(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -1367,6 +1389,7 @@ public void createAgentTest2() throws Exception { .addAllToolsets(new ArrayList()) .setGeneratedSummary("generatedSummary-323053801") .addAllTransferRules(new ArrayList()) + .addAllValidationErrors(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -1432,6 +1455,7 @@ public void createAgentTest3() throws Exception { .addAllToolsets(new ArrayList()) .setGeneratedSummary("generatedSummary-323053801") .addAllTransferRules(new ArrayList()) + .addAllValidationErrors(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -1499,6 +1523,7 @@ public void createAgentTest4() throws Exception { .addAllToolsets(new ArrayList()) .setGeneratedSummary("generatedSummary-323053801") .addAllTransferRules(new ArrayList()) + .addAllValidationErrors(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -1566,6 +1591,7 @@ public void updateAgentTest() throws Exception { .addAllToolsets(new ArrayList()) .setGeneratedSummary("generatedSummary-323053801") .addAllTransferRules(new ArrayList()) + .addAllValidationErrors(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -1591,6 +1617,7 @@ public void updateAgentTest() throws Exception { .addAllToolsets(new ArrayList()) .setGeneratedSummary("generatedSummary-323053801") .addAllTransferRules(new ArrayList()) + .addAllValidationErrors(new ArrayList()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -1642,6 +1669,7 @@ public void updateAgentExceptionTest() throws Exception { .addAllToolsets(new ArrayList()) .setGeneratedSummary("generatedSummary-323053801") .addAllTransferRules(new ArrayList()) + .addAllValidationErrors(new ArrayList()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateAgent(agent, updateMask); @@ -2418,6 +2446,7 @@ public void getToolTest() throws Exception { .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOL]").toString()) .setDisplayName("displayName1714148973") .setExecutionType(ExecutionType.forNumber(0)) + .setTimeout(Duration.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") @@ -2469,6 +2498,7 @@ public void getToolTest2() throws Exception { .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOL]").toString()) .setDisplayName("displayName1714148973") .setExecutionType(ExecutionType.forNumber(0)) + .setTimeout(Duration.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") @@ -2928,6 +2958,7 @@ public void createToolTest() throws Exception { .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOL]").toString()) .setDisplayName("displayName1714148973") .setExecutionType(ExecutionType.forNumber(0)) + .setTimeout(Duration.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") @@ -2981,6 +3012,7 @@ public void createToolTest2() throws Exception { .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOL]").toString()) .setDisplayName("displayName1714148973") .setExecutionType(ExecutionType.forNumber(0)) + .setTimeout(Duration.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") @@ -3034,6 +3066,7 @@ public void createToolTest3() throws Exception { .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOL]").toString()) .setDisplayName("displayName1714148973") .setExecutionType(ExecutionType.forNumber(0)) + .setTimeout(Duration.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") @@ -3089,6 +3122,7 @@ public void createToolTest4() throws Exception { .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOL]").toString()) .setDisplayName("displayName1714148973") .setExecutionType(ExecutionType.forNumber(0)) + .setTimeout(Duration.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") @@ -3144,6 +3178,7 @@ public void updateToolTest() throws Exception { .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOL]").toString()) .setDisplayName("displayName1714148973") .setExecutionType(ExecutionType.forNumber(0)) + .setTimeout(Duration.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") @@ -3157,6 +3192,7 @@ public void updateToolTest() throws Exception { .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOL]").toString()) .setDisplayName("displayName1714148973") .setExecutionType(ExecutionType.forNumber(0)) + .setTimeout(Duration.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") @@ -3196,6 +3232,7 @@ public void updateToolExceptionTest() throws Exception { .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOL]").toString()) .setDisplayName("displayName1714148973") .setExecutionType(ExecutionType.forNumber(0)) + .setTimeout(Duration.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") @@ -3979,6 +4016,9 @@ public void getDeploymentTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") + .setExperimentConfig(ExperimentConfig.newBuilder().build()) + .setWhatsappCredentials(WhatsAppCredentials.newBuilder().build()) + .setInstagramCredentials(InstagramCredentials.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -4031,6 +4071,9 @@ public void getDeploymentTest2() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") + .setExperimentConfig(ExperimentConfig.newBuilder().build()) + .setWhatsappCredentials(WhatsAppCredentials.newBuilder().build()) + .setInstagramCredentials(InstagramCredentials.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -4085,6 +4128,9 @@ public void createDeploymentTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") + .setExperimentConfig(ExperimentConfig.newBuilder().build()) + .setWhatsappCredentials(WhatsAppCredentials.newBuilder().build()) + .setInstagramCredentials(InstagramCredentials.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -4139,6 +4185,9 @@ public void createDeploymentTest2() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") + .setExperimentConfig(ExperimentConfig.newBuilder().build()) + .setWhatsappCredentials(WhatsAppCredentials.newBuilder().build()) + .setInstagramCredentials(InstagramCredentials.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -4193,6 +4242,9 @@ public void createDeploymentTest3() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") + .setExperimentConfig(ExperimentConfig.newBuilder().build()) + .setWhatsappCredentials(WhatsAppCredentials.newBuilder().build()) + .setInstagramCredentials(InstagramCredentials.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -4249,6 +4301,9 @@ public void createDeploymentTest4() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") + .setExperimentConfig(ExperimentConfig.newBuilder().build()) + .setWhatsappCredentials(WhatsAppCredentials.newBuilder().build()) + .setInstagramCredentials(InstagramCredentials.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -4305,6 +4360,9 @@ public void updateDeploymentTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") + .setExperimentConfig(ExperimentConfig.newBuilder().build()) + .setWhatsappCredentials(WhatsAppCredentials.newBuilder().build()) + .setInstagramCredentials(InstagramCredentials.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -4319,6 +4377,9 @@ public void updateDeploymentTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") + .setExperimentConfig(ExperimentConfig.newBuilder().build()) + .setWhatsappCredentials(WhatsAppCredentials.newBuilder().build()) + .setInstagramCredentials(InstagramCredentials.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -4359,6 +4420,9 @@ public void updateDeploymentExceptionTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .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); @@ -4557,6 +4621,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") @@ -4608,6 +4673,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") @@ -4661,6 +4727,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") @@ -4714,6 +4781,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") @@ -4767,6 +4835,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") @@ -4822,6 +4891,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") @@ -4877,6 +4947,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") @@ -4890,6 +4961,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") @@ -4929,6 +5001,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/v1/AgentServiceClientTest.java b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/AgentServiceClientTest.java index fa6df5f5e466..a98d8ce4e900 100644 --- a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/AgentServiceClientTest.java +++ b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/AgentServiceClientTest.java @@ -44,6 +44,7 @@ import com.google.longrunning.Operation; import com.google.protobuf.AbstractMessage; import com.google.protobuf.Any; +import com.google.protobuf.Duration; import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; import com.google.protobuf.Struct; @@ -221,7 +222,9 @@ public void getAppTest() throws Exception { .setEtag("etag3123477") .setDeploymentCount(2081851157) .setClientCertificateSettings(ClientCertificateSettings.newBuilder().build()) + .setVpcScSettings(VpcScSettings.newBuilder().build()) .setLocked(true) + .addAllValidationErrors(new ArrayList()) .build(); mockAgentService.addResponse(expectedResponse); @@ -283,7 +286,9 @@ public void getAppTest2() throws Exception { .setEtag("etag3123477") .setDeploymentCount(2081851157) .setClientCertificateSettings(ClientCertificateSettings.newBuilder().build()) + .setVpcScSettings(VpcScSettings.newBuilder().build()) .setLocked(true) + .addAllValidationErrors(new ArrayList()) .build(); mockAgentService.addResponse(expectedResponse); @@ -345,7 +350,9 @@ public void createAppTest() throws Exception { .setEtag("etag3123477") .setDeploymentCount(2081851157) .setClientCertificateSettings(ClientCertificateSettings.newBuilder().build()) + .setVpcScSettings(VpcScSettings.newBuilder().build()) .setLocked(true) + .addAllValidationErrors(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -418,7 +425,9 @@ public void createAppTest2() throws Exception { .setEtag("etag3123477") .setDeploymentCount(2081851157) .setClientCertificateSettings(ClientCertificateSettings.newBuilder().build()) + .setVpcScSettings(VpcScSettings.newBuilder().build()) .setLocked(true) + .addAllValidationErrors(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -491,7 +500,9 @@ public void createAppTest3() throws Exception { .setEtag("etag3123477") .setDeploymentCount(2081851157) .setClientCertificateSettings(ClientCertificateSettings.newBuilder().build()) + .setVpcScSettings(VpcScSettings.newBuilder().build()) .setLocked(true) + .addAllValidationErrors(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -567,7 +578,9 @@ public void createAppTest4() throws Exception { .setEtag("etag3123477") .setDeploymentCount(2081851157) .setClientCertificateSettings(ClientCertificateSettings.newBuilder().build()) + .setVpcScSettings(VpcScSettings.newBuilder().build()) .setLocked(true) + .addAllValidationErrors(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -643,7 +656,9 @@ public void updateAppTest() throws Exception { .setEtag("etag3123477") .setDeploymentCount(2081851157) .setClientCertificateSettings(ClientCertificateSettings.newBuilder().build()) + .setVpcScSettings(VpcScSettings.newBuilder().build()) .setLocked(true) + .addAllValidationErrors(new ArrayList()) .build(); mockAgentService.addResponse(expectedResponse); @@ -1068,6 +1083,7 @@ public void getAgentTest() throws Exception { .addAllToolsets(new ArrayList()) .setGeneratedSummary("generatedSummary-323053801") .addAllTransferRules(new ArrayList()) + .addAllValidationErrors(new ArrayList()) .build(); mockAgentService.addResponse(expectedResponse); @@ -1125,6 +1141,7 @@ public void getAgentTest2() throws Exception { .addAllToolsets(new ArrayList()) .setGeneratedSummary("generatedSummary-323053801") .addAllTransferRules(new ArrayList()) + .addAllValidationErrors(new ArrayList()) .build(); mockAgentService.addResponse(expectedResponse); @@ -1182,6 +1199,7 @@ public void createAgentTest() throws Exception { .addAllToolsets(new ArrayList()) .setGeneratedSummary("generatedSummary-323053801") .addAllTransferRules(new ArrayList()) + .addAllValidationErrors(new ArrayList()) .build(); mockAgentService.addResponse(expectedResponse); @@ -1242,6 +1260,7 @@ public void createAgentTest2() throws Exception { .addAllToolsets(new ArrayList()) .setGeneratedSummary("generatedSummary-323053801") .addAllTransferRules(new ArrayList()) + .addAllValidationErrors(new ArrayList()) .build(); mockAgentService.addResponse(expectedResponse); @@ -1302,6 +1321,7 @@ public void createAgentTest3() throws Exception { .addAllToolsets(new ArrayList()) .setGeneratedSummary("generatedSummary-323053801") .addAllTransferRules(new ArrayList()) + .addAllValidationErrors(new ArrayList()) .build(); mockAgentService.addResponse(expectedResponse); @@ -1365,6 +1385,7 @@ public void createAgentTest4() throws Exception { .addAllToolsets(new ArrayList()) .setGeneratedSummary("generatedSummary-323053801") .addAllTransferRules(new ArrayList()) + .addAllValidationErrors(new ArrayList()) .build(); mockAgentService.addResponse(expectedResponse); @@ -1428,6 +1449,7 @@ public void updateAgentTest() throws Exception { .addAllToolsets(new ArrayList()) .setGeneratedSummary("generatedSummary-323053801") .addAllTransferRules(new ArrayList()) + .addAllValidationErrors(new ArrayList()) .build(); mockAgentService.addResponse(expectedResponse); @@ -2126,6 +2148,7 @@ public void getToolTest() throws Exception { .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOL]").toString()) .setDisplayName("displayName1714148973") .setExecutionType(ExecutionType.forNumber(0)) + .setTimeout(Duration.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") @@ -2171,6 +2194,7 @@ public void getToolTest2() throws Exception { .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOL]").toString()) .setDisplayName("displayName1714148973") .setExecutionType(ExecutionType.forNumber(0)) + .setTimeout(Duration.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") @@ -2580,6 +2604,7 @@ public void createToolTest() throws Exception { .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOL]").toString()) .setDisplayName("displayName1714148973") .setExecutionType(ExecutionType.forNumber(0)) + .setTimeout(Duration.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") @@ -2628,6 +2653,7 @@ public void createToolTest2() throws Exception { .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOL]").toString()) .setDisplayName("displayName1714148973") .setExecutionType(ExecutionType.forNumber(0)) + .setTimeout(Duration.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") @@ -2676,6 +2702,7 @@ public void createToolTest3() throws Exception { .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOL]").toString()) .setDisplayName("displayName1714148973") .setExecutionType(ExecutionType.forNumber(0)) + .setTimeout(Duration.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") @@ -2727,6 +2754,7 @@ public void createToolTest4() throws Exception { .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOL]").toString()) .setDisplayName("displayName1714148973") .setExecutionType(ExecutionType.forNumber(0)) + .setTimeout(Duration.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") @@ -2778,6 +2806,7 @@ public void updateToolTest() throws Exception { .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOL]").toString()) .setDisplayName("displayName1714148973") .setExecutionType(ExecutionType.forNumber(0)) + .setTimeout(Duration.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") @@ -3480,6 +3509,9 @@ public void getDeploymentTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") + .setExperimentConfig(ExperimentConfig.newBuilder().build()) + .setWhatsappCredentials(WhatsAppCredentials.newBuilder().build()) + .setInstagramCredentials(InstagramCredentials.newBuilder().build()) .build(); mockAgentService.addResponse(expectedResponse); @@ -3526,6 +3558,9 @@ public void getDeploymentTest2() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") + .setExperimentConfig(ExperimentConfig.newBuilder().build()) + .setWhatsappCredentials(WhatsAppCredentials.newBuilder().build()) + .setInstagramCredentials(InstagramCredentials.newBuilder().build()) .build(); mockAgentService.addResponse(expectedResponse); @@ -3572,6 +3607,9 @@ public void createDeploymentTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") + .setExperimentConfig(ExperimentConfig.newBuilder().build()) + .setWhatsappCredentials(WhatsAppCredentials.newBuilder().build()) + .setInstagramCredentials(InstagramCredentials.newBuilder().build()) .build(); mockAgentService.addResponse(expectedResponse); @@ -3621,6 +3659,9 @@ public void createDeploymentTest2() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") + .setExperimentConfig(ExperimentConfig.newBuilder().build()) + .setWhatsappCredentials(WhatsAppCredentials.newBuilder().build()) + .setInstagramCredentials(InstagramCredentials.newBuilder().build()) .build(); mockAgentService.addResponse(expectedResponse); @@ -3670,6 +3711,9 @@ public void createDeploymentTest3() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") + .setExperimentConfig(ExperimentConfig.newBuilder().build()) + .setWhatsappCredentials(WhatsAppCredentials.newBuilder().build()) + .setInstagramCredentials(InstagramCredentials.newBuilder().build()) .build(); mockAgentService.addResponse(expectedResponse); @@ -3722,6 +3766,9 @@ public void createDeploymentTest4() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") + .setExperimentConfig(ExperimentConfig.newBuilder().build()) + .setWhatsappCredentials(WhatsAppCredentials.newBuilder().build()) + .setInstagramCredentials(InstagramCredentials.newBuilder().build()) .build(); mockAgentService.addResponse(expectedResponse); @@ -3774,6 +3821,9 @@ public void updateDeploymentTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") + .setExperimentConfig(ExperimentConfig.newBuilder().build()) + .setWhatsappCredentials(WhatsAppCredentials.newBuilder().build()) + .setInstagramCredentials(InstagramCredentials.newBuilder().build()) .build(); mockAgentService.addResponse(expectedResponse); @@ -3973,6 +4023,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") @@ -4018,6 +4069,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") @@ -4063,6 +4115,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") @@ -4111,6 +4164,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") @@ -4159,6 +4213,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") @@ -4210,6 +4265,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") @@ -4261,6 +4317,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/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/ToolServiceClientHttpJsonTest.java b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/ToolServiceClientHttpJsonTest.java index 4dd54b4cde9d..dea00a39ff39 100644 --- a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/ToolServiceClientHttpJsonTest.java +++ b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/ToolServiceClientHttpJsonTest.java @@ -89,6 +89,8 @@ public void executeToolTest() throws Exception { ExecuteToolResponse.newBuilder() .setResponse(Struct.newBuilder().build()) .setVariables(Struct.newBuilder().build()) + .setCitations(Citations.newBuilder().build()) + .setGoogleSearchSuggestions(GoogleSearchSuggestions.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -96,6 +98,7 @@ public void executeToolTest() throws Exception { ExecuteToolRequest.newBuilder() .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) .setArgs(Struct.newBuilder().build()) + .setMockConfig(MockConfig.newBuilder().build()) .build(); ExecuteToolResponse actualResponse = client.executeTool(request); @@ -128,6 +131,7 @@ public void executeToolExceptionTest() throws Exception { ExecuteToolRequest.newBuilder() .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) .setArgs(Struct.newBuilder().build()) + .setMockConfig(MockConfig.newBuilder().build()) .build(); client.executeTool(request); Assert.fail("No exception raised"); @@ -197,6 +201,7 @@ public void retrieveToolsTest() throws Exception { RetrieveToolsRequest.newBuilder() .setToolset(ToolsetName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOLSET]").toString()) .addAllToolIds(new ArrayList()) + .setBypassPersistenceConfig(true) .build(); RetrieveToolsResponse actualResponse = client.retrieveTools(request); @@ -230,6 +235,7 @@ public void retrieveToolsExceptionTest() throws Exception { .setToolset( ToolsetName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOLSET]").toString()) .addAllToolIds(new ArrayList()) + .setBypassPersistenceConfig(true) .build(); client.retrieveTools(request); Assert.fail("No exception raised"); diff --git a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/ToolServiceClientTest.java b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/ToolServiceClientTest.java index b65ac30d8eca..209b3127cbff 100644 --- a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/ToolServiceClientTest.java +++ b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/ToolServiceClientTest.java @@ -95,6 +95,8 @@ public void executeToolTest() throws Exception { ExecuteToolResponse.newBuilder() .setResponse(Struct.newBuilder().build()) .setVariables(Struct.newBuilder().build()) + .setCitations(Citations.newBuilder().build()) + .setGoogleSearchSuggestions(GoogleSearchSuggestions.newBuilder().build()) .build(); mockToolService.addResponse(expectedResponse); @@ -102,6 +104,7 @@ public void executeToolTest() throws Exception { ExecuteToolRequest.newBuilder() .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) .setArgs(Struct.newBuilder().build()) + .setMockConfig(MockConfig.newBuilder().build()) .build(); ExecuteToolResponse actualResponse = client.executeTool(request); @@ -117,6 +120,7 @@ public void executeToolTest() throws Exception { Assert.assertEquals(request.getContext(), actualRequest.getContext()); Assert.assertEquals(request.getParent(), actualRequest.getParent()); Assert.assertEquals(request.getArgs(), actualRequest.getArgs()); + Assert.assertEquals(request.getMockConfig(), actualRequest.getMockConfig()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -133,6 +137,7 @@ public void executeToolExceptionTest() throws Exception { ExecuteToolRequest.newBuilder() .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) .setArgs(Struct.newBuilder().build()) + .setMockConfig(MockConfig.newBuilder().build()) .build(); client.executeTool(request); Assert.fail("No exception raised"); @@ -198,6 +203,7 @@ public void retrieveToolsTest() throws Exception { RetrieveToolsRequest.newBuilder() .setToolset(ToolsetName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOLSET]").toString()) .addAllToolIds(new ArrayList()) + .setBypassPersistenceConfig(true) .build(); RetrieveToolsResponse actualResponse = client.retrieveTools(request); @@ -209,6 +215,8 @@ public void retrieveToolsTest() throws Exception { Assert.assertEquals(request.getToolset(), actualRequest.getToolset()); Assert.assertEquals(request.getToolIdsList(), actualRequest.getToolIdsList()); + Assert.assertEquals( + request.getBypassPersistenceConfig(), actualRequest.getBypassPersistenceConfig()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -226,6 +234,7 @@ public void retrieveToolsExceptionTest() throws Exception { .setToolset( ToolsetName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOLSET]").toString()) .addAllToolIds(new ArrayList()) + .setBypassPersistenceConfig(true) .build(); client.retrieveTools(request); Assert.fail("No exception raised"); 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-v1/src/main/java/com/google/cloud/ces/v1/Agent.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Agent.java index 4eb273f2552a..1df878053e64 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Agent.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Agent.java @@ -70,6 +70,7 @@ private Agent() { toolsets_ = java.util.Collections.emptyList(); generatedSummary_ = ""; transferRules_ = java.util.Collections.emptyList(); + validationErrors_ = com.google.protobuf.LazyStringArrayList.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -743,6 +744,36 @@ java.lang.String getOutputVariableMappingOrDefault( * @return The respectResponseInterruptionSettings. */ boolean getRespectResponseInterruptionSettings(); + + /** + * + * + *

                +     * Optional. The name of the variable that contains the language code to be
                +     * used for the Dialogflow session. If unspecified, the default language
                +     * code of the Dialogflow agent will be used.
                +     * 
                + * + * string language_code_variable = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The languageCodeVariable. + */ + java.lang.String getLanguageCodeVariable(); + + /** + * + * + *
                +     * Optional. The name of the variable that contains the language code to be
                +     * used for the Dialogflow session. If unspecified, the default language
                +     * code of the Dialogflow agent will be used.
                +     * 
                + * + * string language_code_variable = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for languageCodeVariable. + */ + com.google.protobuf.ByteString getLanguageCodeVariableBytes(); } /** @@ -784,6 +815,7 @@ private RemoteDialogflowAgent() { agent_ = ""; flowId_ = ""; environmentId_ = ""; + languageCodeVariable_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -1265,6 +1297,63 @@ public boolean getRespectResponseInterruptionSettings() { return respectResponseInterruptionSettings_; } + public static final int LANGUAGE_CODE_VARIABLE_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCodeVariable_ = ""; + + /** + * + * + *
                +     * Optional. The name of the variable that contains the language code to be
                +     * used for the Dialogflow session. If unspecified, the default language
                +     * code of the Dialogflow agent will be used.
                +     * 
                + * + * string language_code_variable = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The languageCodeVariable. + */ + @java.lang.Override + public java.lang.String getLanguageCodeVariable() { + java.lang.Object ref = languageCodeVariable_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + languageCodeVariable_ = s; + return s; + } + } + + /** + * + * + *
                +     * Optional. The name of the variable that contains the language code to be
                +     * used for the Dialogflow session. If unspecified, the default language
                +     * code of the Dialogflow agent will be used.
                +     * 
                + * + * string language_code_variable = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for languageCodeVariable. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLanguageCodeVariableBytes() { + java.lang.Object ref = languageCodeVariable_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + languageCodeVariable_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1301,6 +1390,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (respectResponseInterruptionSettings_ != false) { output.writeBool(6, respectResponseInterruptionSettings_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(languageCodeVariable_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, languageCodeVariable_); + } getUnknownFields().writeTo(output); } @@ -1345,6 +1437,9 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeBoolSize( 6, respectResponseInterruptionSettings_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(languageCodeVariable_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, languageCodeVariable_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1370,6 +1465,7 @@ public boolean equals(final java.lang.Object obj) { return false; if (getRespectResponseInterruptionSettings() != other.getRespectResponseInterruptionSettings()) return false; + if (!getLanguageCodeVariable().equals(other.getLanguageCodeVariable())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1399,6 +1495,8 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRespectResponseInterruptionSettings()); + hash = (37 * hash) + LANGUAGE_CODE_VARIABLE_FIELD_NUMBER; + hash = (53 * hash) + getLanguageCodeVariable().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1577,6 +1675,7 @@ public Builder clear() { internalGetMutableInputVariableMapping().clear(); internalGetMutableOutputVariableMapping().clear(); respectResponseInterruptionSettings_ = false; + languageCodeVariable_ = ""; return this; } @@ -1633,6 +1732,9 @@ private void buildPartial0(com.google.cloud.ces.v1.Agent.RemoteDialogflowAgent r if (((from_bitField0_ & 0x00000020) != 0)) { result.respectResponseInterruptionSettings_ = respectResponseInterruptionSettings_; } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.languageCodeVariable_ = languageCodeVariable_; + } } @java.lang.Override @@ -1671,6 +1773,11 @@ public Builder mergeFrom(com.google.cloud.ces.v1.Agent.RemoteDialogflowAgent oth if (other.getRespectResponseInterruptionSettings() != false) { setRespectResponseInterruptionSettings(other.getRespectResponseInterruptionSettings()); } + if (!other.getLanguageCodeVariable().isEmpty()) { + languageCodeVariable_ = other.languageCodeVariable_; + bitField0_ |= 0x00000040; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1749,6 +1856,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000020; break; } // case 48 + case 58: + { + languageCodeVariable_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2626,6 +2739,127 @@ public Builder clearRespectResponseInterruptionSettings() { return this; } + private java.lang.Object languageCodeVariable_ = ""; + + /** + * + * + *
                +       * Optional. The name of the variable that contains the language code to be
                +       * used for the Dialogflow session. If unspecified, the default language
                +       * code of the Dialogflow agent will be used.
                +       * 
                + * + * string language_code_variable = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The languageCodeVariable. + */ + public java.lang.String getLanguageCodeVariable() { + java.lang.Object ref = languageCodeVariable_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + languageCodeVariable_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                +       * Optional. The name of the variable that contains the language code to be
                +       * used for the Dialogflow session. If unspecified, the default language
                +       * code of the Dialogflow agent will be used.
                +       * 
                + * + * string language_code_variable = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for languageCodeVariable. + */ + public com.google.protobuf.ByteString getLanguageCodeVariableBytes() { + java.lang.Object ref = languageCodeVariable_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + languageCodeVariable_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                +       * Optional. The name of the variable that contains the language code to be
                +       * used for the Dialogflow session. If unspecified, the default language
                +       * code of the Dialogflow agent will be used.
                +       * 
                + * + * string language_code_variable = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The languageCodeVariable to set. + * @return This builder for chaining. + */ + public Builder setLanguageCodeVariable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + languageCodeVariable_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
                +       * Optional. The name of the variable that contains the language code to be
                +       * used for the Dialogflow session. If unspecified, the default language
                +       * code of the Dialogflow agent will be used.
                +       * 
                + * + * string language_code_variable = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearLanguageCodeVariable() { + languageCodeVariable_ = getDefaultInstance().getLanguageCodeVariable(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
                +       * Optional. The name of the variable that contains the language code to be
                +       * used for the Dialogflow session. If unspecified, the default language
                +       * code of the Dialogflow agent will be used.
                +       * 
                + * + * string language_code_variable = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for languageCodeVariable to set. + * @return This builder for chaining. + */ + public Builder setLanguageCodeVariableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCodeVariable_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.Agent.RemoteDialogflowAgent) } @@ -5393,6 +5627,82 @@ public com.google.cloud.ces.v1.TransferRuleOrBuilder getTransferRulesOrBuilder(i return transferRules_.get(index); } + public static final int VALIDATION_ERRORS_FIELD_NUMBER = 32; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList validationErrors_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
                +   * Output only. Misconfigurations or errors in the agent that may affect agent
                +   * quality.
                +   * 
                + * + * repeated string validation_errors = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the validationErrors. + */ + public com.google.protobuf.ProtocolStringList getValidationErrorsList() { + return validationErrors_; + } + + /** + * + * + *
                +   * Output only. Misconfigurations or errors in the agent that may affect agent
                +   * quality.
                +   * 
                + * + * repeated string validation_errors = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of validationErrors. + */ + public int getValidationErrorsCount() { + return validationErrors_.size(); + } + + /** + * + * + *
                +   * Output only. Misconfigurations or errors in the agent that may affect agent
                +   * quality.
                +   * 
                + * + * repeated string validation_errors = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The validationErrors at the given index. + */ + public java.lang.String getValidationErrors(int index) { + return validationErrors_.get(index); + } + + /** + * + * + *
                +   * Output only. Misconfigurations or errors in the agent that may affect agent
                +   * quality.
                +   * 
                + * + * repeated string validation_errors = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the validationErrors at the given index. + */ + public com.google.protobuf.ByteString getValidationErrorsBytes(int index) { + return validationErrors_.getByteString(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -5473,6 +5783,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < transferRules_.size(); i++) { output.writeMessage(30, transferRules_.get(i)); } + for (int i = 0; i < validationErrors_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 32, validationErrors_.getRaw(i)); + } getUnknownFields().writeTo(output); } @@ -5575,6 +5888,14 @@ public int getSerializedSize() { for (int i = 0; i < transferRules_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(30, transferRules_.get(i)); } + { + int dataSize = 0; + for (int i = 0; i < validationErrors_.size(); i++) { + dataSize += computeStringSizeNoTag(validationErrors_.getRaw(i)); + } + size += dataSize; + size += 2 * getValidationErrorsList().size(); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -5619,6 +5940,7 @@ public boolean equals(final java.lang.Object obj) { if (!getToolsetsList().equals(other.getToolsetsList())) return false; if (!getGeneratedSummary().equals(other.getGeneratedSummary())) return false; if (!getTransferRulesList().equals(other.getTransferRulesList())) return false; + if (!getValidationErrorsList().equals(other.getValidationErrorsList())) return false; if (!getAgentTypeCase().equals(other.getAgentTypeCase())) return false; switch (agentTypeCase_) { case 26: @@ -5709,6 +6031,10 @@ public int hashCode() { hash = (37 * hash) + TRANSFER_RULES_FIELD_NUMBER; hash = (53 * hash) + getTransferRulesList().hashCode(); } + if (getValidationErrorsCount() > 0) { + hash = (37 * hash) + VALIDATION_ERRORS_FIELD_NUMBER; + hash = (53 * hash) + getValidationErrorsList().hashCode(); + } switch (agentTypeCase_) { case 26: hash = (37 * hash) + LLM_AGENT_FIELD_NUMBER; @@ -5965,6 +6291,7 @@ public Builder clear() { transferRulesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00200000); + validationErrors_ = com.google.protobuf.LazyStringArrayList.emptyList(); agentTypeCase_ = 0; agentType_ = null; return this; @@ -6123,6 +6450,10 @@ private void buildPartial0(com.google.cloud.ces.v1.Agent result) { if (((from_bitField0_ & 0x00100000) != 0)) { result.generatedSummary_ = generatedSummary_; } + if (((from_bitField0_ & 0x00400000) != 0)) { + validationErrors_.makeImmutable(); + result.validationErrors_ = validationErrors_; + } result.bitField0_ |= to_bitField0_; } @@ -6434,6 +6765,16 @@ public Builder mergeFrom(com.google.cloud.ces.v1.Agent other) { } } } + if (!other.validationErrors_.isEmpty()) { + if (validationErrors_.isEmpty()) { + validationErrors_ = other.validationErrors_; + bitField0_ |= 0x00400000; + } else { + ensureValidationErrorsIsMutable(); + validationErrors_.addAll(other.validationErrors_); + } + onChanged(); + } switch (other.getAgentTypeCase()) { case LLM_AGENT: { @@ -6666,6 +7007,13 @@ public Builder mergeFrom( } break; } // case 242 + case 258: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureValidationErrorsIsMutable(); + validationErrors_.add(s); + break; + } // case 258 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -12862,6 +13210,207 @@ public com.google.cloud.ces.v1.TransferRule.Builder addTransferRulesBuilder(int return transferRulesBuilder_; } + private com.google.protobuf.LazyStringArrayList validationErrors_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureValidationErrorsIsMutable() { + if (!validationErrors_.isModifiable()) { + validationErrors_ = new com.google.protobuf.LazyStringArrayList(validationErrors_); + } + bitField0_ |= 0x00400000; + } + + /** + * + * + *
                +     * Output only. Misconfigurations or errors in the agent that may affect agent
                +     * quality.
                +     * 
                + * + * repeated string validation_errors = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the validationErrors. + */ + public com.google.protobuf.ProtocolStringList getValidationErrorsList() { + validationErrors_.makeImmutable(); + return validationErrors_; + } + + /** + * + * + *
                +     * Output only. Misconfigurations or errors in the agent that may affect agent
                +     * quality.
                +     * 
                + * + * repeated string validation_errors = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of validationErrors. + */ + public int getValidationErrorsCount() { + return validationErrors_.size(); + } + + /** + * + * + *
                +     * Output only. Misconfigurations or errors in the agent that may affect agent
                +     * quality.
                +     * 
                + * + * repeated string validation_errors = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The validationErrors at the given index. + */ + public java.lang.String getValidationErrors(int index) { + return validationErrors_.get(index); + } + + /** + * + * + *
                +     * Output only. Misconfigurations or errors in the agent that may affect agent
                +     * quality.
                +     * 
                + * + * repeated string validation_errors = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the validationErrors at the given index. + */ + public com.google.protobuf.ByteString getValidationErrorsBytes(int index) { + return validationErrors_.getByteString(index); + } + + /** + * + * + *
                +     * Output only. Misconfigurations or errors in the agent that may affect agent
                +     * quality.
                +     * 
                + * + * repeated string validation_errors = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index to set the value at. + * @param value The validationErrors to set. + * @return This builder for chaining. + */ + public Builder setValidationErrors(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValidationErrorsIsMutable(); + validationErrors_.set(index, value); + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. Misconfigurations or errors in the agent that may affect agent
                +     * quality.
                +     * 
                + * + * repeated string validation_errors = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The validationErrors to add. + * @return This builder for chaining. + */ + public Builder addValidationErrors(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValidationErrorsIsMutable(); + validationErrors_.add(value); + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. Misconfigurations or errors in the agent that may affect agent
                +     * quality.
                +     * 
                + * + * repeated string validation_errors = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param values The validationErrors to add. + * @return This builder for chaining. + */ + public Builder addAllValidationErrors(java.lang.Iterable values) { + ensureValidationErrorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, validationErrors_); + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. Misconfigurations or errors in the agent that may affect agent
                +     * quality.
                +     * 
                + * + * repeated string validation_errors = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearValidationErrors() { + validationErrors_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00400000); + ; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. Misconfigurations or errors in the agent that may affect agent
                +     * quality.
                +     * 
                + * + * repeated string validation_errors = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes of the validationErrors to add. + * @return This builder for chaining. + */ + public Builder addValidationErrorsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureValidationErrorsIsMutable(); + validationErrors_.add(value); + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.Agent) } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentCard.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentCard.java new file mode 100644 index 000000000000..b0a07dc23838 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentCard.java @@ -0,0 +1,2166 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language 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/v1/agent_card.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
                + * AgentCard conveys key information about a remote agent.
                + * It is a trimmed version of the AgentCard defined in the A2A protocol
                + * https://a2a-protocol.org/dev/specification/#441-agentcard
                + * 
                + * + * Protobuf type {@code google.cloud.ces.v1.AgentCard} + */ +@com.google.protobuf.Generated +public final class AgentCard extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.AgentCard) + AgentCardOrBuilder { + 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= */ "", + "AgentCard"); + } + + // Use AgentCard.newBuilder() to construct. + private AgentCard(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AgentCard() { + name_ = ""; + description_ = ""; + supportedInterfaces_ = java.util.Collections.emptyList(); + version_ = ""; + skills_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentCardProto + .internal_static_google_cloud_ces_v1_AgentCard_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentCardProto + .internal_static_google_cloud_ces_v1_AgentCard_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.AgentCard.class, + com.google.cloud.ces.v1.AgentCard.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                +   * Required. A human-readable name for the agent.
                +   * 
                + * + * 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. A human-readable name for the agent.
                +   * 
                + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
                +   * Required. A description of the agent's domain of action/solution space.
                +   * 
                + * + * string description = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
                +   * Required. A description of the agent's domain of action/solution space.
                +   * 
                + * + * string description = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUPPORTED_INTERFACES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List supportedInterfaces_; + + /** + * + * + *
                +   * Required. Ordered list of supported interfaces. The first entry is
                +   * preferred.
                +   * 
                + * + * + * repeated .google.cloud.ces.v1.AgentInterface supported_interfaces = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List getSupportedInterfacesList() { + return supportedInterfaces_; + } + + /** + * + * + *
                +   * Required. Ordered list of supported interfaces. The first entry is
                +   * preferred.
                +   * 
                + * + * + * repeated .google.cloud.ces.v1.AgentInterface supported_interfaces = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getSupportedInterfacesOrBuilderList() { + return supportedInterfaces_; + } + + /** + * + * + *
                +   * Required. Ordered list of supported interfaces. The first entry is
                +   * preferred.
                +   * 
                + * + * + * repeated .google.cloud.ces.v1.AgentInterface supported_interfaces = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getSupportedInterfacesCount() { + return supportedInterfaces_.size(); + } + + /** + * + * + *
                +   * Required. Ordered list of supported interfaces. The first entry is
                +   * preferred.
                +   * 
                + * + * + * repeated .google.cloud.ces.v1.AgentInterface supported_interfaces = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.AgentInterface getSupportedInterfaces(int index) { + return supportedInterfaces_.get(index); + } + + /** + * + * + *
                +   * Required. Ordered list of supported interfaces. The first entry is
                +   * preferred.
                +   * 
                + * + * + * repeated .google.cloud.ces.v1.AgentInterface supported_interfaces = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.AgentInterfaceOrBuilder getSupportedInterfacesOrBuilder( + int index) { + return supportedInterfaces_.get(index); + } + + public static final int VERSION_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object version_ = ""; + + /** + * + * + *
                +   * Required. The version of the agent.
                +   * 
                + * + * string version = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The version. + */ + @java.lang.Override + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } + } + + /** + * + * + *
                +   * Required. The version of the agent.
                +   * 
                + * + * string version = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for version. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SKILLS_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private java.util.List skills_; + + /** + * + * + *
                +   * Required. Skills represent a unit of ability an agent can perform. This may
                +   * somewhat abstract but represents a more focused set of actions that the
                +   * agent is highly likely to succeed at.
                +   * 
                + * + * + * repeated .google.cloud.ces.v1.AgentSkill skills = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List getSkillsList() { + return skills_; + } + + /** + * + * + *
                +   * Required. Skills represent a unit of ability an agent can perform. This may
                +   * somewhat abstract but represents a more focused set of actions that the
                +   * agent is highly likely to succeed at.
                +   * 
                + * + * + * repeated .google.cloud.ces.v1.AgentSkill skills = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getSkillsOrBuilderList() { + return skills_; + } + + /** + * + * + *
                +   * Required. Skills represent a unit of ability an agent can perform. This may
                +   * somewhat abstract but represents a more focused set of actions that the
                +   * agent is highly likely to succeed at.
                +   * 
                + * + * + * repeated .google.cloud.ces.v1.AgentSkill skills = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getSkillsCount() { + return skills_.size(); + } + + /** + * + * + *
                +   * Required. Skills represent a unit of ability an agent can perform. This may
                +   * somewhat abstract but represents a more focused set of actions that the
                +   * agent is highly likely to succeed at.
                +   * 
                + * + * + * repeated .google.cloud.ces.v1.AgentSkill skills = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.AgentSkill getSkills(int index) { + return skills_.get(index); + } + + /** + * + * + *
                +   * Required. Skills represent a unit of ability an agent can perform. This may
                +   * somewhat abstract but represents a more focused set of actions that the
                +   * agent is highly likely to succeed at.
                +   * 
                + * + * + * repeated .google.cloud.ces.v1.AgentSkill skills = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.AgentSkillOrBuilder getSkillsOrBuilder(int index) { + return skills_.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(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, description_); + } + for (int i = 0; i < supportedInterfaces_.size(); i++) { + output.writeMessage(3, supportedInterfaces_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(version_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, version_); + } + for (int i = 0; i < skills_.size(); i++) { + output.writeMessage(6, skills_.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(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, description_); + } + for (int i = 0; i < supportedInterfaces_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, supportedInterfaces_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(version_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, version_); + } + for (int i = 0; i < skills_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, skills_.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.ces.v1.AgentCard)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.AgentCard other = (com.google.cloud.ces.v1.AgentCard) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getSupportedInterfacesList().equals(other.getSupportedInterfacesList())) return false; + if (!getVersion().equals(other.getVersion())) return false; + if (!getSkillsList().equals(other.getSkillsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (getSupportedInterfacesCount() > 0) { + hash = (37 * hash) + SUPPORTED_INTERFACES_FIELD_NUMBER; + hash = (53 * hash) + getSupportedInterfacesList().hashCode(); + } + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + if (getSkillsCount() > 0) { + hash = (37 * hash) + SKILLS_FIELD_NUMBER; + hash = (53 * hash) + getSkillsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.AgentCard parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.AgentCard parseFrom( + 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.v1.AgentCard parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.AgentCard parseFrom( + com.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.v1.AgentCard parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.AgentCard parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.AgentCard parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.AgentCard parseFrom( + java.io.InputStream 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.v1.AgentCard parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.AgentCard parseDelimitedFrom( + java.io.InputStream 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.v1.AgentCard parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.AgentCard parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, 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.v1.AgentCard prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                +   * AgentCard conveys key information about a remote agent.
                +   * It is a trimmed version of the AgentCard defined in the A2A protocol
                +   * https://a2a-protocol.org/dev/specification/#441-agentcard
                +   * 
                + * + * Protobuf type {@code google.cloud.ces.v1.AgentCard} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.AgentCard) + com.google.cloud.ces.v1.AgentCardOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentCardProto + .internal_static_google_cloud_ces_v1_AgentCard_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentCardProto + .internal_static_google_cloud_ces_v1_AgentCard_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.AgentCard.class, + com.google.cloud.ces.v1.AgentCard.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.AgentCard.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + description_ = ""; + if (supportedInterfacesBuilder_ == null) { + supportedInterfaces_ = java.util.Collections.emptyList(); + } else { + supportedInterfaces_ = null; + supportedInterfacesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + version_ = ""; + if (skillsBuilder_ == null) { + skills_ = java.util.Collections.emptyList(); + } else { + skills_ = null; + skillsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentCardProto + .internal_static_google_cloud_ces_v1_AgentCard_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.AgentCard getDefaultInstanceForType() { + return com.google.cloud.ces.v1.AgentCard.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.AgentCard build() { + com.google.cloud.ces.v1.AgentCard result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.AgentCard buildPartial() { + com.google.cloud.ces.v1.AgentCard result = new com.google.cloud.ces.v1.AgentCard(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.ces.v1.AgentCard result) { + if (supportedInterfacesBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + supportedInterfaces_ = java.util.Collections.unmodifiableList(supportedInterfaces_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.supportedInterfaces_ = supportedInterfaces_; + } else { + result.supportedInterfaces_ = supportedInterfacesBuilder_.build(); + } + if (skillsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + skills_ = java.util.Collections.unmodifiableList(skills_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.skills_ = skills_; + } else { + result.skills_ = skillsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.ces.v1.AgentCard result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.version_ = version_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.AgentCard) { + return mergeFrom((com.google.cloud.ces.v1.AgentCard) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.AgentCard other) { + if (other == com.google.cloud.ces.v1.AgentCard.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (supportedInterfacesBuilder_ == null) { + if (!other.supportedInterfaces_.isEmpty()) { + if (supportedInterfaces_.isEmpty()) { + supportedInterfaces_ = other.supportedInterfaces_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureSupportedInterfacesIsMutable(); + supportedInterfaces_.addAll(other.supportedInterfaces_); + } + onChanged(); + } + } else { + if (!other.supportedInterfaces_.isEmpty()) { + if (supportedInterfacesBuilder_.isEmpty()) { + supportedInterfacesBuilder_.dispose(); + supportedInterfacesBuilder_ = null; + supportedInterfaces_ = other.supportedInterfaces_; + bitField0_ = (bitField0_ & ~0x00000004); + supportedInterfacesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetSupportedInterfacesFieldBuilder() + : null; + } else { + supportedInterfacesBuilder_.addAllMessages(other.supportedInterfaces_); + } + } + } + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (skillsBuilder_ == null) { + if (!other.skills_.isEmpty()) { + if (skills_.isEmpty()) { + skills_ = other.skills_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureSkillsIsMutable(); + skills_.addAll(other.skills_); + } + onChanged(); + } + } else { + if (!other.skills_.isEmpty()) { + if (skillsBuilder_.isEmpty()) { + skillsBuilder_.dispose(); + skillsBuilder_ = null; + skills_ = other.skills_; + bitField0_ = (bitField0_ & ~0x00000010); + skillsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetSkillsFieldBuilder() + : null; + } else { + skillsBuilder_.addAllMessages(other.skills_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + com.google.cloud.ces.v1.AgentInterface m = + input.readMessage( + com.google.cloud.ces.v1.AgentInterface.parser(), extensionRegistry); + if (supportedInterfacesBuilder_ == null) { + ensureSupportedInterfacesIsMutable(); + supportedInterfaces_.add(m); + } else { + supportedInterfacesBuilder_.addMessage(m); + } + break; + } // case 26 + case 42: + { + version_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 50: + { + com.google.cloud.ces.v1.AgentSkill m = + input.readMessage( + com.google.cloud.ces.v1.AgentSkill.parser(), extensionRegistry); + if (skillsBuilder_ == null) { + ensureSkillsIsMutable(); + skills_.add(m); + } else { + skillsBuilder_.addMessage(m); + } + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
                +     * Required. A human-readable name for the agent.
                +     * 
                + * + * 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. A human-readable name for the agent.
                +     * 
                + * + * 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. A human-readable name for the agent.
                +     * 
                + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. A human-readable name for the agent.
                +     * 
                + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. A human-readable name for the agent.
                +     * 
                + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
                +     * Required. A description of the agent's domain of action/solution space.
                +     * 
                + * + * string description = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
                +     * Required. A description of the agent's domain of action/solution space.
                +     * 
                + * + * string description = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
                +     * Required. A description of the agent's domain of action/solution space.
                +     * 
                + * + * string description = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. A description of the agent's domain of action/solution space.
                +     * 
                + * + * string description = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. A description of the agent's domain of action/solution space.
                +     * 
                + * + * string description = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.util.List supportedInterfaces_ = + java.util.Collections.emptyList(); + + private void ensureSupportedInterfacesIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + supportedInterfaces_ = + new java.util.ArrayList(supportedInterfaces_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.AgentInterface, + com.google.cloud.ces.v1.AgentInterface.Builder, + com.google.cloud.ces.v1.AgentInterfaceOrBuilder> + supportedInterfacesBuilder_; + + /** + * + * + *
                +     * Required. Ordered list of supported interfaces. The first entry is
                +     * preferred.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.AgentInterface supported_interfaces = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List getSupportedInterfacesList() { + if (supportedInterfacesBuilder_ == null) { + return java.util.Collections.unmodifiableList(supportedInterfaces_); + } else { + return supportedInterfacesBuilder_.getMessageList(); + } + } + + /** + * + * + *
                +     * Required. Ordered list of supported interfaces. The first entry is
                +     * preferred.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.AgentInterface supported_interfaces = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getSupportedInterfacesCount() { + if (supportedInterfacesBuilder_ == null) { + return supportedInterfaces_.size(); + } else { + return supportedInterfacesBuilder_.getCount(); + } + } + + /** + * + * + *
                +     * Required. Ordered list of supported interfaces. The first entry is
                +     * preferred.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.AgentInterface supported_interfaces = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.AgentInterface getSupportedInterfaces(int index) { + if (supportedInterfacesBuilder_ == null) { + return supportedInterfaces_.get(index); + } else { + return supportedInterfacesBuilder_.getMessage(index); + } + } + + /** + * + * + *
                +     * Required. Ordered list of supported interfaces. The first entry is
                +     * preferred.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.AgentInterface supported_interfaces = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSupportedInterfaces(int index, com.google.cloud.ces.v1.AgentInterface value) { + if (supportedInterfacesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSupportedInterfacesIsMutable(); + supportedInterfaces_.set(index, value); + onChanged(); + } else { + supportedInterfacesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                +     * Required. Ordered list of supported interfaces. The first entry is
                +     * preferred.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.AgentInterface supported_interfaces = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSupportedInterfaces( + int index, com.google.cloud.ces.v1.AgentInterface.Builder builderForValue) { + if (supportedInterfacesBuilder_ == null) { + ensureSupportedInterfacesIsMutable(); + supportedInterfaces_.set(index, builderForValue.build()); + onChanged(); + } else { + supportedInterfacesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                +     * Required. Ordered list of supported interfaces. The first entry is
                +     * preferred.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.AgentInterface supported_interfaces = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addSupportedInterfaces(com.google.cloud.ces.v1.AgentInterface value) { + if (supportedInterfacesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSupportedInterfacesIsMutable(); + supportedInterfaces_.add(value); + onChanged(); + } else { + supportedInterfacesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                +     * Required. Ordered list of supported interfaces. The first entry is
                +     * preferred.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.AgentInterface supported_interfaces = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addSupportedInterfaces(int index, com.google.cloud.ces.v1.AgentInterface value) { + if (supportedInterfacesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSupportedInterfacesIsMutable(); + supportedInterfaces_.add(index, value); + onChanged(); + } else { + supportedInterfacesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                +     * Required. Ordered list of supported interfaces. The first entry is
                +     * preferred.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.AgentInterface supported_interfaces = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addSupportedInterfaces( + com.google.cloud.ces.v1.AgentInterface.Builder builderForValue) { + if (supportedInterfacesBuilder_ == null) { + ensureSupportedInterfacesIsMutable(); + supportedInterfaces_.add(builderForValue.build()); + onChanged(); + } else { + supportedInterfacesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                +     * Required. Ordered list of supported interfaces. The first entry is
                +     * preferred.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.AgentInterface supported_interfaces = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addSupportedInterfaces( + int index, com.google.cloud.ces.v1.AgentInterface.Builder builderForValue) { + if (supportedInterfacesBuilder_ == null) { + ensureSupportedInterfacesIsMutable(); + supportedInterfaces_.add(index, builderForValue.build()); + onChanged(); + } else { + supportedInterfacesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                +     * Required. Ordered list of supported interfaces. The first entry is
                +     * preferred.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.AgentInterface supported_interfaces = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllSupportedInterfaces( + java.lang.Iterable values) { + if (supportedInterfacesBuilder_ == null) { + ensureSupportedInterfacesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, supportedInterfaces_); + onChanged(); + } else { + supportedInterfacesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                +     * Required. Ordered list of supported interfaces. The first entry is
                +     * preferred.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.AgentInterface supported_interfaces = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearSupportedInterfaces() { + if (supportedInterfacesBuilder_ == null) { + supportedInterfaces_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + supportedInterfacesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                +     * Required. Ordered list of supported interfaces. The first entry is
                +     * preferred.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.AgentInterface supported_interfaces = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeSupportedInterfaces(int index) { + if (supportedInterfacesBuilder_ == null) { + ensureSupportedInterfacesIsMutable(); + supportedInterfaces_.remove(index); + onChanged(); + } else { + supportedInterfacesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                +     * Required. Ordered list of supported interfaces. The first entry is
                +     * preferred.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.AgentInterface supported_interfaces = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.AgentInterface.Builder getSupportedInterfacesBuilder(int index) { + return internalGetSupportedInterfacesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                +     * Required. Ordered list of supported interfaces. The first entry is
                +     * preferred.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.AgentInterface supported_interfaces = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.AgentInterfaceOrBuilder getSupportedInterfacesOrBuilder( + int index) { + if (supportedInterfacesBuilder_ == null) { + return supportedInterfaces_.get(index); + } else { + return supportedInterfacesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                +     * Required. Ordered list of supported interfaces. The first entry is
                +     * preferred.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.AgentInterface supported_interfaces = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getSupportedInterfacesOrBuilderList() { + if (supportedInterfacesBuilder_ != null) { + return supportedInterfacesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(supportedInterfaces_); + } + } + + /** + * + * + *
                +     * Required. Ordered list of supported interfaces. The first entry is
                +     * preferred.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.AgentInterface supported_interfaces = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.AgentInterface.Builder addSupportedInterfacesBuilder() { + return internalGetSupportedInterfacesFieldBuilder() + .addBuilder(com.google.cloud.ces.v1.AgentInterface.getDefaultInstance()); + } + + /** + * + * + *
                +     * Required. Ordered list of supported interfaces. The first entry is
                +     * preferred.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.AgentInterface supported_interfaces = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.AgentInterface.Builder addSupportedInterfacesBuilder(int index) { + return internalGetSupportedInterfacesFieldBuilder() + .addBuilder(index, com.google.cloud.ces.v1.AgentInterface.getDefaultInstance()); + } + + /** + * + * + *
                +     * Required. Ordered list of supported interfaces. The first entry is
                +     * preferred.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.AgentInterface supported_interfaces = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getSupportedInterfacesBuilderList() { + return internalGetSupportedInterfacesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.AgentInterface, + com.google.cloud.ces.v1.AgentInterface.Builder, + com.google.cloud.ces.v1.AgentInterfaceOrBuilder> + internalGetSupportedInterfacesFieldBuilder() { + if (supportedInterfacesBuilder_ == null) { + supportedInterfacesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.AgentInterface, + com.google.cloud.ces.v1.AgentInterface.Builder, + com.google.cloud.ces.v1.AgentInterfaceOrBuilder>( + supportedInterfaces_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + supportedInterfaces_ = null; + } + return supportedInterfacesBuilder_; + } + + private java.lang.Object version_ = ""; + + /** + * + * + *
                +     * Required. The version of the agent.
                +     * 
                + * + * string version = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The version. + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                +     * Required. The version of the agent.
                +     * 
                + * + * string version = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for version. + */ + public com.google.protobuf.ByteString getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                +     * Required. The version of the agent.
                +     * 
                + * + * string version = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The version to set. + * @return This builder for chaining. + */ + public Builder setVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + version_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The version of the agent.
                +     * 
                + * + * string version = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearVersion() { + version_ = getDefaultInstance().getVersion(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The version of the agent.
                +     * 
                + * + * string version = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for version to set. + * @return This builder for chaining. + */ + public Builder setVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.util.List skills_ = + java.util.Collections.emptyList(); + + private void ensureSkillsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + skills_ = new java.util.ArrayList(skills_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.AgentSkill, + com.google.cloud.ces.v1.AgentSkill.Builder, + com.google.cloud.ces.v1.AgentSkillOrBuilder> + skillsBuilder_; + + /** + * + * + *
                +     * Required. Skills represent a unit of ability an agent can perform. This may
                +     * somewhat abstract but represents a more focused set of actions that the
                +     * agent is highly likely to succeed at.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.AgentSkill skills = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List getSkillsList() { + if (skillsBuilder_ == null) { + return java.util.Collections.unmodifiableList(skills_); + } else { + return skillsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                +     * Required. Skills represent a unit of ability an agent can perform. This may
                +     * somewhat abstract but represents a more focused set of actions that the
                +     * agent is highly likely to succeed at.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.AgentSkill skills = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getSkillsCount() { + if (skillsBuilder_ == null) { + return skills_.size(); + } else { + return skillsBuilder_.getCount(); + } + } + + /** + * + * + *
                +     * Required. Skills represent a unit of ability an agent can perform. This may
                +     * somewhat abstract but represents a more focused set of actions that the
                +     * agent is highly likely to succeed at.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.AgentSkill skills = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.AgentSkill getSkills(int index) { + if (skillsBuilder_ == null) { + return skills_.get(index); + } else { + return skillsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                +     * Required. Skills represent a unit of ability an agent can perform. This may
                +     * somewhat abstract but represents a more focused set of actions that the
                +     * agent is highly likely to succeed at.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.AgentSkill skills = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSkills(int index, com.google.cloud.ces.v1.AgentSkill value) { + if (skillsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSkillsIsMutable(); + skills_.set(index, value); + onChanged(); + } else { + skillsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                +     * Required. Skills represent a unit of ability an agent can perform. This may
                +     * somewhat abstract but represents a more focused set of actions that the
                +     * agent is highly likely to succeed at.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.AgentSkill skills = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSkills( + int index, com.google.cloud.ces.v1.AgentSkill.Builder builderForValue) { + if (skillsBuilder_ == null) { + ensureSkillsIsMutable(); + skills_.set(index, builderForValue.build()); + onChanged(); + } else { + skillsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                +     * Required. Skills represent a unit of ability an agent can perform. This may
                +     * somewhat abstract but represents a more focused set of actions that the
                +     * agent is highly likely to succeed at.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.AgentSkill skills = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addSkills(com.google.cloud.ces.v1.AgentSkill value) { + if (skillsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSkillsIsMutable(); + skills_.add(value); + onChanged(); + } else { + skillsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                +     * Required. Skills represent a unit of ability an agent can perform. This may
                +     * somewhat abstract but represents a more focused set of actions that the
                +     * agent is highly likely to succeed at.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.AgentSkill skills = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addSkills(int index, com.google.cloud.ces.v1.AgentSkill value) { + if (skillsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSkillsIsMutable(); + skills_.add(index, value); + onChanged(); + } else { + skillsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                +     * Required. Skills represent a unit of ability an agent can perform. This may
                +     * somewhat abstract but represents a more focused set of actions that the
                +     * agent is highly likely to succeed at.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.AgentSkill skills = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addSkills(com.google.cloud.ces.v1.AgentSkill.Builder builderForValue) { + if (skillsBuilder_ == null) { + ensureSkillsIsMutable(); + skills_.add(builderForValue.build()); + onChanged(); + } else { + skillsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                +     * Required. Skills represent a unit of ability an agent can perform. This may
                +     * somewhat abstract but represents a more focused set of actions that the
                +     * agent is highly likely to succeed at.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.AgentSkill skills = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addSkills( + int index, com.google.cloud.ces.v1.AgentSkill.Builder builderForValue) { + if (skillsBuilder_ == null) { + ensureSkillsIsMutable(); + skills_.add(index, builderForValue.build()); + onChanged(); + } else { + skillsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                +     * Required. Skills represent a unit of ability an agent can perform. This may
                +     * somewhat abstract but represents a more focused set of actions that the
                +     * agent is highly likely to succeed at.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.AgentSkill skills = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllSkills( + java.lang.Iterable values) { + if (skillsBuilder_ == null) { + ensureSkillsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, skills_); + onChanged(); + } else { + skillsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                +     * Required. Skills represent a unit of ability an agent can perform. This may
                +     * somewhat abstract but represents a more focused set of actions that the
                +     * agent is highly likely to succeed at.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.AgentSkill skills = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearSkills() { + if (skillsBuilder_ == null) { + skills_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + skillsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                +     * Required. Skills represent a unit of ability an agent can perform. This may
                +     * somewhat abstract but represents a more focused set of actions that the
                +     * agent is highly likely to succeed at.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.AgentSkill skills = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeSkills(int index) { + if (skillsBuilder_ == null) { + ensureSkillsIsMutable(); + skills_.remove(index); + onChanged(); + } else { + skillsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                +     * Required. Skills represent a unit of ability an agent can perform. This may
                +     * somewhat abstract but represents a more focused set of actions that the
                +     * agent is highly likely to succeed at.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.AgentSkill skills = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.AgentSkill.Builder getSkillsBuilder(int index) { + return internalGetSkillsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                +     * Required. Skills represent a unit of ability an agent can perform. This may
                +     * somewhat abstract but represents a more focused set of actions that the
                +     * agent is highly likely to succeed at.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.AgentSkill skills = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.AgentSkillOrBuilder getSkillsOrBuilder(int index) { + if (skillsBuilder_ == null) { + return skills_.get(index); + } else { + return skillsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                +     * Required. Skills represent a unit of ability an agent can perform. This may
                +     * somewhat abstract but represents a more focused set of actions that the
                +     * agent is highly likely to succeed at.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.AgentSkill skills = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getSkillsOrBuilderList() { + if (skillsBuilder_ != null) { + return skillsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(skills_); + } + } + + /** + * + * + *
                +     * Required. Skills represent a unit of ability an agent can perform. This may
                +     * somewhat abstract but represents a more focused set of actions that the
                +     * agent is highly likely to succeed at.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.AgentSkill skills = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.AgentSkill.Builder addSkillsBuilder() { + return internalGetSkillsFieldBuilder() + .addBuilder(com.google.cloud.ces.v1.AgentSkill.getDefaultInstance()); + } + + /** + * + * + *
                +     * Required. Skills represent a unit of ability an agent can perform. This may
                +     * somewhat abstract but represents a more focused set of actions that the
                +     * agent is highly likely to succeed at.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.AgentSkill skills = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.AgentSkill.Builder addSkillsBuilder(int index) { + return internalGetSkillsFieldBuilder() + .addBuilder(index, com.google.cloud.ces.v1.AgentSkill.getDefaultInstance()); + } + + /** + * + * + *
                +     * Required. Skills represent a unit of ability an agent can perform. This may
                +     * somewhat abstract but represents a more focused set of actions that the
                +     * agent is highly likely to succeed at.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.AgentSkill skills = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List getSkillsBuilderList() { + return internalGetSkillsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.AgentSkill, + com.google.cloud.ces.v1.AgentSkill.Builder, + com.google.cloud.ces.v1.AgentSkillOrBuilder> + internalGetSkillsFieldBuilder() { + if (skillsBuilder_ == null) { + skillsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.AgentSkill, + com.google.cloud.ces.v1.AgentSkill.Builder, + com.google.cloud.ces.v1.AgentSkillOrBuilder>( + skills_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); + skills_ = null; + } + return skillsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.AgentCard) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.AgentCard) + private static final com.google.cloud.ces.v1.AgentCard DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.AgentCard(); + } + + public static com.google.cloud.ces.v1.AgentCard getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AgentCard parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.v1.AgentCard getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentCardOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentCardOrBuilder.java new file mode 100644 index 000000000000..9acb7481b3b6 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentCardOrBuilder.java @@ -0,0 +1,252 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language 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/v1/agent_card.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface AgentCardOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.AgentCard) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                +   * Required. A human-readable name for the agent.
                +   * 
                + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                +   * Required. A human-readable name for the agent.
                +   * 
                + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                +   * Required. A description of the agent's domain of action/solution space.
                +   * 
                + * + * string description = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
                +   * Required. A description of the agent's domain of action/solution space.
                +   * 
                + * + * string description = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
                +   * Required. Ordered list of supported interfaces. The first entry is
                +   * preferred.
                +   * 
                + * + * + * repeated .google.cloud.ces.v1.AgentInterface supported_interfaces = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getSupportedInterfacesList(); + + /** + * + * + *
                +   * Required. Ordered list of supported interfaces. The first entry is
                +   * preferred.
                +   * 
                + * + * + * repeated .google.cloud.ces.v1.AgentInterface supported_interfaces = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.ces.v1.AgentInterface getSupportedInterfaces(int index); + + /** + * + * + *
                +   * Required. Ordered list of supported interfaces. The first entry is
                +   * preferred.
                +   * 
                + * + * + * repeated .google.cloud.ces.v1.AgentInterface supported_interfaces = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getSupportedInterfacesCount(); + + /** + * + * + *
                +   * Required. Ordered list of supported interfaces. The first entry is
                +   * preferred.
                +   * 
                + * + * + * repeated .google.cloud.ces.v1.AgentInterface supported_interfaces = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getSupportedInterfacesOrBuilderList(); + + /** + * + * + *
                +   * Required. Ordered list of supported interfaces. The first entry is
                +   * preferred.
                +   * 
                + * + * + * repeated .google.cloud.ces.v1.AgentInterface supported_interfaces = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.ces.v1.AgentInterfaceOrBuilder getSupportedInterfacesOrBuilder(int index); + + /** + * + * + *
                +   * Required. The version of the agent.
                +   * 
                + * + * string version = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The version. + */ + java.lang.String getVersion(); + + /** + * + * + *
                +   * Required. The version of the agent.
                +   * 
                + * + * string version = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for version. + */ + com.google.protobuf.ByteString getVersionBytes(); + + /** + * + * + *
                +   * Required. Skills represent a unit of ability an agent can perform. This may
                +   * somewhat abstract but represents a more focused set of actions that the
                +   * agent is highly likely to succeed at.
                +   * 
                + * + * + * repeated .google.cloud.ces.v1.AgentSkill skills = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getSkillsList(); + + /** + * + * + *
                +   * Required. Skills represent a unit of ability an agent can perform. This may
                +   * somewhat abstract but represents a more focused set of actions that the
                +   * agent is highly likely to succeed at.
                +   * 
                + * + * + * repeated .google.cloud.ces.v1.AgentSkill skills = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.ces.v1.AgentSkill getSkills(int index); + + /** + * + * + *
                +   * Required. Skills represent a unit of ability an agent can perform. This may
                +   * somewhat abstract but represents a more focused set of actions that the
                +   * agent is highly likely to succeed at.
                +   * 
                + * + * + * repeated .google.cloud.ces.v1.AgentSkill skills = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getSkillsCount(); + + /** + * + * + *
                +   * Required. Skills represent a unit of ability an agent can perform. This may
                +   * somewhat abstract but represents a more focused set of actions that the
                +   * agent is highly likely to succeed at.
                +   * 
                + * + * + * repeated .google.cloud.ces.v1.AgentSkill skills = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getSkillsOrBuilderList(); + + /** + * + * + *
                +   * Required. Skills represent a unit of ability an agent can perform. This may
                +   * somewhat abstract but represents a more focused set of actions that the
                +   * agent is highly likely to succeed at.
                +   * 
                + * + * + * repeated .google.cloud.ces.v1.AgentSkill skills = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.ces.v1.AgentSkillOrBuilder getSkillsOrBuilder(int index); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentCardProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentCardProto.java new file mode 100644 index 000000000000..6adcca024c22 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentCardProto.java @@ -0,0 +1,144 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_card.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public final class AgentCardProto extends com.google.protobuf.GeneratedFile { + private AgentCardProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AgentCardProto"); + } + + 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_ces_v1_AgentCard_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_AgentCard_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_AgentInterface_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_AgentInterface_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_AgentSkill_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_AgentSkill_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_RemoteAgentTool_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_RemoteAgentTool_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n" + + "$google/cloud/ces/v1/agent_card.proto\022\023" + + "google.cloud.ces.v1\032\037google/api/field_behavior.proto\"\314\001\n" + + "\tAgentCard\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\002\022\030\n" + + "\013description\030\002 \001(\tB\003\340A\002\022F\n" + + "\024supported_interfaces\030\003" + + " \003(\0132#.google.cloud.ces.v1.AgentInterfaceB\003\340A\002\022\024\n" + + "\007version\030\005 \001(\tB\003\340A\002\0224\n" + + "\006skills\030\006 \003(\0132\037.google.cloud.ces.v1.AgentSkillB\003\340A\002\"p\n" + + "\016AgentInterface\022\020\n" + + "\003url\030\001 \001(\tB\003\340A\002\022\035\n" + + "\020protocol_binding\030\002 \001(\tB\003\340A\002\022\016\n" + + "\006tenant\030\003 \001(\t\022\035\n" + + "\020protocol_version\030\004 \001(\tB\003\340A\002\"\232\001\n\n" + + "AgentSkill\022\017\n" + + "\002id\030\001 \001(\tB\003\340A\002\022\021\n" + + "\004name\030\002 \001(\tB\003\340A\002\022\030\n" + + "\013description\030\003 \001(\tB\003\340A\002\022\021\n" + + "\004tags\030\004 \003(\tB\003\340A\002\022\020\n" + + "\010examples\030\005 \003(\t\022\023\n" + + "\013input_modes\030\006 \003(\t\022\024\n" + + "\014output_modes\030\007 \003(\t\"w\n" + + "\017RemoteAgentTool\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\002\022\030\n" + + "\013description\030\002 \001(\tB\003\340A\002\0227\n\n" + + "agent_card\030\003 \001(\0132\036.google.cloud.ces.v1.AgentCardB\003\340A\002BV\n" + + "\027com.google.cloud.ces.v1B\016AgentCardProtoP\001Z)cloud.google.com/go/ce" + + "s/apiv1/cespb;cespbb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + }); + internal_static_google_cloud_ces_v1_AgentCard_descriptor = getDescriptor().getMessageType(0); + internal_static_google_cloud_ces_v1_AgentCard_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_AgentCard_descriptor, + new java.lang.String[] { + "Name", "Description", "SupportedInterfaces", "Version", "Skills", + }); + internal_static_google_cloud_ces_v1_AgentInterface_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_ces_v1_AgentInterface_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_AgentInterface_descriptor, + new java.lang.String[] { + "Url", "ProtocolBinding", "Tenant", "ProtocolVersion", + }); + internal_static_google_cloud_ces_v1_AgentSkill_descriptor = getDescriptor().getMessageType(2); + internal_static_google_cloud_ces_v1_AgentSkill_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_AgentSkill_descriptor, + new java.lang.String[] { + "Id", "Name", "Description", "Tags", "Examples", "InputModes", "OutputModes", + }); + internal_static_google_cloud_ces_v1_RemoteAgentTool_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_ces_v1_RemoteAgentTool_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_RemoteAgentTool_descriptor, + new java.lang.String[] { + "Name", "Description", "AgentCard", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentInterface.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentInterface.java new file mode 100644 index 000000000000..3ca56f5319a7 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentInterface.java @@ -0,0 +1,1207 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language 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/v1/agent_card.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
                + * Declares a combination of a target URL, transport and protocol version for
                + * interacting with the agent. This allows agents to expose the same
                + * functionality over multiple protocol binding mechanisms.
                + * 
                + * + * Protobuf type {@code google.cloud.ces.v1.AgentInterface} + */ +@com.google.protobuf.Generated +public final class AgentInterface extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.AgentInterface) + AgentInterfaceOrBuilder { + 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= */ "", + "AgentInterface"); + } + + // Use AgentInterface.newBuilder() to construct. + private AgentInterface(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AgentInterface() { + url_ = ""; + protocolBinding_ = ""; + tenant_ = ""; + protocolVersion_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentCardProto + .internal_static_google_cloud_ces_v1_AgentInterface_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentCardProto + .internal_static_google_cloud_ces_v1_AgentInterface_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.AgentInterface.class, + com.google.cloud.ces.v1.AgentInterface.Builder.class); + } + + public static final int URL_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object url_ = ""; + + /** + * + * + *
                +   * Required. The URL where this interface is available. Must be a valid
                +   * absolute HTTPS URL in production. Example:
                +   * "https://api.example.com/a2a/v1", "https://grpc.example.com/a2a"
                +   * 
                + * + * string url = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The url. + */ + @java.lang.Override + public java.lang.String getUrl() { + java.lang.Object ref = url_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + url_ = s; + return s; + } + } + + /** + * + * + *
                +   * Required. The URL where this interface is available. Must be a valid
                +   * absolute HTTPS URL in production. Example:
                +   * "https://api.example.com/a2a/v1", "https://grpc.example.com/a2a"
                +   * 
                + * + * string url = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for url. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUrlBytes() { + java.lang.Object ref = url_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + url_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROTOCOL_BINDING_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object protocolBinding_ = ""; + + /** + * + * + *
                +   * Required. The protocol binding supported at this URL. This is an open form
                +   * string, to be easily extended for other protocol bindings. The core ones
                +   * officially supported are `JSONRPC`, `GRPC` and `HTTP+JSON`.
                +   * 
                + * + * string protocol_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The protocolBinding. + */ + @java.lang.Override + public java.lang.String getProtocolBinding() { + java.lang.Object ref = protocolBinding_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + protocolBinding_ = s; + return s; + } + } + + /** + * + * + *
                +   * Required. The protocol binding supported at this URL. This is an open form
                +   * string, to be easily extended for other protocol bindings. The core ones
                +   * officially supported are `JSONRPC`, `GRPC` and `HTTP+JSON`.
                +   * 
                + * + * string protocol_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for protocolBinding. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProtocolBindingBytes() { + java.lang.Object ref = protocolBinding_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + protocolBinding_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TENANT_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object tenant_ = ""; + + /** + * + * + *
                +   * Tenant ID to be used in the request when calling the agent.
                +   * 
                + * + * string tenant = 3; + * + * @return The tenant. + */ + @java.lang.Override + public java.lang.String getTenant() { + java.lang.Object ref = tenant_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tenant_ = s; + return s; + } + } + + /** + * + * + *
                +   * Tenant ID to be used in the request when calling the agent.
                +   * 
                + * + * string tenant = 3; + * + * @return The bytes for tenant. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTenantBytes() { + java.lang.Object ref = tenant_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tenant_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROTOCOL_VERSION_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object protocolVersion_ = ""; + + /** + * + * + *
                +   * Required. The version of the A2A protocol this interface exposes.
                +   * Use the latest supported minor version per major version.
                +   * Examples: "0.3", "1.0"
                +   * 
                + * + * string protocol_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The protocolVersion. + */ + @java.lang.Override + public java.lang.String getProtocolVersion() { + java.lang.Object ref = protocolVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + protocolVersion_ = s; + return s; + } + } + + /** + * + * + *
                +   * Required. The version of the A2A protocol this interface exposes.
                +   * Use the latest supported minor version per major version.
                +   * Examples: "0.3", "1.0"
                +   * 
                + * + * string protocol_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for protocolVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProtocolVersionBytes() { + java.lang.Object ref = protocolVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + protocolVersion_ = 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(url_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, url_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(protocolBinding_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, protocolBinding_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tenant_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, tenant_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(protocolVersion_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, protocolVersion_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(url_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, url_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(protocolBinding_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, protocolBinding_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tenant_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, tenant_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(protocolVersion_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, protocolVersion_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.v1.AgentInterface)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.AgentInterface other = (com.google.cloud.ces.v1.AgentInterface) obj; + + if (!getUrl().equals(other.getUrl())) return false; + if (!getProtocolBinding().equals(other.getProtocolBinding())) return false; + if (!getTenant().equals(other.getTenant())) return false; + if (!getProtocolVersion().equals(other.getProtocolVersion())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + URL_FIELD_NUMBER; + hash = (53 * hash) + getUrl().hashCode(); + hash = (37 * hash) + PROTOCOL_BINDING_FIELD_NUMBER; + hash = (53 * hash) + getProtocolBinding().hashCode(); + hash = (37 * hash) + TENANT_FIELD_NUMBER; + hash = (53 * hash) + getTenant().hashCode(); + hash = (37 * hash) + PROTOCOL_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getProtocolVersion().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.AgentInterface parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.AgentInterface parseFrom( + 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.v1.AgentInterface parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.AgentInterface parseFrom( + com.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.v1.AgentInterface parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.AgentInterface parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.AgentInterface parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.AgentInterface parseFrom( + java.io.InputStream 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.v1.AgentInterface parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.AgentInterface parseDelimitedFrom( + java.io.InputStream 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.v1.AgentInterface parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.AgentInterface parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, 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.v1.AgentInterface prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                +   * Declares a combination of a target URL, transport and protocol version for
                +   * interacting with the agent. This allows agents to expose the same
                +   * functionality over multiple protocol binding mechanisms.
                +   * 
                + * + * Protobuf type {@code google.cloud.ces.v1.AgentInterface} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.AgentInterface) + com.google.cloud.ces.v1.AgentInterfaceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentCardProto + .internal_static_google_cloud_ces_v1_AgentInterface_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentCardProto + .internal_static_google_cloud_ces_v1_AgentInterface_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.AgentInterface.class, + com.google.cloud.ces.v1.AgentInterface.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.AgentInterface.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + url_ = ""; + protocolBinding_ = ""; + tenant_ = ""; + protocolVersion_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentCardProto + .internal_static_google_cloud_ces_v1_AgentInterface_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.AgentInterface getDefaultInstanceForType() { + return com.google.cloud.ces.v1.AgentInterface.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.AgentInterface build() { + com.google.cloud.ces.v1.AgentInterface result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.AgentInterface buildPartial() { + com.google.cloud.ces.v1.AgentInterface result = + new com.google.cloud.ces.v1.AgentInterface(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.AgentInterface result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.url_ = url_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.protocolBinding_ = protocolBinding_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.tenant_ = tenant_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.protocolVersion_ = protocolVersion_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.AgentInterface) { + return mergeFrom((com.google.cloud.ces.v1.AgentInterface) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.AgentInterface other) { + if (other == com.google.cloud.ces.v1.AgentInterface.getDefaultInstance()) return this; + if (!other.getUrl().isEmpty()) { + url_ = other.url_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getProtocolBinding().isEmpty()) { + protocolBinding_ = other.protocolBinding_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getTenant().isEmpty()) { + tenant_ = other.tenant_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getProtocolVersion().isEmpty()) { + protocolVersion_ = other.protocolVersion_; + 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: + { + url_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + protocolBinding_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + tenant_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + protocolVersion_ = 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 url_ = ""; + + /** + * + * + *
                +     * Required. The URL where this interface is available. Must be a valid
                +     * absolute HTTPS URL in production. Example:
                +     * "https://api.example.com/a2a/v1", "https://grpc.example.com/a2a"
                +     * 
                + * + * string url = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The url. + */ + public java.lang.String getUrl() { + java.lang.Object ref = url_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + url_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                +     * Required. The URL where this interface is available. Must be a valid
                +     * absolute HTTPS URL in production. Example:
                +     * "https://api.example.com/a2a/v1", "https://grpc.example.com/a2a"
                +     * 
                + * + * string url = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for url. + */ + public com.google.protobuf.ByteString getUrlBytes() { + java.lang.Object ref = url_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + url_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                +     * Required. The URL where this interface is available. Must be a valid
                +     * absolute HTTPS URL in production. Example:
                +     * "https://api.example.com/a2a/v1", "https://grpc.example.com/a2a"
                +     * 
                + * + * string url = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The url to set. + * @return This builder for chaining. + */ + public Builder setUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + url_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The URL where this interface is available. Must be a valid
                +     * absolute HTTPS URL in production. Example:
                +     * "https://api.example.com/a2a/v1", "https://grpc.example.com/a2a"
                +     * 
                + * + * string url = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearUrl() { + url_ = getDefaultInstance().getUrl(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The URL where this interface is available. Must be a valid
                +     * absolute HTTPS URL in production. Example:
                +     * "https://api.example.com/a2a/v1", "https://grpc.example.com/a2a"
                +     * 
                + * + * string url = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for url to set. + * @return This builder for chaining. + */ + public Builder setUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + url_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object protocolBinding_ = ""; + + /** + * + * + *
                +     * Required. The protocol binding supported at this URL. This is an open form
                +     * string, to be easily extended for other protocol bindings. The core ones
                +     * officially supported are `JSONRPC`, `GRPC` and `HTTP+JSON`.
                +     * 
                + * + * string protocol_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The protocolBinding. + */ + public java.lang.String getProtocolBinding() { + java.lang.Object ref = protocolBinding_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + protocolBinding_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                +     * Required. The protocol binding supported at this URL. This is an open form
                +     * string, to be easily extended for other protocol bindings. The core ones
                +     * officially supported are `JSONRPC`, `GRPC` and `HTTP+JSON`.
                +     * 
                + * + * string protocol_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for protocolBinding. + */ + public com.google.protobuf.ByteString getProtocolBindingBytes() { + java.lang.Object ref = protocolBinding_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + protocolBinding_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                +     * Required. The protocol binding supported at this URL. This is an open form
                +     * string, to be easily extended for other protocol bindings. The core ones
                +     * officially supported are `JSONRPC`, `GRPC` and `HTTP+JSON`.
                +     * 
                + * + * string protocol_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The protocolBinding to set. + * @return This builder for chaining. + */ + public Builder setProtocolBinding(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + protocolBinding_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The protocol binding supported at this URL. This is an open form
                +     * string, to be easily extended for other protocol bindings. The core ones
                +     * officially supported are `JSONRPC`, `GRPC` and `HTTP+JSON`.
                +     * 
                + * + * string protocol_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearProtocolBinding() { + protocolBinding_ = getDefaultInstance().getProtocolBinding(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The protocol binding supported at this URL. This is an open form
                +     * string, to be easily extended for other protocol bindings. The core ones
                +     * officially supported are `JSONRPC`, `GRPC` and `HTTP+JSON`.
                +     * 
                + * + * string protocol_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for protocolBinding to set. + * @return This builder for chaining. + */ + public Builder setProtocolBindingBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + protocolBinding_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object tenant_ = ""; + + /** + * + * + *
                +     * Tenant ID to be used in the request when calling the agent.
                +     * 
                + * + * string tenant = 3; + * + * @return The tenant. + */ + public java.lang.String getTenant() { + java.lang.Object ref = tenant_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tenant_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                +     * Tenant ID to be used in the request when calling the agent.
                +     * 
                + * + * string tenant = 3; + * + * @return The bytes for tenant. + */ + public com.google.protobuf.ByteString getTenantBytes() { + java.lang.Object ref = tenant_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tenant_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                +     * Tenant ID to be used in the request when calling the agent.
                +     * 
                + * + * string tenant = 3; + * + * @param value The tenant to set. + * @return This builder for chaining. + */ + public Builder setTenant(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + tenant_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Tenant ID to be used in the request when calling the agent.
                +     * 
                + * + * string tenant = 3; + * + * @return This builder for chaining. + */ + public Builder clearTenant() { + tenant_ = getDefaultInstance().getTenant(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Tenant ID to be used in the request when calling the agent.
                +     * 
                + * + * string tenant = 3; + * + * @param value The bytes for tenant to set. + * @return This builder for chaining. + */ + public Builder setTenantBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tenant_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object protocolVersion_ = ""; + + /** + * + * + *
                +     * Required. The version of the A2A protocol this interface exposes.
                +     * Use the latest supported minor version per major version.
                +     * Examples: "0.3", "1.0"
                +     * 
                + * + * string protocol_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The protocolVersion. + */ + public java.lang.String getProtocolVersion() { + java.lang.Object ref = protocolVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + protocolVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                +     * Required. The version of the A2A protocol this interface exposes.
                +     * Use the latest supported minor version per major version.
                +     * Examples: "0.3", "1.0"
                +     * 
                + * + * string protocol_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for protocolVersion. + */ + public com.google.protobuf.ByteString getProtocolVersionBytes() { + java.lang.Object ref = protocolVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + protocolVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                +     * Required. The version of the A2A protocol this interface exposes.
                +     * Use the latest supported minor version per major version.
                +     * Examples: "0.3", "1.0"
                +     * 
                + * + * string protocol_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The protocolVersion to set. + * @return This builder for chaining. + */ + public Builder setProtocolVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + protocolVersion_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The version of the A2A protocol this interface exposes.
                +     * Use the latest supported minor version per major version.
                +     * Examples: "0.3", "1.0"
                +     * 
                + * + * string protocol_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearProtocolVersion() { + protocolVersion_ = getDefaultInstance().getProtocolVersion(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The version of the A2A protocol this interface exposes.
                +     * Use the latest supported minor version per major version.
                +     * Examples: "0.3", "1.0"
                +     * 
                + * + * string protocol_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for protocolVersion to set. + * @return This builder for chaining. + */ + public Builder setProtocolVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + protocolVersion_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.AgentInterface) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.AgentInterface) + private static final com.google.cloud.ces.v1.AgentInterface DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.AgentInterface(); + } + + public static com.google.cloud.ces.v1.AgentInterface getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AgentInterface parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.v1.AgentInterface getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentInterfaceOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentInterfaceOrBuilder.java new file mode 100644 index 000000000000..100dc96a7b4b --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentInterfaceOrBuilder.java @@ -0,0 +1,144 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_card.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface AgentInterfaceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.AgentInterface) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                +   * Required. The URL where this interface is available. Must be a valid
                +   * absolute HTTPS URL in production. Example:
                +   * "https://api.example.com/a2a/v1", "https://grpc.example.com/a2a"
                +   * 
                + * + * string url = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The url. + */ + java.lang.String getUrl(); + + /** + * + * + *
                +   * Required. The URL where this interface is available. Must be a valid
                +   * absolute HTTPS URL in production. Example:
                +   * "https://api.example.com/a2a/v1", "https://grpc.example.com/a2a"
                +   * 
                + * + * string url = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for url. + */ + com.google.protobuf.ByteString getUrlBytes(); + + /** + * + * + *
                +   * Required. The protocol binding supported at this URL. This is an open form
                +   * string, to be easily extended for other protocol bindings. The core ones
                +   * officially supported are `JSONRPC`, `GRPC` and `HTTP+JSON`.
                +   * 
                + * + * string protocol_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The protocolBinding. + */ + java.lang.String getProtocolBinding(); + + /** + * + * + *
                +   * Required. The protocol binding supported at this URL. This is an open form
                +   * string, to be easily extended for other protocol bindings. The core ones
                +   * officially supported are `JSONRPC`, `GRPC` and `HTTP+JSON`.
                +   * 
                + * + * string protocol_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for protocolBinding. + */ + com.google.protobuf.ByteString getProtocolBindingBytes(); + + /** + * + * + *
                +   * Tenant ID to be used in the request when calling the agent.
                +   * 
                + * + * string tenant = 3; + * + * @return The tenant. + */ + java.lang.String getTenant(); + + /** + * + * + *
                +   * Tenant ID to be used in the request when calling the agent.
                +   * 
                + * + * string tenant = 3; + * + * @return The bytes for tenant. + */ + com.google.protobuf.ByteString getTenantBytes(); + + /** + * + * + *
                +   * Required. The version of the A2A protocol this interface exposes.
                +   * Use the latest supported minor version per major version.
                +   * Examples: "0.3", "1.0"
                +   * 
                + * + * string protocol_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The protocolVersion. + */ + java.lang.String getProtocolVersion(); + + /** + * + * + *
                +   * Required. The version of the A2A protocol this interface exposes.
                +   * Use the latest supported minor version per major version.
                +   * Examples: "0.3", "1.0"
                +   * 
                + * + * string protocol_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for protocolVersion. + */ + com.google.protobuf.ByteString getProtocolVersionBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentOrBuilder.java index 0afae8621f9f..4cc604a07caf 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentOrBuilder.java @@ -1265,5 +1265,67 @@ public interface AgentOrBuilder */ com.google.cloud.ces.v1.TransferRuleOrBuilder getTransferRulesOrBuilder(int index); + /** + * + * + *
                +   * Output only. Misconfigurations or errors in the agent that may affect agent
                +   * quality.
                +   * 
                + * + * repeated string validation_errors = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the validationErrors. + */ + java.util.List getValidationErrorsList(); + + /** + * + * + *
                +   * Output only. Misconfigurations or errors in the agent that may affect agent
                +   * quality.
                +   * 
                + * + * repeated string validation_errors = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of validationErrors. + */ + int getValidationErrorsCount(); + + /** + * + * + *
                +   * Output only. Misconfigurations or errors in the agent that may affect agent
                +   * quality.
                +   * 
                + * + * repeated string validation_errors = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The validationErrors at the given index. + */ + java.lang.String getValidationErrors(int index); + + /** + * + * + *
                +   * Output only. Misconfigurations or errors in the agent that may affect agent
                +   * quality.
                +   * 
                + * + * repeated string validation_errors = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the validationErrors at the given index. + */ + com.google.protobuf.ByteString getValidationErrorsBytes(int index); + com.google.cloud.ces.v1.Agent.AgentTypeCase getAgentTypeCase(); } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentProto.java index f843689c3c8f..0a23b7e7991a 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentProto.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentProto.java @@ -77,7 +77,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\037google/cloud/ces/v1/agent.proto\022\023googl" + "e.cloud.ces.v1\032\037google/api/field_behavio" + "r.proto\032\031google/api/resource.proto\032)google/cloud/ces/v1/agent_transfers.proto\032" - + " google/cloud/ces/v1/common.proto\032\037google/protobuf/timestamp.proto\"\234\017\n" + + " google/cloud/ces/v1/common.proto\032\037google/protobuf/timestamp.proto\"\341\017\n" + "\005Agent\022=\n" + "\tllm_agent\030\032" + " \001(\0132#.google.cloud.ces.v1.Agent.LlmAgentB\003\340A\001H\000\022X\n" @@ -115,18 +115,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\0132\'.google.cloud.ces.v1.Agent.AgentToolsetB\003\340A\001\022\036\n" + "\021generated_summary\030\035 \001(\tB\003\340A\003\022>\n" + "\016transfer_rules\030\036" - + " \003(\0132!.google.cloud.ces.v1.TransferRuleB\003\340A\001\032\n\n" - + "\010LlmAgent\032\240\004\n" + + " \003(\0132!.google.cloud.ces.v1.TransferRuleB\003\340A\001\022\036\n" + + "\021validation_errors\030 \003(\tB\003\340A\003\032\n\n" + + "\010LlmAgent\032\305\004\n" + "\025RemoteDialogflowAgent\022@\n" + "\005agent\030\001 \001(\tB1\340A\002\372A+\n" + ")dialogflow.googleapis.com/DialogflowAgent\022\024\n" + "\007flow_id\030\002 \001(\tB\003\340A\001\022\033\n" + "\016environment_id\030\003 \001(\tB\003\340A\001\022o\n" - + "\026input_variable_mapping\030\004 \003(\0132J.google.cloud." - + "ces.v1.Agent.RemoteDialogflowAgent.InputVariableMappingEntryB\003\340A\001\022q\n" - + "\027output_variable_mapping\030\005 \003(\0132K.google.cloud.ces.v1" - + ".Agent.RemoteDialogflowAgent.OutputVariableMappingEntryB\003\340A\001\0223\n" - + "&respect_response_interruption_settings\030\006 \001(\010B\003\340A\001\032;\n" + + "\026input_variable_mapping\030\004 \003(\0132J.google.cloud.ces.v1.A" + + "gent.RemoteDialogflowAgent.InputVariableMappingEntryB\003\340A\001\022q\n" + + "\027output_variable_mapping\030\005 \003(\0132K.google.cloud.ces.v1.Agent.R" + + "emoteDialogflowAgent.OutputVariableMappingEntryB\003\340A\001\0223\n" + + "&respect_response_interruption_settings\030\006 \001(\010B\003\340A\001\022#\n" + + "\026language_code_variable\030\007 \001(\tB\003\340A\001\032;\n" + "\031InputVariableMappingEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\032<\n" @@ -137,13 +139,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007toolset\030\001 \001(\tB\"\340A\002\372A\034\n" + "\032ces.googleapis.com/Toolset\022\025\n" + "\010tool_ids\030\004 \003(\tB\003\340A\001:o\352Al\n" - + "\030ces.googleapis.com/Agent\022Aprojects/{project}/locations/{location}" - + "/apps/{app}/agents/{agent}*\006agents2\005agentB\014\n\n" + + "\030ces.googleapis.com/Agent\022Aprojects/{" + + "project}/locations/{location}/apps/{app}/agents/{agent}*\006agents2\005agentB\014\n\n" + "agent_typeB\270\001\n" + "\027com.google.cloud.ces.v1B\n" + "AgentProtoP\001Z)cloud.google.com/go/ces/apiv1/cespb;cespb\352Ac\n" - + ")dialogflow.googleapis.com/DialogflowAgent\0226projects/{pr" - + "oject}/locations/{location}/agents/{agent}b\006proto3" + + ")dialogflow.googleapis.com/DialogflowAgent\0226projects/{project}/loca" + + "tions/{location}/agents/{agent}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -182,6 +184,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Toolsets", "GeneratedSummary", "TransferRules", + "ValidationErrors", "AgentType", }); internal_static_google_cloud_ces_v1_Agent_LlmAgent_descriptor = @@ -202,6 +205,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InputVariableMapping", "OutputVariableMapping", "RespectResponseInterruptionSettings", + "LanguageCodeVariable", }); internal_static_google_cloud_ces_v1_Agent_RemoteDialogflowAgent_InputVariableMappingEntry_descriptor = internal_static_google_cloud_ces_v1_Agent_RemoteDialogflowAgent_descriptor.getNestedType(0); diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentSkill.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentSkill.java new file mode 100644 index 000000000000..b71b90b51de5 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentSkill.java @@ -0,0 +1,2156 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language 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/v1/agent_card.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
                + * Represents a distinct capability or function that an agent can perform.
                + * 
                + * + * Protobuf type {@code google.cloud.ces.v1.AgentSkill} + */ +@com.google.protobuf.Generated +public final class AgentSkill extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.AgentSkill) + AgentSkillOrBuilder { + 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= */ "", + "AgentSkill"); + } + + // Use AgentSkill.newBuilder() to construct. + private AgentSkill(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AgentSkill() { + id_ = ""; + name_ = ""; + description_ = ""; + tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); + examples_ = com.google.protobuf.LazyStringArrayList.emptyList(); + inputModes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + outputModes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentCardProto + .internal_static_google_cloud_ces_v1_AgentSkill_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentCardProto + .internal_static_google_cloud_ces_v1_AgentSkill_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.AgentSkill.class, + com.google.cloud.ces.v1.AgentSkill.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + + /** + * + * + *
                +   * Required. A unique identifier for the agent's skill.
                +   * 
                + * + * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + + /** + * + * + *
                +   * Required. A unique identifier for the agent's skill.
                +   * 
                + * + * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                +   * Required. A human-readable name for the skill.
                +   * 
                + * + * string name = 2 [(.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. A human-readable name for the skill.
                +   * 
                + * + * string name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
                +   * Required. A detailed description of the skill.
                +   * 
                + * + * string description = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
                +   * Required. A detailed description of the skill.
                +   * 
                + * + * string description = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TAGS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList tags_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
                +   * Required. A set of keywords describing the skill's capabilities.
                +   * 
                + * + * repeated string tags = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the tags. + */ + public com.google.protobuf.ProtocolStringList getTagsList() { + return tags_; + } + + /** + * + * + *
                +   * Required. A set of keywords describing the skill's capabilities.
                +   * 
                + * + * repeated string tags = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of tags. + */ + public int getTagsCount() { + return tags_.size(); + } + + /** + * + * + *
                +   * Required. A set of keywords describing the skill's capabilities.
                +   * 
                + * + * repeated string tags = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The tags at the given index. + */ + public java.lang.String getTags(int index) { + return tags_.get(index); + } + + /** + * + * + *
                +   * Required. A set of keywords describing the skill's capabilities.
                +   * 
                + * + * repeated string tags = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the tags at the given index. + */ + public com.google.protobuf.ByteString getTagsBytes(int index) { + return tags_.getByteString(index); + } + + public static final int EXAMPLES_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList examples_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
                +   * Example prompts or scenarios that this skill can handle.
                +   * 
                + * + * repeated string examples = 5; + * + * @return A list containing the examples. + */ + public com.google.protobuf.ProtocolStringList getExamplesList() { + return examples_; + } + + /** + * + * + *
                +   * Example prompts or scenarios that this skill can handle.
                +   * 
                + * + * repeated string examples = 5; + * + * @return The count of examples. + */ + public int getExamplesCount() { + return examples_.size(); + } + + /** + * + * + *
                +   * Example prompts or scenarios that this skill can handle.
                +   * 
                + * + * repeated string examples = 5; + * + * @param index The index of the element to return. + * @return The examples at the given index. + */ + public java.lang.String getExamples(int index) { + return examples_.get(index); + } + + /** + * + * + *
                +   * Example prompts or scenarios that this skill can handle.
                +   * 
                + * + * repeated string examples = 5; + * + * @param index The index of the value to return. + * @return The bytes of the examples at the given index. + */ + public com.google.protobuf.ByteString getExamplesBytes(int index) { + return examples_.getByteString(index); + } + + public static final int INPUT_MODES_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList inputModes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
                +   * The set of supported input media types for this skill, overriding the
                +   * agent's defaults.
                +   * 
                + * + * repeated string input_modes = 6; + * + * @return A list containing the inputModes. + */ + public com.google.protobuf.ProtocolStringList getInputModesList() { + return inputModes_; + } + + /** + * + * + *
                +   * The set of supported input media types for this skill, overriding the
                +   * agent's defaults.
                +   * 
                + * + * repeated string input_modes = 6; + * + * @return The count of inputModes. + */ + public int getInputModesCount() { + return inputModes_.size(); + } + + /** + * + * + *
                +   * The set of supported input media types for this skill, overriding the
                +   * agent's defaults.
                +   * 
                + * + * repeated string input_modes = 6; + * + * @param index The index of the element to return. + * @return The inputModes at the given index. + */ + public java.lang.String getInputModes(int index) { + return inputModes_.get(index); + } + + /** + * + * + *
                +   * The set of supported input media types for this skill, overriding the
                +   * agent's defaults.
                +   * 
                + * + * repeated string input_modes = 6; + * + * @param index The index of the value to return. + * @return The bytes of the inputModes at the given index. + */ + public com.google.protobuf.ByteString getInputModesBytes(int index) { + return inputModes_.getByteString(index); + } + + public static final int OUTPUT_MODES_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList outputModes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
                +   * The set of supported output media types for this skill, overriding the
                +   * agent's defaults.
                +   * 
                + * + * repeated string output_modes = 7; + * + * @return A list containing the outputModes. + */ + public com.google.protobuf.ProtocolStringList getOutputModesList() { + return outputModes_; + } + + /** + * + * + *
                +   * The set of supported output media types for this skill, overriding the
                +   * agent's defaults.
                +   * 
                + * + * repeated string output_modes = 7; + * + * @return The count of outputModes. + */ + public int getOutputModesCount() { + return outputModes_.size(); + } + + /** + * + * + *
                +   * The set of supported output media types for this skill, overriding the
                +   * agent's defaults.
                +   * 
                + * + * repeated string output_modes = 7; + * + * @param index The index of the element to return. + * @return The outputModes at the given index. + */ + public java.lang.String getOutputModes(int index) { + return outputModes_.get(index); + } + + /** + * + * + *
                +   * The set of supported output media types for this skill, overriding the
                +   * agent's defaults.
                +   * 
                + * + * repeated string output_modes = 7; + * + * @param index The index of the value to return. + * @return The bytes of the outputModes at the given index. + */ + public com.google.protobuf.ByteString getOutputModesBytes(int index) { + return outputModes_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, description_); + } + for (int i = 0; i < tags_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, tags_.getRaw(i)); + } + for (int i = 0; i < examples_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, examples_.getRaw(i)); + } + for (int i = 0; i < inputModes_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, inputModes_.getRaw(i)); + } + for (int i = 0; i < outputModes_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, outputModes_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, description_); + } + { + int dataSize = 0; + for (int i = 0; i < tags_.size(); i++) { + dataSize += computeStringSizeNoTag(tags_.getRaw(i)); + } + size += dataSize; + size += 1 * getTagsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < examples_.size(); i++) { + dataSize += computeStringSizeNoTag(examples_.getRaw(i)); + } + size += dataSize; + size += 1 * getExamplesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < inputModes_.size(); i++) { + dataSize += computeStringSizeNoTag(inputModes_.getRaw(i)); + } + size += dataSize; + size += 1 * getInputModesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < outputModes_.size(); i++) { + dataSize += computeStringSizeNoTag(outputModes_.getRaw(i)); + } + size += dataSize; + size += 1 * getOutputModesList().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.ces.v1.AgentSkill)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.AgentSkill other = (com.google.cloud.ces.v1.AgentSkill) obj; + + if (!getId().equals(other.getId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getTagsList().equals(other.getTagsList())) return false; + if (!getExamplesList().equals(other.getExamplesList())) return false; + if (!getInputModesList().equals(other.getInputModesList())) return false; + if (!getOutputModesList().equals(other.getOutputModesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (getTagsCount() > 0) { + hash = (37 * hash) + TAGS_FIELD_NUMBER; + hash = (53 * hash) + getTagsList().hashCode(); + } + if (getExamplesCount() > 0) { + hash = (37 * hash) + EXAMPLES_FIELD_NUMBER; + hash = (53 * hash) + getExamplesList().hashCode(); + } + if (getInputModesCount() > 0) { + hash = (37 * hash) + INPUT_MODES_FIELD_NUMBER; + hash = (53 * hash) + getInputModesList().hashCode(); + } + if (getOutputModesCount() > 0) { + hash = (37 * hash) + OUTPUT_MODES_FIELD_NUMBER; + hash = (53 * hash) + getOutputModesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.AgentSkill parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.AgentSkill parseFrom( + 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.v1.AgentSkill parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.AgentSkill parseFrom( + com.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.v1.AgentSkill parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.AgentSkill parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.AgentSkill parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.AgentSkill parseFrom( + java.io.InputStream 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.v1.AgentSkill parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.AgentSkill parseDelimitedFrom( + java.io.InputStream 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.v1.AgentSkill parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.AgentSkill parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, 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.v1.AgentSkill prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 distinct capability or function that an agent can perform.
                +   * 
                + * + * Protobuf type {@code google.cloud.ces.v1.AgentSkill} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.AgentSkill) + com.google.cloud.ces.v1.AgentSkillOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentCardProto + .internal_static_google_cloud_ces_v1_AgentSkill_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentCardProto + .internal_static_google_cloud_ces_v1_AgentSkill_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.AgentSkill.class, + com.google.cloud.ces.v1.AgentSkill.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.AgentSkill.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + name_ = ""; + description_ = ""; + tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); + examples_ = com.google.protobuf.LazyStringArrayList.emptyList(); + inputModes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + outputModes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentCardProto + .internal_static_google_cloud_ces_v1_AgentSkill_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.AgentSkill getDefaultInstanceForType() { + return com.google.cloud.ces.v1.AgentSkill.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.AgentSkill build() { + com.google.cloud.ces.v1.AgentSkill result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.AgentSkill buildPartial() { + com.google.cloud.ces.v1.AgentSkill result = new com.google.cloud.ces.v1.AgentSkill(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.AgentSkill result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + tags_.makeImmutable(); + result.tags_ = tags_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + examples_.makeImmutable(); + result.examples_ = examples_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + inputModes_.makeImmutable(); + result.inputModes_ = inputModes_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + outputModes_.makeImmutable(); + result.outputModes_ = outputModes_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.AgentSkill) { + return mergeFrom((com.google.cloud.ces.v1.AgentSkill) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.AgentSkill other) { + if (other == com.google.cloud.ces.v1.AgentSkill.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.tags_.isEmpty()) { + if (tags_.isEmpty()) { + tags_ = other.tags_; + bitField0_ |= 0x00000008; + } else { + ensureTagsIsMutable(); + tags_.addAll(other.tags_); + } + onChanged(); + } + if (!other.examples_.isEmpty()) { + if (examples_.isEmpty()) { + examples_ = other.examples_; + bitField0_ |= 0x00000010; + } else { + ensureExamplesIsMutable(); + examples_.addAll(other.examples_); + } + onChanged(); + } + if (!other.inputModes_.isEmpty()) { + if (inputModes_.isEmpty()) { + inputModes_ = other.inputModes_; + bitField0_ |= 0x00000020; + } else { + ensureInputModesIsMutable(); + inputModes_.addAll(other.inputModes_); + } + onChanged(); + } + if (!other.outputModes_.isEmpty()) { + if (outputModes_.isEmpty()) { + outputModes_ = other.outputModes_; + bitField0_ |= 0x00000040; + } else { + ensureOutputModesIsMutable(); + outputModes_.addAll(other.outputModes_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureTagsIsMutable(); + tags_.add(s); + break; + } // case 34 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureExamplesIsMutable(); + examples_.add(s); + break; + } // case 42 + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureInputModesIsMutable(); + inputModes_.add(s); + break; + } // case 50 + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureOutputModesIsMutable(); + outputModes_.add(s); + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object id_ = ""; + + /** + * + * + *
                +     * Required. A unique identifier for the agent's skill.
                +     * 
                + * + * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                +     * Required. A unique identifier for the agent's skill.
                +     * 
                + * + * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for id. + */ + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                +     * Required. A unique identifier for the agent's skill.
                +     * 
                + * + * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. A unique identifier for the agent's skill.
                +     * 
                + * + * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. A unique identifier for the agent's skill.
                +     * 
                + * + * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + + /** + * + * + *
                +     * Required. A human-readable name for the skill.
                +     * 
                + * + * string name = 2 [(.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. A human-readable name for the skill.
                +     * 
                + * + * string name = 2 [(.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. A human-readable name for the skill.
                +     * 
                + * + * string name = 2 [(.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. A human-readable name for the skill.
                +     * 
                + * + * string name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. A human-readable name for the skill.
                +     * 
                + * + * string name = 2 [(.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 java.lang.Object description_ = ""; + + /** + * + * + *
                +     * Required. A detailed description of the skill.
                +     * 
                + * + * string description = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
                +     * Required. A detailed description of the skill.
                +     * 
                + * + * string description = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
                +     * Required. A detailed description of the skill.
                +     * 
                + * + * string description = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. A detailed description of the skill.
                +     * 
                + * + * string description = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. A detailed description of the skill.
                +     * 
                + * + * string description = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList tags_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureTagsIsMutable() { + if (!tags_.isModifiable()) { + tags_ = new com.google.protobuf.LazyStringArrayList(tags_); + } + bitField0_ |= 0x00000008; + } + + /** + * + * + *
                +     * Required. A set of keywords describing the skill's capabilities.
                +     * 
                + * + * repeated string tags = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the tags. + */ + public com.google.protobuf.ProtocolStringList getTagsList() { + tags_.makeImmutable(); + return tags_; + } + + /** + * + * + *
                +     * Required. A set of keywords describing the skill's capabilities.
                +     * 
                + * + * repeated string tags = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of tags. + */ + public int getTagsCount() { + return tags_.size(); + } + + /** + * + * + *
                +     * Required. A set of keywords describing the skill's capabilities.
                +     * 
                + * + * repeated string tags = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The tags at the given index. + */ + public java.lang.String getTags(int index) { + return tags_.get(index); + } + + /** + * + * + *
                +     * Required. A set of keywords describing the skill's capabilities.
                +     * 
                + * + * repeated string tags = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the tags at the given index. + */ + public com.google.protobuf.ByteString getTagsBytes(int index) { + return tags_.getByteString(index); + } + + /** + * + * + *
                +     * Required. A set of keywords describing the skill's capabilities.
                +     * 
                + * + * repeated string tags = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index to set the value at. + * @param value The tags to set. + * @return This builder for chaining. + */ + public Builder setTags(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTagsIsMutable(); + tags_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. A set of keywords describing the skill's capabilities.
                +     * 
                + * + * repeated string tags = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The tags to add. + * @return This builder for chaining. + */ + public Builder addTags(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTagsIsMutable(); + tags_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. A set of keywords describing the skill's capabilities.
                +     * 
                + * + * repeated string tags = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param values The tags to add. + * @return This builder for chaining. + */ + public Builder addAllTags(java.lang.Iterable values) { + ensureTagsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tags_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. A set of keywords describing the skill's capabilities.
                +     * 
                + * + * repeated string tags = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearTags() { + tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. A set of keywords describing the skill's capabilities.
                +     * 
                + * + * repeated string tags = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes of the tags to add. + * @return This builder for chaining. + */ + public Builder addTagsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTagsIsMutable(); + tags_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList examples_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureExamplesIsMutable() { + if (!examples_.isModifiable()) { + examples_ = new com.google.protobuf.LazyStringArrayList(examples_); + } + bitField0_ |= 0x00000010; + } + + /** + * + * + *
                +     * Example prompts or scenarios that this skill can handle.
                +     * 
                + * + * repeated string examples = 5; + * + * @return A list containing the examples. + */ + public com.google.protobuf.ProtocolStringList getExamplesList() { + examples_.makeImmutable(); + return examples_; + } + + /** + * + * + *
                +     * Example prompts or scenarios that this skill can handle.
                +     * 
                + * + * repeated string examples = 5; + * + * @return The count of examples. + */ + public int getExamplesCount() { + return examples_.size(); + } + + /** + * + * + *
                +     * Example prompts or scenarios that this skill can handle.
                +     * 
                + * + * repeated string examples = 5; + * + * @param index The index of the element to return. + * @return The examples at the given index. + */ + public java.lang.String getExamples(int index) { + return examples_.get(index); + } + + /** + * + * + *
                +     * Example prompts or scenarios that this skill can handle.
                +     * 
                + * + * repeated string examples = 5; + * + * @param index The index of the value to return. + * @return The bytes of the examples at the given index. + */ + public com.google.protobuf.ByteString getExamplesBytes(int index) { + return examples_.getByteString(index); + } + + /** + * + * + *
                +     * Example prompts or scenarios that this skill can handle.
                +     * 
                + * + * repeated string examples = 5; + * + * @param index The index to set the value at. + * @param value The examples to set. + * @return This builder for chaining. + */ + public Builder setExamples(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExamplesIsMutable(); + examples_.set(index, value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Example prompts or scenarios that this skill can handle.
                +     * 
                + * + * repeated string examples = 5; + * + * @param value The examples to add. + * @return This builder for chaining. + */ + public Builder addExamples(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExamplesIsMutable(); + examples_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Example prompts or scenarios that this skill can handle.
                +     * 
                + * + * repeated string examples = 5; + * + * @param values The examples to add. + * @return This builder for chaining. + */ + public Builder addAllExamples(java.lang.Iterable values) { + ensureExamplesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, examples_); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Example prompts or scenarios that this skill can handle.
                +     * 
                + * + * repeated string examples = 5; + * + * @return This builder for chaining. + */ + public Builder clearExamples() { + examples_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + ; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Example prompts or scenarios that this skill can handle.
                +     * 
                + * + * repeated string examples = 5; + * + * @param value The bytes of the examples to add. + * @return This builder for chaining. + */ + public Builder addExamplesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureExamplesIsMutable(); + examples_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList inputModes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureInputModesIsMutable() { + if (!inputModes_.isModifiable()) { + inputModes_ = new com.google.protobuf.LazyStringArrayList(inputModes_); + } + bitField0_ |= 0x00000020; + } + + /** + * + * + *
                +     * The set of supported input media types for this skill, overriding the
                +     * agent's defaults.
                +     * 
                + * + * repeated string input_modes = 6; + * + * @return A list containing the inputModes. + */ + public com.google.protobuf.ProtocolStringList getInputModesList() { + inputModes_.makeImmutable(); + return inputModes_; + } + + /** + * + * + *
                +     * The set of supported input media types for this skill, overriding the
                +     * agent's defaults.
                +     * 
                + * + * repeated string input_modes = 6; + * + * @return The count of inputModes. + */ + public int getInputModesCount() { + return inputModes_.size(); + } + + /** + * + * + *
                +     * The set of supported input media types for this skill, overriding the
                +     * agent's defaults.
                +     * 
                + * + * repeated string input_modes = 6; + * + * @param index The index of the element to return. + * @return The inputModes at the given index. + */ + public java.lang.String getInputModes(int index) { + return inputModes_.get(index); + } + + /** + * + * + *
                +     * The set of supported input media types for this skill, overriding the
                +     * agent's defaults.
                +     * 
                + * + * repeated string input_modes = 6; + * + * @param index The index of the value to return. + * @return The bytes of the inputModes at the given index. + */ + public com.google.protobuf.ByteString getInputModesBytes(int index) { + return inputModes_.getByteString(index); + } + + /** + * + * + *
                +     * The set of supported input media types for this skill, overriding the
                +     * agent's defaults.
                +     * 
                + * + * repeated string input_modes = 6; + * + * @param index The index to set the value at. + * @param value The inputModes to set. + * @return This builder for chaining. + */ + public Builder setInputModes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputModesIsMutable(); + inputModes_.set(index, value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                +     * The set of supported input media types for this skill, overriding the
                +     * agent's defaults.
                +     * 
                + * + * repeated string input_modes = 6; + * + * @param value The inputModes to add. + * @return This builder for chaining. + */ + public Builder addInputModes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputModesIsMutable(); + inputModes_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                +     * The set of supported input media types for this skill, overriding the
                +     * agent's defaults.
                +     * 
                + * + * repeated string input_modes = 6; + * + * @param values The inputModes to add. + * @return This builder for chaining. + */ + public Builder addAllInputModes(java.lang.Iterable values) { + ensureInputModesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, inputModes_); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                +     * The set of supported input media types for this skill, overriding the
                +     * agent's defaults.
                +     * 
                + * + * repeated string input_modes = 6; + * + * @return This builder for chaining. + */ + public Builder clearInputModes() { + inputModes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + ; + onChanged(); + return this; + } + + /** + * + * + *
                +     * The set of supported input media types for this skill, overriding the
                +     * agent's defaults.
                +     * 
                + * + * repeated string input_modes = 6; + * + * @param value The bytes of the inputModes to add. + * @return This builder for chaining. + */ + public Builder addInputModesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureInputModesIsMutable(); + inputModes_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList outputModes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureOutputModesIsMutable() { + if (!outputModes_.isModifiable()) { + outputModes_ = new com.google.protobuf.LazyStringArrayList(outputModes_); + } + bitField0_ |= 0x00000040; + } + + /** + * + * + *
                +     * The set of supported output media types for this skill, overriding the
                +     * agent's defaults.
                +     * 
                + * + * repeated string output_modes = 7; + * + * @return A list containing the outputModes. + */ + public com.google.protobuf.ProtocolStringList getOutputModesList() { + outputModes_.makeImmutable(); + return outputModes_; + } + + /** + * + * + *
                +     * The set of supported output media types for this skill, overriding the
                +     * agent's defaults.
                +     * 
                + * + * repeated string output_modes = 7; + * + * @return The count of outputModes. + */ + public int getOutputModesCount() { + return outputModes_.size(); + } + + /** + * + * + *
                +     * The set of supported output media types for this skill, overriding the
                +     * agent's defaults.
                +     * 
                + * + * repeated string output_modes = 7; + * + * @param index The index of the element to return. + * @return The outputModes at the given index. + */ + public java.lang.String getOutputModes(int index) { + return outputModes_.get(index); + } + + /** + * + * + *
                +     * The set of supported output media types for this skill, overriding the
                +     * agent's defaults.
                +     * 
                + * + * repeated string output_modes = 7; + * + * @param index The index of the value to return. + * @return The bytes of the outputModes at the given index. + */ + public com.google.protobuf.ByteString getOutputModesBytes(int index) { + return outputModes_.getByteString(index); + } + + /** + * + * + *
                +     * The set of supported output media types for this skill, overriding the
                +     * agent's defaults.
                +     * 
                + * + * repeated string output_modes = 7; + * + * @param index The index to set the value at. + * @param value The outputModes to set. + * @return This builder for chaining. + */ + public Builder setOutputModes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputModesIsMutable(); + outputModes_.set(index, value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
                +     * The set of supported output media types for this skill, overriding the
                +     * agent's defaults.
                +     * 
                + * + * repeated string output_modes = 7; + * + * @param value The outputModes to add. + * @return This builder for chaining. + */ + public Builder addOutputModes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputModesIsMutable(); + outputModes_.add(value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
                +     * The set of supported output media types for this skill, overriding the
                +     * agent's defaults.
                +     * 
                + * + * repeated string output_modes = 7; + * + * @param values The outputModes to add. + * @return This builder for chaining. + */ + public Builder addAllOutputModes(java.lang.Iterable values) { + ensureOutputModesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, outputModes_); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
                +     * The set of supported output media types for this skill, overriding the
                +     * agent's defaults.
                +     * 
                + * + * repeated string output_modes = 7; + * + * @return This builder for chaining. + */ + public Builder clearOutputModes() { + outputModes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + ; + onChanged(); + return this; + } + + /** + * + * + *
                +     * The set of supported output media types for this skill, overriding the
                +     * agent's defaults.
                +     * 
                + * + * repeated string output_modes = 7; + * + * @param value The bytes of the outputModes to add. + * @return This builder for chaining. + */ + public Builder addOutputModesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureOutputModesIsMutable(); + outputModes_.add(value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.AgentSkill) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.AgentSkill) + private static final com.google.cloud.ces.v1.AgentSkill DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.AgentSkill(); + } + + public static com.google.cloud.ces.v1.AgentSkill getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AgentSkill parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.v1.AgentSkill getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentSkillOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentSkillOrBuilder.java new file mode 100644 index 000000000000..ef8a44837aae --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentSkillOrBuilder.java @@ -0,0 +1,330 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language 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/v1/agent_card.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface AgentSkillOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.AgentSkill) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                +   * Required. A unique identifier for the agent's skill.
                +   * 
                + * + * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The id. + */ + java.lang.String getId(); + + /** + * + * + *
                +   * Required. A unique identifier for the agent's skill.
                +   * 
                + * + * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for id. + */ + com.google.protobuf.ByteString getIdBytes(); + + /** + * + * + *
                +   * Required. A human-readable name for the skill.
                +   * 
                + * + * string name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                +   * Required. A human-readable name for the skill.
                +   * 
                + * + * string name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                +   * Required. A detailed description of the skill.
                +   * 
                + * + * string description = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
                +   * Required. A detailed description of the skill.
                +   * 
                + * + * string description = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
                +   * Required. A set of keywords describing the skill's capabilities.
                +   * 
                + * + * repeated string tags = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the tags. + */ + java.util.List getTagsList(); + + /** + * + * + *
                +   * Required. A set of keywords describing the skill's capabilities.
                +   * 
                + * + * repeated string tags = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of tags. + */ + int getTagsCount(); + + /** + * + * + *
                +   * Required. A set of keywords describing the skill's capabilities.
                +   * 
                + * + * repeated string tags = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The tags at the given index. + */ + java.lang.String getTags(int index); + + /** + * + * + *
                +   * Required. A set of keywords describing the skill's capabilities.
                +   * 
                + * + * repeated string tags = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the tags at the given index. + */ + com.google.protobuf.ByteString getTagsBytes(int index); + + /** + * + * + *
                +   * Example prompts or scenarios that this skill can handle.
                +   * 
                + * + * repeated string examples = 5; + * + * @return A list containing the examples. + */ + java.util.List getExamplesList(); + + /** + * + * + *
                +   * Example prompts or scenarios that this skill can handle.
                +   * 
                + * + * repeated string examples = 5; + * + * @return The count of examples. + */ + int getExamplesCount(); + + /** + * + * + *
                +   * Example prompts or scenarios that this skill can handle.
                +   * 
                + * + * repeated string examples = 5; + * + * @param index The index of the element to return. + * @return The examples at the given index. + */ + java.lang.String getExamples(int index); + + /** + * + * + *
                +   * Example prompts or scenarios that this skill can handle.
                +   * 
                + * + * repeated string examples = 5; + * + * @param index The index of the value to return. + * @return The bytes of the examples at the given index. + */ + com.google.protobuf.ByteString getExamplesBytes(int index); + + /** + * + * + *
                +   * The set of supported input media types for this skill, overriding the
                +   * agent's defaults.
                +   * 
                + * + * repeated string input_modes = 6; + * + * @return A list containing the inputModes. + */ + java.util.List getInputModesList(); + + /** + * + * + *
                +   * The set of supported input media types for this skill, overriding the
                +   * agent's defaults.
                +   * 
                + * + * repeated string input_modes = 6; + * + * @return The count of inputModes. + */ + int getInputModesCount(); + + /** + * + * + *
                +   * The set of supported input media types for this skill, overriding the
                +   * agent's defaults.
                +   * 
                + * + * repeated string input_modes = 6; + * + * @param index The index of the element to return. + * @return The inputModes at the given index. + */ + java.lang.String getInputModes(int index); + + /** + * + * + *
                +   * The set of supported input media types for this skill, overriding the
                +   * agent's defaults.
                +   * 
                + * + * repeated string input_modes = 6; + * + * @param index The index of the value to return. + * @return The bytes of the inputModes at the given index. + */ + com.google.protobuf.ByteString getInputModesBytes(int index); + + /** + * + * + *
                +   * The set of supported output media types for this skill, overriding the
                +   * agent's defaults.
                +   * 
                + * + * repeated string output_modes = 7; + * + * @return A list containing the outputModes. + */ + java.util.List getOutputModesList(); + + /** + * + * + *
                +   * The set of supported output media types for this skill, overriding the
                +   * agent's defaults.
                +   * 
                + * + * repeated string output_modes = 7; + * + * @return The count of outputModes. + */ + int getOutputModesCount(); + + /** + * + * + *
                +   * The set of supported output media types for this skill, overriding the
                +   * agent's defaults.
                +   * 
                + * + * repeated string output_modes = 7; + * + * @param index The index of the element to return. + * @return The outputModes at the given index. + */ + java.lang.String getOutputModes(int index); + + /** + * + * + *
                +   * The set of supported output media types for this skill, overriding the
                +   * agent's defaults.
                +   * 
                + * + * repeated string output_modes = 7; + * + * @param index The index of the value to return. + * @return The bytes of the outputModes at the given index. + */ + com.google.protobuf.ByteString getOutputModesBytes(int index); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AmbientSoundConfig.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AmbientSoundConfig.java index 9057398ea948..463cf3468ba2 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AmbientSoundConfig.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AmbientSoundConfig.java @@ -333,7 +333,7 @@ public SourceCase getSourceCase() { *
                * * @deprecated google.cloud.ces.v1.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. See - * google/cloud/ces/v1/app.proto;l=293 + * google/cloud/ces/v1/app.proto;l=300 * @return Whether the prebuiltAmbientNoise field is set. */ @java.lang.Deprecated @@ -354,7 +354,7 @@ public boolean hasPrebuiltAmbientNoise() { *
                * * @deprecated google.cloud.ces.v1.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. See - * google/cloud/ces/v1/app.proto;l=293 + * google/cloud/ces/v1/app.proto;l=300 * @return The enum numeric value on the wire for prebuiltAmbientNoise. */ @java.lang.Deprecated @@ -378,7 +378,7 @@ public int getPrebuiltAmbientNoiseValue() { *
                * * @deprecated google.cloud.ces.v1.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. See - * google/cloud/ces/v1/app.proto;l=293 + * google/cloud/ces/v1/app.proto;l=300 * @return The prebuiltAmbientNoise. */ @java.lang.Deprecated @@ -1066,7 +1066,7 @@ public Builder clearSource() { *
                * * @deprecated google.cloud.ces.v1.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. See - * google/cloud/ces/v1/app.proto;l=293 + * google/cloud/ces/v1/app.proto;l=300 * @return Whether the prebuiltAmbientNoise field is set. */ @java.lang.Override @@ -1088,7 +1088,7 @@ public boolean hasPrebuiltAmbientNoise() { *
                * * @deprecated google.cloud.ces.v1.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. See - * google/cloud/ces/v1/app.proto;l=293 + * google/cloud/ces/v1/app.proto;l=300 * @return The enum numeric value on the wire for prebuiltAmbientNoise. */ @java.lang.Override @@ -1113,7 +1113,7 @@ public int getPrebuiltAmbientNoiseValue() { *
                * * @deprecated google.cloud.ces.v1.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. See - * google/cloud/ces/v1/app.proto;l=293 + * google/cloud/ces/v1/app.proto;l=300 * @param value The enum numeric value on the wire for prebuiltAmbientNoise to set. * @return This builder for chaining. */ @@ -1138,7 +1138,7 @@ public Builder setPrebuiltAmbientNoiseValue(int value) { *
                * * @deprecated google.cloud.ces.v1.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. See - * google/cloud/ces/v1/app.proto;l=293 + * google/cloud/ces/v1/app.proto;l=300 * @return The prebuiltAmbientNoise. */ @java.lang.Override @@ -1170,7 +1170,7 @@ public Builder setPrebuiltAmbientNoiseValue(int value) { *
                * * @deprecated google.cloud.ces.v1.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. See - * google/cloud/ces/v1/app.proto;l=293 + * google/cloud/ces/v1/app.proto;l=300 * @param value The prebuiltAmbientNoise to set. * @return This builder for chaining. */ @@ -1199,7 +1199,7 @@ public Builder setPrebuiltAmbientNoise( *
                * * @deprecated google.cloud.ces.v1.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. See - * google/cloud/ces/v1/app.proto;l=293 + * google/cloud/ces/v1/app.proto;l=300 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AmbientSoundConfigOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AmbientSoundConfigOrBuilder.java index 88ba966aad9a..826ccd7e7734 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AmbientSoundConfigOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AmbientSoundConfigOrBuilder.java @@ -39,7 +39,7 @@ public interface AmbientSoundConfigOrBuilder *
                * * @deprecated google.cloud.ces.v1.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. See - * google/cloud/ces/v1/app.proto;l=293 + * google/cloud/ces/v1/app.proto;l=300 * @return Whether the prebuiltAmbientNoise field is set. */ @java.lang.Deprecated @@ -58,7 +58,7 @@ public interface AmbientSoundConfigOrBuilder *
                * * @deprecated google.cloud.ces.v1.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. See - * google/cloud/ces/v1/app.proto;l=293 + * google/cloud/ces/v1/app.proto;l=300 * @return The enum numeric value on the wire for prebuiltAmbientNoise. */ @java.lang.Deprecated @@ -77,7 +77,7 @@ public interface AmbientSoundConfigOrBuilder *
                * * @deprecated google.cloud.ces.v1.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. See - * google/cloud/ces/v1/app.proto;l=293 + * google/cloud/ces/v1/app.proto;l=300 * @return The prebuiltAmbientNoise. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/App.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/App.java index 0ab4534defdc..f86c7956e546 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/App.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/App.java @@ -65,6 +65,7 @@ private App() { globalInstruction_ = ""; guardrails_ = com.google.protobuf.LazyStringArrayList.emptyList(); etag_ = ""; + validationErrors_ = com.google.protobuf.LazyStringArrayList.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -2937,6 +2938,65 @@ public com.google.cloud.ces.v1.ClientCertificateSettings getClientCertificateSet : clientCertificateSettings_; } + public static final int VPC_SC_SETTINGS_FIELD_NUMBER = 26; + private com.google.cloud.ces.v1.VpcScSettings vpcScSettings_; + + /** + * + * + *
                +   * Optional. VPC-SC settings for the app.
                +   * 
                + * + * + * .google.cloud.ces.v1.VpcScSettings vpc_sc_settings = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the vpcScSettings field is set. + */ + @java.lang.Override + public boolean hasVpcScSettings() { + return ((bitField0_ & 0x00001000) != 0); + } + + /** + * + * + *
                +   * Optional. VPC-SC settings for the app.
                +   * 
                + * + * + * .google.cloud.ces.v1.VpcScSettings vpc_sc_settings = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The vpcScSettings. + */ + @java.lang.Override + public com.google.cloud.ces.v1.VpcScSettings getVpcScSettings() { + return vpcScSettings_ == null + ? com.google.cloud.ces.v1.VpcScSettings.getDefaultInstance() + : vpcScSettings_; + } + + /** + * + * + *
                +   * Optional. VPC-SC settings for the app.
                +   * 
                + * + * + * .google.cloud.ces.v1.VpcScSettings vpc_sc_settings = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.VpcScSettingsOrBuilder getVpcScSettingsOrBuilder() { + return vpcScSettings_ == null + ? com.google.cloud.ces.v1.VpcScSettings.getDefaultInstance() + : vpcScSettings_; + } + public static final int LOCKED_FIELD_NUMBER = 29; private boolean locked_ = false; @@ -2957,6 +3017,78 @@ public boolean getLocked() { return locked_; } + public static final int VALIDATION_ERRORS_FIELD_NUMBER = 39; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList validationErrors_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
                +   * Output only. Misconfigurations or warnings in the app.
                +   * 
                + * + * repeated string validation_errors = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the validationErrors. + */ + public com.google.protobuf.ProtocolStringList getValidationErrorsList() { + return validationErrors_; + } + + /** + * + * + *
                +   * Output only. Misconfigurations or warnings in the app.
                +   * 
                + * + * repeated string validation_errors = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of validationErrors. + */ + public int getValidationErrorsCount() { + return validationErrors_.size(); + } + + /** + * + * + *
                +   * Output only. Misconfigurations or warnings in the app.
                +   * 
                + * + * repeated string validation_errors = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The validationErrors at the given index. + */ + public java.lang.String getValidationErrors(int index) { + return validationErrors_.get(index); + } + + /** + * + * + *
                +   * Output only. Misconfigurations or warnings in the app.
                +   * 
                + * + * repeated string validation_errors = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the validationErrors at the given index. + */ + public com.google.protobuf.ByteString getValidationErrorsBytes(int index) { + return validationErrors_.getByteString(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -3030,6 +3162,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000800) != 0)) { output.writeMessage(25, getClientCertificateSettings()); } + if (((bitField0_ & 0x00001000) != 0)) { + output.writeMessage(26, getVpcScSettings()); + } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(27, getTimeZoneSettings()); } @@ -3050,6 +3185,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(34, getErrorHandlingSettings()); } + for (int i = 0; i < validationErrors_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 39, validationErrors_.getRaw(i)); + } getUnknownFields().writeTo(output); } @@ -3139,6 +3277,9 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 25, getClientCertificateSettings()); } + if (((bitField0_ & 0x00001000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(26, getVpcScSettings()); + } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(27, getTimeZoneSettings()); } @@ -3162,6 +3303,14 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(34, getErrorHandlingSettings()); } + { + int dataSize = 0; + for (int i = 0; i < validationErrors_.size(); i++) { + dataSize += computeStringSizeNoTag(validationErrors_.getRaw(i)); + } + size += dataSize; + size += 2 * getValidationErrorsList().size(); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -3241,7 +3390,12 @@ public boolean equals(final java.lang.Object obj) { if (!getClientCertificateSettings().equals(other.getClientCertificateSettings())) return false; } + if (hasVpcScSettings() != other.hasVpcScSettings()) return false; + if (hasVpcScSettings()) { + if (!getVpcScSettings().equals(other.getVpcScSettings())) return false; + } if (getLocked() != other.getLocked()) return false; + if (!getValidationErrorsList().equals(other.getValidationErrorsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3335,8 +3489,16 @@ public int hashCode() { hash = (37 * hash) + CLIENT_CERTIFICATE_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getClientCertificateSettings().hashCode(); } + if (hasVpcScSettings()) { + hash = (37 * hash) + VPC_SC_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getVpcScSettings().hashCode(); + } hash = (37 * hash) + LOCKED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getLocked()); + if (getValidationErrorsCount() > 0) { + hash = (37 * hash) + VALIDATION_ERRORS_FIELD_NUMBER; + hash = (53 * hash) + getValidationErrorsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -3514,6 +3676,7 @@ private void maybeForceBuilderInitialization() { internalGetCreateTimeFieldBuilder(); internalGetUpdateTimeFieldBuilder(); internalGetClientCertificateSettingsFieldBuilder(); + internalGetVpcScSettingsFieldBuilder(); } } @@ -3606,7 +3769,13 @@ public Builder clear() { clientCertificateSettingsBuilder_.dispose(); clientCertificateSettingsBuilder_ = null; } + vpcScSettings_ = null; + if (vpcScSettingsBuilder_ != null) { + vpcScSettingsBuilder_.dispose(); + vpcScSettingsBuilder_ = null; + } locked_ = false; + validationErrors_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @@ -3771,8 +3940,17 @@ private void buildPartial0(com.google.cloud.ces.v1.App result) { to_bitField0_ |= 0x00000800; } if (((from_bitField0_ & 0x02000000) != 0)) { + result.vpcScSettings_ = + vpcScSettingsBuilder_ == null ? vpcScSettings_ : vpcScSettingsBuilder_.build(); + to_bitField0_ |= 0x00001000; + } + if (((from_bitField0_ & 0x04000000) != 0)) { result.locked_ = locked_; } + if (((from_bitField0_ & 0x08000000) != 0)) { + validationErrors_.makeImmutable(); + result.validationErrors_ = validationErrors_; + } result.bitField0_ |= to_bitField0_; } @@ -3930,9 +4108,22 @@ public Builder mergeFrom(com.google.cloud.ces.v1.App other) { if (other.hasClientCertificateSettings()) { mergeClientCertificateSettings(other.getClientCertificateSettings()); } + if (other.hasVpcScSettings()) { + mergeVpcScSettings(other.getVpcScSettings()); + } if (other.getLocked() != false) { setLocked(other.getLocked()); } + if (!other.validationErrors_.isEmpty()) { + if (validationErrors_.isEmpty()) { + validationErrors_ = other.validationErrors_; + bitField0_ |= 0x08000000; + } else { + ensureValidationErrorsIsMutable(); + validationErrors_.addAll(other.validationErrors_); + } + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -4106,6 +4297,13 @@ public Builder mergeFrom( bitField0_ |= 0x01000000; break; } // case 202 + case 210: + { + input.readMessage( + internalGetVpcScSettingsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x02000000; + break; + } // case 210 case 218: { input.readMessage( @@ -4130,7 +4328,7 @@ public Builder mergeFrom( case 232: { locked_ = input.readBool(); - bitField0_ |= 0x02000000; + bitField0_ |= 0x04000000; break; } // case 232 case 248: @@ -4152,6 +4350,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000200; break; } // case 274 + case 314: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureValidationErrorsIsMutable(); + validationErrors_.add(s); + break; + } // case 314 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -8925,6 +9130,218 @@ public Builder clearClientCertificateSettings() { return clientCertificateSettingsBuilder_; } + private com.google.cloud.ces.v1.VpcScSettings vpcScSettings_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.VpcScSettings, + com.google.cloud.ces.v1.VpcScSettings.Builder, + com.google.cloud.ces.v1.VpcScSettingsOrBuilder> + vpcScSettingsBuilder_; + + /** + * + * + *
                +     * Optional. VPC-SC settings for the app.
                +     * 
                + * + * + * .google.cloud.ces.v1.VpcScSettings vpc_sc_settings = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the vpcScSettings field is set. + */ + public boolean hasVpcScSettings() { + return ((bitField0_ & 0x02000000) != 0); + } + + /** + * + * + *
                +     * Optional. VPC-SC settings for the app.
                +     * 
                + * + * + * .google.cloud.ces.v1.VpcScSettings vpc_sc_settings = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The vpcScSettings. + */ + public com.google.cloud.ces.v1.VpcScSettings getVpcScSettings() { + if (vpcScSettingsBuilder_ == null) { + return vpcScSettings_ == null + ? com.google.cloud.ces.v1.VpcScSettings.getDefaultInstance() + : vpcScSettings_; + } else { + return vpcScSettingsBuilder_.getMessage(); + } + } + + /** + * + * + *
                +     * Optional. VPC-SC settings for the app.
                +     * 
                + * + * + * .google.cloud.ces.v1.VpcScSettings vpc_sc_settings = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setVpcScSettings(com.google.cloud.ces.v1.VpcScSettings value) { + if (vpcScSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + vpcScSettings_ = value; + } else { + vpcScSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x02000000; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. VPC-SC settings for the app.
                +     * 
                + * + * + * .google.cloud.ces.v1.VpcScSettings vpc_sc_settings = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setVpcScSettings(com.google.cloud.ces.v1.VpcScSettings.Builder builderForValue) { + if (vpcScSettingsBuilder_ == null) { + vpcScSettings_ = builderForValue.build(); + } else { + vpcScSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x02000000; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. VPC-SC settings for the app.
                +     * 
                + * + * + * .google.cloud.ces.v1.VpcScSettings vpc_sc_settings = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeVpcScSettings(com.google.cloud.ces.v1.VpcScSettings value) { + if (vpcScSettingsBuilder_ == null) { + if (((bitField0_ & 0x02000000) != 0) + && vpcScSettings_ != null + && vpcScSettings_ != com.google.cloud.ces.v1.VpcScSettings.getDefaultInstance()) { + getVpcScSettingsBuilder().mergeFrom(value); + } else { + vpcScSettings_ = value; + } + } else { + vpcScSettingsBuilder_.mergeFrom(value); + } + if (vpcScSettings_ != null) { + bitField0_ |= 0x02000000; + onChanged(); + } + return this; + } + + /** + * + * + *
                +     * Optional. VPC-SC settings for the app.
                +     * 
                + * + * + * .google.cloud.ces.v1.VpcScSettings vpc_sc_settings = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearVpcScSettings() { + bitField0_ = (bitField0_ & ~0x02000000); + vpcScSettings_ = null; + if (vpcScSettingsBuilder_ != null) { + vpcScSettingsBuilder_.dispose(); + vpcScSettingsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. VPC-SC settings for the app.
                +     * 
                + * + * + * .google.cloud.ces.v1.VpcScSettings vpc_sc_settings = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.VpcScSettings.Builder getVpcScSettingsBuilder() { + bitField0_ |= 0x02000000; + onChanged(); + return internalGetVpcScSettingsFieldBuilder().getBuilder(); + } + + /** + * + * + *
                +     * Optional. VPC-SC settings for the app.
                +     * 
                + * + * + * .google.cloud.ces.v1.VpcScSettings vpc_sc_settings = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.VpcScSettingsOrBuilder getVpcScSettingsOrBuilder() { + if (vpcScSettingsBuilder_ != null) { + return vpcScSettingsBuilder_.getMessageOrBuilder(); + } else { + return vpcScSettings_ == null + ? com.google.cloud.ces.v1.VpcScSettings.getDefaultInstance() + : vpcScSettings_; + } + } + + /** + * + * + *
                +     * Optional. VPC-SC settings for the app.
                +     * 
                + * + * + * .google.cloud.ces.v1.VpcScSettings vpc_sc_settings = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.VpcScSettings, + com.google.cloud.ces.v1.VpcScSettings.Builder, + com.google.cloud.ces.v1.VpcScSettingsOrBuilder> + internalGetVpcScSettingsFieldBuilder() { + if (vpcScSettingsBuilder_ == null) { + vpcScSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.VpcScSettings, + com.google.cloud.ces.v1.VpcScSettings.Builder, + com.google.cloud.ces.v1.VpcScSettingsOrBuilder>( + getVpcScSettings(), getParentForChildren(), isClean()); + vpcScSettings_ = null; + } + return vpcScSettingsBuilder_; + } + private boolean locked_; /** @@ -8960,7 +9377,7 @@ public boolean getLocked() { public Builder setLocked(boolean value) { locked_ = value; - bitField0_ |= 0x02000000; + bitField0_ |= 0x04000000; onChanged(); return this; } @@ -8978,12 +9395,204 @@ public Builder setLocked(boolean value) { * @return This builder for chaining. */ public Builder clearLocked() { - bitField0_ = (bitField0_ & ~0x02000000); + bitField0_ = (bitField0_ & ~0x04000000); locked_ = false; onChanged(); return this; } + private com.google.protobuf.LazyStringArrayList validationErrors_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureValidationErrorsIsMutable() { + if (!validationErrors_.isModifiable()) { + validationErrors_ = new com.google.protobuf.LazyStringArrayList(validationErrors_); + } + bitField0_ |= 0x08000000; + } + + /** + * + * + *
                +     * Output only. Misconfigurations or warnings in the app.
                +     * 
                + * + * repeated string validation_errors = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the validationErrors. + */ + public com.google.protobuf.ProtocolStringList getValidationErrorsList() { + validationErrors_.makeImmutable(); + return validationErrors_; + } + + /** + * + * + *
                +     * Output only. Misconfigurations or warnings in the app.
                +     * 
                + * + * repeated string validation_errors = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of validationErrors. + */ + public int getValidationErrorsCount() { + return validationErrors_.size(); + } + + /** + * + * + *
                +     * Output only. Misconfigurations or warnings in the app.
                +     * 
                + * + * repeated string validation_errors = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The validationErrors at the given index. + */ + public java.lang.String getValidationErrors(int index) { + return validationErrors_.get(index); + } + + /** + * + * + *
                +     * Output only. Misconfigurations or warnings in the app.
                +     * 
                + * + * repeated string validation_errors = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the validationErrors at the given index. + */ + public com.google.protobuf.ByteString getValidationErrorsBytes(int index) { + return validationErrors_.getByteString(index); + } + + /** + * + * + *
                +     * Output only. Misconfigurations or warnings in the app.
                +     * 
                + * + * repeated string validation_errors = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index to set the value at. + * @param value The validationErrors to set. + * @return This builder for chaining. + */ + public Builder setValidationErrors(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValidationErrorsIsMutable(); + validationErrors_.set(index, value); + bitField0_ |= 0x08000000; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. Misconfigurations or warnings in the app.
                +     * 
                + * + * repeated string validation_errors = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The validationErrors to add. + * @return This builder for chaining. + */ + public Builder addValidationErrors(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValidationErrorsIsMutable(); + validationErrors_.add(value); + bitField0_ |= 0x08000000; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. Misconfigurations or warnings in the app.
                +     * 
                + * + * repeated string validation_errors = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param values The validationErrors to add. + * @return This builder for chaining. + */ + public Builder addAllValidationErrors(java.lang.Iterable values) { + ensureValidationErrorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, validationErrors_); + bitField0_ |= 0x08000000; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. Misconfigurations or warnings in the app.
                +     * 
                + * + * repeated string validation_errors = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearValidationErrors() { + validationErrors_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x08000000); + ; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. Misconfigurations or warnings in the app.
                +     * 
                + * + * repeated string validation_errors = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes of the validationErrors to add. + * @return This builder for chaining. + */ + public Builder addValidationErrorsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureValidationErrorsIsMutable(); + validationErrors_.add(value); + bitField0_ |= 0x08000000; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.App) } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AppOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AppOrBuilder.java index dd2450fc0e34..138a77589222 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AppOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AppOrBuilder.java @@ -1047,6 +1047,49 @@ java.lang.String getMetadataOrDefault( com.google.cloud.ces.v1.ClientCertificateSettingsOrBuilder getClientCertificateSettingsOrBuilder(); + /** + * + * + *
                +   * Optional. VPC-SC settings for the app.
                +   * 
                + * + * + * .google.cloud.ces.v1.VpcScSettings vpc_sc_settings = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the vpcScSettings field is set. + */ + boolean hasVpcScSettings(); + + /** + * + * + *
                +   * Optional. VPC-SC settings for the app.
                +   * 
                + * + * + * .google.cloud.ces.v1.VpcScSettings vpc_sc_settings = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The vpcScSettings. + */ + com.google.cloud.ces.v1.VpcScSettings getVpcScSettings(); + + /** + * + * + *
                +   * Optional. VPC-SC settings for the app.
                +   * 
                + * + * + * .google.cloud.ces.v1.VpcScSettings vpc_sc_settings = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.VpcScSettingsOrBuilder getVpcScSettingsOrBuilder(); + /** * * @@ -1060,4 +1103,62 @@ java.lang.String getMetadataOrDefault( * @return The locked. */ boolean getLocked(); + + /** + * + * + *
                +   * Output only. Misconfigurations or warnings in the app.
                +   * 
                + * + * repeated string validation_errors = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the validationErrors. + */ + java.util.List getValidationErrorsList(); + + /** + * + * + *
                +   * Output only. Misconfigurations or warnings in the app.
                +   * 
                + * + * repeated string validation_errors = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of validationErrors. + */ + int getValidationErrorsCount(); + + /** + * + * + *
                +   * Output only. Misconfigurations or warnings in the app.
                +   * 
                + * + * repeated string validation_errors = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The validationErrors at the given index. + */ + java.lang.String getValidationErrors(int index); + + /** + * + * + *
                +   * Output only. Misconfigurations or warnings in the app.
                +   * 
                + * + * repeated string validation_errors = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the validationErrors at the given index. + */ + com.google.protobuf.ByteString getValidationErrorsBytes(int index); } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AppProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AppProto.java index 916fab4c5127..2e364ac8670b 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AppProto.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AppProto.java @@ -92,6 +92,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_ces_v1_ErrorHandlingSettings_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_ces_v1_ErrorHandlingSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_ErrorHandlingSettings_FallbackResponseConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_ErrorHandlingSettings_FallbackResponseConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_ErrorHandlingSettings_FallbackResponseConfig_CustomFallbackMessagesEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_ErrorHandlingSettings_FallbackResponseConfig_CustomFallbackMessagesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_ErrorHandlingSettings_EndSessionConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_ErrorHandlingSettings_EndSessionConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_ces_v1_EvaluationMetricsThresholds_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -116,6 +128,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_ces_v1_ClientCertificateSettings_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_ces_v1_ClientCertificateSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_VpcScSettings_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_VpcScSettings_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_ces_v1_ConversationLoggingSettings_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -155,7 +171,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "proto\032\031google/api/resource.proto\032)google/cloud/ces/v1/bigquery_export.proto\032" + " google/cloud/ces/v1/common.proto\032 google/cl" + "oud/ces/v1/schema.proto\032\036google/protobuf" - + "/duration.proto\032\037google/protobuf/timestamp.proto\"\303\016\n" + + "/duration.proto\032\037google/protobuf/timestamp.proto\"\245\017\n" + "\003App\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\031\n" + "\014display_name\030\002 \001(\tB\003\340A\002\022\030\n" @@ -199,8 +215,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004etag\030\014 \001(\tB\003\340A\003\022\035\n" + "\020deployment_count\030\027 \001(\005B\003\340A\003\022X\n" + "\033client_certificate_settings\030\031" - + " \001(\0132..google.cloud.ces.v1.ClientCertificateSettingsB\003\340A\001\022\023\n" - + "\006locked\030\035 \001(\010B\003\340A\001\032t\n" + + " \001(\0132..google.cloud.ces.v1.ClientCertificateSettingsB\003\340A\001\022@\n" + + "\017vpc_sc_settings\030\032" + + " \001(\0132\".google.cloud.ces.v1.VpcScSettingsB\003\340A\001\022\023\n" + + "\006locked\030\035 \001(\010B\003\340A\001\022\036\n" + + "\021validation_errors\030\' \003(\tB\003\340A\003\032t\n" + "\023VariableDeclaration\022\021\n" + "\004name\030\001 \001(\tB\003\340A\002\022\030\n" + "\013description\030\002 \001(\tB\003\340A\002\0220\n" @@ -212,8 +231,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\037TOOL_EXECUTION_MODE_UNSPECIFIED\020\000\022\014\n" + "\010PARALLEL\020\001\022\016\n\n" + "SEQUENTIAL\020\002:Z\352AW\n" - + "\026ces.googleapis." - + "com/App\0222projects/{project}/locations/{location}/apps/{app}*\004apps2\003app\"*\n" + + "\026ces.googleapis.com/App\0222projects/{pro" + + "ject}/locations/{location}/apps/{app}*\004apps2\003app\"*\n" + "\020TimeZoneSettings\022\026\n" + "\ttime_zone\030\001 \001(\tB\003\340A\001\"\247\001\n" + "\020LanguageSettings\022\"\n" @@ -222,21 +241,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033enable_multilingual_support\030\003 \001(\010B\003\340A\001\022\036\n" + "\017fallback_action\030\004 \001(\tB\005\030\001\340A\001\"\277\003\n" + "\025AudioProcessingConfig\022o\n" - + "\031synthesize_speech_configs\030\001 \003(\0132G.google.cloud" - + ".ces.v1.AudioProcessingConfig.SynthesizeSpeechConfigsEntryB\003\340A\001\022@\n" + + "\031synthesize_speech_configs\030\001 \003(\0132G.google.cloud.ces.v1.AudioProcessin" + + "gConfig.SynthesizeSpeechConfigsEntryB\003\340A\001\022@\n" + "\017barge_in_config\030\003" + " \001(\0132\".google.cloud.ces.v1.BargeInConfigB\003\340A\001\022:\n" + "\022inactivity_timeout\030\004" + " \001(\0132\031.google.protobuf.DurationB\003\340A\001\022J\n" - + "\024ambient_sound_config\030\005" - + " \001(\0132\'.google.cloud.ces.v1.AmbientSoundConfigB\003\340A\001\032k\n" + + "\024ambient_sound_config\030\005 \001(\0132\'." + + "google.cloud.ces.v1.AmbientSoundConfigB\003\340A\001\032k\n" + "\034SynthesizeSpeechConfigsEntry\022\013\n" + "\003key\030\001 \001(\t\022:\n" + "\005value\030\002" + " \001(\0132+.google.cloud.ces.v1.SynthesizeSpeechConfig:\0028\001\"\325\002\n" + "\022AmbientSoundConfig\022e\n" - + "\026prebuilt_ambient_noise\030\001 \001(\0162<.google.c" - + "loud.ces.v1.AmbientSoundConfig.PrebuiltAmbientNoiseB\005\030\001\340A\001H\000\022\026\n" + + "\026prebuilt_ambient_noise\030\001 \001(\0162<.google.cloud.ces.v1.AmbientSou" + + "ndConfig.PrebuiltAmbientNoiseB\005\030\001\340A\001H\000\022\026\n" + "\007gcs_uri\030\002 \001(\tB\003\340A\001H\000\022%\n" + "\026prebuilt_ambient_sound\030\004 \001(\tB\003\340A\001H\000\022\033\n" + "\016volume_gain_db\030\003 \001(\001B\003\340A\001\"r\n" @@ -248,63 +267,84 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006source\"Q\n\r" + "BargeInConfig\022\037\n" + "\020disable_barge_in\030\001 \001(\010B\005\030\001\340A\001\022\037\n" - + "\022barge_in_awareness\030\002 \001(\010B\003\340A\001\"H\n" + + "\022barge_in_awareness\030\002 \001(\010B\003\340A\001\"\231\001\n" + "\026SynthesizeSpeechConfig\022\022\n" - + "\005voice\030\001 \001(\tB\003\340A\001\022\032\n\r" - + "speaking_rate\030\002 \001(\001B\003\340A\001\"<\n" + + "\005voice\030\001 \001(\tB\003\340A\001\022!\n" + + "\024voice_sample_gcs_uri\030\003 \001(\tB\003\340A\001\022\032\n\r" + + "speaking_rate\030\002 \001(\001B\003\340A\001\022\022\n" + + "\005model\030\004 \001(\tB\003\340A\001\022\030\n" + + "\013instruction\030\005 \001(\tB\003\340A\001\"<\n" + "\026MetricAnalysisSettings\022\"\n" - + "\025llm_metrics_opted_out\030\001 \001(\010B\003\340A\001\"\327\004\n" + + "\025llm_metrics_opted_out\030\001 \001(\010B\003\340A\001\"\221\006\n" + "\017LoggingSettings\022C\n" - + "\020redaction_config\030\001" - + " \001(\0132$.google.cloud.ces.v1.RedactionConfigB\003\340A\001\022N\n" - + "\026audio_recording_config\030\002" + + "\020redaction_config\030\001 " + + "\001(\0132$.google.cloud.ces.v1.RedactionConfigB\003\340A\001\022N\n" + + "\026audio_recording_config\030\002 \001(\0132)" + + ".google.cloud.ces.v1.AudioRecordingConfigB\003\340A\001\022Y\n" + + "!unredacted_audio_recording_config\030\010" + " \001(\0132).google.cloud.ces.v1.AudioRecordingConfigB\003\340A\001\022R\n" + "\030bigquery_export_settings\030\003" + + " \001(\0132+.google.cloud.ces.v1.BigQueryExportSettingsB\003\340A\001\022]\n" + + "#unredacted_bigquery_export_settings\030\t" + " \001(\0132+.google.cloud.ces.v1.BigQueryExportSettingsB\003\340A\001\022N\n" + "\026cloud_logging_settings\030\004" + " \001(\0132).google.cloud.ces.v1.CloudLoggingSettingsB\003\340A\001\022\\\n" - + "\035conversation_logging_settings\030\005 \001(\01320.google.c" - + "loud.ces.v1.ConversationLoggingSettingsB\003\340A\001\022Y\n" + + "\035conversation_logging_settings\030\005 \001(\01320.go" + + "ogle.cloud.ces.v1.ConversationLoggingSettingsB\003\340A\001\022Y\n" + "!evaluation_audio_recording_config\030\006" + " \001(\0132).google.cloud.ces.v1.AudioRecordingConfigB\003\340A\001\022R\n" + "\030metric_analysis_settings\030\007" - + " \001(\0132+.google.cloud.ces.v1.MetricAnalysisSettingsB\003\340A\001\"\363\001\n" + + " \001(\0132+.google.cloud.ces.v1.MetricAnalysisSettingsB\003\340A\001\"\215\006\n" + "\025ErrorHandlingSettings\022f\n" - + "\027error_handling_strategy\030\001 \001(\0162@" - + ".google.cloud.ces.v1.ErrorHandlingSettings.ErrorHandlingStrategyB\003\340A\001\"r\n" + + "\027error_handling_strategy\030\001" + + " \001(\0162@.google.cloud.ces.v1.ErrorHandlingSettings.ErrorHandlingStrategyB\003\340A\001\022h\n" + + "\030fallback_response_config\030\002 \001(\0132A.google.c" + + "loud.ces.v1.ErrorHandlingSettings.FallbackResponseConfigB\003\340A\001\022\\\n" + + "\022end_session_config\030\003" + + " \001(\0132;.google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfigB\003\340A\001\032\202\002\n" + + "\026FallbackResponseConfig\022\204\001\n" + + "\030custom_fallback_messages\030\001 \003(\0132].google.cloud.ces.v1." + + "ErrorHandlingSettings.FallbackResponseConfig.CustomFallbackMessagesEntryB\003\340A\001\022\"\n" + + "\025max_fallback_attempts\030\002 \001(\005B\003\340A\001\032=\n" + + "\033CustomFallbackMessagesEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\032K\n" + + "\020EndSessionConfig\022\"\n" + + "\020escalate_session\030\001 \001(\010B\003\340A\001H\000\210\001\001B\023\n" + + "\021_escalate_session\"r\n" + "\025ErrorHandlingStrategy\022\'\n" + "#ERROR_HANDLING_STRATEGY_UNSPECIFIED\020\000\022\010\n" + "\004NONE\020\001\022\025\n" + "\021FALLBACK_RESPONSE\020\002\022\017\n" + "\013END_SESSION\020\003\"\203\020\n" + "\033EvaluationMetricsThresholds\022\205\001\n" - + "$golden_evaluation_metrics_thresholds\030\001 \001(\0132R.google.cloud." - + "ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholdsB\003\340A\001\022z\n" - + "\035hallucination_metric_behavior\030\003 \001(\0162L.googl" - + "e.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehaviorB\005\030\001\340A\001\022\177\n" - + "$golden_hallucination_metric_behavior\030\005 " - + "\001(\0162L.google.cloud.ces.v1.EvaluationMetr" - + "icsThresholds.HallucinationMetricBehaviorB\003\340A\001\022\201\001\n" - + "&scenario_hallucination_metric_behavior\030\004 \001(\0162L.google.cloud.ces.v1.Ev" - + "aluationMetricsThresholds.HallucinationMetricBehaviorB\003\340A\001\032\373\010\n" + + "$golden_evaluation_metrics_thresholds\030\001" + + " \001(\0132R.google.cloud.ces.v1.Evaluatio" + + "nMetricsThresholds.GoldenEvaluationMetricsThresholdsB\003\340A\001\022z\n" + + "\035hallucination_metric_behavior\030\003 \001(\0162L.google.cloud.ces.v1.E" + + "valuationMetricsThresholds.HallucinationMetricBehaviorB\005\030\001\340A\001\022\177\n" + + "$golden_hallucination_metric_behavior\030\005 \001(\0162L.google.clo" + + "ud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehaviorB\003\340A\001\022\201\001\n" + + "&scenario_hallucination_metric_behavior\030\004 \001(\0162" + + "L.google.cloud.ces.v1.EvaluationMetricsT" + + "hresholds.HallucinationMetricBehaviorB\003\340A\001\032\373\010\n" + "!GoldenEvaluationMetricsThresholds\022\231\001\n" - + "\035turn_level_metrics_thresholds\030\001 \001(\0132m.google.cloud.ces.v1.E" - + "valuationMetricsThresholds.GoldenEvaluat" - + "ionMetricsThresholds.TurnLevelMetricsThresholdsB\003\340A\001\022\247\001\n" - + "$expectation_level_metrics_thresholds\030\002 \001(\0132t.google.cloud.ces.v" - + "1.EvaluationMetricsThresholds.GoldenEval" - + "uationMetricsThresholds.ExpectationLevelMetricsThresholdsB\003\340A\001\022j\n" - + "\026tool_matching_settings\030\003 \001(\0132E.google.cloud.ces.v1.Eva" - + "luationMetricsThresholds.ToolMatchingSettingsB\003\340A\001\032\206\004\n" + + "\035turn_level_metrics_thresholds\030\001 \001(\013" + + "2m.google.cloud.ces.v1.EvaluationMetrics" + + "Thresholds.GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholdsB\003\340A\001\022\247\001\n" + + "$expectation_level_metrics_thresholds\030\002 " + + "\001(\0132t.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThr" + + "esholds.ExpectationLevelMetricsThresholdsB\003\340A\001\022j\n" + + "\026tool_matching_settings\030\003 \001(\0132E" + + ".google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettingsB\003\340A\001\032\206\004\n" + "\032TurnLevelMetricsThresholds\0227\n" + "%semantic_similarity_success_threshold\030\001" + " \001(\005B\003\340A\001H\000\210\001\001\022?\n" + "-overall_tool_invocation_correctness_threshold\030\002" + " \001(\002B\003\340A\001H\001\210\001\001\022\262\001\n" - + "\033semantic_similarity_channel\030\003 \001(" - + "\0162\207\001.google.cloud.ces.v1.EvaluationMetri" - + "csThresholds.GoldenEvaluationMetricsThre" - + "sholds.TurnLevelMetricsThresholds.SemanticSimilarityChannelB\003\340A\001\"]\n" + + "\033semantic_similarity_channel\030\003 \001(\0162\207\001.google.clou" + + "d.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.TurnLevel" + + "MetricsThresholds.SemanticSimilarityChannelB\003\340A\001\"]\n" + "\031SemanticSimilarityChannel\022+\n" + "\'SEMANTIC_SIMILARITY_CHANNEL_UNSPECIFIED\020\000\022\010\n" + "\004TEXT\020\001\022\t\n" @@ -316,9 +356,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\002B\003\340A\001H\000\210\001\001B2\n" + "0_tool_invocation_parameter_correctness_threshold\032\363\001\n" + "\024ToolMatchingSettings\022\202\001\n" - + "\030extra_tool_call_behavior\030\001 \001(\0162[.google.cl" - + "oud.ces.v1.EvaluationMetricsThresholds.T" - + "oolMatchingSettings.ExtraToolCallBehaviorB\003\340A\001\"V\n" + + "\030extra_tool_call_behavior\030\001 \001(\0162[.google.cloud.ces.v1.Evalu" + + "ationMetricsThresholds.ToolMatchingSettings.ExtraToolCallBehaviorB\003\340A\001\"V\n" + "\025ExtraToolCallBehavior\022(\n" + "$EXTRA_TOOL_CALL_BEHAVIOR_UNSPECIFIED\020\000\022\010\n" + "\004FAIL\020\001\022\t\n" @@ -331,9 +370,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017tls_certificate\030\001 \001(\tB\003\340A\002\022G\n" + "\013private_key\030\002 \001(\tB2\340A\002\372A,\n" + "*secretmanager.googleapis.com/SecretVersion\022\027\n\n" - + "passphrase\030\003 \001(\tB\003\340A\001\"H\n" + + "passphrase\030\003 \001(\tB\003\340A\001\"-\n\r" + + "VpcScSettings\022\034\n" + + "\017allowed_origins\030\001 \003(\tB\003\340A\001\"\202\001\n" + "\033ConversationLoggingSettings\022)\n" - + "\034disable_conversation_logging\030\001 \001(\010B\003\340A\001\"9\n" + + "\034disable_conversation_logging\030\001 \001(\010B\003\340A\001\0228\n" + + "\020retention_window\030\002" + + " \001(\0132\031.google.protobuf.DurationB\003\340A\001\"9\n" + "\024CloudLoggingSettings\022!\n" + "\024enable_cloud_logging\030\001 \001(\010B\003\340A\001\"M\n" + "\024AudioRecordingConfig\022\027\n\n" @@ -351,22 +394,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006Engine\022;\n" + "\004name\030\001 \001(\tB-\340A\003\372A\'\n" + "%discoveryengine.googleapis.com/Engine\022E\n" - + "\004type\030\002 \001(\01622.google.cloud.c" - + "es.v1.DataStoreSettings.Engine.TypeB\003\340A\003\"J\n" + + "\004type\030\002 \001(\01622.goog" + + "le.cloud.ces.v1.DataStoreSettings.Engine.TypeB\003\340A\003\"J\n" + "\004Type\022\024\n" + "\020TYPE_UNSPECIFIED\020\000\022\026\n" + "\022ENGINE_TYPE_SEARCH\020\001\022\024\n" + "\020ENGINE_TYPE_CHAT\020\002B\364\004\n" - + "\027com.google.cloud.ces.v1B\010AppProtoP\001Z)cl" - + "oud.google.com/go/ces/apiv1/cespb;cespb\352A\310\001\n" - + "\"dlp.googleapis.com/InspectTemplate\022Uorganizations/{organization}/locations/" - + "{location}/inspectTemplates/{inspect_template}\022Kprojects/{project}/locations/{lo" - + "cation}/inspectTemplates/{inspect_template}\352A\327\001\n" - + "%dlp.googleapis.com/DeidentifyTemplate\022[organizations/{organization}/loc" - + "ations/{location}/deidentifyTemplates/{deidentify_template}\022Qprojects/{project}/" - + "locations/{location}/deidentifyTemplates/{deidentify_template}\352Az\n" - + "%discoveryengine.googleapis.com/Engine\022Qprojects/{proj" - + "ect}/locations/{location}/collections/{collection}/engines/{engine}b\006proto3" + + "\027com.google.cloud.ces.v1B\010AppP" + + "rotoP\001Z)cloud.google.com/go/ces/apiv1/cespb;cespb\352A\310\001\n" + + "\"dlp.googleapis.com/InspectTemplate\022Uorganizations/{organization}/" + + "locations/{location}/inspectTemplates/{inspect_template}\022Kprojects/{project}/loc" + + "ations/{location}/inspectTemplates/{inspect_template}\352A\327\001\n" + + "%dlp.googleapis.com/DeidentifyTemplate\022[organizations/{organiz" + + "ation}/locations/{location}/deidentifyTemplates/{deidentify_template}\022Qprojects/" + + "{project}/locations/{location}/deidentifyTemplates/{deidentify_template}\352Az\n" + + "%discoveryengine.googleapis.com/Engine\022Qproj" + + "ects/{project}/locations/{location}/collections/{collection}/engines/{engine}b\006p" + + "roto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -410,7 +454,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Etag", "DeploymentCount", "ClientCertificateSettings", + "VpcScSettings", "Locked", + "ValidationErrors", }); internal_static_google_cloud_ces_v1_App_VariableDeclaration_descriptor = internal_static_google_cloud_ces_v1_App_descriptor.getNestedType(0); @@ -485,7 +531,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1_SynthesizeSpeechConfig_descriptor, new java.lang.String[] { - "Voice", "SpeakingRate", + "Voice", "VoiceSampleGcsUri", "SpeakingRate", "Model", "Instruction", }); internal_static_google_cloud_ces_v1_MetricAnalysisSettings_descriptor = getDescriptor().getMessageType(7); @@ -503,7 +549,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "RedactionConfig", "AudioRecordingConfig", + "UnredactedAudioRecordingConfig", "BigqueryExportSettings", + "UnredactedBigqueryExportSettings", "CloudLoggingSettings", "ConversationLoggingSettings", "EvaluationAudioRecordingConfig", @@ -515,7 +563,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1_ErrorHandlingSettings_descriptor, new java.lang.String[] { - "ErrorHandlingStrategy", + "ErrorHandlingStrategy", "FallbackResponseConfig", "EndSessionConfig", + }); + internal_static_google_cloud_ces_v1_ErrorHandlingSettings_FallbackResponseConfig_descriptor = + internal_static_google_cloud_ces_v1_ErrorHandlingSettings_descriptor.getNestedType(0); + internal_static_google_cloud_ces_v1_ErrorHandlingSettings_FallbackResponseConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_ErrorHandlingSettings_FallbackResponseConfig_descriptor, + new java.lang.String[] { + "CustomFallbackMessages", "MaxFallbackAttempts", + }); + internal_static_google_cloud_ces_v1_ErrorHandlingSettings_FallbackResponseConfig_CustomFallbackMessagesEntry_descriptor = + internal_static_google_cloud_ces_v1_ErrorHandlingSettings_FallbackResponseConfig_descriptor + .getNestedType(0); + internal_static_google_cloud_ces_v1_ErrorHandlingSettings_FallbackResponseConfig_CustomFallbackMessagesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_ErrorHandlingSettings_FallbackResponseConfig_CustomFallbackMessagesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_ces_v1_ErrorHandlingSettings_EndSessionConfig_descriptor = + internal_static_google_cloud_ces_v1_ErrorHandlingSettings_descriptor.getNestedType(1); + internal_static_google_cloud_ces_v1_ErrorHandlingSettings_EndSessionConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_ErrorHandlingSettings_EndSessionConfig_descriptor, + new java.lang.String[] { + "EscalateSession", }); internal_static_google_cloud_ces_v1_EvaluationMetricsThresholds_descriptor = getDescriptor().getMessageType(10); @@ -574,16 +647,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "TlsCertificate", "PrivateKey", "Passphrase", }); - internal_static_google_cloud_ces_v1_ConversationLoggingSettings_descriptor = + internal_static_google_cloud_ces_v1_VpcScSettings_descriptor = getDescriptor().getMessageType(12); + internal_static_google_cloud_ces_v1_VpcScSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_VpcScSettings_descriptor, + new java.lang.String[] { + "AllowedOrigins", + }); + internal_static_google_cloud_ces_v1_ConversationLoggingSettings_descriptor = + getDescriptor().getMessageType(13); internal_static_google_cloud_ces_v1_ConversationLoggingSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1_ConversationLoggingSettings_descriptor, new java.lang.String[] { - "DisableConversationLogging", + "DisableConversationLogging", "RetentionWindow", }); internal_static_google_cloud_ces_v1_CloudLoggingSettings_descriptor = - getDescriptor().getMessageType(13); + getDescriptor().getMessageType(14); internal_static_google_cloud_ces_v1_CloudLoggingSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1_CloudLoggingSettings_descriptor, @@ -591,7 +672,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EnableCloudLogging", }); internal_static_google_cloud_ces_v1_AudioRecordingConfig_descriptor = - getDescriptor().getMessageType(14); + getDescriptor().getMessageType(15); internal_static_google_cloud_ces_v1_AudioRecordingConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1_AudioRecordingConfig_descriptor, @@ -599,7 +680,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GcsBucket", "GcsPathPrefix", }); internal_static_google_cloud_ces_v1_RedactionConfig_descriptor = - getDescriptor().getMessageType(15); + getDescriptor().getMessageType(16); internal_static_google_cloud_ces_v1_RedactionConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1_RedactionConfig_descriptor, @@ -607,7 +688,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EnableRedaction", "InspectTemplate", "DeidentifyTemplate", }); internal_static_google_cloud_ces_v1_DataStoreSettings_descriptor = - getDescriptor().getMessageType(16); + getDescriptor().getMessageType(17); internal_static_google_cloud_ces_v1_DataStoreSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1_DataStoreSettings_descriptor, diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BargeInConfig.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BargeInConfig.java index 9de7e5847799..a59682e27ee2 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BargeInConfig.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BargeInConfig.java @@ -75,19 +75,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                -   * 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.v1.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]; * * * @deprecated google.cloud.ces.v1.BargeInConfig.disable_barge_in is deprecated. See - * google/cloud/ces/v1/app.proto;l=341 + * google/cloud/ces/v1/app.proto;l=348 * @return The disableBargeIn. */ @java.lang.Override @@ -451,19 +451,19 @@ 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.v1.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]; * * * @deprecated google.cloud.ces.v1.BargeInConfig.disable_barge_in is deprecated. See - * google/cloud/ces/v1/app.proto;l=341 + * google/cloud/ces/v1/app.proto;l=348 * @return The disableBargeIn. */ @java.lang.Override @@ -476,19 +476,19 @@ 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.v1.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]; * * * @deprecated google.cloud.ces.v1.BargeInConfig.disable_barge_in is deprecated. See - * google/cloud/ces/v1/app.proto;l=341 + * google/cloud/ces/v1/app.proto;l=348 * @param value The disableBargeIn to set. * @return This builder for chaining. */ @@ -505,19 +505,19 @@ 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.v1.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]; * * * @deprecated google.cloud.ces.v1.BargeInConfig.disable_barge_in is deprecated. See - * google/cloud/ces/v1/app.proto;l=341 + * google/cloud/ces/v1/app.proto;l=348 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BargeInConfigOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BargeInConfigOrBuilder.java index 3254270fd167..21c43f953cdb 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BargeInConfigOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BargeInConfigOrBuilder.java @@ -30,19 +30,19 @@ 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.v1.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]; * * * @deprecated google.cloud.ces.v1.BargeInConfig.disable_barge_in is deprecated. See - * google/cloud/ces/v1/app.proto;l=341 + * google/cloud/ces/v1/app.proto;l=348 * @return The disableBargeIn. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ChannelProfile.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ChannelProfile.java index 448dc98b0665..4ab28c562110 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ChannelProfile.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/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; } @@ -4095,864 +4164,4288 @@ public com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig getDefaultInstance } } - private int bitField0_; - public static final int PROFILE_ID_FIELD_NUMBER = 1; + public interface WhatsAppConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.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.v1.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.v1.ChannelProfile.ChannelType channel_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The channelType. - */ - @java.lang.Override - public com.google.cloud.ces.v1.ChannelProfile.ChannelType getChannelType() { - com.google.cloud.ces.v1.ChannelProfile.ChannelType result = - com.google.cloud.ces.v1.ChannelProfile.ChannelType.forNumber(channelType_); - return result == null - ? com.google.cloud.ces.v1.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.v1.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.v1.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.v1.ChannelProfile.PersonaProperty persona_property = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The personaProperty. - */ - @java.lang.Override - public com.google.cloud.ces.v1.ChannelProfile.PersonaProperty getPersonaProperty() { - return personaProperty_ == null - ? com.google.cloud.ces.v1.ChannelProfile.PersonaProperty.getDefaultInstance() - : personaProperty_; - } - - /** - * - * - *
                -   * Optional. The persona property of the channel profile.
                -   * 
                - * - * - * .google.cloud.ces.v1.ChannelProfile.PersonaProperty persona_property = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.ces.v1.ChannelProfile.PersonaPropertyOrBuilder - getPersonaPropertyOrBuilder() { - return personaProperty_ == null - ? com.google.cloud.ces.v1.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.v1.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.v1.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.v1.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.v1.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.v1.ChannelProfile.WebWidgetConfig web_widget_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The webWidgetConfig. - */ - @java.lang.Override - public com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig getWebWidgetConfig() { - return webWidgetConfig_ == null - ? com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.getDefaultInstance() - : webWidgetConfig_; - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_ChannelProfile_WhatsAppConfig_descriptor; + } - /** - * - * - *
                -   * Optional. The configuration for the web widget.
                -   * 
                - * - * - * .google.cloud.ces.v1.ChannelProfile.WebWidgetConfig web_widget_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfigOrBuilder - getWebWidgetConfigOrBuilder() { - return webWidgetConfig_ == null - ? com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.getDefaultInstance() - : webWidgetConfig_; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_ChannelProfile_WhatsAppConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ChannelProfile.WhatsAppConfig.class, + com.google.cloud.ces.v1.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.v1.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.v1.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.v1.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.v1.ChannelProfile other = (com.google.cloud.ces.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.ChannelProfile parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.ces.v1.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.v1.ChannelProfile parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.ces.v1.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.v1.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.v1.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.v1.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.v1.ChannelProfile} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.ChannelProfile) - com.google.cloud.ces.v1.ChannelProfileOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.ces.v1.CommonProto - .internal_static_google_cloud_ces_v1_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.v1.CommonProto - .internal_static_google_cloud_ces_v1_ChannelProfile_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.ces.v1.ChannelProfile.class, - com.google.cloud.ces.v1.ChannelProfile.Builder.class); - } - - // Construct using com.google.cloud.ces.v1.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.v1.CommonProto - .internal_static_google_cloud_ces_v1_ChannelProfile_descriptor; - } + private byte memoizedIsInitialized = -1; @java.lang.Override - public com.google.cloud.ces.v1.ChannelProfile getDefaultInstanceForType() { - return com.google.cloud.ces.v1.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.v1.ChannelProfile build() { - com.google.cloud.ces.v1.ChannelProfile result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; + memoizedIsInitialized = 1; + return true; } @java.lang.Override - public com.google.cloud.ces.v1.ChannelProfile buildPartial() { - com.google.cloud.ces.v1.ChannelProfile result = - new com.google.cloud.ces.v1.ChannelProfile(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.ces.v1.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.v1.ChannelProfile) { - return mergeFrom((com.google.cloud.ces.v1.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.v1.ChannelProfile other) { - if (other == com.google.cloud.ces.v1.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.v1.ChannelProfile.WhatsAppConfig)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.ChannelProfile.WhatsAppConfig other = + (com.google.cloud.ces.v1.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( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.ChannelProfile.WhatsAppConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.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.v1.ChannelProfile.WhatsAppConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.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.v1.ChannelProfile.WhatsAppConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.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.v1.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.v1.ChannelProfile.WhatsAppConfig parseFrom( + java.io.InputStream 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); + } + + public static com.google.cloud.ces.v1.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.v1.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.v1.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.v1.ChannelProfile.WhatsAppConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, 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.v1.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.v1.ChannelProfile.WhatsAppConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.ChannelProfile.WhatsAppConfig) + com.google.cloud.ces.v1.ChannelProfile.WhatsAppConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_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.v1.CommonProto + .internal_static_google_cloud_ces_v1_ChannelProfile_WhatsAppConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ChannelProfile.WhatsAppConfig.class, + com.google.cloud.ces.v1.ChannelProfile.WhatsAppConfig.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.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.v1.CommonProto + .internal_static_google_cloud_ces_v1_ChannelProfile_WhatsAppConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ChannelProfile.WhatsAppConfig getDefaultInstanceForType() { + return com.google.cloud.ces.v1.ChannelProfile.WhatsAppConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.ChannelProfile.WhatsAppConfig build() { + com.google.cloud.ces.v1.ChannelProfile.WhatsAppConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ChannelProfile.WhatsAppConfig buildPartial() { + com.google.cloud.ces.v1.ChannelProfile.WhatsAppConfig result = + new com.google.cloud.ces.v1.ChannelProfile.WhatsAppConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.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.v1.ChannelProfile.WhatsAppConfig) { + return mergeFrom((com.google.cloud.ces.v1.ChannelProfile.WhatsAppConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.ChannelProfile.WhatsAppConfig other) { + if (other == com.google.cloud.ces.v1.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.v1.ChannelProfile.WhatsAppConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.ChannelProfile.WhatsAppConfig) + private static final com.google.cloud.ces.v1.ChannelProfile.WhatsAppConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.ChannelProfile.WhatsAppConfig(); + } + + public static com.google.cloud.ces.v1.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.v1.ChannelProfile.WhatsAppConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface InstagramConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.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.v1.ChannelProfile.InstagramConfig} + */ + public static final class InstagramConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.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.v1.CommonProto + .internal_static_google_cloud_ces_v1_ChannelProfile_InstagramConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_ChannelProfile_InstagramConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ChannelProfile.InstagramConfig.class, + com.google.cloud.ces.v1.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.v1.ChannelProfile.InstagramConfig)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.ChannelProfile.InstagramConfig other = + (com.google.cloud.ces.v1.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.v1.ChannelProfile.InstagramConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.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.v1.ChannelProfile.InstagramConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.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.v1.ChannelProfile.InstagramConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.ChannelProfile.InstagramConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.ChannelProfile.InstagramConfig) + com.google.cloud.ces.v1.ChannelProfile.InstagramConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_ChannelProfile_InstagramConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_ChannelProfile_InstagramConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ChannelProfile.InstagramConfig.class, + com.google.cloud.ces.v1.ChannelProfile.InstagramConfig.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.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.v1.CommonProto + .internal_static_google_cloud_ces_v1_ChannelProfile_InstagramConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ChannelProfile.InstagramConfig getDefaultInstanceForType() { + return com.google.cloud.ces.v1.ChannelProfile.InstagramConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.ChannelProfile.InstagramConfig build() { + com.google.cloud.ces.v1.ChannelProfile.InstagramConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ChannelProfile.InstagramConfig buildPartial() { + com.google.cloud.ces.v1.ChannelProfile.InstagramConfig result = + new com.google.cloud.ces.v1.ChannelProfile.InstagramConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.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.v1.ChannelProfile.InstagramConfig) { + return mergeFrom((com.google.cloud.ces.v1.ChannelProfile.InstagramConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.ChannelProfile.InstagramConfig other) { + if (other == com.google.cloud.ces.v1.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.v1.ChannelProfile.InstagramConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.ChannelProfile.InstagramConfig) + private static final com.google.cloud.ces.v1.ChannelProfile.InstagramConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.ChannelProfile.InstagramConfig(); + } + + public static com.google.cloud.ces.v1.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.v1.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.v1.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.v1.ChannelProfile.ChannelType channel_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The channelType. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ChannelProfile.ChannelType getChannelType() { + com.google.cloud.ces.v1.ChannelProfile.ChannelType result = + com.google.cloud.ces.v1.ChannelProfile.ChannelType.forNumber(channelType_); + return result == null + ? com.google.cloud.ces.v1.ChannelProfile.ChannelType.UNRECOGNIZED + : result; + } + + public static final int PERSONA_PROPERTY_FIELD_NUMBER = 2; + private com.google.cloud.ces.v1.ChannelProfile.PersonaProperty personaProperty_; + + /** + * + * + *
                +   * Optional. The persona property of the channel profile.
                +   * 
                + * + * + * .google.cloud.ces.v1.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.v1.ChannelProfile.PersonaProperty persona_property = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The personaProperty. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ChannelProfile.PersonaProperty getPersonaProperty() { + return personaProperty_ == null + ? com.google.cloud.ces.v1.ChannelProfile.PersonaProperty.getDefaultInstance() + : personaProperty_; + } + + /** + * + * + *
                +   * Optional. The persona property of the channel profile.
                +   * 
                + * + * + * .google.cloud.ces.v1.ChannelProfile.PersonaProperty persona_property = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ChannelProfile.PersonaPropertyOrBuilder + getPersonaPropertyOrBuilder() { + return personaProperty_ == null + ? com.google.cloud.ces.v1.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.v1.ChannelProfile.WebWidgetConfig webWidgetConfig_; + + /** + * + * + *
                +   * Optional. The configuration for the web widget.
                +   * 
                + * + * + * .google.cloud.ces.v1.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.v1.ChannelProfile.WebWidgetConfig web_widget_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The webWidgetConfig. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig getWebWidgetConfig() { + return webWidgetConfig_ == null + ? com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.getDefaultInstance() + : webWidgetConfig_; + } + + /** + * + * + *
                +   * Optional. The configuration for the web widget.
                +   * 
                + * + * + * .google.cloud.ces.v1.ChannelProfile.WebWidgetConfig web_widget_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfigOrBuilder + getWebWidgetConfigOrBuilder() { + return webWidgetConfig_ == null + ? com.google.cloud.ces.v1.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.v1.ChannelProfile.WhatsAppConfig whatsappConfig_; + + /** + * + * + *
                +   * Optional. Configuration specific to WhatsApp deployments.
                +   * 
                + * + * + * .google.cloud.ces.v1.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.v1.ChannelProfile.WhatsAppConfig whatsapp_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The whatsappConfig. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ChannelProfile.WhatsAppConfig getWhatsappConfig() { + return whatsappConfig_ == null + ? com.google.cloud.ces.v1.ChannelProfile.WhatsAppConfig.getDefaultInstance() + : whatsappConfig_; + } + + /** + * + * + *
                +   * Optional. Configuration specific to WhatsApp deployments.
                +   * 
                + * + * + * .google.cloud.ces.v1.ChannelProfile.WhatsAppConfig whatsapp_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ChannelProfile.WhatsAppConfigOrBuilder + getWhatsappConfigOrBuilder() { + return whatsappConfig_ == null + ? com.google.cloud.ces.v1.ChannelProfile.WhatsAppConfig.getDefaultInstance() + : whatsappConfig_; + } + + public static final int INSTAGRAM_CONFIG_FIELD_NUMBER = 10; + private com.google.cloud.ces.v1.ChannelProfile.InstagramConfig instagramConfig_; + + /** + * + * + *
                +   * Optional. Configuration specific to Instagram deployments.
                +   * 
                + * + * + * .google.cloud.ces.v1.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.v1.ChannelProfile.InstagramConfig instagram_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The instagramConfig. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ChannelProfile.InstagramConfig getInstagramConfig() { + return instagramConfig_ == null + ? com.google.cloud.ces.v1.ChannelProfile.InstagramConfig.getDefaultInstance() + : instagramConfig_; + } + + /** + * + * + *
                +   * Optional. Configuration specific to Instagram deployments.
                +   * 
                + * + * + * .google.cloud.ces.v1.ChannelProfile.InstagramConfig instagram_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ChannelProfile.InstagramConfigOrBuilder + getInstagramConfigOrBuilder() { + return instagramConfig_ == null + ? com.google.cloud.ces.v1.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.v1.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.v1.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.v1.ChannelProfile)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.ChannelProfile other = (com.google.cloud.ces.v1.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.v1.ChannelProfile parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.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.v1.ChannelProfile parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.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.v1.ChannelProfile parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.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.v1.ChannelProfile parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.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.v1.ChannelProfile parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.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.v1.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.v1.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.v1.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.v1.ChannelProfile} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.ChannelProfile) + com.google.cloud.ces.v1.ChannelProfileOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_ChannelProfile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_ChannelProfile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ChannelProfile.class, + com.google.cloud.ces.v1.ChannelProfile.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.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.v1.CommonProto + .internal_static_google_cloud_ces_v1_ChannelProfile_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ChannelProfile getDefaultInstanceForType() { + return com.google.cloud.ces.v1.ChannelProfile.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.ChannelProfile build() { + com.google.cloud.ces.v1.ChannelProfile result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ChannelProfile buildPartial() { + com.google.cloud.ces.v1.ChannelProfile result = + new com.google.cloud.ces.v1.ChannelProfile(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.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.v1.ChannelProfile) { + return mergeFrom((com.google.cloud.ces.v1.ChannelProfile) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.ChannelProfile other) { + if (other == com.google.cloud.ces.v1.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.v1.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.v1.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.v1.ChannelProfile.ChannelType channel_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The channelType. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ChannelProfile.ChannelType getChannelType() { + com.google.cloud.ces.v1.ChannelProfile.ChannelType result = + com.google.cloud.ces.v1.ChannelProfile.ChannelType.forNumber(channelType_); + return result == null + ? com.google.cloud.ces.v1.ChannelProfile.ChannelType.UNRECOGNIZED + : result; + } + + /** + * + * + *
                +     * Optional. The type of the channel profile.
                +     * 
                + * + * + * .google.cloud.ces.v1.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.v1.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.v1.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.v1.ChannelProfile.PersonaProperty personaProperty_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ChannelProfile.PersonaProperty, + com.google.cloud.ces.v1.ChannelProfile.PersonaProperty.Builder, + com.google.cloud.ces.v1.ChannelProfile.PersonaPropertyOrBuilder> + personaPropertyBuilder_; + + /** + * + * + *
                +     * Optional. The persona property of the channel profile.
                +     * 
                + * + * + * .google.cloud.ces.v1.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.v1.ChannelProfile.PersonaProperty persona_property = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The personaProperty. + */ + public com.google.cloud.ces.v1.ChannelProfile.PersonaProperty getPersonaProperty() { + if (personaPropertyBuilder_ == null) { + return personaProperty_ == null + ? com.google.cloud.ces.v1.ChannelProfile.PersonaProperty.getDefaultInstance() + : personaProperty_; + } else { + return personaPropertyBuilder_.getMessage(); + } + } + + /** + * + * + *
                +     * Optional. The persona property of the channel profile.
                +     * 
                + * + * + * .google.cloud.ces.v1.ChannelProfile.PersonaProperty persona_property = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPersonaProperty( + com.google.cloud.ces.v1.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.v1.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.v1.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.v1.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.v1.ChannelProfile.PersonaProperty value) { + if (personaPropertyBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && personaProperty_ != null + && personaProperty_ + != com.google.cloud.ces.v1.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.v1.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; } @@ -4961,80 +8454,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.v1.ChannelProfile.PersonaProperty persona_property = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder clearProfileId() { - profileId_ = getDefaultInstance().getProfileId(); - bitField0_ = (bitField0_ & ~0x00000001); + public com.google.cloud.ces.v1.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.v1.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.v1.ChannelProfile.PersonaPropertyOrBuilder + getPersonaPropertyOrBuilder() { + if (personaPropertyBuilder_ != null) { + return personaPropertyBuilder_.getMessageOrBuilder(); + } else { + return personaProperty_ == null + ? com.google.cloud.ces.v1.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.v1.ChannelProfile.ChannelType channel_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1.ChannelProfile.PersonaProperty persona_property = 2 [(.google.api.field_behavior) = OPTIONAL]; * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ChannelProfile.PersonaProperty, + com.google.cloud.ces.v1.ChannelProfile.PersonaProperty.Builder, + com.google.cloud.ces.v1.ChannelProfile.PersonaPropertyOrBuilder> + internalGetPersonaPropertyFieldBuilder() { + if (personaPropertyBuilder_ == null) { + personaPropertyBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ChannelProfile.PersonaProperty, + com.google.cloud.ces.v1.ChannelProfile.PersonaProperty.Builder, + com.google.cloud.ces.v1.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.v1.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; } @@ -5043,44 +8560,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.v1.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.v1.ChannelProfile.ChannelType getChannelType() { - com.google.cloud.ces.v1.ChannelProfile.ChannelType result = - com.google.cloud.ces.v1.ChannelProfile.ChannelType.forNumber(channelType_); - return result == null - ? com.google.cloud.ces.v1.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.v1.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.v1.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; } @@ -5089,66 +8622,67 @@ public Builder setChannelType(com.google.cloud.ces.v1.ChannelProfile.ChannelType * * *
                -     * 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.v1.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.v1.ChannelProfile.PersonaProperty personaProperty_; + private com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig webWidgetConfig_; private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.ces.v1.ChannelProfile.PersonaProperty, - com.google.cloud.ces.v1.ChannelProfile.PersonaProperty.Builder, - com.google.cloud.ces.v1.ChannelProfile.PersonaPropertyOrBuilder> - personaPropertyBuilder_; + com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig, + com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.Builder, + com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfigOrBuilder> + webWidgetConfigBuilder_; /** * * *
                -     * Optional. The persona property of the channel profile.
                +     * Optional. The configuration for the web widget.
                      * 
                * * - * .google.cloud.ces.v1.ChannelProfile.PersonaProperty persona_property = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1.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.v1.ChannelProfile.PersonaProperty persona_property = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1.ChannelProfile.WebWidgetConfig web_widget_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The personaProperty. + * @return The webWidgetConfig. */ - public com.google.cloud.ces.v1.ChannelProfile.PersonaProperty getPersonaProperty() { - if (personaPropertyBuilder_ == null) { - return personaProperty_ == null - ? com.google.cloud.ces.v1.ChannelProfile.PersonaProperty.getDefaultInstance() - : personaProperty_; + public com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig getWebWidgetConfig() { + if (webWidgetConfigBuilder_ == null) { + return webWidgetConfig_ == null + ? com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.getDefaultInstance() + : webWidgetConfig_; } else { - return personaPropertyBuilder_.getMessage(); + return webWidgetConfigBuilder_.getMessage(); } } @@ -5156,24 +8690,24 @@ public com.google.cloud.ces.v1.ChannelProfile.PersonaProperty getPersonaProperty * * *
                -     * Optional. The persona property of the channel profile.
                +     * Optional. The configuration for the web widget.
                      * 
                * * - * .google.cloud.ces.v1.ChannelProfile.PersonaProperty persona_property = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1.ChannelProfile.WebWidgetConfig web_widget_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setPersonaProperty( - com.google.cloud.ces.v1.ChannelProfile.PersonaProperty value) { - if (personaPropertyBuilder_ == null) { + public Builder setWebWidgetConfig( + com.google.cloud.ces.v1.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; } @@ -5182,21 +8716,21 @@ public Builder setPersonaProperty( * * *
                -     * Optional. The persona property of the channel profile.
                +     * Optional. The configuration for the web widget.
                      * 
                * * - * .google.cloud.ces.v1.ChannelProfile.PersonaProperty persona_property = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1.ChannelProfile.WebWidgetConfig web_widget_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setPersonaProperty( - com.google.cloud.ces.v1.ChannelProfile.PersonaProperty.Builder builderForValue) { - if (personaPropertyBuilder_ == null) { - personaProperty_ = builderForValue.build(); + public Builder setWebWidgetConfig( + com.google.cloud.ces.v1.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; } @@ -5205,29 +8739,29 @@ public Builder setPersonaProperty( * * *
                -     * Optional. The persona property of the channel profile.
                +     * Optional. The configuration for the web widget.
                      * 
                * * - * .google.cloud.ces.v1.ChannelProfile.PersonaProperty persona_property = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1.ChannelProfile.WebWidgetConfig web_widget_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergePersonaProperty( - com.google.cloud.ces.v1.ChannelProfile.PersonaProperty value) { - if (personaPropertyBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && personaProperty_ != null - && personaProperty_ - != com.google.cloud.ces.v1.ChannelProfile.PersonaProperty.getDefaultInstance()) { - getPersonaPropertyBuilder().mergeFrom(value); + public Builder mergeWebWidgetConfig( + com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig value) { + if (webWidgetConfigBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && webWidgetConfig_ != null + && webWidgetConfig_ + != com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.getDefaultInstance()) { + 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; @@ -5237,19 +8771,19 @@ public Builder mergePersonaProperty( * * *
                -     * Optional. The persona property of the channel profile.
                +     * Optional. The configuration for the web widget.
                      * 
                * * - * .google.cloud.ces.v1.ChannelProfile.PersonaProperty persona_property = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1.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; @@ -5259,39 +8793,39 @@ public Builder clearPersonaProperty() { * * *
                -     * Optional. The persona property of the channel profile.
                +     * Optional. The configuration for the web widget.
                      * 
                * * - * .google.cloud.ces.v1.ChannelProfile.PersonaProperty persona_property = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1.ChannelProfile.WebWidgetConfig web_widget_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.ces.v1.ChannelProfile.PersonaProperty.Builder - getPersonaPropertyBuilder() { - bitField0_ |= 0x00000004; + public com.google.cloud.ces.v1.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.v1.ChannelProfile.PersonaProperty persona_property = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1.ChannelProfile.WebWidgetConfig web_widget_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.ces.v1.ChannelProfile.PersonaPropertyOrBuilder - getPersonaPropertyOrBuilder() { - if (personaPropertyBuilder_ != null) { - return personaPropertyBuilder_.getMessageOrBuilder(); + public com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfigOrBuilder + getWebWidgetConfigOrBuilder() { + if (webWidgetConfigBuilder_ != null) { + return webWidgetConfigBuilder_.getMessageOrBuilder(); } else { - return personaProperty_ == null - ? com.google.cloud.ces.v1.ChannelProfile.PersonaProperty.getDefaultInstance() - : personaProperty_; + return webWidgetConfig_ == null + ? com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.getDefaultInstance() + : webWidgetConfig_; } } @@ -5299,126 +8833,118 @@ public Builder clearPersonaProperty() { * * *
                -     * Optional. The persona property of the channel profile.
                +     * Optional. The configuration for the web widget.
                      * 
                * * - * .google.cloud.ces.v1.ChannelProfile.PersonaProperty persona_property = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1.ChannelProfile.WebWidgetConfig web_widget_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.ces.v1.ChannelProfile.PersonaProperty, - com.google.cloud.ces.v1.ChannelProfile.PersonaProperty.Builder, - com.google.cloud.ces.v1.ChannelProfile.PersonaPropertyOrBuilder> - internalGetPersonaPropertyFieldBuilder() { - if (personaPropertyBuilder_ == null) { - personaPropertyBuilder_ = + com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig, + com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.Builder, + com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfigOrBuilder> + internalGetWebWidgetConfigFieldBuilder() { + if (webWidgetConfigBuilder_ == null) { + webWidgetConfigBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.ces.v1.ChannelProfile.PersonaProperty, - com.google.cloud.ces.v1.ChannelProfile.PersonaProperty.Builder, - com.google.cloud.ces.v1.ChannelProfile.PersonaPropertyOrBuilder>( - getPersonaProperty(), getParentForChildren(), isClean()); - personaProperty_ = null; + com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig, + com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.Builder, + com.google.cloud.ces.v1.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; } @@ -5427,67 +8953,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.v1.ChannelProfile.WebWidgetConfig webWidgetConfig_; + private com.google.cloud.ces.v1.ChannelProfile.WhatsAppConfig whatsappConfig_; private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig, - com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.Builder, - com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfigOrBuilder> - webWidgetConfigBuilder_; + com.google.cloud.ces.v1.ChannelProfile.WhatsAppConfig, + com.google.cloud.ces.v1.ChannelProfile.WhatsAppConfig.Builder, + com.google.cloud.ces.v1.ChannelProfile.WhatsAppConfigOrBuilder> + whatsappConfigBuilder_; /** * * *
                -     * Optional. The configuration for the web widget.
                +     * Optional. Configuration specific to WhatsApp deployments.
                      * 
                * * - * .google.cloud.ces.v1.ChannelProfile.WebWidgetConfig web_widget_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1.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.v1.ChannelProfile.WebWidgetConfig web_widget_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1.ChannelProfile.WhatsAppConfig whatsapp_config = 9 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The webWidgetConfig. + * @return The whatsappConfig. */ - public com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig getWebWidgetConfig() { - if (webWidgetConfigBuilder_ == null) { - return webWidgetConfig_ == null - ? com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.getDefaultInstance() - : webWidgetConfig_; + public com.google.cloud.ces.v1.ChannelProfile.WhatsAppConfig getWhatsappConfig() { + if (whatsappConfigBuilder_ == null) { + return whatsappConfig_ == null + ? com.google.cloud.ces.v1.ChannelProfile.WhatsAppConfig.getDefaultInstance() + : whatsappConfig_; } else { - return webWidgetConfigBuilder_.getMessage(); + return whatsappConfigBuilder_.getMessage(); } } @@ -5495,24 +9024,23 @@ public com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig getWebWidgetConfig * * *
                -     * Optional. The configuration for the web widget.
                +     * Optional. Configuration specific to WhatsApp deployments.
                      * 
                * * - * .google.cloud.ces.v1.ChannelProfile.WebWidgetConfig web_widget_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1.ChannelProfile.WhatsAppConfig whatsapp_config = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setWebWidgetConfig( - com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig value) { - if (webWidgetConfigBuilder_ == null) { + public Builder setWhatsappConfig(com.google.cloud.ces.v1.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; } @@ -5521,21 +9049,21 @@ public Builder setWebWidgetConfig( * * *
                -     * Optional. The configuration for the web widget.
                +     * Optional. Configuration specific to WhatsApp deployments.
                      * 
                * * - * .google.cloud.ces.v1.ChannelProfile.WebWidgetConfig web_widget_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1.ChannelProfile.WhatsAppConfig whatsapp_config = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setWebWidgetConfig( - com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.Builder builderForValue) { - if (webWidgetConfigBuilder_ == null) { - webWidgetConfig_ = builderForValue.build(); + public Builder setWhatsappConfig( + com.google.cloud.ces.v1.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; } @@ -5544,29 +9072,29 @@ public Builder setWebWidgetConfig( * * *
                -     * Optional. The configuration for the web widget.
                +     * Optional. Configuration specific to WhatsApp deployments.
                      * 
                * * - * .google.cloud.ces.v1.ChannelProfile.WebWidgetConfig web_widget_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1.ChannelProfile.WhatsAppConfig whatsapp_config = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeWebWidgetConfig( - com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig value) { - if (webWidgetConfigBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && webWidgetConfig_ != null - && webWidgetConfig_ - != com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.getDefaultInstance()) { - getWebWidgetConfigBuilder().mergeFrom(value); + public Builder mergeWhatsappConfig( + com.google.cloud.ces.v1.ChannelProfile.WhatsAppConfig value) { + if (whatsappConfigBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && whatsappConfig_ != null + && whatsappConfig_ + != com.google.cloud.ces.v1.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; @@ -5576,19 +9104,19 @@ public Builder mergeWebWidgetConfig( * * *
                -     * Optional. The configuration for the web widget.
                +     * Optional. Configuration specific to WhatsApp deployments.
                      * 
                * * - * .google.cloud.ces.v1.ChannelProfile.WebWidgetConfig web_widget_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1.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; @@ -5598,39 +9126,39 @@ public Builder clearWebWidgetConfig() { * * *
                -     * Optional. The configuration for the web widget.
                +     * Optional. Configuration specific to WhatsApp deployments.
                      * 
                * * - * .google.cloud.ces.v1.ChannelProfile.WebWidgetConfig web_widget_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1.ChannelProfile.WhatsAppConfig whatsapp_config = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.Builder - getWebWidgetConfigBuilder() { - bitField0_ |= 0x00000020; + public com.google.cloud.ces.v1.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.v1.ChannelProfile.WebWidgetConfig web_widget_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1.ChannelProfile.WhatsAppConfig whatsapp_config = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfigOrBuilder - getWebWidgetConfigOrBuilder() { - if (webWidgetConfigBuilder_ != null) { - return webWidgetConfigBuilder_.getMessageOrBuilder(); + public com.google.cloud.ces.v1.ChannelProfile.WhatsAppConfigOrBuilder + getWhatsappConfigOrBuilder() { + if (whatsappConfigBuilder_ != null) { + return whatsappConfigBuilder_.getMessageOrBuilder(); } else { - return webWidgetConfig_ == null - ? com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.getDefaultInstance() - : webWidgetConfig_; + return whatsappConfig_ == null + ? com.google.cloud.ces.v1.ChannelProfile.WhatsAppConfig.getDefaultInstance() + : whatsappConfig_; } } @@ -5638,77 +9166,74 @@ public Builder clearWebWidgetConfig() { * * *
                -     * Optional. The configuration for the web widget.
                +     * Optional. Configuration specific to WhatsApp deployments.
                      * 
                * * - * .google.cloud.ces.v1.ChannelProfile.WebWidgetConfig web_widget_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1.ChannelProfile.WhatsAppConfig whatsapp_config = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig, - com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.Builder, - com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfigOrBuilder> - internalGetWebWidgetConfigFieldBuilder() { - if (webWidgetConfigBuilder_ == null) { - webWidgetConfigBuilder_ = + com.google.cloud.ces.v1.ChannelProfile.WhatsAppConfig, + com.google.cloud.ces.v1.ChannelProfile.WhatsAppConfig.Builder, + com.google.cloud.ces.v1.ChannelProfile.WhatsAppConfigOrBuilder> + internalGetWhatsappConfigFieldBuilder() { + if (whatsappConfigBuilder_ == null) { + whatsappConfigBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig, - com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.Builder, - com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfigOrBuilder>( - getWebWidgetConfig(), getParentForChildren(), isClean()); - webWidgetConfig_ = null; + com.google.cloud.ces.v1.ChannelProfile.WhatsAppConfig, + com.google.cloud.ces.v1.ChannelProfile.WhatsAppConfig.Builder, + com.google.cloud.ces.v1.ChannelProfile.WhatsAppConfigOrBuilder>( + getWhatsappConfig(), getParentForChildren(), isClean()); + whatsappConfig_ = null; } - return webWidgetConfigBuilder_; + return whatsappConfigBuilder_; } - private java.lang.Object noiseSuppressionLevel_ = ""; + private com.google.cloud.ces.v1.ChannelProfile.InstagramConfig instagramConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ChannelProfile.InstagramConfig, + com.google.cloud.ces.v1.ChannelProfile.InstagramConfig.Builder, + com.google.cloud.ces.v1.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.v1.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.v1.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.v1.ChannelProfile.InstagramConfig getInstagramConfig() { + if (instagramConfigBuilder_ == null) { + return instagramConfig_ == null + ? com.google.cloud.ces.v1.ChannelProfile.InstagramConfig.getDefaultInstance() + : instagramConfig_; } else { - return (com.google.protobuf.ByteString) ref; + return instagramConfigBuilder_.getMessage(); } } @@ -5716,21 +9241,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.v1.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.v1.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; } @@ -5739,17 +9267,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.v1.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.v1.ChannelProfile.InstagramConfig.Builder builderForValue) { + if (instagramConfigBuilder_ == null) { + instagramConfig_ = builderForValue.build(); + } else { + instagramConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -5758,26 +9290,124 @@ 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.v1.ChannelProfile.InstagramConfig instagram_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeInstagramConfig( + com.google.cloud.ces.v1.ChannelProfile.InstagramConfig value) { + if (instagramConfigBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && instagramConfig_ != null + && instagramConfig_ + != com.google.cloud.ces.v1.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.v1.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.v1.ChannelProfile.InstagramConfig instagram_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ChannelProfile.InstagramConfig.Builder + getInstagramConfigBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return internalGetInstagramConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
                +     * Optional. Configuration specific to Instagram deployments.
                +     * 
                + * + * + * .google.cloud.ces.v1.ChannelProfile.InstagramConfig instagram_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ChannelProfile.InstagramConfigOrBuilder + getInstagramConfigOrBuilder() { + if (instagramConfigBuilder_ != null) { + return instagramConfigBuilder_.getMessageOrBuilder(); + } else { + return instagramConfig_ == null + ? com.google.cloud.ces.v1.ChannelProfile.InstagramConfig.getDefaultInstance() + : instagramConfig_; + } + } + + /** + * + * + *
                +     * Optional. Configuration specific to Instagram deployments.
                +     * 
                + * + * + * .google.cloud.ces.v1.ChannelProfile.InstagramConfig instagram_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ChannelProfile.InstagramConfig, + com.google.cloud.ces.v1.ChannelProfile.InstagramConfig.Builder, + com.google.cloud.ces.v1.ChannelProfile.InstagramConfigOrBuilder> + internalGetInstagramConfigFieldBuilder() { + if (instagramConfigBuilder_ == null) { + instagramConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ChannelProfile.InstagramConfig, + com.google.cloud.ces.v1.ChannelProfile.InstagramConfig.Builder, + com.google.cloud.ces.v1.ChannelProfile.InstagramConfigOrBuilder>( + getInstagramConfig(), getParentForChildren(), isClean()); + instagramConfig_ = null; + } + return instagramConfigBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.ChannelProfile) } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ChannelProfileOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ChannelProfileOrBuilder.java index 06791f6546d5..adbb4c3999b5 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ChannelProfileOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/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.v1.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.v1.ChannelProfile.WhatsAppConfig whatsapp_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The whatsappConfig. + */ + com.google.cloud.ces.v1.ChannelProfile.WhatsAppConfig getWhatsappConfig(); + + /** + * + * + *
                +   * Optional. Configuration specific to WhatsApp deployments.
                +   * 
                + * + * + * .google.cloud.ces.v1.ChannelProfile.WhatsAppConfig whatsapp_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.ChannelProfile.WhatsAppConfigOrBuilder getWhatsappConfigOrBuilder(); + + /** + * + * + *
                +   * Optional. Configuration specific to Instagram deployments.
                +   * 
                + * + * + * .google.cloud.ces.v1.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.v1.ChannelProfile.InstagramConfig instagram_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The instagramConfig. + */ + com.google.cloud.ces.v1.ChannelProfile.InstagramConfig getInstagramConfig(); + + /** + * + * + *
                +   * Optional. Configuration specific to Instagram deployments.
                +   * 
                + * + * + * .google.cloud.ces.v1.ChannelProfile.InstagramConfig instagram_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.ChannelProfile.InstagramConfigOrBuilder getInstagramConfigOrBuilder(); } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ChannelProfileProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ChannelProfileProto.java index 86ab088f74af..6b5095ed0353 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ChannelProfileProto.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ChannelProfileProto.java @@ -40,10 +40,30 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_ExperimentConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_ExperimentConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_ExperimentConfig_VersionRelease_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_ExperimentConfig_VersionRelease_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_ExperimentConfig_VersionRelease_TrafficAllocation_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_ExperimentConfig_VersionRelease_TrafficAllocation_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_ces_v1_Deployment_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_ces_v1_Deployment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_WhatsAppCredentials_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_WhatsAppCredentials_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_InstagramCredentials_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_InstagramCredentials_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -57,23 +77,58 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "$google/cloud/ces/v1/deployment.proto\022\023" + "google.cloud.ces.v1\032\037google/api/field_be" + "havior.proto\032\031google/api/resource.proto\032" - + " google/cloud/ces/v1/common.proto\032\037google/protobuf/timestamp.proto\"\304\003\n\n" + + " google/cloud/ces/v1/common.proto\032\037google/protobuf/timestamp.proto\"\371\003\n" + + "\020ExperimentConfig\022R\n" + + "\017version_release\030\001 \001(\01324.googl" + + "e.cloud.ces.v1.ExperimentConfig.VersionReleaseB\003\340A\001\032\277\002\n" + + "\016VersionRelease\022?\n" + + "\005state\030\001" + + " \001(\0162+.google.cloud.ces.v1.ExperimentConfig.StateB\003\340A\001\022h\n" + + "\023traffic_allocations\030\002 \003(\0132F.google.cloud.ces.v1.ExperimentCon" + + "fig.VersionRelease.TrafficAllocationB\003\340A\001\032\201\001\n" + + "\021TrafficAllocation\022\017\n" + + "\002id\030\001 \001(\tB\003\340A\001\022\037\n" + + "\022traffic_percentage\030\002 \001(\005B\003\340A\001\022:\n" + + "\013app_version\030\003 \001(\tB%\340A\001\372A\037\n" + + "\035ces.googleapis.com/AppVersion\"O\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\013\n" + + "\007PENDING\020\001\022\013\n" + + "\007RUNNING\020\002\022\010\n" + + "\004DONE\020\003\022\013\n" + + "\007EXPIRED\020\004\"\255\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" + "\013app_version\030\002 \001(\tB%\340A\001\372A\037\n" + "\035ces.googleapis.com/AppVersion\022A\n" - + "\017channel_profile\030\003" - + " \001(\0132#.google.cloud.ces.v1.ChannelProfileB\003\340A\002\0224\n" + + "\017channel_profile\030\003 \001(\013" + + "2#.google.cloud.ces.v1.ChannelProfileB\003\340A\002\0224\n" + "\013create_time\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\005" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\021\n" - + "\004etag\030\007 \001(\tB\003\340A\003:\211\001\352A\205\001\n" - + "\035ces.googleapis.com/Deployment\022Kprojects/{project}/" - + "locations/{location}/apps/{app}/deployments/{deployment}*\013deployments2\n" - + "deploymentB[\n" - + "\027com.google.cloud.ces.v1B\023ChannelProfileProtoP\001Z)cloud.google.com/go/ces/api" - + "v1/cespb;cespbb\006proto3" + + "\004etag\030\007 \001(\tB\003\340A\003\022E\n" + + "\021experiment_config\030\t \001(\0132%.g" + + "oogle.cloud.ces.v1.ExperimentConfigB\003\340A\001\022N\n" + + "\024whatsapp_credentials\030\n" + + " \001(\0132(.google.cloud.ces.v1.WhatsAppCredentialsB\006\340A\001\340A\004\022P\n" + + "\025instagram_credentials\030\013 \001(\0132).google" + + ".cloud.ces.v1.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\002B[\n" + + "\027com.google.cloud.ces.v1B\023ChannelProfileProtoP\001Z)cloud.google." + + "com/go/ces/apiv1/cespb;cespbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -84,7 +139,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.ces.v1.CommonProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); - internal_static_google_cloud_ces_v1_Deployment_descriptor = getDescriptor().getMessageType(0); + internal_static_google_cloud_ces_v1_ExperimentConfig_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_ces_v1_ExperimentConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_ExperimentConfig_descriptor, + new java.lang.String[] { + "VersionRelease", + }); + internal_static_google_cloud_ces_v1_ExperimentConfig_VersionRelease_descriptor = + internal_static_google_cloud_ces_v1_ExperimentConfig_descriptor.getNestedType(0); + internal_static_google_cloud_ces_v1_ExperimentConfig_VersionRelease_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_ExperimentConfig_VersionRelease_descriptor, + new java.lang.String[] { + "State", "TrafficAllocations", + }); + internal_static_google_cloud_ces_v1_ExperimentConfig_VersionRelease_TrafficAllocation_descriptor = + internal_static_google_cloud_ces_v1_ExperimentConfig_VersionRelease_descriptor + .getNestedType(0); + internal_static_google_cloud_ces_v1_ExperimentConfig_VersionRelease_TrafficAllocation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_ExperimentConfig_VersionRelease_TrafficAllocation_descriptor, + new java.lang.String[] { + "Id", "TrafficPercentage", "AppVersion", + }); + internal_static_google_cloud_ces_v1_Deployment_descriptor = getDescriptor().getMessageType(1); internal_static_google_cloud_ces_v1_Deployment_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1_Deployment_descriptor, @@ -96,6 +176,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CreateTime", "UpdateTime", "Etag", + "ExperimentConfig", + "WhatsappCredentials", + "InstagramCredentials", + }); + internal_static_google_cloud_ces_v1_WhatsAppCredentials_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_ces_v1_WhatsAppCredentials_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_WhatsAppCredentials_descriptor, + new java.lang.String[] { + "AuthCode", + "Pin", + "PhoneNumber", + "BusinessAccountId", + "WabaId", + "ConversationProfileId", + }); + internal_static_google_cloud_ces_v1_InstagramCredentials_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_ces_v1_InstagramCredentials_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_InstagramCredentials_descriptor, + new java.lang.String[] { + "AuthCode", "ConversationProfileId", }); descriptor.resolveAllFeaturesImmutable(); com.google.api.FieldBehaviorProto.getDescriptor(); diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Citations.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Citations.java index f76c31bbe72f..dc2dfbe4434f 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Citations.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Citations.java @@ -152,6 +152,19 @@ public interface CitedChunkOrBuilder * @return The bytes for text. */ com.google.protobuf.ByteString getTextBytes(); + + /** + * + * + *
                +     * Whether this citation requires attribution to be shown to the end users.
                +     * 
                + * + * bool requires_attribution = 4; + * + * @return The requiresAttribution. + */ + boolean getRequiresAttribution(); } /** @@ -364,6 +377,25 @@ public com.google.protobuf.ByteString getTextBytes() { } } + public static final int REQUIRES_ATTRIBUTION_FIELD_NUMBER = 4; + private boolean requiresAttribution_ = false; + + /** + * + * + *
                +     * Whether this citation requires attribution to be shown to the end users.
                +     * 
                + * + * bool requires_attribution = 4; + * + * @return The requiresAttribution. + */ + @java.lang.Override + public boolean getRequiresAttribution() { + return requiresAttribution_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -387,6 +419,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(text_)) { com.google.protobuf.GeneratedMessage.writeString(output, 3, text_); } + if (requiresAttribution_ != false) { + output.writeBool(4, requiresAttribution_); + } getUnknownFields().writeTo(output); } @@ -405,6 +440,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(text_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(3, text_); } + if (requiresAttribution_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, requiresAttribution_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -424,6 +462,7 @@ public boolean equals(final java.lang.Object obj) { if (!getUri().equals(other.getUri())) return false; if (!getTitle().equals(other.getTitle())) return false; if (!getText().equals(other.getText())) return false; + if (getRequiresAttribution() != other.getRequiresAttribution()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -441,6 +480,8 @@ public int hashCode() { hash = (53 * hash) + getTitle().hashCode(); hash = (37 * hash) + TEXT_FIELD_NUMBER; hash = (53 * hash) + getText().hashCode(); + hash = (37 * hash) + REQUIRES_ATTRIBUTION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequiresAttribution()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -584,6 +625,7 @@ public Builder clear() { uri_ = ""; title_ = ""; text_ = ""; + requiresAttribution_ = false; return this; } @@ -629,6 +671,9 @@ private void buildPartial0(com.google.cloud.ces.v1.Citations.CitedChunk result) if (((from_bitField0_ & 0x00000004) != 0)) { result.text_ = text_; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requiresAttribution_ = requiresAttribution_; + } } @java.lang.Override @@ -658,6 +703,9 @@ public Builder mergeFrom(com.google.cloud.ces.v1.Citations.CitedChunk other) { bitField0_ |= 0x00000004; onChanged(); } + if (other.getRequiresAttribution() != false) { + setRequiresAttribution(other.getRequiresAttribution()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -702,6 +750,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 + case 32: + { + requiresAttribution_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1054,6 +1108,62 @@ public Builder setTextBytes(com.google.protobuf.ByteString value) { return this; } + private boolean requiresAttribution_; + + /** + * + * + *
                +       * Whether this citation requires attribution to be shown to the end users.
                +       * 
                + * + * bool requires_attribution = 4; + * + * @return The requiresAttribution. + */ + @java.lang.Override + public boolean getRequiresAttribution() { + return requiresAttribution_; + } + + /** + * + * + *
                +       * Whether this citation requires attribution to be shown to the end users.
                +       * 
                + * + * bool requires_attribution = 4; + * + * @param value The requiresAttribution to set. + * @return This builder for chaining. + */ + public Builder setRequiresAttribution(boolean value) { + + requiresAttribution_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                +       * Whether this citation requires attribution to be shown to the end users.
                +       * 
                + * + * bool requires_attribution = 4; + * + * @return This builder for chaining. + */ + public Builder clearRequiresAttribution() { + bitField0_ = (bitField0_ & ~0x00000008); + requiresAttribution_ = false; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.Citations.CitedChunk) } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CommonProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CommonProto.java index 1bbf45244772..d743f8464cea 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CommonProto.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CommonProto.java @@ -96,6 +96,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_ces_v1_ChannelProfile_WebWidgetConfig_SecuritySettings_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_ces_v1_ChannelProfile_WebWidgetConfig_SecuritySettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_ChannelProfile_WhatsAppConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_ChannelProfile_WhatsAppConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_ChannelProfile_InstagramConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_ChannelProfile_InstagramConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_ces_v1_Span_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -152,7 +160,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\"\303\n\n" + + "\'servicedirectory.googleapis.com/Service\"\347\016\n" + "\016ChannelProfile\022\027\n\n" + "profile_id\030\001 \001(\tB\003\340A\001\022J\n" + "\014channel_type\030\003 \001(\0162/.google.clo" @@ -163,22 +171,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030disable_barge_in_control\030\005 \001(\010B\003\340A\001\022S\n" + "\021web_widget_config\030\007" + " \001(\01323.google.cloud.ces.v1.ChannelProfile.WebWidgetConfigB\003\340A\001\022$\n" - + "\027noise_suppression_level\030\010 \001(\tB\003\340A\001\032\225\001\n" + + "\027noise_suppression_level\030\010 \001(\tB\003\340A\001\022P\n" + + "\017whatsapp_config\030\t" + + " \001(\01322.google.cloud.ces.v1.ChannelProfile.WhatsAppConfigB\003\340A\001\022R\n" + + "\020instagram_config\030\n" + + " \001(\01323.google.cloud.ce" + + "s.v1.ChannelProfile.InstagramConfigB\003\340A\001\032\225\001\n" + "\017PersonaProperty\022Q\n" - + "\007persona\030\001 \001(\0162;.google" - + ".cloud.ces.v1.ChannelProfile.PersonaProperty.PersonaB\003\340A\001\"/\n" + + "\007persona\030\001 \001(\0162;." + + "google.cloud.ces.v1.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\371\004\n" + "\017WebWidgetConfig\022S\n" - + "\010modality\030\001 \001(\0162<.google.cloud." - + "ces.v1.ChannelProfile.WebWidgetConfig.ModalityB\003\340A\001\022M\n" - + "\005theme\030\002 \001(\01629.google.clou" - + "d.ces.v1.ChannelProfile.WebWidgetConfig.ThemeB\003\340A\001\022\035\n" + + "\010modality\030\001 \001(\0162<.google." + + "cloud.ces.v1.ChannelProfile.WebWidgetConfig.ModalityB\003\340A\001\022M\n" + + "\005theme\030\002 \001(\01629.googl" + + "e.cloud.ces.v1.ChannelProfile.WebWidgetConfig.ThemeB\003\340A\001\022\035\n" + "\020web_widget_title\030\003 \001(\tB\003\340A\001\022d\n" - + "\021security_settings\030\004 \001(\0132D.google.cl" - + "oud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettingsB\003\340A\001\032\224\001\n" + + "\021security_settings\030\004 \001(\0132D.goo" + + "gle.cloud.ces.v1.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" @@ -193,16 +206,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\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\"\232\002\n" + + "\032CONTACT_CENTER_INTEGRATION\020\010\022\014\n" + + "\010WHATSAPP\020\t\022\r\n" + + "\tINSTAGRAM\020\n" + + "\"\232\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" @@ -214,10 +243,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032EXECUTION_TYPE_UNSPECIFIED\020\000\022\017\n" + "\013SYNCHRONOUS\020\001\022\020\n" + "\014ASYNCHRONOUS\020\002B\322\001\n" - + "\027com.google.cloud.ces.v1B\013CommonProt" - + "oP\001Z)cloud.google.com/go/ces/apiv1/cespb;cespb\352A|\n" - + "\'servicedirectory.googleapis.com/Service\022Qprojects/{project}/locations" - + "/{location}/namespaces/{namespace}/services/{service}b\006proto3" + + "\027com.goo" + + "gle.cloud.ces.v1B\013CommonProtoP\001Z)cloud.google.com/go/ces/apiv1/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( @@ -320,6 +349,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DisableBargeInControl", "WebWidgetConfig", "NoiseSuppressionLevel", + "WhatsappConfig", + "InstagramConfig", }); internal_static_google_cloud_ces_v1_ChannelProfile_PersonaProperty_descriptor = internal_static_google_cloud_ces_v1_ChannelProfile_descriptor.getNestedType(0); @@ -346,6 +377,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "EnablePublicAccess", "EnableOriginCheck", "AllowedOrigins", "EnableRecaptcha", }); + internal_static_google_cloud_ces_v1_ChannelProfile_WhatsAppConfig_descriptor = + internal_static_google_cloud_ces_v1_ChannelProfile_descriptor.getNestedType(2); + internal_static_google_cloud_ces_v1_ChannelProfile_WhatsAppConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_ChannelProfile_WhatsAppConfig_descriptor, + new java.lang.String[] { + "WabaId", + "PhoneNumberId", + "PhoneNumber", + "DisplayName", + "ThumbnailUrl", + "Description", + }); + internal_static_google_cloud_ces_v1_ChannelProfile_InstagramConfig_descriptor = + internal_static_google_cloud_ces_v1_ChannelProfile_descriptor.getNestedType(3); + internal_static_google_cloud_ces_v1_ChannelProfile_InstagramConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_ChannelProfile_InstagramConfig_descriptor, + new java.lang.String[] { + "InstagramAccountId", "DisplayName", "ThumbnailUrl", "Description", + }); internal_static_google_cloud_ces_v1_Span_descriptor = getDescriptor().getMessageType(6); internal_static_google_cloud_ces_v1_Span_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Conversation.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Conversation.java index 5e4f95fd5052..4420b3ab14bf 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Conversation.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Conversation.java @@ -327,6 +327,17 @@ public enum Source implements com.google.protobuf.ProtocolMessageEnum { * EVAL = 3; */ EVAL(3), + /** + * + * + *
                +     * The conversation is from an agent tool. Agent tool runs the agent in a
                +     * separate session, which is persisted for testing and debugging purposes.
                +     * 
                + * + * AGENT_TOOL = 4; + */ + AGENT_TOOL(4), UNRECOGNIZED(-1), ; @@ -384,6 +395,18 @@ public enum Source implements com.google.protobuf.ProtocolMessageEnum { */ public static final int EVAL_VALUE = 3; + /** + * + * + *
                +     * The conversation is from an agent tool. Agent tool runs the agent in a
                +     * separate session, which is persisted for testing and debugging purposes.
                +     * 
                + * + * AGENT_TOOL = 4; + */ + public static final int AGENT_TOOL_VALUE = 4; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -416,6 +439,8 @@ public static Source forNumber(int value) { return SIMULATOR; case 3: return EVAL; + case 4: + return AGENT_TOOL; default: return null; } @@ -493,7 +518,7 @@ public enum InputType implements com.google.protobuf.ProtocolMessageEnum { * * *
                -     * The input message is text.
                +     * Text input.
                      * 
                * * INPUT_TYPE_TEXT = 1; @@ -503,7 +528,17 @@ public enum InputType implements com.google.protobuf.ProtocolMessageEnum { * * *
                -     * The input message is audio.
                +     * Event input.
                +     * 
                + * + * INPUT_TYPE_EVENT = 7; + */ + INPUT_TYPE_EVENT(7), + /** + * + * + *
                +     * Audio input.
                      * 
                * * INPUT_TYPE_AUDIO = 2; @@ -513,7 +548,7 @@ public enum InputType implements com.google.protobuf.ProtocolMessageEnum { * * *
                -     * The input message is image.
                +     * Image input.
                      * 
                * * INPUT_TYPE_IMAGE = 3; @@ -523,7 +558,7 @@ public enum InputType implements com.google.protobuf.ProtocolMessageEnum { * * *
                -     * The input message is blob file.
                +     * Blob input.
                      * 
                * * INPUT_TYPE_BLOB = 4; @@ -533,7 +568,7 @@ public enum InputType implements com.google.protobuf.ProtocolMessageEnum { * * *
                -     * The input message is client function tool response.
                +     * Client function tool response input.
                      * 
                * * INPUT_TYPE_TOOL_RESPONSE = 5; @@ -543,7 +578,7 @@ public enum InputType implements com.google.protobuf.ProtocolMessageEnum { * * *
                -     * The input message are variables.
                +     * Variables input.
                      * 
                * * INPUT_TYPE_VARIABLES = 6; @@ -577,7 +612,7 @@ public enum InputType implements com.google.protobuf.ProtocolMessageEnum { * * *
                -     * The input message is text.
                +     * Text input.
                      * 
                * * INPUT_TYPE_TEXT = 1; @@ -588,7 +623,18 @@ public enum InputType implements com.google.protobuf.ProtocolMessageEnum { * * *
                -     * The input message is audio.
                +     * Event input.
                +     * 
                + * + * INPUT_TYPE_EVENT = 7; + */ + public static final int INPUT_TYPE_EVENT_VALUE = 7; + + /** + * + * + *
                +     * Audio input.
                      * 
                * * INPUT_TYPE_AUDIO = 2; @@ -599,7 +645,7 @@ public enum InputType implements com.google.protobuf.ProtocolMessageEnum { * * *
                -     * The input message is image.
                +     * Image input.
                      * 
                * * INPUT_TYPE_IMAGE = 3; @@ -610,7 +656,7 @@ public enum InputType implements com.google.protobuf.ProtocolMessageEnum { * * *
                -     * The input message is blob file.
                +     * Blob input.
                      * 
                * * INPUT_TYPE_BLOB = 4; @@ -621,7 +667,7 @@ public enum InputType implements com.google.protobuf.ProtocolMessageEnum { * * *
                -     * The input message is client function tool response.
                +     * Client function tool response input.
                      * 
                * * INPUT_TYPE_TOOL_RESPONSE = 5; @@ -632,7 +678,7 @@ public enum InputType implements com.google.protobuf.ProtocolMessageEnum { * * *
                -     * The input message are variables.
                +     * Variables input.
                      * 
                * * INPUT_TYPE_VARIABLES = 6; @@ -667,6 +713,8 @@ public static InputType forNumber(int value) { return INPUT_TYPE_UNSPECIFIED; case 1: return INPUT_TYPE_TEXT; + case 7: + return INPUT_TYPE_EVENT; case 2: return INPUT_TYPE_AUDIO; case 3: @@ -2392,7 +2440,7 @@ public int getTurnCount() { * * * @deprecated google.cloud.ces.v1.Conversation.channel_type is deprecated. See - * google/cloud/ces/v1/conversation.proto;l=126 + * google/cloud/ces/v1/conversation.proto;l=133 * @return The enum numeric value on the wire for channelType. */ @java.lang.Override @@ -2413,7 +2461,7 @@ public int getChannelTypeValue() { * * * @deprecated google.cloud.ces.v1.Conversation.channel_type is deprecated. See - * google/cloud/ces/v1/conversation.proto;l=126 + * google/cloud/ces/v1/conversation.proto;l=133 * @return The channelType. */ @java.lang.Override @@ -4632,7 +4680,7 @@ public Builder clearTurnCount() { * * * @deprecated google.cloud.ces.v1.Conversation.channel_type is deprecated. See - * google/cloud/ces/v1/conversation.proto;l=126 + * google/cloud/ces/v1/conversation.proto;l=133 * @return The enum numeric value on the wire for channelType. */ @java.lang.Override @@ -4653,7 +4701,7 @@ public int getChannelTypeValue() { * * * @deprecated google.cloud.ces.v1.Conversation.channel_type is deprecated. See - * google/cloud/ces/v1/conversation.proto;l=126 + * google/cloud/ces/v1/conversation.proto;l=133 * @param value The enum numeric value on the wire for channelType to set. * @return This builder for chaining. */ @@ -4677,7 +4725,7 @@ public Builder setChannelTypeValue(int value) { * * * @deprecated google.cloud.ces.v1.Conversation.channel_type is deprecated. See - * google/cloud/ces/v1/conversation.proto;l=126 + * google/cloud/ces/v1/conversation.proto;l=133 * @return The channelType. */ @java.lang.Override @@ -4702,7 +4750,7 @@ public com.google.cloud.ces.v1.Conversation.ChannelType getChannelType() { * * * @deprecated google.cloud.ces.v1.Conversation.channel_type is deprecated. See - * google/cloud/ces/v1/conversation.proto;l=126 + * google/cloud/ces/v1/conversation.proto;l=133 * @param value The channelType to set. * @return This builder for chaining. */ @@ -4729,7 +4777,7 @@ public Builder setChannelType(com.google.cloud.ces.v1.Conversation.ChannelType v * * * @deprecated google.cloud.ces.v1.Conversation.channel_type is deprecated. See - * google/cloud/ces/v1/conversation.proto;l=126 + * google/cloud/ces/v1/conversation.proto;l=133 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ConversationLoggingSettings.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ConversationLoggingSettings.java index 268d958d7363..7ef87a7dce6d 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ConversationLoggingSettings.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ConversationLoggingSettings.java @@ -68,6 +68,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.ces.v1.ConversationLoggingSettings.Builder.class); } + private int bitField0_; public static final int DISABLE_CONVERSATION_LOGGING_FIELD_NUMBER = 1; private boolean disableConversationLogging_ = false; @@ -87,6 +88,65 @@ public boolean getDisableConversationLogging() { return disableConversationLogging_; } + public static final int RETENTION_WINDOW_FIELD_NUMBER = 2; + private com.google.protobuf.Duration retentionWindow_; + + /** + * + * + *
                +   * Optional. Controls the retention window for the conversation.
                +   * If not set, the conversation will be retained for 365 days.
                +   * 
                + * + * .google.protobuf.Duration retention_window = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the retentionWindow field is set. + */ + @java.lang.Override + public boolean hasRetentionWindow() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                +   * Optional. Controls the retention window for the conversation.
                +   * If not set, the conversation will be retained for 365 days.
                +   * 
                + * + * .google.protobuf.Duration retention_window = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The retentionWindow. + */ + @java.lang.Override + public com.google.protobuf.Duration getRetentionWindow() { + return retentionWindow_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : retentionWindow_; + } + + /** + * + * + *
                +   * Optional. Controls the retention window for the conversation.
                +   * If not set, the conversation will be retained for 365 days.
                +   * 
                + * + * .google.protobuf.Duration retention_window = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getRetentionWindowOrBuilder() { + return retentionWindow_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : retentionWindow_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -104,6 +164,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (disableConversationLogging_ != false) { output.writeBool(1, disableConversationLogging_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getRetentionWindow()); + } getUnknownFields().writeTo(output); } @@ -116,6 +179,9 @@ public int getSerializedSize() { if (disableConversationLogging_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, disableConversationLogging_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRetentionWindow()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -133,6 +199,10 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.ces.v1.ConversationLoggingSettings) obj; if (getDisableConversationLogging() != other.getDisableConversationLogging()) return false; + if (hasRetentionWindow() != other.hasRetentionWindow()) return false; + if (hasRetentionWindow()) { + if (!getRetentionWindow().equals(other.getRetentionWindow())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -146,6 +216,10 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + DISABLE_CONVERSATION_LOGGING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableConversationLogging()); + if (hasRetentionWindow()) { + hash = (37 * hash) + RETENTION_WINDOW_FIELD_NUMBER; + hash = (53 * hash) + getRetentionWindow().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -276,10 +350,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.ces.v1.ConversationLoggingSettings.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) { + internalGetRetentionWindowFieldBuilder(); + } } @java.lang.Override @@ -287,6 +370,11 @@ public Builder clear() { super.clear(); bitField0_ = 0; disableConversationLogging_ = false; + retentionWindow_ = null; + if (retentionWindowBuilder_ != null) { + retentionWindowBuilder_.dispose(); + retentionWindowBuilder_ = null; + } return this; } @@ -326,6 +414,13 @@ private void buildPartial0(com.google.cloud.ces.v1.ConversationLoggingSettings r if (((from_bitField0_ & 0x00000001) != 0)) { result.disableConversationLogging_ = disableConversationLogging_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.retentionWindow_ = + retentionWindowBuilder_ == null ? retentionWindow_ : retentionWindowBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -344,6 +439,9 @@ public Builder mergeFrom(com.google.cloud.ces.v1.ConversationLoggingSettings oth if (other.getDisableConversationLogging() != false) { setDisableConversationLogging(other.getDisableConversationLogging()); } + if (other.hasRetentionWindow()) { + mergeRetentionWindow(other.getRetentionWindow()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -376,6 +474,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 8 + case 18: + { + input.readMessage( + internalGetRetentionWindowFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -451,6 +556,227 @@ public Builder clearDisableConversationLogging() { return this; } + private com.google.protobuf.Duration retentionWindow_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + retentionWindowBuilder_; + + /** + * + * + *
                +     * Optional. Controls the retention window for the conversation.
                +     * If not set, the conversation will be retained for 365 days.
                +     * 
                + * + * + * .google.protobuf.Duration retention_window = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the retentionWindow field is set. + */ + public boolean hasRetentionWindow() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                +     * Optional. Controls the retention window for the conversation.
                +     * If not set, the conversation will be retained for 365 days.
                +     * 
                + * + * + * .google.protobuf.Duration retention_window = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The retentionWindow. + */ + public com.google.protobuf.Duration getRetentionWindow() { + if (retentionWindowBuilder_ == null) { + return retentionWindow_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : retentionWindow_; + } else { + return retentionWindowBuilder_.getMessage(); + } + } + + /** + * + * + *
                +     * Optional. Controls the retention window for the conversation.
                +     * If not set, the conversation will be retained for 365 days.
                +     * 
                + * + * + * .google.protobuf.Duration retention_window = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRetentionWindow(com.google.protobuf.Duration value) { + if (retentionWindowBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + retentionWindow_ = value; + } else { + retentionWindowBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. Controls the retention window for the conversation.
                +     * If not set, the conversation will be retained for 365 days.
                +     * 
                + * + * + * .google.protobuf.Duration retention_window = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRetentionWindow(com.google.protobuf.Duration.Builder builderForValue) { + if (retentionWindowBuilder_ == null) { + retentionWindow_ = builderForValue.build(); + } else { + retentionWindowBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. Controls the retention window for the conversation.
                +     * If not set, the conversation will be retained for 365 days.
                +     * 
                + * + * + * .google.protobuf.Duration retention_window = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeRetentionWindow(com.google.protobuf.Duration value) { + if (retentionWindowBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && retentionWindow_ != null + && retentionWindow_ != com.google.protobuf.Duration.getDefaultInstance()) { + getRetentionWindowBuilder().mergeFrom(value); + } else { + retentionWindow_ = value; + } + } else { + retentionWindowBuilder_.mergeFrom(value); + } + if (retentionWindow_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                +     * Optional. Controls the retention window for the conversation.
                +     * If not set, the conversation will be retained for 365 days.
                +     * 
                + * + * + * .google.protobuf.Duration retention_window = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearRetentionWindow() { + bitField0_ = (bitField0_ & ~0x00000002); + retentionWindow_ = null; + if (retentionWindowBuilder_ != null) { + retentionWindowBuilder_.dispose(); + retentionWindowBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. Controls the retention window for the conversation.
                +     * If not set, the conversation will be retained for 365 days.
                +     * 
                + * + * + * .google.protobuf.Duration retention_window = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Duration.Builder getRetentionWindowBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetRetentionWindowFieldBuilder().getBuilder(); + } + + /** + * + * + *
                +     * Optional. Controls the retention window for the conversation.
                +     * If not set, the conversation will be retained for 365 days.
                +     * 
                + * + * + * .google.protobuf.Duration retention_window = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.DurationOrBuilder getRetentionWindowOrBuilder() { + if (retentionWindowBuilder_ != null) { + return retentionWindowBuilder_.getMessageOrBuilder(); + } else { + return retentionWindow_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : retentionWindow_; + } + } + + /** + * + * + *
                +     * Optional. Controls the retention window for the conversation.
                +     * If not set, the conversation will be retained for 365 days.
                +     * 
                + * + * + * .google.protobuf.Duration retention_window = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + internalGetRetentionWindowFieldBuilder() { + if (retentionWindowBuilder_ == null) { + retentionWindowBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getRetentionWindow(), getParentForChildren(), isClean()); + retentionWindow_ = null; + } + return retentionWindowBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.ConversationLoggingSettings) } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ConversationLoggingSettingsOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ConversationLoggingSettingsOrBuilder.java index b79de2f75988..087a2c96d685 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ConversationLoggingSettingsOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ConversationLoggingSettingsOrBuilder.java @@ -38,4 +38,47 @@ public interface ConversationLoggingSettingsOrBuilder * @return The disableConversationLogging. */ boolean getDisableConversationLogging(); + + /** + * + * + *
                +   * Optional. Controls the retention window for the conversation.
                +   * If not set, the conversation will be retained for 365 days.
                +   * 
                + * + * .google.protobuf.Duration retention_window = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the retentionWindow field is set. + */ + boolean hasRetentionWindow(); + + /** + * + * + *
                +   * Optional. Controls the retention window for the conversation.
                +   * If not set, the conversation will be retained for 365 days.
                +   * 
                + * + * .google.protobuf.Duration retention_window = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The retentionWindow. + */ + com.google.protobuf.Duration getRetentionWindow(); + + /** + * + * + *
                +   * Optional. Controls the retention window for the conversation.
                +   * If not set, the conversation will be retained for 365 days.
                +   * 
                + * + * .google.protobuf.Duration retention_window = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.DurationOrBuilder getRetentionWindowOrBuilder(); } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ConversationOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ConversationOrBuilder.java index 999e2c4453a3..96c1fa796ac8 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ConversationOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ConversationOrBuilder.java @@ -227,7 +227,7 @@ public interface ConversationOrBuilder * * * @deprecated google.cloud.ces.v1.Conversation.channel_type is deprecated. See - * google/cloud/ces/v1/conversation.proto;l=126 + * google/cloud/ces/v1/conversation.proto;l=133 * @return The enum numeric value on the wire for channelType. */ @java.lang.Deprecated @@ -245,7 +245,7 @@ public interface ConversationOrBuilder * * * @deprecated google.cloud.ces.v1.Conversation.channel_type is deprecated. See - * google/cloud/ces/v1/conversation.proto;l=126 + * google/cloud/ces/v1/conversation.proto;l=133 * @return The channelType. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ConversationProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ConversationProto.java index ea0cdaedc58b..111d8ba559d0 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ConversationProto.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ConversationProto.java @@ -62,7 +62,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "behavior.proto\032\031google/api/resource.prot" + "o\032 google/cloud/ces/v1/common.proto\032!goo" + "gle/cloud/ces/v1/example.proto\032\037google/p" - + "rotobuf/timestamp.proto\"\200\n\n\014Conversation" + + "rotobuf/timestamp.proto\"\246\n\n\014Conversation" + "\022\021\n\004name\030\001 \001(\tB\003\340A\010\0223\n\nstart_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" @@ -84,20 +84,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ssageB\003\340A\001\0221\n\troot_span\030\002 \001(\0132\031.google.c" + "loud.ces.v1.SpanB\003\340A\001\"P\n\013ChannelType\022\034\n\030" + "CHANNEL_TYPE_UNSPECIFIED\020\000\022\010\n\004TEXT\020\001\022\t\n\005" - + "AUDIO\020\002\022\016\n\nMULTIMODAL\020\003\"C\n\006Source\022\026\n\022SOU" + + "AUDIO\020\002\022\016\n\nMULTIMODAL\020\003\"S\n\006Source\022\026\n\022SOU" + "RCE_UNSPECIFIED\020\000\022\010\n\004LIVE\020\001\022\r\n\tSIMULATOR" - + "\020\002\022\010\n\004EVAL\020\003\"\265\001\n\tInputType\022\032\n\026INPUT_TYPE" - + "_UNSPECIFIED\020\000\022\023\n\017INPUT_TYPE_TEXT\020\001\022\024\n\020I" - + "NPUT_TYPE_AUDIO\020\002\022\024\n\020INPUT_TYPE_IMAGE\020\003\022" - + "\023\n\017INPUT_TYPE_BLOB\020\004\022\034\n\030INPUT_TYPE_TOOL_" - + "RESPONSE\020\005\022\030\n\024INPUT_TYPE_VARIABLES\020\006:\223\001\352" - + "A\217\001\n\037ces.googleapis.com/Conversation\022Opr" - + "ojects/{project}/locations/{location}/ap" - + "ps/{app}/conversations/{conversation}*\rc" - + "onversations2\014conversationBY\n\027com.google" - + ".cloud.ces.v1B\021ConversationProtoP\001Z)clou" - + "d.google.com/go/ces/apiv1/cespb;cespbb\006p" - + "roto3" + + "\020\002\022\010\n\004EVAL\020\003\022\016\n\nAGENT_TOOL\020\004\"\313\001\n\tInputTy" + + "pe\022\032\n\026INPUT_TYPE_UNSPECIFIED\020\000\022\023\n\017INPUT_" + + "TYPE_TEXT\020\001\022\024\n\020INPUT_TYPE_EVENT\020\007\022\024\n\020INP" + + "UT_TYPE_AUDIO\020\002\022\024\n\020INPUT_TYPE_IMAGE\020\003\022\023\n" + + "\017INPUT_TYPE_BLOB\020\004\022\034\n\030INPUT_TYPE_TOOL_RE" + + "SPONSE\020\005\022\030\n\024INPUT_TYPE_VARIABLES\020\006:\223\001\352A\217" + + "\001\n\037ces.googleapis.com/Conversation\022Oproj" + + "ects/{project}/locations/{location}/apps" + + "/{app}/conversations/{conversation}*\rcon" + + "versations2\014conversationBY\n\027com.google.c" + + "loud.ces.v1B\021ConversationProtoP\001Z)cloud." + + "google.com/go/ces/apiv1/cespb;cespbb\006pro" + + "to3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Deployment.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Deployment.java index d3a54a3f9680..bbca2798a793 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Deployment.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Deployment.java @@ -470,6 +470,189 @@ public com.google.protobuf.ByteString getEtagBytes() { } } + public static final int EXPERIMENT_CONFIG_FIELD_NUMBER = 9; + private com.google.cloud.ces.v1.ExperimentConfig experimentConfig_; + + /** + * + * + *
                +   * Optional. Experiment configuration for the deployment.
                +   * 
                + * + * + * .google.cloud.ces.v1.ExperimentConfig experiment_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the experimentConfig field is set. + */ + @java.lang.Override + public boolean hasExperimentConfig() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
                +   * Optional. Experiment configuration for the deployment.
                +   * 
                + * + * + * .google.cloud.ces.v1.ExperimentConfig experiment_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The experimentConfig. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ExperimentConfig getExperimentConfig() { + return experimentConfig_ == null + ? com.google.cloud.ces.v1.ExperimentConfig.getDefaultInstance() + : experimentConfig_; + } + + /** + * + * + *
                +   * Optional. Experiment configuration for the deployment.
                +   * 
                + * + * + * .google.cloud.ces.v1.ExperimentConfig experiment_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ExperimentConfigOrBuilder getExperimentConfigOrBuilder() { + return experimentConfig_ == null + ? com.google.cloud.ces.v1.ExperimentConfig.getDefaultInstance() + : experimentConfig_; + } + + public static final int WHATSAPP_CREDENTIALS_FIELD_NUMBER = 10; + private com.google.cloud.ces.v1.WhatsAppCredentials whatsappCredentials_; + + /** + * + * + *
                +   * Optional. Input only. Ephemeral WhatsApp credentials required when
                +   * configuring a WhatsApp channel profile.
                +   * 
                + * + * + * .google.cloud.ces.v1.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.v1.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.v1.WhatsAppCredentials getWhatsappCredentials() { + return whatsappCredentials_ == null + ? com.google.cloud.ces.v1.WhatsAppCredentials.getDefaultInstance() + : whatsappCredentials_; + } + + /** + * + * + *
                +   * Optional. Input only. Ephemeral WhatsApp credentials required when
                +   * configuring a WhatsApp channel profile.
                +   * 
                + * + * + * .google.cloud.ces.v1.WhatsAppCredentials whatsapp_credentials = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.WhatsAppCredentialsOrBuilder getWhatsappCredentialsOrBuilder() { + return whatsappCredentials_ == null + ? com.google.cloud.ces.v1.WhatsAppCredentials.getDefaultInstance() + : whatsappCredentials_; + } + + public static final int INSTAGRAM_CREDENTIALS_FIELD_NUMBER = 11; + private com.google.cloud.ces.v1.InstagramCredentials instagramCredentials_; + + /** + * + * + *
                +   * Optional. Input only. Ephemeral Instagram credentials required when
                +   * configuring a Instagram channel profile.
                +   * 
                + * + * + * .google.cloud.ces.v1.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.v1.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.v1.InstagramCredentials getInstagramCredentials() { + return instagramCredentials_ == null + ? com.google.cloud.ces.v1.InstagramCredentials.getDefaultInstance() + : instagramCredentials_; + } + + /** + * + * + *
                +   * Optional. Input only. Ephemeral Instagram credentials required when
                +   * configuring a Instagram channel profile.
                +   * 
                + * + * + * .google.cloud.ces.v1.InstagramCredentials instagram_credentials = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.InstagramCredentialsOrBuilder getInstagramCredentialsOrBuilder() { + return instagramCredentials_ == null + ? com.google.cloud.ces.v1.InstagramCredentials.getDefaultInstance() + : instagramCredentials_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -505,6 +688,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessage.writeString(output, 8, displayName_); } + 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); } @@ -535,6 +727,17 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(8, displayName_); } + 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; @@ -566,6 +769,18 @@ public boolean equals(final java.lang.Object obj) { if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (!getEtag().equals(other.getEtag())) return false; + if (hasExperimentConfig() != other.hasExperimentConfig()) return false; + 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; } @@ -597,6 +812,18 @@ public int hashCode() { } hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); + if (hasExperimentConfig()) { + 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; @@ -741,6 +968,9 @@ private void maybeForceBuilderInitialization() { internalGetChannelProfileFieldBuilder(); internalGetCreateTimeFieldBuilder(); internalGetUpdateTimeFieldBuilder(); + internalGetExperimentConfigFieldBuilder(); + internalGetWhatsappCredentialsFieldBuilder(); + internalGetInstagramCredentialsFieldBuilder(); } } @@ -767,6 +997,21 @@ public Builder clear() { updateTimeBuilder_ = null; } etag_ = ""; + experimentConfig_ = null; + if (experimentConfigBuilder_ != null) { + experimentConfigBuilder_.dispose(); + experimentConfigBuilder_ = null; + } + whatsappCredentials_ = null; + if (whatsappCredentialsBuilder_ != null) { + whatsappCredentialsBuilder_.dispose(); + whatsappCredentialsBuilder_ = null; + } + instagramCredentials_ = null; + if (instagramCredentialsBuilder_ != null) { + instagramCredentialsBuilder_.dispose(); + instagramCredentialsBuilder_ = null; + } return this; } @@ -828,6 +1073,25 @@ private void buildPartial0(com.google.cloud.ces.v1.Deployment result) { if (((from_bitField0_ & 0x00000040) != 0)) { result.etag_ = etag_; } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.experimentConfig_ = + 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_; } @@ -872,6 +1136,15 @@ public Builder mergeFrom(com.google.cloud.ces.v1.Deployment other) { bitField0_ |= 0x00000040; onChanged(); } + 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; @@ -943,6 +1216,27 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 66 + case 74: + { + input.readMessage( + internalGetExperimentConfigFieldBuilder().getBuilder(), extensionRegistry); + 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)) { @@ -2093,6 +2387,666 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.cloud.ces.v1.ExperimentConfig experimentConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ExperimentConfig, + com.google.cloud.ces.v1.ExperimentConfig.Builder, + com.google.cloud.ces.v1.ExperimentConfigOrBuilder> + experimentConfigBuilder_; + + /** + * + * + *
                +     * Optional. Experiment configuration for the deployment.
                +     * 
                + * + * + * .google.cloud.ces.v1.ExperimentConfig experiment_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the experimentConfig field is set. + */ + public boolean hasExperimentConfig() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
                +     * Optional. Experiment configuration for the deployment.
                +     * 
                + * + * + * .google.cloud.ces.v1.ExperimentConfig experiment_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The experimentConfig. + */ + public com.google.cloud.ces.v1.ExperimentConfig getExperimentConfig() { + if (experimentConfigBuilder_ == null) { + return experimentConfig_ == null + ? com.google.cloud.ces.v1.ExperimentConfig.getDefaultInstance() + : experimentConfig_; + } else { + return experimentConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
                +     * Optional. Experiment configuration for the deployment.
                +     * 
                + * + * + * .google.cloud.ces.v1.ExperimentConfig experiment_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setExperimentConfig(com.google.cloud.ces.v1.ExperimentConfig value) { + if (experimentConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + experimentConfig_ = value; + } else { + experimentConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. Experiment configuration for the deployment.
                +     * 
                + * + * + * .google.cloud.ces.v1.ExperimentConfig experiment_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setExperimentConfig( + com.google.cloud.ces.v1.ExperimentConfig.Builder builderForValue) { + if (experimentConfigBuilder_ == null) { + experimentConfig_ = builderForValue.build(); + } else { + experimentConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. Experiment configuration for the deployment.
                +     * 
                + * + * + * .google.cloud.ces.v1.ExperimentConfig experiment_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeExperimentConfig(com.google.cloud.ces.v1.ExperimentConfig value) { + if (experimentConfigBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && experimentConfig_ != null + && experimentConfig_ != com.google.cloud.ces.v1.ExperimentConfig.getDefaultInstance()) { + getExperimentConfigBuilder().mergeFrom(value); + } else { + experimentConfig_ = value; + } + } else { + experimentConfigBuilder_.mergeFrom(value); + } + if (experimentConfig_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
                +     * Optional. Experiment configuration for the deployment.
                +     * 
                + * + * + * .google.cloud.ces.v1.ExperimentConfig experiment_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearExperimentConfig() { + bitField0_ = (bitField0_ & ~0x00000080); + experimentConfig_ = null; + if (experimentConfigBuilder_ != null) { + experimentConfigBuilder_.dispose(); + experimentConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. Experiment configuration for the deployment.
                +     * 
                + * + * + * .google.cloud.ces.v1.ExperimentConfig experiment_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ExperimentConfig.Builder getExperimentConfigBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return internalGetExperimentConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
                +     * Optional. Experiment configuration for the deployment.
                +     * 
                + * + * + * .google.cloud.ces.v1.ExperimentConfig experiment_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ExperimentConfigOrBuilder getExperimentConfigOrBuilder() { + if (experimentConfigBuilder_ != null) { + return experimentConfigBuilder_.getMessageOrBuilder(); + } else { + return experimentConfig_ == null + ? com.google.cloud.ces.v1.ExperimentConfig.getDefaultInstance() + : experimentConfig_; + } + } + + /** + * + * + *
                +     * Optional. Experiment configuration for the deployment.
                +     * 
                + * + * + * .google.cloud.ces.v1.ExperimentConfig experiment_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ExperimentConfig, + com.google.cloud.ces.v1.ExperimentConfig.Builder, + com.google.cloud.ces.v1.ExperimentConfigOrBuilder> + internalGetExperimentConfigFieldBuilder() { + if (experimentConfigBuilder_ == null) { + experimentConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ExperimentConfig, + com.google.cloud.ces.v1.ExperimentConfig.Builder, + com.google.cloud.ces.v1.ExperimentConfigOrBuilder>( + getExperimentConfig(), getParentForChildren(), isClean()); + experimentConfig_ = null; + } + return experimentConfigBuilder_; + } + + private com.google.cloud.ces.v1.WhatsAppCredentials whatsappCredentials_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.WhatsAppCredentials, + com.google.cloud.ces.v1.WhatsAppCredentials.Builder, + com.google.cloud.ces.v1.WhatsAppCredentialsOrBuilder> + whatsappCredentialsBuilder_; + + /** + * + * + *
                +     * Optional. Input only. Ephemeral WhatsApp credentials required when
                +     * configuring a WhatsApp channel profile.
                +     * 
                + * + * + * .google.cloud.ces.v1.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.v1.WhatsAppCredentials whatsapp_credentials = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The whatsappCredentials. + */ + public com.google.cloud.ces.v1.WhatsAppCredentials getWhatsappCredentials() { + if (whatsappCredentialsBuilder_ == null) { + return whatsappCredentials_ == null + ? com.google.cloud.ces.v1.WhatsAppCredentials.getDefaultInstance() + : whatsappCredentials_; + } else { + return whatsappCredentialsBuilder_.getMessage(); + } + } + + /** + * + * + *
                +     * Optional. Input only. Ephemeral WhatsApp credentials required when
                +     * configuring a WhatsApp channel profile.
                +     * 
                + * + * + * .google.cloud.ces.v1.WhatsAppCredentials whatsapp_credentials = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public Builder setWhatsappCredentials(com.google.cloud.ces.v1.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.v1.WhatsAppCredentials whatsapp_credentials = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public Builder setWhatsappCredentials( + com.google.cloud.ces.v1.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.v1.WhatsAppCredentials whatsapp_credentials = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public Builder mergeWhatsappCredentials(com.google.cloud.ces.v1.WhatsAppCredentials value) { + if (whatsappCredentialsBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && whatsappCredentials_ != null + && whatsappCredentials_ + != com.google.cloud.ces.v1.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.v1.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.v1.WhatsAppCredentials whatsapp_credentials = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1.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.v1.WhatsAppCredentials whatsapp_credentials = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1.WhatsAppCredentialsOrBuilder getWhatsappCredentialsOrBuilder() { + if (whatsappCredentialsBuilder_ != null) { + return whatsappCredentialsBuilder_.getMessageOrBuilder(); + } else { + return whatsappCredentials_ == null + ? com.google.cloud.ces.v1.WhatsAppCredentials.getDefaultInstance() + : whatsappCredentials_; + } + } + + /** + * + * + *
                +     * Optional. Input only. Ephemeral WhatsApp credentials required when
                +     * configuring a WhatsApp channel profile.
                +     * 
                + * + * + * .google.cloud.ces.v1.WhatsAppCredentials whatsapp_credentials = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.WhatsAppCredentials, + com.google.cloud.ces.v1.WhatsAppCredentials.Builder, + com.google.cloud.ces.v1.WhatsAppCredentialsOrBuilder> + internalGetWhatsappCredentialsFieldBuilder() { + if (whatsappCredentialsBuilder_ == null) { + whatsappCredentialsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.WhatsAppCredentials, + com.google.cloud.ces.v1.WhatsAppCredentials.Builder, + com.google.cloud.ces.v1.WhatsAppCredentialsOrBuilder>( + getWhatsappCredentials(), getParentForChildren(), isClean()); + whatsappCredentials_ = null; + } + return whatsappCredentialsBuilder_; + } + + private com.google.cloud.ces.v1.InstagramCredentials instagramCredentials_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.InstagramCredentials, + com.google.cloud.ces.v1.InstagramCredentials.Builder, + com.google.cloud.ces.v1.InstagramCredentialsOrBuilder> + instagramCredentialsBuilder_; + + /** + * + * + *
                +     * Optional. Input only. Ephemeral Instagram credentials required when
                +     * configuring a Instagram channel profile.
                +     * 
                + * + * + * .google.cloud.ces.v1.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.v1.InstagramCredentials instagram_credentials = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The instagramCredentials. + */ + public com.google.cloud.ces.v1.InstagramCredentials getInstagramCredentials() { + if (instagramCredentialsBuilder_ == null) { + return instagramCredentials_ == null + ? com.google.cloud.ces.v1.InstagramCredentials.getDefaultInstance() + : instagramCredentials_; + } else { + return instagramCredentialsBuilder_.getMessage(); + } + } + + /** + * + * + *
                +     * Optional. Input only. Ephemeral Instagram credentials required when
                +     * configuring a Instagram channel profile.
                +     * 
                + * + * + * .google.cloud.ces.v1.InstagramCredentials instagram_credentials = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public Builder setInstagramCredentials(com.google.cloud.ces.v1.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.v1.InstagramCredentials instagram_credentials = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public Builder setInstagramCredentials( + com.google.cloud.ces.v1.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.v1.InstagramCredentials instagram_credentials = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public Builder mergeInstagramCredentials(com.google.cloud.ces.v1.InstagramCredentials value) { + if (instagramCredentialsBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && instagramCredentials_ != null + && instagramCredentials_ + != com.google.cloud.ces.v1.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.v1.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.v1.InstagramCredentials instagram_credentials = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1.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.v1.InstagramCredentials instagram_credentials = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1.InstagramCredentialsOrBuilder + getInstagramCredentialsOrBuilder() { + if (instagramCredentialsBuilder_ != null) { + return instagramCredentialsBuilder_.getMessageOrBuilder(); + } else { + return instagramCredentials_ == null + ? com.google.cloud.ces.v1.InstagramCredentials.getDefaultInstance() + : instagramCredentials_; + } + } + + /** + * + * + *
                +     * Optional. Input only. Ephemeral Instagram credentials required when
                +     * configuring a Instagram channel profile.
                +     * 
                + * + * + * .google.cloud.ces.v1.InstagramCredentials instagram_credentials = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.InstagramCredentials, + com.google.cloud.ces.v1.InstagramCredentials.Builder, + com.google.cloud.ces.v1.InstagramCredentialsOrBuilder> + internalGetInstagramCredentialsFieldBuilder() { + if (instagramCredentialsBuilder_ == null) { + instagramCredentialsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.InstagramCredentials, + com.google.cloud.ces.v1.InstagramCredentials.Builder, + com.google.cloud.ces.v1.InstagramCredentialsOrBuilder>( + getInstagramCredentials(), getParentForChildren(), isClean()); + instagramCredentials_ = null; + } + return instagramCredentialsBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.Deployment) } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeploymentOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeploymentOrBuilder.java index 96dfc70c55ff..8d7a64e47aca 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeploymentOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeploymentOrBuilder.java @@ -272,4 +272,139 @@ public interface DeploymentOrBuilder * @return The bytes for etag. */ com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *
                +   * Optional. Experiment configuration for the deployment.
                +   * 
                + * + * + * .google.cloud.ces.v1.ExperimentConfig experiment_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the experimentConfig field is set. + */ + boolean hasExperimentConfig(); + + /** + * + * + *
                +   * Optional. Experiment configuration for the deployment.
                +   * 
                + * + * + * .google.cloud.ces.v1.ExperimentConfig experiment_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The experimentConfig. + */ + com.google.cloud.ces.v1.ExperimentConfig getExperimentConfig(); + + /** + * + * + *
                +   * Optional. Experiment configuration for the deployment.
                +   * 
                + * + * + * .google.cloud.ces.v1.ExperimentConfig experiment_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.ExperimentConfigOrBuilder getExperimentConfigOrBuilder(); + + /** + * + * + *
                +   * Optional. Input only. Ephemeral WhatsApp credentials required when
                +   * configuring a WhatsApp channel profile.
                +   * 
                + * + * + * .google.cloud.ces.v1.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.v1.WhatsAppCredentials whatsapp_credentials = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The whatsappCredentials. + */ + com.google.cloud.ces.v1.WhatsAppCredentials getWhatsappCredentials(); + + /** + * + * + *
                +   * Optional. Input only. Ephemeral WhatsApp credentials required when
                +   * configuring a WhatsApp channel profile.
                +   * 
                + * + * + * .google.cloud.ces.v1.WhatsAppCredentials whatsapp_credentials = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + com.google.cloud.ces.v1.WhatsAppCredentialsOrBuilder getWhatsappCredentialsOrBuilder(); + + /** + * + * + *
                +   * Optional. Input only. Ephemeral Instagram credentials required when
                +   * configuring a Instagram channel profile.
                +   * 
                + * + * + * .google.cloud.ces.v1.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.v1.InstagramCredentials instagram_credentials = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The instagramCredentials. + */ + com.google.cloud.ces.v1.InstagramCredentials getInstagramCredentials(); + + /** + * + * + *
                +   * Optional. Input only. Ephemeral Instagram credentials required when
                +   * configuring a Instagram channel profile.
                +   * 
                + * + * + * .google.cloud.ces.v1.InstagramCredentials instagram_credentials = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + com.google.cloud.ces.v1.InstagramCredentialsOrBuilder getInstagramCredentialsOrBuilder(); } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ErrorHandlingSettings.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ErrorHandlingSettings.java index 361b858c82cb..c3287969fc92 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ErrorHandlingSettings.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ErrorHandlingSettings.java @@ -269,6 +269,1628 @@ private ErrorHandlingStrategy(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1.ErrorHandlingSettings.ErrorHandlingStrategy) } + public interface FallbackResponseConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                +     * Optional. The fallback messages in case of system errors (e.g. LLM
                +     * errors), mapped by [supported language
                +     * code](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/reference/language).
                +     * 
                + * + * + * map<string, string> custom_fallback_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getCustomFallbackMessagesCount(); + + /** + * + * + *
                +     * Optional. The fallback messages in case of system errors (e.g. LLM
                +     * errors), mapped by [supported language
                +     * code](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/reference/language).
                +     * 
                + * + * + * map<string, string> custom_fallback_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsCustomFallbackMessages(java.lang.String key); + + /** Use {@link #getCustomFallbackMessagesMap()} instead. */ + @java.lang.Deprecated + java.util.Map getCustomFallbackMessages(); + + /** + * + * + *
                +     * Optional. The fallback messages in case of system errors (e.g. LLM
                +     * errors), mapped by [supported language
                +     * code](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/reference/language).
                +     * 
                + * + * + * map<string, string> custom_fallback_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getCustomFallbackMessagesMap(); + + /** + * + * + *
                +     * Optional. The fallback messages in case of system errors (e.g. LLM
                +     * errors), mapped by [supported language
                +     * code](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/reference/language).
                +     * 
                + * + * + * map<string, string> custom_fallback_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + java.lang.String getCustomFallbackMessagesOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
                +     * Optional. The fallback messages in case of system errors (e.g. LLM
                +     * errors), mapped by [supported language
                +     * code](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/reference/language).
                +     * 
                + * + * + * map<string, string> custom_fallback_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getCustomFallbackMessagesOrThrow(java.lang.String key); + + /** + * + * + *
                +     * Optional. The maximum number of fallback attempts to make before the
                +     * agent emitting [EndSession][google.cloud.ces.v1.EndSession] Signal.
                +     * 
                + * + * int32 max_fallback_attempts = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxFallbackAttempts. + */ + int getMaxFallbackAttempts(); + } + + /** + * + * + *
                +   * Configuration for handling fallback responses.
                +   * 
                + * + * Protobuf type {@code google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig} + */ + public static final class FallbackResponseConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig) + FallbackResponseConfigOrBuilder { + 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= */ "", + "FallbackResponseConfig"); + } + + // Use FallbackResponseConfig.newBuilder() to construct. + private FallbackResponseConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FallbackResponseConfig() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_ErrorHandlingSettings_FallbackResponseConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetCustomFallbackMessages(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_ErrorHandlingSettings_FallbackResponseConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig.class, + com.google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig.Builder.class); + } + + public static final int CUSTOM_FALLBACK_MESSAGES_FIELD_NUMBER = 1; + + private static final class CustomFallbackMessagesDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_ErrorHandlingSettings_FallbackResponseConfig_CustomFallbackMessagesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField + customFallbackMessages_; + + private com.google.protobuf.MapField + internalGetCustomFallbackMessages() { + if (customFallbackMessages_ == null) { + return com.google.protobuf.MapField.emptyMapField( + CustomFallbackMessagesDefaultEntryHolder.defaultEntry); + } + return customFallbackMessages_; + } + + public int getCustomFallbackMessagesCount() { + return internalGetCustomFallbackMessages().getMap().size(); + } + + /** + * + * + *
                +     * Optional. The fallback messages in case of system errors (e.g. LLM
                +     * errors), mapped by [supported language
                +     * code](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/reference/language).
                +     * 
                + * + * + * map<string, string> custom_fallback_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsCustomFallbackMessages(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetCustomFallbackMessages().getMap().containsKey(key); + } + + /** Use {@link #getCustomFallbackMessagesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getCustomFallbackMessages() { + return getCustomFallbackMessagesMap(); + } + + /** + * + * + *
                +     * Optional. The fallback messages in case of system errors (e.g. LLM
                +     * errors), mapped by [supported language
                +     * code](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/reference/language).
                +     * 
                + * + * + * map<string, string> custom_fallback_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getCustomFallbackMessagesMap() { + return internalGetCustomFallbackMessages().getMap(); + } + + /** + * + * + *
                +     * Optional. The fallback messages in case of system errors (e.g. LLM
                +     * errors), mapped by [supported language
                +     * code](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/reference/language).
                +     * 
                + * + * + * map<string, string> custom_fallback_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getCustomFallbackMessagesOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetCustomFallbackMessages().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
                +     * Optional. The fallback messages in case of system errors (e.g. LLM
                +     * errors), mapped by [supported language
                +     * code](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/reference/language).
                +     * 
                + * + * + * map<string, string> custom_fallback_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getCustomFallbackMessagesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetCustomFallbackMessages().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int MAX_FALLBACK_ATTEMPTS_FIELD_NUMBER = 2; + private int maxFallbackAttempts_ = 0; + + /** + * + * + *
                +     * Optional. The maximum number of fallback attempts to make before the
                +     * agent emitting [EndSession][google.cloud.ces.v1.EndSession] Signal.
                +     * 
                + * + * int32 max_fallback_attempts = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxFallbackAttempts. + */ + @java.lang.Override + public int getMaxFallbackAttempts() { + return maxFallbackAttempts_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, + internalGetCustomFallbackMessages(), + CustomFallbackMessagesDefaultEntryHolder.defaultEntry, + 1); + if (maxFallbackAttempts_ != 0) { + output.writeInt32(2, maxFallbackAttempts_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry : + internalGetCustomFallbackMessages().getMap().entrySet()) { + com.google.protobuf.MapEntry customFallbackMessages__ = + CustomFallbackMessagesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, customFallbackMessages__); + } + if (maxFallbackAttempts_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxFallbackAttempts_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.v1.ErrorHandlingSettings.FallbackResponseConfig)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig other = + (com.google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig) obj; + + if (!internalGetCustomFallbackMessages().equals(other.internalGetCustomFallbackMessages())) + return false; + if (getMaxFallbackAttempts() != other.getMaxFallbackAttempts()) return false; + if (!getUnknownFields().equals(other.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 (!internalGetCustomFallbackMessages().getMap().isEmpty()) { + hash = (37 * hash) + CUSTOM_FALLBACK_MESSAGES_FIELD_NUMBER; + hash = (53 * hash) + internalGetCustomFallbackMessages().hashCode(); + } + hash = (37 * hash) + MAX_FALLBACK_ATTEMPTS_FIELD_NUMBER; + hash = (53 * hash) + getMaxFallbackAttempts(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig parseFrom( + 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.v1.ErrorHandlingSettings.FallbackResponseConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig parseFrom( + com.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.v1.ErrorHandlingSettings.FallbackResponseConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig parseFrom( + java.io.InputStream 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.v1.ErrorHandlingSettings.FallbackResponseConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig + parseDelimitedFrom( + java.io.InputStream 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.v1.ErrorHandlingSettings.FallbackResponseConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, 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.v1.ErrorHandlingSettings.FallbackResponseConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 handling fallback responses.
                +     * 
                + * + * Protobuf type {@code google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig) + com.google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_ErrorHandlingSettings_FallbackResponseConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetCustomFallbackMessages(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetMutableCustomFallbackMessages(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_ErrorHandlingSettings_FallbackResponseConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig.class, + com.google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig.Builder.class); + } + + // Construct using + // com.google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + internalGetMutableCustomFallbackMessages().clear(); + maxFallbackAttempts_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_ErrorHandlingSettings_FallbackResponseConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig + getDefaultInstanceForType() { + return com.google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig build() { + com.google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig buildPartial() { + com.google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig result = + new com.google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.customFallbackMessages_ = internalGetCustomFallbackMessages(); + result.customFallbackMessages_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.maxFallbackAttempts_ = maxFallbackAttempts_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig) { + return mergeFrom( + (com.google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig other) { + if (other + == com.google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig + .getDefaultInstance()) return this; + internalGetMutableCustomFallbackMessages() + .mergeFrom(other.internalGetCustomFallbackMessages()); + bitField0_ |= 0x00000001; + if (other.getMaxFallbackAttempts() != 0) { + setMaxFallbackAttempts(other.getMaxFallbackAttempts()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.protobuf.MapEntry + customFallbackMessages__ = + input.readMessage( + CustomFallbackMessagesDefaultEntryHolder.defaultEntry + .getParserForType(), + extensionRegistry); + internalGetMutableCustomFallbackMessages() + .getMutableMap() + .put(customFallbackMessages__.getKey(), customFallbackMessages__.getValue()); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + maxFallbackAttempts_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.MapField + customFallbackMessages_; + + private com.google.protobuf.MapField + internalGetCustomFallbackMessages() { + if (customFallbackMessages_ == null) { + return com.google.protobuf.MapField.emptyMapField( + CustomFallbackMessagesDefaultEntryHolder.defaultEntry); + } + return customFallbackMessages_; + } + + private com.google.protobuf.MapField + internalGetMutableCustomFallbackMessages() { + if (customFallbackMessages_ == null) { + customFallbackMessages_ = + com.google.protobuf.MapField.newMapField( + CustomFallbackMessagesDefaultEntryHolder.defaultEntry); + } + if (!customFallbackMessages_.isMutable()) { + customFallbackMessages_ = customFallbackMessages_.copy(); + } + bitField0_ |= 0x00000001; + onChanged(); + return customFallbackMessages_; + } + + public int getCustomFallbackMessagesCount() { + return internalGetCustomFallbackMessages().getMap().size(); + } + + /** + * + * + *
                +       * Optional. The fallback messages in case of system errors (e.g. LLM
                +       * errors), mapped by [supported language
                +       * code](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/reference/language).
                +       * 
                + * + * + * map<string, string> custom_fallback_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsCustomFallbackMessages(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetCustomFallbackMessages().getMap().containsKey(key); + } + + /** Use {@link #getCustomFallbackMessagesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getCustomFallbackMessages() { + return getCustomFallbackMessagesMap(); + } + + /** + * + * + *
                +       * Optional. The fallback messages in case of system errors (e.g. LLM
                +       * errors), mapped by [supported language
                +       * code](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/reference/language).
                +       * 
                + * + * + * map<string, string> custom_fallback_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getCustomFallbackMessagesMap() { + return internalGetCustomFallbackMessages().getMap(); + } + + /** + * + * + *
                +       * Optional. The fallback messages in case of system errors (e.g. LLM
                +       * errors), mapped by [supported language
                +       * code](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/reference/language).
                +       * 
                + * + * + * map<string, string> custom_fallback_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getCustomFallbackMessagesOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetCustomFallbackMessages().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
                +       * Optional. The fallback messages in case of system errors (e.g. LLM
                +       * errors), mapped by [supported language
                +       * code](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/reference/language).
                +       * 
                + * + * + * map<string, string> custom_fallback_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getCustomFallbackMessagesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetCustomFallbackMessages().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearCustomFallbackMessages() { + bitField0_ = (bitField0_ & ~0x00000001); + internalGetMutableCustomFallbackMessages().getMutableMap().clear(); + return this; + } + + /** + * + * + *
                +       * Optional. The fallback messages in case of system errors (e.g. LLM
                +       * errors), mapped by [supported language
                +       * code](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/reference/language).
                +       * 
                + * + * + * map<string, string> custom_fallback_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeCustomFallbackMessages(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableCustomFallbackMessages().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableCustomFallbackMessages() { + bitField0_ |= 0x00000001; + return internalGetMutableCustomFallbackMessages().getMutableMap(); + } + + /** + * + * + *
                +       * Optional. The fallback messages in case of system errors (e.g. LLM
                +       * errors), mapped by [supported language
                +       * code](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/reference/language).
                +       * 
                + * + * + * map<string, string> custom_fallback_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putCustomFallbackMessages(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableCustomFallbackMessages().getMutableMap().put(key, value); + bitField0_ |= 0x00000001; + return this; + } + + /** + * + * + *
                +       * Optional. The fallback messages in case of system errors (e.g. LLM
                +       * errors), mapped by [supported language
                +       * code](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/reference/language).
                +       * 
                + * + * + * map<string, string> custom_fallback_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllCustomFallbackMessages( + java.util.Map values) { + internalGetMutableCustomFallbackMessages().getMutableMap().putAll(values); + bitField0_ |= 0x00000001; + return this; + } + + private int maxFallbackAttempts_; + + /** + * + * + *
                +       * Optional. The maximum number of fallback attempts to make before the
                +       * agent emitting [EndSession][google.cloud.ces.v1.EndSession] Signal.
                +       * 
                + * + * int32 max_fallback_attempts = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxFallbackAttempts. + */ + @java.lang.Override + public int getMaxFallbackAttempts() { + return maxFallbackAttempts_; + } + + /** + * + * + *
                +       * Optional. The maximum number of fallback attempts to make before the
                +       * agent emitting [EndSession][google.cloud.ces.v1.EndSession] Signal.
                +       * 
                + * + * int32 max_fallback_attempts = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The maxFallbackAttempts to set. + * @return This builder for chaining. + */ + public Builder setMaxFallbackAttempts(int value) { + + maxFallbackAttempts_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                +       * Optional. The maximum number of fallback attempts to make before the
                +       * agent emitting [EndSession][google.cloud.ces.v1.EndSession] Signal.
                +       * 
                + * + * int32 max_fallback_attempts = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMaxFallbackAttempts() { + bitField0_ = (bitField0_ & ~0x00000002); + maxFallbackAttempts_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig) + private static final com.google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig(); + } + + public static com.google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FallbackResponseConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.v1.ErrorHandlingSettings.FallbackResponseConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface EndSessionConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                +     * Optional. Whether to escalate the session in
                +     * [EndSession][google.cloud.ces.v1.EndSession]. If session is escalated,
                +     * [metadata in EndSession][google.cloud.ces.v1.EndSession.metadata] will
                +     * contain `session_escalated = true`. See
                +     * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/deploy/google-telephony-platform#transfer_a_call_to_a_human_agent
                +     * for details.
                +     * 
                + * + * optional bool escalate_session = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the escalateSession field is set. + */ + boolean hasEscalateSession(); + + /** + * + * + *
                +     * Optional. Whether to escalate the session in
                +     * [EndSession][google.cloud.ces.v1.EndSession]. If session is escalated,
                +     * [metadata in EndSession][google.cloud.ces.v1.EndSession.metadata] will
                +     * contain `session_escalated = true`. See
                +     * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/deploy/google-telephony-platform#transfer_a_call_to_a_human_agent
                +     * for details.
                +     * 
                + * + * optional bool escalate_session = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The escalateSession. + */ + boolean getEscalateSession(); + } + + /** + * + * + *
                +   * Configuration for ending the session in case of system errors (e.g. LLM
                +   * errors).
                +   * 
                + * + * Protobuf type {@code google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig} + */ + public static final class EndSessionConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig) + EndSessionConfigOrBuilder { + 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= */ "", + "EndSessionConfig"); + } + + // Use EndSessionConfig.newBuilder() to construct. + private EndSessionConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private EndSessionConfig() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_ErrorHandlingSettings_EndSessionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_ErrorHandlingSettings_EndSessionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig.class, + com.google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig.Builder.class); + } + + private int bitField0_; + public static final int ESCALATE_SESSION_FIELD_NUMBER = 1; + private boolean escalateSession_ = false; + + /** + * + * + *
                +     * Optional. Whether to escalate the session in
                +     * [EndSession][google.cloud.ces.v1.EndSession]. If session is escalated,
                +     * [metadata in EndSession][google.cloud.ces.v1.EndSession.metadata] will
                +     * contain `session_escalated = true`. See
                +     * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/deploy/google-telephony-platform#transfer_a_call_to_a_human_agent
                +     * for details.
                +     * 
                + * + * optional bool escalate_session = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the escalateSession field is set. + */ + @java.lang.Override + public boolean hasEscalateSession() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                +     * Optional. Whether to escalate the session in
                +     * [EndSession][google.cloud.ces.v1.EndSession]. If session is escalated,
                +     * [metadata in EndSession][google.cloud.ces.v1.EndSession.metadata] will
                +     * contain `session_escalated = true`. See
                +     * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/deploy/google-telephony-platform#transfer_a_call_to_a_human_agent
                +     * for details.
                +     * 
                + * + * optional bool escalate_session = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The escalateSession. + */ + @java.lang.Override + public boolean getEscalateSession() { + return escalateSession_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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.writeBool(1, escalateSession_); + } + 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.computeBoolSize(1, escalateSession_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.v1.ErrorHandlingSettings.EndSessionConfig)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig other = + (com.google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig) obj; + + if (hasEscalateSession() != other.hasEscalateSession()) return false; + if (hasEscalateSession()) { + if (getEscalateSession() != other.getEscalateSession()) return false; + } + if (!getUnknownFields().equals(other.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 (hasEscalateSession()) { + hash = (37 * hash) + ESCALATE_SESSION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEscalateSession()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig parseFrom( + 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.v1.ErrorHandlingSettings.EndSessionConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig parseFrom( + com.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.v1.ErrorHandlingSettings.EndSessionConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig parseFrom( + java.io.InputStream 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.v1.ErrorHandlingSettings.EndSessionConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig parseDelimitedFrom( + java.io.InputStream 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.v1.ErrorHandlingSettings.EndSessionConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, 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.v1.ErrorHandlingSettings.EndSessionConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 ending the session in case of system errors (e.g. LLM
                +     * errors).
                +     * 
                + * + * Protobuf type {@code google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig) + com.google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_ErrorHandlingSettings_EndSessionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_ErrorHandlingSettings_EndSessionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig.class, + com.google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + escalateSession_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_ErrorHandlingSettings_EndSessionConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig + getDefaultInstanceForType() { + return com.google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig build() { + com.google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig buildPartial() { + com.google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig result = + new com.google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.escalateSession_ = escalateSession_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig) { + return mergeFrom((com.google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig other) { + if (other + == com.google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig.getDefaultInstance()) + return this; + if (other.hasEscalateSession()) { + setEscalateSession(other.getEscalateSession()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + escalateSession_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private boolean escalateSession_; + + /** + * + * + *
                +       * Optional. Whether to escalate the session in
                +       * [EndSession][google.cloud.ces.v1.EndSession]. If session is escalated,
                +       * [metadata in EndSession][google.cloud.ces.v1.EndSession.metadata] will
                +       * contain `session_escalated = true`. See
                +       * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/deploy/google-telephony-platform#transfer_a_call_to_a_human_agent
                +       * for details.
                +       * 
                + * + * optional bool escalate_session = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the escalateSession field is set. + */ + @java.lang.Override + public boolean hasEscalateSession() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                +       * Optional. Whether to escalate the session in
                +       * [EndSession][google.cloud.ces.v1.EndSession]. If session is escalated,
                +       * [metadata in EndSession][google.cloud.ces.v1.EndSession.metadata] will
                +       * contain `session_escalated = true`. See
                +       * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/deploy/google-telephony-platform#transfer_a_call_to_a_human_agent
                +       * for details.
                +       * 
                + * + * optional bool escalate_session = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The escalateSession. + */ + @java.lang.Override + public boolean getEscalateSession() { + return escalateSession_; + } + + /** + * + * + *
                +       * Optional. Whether to escalate the session in
                +       * [EndSession][google.cloud.ces.v1.EndSession]. If session is escalated,
                +       * [metadata in EndSession][google.cloud.ces.v1.EndSession.metadata] will
                +       * contain `session_escalated = true`. See
                +       * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/deploy/google-telephony-platform#transfer_a_call_to_a_human_agent
                +       * for details.
                +       * 
                + * + * optional bool escalate_session = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The escalateSession to set. + * @return This builder for chaining. + */ + public Builder setEscalateSession(boolean value) { + + escalateSession_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                +       * Optional. Whether to escalate the session in
                +       * [EndSession][google.cloud.ces.v1.EndSession]. If session is escalated,
                +       * [metadata in EndSession][google.cloud.ces.v1.EndSession.metadata] will
                +       * contain `session_escalated = true`. See
                +       * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/deploy/google-telephony-platform#transfer_a_call_to_a_human_agent
                +       * for details.
                +       * 
                + * + * optional bool escalate_session = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEscalateSession() { + bitField0_ = (bitField0_ & ~0x00000001); + escalateSession_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig) + private static final com.google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig(); + } + + public static com.google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EndSessionConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.v1.ErrorHandlingSettings.EndSessionConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; public static final int ERROR_HANDLING_STRATEGY_FIELD_NUMBER = 1; private int errorHandlingStrategy_ = 0; @@ -314,6 +1936,131 @@ public int getErrorHandlingStrategyValue() { : result; } + public static final int FALLBACK_RESPONSE_CONFIG_FIELD_NUMBER = 2; + private com.google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig + fallbackResponseConfig_; + + /** + * + * + *
                +   * Optional. Configuration for handling fallback responses.
                +   * 
                + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig fallback_response_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the fallbackResponseConfig field is set. + */ + @java.lang.Override + public boolean hasFallbackResponseConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                +   * Optional. Configuration for handling fallback responses.
                +   * 
                + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig fallback_response_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The fallbackResponseConfig. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig + getFallbackResponseConfig() { + return fallbackResponseConfig_ == null + ? com.google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig.getDefaultInstance() + : fallbackResponseConfig_; + } + + /** + * + * + *
                +   * Optional. Configuration for handling fallback responses.
                +   * 
                + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig fallback_response_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfigOrBuilder + getFallbackResponseConfigOrBuilder() { + return fallbackResponseConfig_ == null + ? com.google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig.getDefaultInstance() + : fallbackResponseConfig_; + } + + public static final int END_SESSION_CONFIG_FIELD_NUMBER = 3; + private com.google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig endSessionConfig_; + + /** + * + * + *
                +   * Optional. Configuration for ending the session in case of system errors
                +   * (e.g. LLM errors).
                +   * 
                + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig end_session_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the endSessionConfig field is set. + */ + @java.lang.Override + public boolean hasEndSessionConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                +   * Optional. Configuration for ending the session in case of system errors
                +   * (e.g. LLM errors).
                +   * 
                + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig end_session_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The endSessionConfig. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig getEndSessionConfig() { + return endSessionConfig_ == null + ? com.google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig.getDefaultInstance() + : endSessionConfig_; + } + + /** + * + * + *
                +   * Optional. Configuration for ending the session in case of system errors
                +   * (e.g. LLM errors).
                +   * 
                + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig end_session_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfigOrBuilder + getEndSessionConfigOrBuilder() { + return endSessionConfig_ == null + ? com.google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig.getDefaultInstance() + : endSessionConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -334,6 +2081,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(1, errorHandlingStrategy_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getFallbackResponseConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getEndSessionConfig()); + } getUnknownFields().writeTo(output); } @@ -349,6 +2102,13 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, errorHandlingStrategy_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFallbackResponseConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEndSessionConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -366,6 +2126,14 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.ces.v1.ErrorHandlingSettings) obj; if (errorHandlingStrategy_ != other.errorHandlingStrategy_) return false; + if (hasFallbackResponseConfig() != other.hasFallbackResponseConfig()) return false; + if (hasFallbackResponseConfig()) { + if (!getFallbackResponseConfig().equals(other.getFallbackResponseConfig())) return false; + } + if (hasEndSessionConfig() != other.hasEndSessionConfig()) return false; + if (hasEndSessionConfig()) { + if (!getEndSessionConfig().equals(other.getEndSessionConfig())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -379,6 +2147,14 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ERROR_HANDLING_STRATEGY_FIELD_NUMBER; hash = (53 * hash) + errorHandlingStrategy_; + if (hasFallbackResponseConfig()) { + hash = (37 * hash) + FALLBACK_RESPONSE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getFallbackResponseConfig().hashCode(); + } + if (hasEndSessionConfig()) { + hash = (37 * hash) + END_SESSION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getEndSessionConfig().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -509,10 +2285,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.ces.v1.ErrorHandlingSettings.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) { + internalGetFallbackResponseConfigFieldBuilder(); + internalGetEndSessionConfigFieldBuilder(); + } } @java.lang.Override @@ -520,6 +2306,16 @@ public Builder clear() { super.clear(); bitField0_ = 0; errorHandlingStrategy_ = 0; + fallbackResponseConfig_ = null; + if (fallbackResponseConfigBuilder_ != null) { + fallbackResponseConfigBuilder_.dispose(); + fallbackResponseConfigBuilder_ = null; + } + endSessionConfig_ = null; + if (endSessionConfigBuilder_ != null) { + endSessionConfigBuilder_.dispose(); + endSessionConfigBuilder_ = null; + } return this; } @@ -559,6 +2355,20 @@ private void buildPartial0(com.google.cloud.ces.v1.ErrorHandlingSettings result) if (((from_bitField0_ & 0x00000001) != 0)) { result.errorHandlingStrategy_ = errorHandlingStrategy_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.fallbackResponseConfig_ = + fallbackResponseConfigBuilder_ == null + ? fallbackResponseConfig_ + : fallbackResponseConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.endSessionConfig_ = + endSessionConfigBuilder_ == null ? endSessionConfig_ : endSessionConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -576,6 +2386,12 @@ public Builder mergeFrom(com.google.cloud.ces.v1.ErrorHandlingSettings other) { if (other.errorHandlingStrategy_ != 0) { setErrorHandlingStrategyValue(other.getErrorHandlingStrategyValue()); } + if (other.hasFallbackResponseConfig()) { + mergeFallbackResponseConfig(other.getFallbackResponseConfig()); + } + if (other.hasEndSessionConfig()) { + mergeEndSessionConfig(other.getEndSessionConfig()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -608,6 +2424,21 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 8 + case 18: + { + input.readMessage( + internalGetFallbackResponseConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetEndSessionConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -737,6 +2568,458 @@ public Builder clearErrorHandlingStrategy() { return this; } + private com.google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig + fallbackResponseConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig, + com.google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig.Builder, + com.google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfigOrBuilder> + fallbackResponseConfigBuilder_; + + /** + * + * + *
                +     * Optional. Configuration for handling fallback responses.
                +     * 
                + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig fallback_response_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the fallbackResponseConfig field is set. + */ + public boolean hasFallbackResponseConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                +     * Optional. Configuration for handling fallback responses.
                +     * 
                + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig fallback_response_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The fallbackResponseConfig. + */ + public com.google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig + getFallbackResponseConfig() { + if (fallbackResponseConfigBuilder_ == null) { + return fallbackResponseConfig_ == null + ? com.google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig + .getDefaultInstance() + : fallbackResponseConfig_; + } else { + return fallbackResponseConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
                +     * Optional. Configuration for handling fallback responses.
                +     * 
                + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig fallback_response_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFallbackResponseConfig( + com.google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig value) { + if (fallbackResponseConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + fallbackResponseConfig_ = value; + } else { + fallbackResponseConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. Configuration for handling fallback responses.
                +     * 
                + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig fallback_response_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFallbackResponseConfig( + com.google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig.Builder + builderForValue) { + if (fallbackResponseConfigBuilder_ == null) { + fallbackResponseConfig_ = builderForValue.build(); + } else { + fallbackResponseConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. Configuration for handling fallback responses.
                +     * 
                + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig fallback_response_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeFallbackResponseConfig( + com.google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig value) { + if (fallbackResponseConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && fallbackResponseConfig_ != null + && fallbackResponseConfig_ + != com.google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig + .getDefaultInstance()) { + getFallbackResponseConfigBuilder().mergeFrom(value); + } else { + fallbackResponseConfig_ = value; + } + } else { + fallbackResponseConfigBuilder_.mergeFrom(value); + } + if (fallbackResponseConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                +     * Optional. Configuration for handling fallback responses.
                +     * 
                + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig fallback_response_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearFallbackResponseConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + fallbackResponseConfig_ = null; + if (fallbackResponseConfigBuilder_ != null) { + fallbackResponseConfigBuilder_.dispose(); + fallbackResponseConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. Configuration for handling fallback responses.
                +     * 
                + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig fallback_response_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig.Builder + getFallbackResponseConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetFallbackResponseConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
                +     * Optional. Configuration for handling fallback responses.
                +     * 
                + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig fallback_response_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfigOrBuilder + getFallbackResponseConfigOrBuilder() { + if (fallbackResponseConfigBuilder_ != null) { + return fallbackResponseConfigBuilder_.getMessageOrBuilder(); + } else { + return fallbackResponseConfig_ == null + ? com.google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig + .getDefaultInstance() + : fallbackResponseConfig_; + } + } + + /** + * + * + *
                +     * Optional. Configuration for handling fallback responses.
                +     * 
                + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig fallback_response_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig, + com.google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig.Builder, + com.google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfigOrBuilder> + internalGetFallbackResponseConfigFieldBuilder() { + if (fallbackResponseConfigBuilder_ == null) { + fallbackResponseConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig, + com.google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig.Builder, + com.google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfigOrBuilder>( + getFallbackResponseConfig(), getParentForChildren(), isClean()); + fallbackResponseConfig_ = null; + } + return fallbackResponseConfigBuilder_; + } + + private com.google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig endSessionConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig, + com.google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig.Builder, + com.google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfigOrBuilder> + endSessionConfigBuilder_; + + /** + * + * + *
                +     * Optional. Configuration for ending the session in case of system errors
                +     * (e.g. LLM errors).
                +     * 
                + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig end_session_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the endSessionConfig field is set. + */ + public boolean hasEndSessionConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                +     * Optional. Configuration for ending the session in case of system errors
                +     * (e.g. LLM errors).
                +     * 
                + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig end_session_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The endSessionConfig. + */ + public com.google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig getEndSessionConfig() { + if (endSessionConfigBuilder_ == null) { + return endSessionConfig_ == null + ? com.google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig.getDefaultInstance() + : endSessionConfig_; + } else { + return endSessionConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
                +     * Optional. Configuration for ending the session in case of system errors
                +     * (e.g. LLM errors).
                +     * 
                + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig end_session_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEndSessionConfig( + com.google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig value) { + if (endSessionConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endSessionConfig_ = value; + } else { + endSessionConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. Configuration for ending the session in case of system errors
                +     * (e.g. LLM errors).
                +     * 
                + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig end_session_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEndSessionConfig( + com.google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig.Builder builderForValue) { + if (endSessionConfigBuilder_ == null) { + endSessionConfig_ = builderForValue.build(); + } else { + endSessionConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. Configuration for ending the session in case of system errors
                +     * (e.g. LLM errors).
                +     * 
                + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig end_session_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeEndSessionConfig( + com.google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig value) { + if (endSessionConfigBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && endSessionConfig_ != null + && endSessionConfig_ + != com.google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig + .getDefaultInstance()) { + getEndSessionConfigBuilder().mergeFrom(value); + } else { + endSessionConfig_ = value; + } + } else { + endSessionConfigBuilder_.mergeFrom(value); + } + if (endSessionConfig_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                +     * Optional. Configuration for ending the session in case of system errors
                +     * (e.g. LLM errors).
                +     * 
                + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig end_session_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearEndSessionConfig() { + bitField0_ = (bitField0_ & ~0x00000004); + endSessionConfig_ = null; + if (endSessionConfigBuilder_ != null) { + endSessionConfigBuilder_.dispose(); + endSessionConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. Configuration for ending the session in case of system errors
                +     * (e.g. LLM errors).
                +     * 
                + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig end_session_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig.Builder + getEndSessionConfigBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetEndSessionConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
                +     * Optional. Configuration for ending the session in case of system errors
                +     * (e.g. LLM errors).
                +     * 
                + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig end_session_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfigOrBuilder + getEndSessionConfigOrBuilder() { + if (endSessionConfigBuilder_ != null) { + return endSessionConfigBuilder_.getMessageOrBuilder(); + } else { + return endSessionConfig_ == null + ? com.google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig.getDefaultInstance() + : endSessionConfig_; + } + } + + /** + * + * + *
                +     * Optional. Configuration for ending the session in case of system errors
                +     * (e.g. LLM errors).
                +     * 
                + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig end_session_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig, + com.google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig.Builder, + com.google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfigOrBuilder> + internalGetEndSessionConfigFieldBuilder() { + if (endSessionConfigBuilder_ == null) { + endSessionConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig, + com.google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig.Builder, + com.google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfigOrBuilder>( + getEndSessionConfig(), getParentForChildren(), isClean()); + endSessionConfig_ = null; + } + return endSessionConfigBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.ErrorHandlingSettings) } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ErrorHandlingSettingsOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ErrorHandlingSettingsOrBuilder.java index b3320490126f..da58f986cef9 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ErrorHandlingSettingsOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ErrorHandlingSettingsOrBuilder.java @@ -55,4 +55,95 @@ public interface ErrorHandlingSettingsOrBuilder * @return The errorHandlingStrategy. */ com.google.cloud.ces.v1.ErrorHandlingSettings.ErrorHandlingStrategy getErrorHandlingStrategy(); + + /** + * + * + *
                +   * Optional. Configuration for handling fallback responses.
                +   * 
                + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig fallback_response_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the fallbackResponseConfig field is set. + */ + boolean hasFallbackResponseConfig(); + + /** + * + * + *
                +   * Optional. Configuration for handling fallback responses.
                +   * 
                + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig fallback_response_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The fallbackResponseConfig. + */ + com.google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig getFallbackResponseConfig(); + + /** + * + * + *
                +   * Optional. Configuration for handling fallback responses.
                +   * 
                + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig fallback_response_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfigOrBuilder + getFallbackResponseConfigOrBuilder(); + + /** + * + * + *
                +   * Optional. Configuration for ending the session in case of system errors
                +   * (e.g. LLM errors).
                +   * 
                + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig end_session_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the endSessionConfig field is set. + */ + boolean hasEndSessionConfig(); + + /** + * + * + *
                +   * Optional. Configuration for ending the session in case of system errors
                +   * (e.g. LLM errors).
                +   * 
                + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig end_session_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The endSessionConfig. + */ + com.google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig getEndSessionConfig(); + + /** + * + * + *
                +   * Optional. Configuration for ending the session in case of system errors
                +   * (e.g. LLM errors).
                +   * 
                + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig end_session_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfigOrBuilder + getEndSessionConfigOrBuilder(); } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/EvaluationMetricsThresholds.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/EvaluationMetricsThresholds.java index ea7568b0df22..38cac8a76cd7 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/EvaluationMetricsThresholds.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/EvaluationMetricsThresholds.java @@ -4750,7 +4750,7 @@ public boolean hasGoldenEvaluationMetricsThresholds() { * * * @deprecated google.cloud.ces.v1.EvaluationMetricsThresholds.hallucination_metric_behavior is - * deprecated. See google/cloud/ces/v1/app.proto;l=534 + * deprecated. See google/cloud/ces/v1/app.proto;l=609 * @return The enum numeric value on the wire for hallucinationMetricBehavior. */ @java.lang.Override @@ -4772,7 +4772,7 @@ public int getHallucinationMetricBehaviorValue() { * * * @deprecated google.cloud.ces.v1.EvaluationMetricsThresholds.hallucination_metric_behavior is - * deprecated. See google/cloud/ces/v1/app.proto;l=534 + * deprecated. See google/cloud/ces/v1/app.proto;l=609 * @return The hallucinationMetricBehavior. */ @java.lang.Override @@ -5562,7 +5562,7 @@ public Builder clearGoldenEvaluationMetricsThresholds() { * * * @deprecated google.cloud.ces.v1.EvaluationMetricsThresholds.hallucination_metric_behavior is - * deprecated. See google/cloud/ces/v1/app.proto;l=534 + * deprecated. See google/cloud/ces/v1/app.proto;l=609 * @return The enum numeric value on the wire for hallucinationMetricBehavior. */ @java.lang.Override @@ -5584,7 +5584,7 @@ public int getHallucinationMetricBehaviorValue() { * * * @deprecated google.cloud.ces.v1.EvaluationMetricsThresholds.hallucination_metric_behavior is - * deprecated. See google/cloud/ces/v1/app.proto;l=534 + * deprecated. See google/cloud/ces/v1/app.proto;l=609 * @param value The enum numeric value on the wire for hallucinationMetricBehavior to set. * @return This builder for chaining. */ @@ -5609,7 +5609,7 @@ public Builder setHallucinationMetricBehaviorValue(int value) { * * * @deprecated google.cloud.ces.v1.EvaluationMetricsThresholds.hallucination_metric_behavior is - * deprecated. See google/cloud/ces/v1/app.proto;l=534 + * deprecated. See google/cloud/ces/v1/app.proto;l=609 * @return The hallucinationMetricBehavior. */ @java.lang.Override @@ -5638,7 +5638,7 @@ public Builder setHallucinationMetricBehaviorValue(int value) { * * * @deprecated google.cloud.ces.v1.EvaluationMetricsThresholds.hallucination_metric_behavior is - * deprecated. See google/cloud/ces/v1/app.proto;l=534 + * deprecated. See google/cloud/ces/v1/app.proto;l=609 * @param value The hallucinationMetricBehavior to set. * @return This builder for chaining. */ @@ -5667,7 +5667,7 @@ public Builder setHallucinationMetricBehavior( * * * @deprecated google.cloud.ces.v1.EvaluationMetricsThresholds.hallucination_metric_behavior is - * deprecated. See google/cloud/ces/v1/app.proto;l=534 + * deprecated. See google/cloud/ces/v1/app.proto;l=609 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/EvaluationMetricsThresholdsOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/EvaluationMetricsThresholdsOrBuilder.java index 143f99eea5cb..1075f53ce132 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/EvaluationMetricsThresholdsOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/EvaluationMetricsThresholdsOrBuilder.java @@ -84,7 +84,7 @@ public interface EvaluationMetricsThresholdsOrBuilder * * * @deprecated google.cloud.ces.v1.EvaluationMetricsThresholds.hallucination_metric_behavior is - * deprecated. See google/cloud/ces/v1/app.proto;l=534 + * deprecated. See google/cloud/ces/v1/app.proto;l=609 * @return The enum numeric value on the wire for hallucinationMetricBehavior. */ @java.lang.Deprecated @@ -103,7 +103,7 @@ public interface EvaluationMetricsThresholdsOrBuilder * * * @deprecated google.cloud.ces.v1.EvaluationMetricsThresholds.hallucination_metric_behavior is - * deprecated. See google/cloud/ces/v1/app.proto;l=534 + * deprecated. See google/cloud/ces/v1/app.proto;l=609 * @return The hallucinationMetricBehavior. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExecuteToolRequest.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExecuteToolRequest.java index 04a987873a98..2ceeabc64ba9 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExecuteToolRequest.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExecuteToolRequest.java @@ -545,6 +545,71 @@ public com.google.protobuf.StructOrBuilder getArgsOrBuilder() { return args_ == null ? com.google.protobuf.Struct.getDefaultInstance() : args_; } + public static final int MOCK_CONFIG_FIELD_NUMBER = 7; + private com.google.cloud.ces.v1.MockConfig mockConfig_; + + /** + * + * + *
                +   * Optional. Mock configuration for the tool execution.
                +   * If this field is set, tools that call other tools will be
                +   * mocked based on the provided patterns and responses.
                +   * 
                + * + * + * .google.cloud.ces.v1.MockConfig mock_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the mockConfig field is set. + */ + @java.lang.Override + public boolean hasMockConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                +   * Optional. Mock configuration for the tool execution.
                +   * If this field is set, tools that call other tools will be
                +   * mocked based on the provided patterns and responses.
                +   * 
                + * + * + * .google.cloud.ces.v1.MockConfig mock_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mockConfig. + */ + @java.lang.Override + public com.google.cloud.ces.v1.MockConfig getMockConfig() { + return mockConfig_ == null + ? com.google.cloud.ces.v1.MockConfig.getDefaultInstance() + : mockConfig_; + } + + /** + * + * + *
                +   * Optional. Mock configuration for the tool execution.
                +   * If this field is set, tools that call other tools will be
                +   * mocked based on the provided patterns and responses.
                +   * 
                + * + * + * .google.cloud.ces.v1.MockConfig mock_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.MockConfigOrBuilder getMockConfigOrBuilder() { + return mockConfig_ == null + ? com.google.cloud.ces.v1.MockConfig.getDefaultInstance() + : mockConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -577,6 +642,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (toolExecutionContextCase_ == 6) { output.writeMessage(6, (com.google.protobuf.Struct) toolExecutionContext_); } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(7, getMockConfig()); + } getUnknownFields().writeTo(output); } @@ -610,6 +678,9 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 6, (com.google.protobuf.Struct) toolExecutionContext_); } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getMockConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -631,6 +702,10 @@ public boolean equals(final java.lang.Object obj) { if (hasArgs()) { if (!getArgs().equals(other.getArgs())) return false; } + if (hasMockConfig() != other.hasMockConfig()) return false; + if (hasMockConfig()) { + if (!getMockConfig().equals(other.getMockConfig())) return false; + } if (!getToolIdentifierCase().equals(other.getToolIdentifierCase())) return false; switch (toolIdentifierCase_) { case 1: @@ -670,6 +745,10 @@ public int hashCode() { hash = (37 * hash) + ARGS_FIELD_NUMBER; hash = (53 * hash) + getArgs().hashCode(); } + if (hasMockConfig()) { + hash = (37 * hash) + MOCK_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getMockConfig().hashCode(); + } switch (toolIdentifierCase_) { case 1: hash = (37 * hash) + TOOL_FIELD_NUMBER; @@ -837,6 +916,7 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { internalGetArgsFieldBuilder(); + internalGetMockConfigFieldBuilder(); } } @@ -859,6 +939,11 @@ public Builder clear() { argsBuilder_.dispose(); argsBuilder_ = null; } + mockConfig_ = null; + if (mockConfigBuilder_ != null) { + mockConfigBuilder_.dispose(); + mockConfigBuilder_ = null; + } toolIdentifierCase_ = 0; toolIdentifier_ = null; toolExecutionContextCase_ = 0; @@ -908,6 +993,10 @@ private void buildPartial0(com.google.cloud.ces.v1.ExecuteToolRequest result) { result.args_ = argsBuilder_ == null ? args_ : argsBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.mockConfig_ = mockConfigBuilder_ == null ? mockConfig_ : mockConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } result.bitField0_ |= to_bitField0_; } @@ -947,6 +1036,9 @@ public Builder mergeFrom(com.google.cloud.ces.v1.ExecuteToolRequest other) { if (other.hasArgs()) { mergeArgs(other.getArgs()); } + if (other.hasMockConfig()) { + mergeMockConfig(other.getMockConfig()); + } switch (other.getToolIdentifierCase()) { case TOOL: { @@ -1046,6 +1138,13 @@ public Builder mergeFrom( toolExecutionContextCase_ = 6; break; } // case 50 + case 58: + { + input.readMessage( + internalGetMockConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2276,6 +2375,236 @@ public com.google.protobuf.StructOrBuilder getArgsOrBuilder() { return argsBuilder_; } + private com.google.cloud.ces.v1.MockConfig mockConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.MockConfig, + com.google.cloud.ces.v1.MockConfig.Builder, + com.google.cloud.ces.v1.MockConfigOrBuilder> + mockConfigBuilder_; + + /** + * + * + *
                +     * Optional. Mock configuration for the tool execution.
                +     * If this field is set, tools that call other tools will be
                +     * mocked based on the provided patterns and responses.
                +     * 
                + * + * + * .google.cloud.ces.v1.MockConfig mock_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the mockConfig field is set. + */ + public boolean hasMockConfig() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
                +     * Optional. Mock configuration for the tool execution.
                +     * If this field is set, tools that call other tools will be
                +     * mocked based on the provided patterns and responses.
                +     * 
                + * + * + * .google.cloud.ces.v1.MockConfig mock_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mockConfig. + */ + public com.google.cloud.ces.v1.MockConfig getMockConfig() { + if (mockConfigBuilder_ == null) { + return mockConfig_ == null + ? com.google.cloud.ces.v1.MockConfig.getDefaultInstance() + : mockConfig_; + } else { + return mockConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
                +     * Optional. Mock configuration for the tool execution.
                +     * If this field is set, tools that call other tools will be
                +     * mocked based on the provided patterns and responses.
                +     * 
                + * + * + * .google.cloud.ces.v1.MockConfig mock_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMockConfig(com.google.cloud.ces.v1.MockConfig value) { + if (mockConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + mockConfig_ = value; + } else { + mockConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. Mock configuration for the tool execution.
                +     * If this field is set, tools that call other tools will be
                +     * mocked based on the provided patterns and responses.
                +     * 
                + * + * + * .google.cloud.ces.v1.MockConfig mock_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMockConfig(com.google.cloud.ces.v1.MockConfig.Builder builderForValue) { + if (mockConfigBuilder_ == null) { + mockConfig_ = builderForValue.build(); + } else { + mockConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. Mock configuration for the tool execution.
                +     * If this field is set, tools that call other tools will be
                +     * mocked based on the provided patterns and responses.
                +     * 
                + * + * + * .google.cloud.ces.v1.MockConfig mock_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeMockConfig(com.google.cloud.ces.v1.MockConfig value) { + if (mockConfigBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && mockConfig_ != null + && mockConfig_ != com.google.cloud.ces.v1.MockConfig.getDefaultInstance()) { + getMockConfigBuilder().mergeFrom(value); + } else { + mockConfig_ = value; + } + } else { + mockConfigBuilder_.mergeFrom(value); + } + if (mockConfig_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
                +     * Optional. Mock configuration for the tool execution.
                +     * If this field is set, tools that call other tools will be
                +     * mocked based on the provided patterns and responses.
                +     * 
                + * + * + * .google.cloud.ces.v1.MockConfig mock_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMockConfig() { + bitField0_ = (bitField0_ & ~0x00000040); + mockConfig_ = null; + if (mockConfigBuilder_ != null) { + mockConfigBuilder_.dispose(); + mockConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. Mock configuration for the tool execution.
                +     * If this field is set, tools that call other tools will be
                +     * mocked based on the provided patterns and responses.
                +     * 
                + * + * + * .google.cloud.ces.v1.MockConfig mock_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.MockConfig.Builder getMockConfigBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetMockConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
                +     * Optional. Mock configuration for the tool execution.
                +     * If this field is set, tools that call other tools will be
                +     * mocked based on the provided patterns and responses.
                +     * 
                + * + * + * .google.cloud.ces.v1.MockConfig mock_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.MockConfigOrBuilder getMockConfigOrBuilder() { + if (mockConfigBuilder_ != null) { + return mockConfigBuilder_.getMessageOrBuilder(); + } else { + return mockConfig_ == null + ? com.google.cloud.ces.v1.MockConfig.getDefaultInstance() + : mockConfig_; + } + } + + /** + * + * + *
                +     * Optional. Mock configuration for the tool execution.
                +     * If this field is set, tools that call other tools will be
                +     * mocked based on the provided patterns and responses.
                +     * 
                + * + * + * .google.cloud.ces.v1.MockConfig mock_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.MockConfig, + com.google.cloud.ces.v1.MockConfig.Builder, + com.google.cloud.ces.v1.MockConfigOrBuilder> + internalGetMockConfigFieldBuilder() { + if (mockConfigBuilder_ == null) { + mockConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.MockConfig, + com.google.cloud.ces.v1.MockConfig.Builder, + com.google.cloud.ces.v1.MockConfigOrBuilder>( + getMockConfig(), getParentForChildren(), isClean()); + mockConfig_ = null; + } + return mockConfigBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.ExecuteToolRequest) } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExecuteToolRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExecuteToolRequestOrBuilder.java index ec2c88d8dc76..4d4d155c6222 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExecuteToolRequestOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExecuteToolRequestOrBuilder.java @@ -275,6 +275,55 @@ public interface ExecuteToolRequestOrBuilder */ com.google.protobuf.StructOrBuilder getArgsOrBuilder(); + /** + * + * + *
                +   * Optional. Mock configuration for the tool execution.
                +   * If this field is set, tools that call other tools will be
                +   * mocked based on the provided patterns and responses.
                +   * 
                + * + * + * .google.cloud.ces.v1.MockConfig mock_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the mockConfig field is set. + */ + boolean hasMockConfig(); + + /** + * + * + *
                +   * Optional. Mock configuration for the tool execution.
                +   * If this field is set, tools that call other tools will be
                +   * mocked based on the provided patterns and responses.
                +   * 
                + * + * + * .google.cloud.ces.v1.MockConfig mock_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mockConfig. + */ + com.google.cloud.ces.v1.MockConfig getMockConfig(); + + /** + * + * + *
                +   * Optional. Mock configuration for the tool execution.
                +   * If this field is set, tools that call other tools will be
                +   * mocked based on the provided patterns and responses.
                +   * 
                + * + * + * .google.cloud.ces.v1.MockConfig mock_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.MockConfigOrBuilder getMockConfigOrBuilder(); + com.google.cloud.ces.v1.ExecuteToolRequest.ToolIdentifierCase getToolIdentifierCase(); com.google.cloud.ces.v1.ExecuteToolRequest.ToolExecutionContextCase getToolExecutionContextCase(); diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExecuteToolResponse.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExecuteToolResponse.java index 3c79ebf630f2..8a8ff8be3abf 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExecuteToolResponse.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExecuteToolResponse.java @@ -357,6 +357,112 @@ public com.google.protobuf.StructOrBuilder getVariablesOrBuilder() { return variables_ == null ? com.google.protobuf.Struct.getDefaultInstance() : variables_; } + public static final int CITATIONS_FIELD_NUMBER = 5; + private com.google.cloud.ces.v1.Citations citations_; + + /** + * + * + *
                +   * Citations that provide the source information for the tool's execution.
                +   * 
                + * + * .google.cloud.ces.v1.Citations citations = 5; + * + * @return Whether the citations field is set. + */ + @java.lang.Override + public boolean hasCitations() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                +   * Citations that provide the source information for the tool's execution.
                +   * 
                + * + * .google.cloud.ces.v1.Citations citations = 5; + * + * @return The citations. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Citations getCitations() { + return citations_ == null ? com.google.cloud.ces.v1.Citations.getDefaultInstance() : citations_; + } + + /** + * + * + *
                +   * Citations that provide the source information for the tool's execution.
                +   * 
                + * + * .google.cloud.ces.v1.Citations citations = 5; + */ + @java.lang.Override + public com.google.cloud.ces.v1.CitationsOrBuilder getCitationsOrBuilder() { + return citations_ == null ? com.google.cloud.ces.v1.Citations.getDefaultInstance() : citations_; + } + + public static final int GOOGLE_SEARCH_SUGGESTIONS_FIELD_NUMBER = 6; + private com.google.cloud.ces.v1.GoogleSearchSuggestions googleSearchSuggestions_; + + /** + * + * + *
                +   * The suggestions returned from Google Search as a result of invoking the
                +   * Google Search Tool during the tool execution.
                +   * 
                + * + * .google.cloud.ces.v1.GoogleSearchSuggestions google_search_suggestions = 6; + * + * @return Whether the googleSearchSuggestions field is set. + */ + @java.lang.Override + public boolean hasGoogleSearchSuggestions() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
                +   * The suggestions returned from Google Search as a result of invoking the
                +   * Google Search Tool during the tool execution.
                +   * 
                + * + * .google.cloud.ces.v1.GoogleSearchSuggestions google_search_suggestions = 6; + * + * @return The googleSearchSuggestions. + */ + @java.lang.Override + public com.google.cloud.ces.v1.GoogleSearchSuggestions getGoogleSearchSuggestions() { + return googleSearchSuggestions_ == null + ? com.google.cloud.ces.v1.GoogleSearchSuggestions.getDefaultInstance() + : googleSearchSuggestions_; + } + + /** + * + * + *
                +   * The suggestions returned from Google Search as a result of invoking the
                +   * Google Search Tool during the tool execution.
                +   * 
                + * + * .google.cloud.ces.v1.GoogleSearchSuggestions google_search_suggestions = 6; + */ + @java.lang.Override + public com.google.cloud.ces.v1.GoogleSearchSuggestionsOrBuilder + getGoogleSearchSuggestionsOrBuilder() { + return googleSearchSuggestions_ == null + ? com.google.cloud.ces.v1.GoogleSearchSuggestions.getDefaultInstance() + : googleSearchSuggestions_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -383,6 +489,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(4, getVariables()); } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(5, getCitations()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(6, getGoogleSearchSuggestions()); + } getUnknownFields().writeTo(output); } @@ -406,6 +518,13 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getVariables()); } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCitations()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(6, getGoogleSearchSuggestions()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -430,6 +549,14 @@ public boolean equals(final java.lang.Object obj) { if (hasVariables()) { if (!getVariables().equals(other.getVariables())) return false; } + if (hasCitations() != other.hasCitations()) return false; + if (hasCitations()) { + if (!getCitations().equals(other.getCitations())) return false; + } + if (hasGoogleSearchSuggestions() != other.hasGoogleSearchSuggestions()) return false; + if (hasGoogleSearchSuggestions()) { + if (!getGoogleSearchSuggestions().equals(other.getGoogleSearchSuggestions())) return false; + } if (!getToolIdentifierCase().equals(other.getToolIdentifierCase())) return false; switch (toolIdentifierCase_) { case 1: @@ -460,6 +587,14 @@ public int hashCode() { hash = (37 * hash) + VARIABLES_FIELD_NUMBER; hash = (53 * hash) + getVariables().hashCode(); } + if (hasCitations()) { + hash = (37 * hash) + CITATIONS_FIELD_NUMBER; + hash = (53 * hash) + getCitations().hashCode(); + } + if (hasGoogleSearchSuggestions()) { + hash = (37 * hash) + GOOGLE_SEARCH_SUGGESTIONS_FIELD_NUMBER; + hash = (53 * hash) + getGoogleSearchSuggestions().hashCode(); + } switch (toolIdentifierCase_) { case 1: hash = (37 * hash) + TOOL_FIELD_NUMBER; @@ -616,6 +751,8 @@ private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { internalGetResponseFieldBuilder(); internalGetVariablesFieldBuilder(); + internalGetCitationsFieldBuilder(); + internalGetGoogleSearchSuggestionsFieldBuilder(); } } @@ -636,6 +773,16 @@ public Builder clear() { variablesBuilder_.dispose(); variablesBuilder_ = null; } + citations_ = null; + if (citationsBuilder_ != null) { + citationsBuilder_.dispose(); + citationsBuilder_ = null; + } + googleSearchSuggestions_ = null; + if (googleSearchSuggestionsBuilder_ != null) { + googleSearchSuggestionsBuilder_.dispose(); + googleSearchSuggestionsBuilder_ = null; + } toolIdentifierCase_ = 0; toolIdentifier_ = null; return this; @@ -684,6 +831,17 @@ private void buildPartial0(com.google.cloud.ces.v1.ExecuteToolResponse result) { result.variables_ = variablesBuilder_ == null ? variables_ : variablesBuilder_.build(); to_bitField0_ |= 0x00000002; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.citations_ = citationsBuilder_ == null ? citations_ : citationsBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.googleSearchSuggestions_ = + googleSearchSuggestionsBuilder_ == null + ? googleSearchSuggestions_ + : googleSearchSuggestionsBuilder_.build(); + to_bitField0_ |= 0x00000008; + } result.bitField0_ |= to_bitField0_; } @@ -713,6 +871,12 @@ public Builder mergeFrom(com.google.cloud.ces.v1.ExecuteToolResponse other) { if (other.hasVariables()) { mergeVariables(other.getVariables()); } + if (other.hasCitations()) { + mergeCitations(other.getCitations()); + } + if (other.hasGoogleSearchSuggestions()) { + mergeGoogleSearchSuggestions(other.getGoogleSearchSuggestions()); + } switch (other.getToolIdentifierCase()) { case TOOL: { @@ -785,6 +949,21 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 34 + case 42: + { + input.readMessage( + internalGetCitationsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage( + internalGetGoogleSearchSuggestionsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1587,6 +1766,409 @@ public com.google.protobuf.StructOrBuilder getVariablesOrBuilder() { return variablesBuilder_; } + private com.google.cloud.ces.v1.Citations citations_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Citations, + com.google.cloud.ces.v1.Citations.Builder, + com.google.cloud.ces.v1.CitationsOrBuilder> + citationsBuilder_; + + /** + * + * + *
                +     * Citations that provide the source information for the tool's execution.
                +     * 
                + * + * .google.cloud.ces.v1.Citations citations = 5; + * + * @return Whether the citations field is set. + */ + public boolean hasCitations() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
                +     * Citations that provide the source information for the tool's execution.
                +     * 
                + * + * .google.cloud.ces.v1.Citations citations = 5; + * + * @return The citations. + */ + public com.google.cloud.ces.v1.Citations getCitations() { + if (citationsBuilder_ == null) { + return citations_ == null + ? com.google.cloud.ces.v1.Citations.getDefaultInstance() + : citations_; + } else { + return citationsBuilder_.getMessage(); + } + } + + /** + * + * + *
                +     * Citations that provide the source information for the tool's execution.
                +     * 
                + * + * .google.cloud.ces.v1.Citations citations = 5; + */ + public Builder setCitations(com.google.cloud.ces.v1.Citations value) { + if (citationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + citations_ = value; + } else { + citationsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Citations that provide the source information for the tool's execution.
                +     * 
                + * + * .google.cloud.ces.v1.Citations citations = 5; + */ + public Builder setCitations(com.google.cloud.ces.v1.Citations.Builder builderForValue) { + if (citationsBuilder_ == null) { + citations_ = builderForValue.build(); + } else { + citationsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Citations that provide the source information for the tool's execution.
                +     * 
                + * + * .google.cloud.ces.v1.Citations citations = 5; + */ + public Builder mergeCitations(com.google.cloud.ces.v1.Citations value) { + if (citationsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && citations_ != null + && citations_ != com.google.cloud.ces.v1.Citations.getDefaultInstance()) { + getCitationsBuilder().mergeFrom(value); + } else { + citations_ = value; + } + } else { + citationsBuilder_.mergeFrom(value); + } + if (citations_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
                +     * Citations that provide the source information for the tool's execution.
                +     * 
                + * + * .google.cloud.ces.v1.Citations citations = 5; + */ + public Builder clearCitations() { + bitField0_ = (bitField0_ & ~0x00000010); + citations_ = null; + if (citationsBuilder_ != null) { + citationsBuilder_.dispose(); + citationsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                +     * Citations that provide the source information for the tool's execution.
                +     * 
                + * + * .google.cloud.ces.v1.Citations citations = 5; + */ + public com.google.cloud.ces.v1.Citations.Builder getCitationsBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetCitationsFieldBuilder().getBuilder(); + } + + /** + * + * + *
                +     * Citations that provide the source information for the tool's execution.
                +     * 
                + * + * .google.cloud.ces.v1.Citations citations = 5; + */ + public com.google.cloud.ces.v1.CitationsOrBuilder getCitationsOrBuilder() { + if (citationsBuilder_ != null) { + return citationsBuilder_.getMessageOrBuilder(); + } else { + return citations_ == null + ? com.google.cloud.ces.v1.Citations.getDefaultInstance() + : citations_; + } + } + + /** + * + * + *
                +     * Citations that provide the source information for the tool's execution.
                +     * 
                + * + * .google.cloud.ces.v1.Citations citations = 5; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Citations, + com.google.cloud.ces.v1.Citations.Builder, + com.google.cloud.ces.v1.CitationsOrBuilder> + internalGetCitationsFieldBuilder() { + if (citationsBuilder_ == null) { + citationsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Citations, + com.google.cloud.ces.v1.Citations.Builder, + com.google.cloud.ces.v1.CitationsOrBuilder>( + getCitations(), getParentForChildren(), isClean()); + citations_ = null; + } + return citationsBuilder_; + } + + private com.google.cloud.ces.v1.GoogleSearchSuggestions googleSearchSuggestions_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.GoogleSearchSuggestions, + com.google.cloud.ces.v1.GoogleSearchSuggestions.Builder, + com.google.cloud.ces.v1.GoogleSearchSuggestionsOrBuilder> + googleSearchSuggestionsBuilder_; + + /** + * + * + *
                +     * The suggestions returned from Google Search as a result of invoking the
                +     * Google Search Tool during the tool execution.
                +     * 
                + * + * .google.cloud.ces.v1.GoogleSearchSuggestions google_search_suggestions = 6; + * + * @return Whether the googleSearchSuggestions field is set. + */ + public boolean hasGoogleSearchSuggestions() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
                +     * The suggestions returned from Google Search as a result of invoking the
                +     * Google Search Tool during the tool execution.
                +     * 
                + * + * .google.cloud.ces.v1.GoogleSearchSuggestions google_search_suggestions = 6; + * + * @return The googleSearchSuggestions. + */ + public com.google.cloud.ces.v1.GoogleSearchSuggestions getGoogleSearchSuggestions() { + if (googleSearchSuggestionsBuilder_ == null) { + return googleSearchSuggestions_ == null + ? com.google.cloud.ces.v1.GoogleSearchSuggestions.getDefaultInstance() + : googleSearchSuggestions_; + } else { + return googleSearchSuggestionsBuilder_.getMessage(); + } + } + + /** + * + * + *
                +     * The suggestions returned from Google Search as a result of invoking the
                +     * Google Search Tool during the tool execution.
                +     * 
                + * + * .google.cloud.ces.v1.GoogleSearchSuggestions google_search_suggestions = 6; + */ + public Builder setGoogleSearchSuggestions( + com.google.cloud.ces.v1.GoogleSearchSuggestions value) { + if (googleSearchSuggestionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + googleSearchSuggestions_ = value; + } else { + googleSearchSuggestionsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                +     * The suggestions returned from Google Search as a result of invoking the
                +     * Google Search Tool during the tool execution.
                +     * 
                + * + * .google.cloud.ces.v1.GoogleSearchSuggestions google_search_suggestions = 6; + */ + public Builder setGoogleSearchSuggestions( + com.google.cloud.ces.v1.GoogleSearchSuggestions.Builder builderForValue) { + if (googleSearchSuggestionsBuilder_ == null) { + googleSearchSuggestions_ = builderForValue.build(); + } else { + googleSearchSuggestionsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                +     * The suggestions returned from Google Search as a result of invoking the
                +     * Google Search Tool during the tool execution.
                +     * 
                + * + * .google.cloud.ces.v1.GoogleSearchSuggestions google_search_suggestions = 6; + */ + public Builder mergeGoogleSearchSuggestions( + com.google.cloud.ces.v1.GoogleSearchSuggestions value) { + if (googleSearchSuggestionsBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && googleSearchSuggestions_ != null + && googleSearchSuggestions_ + != com.google.cloud.ces.v1.GoogleSearchSuggestions.getDefaultInstance()) { + getGoogleSearchSuggestionsBuilder().mergeFrom(value); + } else { + googleSearchSuggestions_ = value; + } + } else { + googleSearchSuggestionsBuilder_.mergeFrom(value); + } + if (googleSearchSuggestions_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
                +     * The suggestions returned from Google Search as a result of invoking the
                +     * Google Search Tool during the tool execution.
                +     * 
                + * + * .google.cloud.ces.v1.GoogleSearchSuggestions google_search_suggestions = 6; + */ + public Builder clearGoogleSearchSuggestions() { + bitField0_ = (bitField0_ & ~0x00000020); + googleSearchSuggestions_ = null; + if (googleSearchSuggestionsBuilder_ != null) { + googleSearchSuggestionsBuilder_.dispose(); + googleSearchSuggestionsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                +     * The suggestions returned from Google Search as a result of invoking the
                +     * Google Search Tool during the tool execution.
                +     * 
                + * + * .google.cloud.ces.v1.GoogleSearchSuggestions google_search_suggestions = 6; + */ + public com.google.cloud.ces.v1.GoogleSearchSuggestions.Builder + getGoogleSearchSuggestionsBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetGoogleSearchSuggestionsFieldBuilder().getBuilder(); + } + + /** + * + * + *
                +     * The suggestions returned from Google Search as a result of invoking the
                +     * Google Search Tool during the tool execution.
                +     * 
                + * + * .google.cloud.ces.v1.GoogleSearchSuggestions google_search_suggestions = 6; + */ + public com.google.cloud.ces.v1.GoogleSearchSuggestionsOrBuilder + getGoogleSearchSuggestionsOrBuilder() { + if (googleSearchSuggestionsBuilder_ != null) { + return googleSearchSuggestionsBuilder_.getMessageOrBuilder(); + } else { + return googleSearchSuggestions_ == null + ? com.google.cloud.ces.v1.GoogleSearchSuggestions.getDefaultInstance() + : googleSearchSuggestions_; + } + } + + /** + * + * + *
                +     * The suggestions returned from Google Search as a result of invoking the
                +     * Google Search Tool during the tool execution.
                +     * 
                + * + * .google.cloud.ces.v1.GoogleSearchSuggestions google_search_suggestions = 6; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.GoogleSearchSuggestions, + com.google.cloud.ces.v1.GoogleSearchSuggestions.Builder, + com.google.cloud.ces.v1.GoogleSearchSuggestionsOrBuilder> + internalGetGoogleSearchSuggestionsFieldBuilder() { + if (googleSearchSuggestionsBuilder_ == null) { + googleSearchSuggestionsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.GoogleSearchSuggestions, + com.google.cloud.ces.v1.GoogleSearchSuggestions.Builder, + com.google.cloud.ces.v1.GoogleSearchSuggestionsOrBuilder>( + getGoogleSearchSuggestions(), getParentForChildren(), isClean()); + googleSearchSuggestions_ = null; + } + return googleSearchSuggestionsBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.ExecuteToolResponse) } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExecuteToolResponseOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExecuteToolResponseOrBuilder.java index 69cea8c22ec8..160714e93d97 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExecuteToolResponseOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExecuteToolResponseOrBuilder.java @@ -188,5 +188,82 @@ public interface ExecuteToolResponseOrBuilder */ com.google.protobuf.StructOrBuilder getVariablesOrBuilder(); + /** + * + * + *
                +   * Citations that provide the source information for the tool's execution.
                +   * 
                + * + * .google.cloud.ces.v1.Citations citations = 5; + * + * @return Whether the citations field is set. + */ + boolean hasCitations(); + + /** + * + * + *
                +   * Citations that provide the source information for the tool's execution.
                +   * 
                + * + * .google.cloud.ces.v1.Citations citations = 5; + * + * @return The citations. + */ + com.google.cloud.ces.v1.Citations getCitations(); + + /** + * + * + *
                +   * Citations that provide the source information for the tool's execution.
                +   * 
                + * + * .google.cloud.ces.v1.Citations citations = 5; + */ + com.google.cloud.ces.v1.CitationsOrBuilder getCitationsOrBuilder(); + + /** + * + * + *
                +   * The suggestions returned from Google Search as a result of invoking the
                +   * Google Search Tool during the tool execution.
                +   * 
                + * + * .google.cloud.ces.v1.GoogleSearchSuggestions google_search_suggestions = 6; + * + * @return Whether the googleSearchSuggestions field is set. + */ + boolean hasGoogleSearchSuggestions(); + + /** + * + * + *
                +   * The suggestions returned from Google Search as a result of invoking the
                +   * Google Search Tool during the tool execution.
                +   * 
                + * + * .google.cloud.ces.v1.GoogleSearchSuggestions google_search_suggestions = 6; + * + * @return The googleSearchSuggestions. + */ + com.google.cloud.ces.v1.GoogleSearchSuggestions getGoogleSearchSuggestions(); + + /** + * + * + *
                +   * The suggestions returned from Google Search as a result of invoking the
                +   * Google Search Tool during the tool execution.
                +   * 
                + * + * .google.cloud.ces.v1.GoogleSearchSuggestions google_search_suggestions = 6; + */ + com.google.cloud.ces.v1.GoogleSearchSuggestionsOrBuilder getGoogleSearchSuggestionsOrBuilder(); + com.google.cloud.ces.v1.ExecuteToolResponse.ToolIdentifierCase getToolIdentifierCase(); } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExperimentConfig.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExperimentConfig.java new file mode 100644 index 000000000000..f114fbbea532 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExperimentConfig.java @@ -0,0 +1,3228 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language 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/v1/deployment.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
                + * Experiment for the deployment.
                + * 
                + * + * Protobuf type {@code google.cloud.ces.v1.ExperimentConfig} + */ +@com.google.protobuf.Generated +public final class ExperimentConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.ExperimentConfig) + ExperimentConfigOrBuilder { + 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= */ "", + "ExperimentConfig"); + } + + // Use ExperimentConfig.newBuilder() to construct. + private ExperimentConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ExperimentConfig() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.ChannelProfileProto + .internal_static_google_cloud_ces_v1_ExperimentConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.ChannelProfileProto + .internal_static_google_cloud_ces_v1_ExperimentConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ExperimentConfig.class, + com.google.cloud.ces.v1.ExperimentConfig.Builder.class); + } + + /** + * + * + *
                +   * State of the experiment.
                +   * 
                + * + * Protobuf enum {@code google.cloud.ces.v1.ExperimentConfig.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                +     * Unspecified state.
                +     * 
                + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
                +     * Deprecated: This state is no longer used.
                +     * 
                + * + * PENDING = 1; + */ + PENDING(1), + /** + * + * + *
                +     * Running state. Experiment is running and valid.
                +     * 
                + * + * RUNNING = 2; + */ + RUNNING(2), + /** + * + * + *
                +     * Deprecated: This state is no longer used.
                +     * 
                + * + * DONE = 3; + */ + DONE(3), + /** + * + * + *
                +     * Deprecated: This state is no longer used.
                +     * 
                + * + * EXPIRED = 4; + */ + EXPIRED(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
                +     * Unspecified state.
                +     * 
                + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                +     * Deprecated: This state is no longer used.
                +     * 
                + * + * PENDING = 1; + */ + public static final int PENDING_VALUE = 1; + + /** + * + * + *
                +     * Running state. Experiment is running and valid.
                +     * 
                + * + * RUNNING = 2; + */ + public static final int RUNNING_VALUE = 2; + + /** + * + * + *
                +     * Deprecated: This state is no longer used.
                +     * 
                + * + * DONE = 3; + */ + public static final int DONE_VALUE = 3; + + /** + * + * + *
                +     * Deprecated: This state is no longer used.
                +     * 
                + * + * EXPIRED = 4; + */ + public static final int EXPIRED_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return PENDING; + case 2: + return RUNNING; + case 3: + return DONE; + case 4: + return EXPIRED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.ces.v1.ExperimentConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1.ExperimentConfig.State) + } + + public interface VersionReleaseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.ExperimentConfig.VersionRelease) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                +     * Optional. State of the version release.
                +     * 
                + * + * + * .google.cloud.ces.v1.ExperimentConfig.State state = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
                +     * Optional. State of the version release.
                +     * 
                + * + * + * .google.cloud.ces.v1.ExperimentConfig.State state = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The state. + */ + com.google.cloud.ces.v1.ExperimentConfig.State getState(); + + /** + * + * + *
                +     * Optional. Traffic allocations for the version release.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation traffic_allocations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getTrafficAllocationsList(); + + /** + * + * + *
                +     * Optional. Traffic allocations for the version release.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation traffic_allocations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation getTrafficAllocations( + int index); + + /** + * + * + *
                +     * Optional. Traffic allocations for the version release.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation traffic_allocations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getTrafficAllocationsCount(); + + /** + * + * + *
                +     * Optional. Traffic allocations for the version release.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation traffic_allocations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends + com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocationOrBuilder> + getTrafficAllocationsOrBuilderList(); + + /** + * + * + *
                +     * Optional. Traffic allocations for the version release.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation traffic_allocations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocationOrBuilder + getTrafficAllocationsOrBuilder(int index); + } + + /** + * + * + *
                +   * Version release for the experiment.
                +   * 
                + * + * Protobuf type {@code google.cloud.ces.v1.ExperimentConfig.VersionRelease} + */ + public static final class VersionRelease extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.ExperimentConfig.VersionRelease) + VersionReleaseOrBuilder { + 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= */ "", + "VersionRelease"); + } + + // Use VersionRelease.newBuilder() to construct. + private VersionRelease(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private VersionRelease() { + state_ = 0; + trafficAllocations_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.ChannelProfileProto + .internal_static_google_cloud_ces_v1_ExperimentConfig_VersionRelease_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.ChannelProfileProto + .internal_static_google_cloud_ces_v1_ExperimentConfig_VersionRelease_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.class, + com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.Builder.class); + } + + public interface TrafficAllocationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                +       * Optional. Id of the traffic allocation.
                +       * Free format string, up to 128 characters.
                +       * 
                + * + * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The id. + */ + java.lang.String getId(); + + /** + * + * + *
                +       * Optional. Id of the traffic allocation.
                +       * Free format string, up to 128 characters.
                +       * 
                + * + * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for id. + */ + com.google.protobuf.ByteString getIdBytes(); + + /** + * + * + *
                +       * Optional. Traffic percentage of the traffic allocation.
                +       * Must be between 0 and 100.
                +       * 
                + * + * int32 traffic_percentage = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The trafficPercentage. + */ + int getTrafficPercentage(); + + /** + * + * + *
                +       * Optional. App version of the traffic allocation.
                +       * Format:
                +       * `projects/{project}/locations/{location}/apps/{app}/versions/{version}`
                +       * 
                + * + * + * string app_version = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The appVersion. + */ + java.lang.String getAppVersion(); + + /** + * + * + *
                +       * Optional. App version of the traffic allocation.
                +       * Format:
                +       * `projects/{project}/locations/{location}/apps/{app}/versions/{version}`
                +       * 
                + * + * + * string app_version = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for appVersion. + */ + com.google.protobuf.ByteString getAppVersionBytes(); + } + + /** + * + * + *
                +     * Traffic allocation for the version release.
                +     * 
                + * + * Protobuf type {@code google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation} + */ + public static final class TrafficAllocation extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation) + TrafficAllocationOrBuilder { + 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= */ "", + "TrafficAllocation"); + } + + // Use TrafficAllocation.newBuilder() to construct. + private TrafficAllocation(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private TrafficAllocation() { + id_ = ""; + appVersion_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.ChannelProfileProto + .internal_static_google_cloud_ces_v1_ExperimentConfig_VersionRelease_TrafficAllocation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.ChannelProfileProto + .internal_static_google_cloud_ces_v1_ExperimentConfig_VersionRelease_TrafficAllocation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation.class, + com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation.Builder + .class); + } + + public static final int ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + + /** + * + * + *
                +       * Optional. Id of the traffic allocation.
                +       * Free format string, up to 128 characters.
                +       * 
                + * + * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + + /** + * + * + *
                +       * Optional. Id of the traffic allocation.
                +       * Free format string, up to 128 characters.
                +       * 
                + * + * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TRAFFIC_PERCENTAGE_FIELD_NUMBER = 2; + private int trafficPercentage_ = 0; + + /** + * + * + *
                +       * Optional. Traffic percentage of the traffic allocation.
                +       * Must be between 0 and 100.
                +       * 
                + * + * int32 traffic_percentage = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The trafficPercentage. + */ + @java.lang.Override + public int getTrafficPercentage() { + return trafficPercentage_; + } + + public static final int APP_VERSION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object appVersion_ = ""; + + /** + * + * + *
                +       * Optional. App version of the traffic allocation.
                +       * Format:
                +       * `projects/{project}/locations/{location}/apps/{app}/versions/{version}`
                +       * 
                + * + * + * string app_version = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The appVersion. + */ + @java.lang.Override + public java.lang.String getAppVersion() { + java.lang.Object ref = appVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + appVersion_ = s; + return s; + } + } + + /** + * + * + *
                +       * Optional. App version of the traffic allocation.
                +       * Format:
                +       * `projects/{project}/locations/{location}/apps/{app}/versions/{version}`
                +       * 
                + * + * + * string app_version = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for appVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAppVersionBytes() { + java.lang.Object ref = appVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + appVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, id_); + } + if (trafficPercentage_ != 0) { + output.writeInt32(2, trafficPercentage_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(appVersion_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, appVersion_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_); + } + if (trafficPercentage_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, trafficPercentage_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(appVersion_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, appVersion_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.v1.ExperimentConfig.VersionRelease.TrafficAllocation)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation other = + (com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation) obj; + + if (!getId().equals(other.getId())) return false; + if (getTrafficPercentage() != other.getTrafficPercentage()) return false; + if (!getAppVersion().equals(other.getAppVersion())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + TRAFFIC_PERCENTAGE_FIELD_NUMBER; + hash = (53 * hash) + getTrafficPercentage(); + hash = (37 * hash) + APP_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getAppVersion().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation + parseFrom( + 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.v1.ExperimentConfig.VersionRelease.TrafficAllocation + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation + parseFrom( + com.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.v1.ExperimentConfig.VersionRelease.TrafficAllocation + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation + parseFrom( + java.io.InputStream 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.v1.ExperimentConfig.VersionRelease.TrafficAllocation + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation + parseDelimitedFrom( + java.io.InputStream 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.v1.ExperimentConfig.VersionRelease.TrafficAllocation + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, 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.v1.ExperimentConfig.VersionRelease.TrafficAllocation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                +       * Traffic allocation for the version release.
                +       * 
                + * + * Protobuf type {@code google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation) + com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.ChannelProfileProto + .internal_static_google_cloud_ces_v1_ExperimentConfig_VersionRelease_TrafficAllocation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.ChannelProfileProto + .internal_static_google_cloud_ces_v1_ExperimentConfig_VersionRelease_TrafficAllocation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation.class, + com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation.Builder + .class); + } + + // Construct using + // com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + trafficPercentage_ = 0; + appVersion_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.ChannelProfileProto + .internal_static_google_cloud_ces_v1_ExperimentConfig_VersionRelease_TrafficAllocation_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation + getDefaultInstanceForType() { + return com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation build() { + com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation + buildPartial() { + com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation result = + new com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.trafficPercentage_ = trafficPercentage_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.appVersion_ = appVersion_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation) { + return mergeFrom( + (com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation other) { + if (other + == com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation + .getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getTrafficPercentage() != 0) { + setTrafficPercentage(other.getTrafficPercentage()); + } + if (!other.getAppVersion().isEmpty()) { + appVersion_ = other.appVersion_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + trafficPercentage_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + appVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object id_ = ""; + + /** + * + * + *
                +         * Optional. Id of the traffic allocation.
                +         * Free format string, up to 128 characters.
                +         * 
                + * + * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                +         * Optional. Id of the traffic allocation.
                +         * Free format string, up to 128 characters.
                +         * 
                + * + * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for id. + */ + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                +         * Optional. Id of the traffic allocation.
                +         * Free format string, up to 128 characters.
                +         * 
                + * + * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                +         * Optional. Id of the traffic allocation.
                +         * Free format string, up to 128 characters.
                +         * 
                + * + * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                +         * Optional. Id of the traffic allocation.
                +         * Free format string, up to 128 characters.
                +         * 
                + * + * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int trafficPercentage_; + + /** + * + * + *
                +         * Optional. Traffic percentage of the traffic allocation.
                +         * Must be between 0 and 100.
                +         * 
                + * + * int32 traffic_percentage = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The trafficPercentage. + */ + @java.lang.Override + public int getTrafficPercentage() { + return trafficPercentage_; + } + + /** + * + * + *
                +         * Optional. Traffic percentage of the traffic allocation.
                +         * Must be between 0 and 100.
                +         * 
                + * + * int32 traffic_percentage = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The trafficPercentage to set. + * @return This builder for chaining. + */ + public Builder setTrafficPercentage(int value) { + + trafficPercentage_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                +         * Optional. Traffic percentage of the traffic allocation.
                +         * Must be between 0 and 100.
                +         * 
                + * + * int32 traffic_percentage = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearTrafficPercentage() { + bitField0_ = (bitField0_ & ~0x00000002); + trafficPercentage_ = 0; + onChanged(); + return this; + } + + private java.lang.Object appVersion_ = ""; + + /** + * + * + *
                +         * Optional. App version of the traffic allocation.
                +         * Format:
                +         * `projects/{project}/locations/{location}/apps/{app}/versions/{version}`
                +         * 
                + * + * + * string app_version = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The appVersion. + */ + public java.lang.String getAppVersion() { + java.lang.Object ref = appVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + appVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                +         * Optional. App version of the traffic allocation.
                +         * Format:
                +         * `projects/{project}/locations/{location}/apps/{app}/versions/{version}`
                +         * 
                + * + * + * string app_version = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for appVersion. + */ + public com.google.protobuf.ByteString getAppVersionBytes() { + java.lang.Object ref = appVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + appVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                +         * Optional. App version of the traffic allocation.
                +         * Format:
                +         * `projects/{project}/locations/{location}/apps/{app}/versions/{version}`
                +         * 
                + * + * + * string app_version = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The appVersion to set. + * @return This builder for chaining. + */ + public Builder setAppVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + appVersion_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                +         * Optional. App version of the traffic allocation.
                +         * Format:
                +         * `projects/{project}/locations/{location}/apps/{app}/versions/{version}`
                +         * 
                + * + * + * string app_version = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearAppVersion() { + appVersion_ = getDefaultInstance().getAppVersion(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                +         * Optional. App version of the traffic allocation.
                +         * Format:
                +         * `projects/{project}/locations/{location}/apps/{app}/versions/{version}`
                +         * 
                + * + * + * string app_version = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for appVersion to set. + * @return This builder for chaining. + */ + public Builder setAppVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + appVersion_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation) + private static final com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation(); + } + + public static com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrafficAllocation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.v1.ExperimentConfig.VersionRelease.TrafficAllocation + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int STATE_FIELD_NUMBER = 1; + private int state_ = 0; + + /** + * + * + *
                +     * Optional. State of the version release.
                +     * 
                + * + * + * .google.cloud.ces.v1.ExperimentConfig.State state = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
                +     * Optional. State of the version release.
                +     * 
                + * + * + * .google.cloud.ces.v1.ExperimentConfig.State state = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ExperimentConfig.State getState() { + com.google.cloud.ces.v1.ExperimentConfig.State result = + com.google.cloud.ces.v1.ExperimentConfig.State.forNumber(state_); + return result == null ? com.google.cloud.ces.v1.ExperimentConfig.State.UNRECOGNIZED : result; + } + + public static final int TRAFFIC_ALLOCATIONS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation> + trafficAllocations_; + + /** + * + * + *
                +     * Optional. Traffic allocations for the version release.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation traffic_allocations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getTrafficAllocationsList() { + return trafficAllocations_; + } + + /** + * + * + *
                +     * Optional. Traffic allocations for the version release.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation traffic_allocations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocationOrBuilder> + getTrafficAllocationsOrBuilderList() { + return trafficAllocations_; + } + + /** + * + * + *
                +     * Optional. Traffic allocations for the version release.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation traffic_allocations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getTrafficAllocationsCount() { + return trafficAllocations_.size(); + } + + /** + * + * + *
                +     * Optional. Traffic allocations for the version release.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation traffic_allocations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation + getTrafficAllocations(int index) { + return trafficAllocations_.get(index); + } + + /** + * + * + *
                +     * Optional. Traffic allocations for the version release.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation traffic_allocations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocationOrBuilder + getTrafficAllocationsOrBuilder(int index) { + return trafficAllocations_.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 (state_ != com.google.cloud.ces.v1.ExperimentConfig.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(1, state_); + } + for (int i = 0; i < trafficAllocations_.size(); i++) { + output.writeMessage(2, trafficAllocations_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (state_ != com.google.cloud.ces.v1.ExperimentConfig.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); + } + for (int i = 0; i < trafficAllocations_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, trafficAllocations_.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.ces.v1.ExperimentConfig.VersionRelease)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.ExperimentConfig.VersionRelease other = + (com.google.cloud.ces.v1.ExperimentConfig.VersionRelease) obj; + + if (state_ != other.state_) return false; + if (!getTrafficAllocationsList().equals(other.getTrafficAllocationsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + if (getTrafficAllocationsCount() > 0) { + hash = (37 * hash) + TRAFFIC_ALLOCATIONS_FIELD_NUMBER; + hash = (53 * hash) + getTrafficAllocationsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.ExperimentConfig.VersionRelease parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ExperimentConfig.VersionRelease parseFrom( + 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.v1.ExperimentConfig.VersionRelease parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ExperimentConfig.VersionRelease parseFrom( + com.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.v1.ExperimentConfig.VersionRelease parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ExperimentConfig.VersionRelease parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ExperimentConfig.VersionRelease parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ExperimentConfig.VersionRelease parseFrom( + java.io.InputStream 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.v1.ExperimentConfig.VersionRelease parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ExperimentConfig.VersionRelease parseDelimitedFrom( + java.io.InputStream 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.v1.ExperimentConfig.VersionRelease parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ExperimentConfig.VersionRelease parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, 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.v1.ExperimentConfig.VersionRelease prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                +     * Version release for the experiment.
                +     * 
                + * + * Protobuf type {@code google.cloud.ces.v1.ExperimentConfig.VersionRelease} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.ExperimentConfig.VersionRelease) + com.google.cloud.ces.v1.ExperimentConfig.VersionReleaseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.ChannelProfileProto + .internal_static_google_cloud_ces_v1_ExperimentConfig_VersionRelease_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.ChannelProfileProto + .internal_static_google_cloud_ces_v1_ExperimentConfig_VersionRelease_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.class, + com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + state_ = 0; + if (trafficAllocationsBuilder_ == null) { + trafficAllocations_ = java.util.Collections.emptyList(); + } else { + trafficAllocations_ = null; + trafficAllocationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.ChannelProfileProto + .internal_static_google_cloud_ces_v1_ExperimentConfig_VersionRelease_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ExperimentConfig.VersionRelease getDefaultInstanceForType() { + return com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.ExperimentConfig.VersionRelease build() { + com.google.cloud.ces.v1.ExperimentConfig.VersionRelease result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ExperimentConfig.VersionRelease buildPartial() { + com.google.cloud.ces.v1.ExperimentConfig.VersionRelease result = + new com.google.cloud.ces.v1.ExperimentConfig.VersionRelease(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.ces.v1.ExperimentConfig.VersionRelease result) { + if (trafficAllocationsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + trafficAllocations_ = java.util.Collections.unmodifiableList(trafficAllocations_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.trafficAllocations_ = trafficAllocations_; + } else { + result.trafficAllocations_ = trafficAllocationsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.ces.v1.ExperimentConfig.VersionRelease result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.state_ = state_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.ExperimentConfig.VersionRelease) { + return mergeFrom((com.google.cloud.ces.v1.ExperimentConfig.VersionRelease) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.ExperimentConfig.VersionRelease other) { + if (other == com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.getDefaultInstance()) + return this; + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (trafficAllocationsBuilder_ == null) { + if (!other.trafficAllocations_.isEmpty()) { + if (trafficAllocations_.isEmpty()) { + trafficAllocations_ = other.trafficAllocations_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureTrafficAllocationsIsMutable(); + trafficAllocations_.addAll(other.trafficAllocations_); + } + onChanged(); + } + } else { + if (!other.trafficAllocations_.isEmpty()) { + if (trafficAllocationsBuilder_.isEmpty()) { + trafficAllocationsBuilder_.dispose(); + trafficAllocationsBuilder_ = null; + trafficAllocations_ = other.trafficAllocations_; + bitField0_ = (bitField0_ & ~0x00000002); + trafficAllocationsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetTrafficAllocationsFieldBuilder() + : null; + } else { + trafficAllocationsBuilder_.addAllMessages(other.trafficAllocations_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation m = + input.readMessage( + com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation + .parser(), + extensionRegistry); + if (trafficAllocationsBuilder_ == null) { + ensureTrafficAllocationsIsMutable(); + trafficAllocations_.add(m); + } else { + trafficAllocationsBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int state_ = 0; + + /** + * + * + *
                +       * Optional. State of the version release.
                +       * 
                + * + * + * .google.cloud.ces.v1.ExperimentConfig.State state = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
                +       * Optional. State of the version release.
                +       * 
                + * + * + * .google.cloud.ces.v1.ExperimentConfig.State state = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                +       * Optional. State of the version release.
                +       * 
                + * + * + * .google.cloud.ces.v1.ExperimentConfig.State state = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ExperimentConfig.State getState() { + com.google.cloud.ces.v1.ExperimentConfig.State result = + com.google.cloud.ces.v1.ExperimentConfig.State.forNumber(state_); + return result == null + ? com.google.cloud.ces.v1.ExperimentConfig.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
                +       * Optional. State of the version release.
                +       * 
                + * + * + * .google.cloud.ces.v1.ExperimentConfig.State state = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.ces.v1.ExperimentConfig.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                +       * Optional. State of the version release.
                +       * 
                + * + * + * .google.cloud.ces.v1.ExperimentConfig.State state = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000001); + state_ = 0; + onChanged(); + return this; + } + + private java.util.List< + com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation> + trafficAllocations_ = java.util.Collections.emptyList(); + + private void ensureTrafficAllocationsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + trafficAllocations_ = + new java.util.ArrayList< + com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation>( + trafficAllocations_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation, + com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation.Builder, + com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocationOrBuilder> + trafficAllocationsBuilder_; + + /** + * + * + *
                +       * Optional. Traffic allocations for the version release.
                +       * 
                + * + * + * repeated .google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation traffic_allocations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation> + getTrafficAllocationsList() { + if (trafficAllocationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(trafficAllocations_); + } else { + return trafficAllocationsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                +       * Optional. Traffic allocations for the version release.
                +       * 
                + * + * + * repeated .google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation traffic_allocations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getTrafficAllocationsCount() { + if (trafficAllocationsBuilder_ == null) { + return trafficAllocations_.size(); + } else { + return trafficAllocationsBuilder_.getCount(); + } + } + + /** + * + * + *
                +       * Optional. Traffic allocations for the version release.
                +       * 
                + * + * + * repeated .google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation traffic_allocations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation + getTrafficAllocations(int index) { + if (trafficAllocationsBuilder_ == null) { + return trafficAllocations_.get(index); + } else { + return trafficAllocationsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                +       * Optional. Traffic allocations for the version release.
                +       * 
                + * + * + * repeated .google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation traffic_allocations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTrafficAllocations( + int index, + com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation value) { + if (trafficAllocationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTrafficAllocationsIsMutable(); + trafficAllocations_.set(index, value); + onChanged(); + } else { + trafficAllocationsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                +       * Optional. Traffic allocations for the version release.
                +       * 
                + * + * + * repeated .google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation traffic_allocations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTrafficAllocations( + int index, + com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation.Builder + builderForValue) { + if (trafficAllocationsBuilder_ == null) { + ensureTrafficAllocationsIsMutable(); + trafficAllocations_.set(index, builderForValue.build()); + onChanged(); + } else { + trafficAllocationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                +       * Optional. Traffic allocations for the version release.
                +       * 
                + * + * + * repeated .google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation traffic_allocations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addTrafficAllocations( + com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation value) { + if (trafficAllocationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTrafficAllocationsIsMutable(); + trafficAllocations_.add(value); + onChanged(); + } else { + trafficAllocationsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                +       * Optional. Traffic allocations for the version release.
                +       * 
                + * + * + * repeated .google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation traffic_allocations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addTrafficAllocations( + int index, + com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation value) { + if (trafficAllocationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTrafficAllocationsIsMutable(); + trafficAllocations_.add(index, value); + onChanged(); + } else { + trafficAllocationsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                +       * Optional. Traffic allocations for the version release.
                +       * 
                + * + * + * repeated .google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation traffic_allocations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addTrafficAllocations( + com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation.Builder + builderForValue) { + if (trafficAllocationsBuilder_ == null) { + ensureTrafficAllocationsIsMutable(); + trafficAllocations_.add(builderForValue.build()); + onChanged(); + } else { + trafficAllocationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                +       * Optional. Traffic allocations for the version release.
                +       * 
                + * + * + * repeated .google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation traffic_allocations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addTrafficAllocations( + int index, + com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation.Builder + builderForValue) { + if (trafficAllocationsBuilder_ == null) { + ensureTrafficAllocationsIsMutable(); + trafficAllocations_.add(index, builderForValue.build()); + onChanged(); + } else { + trafficAllocationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                +       * Optional. Traffic allocations for the version release.
                +       * 
                + * + * + * repeated .google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation traffic_allocations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllTrafficAllocations( + java.lang.Iterable< + ? extends + com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation> + values) { + if (trafficAllocationsBuilder_ == null) { + ensureTrafficAllocationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, trafficAllocations_); + onChanged(); + } else { + trafficAllocationsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                +       * Optional. Traffic allocations for the version release.
                +       * 
                + * + * + * repeated .google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation traffic_allocations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearTrafficAllocations() { + if (trafficAllocationsBuilder_ == null) { + trafficAllocations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + trafficAllocationsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                +       * Optional. Traffic allocations for the version release.
                +       * 
                + * + * + * repeated .google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation traffic_allocations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeTrafficAllocations(int index) { + if (trafficAllocationsBuilder_ == null) { + ensureTrafficAllocationsIsMutable(); + trafficAllocations_.remove(index); + onChanged(); + } else { + trafficAllocationsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                +       * Optional. Traffic allocations for the version release.
                +       * 
                + * + * + * repeated .google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation traffic_allocations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation.Builder + getTrafficAllocationsBuilder(int index) { + return internalGetTrafficAllocationsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                +       * Optional. Traffic allocations for the version release.
                +       * 
                + * + * + * repeated .google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation traffic_allocations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocationOrBuilder + getTrafficAllocationsOrBuilder(int index) { + if (trafficAllocationsBuilder_ == null) { + return trafficAllocations_.get(index); + } else { + return trafficAllocationsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                +       * Optional. Traffic allocations for the version release.
                +       * 
                + * + * + * repeated .google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation traffic_allocations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends + com.google.cloud.ces.v1.ExperimentConfig.VersionRelease + .TrafficAllocationOrBuilder> + getTrafficAllocationsOrBuilderList() { + if (trafficAllocationsBuilder_ != null) { + return trafficAllocationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(trafficAllocations_); + } + } + + /** + * + * + *
                +       * Optional. Traffic allocations for the version release.
                +       * 
                + * + * + * repeated .google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation traffic_allocations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation.Builder + addTrafficAllocationsBuilder() { + return internalGetTrafficAllocationsFieldBuilder() + .addBuilder( + com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation + .getDefaultInstance()); + } + + /** + * + * + *
                +       * Optional. Traffic allocations for the version release.
                +       * 
                + * + * + * repeated .google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation traffic_allocations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation.Builder + addTrafficAllocationsBuilder(int index) { + return internalGetTrafficAllocationsFieldBuilder() + .addBuilder( + index, + com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation + .getDefaultInstance()); + } + + /** + * + * + *
                +       * Optional. Traffic allocations for the version release.
                +       * 
                + * + * + * repeated .google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation traffic_allocations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation.Builder> + getTrafficAllocationsBuilderList() { + return internalGetTrafficAllocationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation, + com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation.Builder, + com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocationOrBuilder> + internalGetTrafficAllocationsFieldBuilder() { + if (trafficAllocationsBuilder_ == null) { + trafficAllocationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation, + com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation.Builder, + com.google.cloud.ces.v1.ExperimentConfig.VersionRelease + .TrafficAllocationOrBuilder>( + trafficAllocations_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + trafficAllocations_ = null; + } + return trafficAllocationsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.ExperimentConfig.VersionRelease) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.ExperimentConfig.VersionRelease) + private static final com.google.cloud.ces.v1.ExperimentConfig.VersionRelease DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.ExperimentConfig.VersionRelease(); + } + + public static com.google.cloud.ces.v1.ExperimentConfig.VersionRelease getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VersionRelease parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.v1.ExperimentConfig.VersionRelease getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int VERSION_RELEASE_FIELD_NUMBER = 1; + private com.google.cloud.ces.v1.ExperimentConfig.VersionRelease versionRelease_; + + /** + * + * + *
                +   * Optional. Version release for the experiment.
                +   * 
                + * + * + * .google.cloud.ces.v1.ExperimentConfig.VersionRelease version_release = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the versionRelease field is set. + */ + @java.lang.Override + public boolean hasVersionRelease() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                +   * Optional. Version release for the experiment.
                +   * 
                + * + * + * .google.cloud.ces.v1.ExperimentConfig.VersionRelease version_release = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The versionRelease. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ExperimentConfig.VersionRelease getVersionRelease() { + return versionRelease_ == null + ? com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.getDefaultInstance() + : versionRelease_; + } + + /** + * + * + *
                +   * Optional. Version release for the experiment.
                +   * 
                + * + * + * .google.cloud.ces.v1.ExperimentConfig.VersionRelease version_release = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ExperimentConfig.VersionReleaseOrBuilder + getVersionReleaseOrBuilder() { + return versionRelease_ == null + ? com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.getDefaultInstance() + : versionRelease_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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, getVersionRelease()); + } + 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, getVersionRelease()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.v1.ExperimentConfig)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.ExperimentConfig other = (com.google.cloud.ces.v1.ExperimentConfig) obj; + + if (hasVersionRelease() != other.hasVersionRelease()) return false; + if (hasVersionRelease()) { + if (!getVersionRelease().equals(other.getVersionRelease())) return false; + } + if (!getUnknownFields().equals(other.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 (hasVersionRelease()) { + hash = (37 * hash) + VERSION_RELEASE_FIELD_NUMBER; + hash = (53 * hash) + getVersionRelease().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.ExperimentConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ExperimentConfig parseFrom( + 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.v1.ExperimentConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ExperimentConfig parseFrom( + com.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.v1.ExperimentConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ExperimentConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ExperimentConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ExperimentConfig parseFrom( + java.io.InputStream 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.v1.ExperimentConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ExperimentConfig parseDelimitedFrom( + java.io.InputStream 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.v1.ExperimentConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ExperimentConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, 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.v1.ExperimentConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                +   * Experiment for the deployment.
                +   * 
                + * + * Protobuf type {@code google.cloud.ces.v1.ExperimentConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.ExperimentConfig) + com.google.cloud.ces.v1.ExperimentConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.ChannelProfileProto + .internal_static_google_cloud_ces_v1_ExperimentConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.ChannelProfileProto + .internal_static_google_cloud_ces_v1_ExperimentConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ExperimentConfig.class, + com.google.cloud.ces.v1.ExperimentConfig.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.ExperimentConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetVersionReleaseFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + versionRelease_ = null; + if (versionReleaseBuilder_ != null) { + versionReleaseBuilder_.dispose(); + versionReleaseBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.ChannelProfileProto + .internal_static_google_cloud_ces_v1_ExperimentConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ExperimentConfig getDefaultInstanceForType() { + return com.google.cloud.ces.v1.ExperimentConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.ExperimentConfig build() { + com.google.cloud.ces.v1.ExperimentConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ExperimentConfig buildPartial() { + com.google.cloud.ces.v1.ExperimentConfig result = + new com.google.cloud.ces.v1.ExperimentConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.ExperimentConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.versionRelease_ = + versionReleaseBuilder_ == null ? versionRelease_ : versionReleaseBuilder_.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.ces.v1.ExperimentConfig) { + return mergeFrom((com.google.cloud.ces.v1.ExperimentConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.ExperimentConfig other) { + if (other == com.google.cloud.ces.v1.ExperimentConfig.getDefaultInstance()) return this; + if (other.hasVersionRelease()) { + mergeVersionRelease(other.getVersionRelease()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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( + internalGetVersionReleaseFieldBuilder().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.ces.v1.ExperimentConfig.VersionRelease versionRelease_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ExperimentConfig.VersionRelease, + com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.Builder, + com.google.cloud.ces.v1.ExperimentConfig.VersionReleaseOrBuilder> + versionReleaseBuilder_; + + /** + * + * + *
                +     * Optional. Version release for the experiment.
                +     * 
                + * + * + * .google.cloud.ces.v1.ExperimentConfig.VersionRelease version_release = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the versionRelease field is set. + */ + public boolean hasVersionRelease() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                +     * Optional. Version release for the experiment.
                +     * 
                + * + * + * .google.cloud.ces.v1.ExperimentConfig.VersionRelease version_release = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The versionRelease. + */ + public com.google.cloud.ces.v1.ExperimentConfig.VersionRelease getVersionRelease() { + if (versionReleaseBuilder_ == null) { + return versionRelease_ == null + ? com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.getDefaultInstance() + : versionRelease_; + } else { + return versionReleaseBuilder_.getMessage(); + } + } + + /** + * + * + *
                +     * Optional. Version release for the experiment.
                +     * 
                + * + * + * .google.cloud.ces.v1.ExperimentConfig.VersionRelease version_release = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setVersionRelease( + com.google.cloud.ces.v1.ExperimentConfig.VersionRelease value) { + if (versionReleaseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + versionRelease_ = value; + } else { + versionReleaseBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. Version release for the experiment.
                +     * 
                + * + * + * .google.cloud.ces.v1.ExperimentConfig.VersionRelease version_release = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setVersionRelease( + com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.Builder builderForValue) { + if (versionReleaseBuilder_ == null) { + versionRelease_ = builderForValue.build(); + } else { + versionReleaseBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. Version release for the experiment.
                +     * 
                + * + * + * .google.cloud.ces.v1.ExperimentConfig.VersionRelease version_release = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeVersionRelease( + com.google.cloud.ces.v1.ExperimentConfig.VersionRelease value) { + if (versionReleaseBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && versionRelease_ != null + && versionRelease_ + != com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.getDefaultInstance()) { + getVersionReleaseBuilder().mergeFrom(value); + } else { + versionRelease_ = value; + } + } else { + versionReleaseBuilder_.mergeFrom(value); + } + if (versionRelease_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
                +     * Optional. Version release for the experiment.
                +     * 
                + * + * + * .google.cloud.ces.v1.ExperimentConfig.VersionRelease version_release = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearVersionRelease() { + bitField0_ = (bitField0_ & ~0x00000001); + versionRelease_ = null; + if (versionReleaseBuilder_ != null) { + versionReleaseBuilder_.dispose(); + versionReleaseBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. Version release for the experiment.
                +     * 
                + * + * + * .google.cloud.ces.v1.ExperimentConfig.VersionRelease version_release = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.Builder + getVersionReleaseBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetVersionReleaseFieldBuilder().getBuilder(); + } + + /** + * + * + *
                +     * Optional. Version release for the experiment.
                +     * 
                + * + * + * .google.cloud.ces.v1.ExperimentConfig.VersionRelease version_release = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ExperimentConfig.VersionReleaseOrBuilder + getVersionReleaseOrBuilder() { + if (versionReleaseBuilder_ != null) { + return versionReleaseBuilder_.getMessageOrBuilder(); + } else { + return versionRelease_ == null + ? com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.getDefaultInstance() + : versionRelease_; + } + } + + /** + * + * + *
                +     * Optional. Version release for the experiment.
                +     * 
                + * + * + * .google.cloud.ces.v1.ExperimentConfig.VersionRelease version_release = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ExperimentConfig.VersionRelease, + com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.Builder, + com.google.cloud.ces.v1.ExperimentConfig.VersionReleaseOrBuilder> + internalGetVersionReleaseFieldBuilder() { + if (versionReleaseBuilder_ == null) { + versionReleaseBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ExperimentConfig.VersionRelease, + com.google.cloud.ces.v1.ExperimentConfig.VersionRelease.Builder, + com.google.cloud.ces.v1.ExperimentConfig.VersionReleaseOrBuilder>( + getVersionRelease(), getParentForChildren(), isClean()); + versionRelease_ = null; + } + return versionReleaseBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.ExperimentConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.ExperimentConfig) + private static final com.google.cloud.ces.v1.ExperimentConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.ExperimentConfig(); + } + + public static com.google.cloud.ces.v1.ExperimentConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExperimentConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.v1.ExperimentConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExperimentConfigOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExperimentConfigOrBuilder.java new file mode 100644 index 000000000000..6060103ed7a9 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExperimentConfigOrBuilder.java @@ -0,0 +1,71 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/deployment.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface ExperimentConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.ExperimentConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                +   * Optional. Version release for the experiment.
                +   * 
                + * + * + * .google.cloud.ces.v1.ExperimentConfig.VersionRelease version_release = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the versionRelease field is set. + */ + boolean hasVersionRelease(); + + /** + * + * + *
                +   * Optional. Version release for the experiment.
                +   * 
                + * + * + * .google.cloud.ces.v1.ExperimentConfig.VersionRelease version_release = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The versionRelease. + */ + com.google.cloud.ces.v1.ExperimentConfig.VersionRelease getVersionRelease(); + + /** + * + * + *
                +   * Optional. Version release for the experiment.
                +   * 
                + * + * + * .google.cloud.ces.v1.ExperimentConfig.VersionRelease version_release = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.ExperimentConfig.VersionReleaseOrBuilder getVersionReleaseOrBuilder(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/InstagramCredentials.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/InstagramCredentials.java new file mode 100644 index 000000000000..8a6cebb1cad8 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/InstagramCredentials.java @@ -0,0 +1,784 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language 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/v1/deployment.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
                + * Ephemeral Meta credentials for Instagram native integration.
                + * 
                + * + * Protobuf type {@code google.cloud.ces.v1.InstagramCredentials} + */ +@com.google.protobuf.Generated +public final class InstagramCredentials extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.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.v1.ChannelProfileProto + .internal_static_google_cloud_ces_v1_InstagramCredentials_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.ChannelProfileProto + .internal_static_google_cloud_ces_v1_InstagramCredentials_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.InstagramCredentials.class, + com.google.cloud.ces.v1.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.v1.InstagramCredentials)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.InstagramCredentials other = + (com.google.cloud.ces.v1.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.v1.InstagramCredentials parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.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.v1.InstagramCredentials parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.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.v1.InstagramCredentials parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.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.v1.InstagramCredentials parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.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.v1.InstagramCredentials parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.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.v1.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.v1.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.v1.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.v1.InstagramCredentials} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.InstagramCredentials) + com.google.cloud.ces.v1.InstagramCredentialsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.ChannelProfileProto + .internal_static_google_cloud_ces_v1_InstagramCredentials_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.ChannelProfileProto + .internal_static_google_cloud_ces_v1_InstagramCredentials_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.InstagramCredentials.class, + com.google.cloud.ces.v1.InstagramCredentials.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.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.v1.ChannelProfileProto + .internal_static_google_cloud_ces_v1_InstagramCredentials_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.InstagramCredentials getDefaultInstanceForType() { + return com.google.cloud.ces.v1.InstagramCredentials.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.InstagramCredentials build() { + com.google.cloud.ces.v1.InstagramCredentials result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.InstagramCredentials buildPartial() { + com.google.cloud.ces.v1.InstagramCredentials result = + new com.google.cloud.ces.v1.InstagramCredentials(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.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.v1.InstagramCredentials) { + return mergeFrom((com.google.cloud.ces.v1.InstagramCredentials) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.InstagramCredentials other) { + if (other == com.google.cloud.ces.v1.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.v1.InstagramCredentials) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.InstagramCredentials) + private static final com.google.cloud.ces.v1.InstagramCredentials DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.InstagramCredentials(); + } + + public static com.google.cloud.ces.v1.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.v1.InstagramCredentials getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/InstagramCredentialsOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/InstagramCredentialsOrBuilder.java new file mode 100644 index 000000000000..0bd9bcf7a3d9 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/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/v1/deployment.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface InstagramCredentialsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.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-v1/src/main/java/com/google/cloud/ces/v1/LanguageSettings.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/LanguageSettings.java index 7fcc39165207..c46b2f7ccffb 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/LanguageSettings.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/LanguageSettings.java @@ -249,7 +249,7 @@ public boolean getEnableMultilingualSupport() { * * * @deprecated google.cloud.ces.v1.LanguageSettings.fallback_action is deprecated. See - * google/cloud/ces/v1/app.proto;l=235 + * google/cloud/ces/v1/app.proto;l=242 * @return The fallbackAction. */ @java.lang.Override @@ -289,7 +289,7 @@ public java.lang.String getFallbackAction() { * * * @deprecated google.cloud.ces.v1.LanguageSettings.fallback_action is deprecated. See - * google/cloud/ces/v1/app.proto;l=235 + * google/cloud/ces/v1/app.proto;l=242 * @return The bytes for fallbackAction. */ @java.lang.Override @@ -1098,7 +1098,7 @@ public Builder clearEnableMultilingualSupport() { * * * @deprecated google.cloud.ces.v1.LanguageSettings.fallback_action is deprecated. See - * google/cloud/ces/v1/app.proto;l=235 + * google/cloud/ces/v1/app.proto;l=242 * @return The fallbackAction. */ @java.lang.Deprecated @@ -1138,7 +1138,7 @@ public java.lang.String getFallbackAction() { * * * @deprecated google.cloud.ces.v1.LanguageSettings.fallback_action is deprecated. See - * google/cloud/ces/v1/app.proto;l=235 + * google/cloud/ces/v1/app.proto;l=242 * @return The bytes for fallbackAction. */ @java.lang.Deprecated @@ -1178,7 +1178,7 @@ public com.google.protobuf.ByteString getFallbackActionBytes() { * * * @deprecated google.cloud.ces.v1.LanguageSettings.fallback_action is deprecated. See - * google/cloud/ces/v1/app.proto;l=235 + * google/cloud/ces/v1/app.proto;l=242 * @param value The fallbackAction to set. * @return This builder for chaining. */ @@ -1217,7 +1217,7 @@ public Builder setFallbackAction(java.lang.String value) { * * * @deprecated google.cloud.ces.v1.LanguageSettings.fallback_action is deprecated. See - * google/cloud/ces/v1/app.proto;l=235 + * google/cloud/ces/v1/app.proto;l=242 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1252,7 +1252,7 @@ public Builder clearFallbackAction() { * * * @deprecated google.cloud.ces.v1.LanguageSettings.fallback_action is deprecated. See - * google/cloud/ces/v1/app.proto;l=235 + * google/cloud/ces/v1/app.proto;l=242 * @param value The bytes for fallbackAction to set. * @return This builder for chaining. */ diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/LanguageSettingsOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/LanguageSettingsOrBuilder.java index dd6947bebbcf..94cc740cf6c4 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/LanguageSettingsOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/LanguageSettingsOrBuilder.java @@ -151,7 +151,7 @@ public interface LanguageSettingsOrBuilder * * * @deprecated google.cloud.ces.v1.LanguageSettings.fallback_action is deprecated. See - * google/cloud/ces/v1/app.proto;l=235 + * google/cloud/ces/v1/app.proto;l=242 * @return The fallbackAction. */ @java.lang.Deprecated @@ -180,7 +180,7 @@ public interface LanguageSettingsOrBuilder * * * @deprecated google.cloud.ces.v1.LanguageSettings.fallback_action is deprecated. See - * google/cloud/ces/v1/app.proto;l=235 + * google/cloud/ces/v1/app.proto;l=242 * @return The bytes for fallbackAction. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/LoggingSettings.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/LoggingSettings.java index 29060065f12e..134647ecb4a9 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/LoggingSettings.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/LoggingSettings.java @@ -135,7 +135,9 @@ public com.google.cloud.ces.v1.RedactionConfigOrBuilder getRedactionConfigOrBuil * * *
                -   * Optional. Configuration for how audio interactions should be recorded.
                +   * Optional. Configuration for how audio interactions should be recorded. The
                +   * audio is subject to redaction as configured in
                +   * [RedactionConfig][google.cloud.ces.v1.LoggingSettings.redaction_config].
                    * 
                * * @@ -153,7 +155,9 @@ public boolean hasAudioRecordingConfig() { * * *
                -   * Optional. Configuration for how audio interactions should be recorded.
                +   * Optional. Configuration for how audio interactions should be recorded. The
                +   * audio is subject to redaction as configured in
                +   * [RedactionConfig][google.cloud.ces.v1.LoggingSettings.redaction_config].
                    * 
                * * @@ -173,7 +177,9 @@ public com.google.cloud.ces.v1.AudioRecordingConfig getAudioRecordingConfig() { * * *
                -   * Optional. Configuration for how audio interactions should be recorded.
                +   * Optional. Configuration for how audio interactions should be recorded. The
                +   * audio is subject to redaction as configured in
                +   * [RedactionConfig][google.cloud.ces.v1.LoggingSettings.redaction_config].
                    * 
                * * @@ -187,6 +193,75 @@ public com.google.cloud.ces.v1.AudioRecordingConfigOrBuilder getAudioRecordingCo : audioRecordingConfig_; } + public static final int UNREDACTED_AUDIO_RECORDING_CONFIG_FIELD_NUMBER = 8; + private com.google.cloud.ces.v1.AudioRecordingConfig unredactedAudioRecordingConfig_; + + /** + * + * + *
                +   * Optional. Configures an additional recording of unredacted audio. This can
                +   * be used to maintain a raw audio copy when audio redaction is
                +   * [enabled][google.cloud.ces.v1.RedactionConfig.enable_redaction], typically
                +   * for auditing or monitoring purposes.
                +   * 
                + * + * + * .google.cloud.ces.v1.AudioRecordingConfig unredacted_audio_recording_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the unredactedAudioRecordingConfig field is set. + */ + @java.lang.Override + public boolean hasUnredactedAudioRecordingConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                +   * Optional. Configures an additional recording of unredacted audio. This can
                +   * be used to maintain a raw audio copy when audio redaction is
                +   * [enabled][google.cloud.ces.v1.RedactionConfig.enable_redaction], typically
                +   * for auditing or monitoring purposes.
                +   * 
                + * + * + * .google.cloud.ces.v1.AudioRecordingConfig unredacted_audio_recording_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The unredactedAudioRecordingConfig. + */ + @java.lang.Override + public com.google.cloud.ces.v1.AudioRecordingConfig getUnredactedAudioRecordingConfig() { + return unredactedAudioRecordingConfig_ == null + ? com.google.cloud.ces.v1.AudioRecordingConfig.getDefaultInstance() + : unredactedAudioRecordingConfig_; + } + + /** + * + * + *
                +   * Optional. Configures an additional recording of unredacted audio. This can
                +   * be used to maintain a raw audio copy when audio redaction is
                +   * [enabled][google.cloud.ces.v1.RedactionConfig.enable_redaction], typically
                +   * for auditing or monitoring purposes.
                +   * 
                + * + * + * .google.cloud.ces.v1.AudioRecordingConfig unredacted_audio_recording_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.AudioRecordingConfigOrBuilder + getUnredactedAudioRecordingConfigOrBuilder() { + return unredactedAudioRecordingConfig_ == null + ? com.google.cloud.ces.v1.AudioRecordingConfig.getDefaultInstance() + : unredactedAudioRecordingConfig_; + } + public static final int BIGQUERY_EXPORT_SETTINGS_FIELD_NUMBER = 3; private com.google.cloud.ces.v1.BigQueryExportSettings bigqueryExportSettings_; @@ -194,8 +269,9 @@ public com.google.cloud.ces.v1.AudioRecordingConfigOrBuilder getAudioRecordingCo * * *
                -   * Optional. Settings to describe the BigQuery export behaviors for the app.
                -   * The conversation data will be exported to BigQuery tables if it is enabled.
                +   * Optional. Configures the BigQuery export behaviors for the app. The
                +   * conversation data is subject to redaction as configured in
                +   * [RedactionConfig][google.cloud.ces.v1.LoggingSettings.redaction_config].
                    * 
                * * @@ -206,15 +282,16 @@ public com.google.cloud.ces.v1.AudioRecordingConfigOrBuilder getAudioRecordingCo */ @java.lang.Override public boolean hasBigqueryExportSettings() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** * * *
                -   * Optional. Settings to describe the BigQuery export behaviors for the app.
                -   * The conversation data will be exported to BigQuery tables if it is enabled.
                +   * Optional. Configures the BigQuery export behaviors for the app. The
                +   * conversation data is subject to redaction as configured in
                +   * [RedactionConfig][google.cloud.ces.v1.LoggingSettings.redaction_config].
                    * 
                * * @@ -234,8 +311,9 @@ public com.google.cloud.ces.v1.BigQueryExportSettings getBigqueryExportSettings( * * *
                -   * Optional. Settings to describe the BigQuery export behaviors for the app.
                -   * The conversation data will be exported to BigQuery tables if it is enabled.
                +   * Optional. Configures the BigQuery export behaviors for the app. The
                +   * conversation data is subject to redaction as configured in
                +   * [RedactionConfig][google.cloud.ces.v1.LoggingSettings.redaction_config].
                    * 
                * * @@ -250,6 +328,72 @@ public com.google.cloud.ces.v1.BigQueryExportSettings getBigqueryExportSettings( : bigqueryExportSettings_; } + public static final int UNREDACTED_BIGQUERY_EXPORT_SETTINGS_FIELD_NUMBER = 9; + private com.google.cloud.ces.v1.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.v1.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.v1.BigQueryExportSettings unredacted_bigquery_export_settings = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The unredactedBigqueryExportSettings. + */ + @java.lang.Override + public com.google.cloud.ces.v1.BigQueryExportSettings getUnredactedBigqueryExportSettings() { + return unredactedBigqueryExportSettings_ == null + ? com.google.cloud.ces.v1.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.v1.BigQueryExportSettings unredacted_bigquery_export_settings = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.BigQueryExportSettingsOrBuilder + getUnredactedBigqueryExportSettingsOrBuilder() { + return unredactedBigqueryExportSettings_ == null + ? com.google.cloud.ces.v1.BigQueryExportSettings.getDefaultInstance() + : unredactedBigqueryExportSettings_; + } + public static final int CLOUD_LOGGING_SETTINGS_FIELD_NUMBER = 4; private com.google.cloud.ces.v1.CloudLoggingSettings cloudLoggingSettings_; @@ -268,7 +412,7 @@ public com.google.cloud.ces.v1.BigQueryExportSettings getBigqueryExportSettings( */ @java.lang.Override public boolean hasCloudLoggingSettings() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** @@ -328,7 +472,7 @@ public com.google.cloud.ces.v1.CloudLoggingSettingsOrBuilder getCloudLoggingSett */ @java.lang.Override public boolean hasConversationLoggingSettings() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** @@ -392,7 +536,7 @@ public com.google.cloud.ces.v1.ConversationLoggingSettings getConversationLoggin */ @java.lang.Override public boolean hasEvaluationAudioRecordingConfig() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** @@ -457,7 +601,7 @@ public com.google.cloud.ces.v1.AudioRecordingConfig getEvaluationAudioRecordingC */ @java.lang.Override public boolean hasMetricAnalysisSettings() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** @@ -521,21 +665,27 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getAudioRecordingConfig()); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(3, getBigqueryExportSettings()); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(4, getCloudLoggingSettings()); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000040) != 0)) { output.writeMessage(5, getConversationLoggingSettings()); } - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000080) != 0)) { output.writeMessage(6, getEvaluationAudioRecordingConfig()); } - if (((bitField0_ & 0x00000040) != 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); } @@ -552,28 +702,38 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAudioRecordingConfig()); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getBigqueryExportSettings()); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCloudLoggingSettings()); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 5, getConversationLoggingSettings()); } - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 6, getEvaluationAudioRecordingConfig()); } - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getMetricAnalysisSettings()); } + if (((bitField0_ & 0x00000004) != 0)) { + size += + 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; @@ -597,10 +757,22 @@ public boolean equals(final java.lang.Object obj) { if (hasAudioRecordingConfig()) { if (!getAudioRecordingConfig().equals(other.getAudioRecordingConfig())) return false; } + if (hasUnredactedAudioRecordingConfig() != other.hasUnredactedAudioRecordingConfig()) + return false; + if (hasUnredactedAudioRecordingConfig()) { + if (!getUnredactedAudioRecordingConfig().equals(other.getUnredactedAudioRecordingConfig())) + return false; + } if (hasBigqueryExportSettings() != other.hasBigqueryExportSettings()) return false; 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; @@ -639,10 +811,18 @@ public int hashCode() { hash = (37 * hash) + AUDIO_RECORDING_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getAudioRecordingConfig().hashCode(); } + if (hasUnredactedAudioRecordingConfig()) { + hash = (37 * hash) + UNREDACTED_AUDIO_RECORDING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getUnredactedAudioRecordingConfig().hashCode(); + } if (hasBigqueryExportSettings()) { 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(); @@ -802,7 +982,9 @@ private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { internalGetRedactionConfigFieldBuilder(); internalGetAudioRecordingConfigFieldBuilder(); + internalGetUnredactedAudioRecordingConfigFieldBuilder(); internalGetBigqueryExportSettingsFieldBuilder(); + internalGetUnredactedBigqueryExportSettingsFieldBuilder(); internalGetCloudLoggingSettingsFieldBuilder(); internalGetConversationLoggingSettingsFieldBuilder(); internalGetEvaluationAudioRecordingConfigFieldBuilder(); @@ -824,11 +1006,21 @@ public Builder clear() { audioRecordingConfigBuilder_.dispose(); audioRecordingConfigBuilder_ = null; } + unredactedAudioRecordingConfig_ = null; + if (unredactedAudioRecordingConfigBuilder_ != null) { + unredactedAudioRecordingConfigBuilder_.dispose(); + unredactedAudioRecordingConfigBuilder_ = null; + } bigqueryExportSettings_ = null; if (bigqueryExportSettingsBuilder_ != null) { bigqueryExportSettingsBuilder_.dispose(); bigqueryExportSettingsBuilder_ = null; } + unredactedBigqueryExportSettings_ = null; + if (unredactedBigqueryExportSettingsBuilder_ != null) { + unredactedBigqueryExportSettingsBuilder_.dispose(); + unredactedBigqueryExportSettingsBuilder_ = null; + } cloudLoggingSettings_ = null; if (cloudLoggingSettingsBuilder_ != null) { cloudLoggingSettingsBuilder_.dispose(); @@ -899,39 +1091,53 @@ private void buildPartial0(com.google.cloud.ces.v1.LoggingSettings result) { to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { + result.unredactedAudioRecordingConfig_ = + unredactedAudioRecordingConfigBuilder_ == null + ? unredactedAudioRecordingConfig_ + : unredactedAudioRecordingConfigBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { result.bigqueryExportSettings_ = bigqueryExportSettingsBuilder_ == null ? bigqueryExportSettings_ : bigqueryExportSettingsBuilder_.build(); - to_bitField0_ |= 0x00000004; + to_bitField0_ |= 0x00000008; } - if (((from_bitField0_ & 0x00000008) != 0)) { + 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_ |= 0x00000008; + to_bitField0_ |= 0x00000020; } - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.conversationLoggingSettings_ = conversationLoggingSettingsBuilder_ == null ? conversationLoggingSettings_ : conversationLoggingSettingsBuilder_.build(); - to_bitField0_ |= 0x00000010; + to_bitField0_ |= 0x00000040; } - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { result.evaluationAudioRecordingConfig_ = evaluationAudioRecordingConfigBuilder_ == null ? evaluationAudioRecordingConfig_ : evaluationAudioRecordingConfigBuilder_.build(); - to_bitField0_ |= 0x00000020; + to_bitField0_ |= 0x00000080; } - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { result.metricAnalysisSettings_ = metricAnalysisSettingsBuilder_ == null ? metricAnalysisSettings_ : metricAnalysisSettingsBuilder_.build(); - to_bitField0_ |= 0x00000040; + to_bitField0_ |= 0x00000100; } result.bitField0_ |= to_bitField0_; } @@ -954,9 +1160,15 @@ public Builder mergeFrom(com.google.cloud.ces.v1.LoggingSettings other) { if (other.hasAudioRecordingConfig()) { mergeAudioRecordingConfig(other.getAudioRecordingConfig()); } + if (other.hasUnredactedAudioRecordingConfig()) { + mergeUnredactedAudioRecordingConfig(other.getUnredactedAudioRecordingConfig()); + } if (other.hasBigqueryExportSettings()) { mergeBigqueryExportSettings(other.getBigqueryExportSettings()); } + if (other.hasUnredactedBigqueryExportSettings()) { + mergeUnredactedBigqueryExportSettings(other.getUnredactedBigqueryExportSettings()); + } if (other.hasCloudLoggingSettings()) { mergeCloudLoggingSettings(other.getCloudLoggingSettings()); } @@ -1014,14 +1226,14 @@ public Builder mergeFrom( input.readMessage( internalGetBigqueryExportSettingsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 26 case 34: { input.readMessage( internalGetCloudLoggingSettingsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; break; } // case 34 case 42: @@ -1029,7 +1241,7 @@ public Builder mergeFrom( input.readMessage( internalGetConversationLoggingSettingsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000040; break; } // case 42 case 50: @@ -1037,7 +1249,7 @@ public Builder mergeFrom( input.readMessage( internalGetEvaluationAudioRecordingConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000080; break; } // case 50 case 58: @@ -1045,9 +1257,25 @@ public Builder mergeFrom( input.readMessage( internalGetMetricAnalysisSettingsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000100; break; } // case 58 + case 66: + { + input.readMessage( + internalGetUnredactedAudioRecordingConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 66 + case 74: + { + input.readMessage( + internalGetUnredactedBigqueryExportSettingsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 74 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1291,7 +1519,9 @@ public com.google.cloud.ces.v1.RedactionConfigOrBuilder getRedactionConfigOrBuil * * *
                -     * Optional. Configuration for how audio interactions should be recorded.
                +     * Optional. Configuration for how audio interactions should be recorded. The
                +     * audio is subject to redaction as configured in
                +     * [RedactionConfig][google.cloud.ces.v1.LoggingSettings.redaction_config].
                      * 
                * * @@ -1308,7 +1538,9 @@ public boolean hasAudioRecordingConfig() { * * *
                -     * Optional. Configuration for how audio interactions should be recorded.
                +     * Optional. Configuration for how audio interactions should be recorded. The
                +     * audio is subject to redaction as configured in
                +     * [RedactionConfig][google.cloud.ces.v1.LoggingSettings.redaction_config].
                      * 
                * * @@ -1331,7 +1563,9 @@ public com.google.cloud.ces.v1.AudioRecordingConfig getAudioRecordingConfig() { * * *
                -     * Optional. Configuration for how audio interactions should be recorded.
                +     * Optional. Configuration for how audio interactions should be recorded. The
                +     * audio is subject to redaction as configured in
                +     * [RedactionConfig][google.cloud.ces.v1.LoggingSettings.redaction_config].
                      * 
                * * @@ -1356,7 +1590,9 @@ public Builder setAudioRecordingConfig(com.google.cloud.ces.v1.AudioRecordingCon * * *
                -     * Optional. Configuration for how audio interactions should be recorded.
                +     * Optional. Configuration for how audio interactions should be recorded. The
                +     * audio is subject to redaction as configured in
                +     * [RedactionConfig][google.cloud.ces.v1.LoggingSettings.redaction_config].
                      * 
                * * @@ -1379,7 +1615,9 @@ public Builder setAudioRecordingConfig( * * *
                -     * Optional. Configuration for how audio interactions should be recorded.
                +     * Optional. Configuration for how audio interactions should be recorded. The
                +     * audio is subject to redaction as configured in
                +     * [RedactionConfig][google.cloud.ces.v1.LoggingSettings.redaction_config].
                      * 
                * * @@ -1410,7 +1648,9 @@ public Builder mergeAudioRecordingConfig(com.google.cloud.ces.v1.AudioRecordingC * * *
                -     * Optional. Configuration for how audio interactions should be recorded.
                +     * Optional. Configuration for how audio interactions should be recorded. The
                +     * audio is subject to redaction as configured in
                +     * [RedactionConfig][google.cloud.ces.v1.LoggingSettings.redaction_config].
                      * 
                * * @@ -1432,7 +1672,9 @@ public Builder clearAudioRecordingConfig() { * * *
                -     * Optional. Configuration for how audio interactions should be recorded.
                +     * Optional. Configuration for how audio interactions should be recorded. The
                +     * audio is subject to redaction as configured in
                +     * [RedactionConfig][google.cloud.ces.v1.LoggingSettings.redaction_config].
                      * 
                * * @@ -1449,7 +1691,9 @@ public com.google.cloud.ces.v1.AudioRecordingConfig.Builder getAudioRecordingCon * * *
                -     * Optional. Configuration for how audio interactions should be recorded.
                +     * Optional. Configuration for how audio interactions should be recorded. The
                +     * audio is subject to redaction as configured in
                +     * [RedactionConfig][google.cloud.ces.v1.LoggingSettings.redaction_config].
                      * 
                * * @@ -1471,7 +1715,9 @@ public com.google.cloud.ces.v1.AudioRecordingConfig.Builder getAudioRecordingCon * * *
                -     * Optional. Configuration for how audio interactions should be recorded.
                +     * Optional. Configuration for how audio interactions should be recorded. The
                +     * audio is subject to redaction as configured in
                +     * [RedactionConfig][google.cloud.ces.v1.LoggingSettings.redaction_config].
                      * 
                * * @@ -1495,28 +1741,30 @@ public com.google.cloud.ces.v1.AudioRecordingConfig.Builder getAudioRecordingCon return audioRecordingConfigBuilder_; } - private com.google.cloud.ces.v1.BigQueryExportSettings bigqueryExportSettings_; + private com.google.cloud.ces.v1.AudioRecordingConfig unredactedAudioRecordingConfig_; private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.ces.v1.BigQueryExportSettings, - com.google.cloud.ces.v1.BigQueryExportSettings.Builder, - com.google.cloud.ces.v1.BigQueryExportSettingsOrBuilder> - bigqueryExportSettingsBuilder_; + com.google.cloud.ces.v1.AudioRecordingConfig, + com.google.cloud.ces.v1.AudioRecordingConfig.Builder, + com.google.cloud.ces.v1.AudioRecordingConfigOrBuilder> + unredactedAudioRecordingConfigBuilder_; /** * * *
                -     * Optional. Settings to describe the BigQuery export behaviors for the app.
                -     * The conversation data will be exported to BigQuery tables if it is enabled.
                +     * Optional. Configures an additional recording of unredacted audio. This can
                +     * be used to maintain a raw audio copy when audio redaction is
                +     * [enabled][google.cloud.ces.v1.RedactionConfig.enable_redaction], typically
                +     * for auditing or monitoring purposes.
                      * 
                * * - * .google.cloud.ces.v1.BigQueryExportSettings bigquery_export_settings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1.AudioRecordingConfig unredacted_audio_recording_config = 8 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the bigqueryExportSettings field is set. + * @return Whether the unredactedAudioRecordingConfig field is set. */ - public boolean hasBigqueryExportSettings() { + public boolean hasUnredactedAudioRecordingConfig() { return ((bitField0_ & 0x00000004) != 0); } @@ -1524,23 +1772,25 @@ public boolean hasBigqueryExportSettings() { * * *
                -     * Optional. Settings to describe the BigQuery export behaviors for the app.
                -     * The conversation data will be exported to BigQuery tables if it is enabled.
                +     * Optional. Configures an additional recording of unredacted audio. This can
                +     * be used to maintain a raw audio copy when audio redaction is
                +     * [enabled][google.cloud.ces.v1.RedactionConfig.enable_redaction], typically
                +     * for auditing or monitoring purposes.
                      * 
                * * - * .google.cloud.ces.v1.BigQueryExportSettings bigquery_export_settings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1.AudioRecordingConfig unredacted_audio_recording_config = 8 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The bigqueryExportSettings. + * @return The unredactedAudioRecordingConfig. */ - public com.google.cloud.ces.v1.BigQueryExportSettings getBigqueryExportSettings() { - if (bigqueryExportSettingsBuilder_ == null) { - return bigqueryExportSettings_ == null - ? com.google.cloud.ces.v1.BigQueryExportSettings.getDefaultInstance() - : bigqueryExportSettings_; + public com.google.cloud.ces.v1.AudioRecordingConfig getUnredactedAudioRecordingConfig() { + if (unredactedAudioRecordingConfigBuilder_ == null) { + return unredactedAudioRecordingConfig_ == null + ? com.google.cloud.ces.v1.AudioRecordingConfig.getDefaultInstance() + : unredactedAudioRecordingConfig_; } else { - return bigqueryExportSettingsBuilder_.getMessage(); + return unredactedAudioRecordingConfigBuilder_.getMessage(); } } @@ -1548,22 +1798,25 @@ public com.google.cloud.ces.v1.BigQueryExportSettings getBigqueryExportSettings( * * *
                -     * Optional. Settings to describe the BigQuery export behaviors for the app.
                -     * The conversation data will be exported to BigQuery tables if it is enabled.
                +     * Optional. Configures an additional recording of unredacted audio. This can
                +     * be used to maintain a raw audio copy when audio redaction is
                +     * [enabled][google.cloud.ces.v1.RedactionConfig.enable_redaction], typically
                +     * for auditing or monitoring purposes.
                      * 
                * * - * .google.cloud.ces.v1.BigQueryExportSettings bigquery_export_settings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1.AudioRecordingConfig unredacted_audio_recording_config = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setBigqueryExportSettings(com.google.cloud.ces.v1.BigQueryExportSettings value) { - if (bigqueryExportSettingsBuilder_ == null) { + public Builder setUnredactedAudioRecordingConfig( + com.google.cloud.ces.v1.AudioRecordingConfig value) { + if (unredactedAudioRecordingConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - bigqueryExportSettings_ = value; + unredactedAudioRecordingConfig_ = value; } else { - bigqueryExportSettingsBuilder_.setMessage(value); + unredactedAudioRecordingConfigBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); @@ -1574,20 +1827,22 @@ public Builder setBigqueryExportSettings(com.google.cloud.ces.v1.BigQueryExportS * * *
                -     * Optional. Settings to describe the BigQuery export behaviors for the app.
                -     * The conversation data will be exported to BigQuery tables if it is enabled.
                +     * Optional. Configures an additional recording of unredacted audio. This can
                +     * be used to maintain a raw audio copy when audio redaction is
                +     * [enabled][google.cloud.ces.v1.RedactionConfig.enable_redaction], typically
                +     * for auditing or monitoring purposes.
                      * 
                * * - * .google.cloud.ces.v1.BigQueryExportSettings bigquery_export_settings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1.AudioRecordingConfig unredacted_audio_recording_config = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setBigqueryExportSettings( - com.google.cloud.ces.v1.BigQueryExportSettings.Builder builderForValue) { - if (bigqueryExportSettingsBuilder_ == null) { - bigqueryExportSettings_ = builderForValue.build(); + public Builder setUnredactedAudioRecordingConfig( + com.google.cloud.ces.v1.AudioRecordingConfig.Builder builderForValue) { + if (unredactedAudioRecordingConfigBuilder_ == null) { + unredactedAudioRecordingConfig_ = builderForValue.build(); } else { - bigqueryExportSettingsBuilder_.setMessage(builderForValue.build()); + unredactedAudioRecordingConfigBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); @@ -1598,29 +1853,31 @@ public Builder setBigqueryExportSettings( * * *
                -     * Optional. Settings to describe the BigQuery export behaviors for the app.
                -     * The conversation data will be exported to BigQuery tables if it is enabled.
                +     * Optional. Configures an additional recording of unredacted audio. This can
                +     * be used to maintain a raw audio copy when audio redaction is
                +     * [enabled][google.cloud.ces.v1.RedactionConfig.enable_redaction], typically
                +     * for auditing or monitoring purposes.
                      * 
                * * - * .google.cloud.ces.v1.BigQueryExportSettings bigquery_export_settings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1.AudioRecordingConfig unredacted_audio_recording_config = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeBigqueryExportSettings( - com.google.cloud.ces.v1.BigQueryExportSettings value) { - if (bigqueryExportSettingsBuilder_ == null) { + public Builder mergeUnredactedAudioRecordingConfig( + com.google.cloud.ces.v1.AudioRecordingConfig value) { + if (unredactedAudioRecordingConfigBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) - && bigqueryExportSettings_ != null - && bigqueryExportSettings_ - != com.google.cloud.ces.v1.BigQueryExportSettings.getDefaultInstance()) { - getBigqueryExportSettingsBuilder().mergeFrom(value); + && unredactedAudioRecordingConfig_ != null + && unredactedAudioRecordingConfig_ + != com.google.cloud.ces.v1.AudioRecordingConfig.getDefaultInstance()) { + getUnredactedAudioRecordingConfigBuilder().mergeFrom(value); } else { - bigqueryExportSettings_ = value; + unredactedAudioRecordingConfig_ = value; } } else { - bigqueryExportSettingsBuilder_.mergeFrom(value); + unredactedAudioRecordingConfigBuilder_.mergeFrom(value); } - if (bigqueryExportSettings_ != null) { + if (unredactedAudioRecordingConfig_ != null) { bitField0_ |= 0x00000004; onChanged(); } @@ -1631,20 +1888,22 @@ public Builder mergeBigqueryExportSettings( * * *
                -     * Optional. Settings to describe the BigQuery export behaviors for the app.
                -     * The conversation data will be exported to BigQuery tables if it is enabled.
                +     * Optional. Configures an additional recording of unredacted audio. This can
                +     * be used to maintain a raw audio copy when audio redaction is
                +     * [enabled][google.cloud.ces.v1.RedactionConfig.enable_redaction], typically
                +     * for auditing or monitoring purposes.
                      * 
                * * - * .google.cloud.ces.v1.BigQueryExportSettings bigquery_export_settings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1.AudioRecordingConfig unredacted_audio_recording_config = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearBigqueryExportSettings() { + public Builder clearUnredactedAudioRecordingConfig() { bitField0_ = (bitField0_ & ~0x00000004); - bigqueryExportSettings_ = null; - if (bigqueryExportSettingsBuilder_ != null) { - bigqueryExportSettingsBuilder_.dispose(); - bigqueryExportSettingsBuilder_ = null; + unredactedAudioRecordingConfig_ = null; + if (unredactedAudioRecordingConfigBuilder_ != null) { + unredactedAudioRecordingConfigBuilder_.dispose(); + unredactedAudioRecordingConfigBuilder_ = null; } onChanged(); return this; @@ -1654,41 +1913,45 @@ public Builder clearBigqueryExportSettings() { * * *
                -     * Optional. Settings to describe the BigQuery export behaviors for the app.
                -     * The conversation data will be exported to BigQuery tables if it is enabled.
                +     * Optional. Configures an additional recording of unredacted audio. This can
                +     * be used to maintain a raw audio copy when audio redaction is
                +     * [enabled][google.cloud.ces.v1.RedactionConfig.enable_redaction], typically
                +     * for auditing or monitoring purposes.
                      * 
                * * - * .google.cloud.ces.v1.BigQueryExportSettings bigquery_export_settings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1.AudioRecordingConfig unredacted_audio_recording_config = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.ces.v1.BigQueryExportSettings.Builder - getBigqueryExportSettingsBuilder() { + public com.google.cloud.ces.v1.AudioRecordingConfig.Builder + getUnredactedAudioRecordingConfigBuilder() { bitField0_ |= 0x00000004; onChanged(); - return internalGetBigqueryExportSettingsFieldBuilder().getBuilder(); + return internalGetUnredactedAudioRecordingConfigFieldBuilder().getBuilder(); } /** * * *
                -     * Optional. Settings to describe the BigQuery export behaviors for the app.
                -     * The conversation data will be exported to BigQuery tables if it is enabled.
                +     * Optional. Configures an additional recording of unredacted audio. This can
                +     * be used to maintain a raw audio copy when audio redaction is
                +     * [enabled][google.cloud.ces.v1.RedactionConfig.enable_redaction], typically
                +     * for auditing or monitoring purposes.
                      * 
                * * - * .google.cloud.ces.v1.BigQueryExportSettings bigquery_export_settings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1.AudioRecordingConfig unredacted_audio_recording_config = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.ces.v1.BigQueryExportSettingsOrBuilder - getBigqueryExportSettingsOrBuilder() { - if (bigqueryExportSettingsBuilder_ != null) { - return bigqueryExportSettingsBuilder_.getMessageOrBuilder(); + public com.google.cloud.ces.v1.AudioRecordingConfigOrBuilder + getUnredactedAudioRecordingConfigOrBuilder() { + if (unredactedAudioRecordingConfigBuilder_ != null) { + return unredactedAudioRecordingConfigBuilder_.getMessageOrBuilder(); } else { - return bigqueryExportSettings_ == null - ? com.google.cloud.ces.v1.BigQueryExportSettings.getDefaultInstance() - : bigqueryExportSettings_; + return unredactedAudioRecordingConfig_ == null + ? com.google.cloud.ces.v1.AudioRecordingConfig.getDefaultInstance() + : unredactedAudioRecordingConfig_; } } @@ -1696,23 +1959,260 @@ public Builder clearBigqueryExportSettings() { * * *
                -     * Optional. Settings to describe the BigQuery export behaviors for the app.
                -     * The conversation data will be exported to BigQuery tables if it is enabled.
                +     * Optional. Configures an additional recording of unredacted audio. This can
                +     * be used to maintain a raw audio copy when audio redaction is
                +     * [enabled][google.cloud.ces.v1.RedactionConfig.enable_redaction], typically
                +     * for auditing or monitoring purposes.
                      * 
                * * - * .google.cloud.ces.v1.BigQueryExportSettings bigquery_export_settings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1.AudioRecordingConfig unredacted_audio_recording_config = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.AudioRecordingConfig, + com.google.cloud.ces.v1.AudioRecordingConfig.Builder, + com.google.cloud.ces.v1.AudioRecordingConfigOrBuilder> + internalGetUnredactedAudioRecordingConfigFieldBuilder() { + if (unredactedAudioRecordingConfigBuilder_ == null) { + unredactedAudioRecordingConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.AudioRecordingConfig, + com.google.cloud.ces.v1.AudioRecordingConfig.Builder, + com.google.cloud.ces.v1.AudioRecordingConfigOrBuilder>( + getUnredactedAudioRecordingConfig(), getParentForChildren(), isClean()); + unredactedAudioRecordingConfig_ = null; + } + return unredactedAudioRecordingConfigBuilder_; + } + + private com.google.cloud.ces.v1.BigQueryExportSettings bigqueryExportSettings_; private com.google.protobuf.SingleFieldBuilder< com.google.cloud.ces.v1.BigQueryExportSettings, com.google.cloud.ces.v1.BigQueryExportSettings.Builder, com.google.cloud.ces.v1.BigQueryExportSettingsOrBuilder> - internalGetBigqueryExportSettingsFieldBuilder() { - if (bigqueryExportSettingsBuilder_ == null) { - bigqueryExportSettingsBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.ces.v1.BigQueryExportSettings, + bigqueryExportSettingsBuilder_; + + /** + * + * + *
                +     * Optional. Configures the BigQuery export behaviors for the app. The
                +     * conversation data is subject to redaction as configured in
                +     * [RedactionConfig][google.cloud.ces.v1.LoggingSettings.redaction_config].
                +     * 
                + * + * + * .google.cloud.ces.v1.BigQueryExportSettings bigquery_export_settings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the bigqueryExportSettings field is set. + */ + public boolean hasBigqueryExportSettings() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
                +     * Optional. Configures the BigQuery export behaviors for the app. The
                +     * conversation data is subject to redaction as configured in
                +     * [RedactionConfig][google.cloud.ces.v1.LoggingSettings.redaction_config].
                +     * 
                + * + * + * .google.cloud.ces.v1.BigQueryExportSettings bigquery_export_settings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bigqueryExportSettings. + */ + public com.google.cloud.ces.v1.BigQueryExportSettings getBigqueryExportSettings() { + if (bigqueryExportSettingsBuilder_ == null) { + return bigqueryExportSettings_ == null + ? com.google.cloud.ces.v1.BigQueryExportSettings.getDefaultInstance() + : bigqueryExportSettings_; + } else { + return bigqueryExportSettingsBuilder_.getMessage(); + } + } + + /** + * + * + *
                +     * Optional. Configures the BigQuery export behaviors for the app. The
                +     * conversation data is subject to redaction as configured in
                +     * [RedactionConfig][google.cloud.ces.v1.LoggingSettings.redaction_config].
                +     * 
                + * + * + * .google.cloud.ces.v1.BigQueryExportSettings bigquery_export_settings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setBigqueryExportSettings(com.google.cloud.ces.v1.BigQueryExportSettings value) { + if (bigqueryExportSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + bigqueryExportSettings_ = value; + } else { + bigqueryExportSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. Configures the BigQuery export behaviors for the app. The
                +     * conversation data is subject to redaction as configured in
                +     * [RedactionConfig][google.cloud.ces.v1.LoggingSettings.redaction_config].
                +     * 
                + * + * + * .google.cloud.ces.v1.BigQueryExportSettings bigquery_export_settings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setBigqueryExportSettings( + com.google.cloud.ces.v1.BigQueryExportSettings.Builder builderForValue) { + if (bigqueryExportSettingsBuilder_ == null) { + bigqueryExportSettings_ = builderForValue.build(); + } else { + bigqueryExportSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. Configures the BigQuery export behaviors for the app. The
                +     * conversation data is subject to redaction as configured in
                +     * [RedactionConfig][google.cloud.ces.v1.LoggingSettings.redaction_config].
                +     * 
                + * + * + * .google.cloud.ces.v1.BigQueryExportSettings bigquery_export_settings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeBigqueryExportSettings( + com.google.cloud.ces.v1.BigQueryExportSettings value) { + if (bigqueryExportSettingsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && bigqueryExportSettings_ != null + && bigqueryExportSettings_ + != com.google.cloud.ces.v1.BigQueryExportSettings.getDefaultInstance()) { + getBigqueryExportSettingsBuilder().mergeFrom(value); + } else { + bigqueryExportSettings_ = value; + } + } else { + bigqueryExportSettingsBuilder_.mergeFrom(value); + } + if (bigqueryExportSettings_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
                +     * Optional. Configures the BigQuery export behaviors for the app. The
                +     * conversation data is subject to redaction as configured in
                +     * [RedactionConfig][google.cloud.ces.v1.LoggingSettings.redaction_config].
                +     * 
                + * + * + * .google.cloud.ces.v1.BigQueryExportSettings bigquery_export_settings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearBigqueryExportSettings() { + bitField0_ = (bitField0_ & ~0x00000008); + bigqueryExportSettings_ = null; + if (bigqueryExportSettingsBuilder_ != null) { + bigqueryExportSettingsBuilder_.dispose(); + bigqueryExportSettingsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. Configures the BigQuery export behaviors for the app. The
                +     * conversation data is subject to redaction as configured in
                +     * [RedactionConfig][google.cloud.ces.v1.LoggingSettings.redaction_config].
                +     * 
                + * + * + * .google.cloud.ces.v1.BigQueryExportSettings bigquery_export_settings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.BigQueryExportSettings.Builder + getBigqueryExportSettingsBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetBigqueryExportSettingsFieldBuilder().getBuilder(); + } + + /** + * + * + *
                +     * Optional. Configures the BigQuery export behaviors for the app. The
                +     * conversation data is subject to redaction as configured in
                +     * [RedactionConfig][google.cloud.ces.v1.LoggingSettings.redaction_config].
                +     * 
                + * + * + * .google.cloud.ces.v1.BigQueryExportSettings bigquery_export_settings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.BigQueryExportSettingsOrBuilder + getBigqueryExportSettingsOrBuilder() { + if (bigqueryExportSettingsBuilder_ != null) { + return bigqueryExportSettingsBuilder_.getMessageOrBuilder(); + } else { + return bigqueryExportSettings_ == null + ? com.google.cloud.ces.v1.BigQueryExportSettings.getDefaultInstance() + : bigqueryExportSettings_; + } + } + + /** + * + * + *
                +     * Optional. Configures the BigQuery export behaviors for the app. The
                +     * conversation data is subject to redaction as configured in
                +     * [RedactionConfig][google.cloud.ces.v1.LoggingSettings.redaction_config].
                +     * 
                + * + * + * .google.cloud.ces.v1.BigQueryExportSettings bigquery_export_settings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.BigQueryExportSettings, + com.google.cloud.ces.v1.BigQueryExportSettings.Builder, + com.google.cloud.ces.v1.BigQueryExportSettingsOrBuilder> + internalGetBigqueryExportSettingsFieldBuilder() { + if (bigqueryExportSettingsBuilder_ == null) { + bigqueryExportSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.BigQueryExportSettings, com.google.cloud.ces.v1.BigQueryExportSettings.Builder, com.google.cloud.ces.v1.BigQueryExportSettingsOrBuilder>( getBigqueryExportSettings(), getParentForChildren(), isClean()); @@ -1721,6 +2221,242 @@ public Builder clearBigqueryExportSettings() { return bigqueryExportSettingsBuilder_; } + private com.google.cloud.ces.v1.BigQueryExportSettings unredactedBigqueryExportSettings_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.BigQueryExportSettings, + com.google.cloud.ces.v1.BigQueryExportSettings.Builder, + com.google.cloud.ces.v1.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.v1.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.v1.BigQueryExportSettings unredacted_bigquery_export_settings = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The unredactedBigqueryExportSettings. + */ + public com.google.cloud.ces.v1.BigQueryExportSettings getUnredactedBigqueryExportSettings() { + if (unredactedBigqueryExportSettingsBuilder_ == null) { + return unredactedBigqueryExportSettings_ == null + ? com.google.cloud.ces.v1.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.v1.BigQueryExportSettings unredacted_bigquery_export_settings = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUnredactedBigqueryExportSettings( + com.google.cloud.ces.v1.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.v1.BigQueryExportSettings unredacted_bigquery_export_settings = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUnredactedBigqueryExportSettings( + com.google.cloud.ces.v1.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.v1.BigQueryExportSettings unredacted_bigquery_export_settings = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUnredactedBigqueryExportSettings( + com.google.cloud.ces.v1.BigQueryExportSettings value) { + if (unredactedBigqueryExportSettingsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && unredactedBigqueryExportSettings_ != null + && unredactedBigqueryExportSettings_ + != com.google.cloud.ces.v1.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.v1.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.v1.BigQueryExportSettings unredacted_bigquery_export_settings = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.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.v1.BigQueryExportSettings unredacted_bigquery_export_settings = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.BigQueryExportSettingsOrBuilder + getUnredactedBigqueryExportSettingsOrBuilder() { + if (unredactedBigqueryExportSettingsBuilder_ != null) { + return unredactedBigqueryExportSettingsBuilder_.getMessageOrBuilder(); + } else { + return unredactedBigqueryExportSettings_ == null + ? com.google.cloud.ces.v1.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.v1.BigQueryExportSettings unredacted_bigquery_export_settings = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.BigQueryExportSettings, + com.google.cloud.ces.v1.BigQueryExportSettings.Builder, + com.google.cloud.ces.v1.BigQueryExportSettingsOrBuilder> + internalGetUnredactedBigqueryExportSettingsFieldBuilder() { + if (unredactedBigqueryExportSettingsBuilder_ == null) { + unredactedBigqueryExportSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.BigQueryExportSettings, + com.google.cloud.ces.v1.BigQueryExportSettings.Builder, + com.google.cloud.ces.v1.BigQueryExportSettingsOrBuilder>( + getUnredactedBigqueryExportSettings(), getParentForChildren(), isClean()); + unredactedBigqueryExportSettings_ = null; + } + return unredactedBigqueryExportSettingsBuilder_; + } + private com.google.cloud.ces.v1.CloudLoggingSettings cloudLoggingSettings_; private com.google.protobuf.SingleFieldBuilder< com.google.cloud.ces.v1.CloudLoggingSettings, @@ -1742,7 +2478,7 @@ public Builder clearBigqueryExportSettings() { * @return Whether the cloudLoggingSettings field is set. */ public boolean hasCloudLoggingSettings() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** @@ -1788,7 +2524,7 @@ public Builder setCloudLoggingSettings(com.google.cloud.ces.v1.CloudLoggingSetti } else { cloudLoggingSettingsBuilder_.setMessage(value); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1811,7 +2547,7 @@ public Builder setCloudLoggingSettings( } else { cloudLoggingSettingsBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1829,7 +2565,7 @@ public Builder setCloudLoggingSettings( */ public Builder mergeCloudLoggingSettings(com.google.cloud.ces.v1.CloudLoggingSettings value) { if (cloudLoggingSettingsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) + if (((bitField0_ & 0x00000020) != 0) && cloudLoggingSettings_ != null && cloudLoggingSettings_ != com.google.cloud.ces.v1.CloudLoggingSettings.getDefaultInstance()) { @@ -1841,7 +2577,7 @@ public Builder mergeCloudLoggingSettings(com.google.cloud.ces.v1.CloudLoggingSet cloudLoggingSettingsBuilder_.mergeFrom(value); } if (cloudLoggingSettings_ != null) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; onChanged(); } return this; @@ -1859,7 +2595,7 @@ public Builder mergeCloudLoggingSettings(com.google.cloud.ces.v1.CloudLoggingSet *
                */ public Builder clearCloudLoggingSettings() { - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000020); cloudLoggingSettings_ = null; if (cloudLoggingSettingsBuilder_ != null) { cloudLoggingSettingsBuilder_.dispose(); @@ -1881,7 +2617,7 @@ public Builder clearCloudLoggingSettings() { *
                */ public com.google.cloud.ces.v1.CloudLoggingSettings.Builder getCloudLoggingSettingsBuilder() { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; onChanged(); return internalGetCloudLoggingSettingsFieldBuilder().getBuilder(); } @@ -1958,7 +2694,7 @@ public com.google.cloud.ces.v1.CloudLoggingSettings.Builder getCloudLoggingSetti * @return Whether the conversationLoggingSettings field is set. */ public boolean hasConversationLoggingSettings() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** @@ -2007,7 +2743,7 @@ public Builder setConversationLoggingSettings( } else { conversationLoggingSettingsBuilder_.setMessage(value); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2031,7 +2767,7 @@ public Builder setConversationLoggingSettings( } else { conversationLoggingSettingsBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2051,7 +2787,7 @@ public Builder setConversationLoggingSettings( public Builder mergeConversationLoggingSettings( com.google.cloud.ces.v1.ConversationLoggingSettings value) { if (conversationLoggingSettingsBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) + if (((bitField0_ & 0x00000040) != 0) && conversationLoggingSettings_ != null && conversationLoggingSettings_ != com.google.cloud.ces.v1.ConversationLoggingSettings.getDefaultInstance()) { @@ -2063,7 +2799,7 @@ public Builder mergeConversationLoggingSettings( conversationLoggingSettingsBuilder_.mergeFrom(value); } if (conversationLoggingSettings_ != null) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000040; onChanged(); } return this; @@ -2082,7 +2818,7 @@ public Builder mergeConversationLoggingSettings( *
                */ public Builder clearConversationLoggingSettings() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000040); conversationLoggingSettings_ = null; if (conversationLoggingSettingsBuilder_ != null) { conversationLoggingSettingsBuilder_.dispose(); @@ -2106,7 +2842,7 @@ public Builder clearConversationLoggingSettings() { */ public com.google.cloud.ces.v1.ConversationLoggingSettings.Builder getConversationLoggingSettingsBuilder() { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000040; onChanged(); return internalGetConversationLoggingSettingsFieldBuilder().getBuilder(); } @@ -2186,7 +2922,7 @@ public Builder clearConversationLoggingSettings() { * @return Whether the evaluationAudioRecordingConfig field is set. */ public boolean hasEvaluationAudioRecordingConfig() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** @@ -2237,7 +2973,7 @@ public Builder setEvaluationAudioRecordingConfig( } else { evaluationAudioRecordingConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2262,7 +2998,7 @@ public Builder setEvaluationAudioRecordingConfig( } else { evaluationAudioRecordingConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2283,7 +3019,7 @@ public Builder setEvaluationAudioRecordingConfig( public Builder mergeEvaluationAudioRecordingConfig( com.google.cloud.ces.v1.AudioRecordingConfig value) { if (evaluationAudioRecordingConfigBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) + if (((bitField0_ & 0x00000080) != 0) && evaluationAudioRecordingConfig_ != null && evaluationAudioRecordingConfig_ != com.google.cloud.ces.v1.AudioRecordingConfig.getDefaultInstance()) { @@ -2295,7 +3031,7 @@ public Builder mergeEvaluationAudioRecordingConfig( evaluationAudioRecordingConfigBuilder_.mergeFrom(value); } if (evaluationAudioRecordingConfig_ != null) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000080; onChanged(); } return this; @@ -2315,7 +3051,7 @@ public Builder mergeEvaluationAudioRecordingConfig( *
                */ public Builder clearEvaluationAudioRecordingConfig() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000080); evaluationAudioRecordingConfig_ = null; if (evaluationAudioRecordingConfigBuilder_ != null) { evaluationAudioRecordingConfigBuilder_.dispose(); @@ -2340,7 +3076,7 @@ public Builder clearEvaluationAudioRecordingConfig() { */ public com.google.cloud.ces.v1.AudioRecordingConfig.Builder getEvaluationAudioRecordingConfigBuilder() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000080; onChanged(); return internalGetEvaluationAudioRecordingConfigFieldBuilder().getBuilder(); } @@ -2421,7 +3157,7 @@ public Builder clearEvaluationAudioRecordingConfig() { * @return Whether the metricAnalysisSettings field is set. */ public boolean hasMetricAnalysisSettings() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** @@ -2469,7 +3205,7 @@ public Builder setMetricAnalysisSettings(com.google.cloud.ces.v1.MetricAnalysisS } else { metricAnalysisSettingsBuilder_.setMessage(value); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2493,7 +3229,7 @@ public Builder setMetricAnalysisSettings( } else { metricAnalysisSettingsBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2513,7 +3249,7 @@ public Builder setMetricAnalysisSettings( public Builder mergeMetricAnalysisSettings( com.google.cloud.ces.v1.MetricAnalysisSettings value) { if (metricAnalysisSettingsBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) + if (((bitField0_ & 0x00000100) != 0) && metricAnalysisSettings_ != null && metricAnalysisSettings_ != com.google.cloud.ces.v1.MetricAnalysisSettings.getDefaultInstance()) { @@ -2525,7 +3261,7 @@ public Builder mergeMetricAnalysisSettings( metricAnalysisSettingsBuilder_.mergeFrom(value); } if (metricAnalysisSettings_ != null) { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000100; onChanged(); } return this; @@ -2544,7 +3280,7 @@ public Builder mergeMetricAnalysisSettings( *
                */ public Builder clearMetricAnalysisSettings() { - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000100); metricAnalysisSettings_ = null; if (metricAnalysisSettingsBuilder_ != null) { metricAnalysisSettingsBuilder_.dispose(); @@ -2568,7 +3304,7 @@ public Builder clearMetricAnalysisSettings() { */ public com.google.cloud.ces.v1.MetricAnalysisSettings.Builder getMetricAnalysisSettingsBuilder() { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000100; onChanged(); return internalGetMetricAnalysisSettingsFieldBuilder().getBuilder(); } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/LoggingSettingsOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/LoggingSettingsOrBuilder.java index 4656f23663ea..633bf4a114bb 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/LoggingSettingsOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/LoggingSettingsOrBuilder.java @@ -73,7 +73,9 @@ public interface LoggingSettingsOrBuilder * * *
                -   * Optional. Configuration for how audio interactions should be recorded.
                +   * Optional. Configuration for how audio interactions should be recorded. The
                +   * audio is subject to redaction as configured in
                +   * [RedactionConfig][google.cloud.ces.v1.LoggingSettings.redaction_config].
                    * 
                * * @@ -88,7 +90,9 @@ public interface LoggingSettingsOrBuilder * * *
                -   * Optional. Configuration for how audio interactions should be recorded.
                +   * Optional. Configuration for how audio interactions should be recorded. The
                +   * audio is subject to redaction as configured in
                +   * [RedactionConfig][google.cloud.ces.v1.LoggingSettings.redaction_config].
                    * 
                * * @@ -103,7 +107,9 @@ public interface LoggingSettingsOrBuilder * * *
                -   * Optional. Configuration for how audio interactions should be recorded.
                +   * Optional. Configuration for how audio interactions should be recorded. The
                +   * audio is subject to redaction as configured in
                +   * [RedactionConfig][google.cloud.ces.v1.LoggingSettings.redaction_config].
                    * 
                * * @@ -116,8 +122,62 @@ public interface LoggingSettingsOrBuilder * * *
                -   * Optional. Settings to describe the BigQuery export behaviors for the app.
                -   * The conversation data will be exported to BigQuery tables if it is enabled.
                +   * Optional. Configures an additional recording of unredacted audio. This can
                +   * be used to maintain a raw audio copy when audio redaction is
                +   * [enabled][google.cloud.ces.v1.RedactionConfig.enable_redaction], typically
                +   * for auditing or monitoring purposes.
                +   * 
                + * + * + * .google.cloud.ces.v1.AudioRecordingConfig unredacted_audio_recording_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the unredactedAudioRecordingConfig field is set. + */ + boolean hasUnredactedAudioRecordingConfig(); + + /** + * + * + *
                +   * Optional. Configures an additional recording of unredacted audio. This can
                +   * be used to maintain a raw audio copy when audio redaction is
                +   * [enabled][google.cloud.ces.v1.RedactionConfig.enable_redaction], typically
                +   * for auditing or monitoring purposes.
                +   * 
                + * + * + * .google.cloud.ces.v1.AudioRecordingConfig unredacted_audio_recording_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The unredactedAudioRecordingConfig. + */ + com.google.cloud.ces.v1.AudioRecordingConfig getUnredactedAudioRecordingConfig(); + + /** + * + * + *
                +   * Optional. Configures an additional recording of unredacted audio. This can
                +   * be used to maintain a raw audio copy when audio redaction is
                +   * [enabled][google.cloud.ces.v1.RedactionConfig.enable_redaction], typically
                +   * for auditing or monitoring purposes.
                +   * 
                + * + * + * .google.cloud.ces.v1.AudioRecordingConfig unredacted_audio_recording_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.AudioRecordingConfigOrBuilder + getUnredactedAudioRecordingConfigOrBuilder(); + + /** + * + * + *
                +   * Optional. Configures the BigQuery export behaviors for the app. The
                +   * conversation data is subject to redaction as configured in
                +   * [RedactionConfig][google.cloud.ces.v1.LoggingSettings.redaction_config].
                    * 
                * * @@ -132,8 +192,9 @@ public interface LoggingSettingsOrBuilder * * *
                -   * Optional. Settings to describe the BigQuery export behaviors for the app.
                -   * The conversation data will be exported to BigQuery tables if it is enabled.
                +   * Optional. Configures the BigQuery export behaviors for the app. The
                +   * conversation data is subject to redaction as configured in
                +   * [RedactionConfig][google.cloud.ces.v1.LoggingSettings.redaction_config].
                    * 
                * * @@ -148,8 +209,9 @@ public interface LoggingSettingsOrBuilder * * *
                -   * Optional. Settings to describe the BigQuery export behaviors for the app.
                -   * The conversation data will be exported to BigQuery tables if it is enabled.
                +   * Optional. Configures the BigQuery export behaviors for the app. The
                +   * conversation data is subject to redaction as configured in
                +   * [RedactionConfig][google.cloud.ces.v1.LoggingSettings.redaction_config].
                    * 
                * * @@ -158,6 +220,56 @@ public interface LoggingSettingsOrBuilder */ com.google.cloud.ces.v1.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.v1.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.v1.BigQueryExportSettings unredacted_bigquery_export_settings = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The unredactedBigqueryExportSettings. + */ + com.google.cloud.ces.v1.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.v1.BigQueryExportSettings unredacted_bigquery_export_settings = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.BigQueryExportSettingsOrBuilder + getUnredactedBigqueryExportSettingsOrBuilder(); + /** * * diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpTool.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpTool.java index c041acb02676..8ebfc1062fe7 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpTool.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpTool.java @@ -55,8 +55,10 @@ private McpTool(com.google.protobuf.GeneratedMessage.Builder builder) { private McpTool() { name_ = ""; + nameOverride_ = ""; description_ = ""; serverAddress_ = ""; + state_ = 0; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -85,6 +87,202 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl com.google.cloud.ces.v1.McpTool.class, com.google.cloud.ces.v1.McpTool.Builder.class); } + /** + * + * + *
                +   * Represents the dynamic availability state of the tool.
                +   * 
                + * + * Protobuf enum {@code google.cloud.ces.v1.McpTool.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                +     * Default state.
                +     * 
                + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
                +     * The tool is available and actively offered by the server.
                +     * 
                + * + * ACTIVE = 1; + */ + ACTIVE(1), + /** + * + * + *
                +     * The tool is configured or pinned, but currently not offered by the
                +     * server.
                +     * 
                + * + * INACTIVE = 2; + */ + INACTIVE(2), + /** + * + * + *
                +     * The tool exists on the server, but does not match the version on the
                +     * server.
                +     * 
                + * + * STALE = 3; + */ + STALE(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
                +     * Default state.
                +     * 
                + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                +     * The tool is available and actively offered by the server.
                +     * 
                + * + * ACTIVE = 1; + */ + public static final int ACTIVE_VALUE = 1; + + /** + * + * + *
                +     * The tool is configured or pinned, but currently not offered by the
                +     * server.
                +     * 
                + * + * INACTIVE = 2; + */ + public static final int INACTIVE_VALUE = 2; + + /** + * + * + *
                +     * The tool exists on the server, but does not match the version on the
                +     * server.
                +     * 
                + * + * STALE = 3; + */ + public static final int STALE_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return ACTIVE; + case 2: + return INACTIVE; + case 3: + return STALE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.ces.v1.McpTool.getDescriptor().getEnumTypes().get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1.McpTool.State) + } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @@ -139,6 +337,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } + public static final int NAME_OVERRIDE_FIELD_NUMBER = 13; + + @SuppressWarnings("serial") + private volatile java.lang.Object nameOverride_ = ""; + + /** + * + * + *
                +   * Optional. The name override of the MCP tool.
                +   * This is populated if the name was overridden by a Toolset override.
                +   * 
                + * + * string name_override = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The nameOverride. + */ + @java.lang.Override + public java.lang.String getNameOverride() { + java.lang.Object ref = nameOverride_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nameOverride_ = s; + return s; + } + } + + /** + * + * + *
                +   * Optional. The name override of the MCP tool.
                +   * This is populated if the name was overridden by a Toolset override.
                +   * 
                + * + * string name_override = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for nameOverride. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameOverrideBytes() { + java.lang.Object ref = nameOverride_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nameOverride_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int DESCRIPTION_FIELD_NUMBER = 2; @SuppressWarnings("serial") @@ -684,6 +937,49 @@ public java.lang.String getCustomHeadersOrThrow(java.lang.String key) { return map.get(key); } + public static final int STATE_FIELD_NUMBER = 12; + private int state_ = 0; + + /** + * + * + *
                +   * Output only. The dynamic availability state of the tool on the external
                +   * server.
                +   * 
                + * + * + * .google.cloud.ces.v1.McpTool.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
                +   * Output only. The dynamic availability state of the tool on the external
                +   * server.
                +   * 
                + * + * + * .google.cloud.ces.v1.McpTool.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.ces.v1.McpTool.State getState() { + com.google.cloud.ces.v1.McpTool.State result = + com.google.cloud.ces.v1.McpTool.State.forNumber(state_); + return result == null ? com.google.cloud.ces.v1.McpTool.State.UNRECOGNIZED : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -724,6 +1020,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessage.serializeStringMapTo( output, internalGetCustomHeaders(), CustomHeadersDefaultEntryHolder.defaultEntry, 9); + if (state_ != com.google.cloud.ces.v1.McpTool.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(12, state_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nameOverride_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 13, nameOverride_); + } getUnknownFields().writeTo(output); } @@ -768,6 +1070,12 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, customHeaders__); } + if (state_ != com.google.cloud.ces.v1.McpTool.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, state_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nameOverride_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(13, nameOverride_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -784,6 +1092,7 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.ces.v1.McpTool other = (com.google.cloud.ces.v1.McpTool) obj; if (!getName().equals(other.getName())) return false; + if (!getNameOverride().equals(other.getNameOverride())) return false; if (!getDescription().equals(other.getDescription())) return false; if (hasInputSchema() != other.hasInputSchema()) return false; if (hasInputSchema()) { @@ -807,6 +1116,7 @@ public boolean equals(final java.lang.Object obj) { if (!getServiceDirectoryConfig().equals(other.getServiceDirectoryConfig())) return false; } if (!internalGetCustomHeaders().equals(other.internalGetCustomHeaders())) return false; + if (state_ != other.state_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -820,6 +1130,8 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + NAME_OVERRIDE_FIELD_NUMBER; + hash = (53 * hash) + getNameOverride().hashCode(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); if (hasInputSchema()) { @@ -848,6 +1160,8 @@ public int hashCode() { hash = (37 * hash) + CUSTOM_HEADERS_FIELD_NUMBER; hash = (53 * hash) + internalGetCustomHeaders().hashCode(); } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1024,6 +1338,7 @@ public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; + nameOverride_ = ""; description_ = ""; inputSchema_ = null; if (inputSchemaBuilder_ != null) { @@ -1052,6 +1367,7 @@ public Builder clear() { serviceDirectoryConfigBuilder_ = null; } internalGetMutableCustomHeaders().clear(); + state_ = 0; return this; } @@ -1091,44 +1407,50 @@ private void buildPartial0(com.google.cloud.ces.v1.McpTool result) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { + result.nameOverride_ = nameOverride_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { result.description_ = description_; } int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { + if (((from_bitField0_ & 0x00000008) != 0)) { result.inputSchema_ = inputSchemaBuilder_ == null ? inputSchema_ : inputSchemaBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000008) != 0)) { + if (((from_bitField0_ & 0x00000010) != 0)) { result.outputSchema_ = outputSchemaBuilder_ == null ? outputSchema_ : outputSchemaBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000020) != 0)) { result.serverAddress_ = serverAddress_; } - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.apiAuthentication_ = apiAuthenticationBuilder_ == null ? apiAuthentication_ : apiAuthenticationBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { result.tlsConfig_ = tlsConfigBuilder_ == null ? tlsConfig_ : tlsConfigBuilder_.build(); to_bitField0_ |= 0x00000008; } - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { result.serviceDirectoryConfig_ = serviceDirectoryConfigBuilder_ == null ? serviceDirectoryConfig_ : serviceDirectoryConfigBuilder_.build(); to_bitField0_ |= 0x00000010; } - if (((from_bitField0_ & 0x00000100) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { result.customHeaders_ = internalGetCustomHeaders(); result.customHeaders_.makeImmutable(); } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.state_ = state_; + } result.bitField0_ |= to_bitField0_; } @@ -1149,9 +1471,14 @@ public Builder mergeFrom(com.google.cloud.ces.v1.McpTool other) { bitField0_ |= 0x00000001; onChanged(); } + if (!other.getNameOverride().isEmpty()) { + nameOverride_ = other.nameOverride_; + bitField0_ |= 0x00000002; + onChanged(); + } if (!other.getDescription().isEmpty()) { description_ = other.description_; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); } if (other.hasInputSchema()) { @@ -1162,7 +1489,7 @@ public Builder mergeFrom(com.google.cloud.ces.v1.McpTool other) { } if (!other.getServerAddress().isEmpty()) { serverAddress_ = other.serverAddress_; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); } if (other.hasApiAuthentication()) { @@ -1175,7 +1502,10 @@ public Builder mergeFrom(com.google.cloud.ces.v1.McpTool other) { mergeServiceDirectoryConfig(other.getServiceDirectoryConfig()); } internalGetMutableCustomHeaders().mergeFrom(other.internalGetCustomHeaders()); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1211,41 +1541,41 @@ public Builder mergeFrom( case 18: { description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; break; } // case 18 case 26: { input.readMessage( internalGetInputSchemaFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 26 case 34: { input.readMessage( internalGetOutputSchemaFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; break; } // case 34 case 42: { serverAddress_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; break; } // case 42 case 50: { input.readMessage( internalGetApiAuthenticationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 50 case 58: { input.readMessage( internalGetTlsConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case 58 case 66: @@ -1253,7 +1583,7 @@ public Builder mergeFrom( input.readMessage( internalGetServiceDirectoryConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 66 case 74: @@ -1265,9 +1595,21 @@ public Builder mergeFrom( internalGetMutableCustomHeaders() .getMutableMap() .put(customHeaders__.getKey(), customHeaders__.getValue()); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; break; } // case 74 + case 96: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000400; + break; + } // case 96 + case 106: + { + nameOverride_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 106 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1398,6 +1740,122 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object nameOverride_ = ""; + + /** + * + * + *
                +     * Optional. The name override of the MCP tool.
                +     * This is populated if the name was overridden by a Toolset override.
                +     * 
                + * + * string name_override = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The nameOverride. + */ + public java.lang.String getNameOverride() { + java.lang.Object ref = nameOverride_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nameOverride_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                +     * Optional. The name override of the MCP tool.
                +     * This is populated if the name was overridden by a Toolset override.
                +     * 
                + * + * string name_override = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for nameOverride. + */ + public com.google.protobuf.ByteString getNameOverrideBytes() { + java.lang.Object ref = nameOverride_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nameOverride_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                +     * Optional. The name override of the MCP tool.
                +     * This is populated if the name was overridden by a Toolset override.
                +     * 
                + * + * string name_override = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The nameOverride to set. + * @return This builder for chaining. + */ + public Builder setNameOverride(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nameOverride_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. The name override of the MCP tool.
                +     * This is populated if the name was overridden by a Toolset override.
                +     * 
                + * + * string name_override = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearNameOverride() { + nameOverride_ = getDefaultInstance().getNameOverride(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. The name override of the MCP tool.
                +     * This is populated if the name was overridden by a Toolset override.
                +     * 
                + * + * string name_override = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for nameOverride to set. + * @return This builder for chaining. + */ + public Builder setNameOverrideBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nameOverride_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + private java.lang.Object description_ = ""; /** @@ -1463,7 +1921,7 @@ public Builder setDescription(java.lang.String value) { throw new NullPointerException(); } description_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1481,7 +1939,7 @@ public Builder setDescription(java.lang.String value) { */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1504,7 +1962,7 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); description_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1529,7 +1987,7 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * @return Whether the inputSchema field is set. */ public boolean hasInputSchema() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** @@ -1573,7 +2031,7 @@ public Builder setInputSchema(com.google.cloud.ces.v1.Schema value) { } else { inputSchemaBuilder_.setMessage(value); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1594,7 +2052,7 @@ public Builder setInputSchema(com.google.cloud.ces.v1.Schema.Builder builderForV } else { inputSchemaBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1611,7 +2069,7 @@ public Builder setInputSchema(com.google.cloud.ces.v1.Schema.Builder builderForV */ public Builder mergeInputSchema(com.google.cloud.ces.v1.Schema value) { if (inputSchemaBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) + if (((bitField0_ & 0x00000008) != 0) && inputSchema_ != null && inputSchema_ != com.google.cloud.ces.v1.Schema.getDefaultInstance()) { getInputSchemaBuilder().mergeFrom(value); @@ -1622,7 +2080,7 @@ public Builder mergeInputSchema(com.google.cloud.ces.v1.Schema value) { inputSchemaBuilder_.mergeFrom(value); } if (inputSchema_ != null) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); } return this; @@ -1639,7 +2097,7 @@ public Builder mergeInputSchema(com.google.cloud.ces.v1.Schema value) { *
                */ public Builder clearInputSchema() { - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); inputSchema_ = null; if (inputSchemaBuilder_ != null) { inputSchemaBuilder_.dispose(); @@ -1660,7 +2118,7 @@ public Builder clearInputSchema() { *
                */ public com.google.cloud.ces.v1.Schema.Builder getInputSchemaBuilder() { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return internalGetInputSchemaFieldBuilder().getBuilder(); } @@ -1733,7 +2191,7 @@ public com.google.cloud.ces.v1.SchemaOrBuilder getInputSchemaOrBuilder() { * @return Whether the outputSchema field is set. */ public boolean hasOutputSchema() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000010) != 0); } /** @@ -1779,7 +2237,7 @@ public Builder setOutputSchema(com.google.cloud.ces.v1.Schema value) { } else { outputSchemaBuilder_.setMessage(value); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1801,7 +2259,7 @@ public Builder setOutputSchema(com.google.cloud.ces.v1.Schema.Builder builderFor } else { outputSchemaBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1819,7 +2277,7 @@ public Builder setOutputSchema(com.google.cloud.ces.v1.Schema.Builder builderFor */ public Builder mergeOutputSchema(com.google.cloud.ces.v1.Schema value) { if (outputSchemaBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) + if (((bitField0_ & 0x00000010) != 0) && outputSchema_ != null && outputSchema_ != com.google.cloud.ces.v1.Schema.getDefaultInstance()) { getOutputSchemaBuilder().mergeFrom(value); @@ -1830,7 +2288,7 @@ public Builder mergeOutputSchema(com.google.cloud.ces.v1.Schema value) { outputSchemaBuilder_.mergeFrom(value); } if (outputSchema_ != null) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); } return this; @@ -1848,7 +2306,7 @@ public Builder mergeOutputSchema(com.google.cloud.ces.v1.Schema value) { *
                */ public Builder clearOutputSchema() { - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); outputSchema_ = null; if (outputSchemaBuilder_ != null) { outputSchemaBuilder_.dispose(); @@ -1870,7 +2328,7 @@ public Builder clearOutputSchema() { *
                */ public com.google.cloud.ces.v1.Schema.Builder getOutputSchemaBuilder() { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return internalGetOutputSchemaFieldBuilder().getBuilder(); } @@ -2007,7 +2465,7 @@ public Builder setServerAddress(java.lang.String value) { throw new NullPointerException(); } serverAddress_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2031,7 +2489,7 @@ public Builder setServerAddress(java.lang.String value) { */ public Builder clearServerAddress() { serverAddress_ = getDefaultInstance().getServerAddress(); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -2060,7 +2518,7 @@ public Builder setServerAddressBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); serverAddress_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2089,7 +2547,7 @@ public Builder setServerAddressBytes(com.google.protobuf.ByteString value) { * @return Whether the apiAuthentication field is set. */ public boolean hasApiAuthentication() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** @@ -2141,7 +2599,7 @@ public Builder setApiAuthentication(com.google.cloud.ces.v1.ApiAuthentication va } else { apiAuthenticationBuilder_.setMessage(value); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2167,7 +2625,7 @@ public Builder setApiAuthentication( } else { apiAuthenticationBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2188,7 +2646,7 @@ public Builder setApiAuthentication( */ public Builder mergeApiAuthentication(com.google.cloud.ces.v1.ApiAuthentication value) { if (apiAuthenticationBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) + if (((bitField0_ & 0x00000040) != 0) && apiAuthentication_ != null && apiAuthentication_ != com.google.cloud.ces.v1.ApiAuthentication.getDefaultInstance()) { @@ -2200,7 +2658,7 @@ public Builder mergeApiAuthentication(com.google.cloud.ces.v1.ApiAuthentication apiAuthenticationBuilder_.mergeFrom(value); } if (apiAuthentication_ != null) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); } return this; @@ -2221,7 +2679,7 @@ public Builder mergeApiAuthentication(com.google.cloud.ces.v1.ApiAuthentication *
                */ public Builder clearApiAuthentication() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); apiAuthentication_ = null; if (apiAuthenticationBuilder_ != null) { apiAuthenticationBuilder_.dispose(); @@ -2246,7 +2704,7 @@ public Builder clearApiAuthentication() { *
                */ public com.google.cloud.ces.v1.ApiAuthentication.Builder getApiAuthenticationBuilder() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return internalGetApiAuthenticationFieldBuilder().getBuilder(); } @@ -2328,7 +2786,7 @@ public com.google.cloud.ces.v1.ApiAuthenticationOrBuilder getApiAuthenticationOr * @return Whether the tlsConfig field is set. */ public boolean hasTlsConfig() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** @@ -2376,7 +2834,7 @@ public Builder setTlsConfig(com.google.cloud.ces.v1.TlsConfig value) { } else { tlsConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2399,7 +2857,7 @@ public Builder setTlsConfig(com.google.cloud.ces.v1.TlsConfig.Builder builderFor } else { tlsConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2418,7 +2876,7 @@ public Builder setTlsConfig(com.google.cloud.ces.v1.TlsConfig.Builder builderFor */ public Builder mergeTlsConfig(com.google.cloud.ces.v1.TlsConfig value) { if (tlsConfigBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) + if (((bitField0_ & 0x00000080) != 0) && tlsConfig_ != null && tlsConfig_ != com.google.cloud.ces.v1.TlsConfig.getDefaultInstance()) { getTlsConfigBuilder().mergeFrom(value); @@ -2429,7 +2887,7 @@ public Builder mergeTlsConfig(com.google.cloud.ces.v1.TlsConfig value) { tlsConfigBuilder_.mergeFrom(value); } if (tlsConfig_ != null) { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); } return this; @@ -2448,7 +2906,7 @@ public Builder mergeTlsConfig(com.google.cloud.ces.v1.TlsConfig value) { *
                */ public Builder clearTlsConfig() { - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); tlsConfig_ = null; if (tlsConfigBuilder_ != null) { tlsConfigBuilder_.dispose(); @@ -2471,7 +2929,7 @@ public Builder clearTlsConfig() { *
                */ public com.google.cloud.ces.v1.TlsConfig.Builder getTlsConfigBuilder() { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return internalGetTlsConfigFieldBuilder().getBuilder(); } @@ -2549,7 +3007,7 @@ public com.google.cloud.ces.v1.TlsConfigOrBuilder getTlsConfigOrBuilder() { * @return Whether the serviceDirectoryConfig field is set. */ public boolean hasServiceDirectoryConfig() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** @@ -2597,7 +3055,7 @@ public Builder setServiceDirectoryConfig(com.google.cloud.ces.v1.ServiceDirector } else { serviceDirectoryConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2621,7 +3079,7 @@ public Builder setServiceDirectoryConfig( } else { serviceDirectoryConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2641,7 +3099,7 @@ public Builder setServiceDirectoryConfig( public Builder mergeServiceDirectoryConfig( com.google.cloud.ces.v1.ServiceDirectoryConfig value) { if (serviceDirectoryConfigBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) + if (((bitField0_ & 0x00000100) != 0) && serviceDirectoryConfig_ != null && serviceDirectoryConfig_ != com.google.cloud.ces.v1.ServiceDirectoryConfig.getDefaultInstance()) { @@ -2653,7 +3111,7 @@ public Builder mergeServiceDirectoryConfig( serviceDirectoryConfigBuilder_.mergeFrom(value); } if (serviceDirectoryConfig_ != null) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); } return this; @@ -2672,7 +3130,7 @@ public Builder mergeServiceDirectoryConfig( *
                */ public Builder clearServiceDirectoryConfig() { - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); serviceDirectoryConfig_ = null; if (serviceDirectoryConfigBuilder_ != null) { serviceDirectoryConfigBuilder_.dispose(); @@ -2696,7 +3154,7 @@ public Builder clearServiceDirectoryConfig() { */ public com.google.cloud.ces.v1.ServiceDirectoryConfig.Builder getServiceDirectoryConfigBuilder() { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return internalGetServiceDirectoryConfigFieldBuilder().getBuilder(); } @@ -2773,7 +3231,7 @@ public Builder clearServiceDirectoryConfig() { if (!customHeaders_.isMutable()) { customHeaders_ = customHeaders_.copy(); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return customHeaders_; } @@ -2883,7 +3341,7 @@ public java.lang.String getCustomHeadersOrThrow(java.lang.String key) { } public Builder clearCustomHeaders() { - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); internalGetMutableCustomHeaders().getMutableMap().clear(); return this; } @@ -2913,7 +3371,7 @@ public Builder removeCustomHeaders(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableCustomHeaders() { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; return internalGetMutableCustomHeaders().getMutableMap(); } @@ -2939,7 +3397,7 @@ public Builder putCustomHeaders(java.lang.String key, java.lang.String value) { throw new NullPointerException("map value"); } internalGetMutableCustomHeaders().getMutableMap().put(key, value); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; return this; } @@ -2959,7 +3417,117 @@ public Builder putCustomHeaders(java.lang.String key, java.lang.String value) { */ public Builder putAllCustomHeaders(java.util.Map values) { internalGetMutableCustomHeaders().getMutableMap().putAll(values); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; + return this; + } + + private int state_ = 0; + + /** + * + * + *
                +     * Output only. The dynamic availability state of the tool on the external
                +     * server.
                +     * 
                + * + * + * .google.cloud.ces.v1.McpTool.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
                +     * Output only. The dynamic availability state of the tool on the external
                +     * server.
                +     * 
                + * + * + * .google.cloud.ces.v1.McpTool.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. The dynamic availability state of the tool on the external
                +     * server.
                +     * 
                + * + * + * .google.cloud.ces.v1.McpTool.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.ces.v1.McpTool.State getState() { + com.google.cloud.ces.v1.McpTool.State result = + com.google.cloud.ces.v1.McpTool.State.forNumber(state_); + return result == null ? com.google.cloud.ces.v1.McpTool.State.UNRECOGNIZED : result; + } + + /** + * + * + *
                +     * Output only. The dynamic availability state of the tool on the external
                +     * server.
                +     * 
                + * + * + * .google.cloud.ces.v1.McpTool.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.ces.v1.McpTool.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000400; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. The dynamic availability state of the tool on the external
                +     * server.
                +     * 
                + * + * + * .google.cloud.ces.v1.McpTool.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000400); + state_ = 0; + onChanged(); return this; } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolDefinition.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolDefinition.java new file mode 100644 index 000000000000..9aa99ce35c3e --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolDefinition.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/ces/v1/mcp_toolset.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
                + * Container for a tool's core definition elements that are snapshot.
                + * Schemas in the snapshot are used as-is and cannot be overridden.
                + * 
                + * + * Protobuf type {@code google.cloud.ces.v1.McpToolDefinition} + */ +@com.google.protobuf.Generated +public final class McpToolDefinition extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.McpToolDefinition) + McpToolDefinitionOrBuilder { + 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= */ "", + "McpToolDefinition"); + } + + // Use McpToolDefinition.newBuilder() to construct. + private McpToolDefinition(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private McpToolDefinition() { + description_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.McpToolsetProto + .internal_static_google_cloud_ces_v1_McpToolDefinition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.McpToolsetProto + .internal_static_google_cloud_ces_v1_McpToolDefinition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.McpToolDefinition.class, + com.google.cloud.ces.v1.McpToolDefinition.Builder.class); + } + + private int bitField0_; + public static final int DESCRIPTION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
                +   * Output only. The description of the MCP tool. This can be overridden
                +   * by `description_override` in `McpToolOverride`.
                +   * 
                + * + * string description = 1 [(.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 MCP tool. This can be overridden
                +   * by `description_override` in `McpToolOverride`.
                +   * 
                + * + * string description = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INPUT_SCHEMA_FIELD_NUMBER = 2; + private com.google.cloud.ces.v1.Schema inputSchema_; + + /** + * + * + *
                +   * Output only. The schema of the input arguments of the MCP tool.
                +   * 
                + * + * + * .google.cloud.ces.v1.Schema input_schema = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the inputSchema field is set. + */ + @java.lang.Override + public boolean hasInputSchema() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                +   * Output only. The schema of the input arguments of the MCP tool.
                +   * 
                + * + * + * .google.cloud.ces.v1.Schema input_schema = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The inputSchema. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Schema getInputSchema() { + return inputSchema_ == null + ? com.google.cloud.ces.v1.Schema.getDefaultInstance() + : inputSchema_; + } + + /** + * + * + *
                +   * Output only. The schema of the input arguments of the MCP tool.
                +   * 
                + * + * + * .google.cloud.ces.v1.Schema input_schema = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.SchemaOrBuilder getInputSchemaOrBuilder() { + return inputSchema_ == null + ? com.google.cloud.ces.v1.Schema.getDefaultInstance() + : inputSchema_; + } + + public static final int OUTPUT_SCHEMA_FIELD_NUMBER = 3; + private com.google.cloud.ces.v1.Schema outputSchema_; + + /** + * + * + *
                +   * Output only. The schema of the output arguments of the MCP tool.
                +   * 
                + * + * + * .google.cloud.ces.v1.Schema output_schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the outputSchema field is set. + */ + @java.lang.Override + public boolean hasOutputSchema() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                +   * Output only. The schema of the output arguments of the MCP tool.
                +   * 
                + * + * + * .google.cloud.ces.v1.Schema output_schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The outputSchema. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Schema getOutputSchema() { + return outputSchema_ == null + ? com.google.cloud.ces.v1.Schema.getDefaultInstance() + : outputSchema_; + } + + /** + * + * + *
                +   * Output only. The schema of the output arguments of the MCP tool.
                +   * 
                + * + * + * .google.cloud.ces.v1.Schema output_schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.SchemaOrBuilder getOutputSchemaOrBuilder() { + return outputSchema_ == null + ? com.google.cloud.ces.v1.Schema.getDefaultInstance() + : outputSchema_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, description_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getInputSchema()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getOutputSchema()); + } + 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(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, description_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getInputSchema()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getOutputSchema()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.v1.McpToolDefinition)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.McpToolDefinition other = + (com.google.cloud.ces.v1.McpToolDefinition) obj; + + if (!getDescription().equals(other.getDescription())) return false; + if (hasInputSchema() != other.hasInputSchema()) return false; + if (hasInputSchema()) { + if (!getInputSchema().equals(other.getInputSchema())) return false; + } + if (hasOutputSchema() != other.hasOutputSchema()) return false; + if (hasOutputSchema()) { + if (!getOutputSchema().equals(other.getOutputSchema())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (hasInputSchema()) { + hash = (37 * hash) + INPUT_SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getInputSchema().hashCode(); + } + if (hasOutputSchema()) { + hash = (37 * hash) + OUTPUT_SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getOutputSchema().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.McpToolDefinition parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.McpToolDefinition parseFrom( + 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.v1.McpToolDefinition parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.McpToolDefinition parseFrom( + com.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.v1.McpToolDefinition parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.McpToolDefinition parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.McpToolDefinition parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.McpToolDefinition parseFrom( + java.io.InputStream 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.v1.McpToolDefinition parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.McpToolDefinition parseDelimitedFrom( + java.io.InputStream 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.v1.McpToolDefinition parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.McpToolDefinition parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, 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.v1.McpToolDefinition prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                +   * Container for a tool's core definition elements that are snapshot.
                +   * Schemas in the snapshot are used as-is and cannot be overridden.
                +   * 
                + * + * Protobuf type {@code google.cloud.ces.v1.McpToolDefinition} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.McpToolDefinition) + com.google.cloud.ces.v1.McpToolDefinitionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.McpToolsetProto + .internal_static_google_cloud_ces_v1_McpToolDefinition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.McpToolsetProto + .internal_static_google_cloud_ces_v1_McpToolDefinition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.McpToolDefinition.class, + com.google.cloud.ces.v1.McpToolDefinition.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.McpToolDefinition.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetInputSchemaFieldBuilder(); + internalGetOutputSchemaFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + description_ = ""; + inputSchema_ = null; + if (inputSchemaBuilder_ != null) { + inputSchemaBuilder_.dispose(); + inputSchemaBuilder_ = null; + } + outputSchema_ = null; + if (outputSchemaBuilder_ != null) { + outputSchemaBuilder_.dispose(); + outputSchemaBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.McpToolsetProto + .internal_static_google_cloud_ces_v1_McpToolDefinition_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.McpToolDefinition getDefaultInstanceForType() { + return com.google.cloud.ces.v1.McpToolDefinition.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.McpToolDefinition build() { + com.google.cloud.ces.v1.McpToolDefinition result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.McpToolDefinition buildPartial() { + com.google.cloud.ces.v1.McpToolDefinition result = + new com.google.cloud.ces.v1.McpToolDefinition(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.McpToolDefinition result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.description_ = description_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.inputSchema_ = + inputSchemaBuilder_ == null ? inputSchema_ : inputSchemaBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.outputSchema_ = + outputSchemaBuilder_ == null ? outputSchema_ : outputSchemaBuilder_.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.ces.v1.McpToolDefinition) { + return mergeFrom((com.google.cloud.ces.v1.McpToolDefinition) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.McpToolDefinition other) { + if (other == com.google.cloud.ces.v1.McpToolDefinition.getDefaultInstance()) return this; + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasInputSchema()) { + mergeInputSchema(other.getInputSchema()); + } + if (other.hasOutputSchema()) { + mergeOutputSchema(other.getOutputSchema()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetInputSchemaFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetOutputSchemaFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object description_ = ""; + + /** + * + * + *
                +     * Output only. The description of the MCP tool. This can be overridden
                +     * by `description_override` in `McpToolOverride`.
                +     * 
                + * + * string description = 1 [(.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 MCP tool. This can be overridden
                +     * by `description_override` in `McpToolOverride`.
                +     * 
                + * + * string description = 1 [(.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 MCP tool. This can be overridden
                +     * by `description_override` in `McpToolOverride`.
                +     * 
                + * + * string description = 1 [(.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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. The description of the MCP tool. This can be overridden
                +     * by `description_override` in `McpToolOverride`.
                +     * 
                + * + * string description = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. The description of the MCP tool. This can be overridden
                +     * by `description_override` in `McpToolOverride`.
                +     * 
                + * + * string description = 1 [(.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_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.ces.v1.Schema inputSchema_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Schema, + com.google.cloud.ces.v1.Schema.Builder, + com.google.cloud.ces.v1.SchemaOrBuilder> + inputSchemaBuilder_; + + /** + * + * + *
                +     * Output only. The schema of the input arguments of the MCP tool.
                +     * 
                + * + * + * .google.cloud.ces.v1.Schema input_schema = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the inputSchema field is set. + */ + public boolean hasInputSchema() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                +     * Output only. The schema of the input arguments of the MCP tool.
                +     * 
                + * + * + * .google.cloud.ces.v1.Schema input_schema = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The inputSchema. + */ + public com.google.cloud.ces.v1.Schema getInputSchema() { + if (inputSchemaBuilder_ == null) { + return inputSchema_ == null + ? com.google.cloud.ces.v1.Schema.getDefaultInstance() + : inputSchema_; + } else { + return inputSchemaBuilder_.getMessage(); + } + } + + /** + * + * + *
                +     * Output only. The schema of the input arguments of the MCP tool.
                +     * 
                + * + * + * .google.cloud.ces.v1.Schema input_schema = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setInputSchema(com.google.cloud.ces.v1.Schema value) { + if (inputSchemaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inputSchema_ = value; + } else { + inputSchemaBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. The schema of the input arguments of the MCP tool.
                +     * 
                + * + * + * .google.cloud.ces.v1.Schema input_schema = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setInputSchema(com.google.cloud.ces.v1.Schema.Builder builderForValue) { + if (inputSchemaBuilder_ == null) { + inputSchema_ = builderForValue.build(); + } else { + inputSchemaBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. The schema of the input arguments of the MCP tool.
                +     * 
                + * + * + * .google.cloud.ces.v1.Schema input_schema = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeInputSchema(com.google.cloud.ces.v1.Schema value) { + if (inputSchemaBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && inputSchema_ != null + && inputSchema_ != com.google.cloud.ces.v1.Schema.getDefaultInstance()) { + getInputSchemaBuilder().mergeFrom(value); + } else { + inputSchema_ = value; + } + } else { + inputSchemaBuilder_.mergeFrom(value); + } + if (inputSchema_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                +     * Output only. The schema of the input arguments of the MCP tool.
                +     * 
                + * + * + * .google.cloud.ces.v1.Schema input_schema = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearInputSchema() { + bitField0_ = (bitField0_ & ~0x00000002); + inputSchema_ = null; + if (inputSchemaBuilder_ != null) { + inputSchemaBuilder_.dispose(); + inputSchemaBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. The schema of the input arguments of the MCP tool.
                +     * 
                + * + * + * .google.cloud.ces.v1.Schema input_schema = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1.Schema.Builder getInputSchemaBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetInputSchemaFieldBuilder().getBuilder(); + } + + /** + * + * + *
                +     * Output only. The schema of the input arguments of the MCP tool.
                +     * 
                + * + * + * .google.cloud.ces.v1.Schema input_schema = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1.SchemaOrBuilder getInputSchemaOrBuilder() { + if (inputSchemaBuilder_ != null) { + return inputSchemaBuilder_.getMessageOrBuilder(); + } else { + return inputSchema_ == null + ? com.google.cloud.ces.v1.Schema.getDefaultInstance() + : inputSchema_; + } + } + + /** + * + * + *
                +     * Output only. The schema of the input arguments of the MCP tool.
                +     * 
                + * + * + * .google.cloud.ces.v1.Schema input_schema = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Schema, + com.google.cloud.ces.v1.Schema.Builder, + com.google.cloud.ces.v1.SchemaOrBuilder> + internalGetInputSchemaFieldBuilder() { + if (inputSchemaBuilder_ == null) { + inputSchemaBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Schema, + com.google.cloud.ces.v1.Schema.Builder, + com.google.cloud.ces.v1.SchemaOrBuilder>( + getInputSchema(), getParentForChildren(), isClean()); + inputSchema_ = null; + } + return inputSchemaBuilder_; + } + + private com.google.cloud.ces.v1.Schema outputSchema_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Schema, + com.google.cloud.ces.v1.Schema.Builder, + com.google.cloud.ces.v1.SchemaOrBuilder> + outputSchemaBuilder_; + + /** + * + * + *
                +     * Output only. The schema of the output arguments of the MCP tool.
                +     * 
                + * + * + * .google.cloud.ces.v1.Schema output_schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the outputSchema field is set. + */ + public boolean hasOutputSchema() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                +     * Output only. The schema of the output arguments of the MCP tool.
                +     * 
                + * + * + * .google.cloud.ces.v1.Schema output_schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The outputSchema. + */ + public com.google.cloud.ces.v1.Schema getOutputSchema() { + if (outputSchemaBuilder_ == null) { + return outputSchema_ == null + ? com.google.cloud.ces.v1.Schema.getDefaultInstance() + : outputSchema_; + } else { + return outputSchemaBuilder_.getMessage(); + } + } + + /** + * + * + *
                +     * Output only. The schema of the output arguments of the MCP tool.
                +     * 
                + * + * + * .google.cloud.ces.v1.Schema output_schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setOutputSchema(com.google.cloud.ces.v1.Schema value) { + if (outputSchemaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputSchema_ = value; + } else { + outputSchemaBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. The schema of the output arguments of the MCP tool.
                +     * 
                + * + * + * .google.cloud.ces.v1.Schema output_schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setOutputSchema(com.google.cloud.ces.v1.Schema.Builder builderForValue) { + if (outputSchemaBuilder_ == null) { + outputSchema_ = builderForValue.build(); + } else { + outputSchemaBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. The schema of the output arguments of the MCP tool.
                +     * 
                + * + * + * .google.cloud.ces.v1.Schema output_schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeOutputSchema(com.google.cloud.ces.v1.Schema value) { + if (outputSchemaBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && outputSchema_ != null + && outputSchema_ != com.google.cloud.ces.v1.Schema.getDefaultInstance()) { + getOutputSchemaBuilder().mergeFrom(value); + } else { + outputSchema_ = value; + } + } else { + outputSchemaBuilder_.mergeFrom(value); + } + if (outputSchema_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                +     * Output only. The schema of the output arguments of the MCP tool.
                +     * 
                + * + * + * .google.cloud.ces.v1.Schema output_schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearOutputSchema() { + bitField0_ = (bitField0_ & ~0x00000004); + outputSchema_ = null; + if (outputSchemaBuilder_ != null) { + outputSchemaBuilder_.dispose(); + outputSchemaBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. The schema of the output arguments of the MCP tool.
                +     * 
                + * + * + * .google.cloud.ces.v1.Schema output_schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1.Schema.Builder getOutputSchemaBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetOutputSchemaFieldBuilder().getBuilder(); + } + + /** + * + * + *
                +     * Output only. The schema of the output arguments of the MCP tool.
                +     * 
                + * + * + * .google.cloud.ces.v1.Schema output_schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1.SchemaOrBuilder getOutputSchemaOrBuilder() { + if (outputSchemaBuilder_ != null) { + return outputSchemaBuilder_.getMessageOrBuilder(); + } else { + return outputSchema_ == null + ? com.google.cloud.ces.v1.Schema.getDefaultInstance() + : outputSchema_; + } + } + + /** + * + * + *
                +     * Output only. The schema of the output arguments of the MCP tool.
                +     * 
                + * + * + * .google.cloud.ces.v1.Schema output_schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Schema, + com.google.cloud.ces.v1.Schema.Builder, + com.google.cloud.ces.v1.SchemaOrBuilder> + internalGetOutputSchemaFieldBuilder() { + if (outputSchemaBuilder_ == null) { + outputSchemaBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Schema, + com.google.cloud.ces.v1.Schema.Builder, + com.google.cloud.ces.v1.SchemaOrBuilder>( + getOutputSchema(), getParentForChildren(), isClean()); + outputSchema_ = null; + } + return outputSchemaBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.McpToolDefinition) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.McpToolDefinition) + private static final com.google.cloud.ces.v1.McpToolDefinition DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.McpToolDefinition(); + } + + public static com.google.cloud.ces.v1.McpToolDefinition getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public McpToolDefinition parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.v1.McpToolDefinition getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolDefinitionOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolDefinitionOrBuilder.java new file mode 100644 index 000000000000..021b6c0fedd7 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolDefinitionOrBuilder.java @@ -0,0 +1,142 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/mcp_toolset.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface McpToolDefinitionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.McpToolDefinition) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                +   * Output only. The description of the MCP tool. This can be overridden
                +   * by `description_override` in `McpToolOverride`.
                +   * 
                + * + * string description = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
                +   * Output only. The description of the MCP tool. This can be overridden
                +   * by `description_override` in `McpToolOverride`.
                +   * 
                + * + * string description = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
                +   * Output only. The schema of the input arguments of the MCP tool.
                +   * 
                + * + * + * .google.cloud.ces.v1.Schema input_schema = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the inputSchema field is set. + */ + boolean hasInputSchema(); + + /** + * + * + *
                +   * Output only. The schema of the input arguments of the MCP tool.
                +   * 
                + * + * + * .google.cloud.ces.v1.Schema input_schema = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The inputSchema. + */ + com.google.cloud.ces.v1.Schema getInputSchema(); + + /** + * + * + *
                +   * Output only. The schema of the input arguments of the MCP tool.
                +   * 
                + * + * + * .google.cloud.ces.v1.Schema input_schema = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.ces.v1.SchemaOrBuilder getInputSchemaOrBuilder(); + + /** + * + * + *
                +   * Output only. The schema of the output arguments of the MCP tool.
                +   * 
                + * + * + * .google.cloud.ces.v1.Schema output_schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the outputSchema field is set. + */ + boolean hasOutputSchema(); + + /** + * + * + *
                +   * Output only. The schema of the output arguments of the MCP tool.
                +   * 
                + * + * + * .google.cloud.ces.v1.Schema output_schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The outputSchema. + */ + com.google.cloud.ces.v1.Schema getOutputSchema(); + + /** + * + * + *
                +   * Output only. The schema of the output arguments of the MCP tool.
                +   * 
                + * + * + * .google.cloud.ces.v1.Schema output_schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.ces.v1.SchemaOrBuilder getOutputSchemaOrBuilder(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolOrBuilder.java index 2506d5c6caf8..9dfa778249ac 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolOrBuilder.java @@ -52,6 +52,34 @@ public interface McpToolOrBuilder */ com.google.protobuf.ByteString getNameBytes(); + /** + * + * + *
                +   * Optional. The name override of the MCP tool.
                +   * This is populated if the name was overridden by a Toolset override.
                +   * 
                + * + * string name_override = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The nameOverride. + */ + java.lang.String getNameOverride(); + + /** + * + * + *
                +   * Optional. The name override of the MCP tool.
                +   * This is populated if the name was overridden by a Toolset override.
                +   * 
                + * + * string name_override = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for nameOverride. + */ + com.google.protobuf.ByteString getNameOverrideBytes(); + /** * * @@ -424,4 +452,36 @@ java.lang.String getCustomHeadersOrDefault( * */ java.lang.String getCustomHeadersOrThrow(java.lang.String key); + + /** + * + * + *
                +   * Output only. The dynamic availability state of the tool on the external
                +   * server.
                +   * 
                + * + * + * .google.cloud.ces.v1.McpTool.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
                +   * Output only. The dynamic availability state of the tool on the external
                +   * server.
                +   * 
                + * + * + * .google.cloud.ces.v1.McpTool.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.ces.v1.McpTool.State getState(); } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolOverride.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolOverride.java new file mode 100644 index 000000000000..96f3efc0b80f --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolOverride.java @@ -0,0 +1,1337 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language 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/v1/mcp_toolset.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
                + * Overrides associated with a given tool in a Toolset.
                + * This enables "pinning" or "overriding" of tool definitions from the external
                + * dynamic server.
                + * 
                + * + * Protobuf type {@code google.cloud.ces.v1.McpToolOverride} + */ +@com.google.protobuf.Generated +public final class McpToolOverride extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.McpToolOverride) + McpToolOverrideOrBuilder { + 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= */ "", + "McpToolOverride"); + } + + // Use McpToolOverride.newBuilder() to construct. + private McpToolOverride(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private McpToolOverride() { + tool_ = ""; + nameOverride_ = ""; + descriptionOverride_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.McpToolsetProto + .internal_static_google_cloud_ces_v1_McpToolOverride_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.McpToolsetProto + .internal_static_google_cloud_ces_v1_McpToolOverride_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.McpToolOverride.class, + com.google.cloud.ces.v1.McpToolOverride.Builder.class); + } + + private int bitField0_; + public static final int TOOL_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object tool_ = ""; + + /** + * + * + *
                +   * Required. The original name of the tool as it is emitted by the MCP server.
                +   * 
                + * + * string tool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The tool. + */ + @java.lang.Override + public java.lang.String getTool() { + java.lang.Object ref = tool_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tool_ = s; + return s; + } + } + + /** + * + * + *
                +   * Required. The original name of the tool as it is emitted by the MCP server.
                +   * 
                + * + * string tool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for tool. + */ + @java.lang.Override + public com.google.protobuf.ByteString getToolBytes() { + java.lang.Object ref = tool_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tool_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_OVERRIDE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nameOverride_ = ""; + + /** + * + * + *
                +   * Optional. If present, this tool uses this name in the Agent instead of the
                +   * original name. This is primarily used as an alias if the MCP server offers
                +   * poorly named tools.
                +   * 
                + * + * string name_override = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The nameOverride. + */ + @java.lang.Override + public java.lang.String getNameOverride() { + java.lang.Object ref = nameOverride_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nameOverride_ = s; + return s; + } + } + + /** + * + * + *
                +   * Optional. If present, this tool uses this name in the Agent instead of the
                +   * original name. This is primarily used as an alias if the MCP server offers
                +   * poorly named tools.
                +   * 
                + * + * string name_override = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for nameOverride. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameOverrideBytes() { + java.lang.Object ref = nameOverride_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nameOverride_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_OVERRIDE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object descriptionOverride_ = ""; + + /** + * + * + *
                +   * Optional. If present, this tool uses this description instead of the
                +   * original description from the server.
                +   * 
                + * + * string description_override = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The descriptionOverride. + */ + @java.lang.Override + public java.lang.String getDescriptionOverride() { + java.lang.Object ref = descriptionOverride_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + descriptionOverride_ = s; + return s; + } + } + + /** + * + * + *
                +   * Optional. If present, this tool uses this description instead of the
                +   * original description from the server.
                +   * 
                + * + * string description_override = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for descriptionOverride. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionOverrideBytes() { + java.lang.Object ref = descriptionOverride_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + descriptionOverride_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SNAPSHOT_FIELD_NUMBER = 4; + private com.google.cloud.ces.v1.McpToolDefinition snapshot_; + + /** + * + * + *
                +   * Output only. If present, this tool is "Pinned" and uses the snapshot values
                +   * as fallbacks if the server becomes temporarily unavailable or if no
                +   * Override is present.
                +   * 
                + * + * + * .google.cloud.ces.v1.McpToolDefinition snapshot = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the snapshot field is set. + */ + @java.lang.Override + public boolean hasSnapshot() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                +   * Output only. If present, this tool is "Pinned" and uses the snapshot values
                +   * as fallbacks if the server becomes temporarily unavailable or if no
                +   * Override is present.
                +   * 
                + * + * + * .google.cloud.ces.v1.McpToolDefinition snapshot = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The snapshot. + */ + @java.lang.Override + public com.google.cloud.ces.v1.McpToolDefinition getSnapshot() { + return snapshot_ == null + ? com.google.cloud.ces.v1.McpToolDefinition.getDefaultInstance() + : snapshot_; + } + + /** + * + * + *
                +   * Output only. If present, this tool is "Pinned" and uses the snapshot values
                +   * as fallbacks if the server becomes temporarily unavailable or if no
                +   * Override is present.
                +   * 
                + * + * + * .google.cloud.ces.v1.McpToolDefinition snapshot = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.McpToolDefinitionOrBuilder getSnapshotOrBuilder() { + return snapshot_ == null + ? com.google.cloud.ces.v1.McpToolDefinition.getDefaultInstance() + : snapshot_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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(tool_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, tool_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nameOverride_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nameOverride_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(descriptionOverride_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, descriptionOverride_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getSnapshot()); + } + 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(tool_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, tool_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nameOverride_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nameOverride_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(descriptionOverride_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, descriptionOverride_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSnapshot()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.v1.McpToolOverride)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.McpToolOverride other = (com.google.cloud.ces.v1.McpToolOverride) obj; + + if (!getTool().equals(other.getTool())) return false; + if (!getNameOverride().equals(other.getNameOverride())) return false; + if (!getDescriptionOverride().equals(other.getDescriptionOverride())) return false; + if (hasSnapshot() != other.hasSnapshot()) return false; + if (hasSnapshot()) { + if (!getSnapshot().equals(other.getSnapshot())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TOOL_FIELD_NUMBER; + hash = (53 * hash) + getTool().hashCode(); + hash = (37 * hash) + NAME_OVERRIDE_FIELD_NUMBER; + hash = (53 * hash) + getNameOverride().hashCode(); + hash = (37 * hash) + DESCRIPTION_OVERRIDE_FIELD_NUMBER; + hash = (53 * hash) + getDescriptionOverride().hashCode(); + if (hasSnapshot()) { + hash = (37 * hash) + SNAPSHOT_FIELD_NUMBER; + hash = (53 * hash) + getSnapshot().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.McpToolOverride parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.McpToolOverride parseFrom( + 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.v1.McpToolOverride parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.McpToolOverride parseFrom( + com.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.v1.McpToolOverride parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.McpToolOverride parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.McpToolOverride parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.McpToolOverride parseFrom( + java.io.InputStream 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.v1.McpToolOverride parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.McpToolOverride parseDelimitedFrom( + java.io.InputStream 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.v1.McpToolOverride parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.McpToolOverride parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, 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.v1.McpToolOverride prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                +   * Overrides associated with a given tool in a Toolset.
                +   * This enables "pinning" or "overriding" of tool definitions from the external
                +   * dynamic server.
                +   * 
                + * + * Protobuf type {@code google.cloud.ces.v1.McpToolOverride} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.McpToolOverride) + com.google.cloud.ces.v1.McpToolOverrideOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.McpToolsetProto + .internal_static_google_cloud_ces_v1_McpToolOverride_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.McpToolsetProto + .internal_static_google_cloud_ces_v1_McpToolOverride_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.McpToolOverride.class, + com.google.cloud.ces.v1.McpToolOverride.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.McpToolOverride.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetSnapshotFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + tool_ = ""; + nameOverride_ = ""; + descriptionOverride_ = ""; + snapshot_ = null; + if (snapshotBuilder_ != null) { + snapshotBuilder_.dispose(); + snapshotBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.McpToolsetProto + .internal_static_google_cloud_ces_v1_McpToolOverride_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.McpToolOverride getDefaultInstanceForType() { + return com.google.cloud.ces.v1.McpToolOverride.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.McpToolOverride build() { + com.google.cloud.ces.v1.McpToolOverride result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.McpToolOverride buildPartial() { + com.google.cloud.ces.v1.McpToolOverride result = + new com.google.cloud.ces.v1.McpToolOverride(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.McpToolOverride result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.tool_ = tool_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nameOverride_ = nameOverride_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.descriptionOverride_ = descriptionOverride_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.snapshot_ = snapshotBuilder_ == null ? snapshot_ : snapshotBuilder_.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.ces.v1.McpToolOverride) { + return mergeFrom((com.google.cloud.ces.v1.McpToolOverride) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.McpToolOverride other) { + if (other == com.google.cloud.ces.v1.McpToolOverride.getDefaultInstance()) return this; + if (!other.getTool().isEmpty()) { + tool_ = other.tool_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getNameOverride().isEmpty()) { + nameOverride_ = other.nameOverride_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDescriptionOverride().isEmpty()) { + descriptionOverride_ = other.descriptionOverride_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasSnapshot()) { + mergeSnapshot(other.getSnapshot()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + tool_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + nameOverride_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + descriptionOverride_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetSnapshotFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object tool_ = ""; + + /** + * + * + *
                +     * Required. The original name of the tool as it is emitted by the MCP server.
                +     * 
                + * + * string tool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The tool. + */ + public java.lang.String getTool() { + java.lang.Object ref = tool_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tool_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                +     * Required. The original name of the tool as it is emitted by the MCP server.
                +     * 
                + * + * string tool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for tool. + */ + public com.google.protobuf.ByteString getToolBytes() { + java.lang.Object ref = tool_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tool_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                +     * Required. The original name of the tool as it is emitted by the MCP server.
                +     * 
                + * + * string tool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The tool to set. + * @return This builder for chaining. + */ + public Builder setTool(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + tool_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The original name of the tool as it is emitted by the MCP server.
                +     * 
                + * + * string tool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearTool() { + tool_ = getDefaultInstance().getTool(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The original name of the tool as it is emitted by the MCP server.
                +     * 
                + * + * string tool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for tool to set. + * @return This builder for chaining. + */ + public Builder setToolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tool_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object nameOverride_ = ""; + + /** + * + * + *
                +     * Optional. If present, this tool uses this name in the Agent instead of the
                +     * original name. This is primarily used as an alias if the MCP server offers
                +     * poorly named tools.
                +     * 
                + * + * string name_override = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The nameOverride. + */ + public java.lang.String getNameOverride() { + java.lang.Object ref = nameOverride_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nameOverride_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                +     * Optional. If present, this tool uses this name in the Agent instead of the
                +     * original name. This is primarily used as an alias if the MCP server offers
                +     * poorly named tools.
                +     * 
                + * + * string name_override = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for nameOverride. + */ + public com.google.protobuf.ByteString getNameOverrideBytes() { + java.lang.Object ref = nameOverride_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nameOverride_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                +     * Optional. If present, this tool uses this name in the Agent instead of the
                +     * original name. This is primarily used as an alias if the MCP server offers
                +     * poorly named tools.
                +     * 
                + * + * string name_override = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The nameOverride to set. + * @return This builder for chaining. + */ + public Builder setNameOverride(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nameOverride_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. If present, this tool uses this name in the Agent instead of the
                +     * original name. This is primarily used as an alias if the MCP server offers
                +     * poorly named tools.
                +     * 
                + * + * string name_override = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearNameOverride() { + nameOverride_ = getDefaultInstance().getNameOverride(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. If present, this tool uses this name in the Agent instead of the
                +     * original name. This is primarily used as an alias if the MCP server offers
                +     * poorly named tools.
                +     * 
                + * + * string name_override = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for nameOverride to set. + * @return This builder for chaining. + */ + public Builder setNameOverrideBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nameOverride_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object descriptionOverride_ = ""; + + /** + * + * + *
                +     * Optional. If present, this tool uses this description instead of the
                +     * original description from the server.
                +     * 
                + * + * string description_override = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The descriptionOverride. + */ + public java.lang.String getDescriptionOverride() { + java.lang.Object ref = descriptionOverride_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + descriptionOverride_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                +     * Optional. If present, this tool uses this description instead of the
                +     * original description from the server.
                +     * 
                + * + * string description_override = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for descriptionOverride. + */ + public com.google.protobuf.ByteString getDescriptionOverrideBytes() { + java.lang.Object ref = descriptionOverride_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + descriptionOverride_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                +     * Optional. If present, this tool uses this description instead of the
                +     * original description from the server.
                +     * 
                + * + * string description_override = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The descriptionOverride to set. + * @return This builder for chaining. + */ + public Builder setDescriptionOverride(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + descriptionOverride_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. If present, this tool uses this description instead of the
                +     * original description from the server.
                +     * 
                + * + * string description_override = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescriptionOverride() { + descriptionOverride_ = getDefaultInstance().getDescriptionOverride(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. If present, this tool uses this description instead of the
                +     * original description from the server.
                +     * 
                + * + * string description_override = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for descriptionOverride to set. + * @return This builder for chaining. + */ + public Builder setDescriptionOverrideBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + descriptionOverride_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.cloud.ces.v1.McpToolDefinition snapshot_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.McpToolDefinition, + com.google.cloud.ces.v1.McpToolDefinition.Builder, + com.google.cloud.ces.v1.McpToolDefinitionOrBuilder> + snapshotBuilder_; + + /** + * + * + *
                +     * Output only. If present, this tool is "Pinned" and uses the snapshot values
                +     * as fallbacks if the server becomes temporarily unavailable or if no
                +     * Override is present.
                +     * 
                + * + * + * .google.cloud.ces.v1.McpToolDefinition snapshot = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the snapshot field is set. + */ + public boolean hasSnapshot() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
                +     * Output only. If present, this tool is "Pinned" and uses the snapshot values
                +     * as fallbacks if the server becomes temporarily unavailable or if no
                +     * Override is present.
                +     * 
                + * + * + * .google.cloud.ces.v1.McpToolDefinition snapshot = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The snapshot. + */ + public com.google.cloud.ces.v1.McpToolDefinition getSnapshot() { + if (snapshotBuilder_ == null) { + return snapshot_ == null + ? com.google.cloud.ces.v1.McpToolDefinition.getDefaultInstance() + : snapshot_; + } else { + return snapshotBuilder_.getMessage(); + } + } + + /** + * + * + *
                +     * Output only. If present, this tool is "Pinned" and uses the snapshot values
                +     * as fallbacks if the server becomes temporarily unavailable or if no
                +     * Override is present.
                +     * 
                + * + * + * .google.cloud.ces.v1.McpToolDefinition snapshot = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSnapshot(com.google.cloud.ces.v1.McpToolDefinition value) { + if (snapshotBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + snapshot_ = value; + } else { + snapshotBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. If present, this tool is "Pinned" and uses the snapshot values
                +     * as fallbacks if the server becomes temporarily unavailable or if no
                +     * Override is present.
                +     * 
                + * + * + * .google.cloud.ces.v1.McpToolDefinition snapshot = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSnapshot(com.google.cloud.ces.v1.McpToolDefinition.Builder builderForValue) { + if (snapshotBuilder_ == null) { + snapshot_ = builderForValue.build(); + } else { + snapshotBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. If present, this tool is "Pinned" and uses the snapshot values
                +     * as fallbacks if the server becomes temporarily unavailable or if no
                +     * Override is present.
                +     * 
                + * + * + * .google.cloud.ces.v1.McpToolDefinition snapshot = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeSnapshot(com.google.cloud.ces.v1.McpToolDefinition value) { + if (snapshotBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && snapshot_ != null + && snapshot_ != com.google.cloud.ces.v1.McpToolDefinition.getDefaultInstance()) { + getSnapshotBuilder().mergeFrom(value); + } else { + snapshot_ = value; + } + } else { + snapshotBuilder_.mergeFrom(value); + } + if (snapshot_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
                +     * Output only. If present, this tool is "Pinned" and uses the snapshot values
                +     * as fallbacks if the server becomes temporarily unavailable or if no
                +     * Override is present.
                +     * 
                + * + * + * .google.cloud.ces.v1.McpToolDefinition snapshot = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearSnapshot() { + bitField0_ = (bitField0_ & ~0x00000008); + snapshot_ = null; + if (snapshotBuilder_ != null) { + snapshotBuilder_.dispose(); + snapshotBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. If present, this tool is "Pinned" and uses the snapshot values
                +     * as fallbacks if the server becomes temporarily unavailable or if no
                +     * Override is present.
                +     * 
                + * + * + * .google.cloud.ces.v1.McpToolDefinition snapshot = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1.McpToolDefinition.Builder getSnapshotBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetSnapshotFieldBuilder().getBuilder(); + } + + /** + * + * + *
                +     * Output only. If present, this tool is "Pinned" and uses the snapshot values
                +     * as fallbacks if the server becomes temporarily unavailable or if no
                +     * Override is present.
                +     * 
                + * + * + * .google.cloud.ces.v1.McpToolDefinition snapshot = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1.McpToolDefinitionOrBuilder getSnapshotOrBuilder() { + if (snapshotBuilder_ != null) { + return snapshotBuilder_.getMessageOrBuilder(); + } else { + return snapshot_ == null + ? com.google.cloud.ces.v1.McpToolDefinition.getDefaultInstance() + : snapshot_; + } + } + + /** + * + * + *
                +     * Output only. If present, this tool is "Pinned" and uses the snapshot values
                +     * as fallbacks if the server becomes temporarily unavailable or if no
                +     * Override is present.
                +     * 
                + * + * + * .google.cloud.ces.v1.McpToolDefinition snapshot = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.McpToolDefinition, + com.google.cloud.ces.v1.McpToolDefinition.Builder, + com.google.cloud.ces.v1.McpToolDefinitionOrBuilder> + internalGetSnapshotFieldBuilder() { + if (snapshotBuilder_ == null) { + snapshotBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.McpToolDefinition, + com.google.cloud.ces.v1.McpToolDefinition.Builder, + com.google.cloud.ces.v1.McpToolDefinitionOrBuilder>( + getSnapshot(), getParentForChildren(), isClean()); + snapshot_ = null; + } + return snapshotBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.McpToolOverride) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.McpToolOverride) + private static final com.google.cloud.ces.v1.McpToolOverride DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.McpToolOverride(); + } + + public static com.google.cloud.ces.v1.McpToolOverride getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public McpToolOverride parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.v1.McpToolOverride getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolOverrideOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolOverrideOrBuilder.java new file mode 100644 index 000000000000..e9b03644587a --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolOverrideOrBuilder.java @@ -0,0 +1,161 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language 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/v1/mcp_toolset.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface McpToolOverrideOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.McpToolOverride) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                +   * Required. The original name of the tool as it is emitted by the MCP server.
                +   * 
                + * + * string tool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The tool. + */ + java.lang.String getTool(); + + /** + * + * + *
                +   * Required. The original name of the tool as it is emitted by the MCP server.
                +   * 
                + * + * string tool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for tool. + */ + com.google.protobuf.ByteString getToolBytes(); + + /** + * + * + *
                +   * Optional. If present, this tool uses this name in the Agent instead of the
                +   * original name. This is primarily used as an alias if the MCP server offers
                +   * poorly named tools.
                +   * 
                + * + * string name_override = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The nameOverride. + */ + java.lang.String getNameOverride(); + + /** + * + * + *
                +   * Optional. If present, this tool uses this name in the Agent instead of the
                +   * original name. This is primarily used as an alias if the MCP server offers
                +   * poorly named tools.
                +   * 
                + * + * string name_override = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for nameOverride. + */ + com.google.protobuf.ByteString getNameOverrideBytes(); + + /** + * + * + *
                +   * Optional. If present, this tool uses this description instead of the
                +   * original description from the server.
                +   * 
                + * + * string description_override = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The descriptionOverride. + */ + java.lang.String getDescriptionOverride(); + + /** + * + * + *
                +   * Optional. If present, this tool uses this description instead of the
                +   * original description from the server.
                +   * 
                + * + * string description_override = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for descriptionOverride. + */ + com.google.protobuf.ByteString getDescriptionOverrideBytes(); + + /** + * + * + *
                +   * Output only. If present, this tool is "Pinned" and uses the snapshot values
                +   * as fallbacks if the server becomes temporarily unavailable or if no
                +   * Override is present.
                +   * 
                + * + * + * .google.cloud.ces.v1.McpToolDefinition snapshot = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the snapshot field is set. + */ + boolean hasSnapshot(); + + /** + * + * + *
                +   * Output only. If present, this tool is "Pinned" and uses the snapshot values
                +   * as fallbacks if the server becomes temporarily unavailable or if no
                +   * Override is present.
                +   * 
                + * + * + * .google.cloud.ces.v1.McpToolDefinition snapshot = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The snapshot. + */ + com.google.cloud.ces.v1.McpToolDefinition getSnapshot(); + + /** + * + * + *
                +   * Output only. If present, this tool is "Pinned" and uses the snapshot values
                +   * as fallbacks if the server becomes temporarily unavailable or if no
                +   * Override is present.
                +   * 
                + * + * + * .google.cloud.ces.v1.McpToolDefinition snapshot = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.ces.v1.McpToolDefinitionOrBuilder getSnapshotOrBuilder(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolProto.java index bb1a2478065c..9ef4e70e5636 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolProto.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolProto.java @@ -61,9 +61,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\"google/cloud/ces/v1/mcp_tool.proto\022\023go" + "ogle.cloud.ces.v1\032\037google/api/field_beha" + "vior.proto\032\036google/cloud/ces/v1/auth.proto\032" - + " google/cloud/ces/v1/common.proto\032 google/cloud/ces/v1/schema.proto\"\236\004\n" + + " google/cloud/ces/v1/common.proto\032 google/cloud/ces/v1/schema.proto\"\267\005\n" + "\007McpTool\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\002\022\030\n" + + "\004name\030\001 \001(\tB\003\340A\002\022\032\n\r" + + "name_override\030\r" + + " \001(\tB\003\340A\001\022\030\n" + "\013description\030\002 \001(\tB\003\340A\001\0226\n" + "\014input_schema\030\003" + " \001(\0132\033.google.cloud.ces.v1.SchemaB\003\340A\001\0227\n\r" @@ -73,15 +75,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022api_authentication\030\006" + " \001(\0132&.google.cloud.ces.v1.ApiAuthenticationB\003\340A\001\0227\n\n" + "tls_config\030\007 \001(\0132\036.google.cloud.ces.v1.TlsConfigB\003\340A\001\022R\n" - + "\030service_directory_config\030\010 \001(\0132+.goog" - + "le.cloud.ces.v1.ServiceDirectoryConfigB\003\340A\001\022L\n" - + "\016custom_headers\030\t \003(\0132/.google.clo" - + "ud.ces.v1.McpTool.CustomHeadersEntryB\003\340A\001\0324\n" + + "\030service_directory_config\030\010" + + " \001(\0132+.google.cloud.ces.v1.ServiceDirectoryConfigB\003\340A\001\022L\n" + + "\016custom_headers\030\t" + + " \003(\0132/.google.cloud.ces.v1.McpTool.CustomHeadersEntryB\003\340A\001\0226\n" + + "\005state\030\014 \001(\0162\".google.cloud.ces.v1.McpTool.StateB\003\340A\003\0324\n" + "\022CustomHeadersEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001BT\n" - + "\027com.google.cloud.ces.v1B\014McpToolProtoP\001Z)cloud.google.com/go/" - + "ces/apiv1/cespb;cespbb\006proto3" + + "\005value\030\002 \001(\t:\0028\001\"C\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\n\n" + + "\006ACTIVE\020\001\022\014\n" + + "\010INACTIVE\020\002\022\t\n" + + "\005STALE\020\003BT\n" + + "\027com.google.cloud.ces.v1B\014McpToolProtoP\001Z)cloud.google.com/go/ces/api" + + "v1/cespb;cespbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -98,6 +106,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_cloud_ces_v1_McpTool_descriptor, new java.lang.String[] { "Name", + "NameOverride", "Description", "InputSchema", "OutputSchema", @@ -106,6 +115,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TlsConfig", "ServiceDirectoryConfig", "CustomHeaders", + "State", }); internal_static_google_cloud_ces_v1_McpTool_CustomHeadersEntry_descriptor = internal_static_google_cloud_ces_v1_McpTool_descriptor.getNestedType(0); diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolset.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolset.java index 9faa759576ba..851d3d32e495 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolset.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolset.java @@ -54,6 +54,7 @@ private McpToolset(com.google.protobuf.GeneratedMessage.Builder builder) { private McpToolset() { serverAddress_ = ""; + toolOverrides_ = java.util.Collections.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -462,6 +463,102 @@ public java.lang.String getCustomHeadersOrThrow(java.lang.String key) { return map.get(key); } + public static final int TOOL_OVERRIDES_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private java.util.List toolOverrides_; + + /** + * + * + *
                +   * Optional. Overrides for individual tools within this toolset.
                +   * This allows overriding specific details like descriptions, names,
                +   * or pinning the tools' states so they aren't fully dynamic.
                +   * 
                + * + * + * repeated .google.cloud.ces.v1.McpToolOverride tool_overrides = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getToolOverridesList() { + return toolOverrides_; + } + + /** + * + * + *
                +   * Optional. Overrides for individual tools within this toolset.
                +   * This allows overriding specific details like descriptions, names,
                +   * or pinning the tools' states so they aren't fully dynamic.
                +   * 
                + * + * + * repeated .google.cloud.ces.v1.McpToolOverride tool_overrides = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getToolOverridesOrBuilderList() { + return toolOverrides_; + } + + /** + * + * + *
                +   * Optional. Overrides for individual tools within this toolset.
                +   * This allows overriding specific details like descriptions, names,
                +   * or pinning the tools' states so they aren't fully dynamic.
                +   * 
                + * + * + * repeated .google.cloud.ces.v1.McpToolOverride tool_overrides = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getToolOverridesCount() { + return toolOverrides_.size(); + } + + /** + * + * + *
                +   * Optional. Overrides for individual tools within this toolset.
                +   * This allows overriding specific details like descriptions, names,
                +   * or pinning the tools' states so they aren't fully dynamic.
                +   * 
                + * + * + * repeated .google.cloud.ces.v1.McpToolOverride tool_overrides = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.McpToolOverride getToolOverrides(int index) { + return toolOverrides_.get(index); + } + + /** + * + * + *
                +   * Optional. Overrides for individual tools within this toolset.
                +   * This allows overriding specific details like descriptions, names,
                +   * or pinning the tools' states so they aren't fully dynamic.
                +   * 
                + * + * + * repeated .google.cloud.ces.v1.McpToolOverride tool_overrides = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.McpToolOverrideOrBuilder getToolOverridesOrBuilder(int index) { + return toolOverrides_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -490,6 +587,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessage.serializeStringMapTo( output, internalGetCustomHeaders(), CustomHeadersDefaultEntryHolder.defaultEntry, 5); + for (int i = 0; i < toolOverrides_.size(); i++) { + output.writeMessage(6, toolOverrides_.get(i)); + } getUnknownFields().writeTo(output); } @@ -522,6 +622,9 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, customHeaders__); } + for (int i = 0; i < toolOverrides_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, toolOverrides_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -551,6 +654,7 @@ public boolean equals(final java.lang.Object obj) { if (!getTlsConfig().equals(other.getTlsConfig())) return false; } if (!internalGetCustomHeaders().equals(other.internalGetCustomHeaders())) return false; + if (!getToolOverridesList().equals(other.getToolOverridesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -580,6 +684,10 @@ public int hashCode() { hash = (37 * hash) + CUSTOM_HEADERS_FIELD_NUMBER; hash = (53 * hash) + internalGetCustomHeaders().hashCode(); } + if (getToolOverridesCount() > 0) { + hash = (37 * hash) + TOOL_OVERRIDES_FIELD_NUMBER; + hash = (53 * hash) + getToolOverridesList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -746,6 +854,7 @@ private void maybeForceBuilderInitialization() { internalGetApiAuthenticationFieldBuilder(); internalGetServiceDirectoryConfigFieldBuilder(); internalGetTlsConfigFieldBuilder(); + internalGetToolOverridesFieldBuilder(); } } @@ -770,6 +879,13 @@ public Builder clear() { tlsConfigBuilder_ = null; } internalGetMutableCustomHeaders().clear(); + if (toolOverridesBuilder_ == null) { + toolOverrides_ = java.util.Collections.emptyList(); + } else { + toolOverrides_ = null; + toolOverridesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); return this; } @@ -796,6 +912,7 @@ public com.google.cloud.ces.v1.McpToolset build() { @java.lang.Override public com.google.cloud.ces.v1.McpToolset buildPartial() { com.google.cloud.ces.v1.McpToolset result = new com.google.cloud.ces.v1.McpToolset(this); + buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -803,6 +920,18 @@ public com.google.cloud.ces.v1.McpToolset buildPartial() { return result; } + private void buildPartialRepeatedFields(com.google.cloud.ces.v1.McpToolset result) { + if (toolOverridesBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + toolOverrides_ = java.util.Collections.unmodifiableList(toolOverrides_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.toolOverrides_ = toolOverrides_; + } else { + result.toolOverrides_ = toolOverridesBuilder_.build(); + } + } + private void buildPartial0(com.google.cloud.ces.v1.McpToolset result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { @@ -862,6 +991,33 @@ public Builder mergeFrom(com.google.cloud.ces.v1.McpToolset other) { } internalGetMutableCustomHeaders().mergeFrom(other.internalGetCustomHeaders()); bitField0_ |= 0x00000010; + if (toolOverridesBuilder_ == null) { + if (!other.toolOverrides_.isEmpty()) { + if (toolOverrides_.isEmpty()) { + toolOverrides_ = other.toolOverrides_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureToolOverridesIsMutable(); + toolOverrides_.addAll(other.toolOverrides_); + } + onChanged(); + } + } else { + if (!other.toolOverrides_.isEmpty()) { + if (toolOverridesBuilder_.isEmpty()) { + toolOverridesBuilder_.dispose(); + toolOverridesBuilder_ = null; + toolOverrides_ = other.toolOverrides_; + bitField0_ = (bitField0_ & ~0x00000020); + toolOverridesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetToolOverridesFieldBuilder() + : null; + } else { + toolOverridesBuilder_.addAllMessages(other.toolOverrides_); + } + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -928,6 +1084,19 @@ public Builder mergeFrom( bitField0_ |= 0x00000010; break; } // case 42 + case 50: + { + com.google.cloud.ces.v1.McpToolOverride m = + input.readMessage( + com.google.cloud.ces.v1.McpToolOverride.parser(), extensionRegistry); + if (toolOverridesBuilder_ == null) { + ensureToolOverridesIsMutable(); + toolOverrides_.add(m); + } else { + toolOverridesBuilder_.addMessage(m); + } + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1981,6 +2150,449 @@ public Builder putAllCustomHeaders(java.util.Map toolOverrides_ = + java.util.Collections.emptyList(); + + private void ensureToolOverridesIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + toolOverrides_ = + new java.util.ArrayList(toolOverrides_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.McpToolOverride, + com.google.cloud.ces.v1.McpToolOverride.Builder, + com.google.cloud.ces.v1.McpToolOverrideOrBuilder> + toolOverridesBuilder_; + + /** + * + * + *
                +     * Optional. Overrides for individual tools within this toolset.
                +     * This allows overriding specific details like descriptions, names,
                +     * or pinning the tools' states so they aren't fully dynamic.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.McpToolOverride tool_overrides = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getToolOverridesList() { + if (toolOverridesBuilder_ == null) { + return java.util.Collections.unmodifiableList(toolOverrides_); + } else { + return toolOverridesBuilder_.getMessageList(); + } + } + + /** + * + * + *
                +     * Optional. Overrides for individual tools within this toolset.
                +     * This allows overriding specific details like descriptions, names,
                +     * or pinning the tools' states so they aren't fully dynamic.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.McpToolOverride tool_overrides = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getToolOverridesCount() { + if (toolOverridesBuilder_ == null) { + return toolOverrides_.size(); + } else { + return toolOverridesBuilder_.getCount(); + } + } + + /** + * + * + *
                +     * Optional. Overrides for individual tools within this toolset.
                +     * This allows overriding specific details like descriptions, names,
                +     * or pinning the tools' states so they aren't fully dynamic.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.McpToolOverride tool_overrides = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.McpToolOverride getToolOverrides(int index) { + if (toolOverridesBuilder_ == null) { + return toolOverrides_.get(index); + } else { + return toolOverridesBuilder_.getMessage(index); + } + } + + /** + * + * + *
                +     * Optional. Overrides for individual tools within this toolset.
                +     * This allows overriding specific details like descriptions, names,
                +     * or pinning the tools' states so they aren't fully dynamic.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.McpToolOverride tool_overrides = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setToolOverrides(int index, com.google.cloud.ces.v1.McpToolOverride value) { + if (toolOverridesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolOverridesIsMutable(); + toolOverrides_.set(index, value); + onChanged(); + } else { + toolOverridesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                +     * Optional. Overrides for individual tools within this toolset.
                +     * This allows overriding specific details like descriptions, names,
                +     * or pinning the tools' states so they aren't fully dynamic.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.McpToolOverride tool_overrides = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setToolOverrides( + int index, com.google.cloud.ces.v1.McpToolOverride.Builder builderForValue) { + if (toolOverridesBuilder_ == null) { + ensureToolOverridesIsMutable(); + toolOverrides_.set(index, builderForValue.build()); + onChanged(); + } else { + toolOverridesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                +     * Optional. Overrides for individual tools within this toolset.
                +     * This allows overriding specific details like descriptions, names,
                +     * or pinning the tools' states so they aren't fully dynamic.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.McpToolOverride tool_overrides = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addToolOverrides(com.google.cloud.ces.v1.McpToolOverride value) { + if (toolOverridesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolOverridesIsMutable(); + toolOverrides_.add(value); + onChanged(); + } else { + toolOverridesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                +     * Optional. Overrides for individual tools within this toolset.
                +     * This allows overriding specific details like descriptions, names,
                +     * or pinning the tools' states so they aren't fully dynamic.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.McpToolOverride tool_overrides = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addToolOverrides(int index, com.google.cloud.ces.v1.McpToolOverride value) { + if (toolOverridesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolOverridesIsMutable(); + toolOverrides_.add(index, value); + onChanged(); + } else { + toolOverridesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                +     * Optional. Overrides for individual tools within this toolset.
                +     * This allows overriding specific details like descriptions, names,
                +     * or pinning the tools' states so they aren't fully dynamic.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.McpToolOverride tool_overrides = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addToolOverrides( + com.google.cloud.ces.v1.McpToolOverride.Builder builderForValue) { + if (toolOverridesBuilder_ == null) { + ensureToolOverridesIsMutable(); + toolOverrides_.add(builderForValue.build()); + onChanged(); + } else { + toolOverridesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                +     * Optional. Overrides for individual tools within this toolset.
                +     * This allows overriding specific details like descriptions, names,
                +     * or pinning the tools' states so they aren't fully dynamic.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.McpToolOverride tool_overrides = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addToolOverrides( + int index, com.google.cloud.ces.v1.McpToolOverride.Builder builderForValue) { + if (toolOverridesBuilder_ == null) { + ensureToolOverridesIsMutable(); + toolOverrides_.add(index, builderForValue.build()); + onChanged(); + } else { + toolOverridesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                +     * Optional. Overrides for individual tools within this toolset.
                +     * This allows overriding specific details like descriptions, names,
                +     * or pinning the tools' states so they aren't fully dynamic.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.McpToolOverride tool_overrides = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllToolOverrides( + java.lang.Iterable values) { + if (toolOverridesBuilder_ == null) { + ensureToolOverridesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, toolOverrides_); + onChanged(); + } else { + toolOverridesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                +     * Optional. Overrides for individual tools within this toolset.
                +     * This allows overriding specific details like descriptions, names,
                +     * or pinning the tools' states so they aren't fully dynamic.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.McpToolOverride tool_overrides = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearToolOverrides() { + if (toolOverridesBuilder_ == null) { + toolOverrides_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + toolOverridesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                +     * Optional. Overrides for individual tools within this toolset.
                +     * This allows overriding specific details like descriptions, names,
                +     * or pinning the tools' states so they aren't fully dynamic.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.McpToolOverride tool_overrides = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeToolOverrides(int index) { + if (toolOverridesBuilder_ == null) { + ensureToolOverridesIsMutable(); + toolOverrides_.remove(index); + onChanged(); + } else { + toolOverridesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                +     * Optional. Overrides for individual tools within this toolset.
                +     * This allows overriding specific details like descriptions, names,
                +     * or pinning the tools' states so they aren't fully dynamic.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.McpToolOverride tool_overrides = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.McpToolOverride.Builder getToolOverridesBuilder(int index) { + return internalGetToolOverridesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                +     * Optional. Overrides for individual tools within this toolset.
                +     * This allows overriding specific details like descriptions, names,
                +     * or pinning the tools' states so they aren't fully dynamic.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.McpToolOverride tool_overrides = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.McpToolOverrideOrBuilder getToolOverridesOrBuilder(int index) { + if (toolOverridesBuilder_ == null) { + return toolOverrides_.get(index); + } else { + return toolOverridesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                +     * Optional. Overrides for individual tools within this toolset.
                +     * This allows overriding specific details like descriptions, names,
                +     * or pinning the tools' states so they aren't fully dynamic.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.McpToolOverride tool_overrides = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getToolOverridesOrBuilderList() { + if (toolOverridesBuilder_ != null) { + return toolOverridesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(toolOverrides_); + } + } + + /** + * + * + *
                +     * Optional. Overrides for individual tools within this toolset.
                +     * This allows overriding specific details like descriptions, names,
                +     * or pinning the tools' states so they aren't fully dynamic.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.McpToolOverride tool_overrides = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.McpToolOverride.Builder addToolOverridesBuilder() { + return internalGetToolOverridesFieldBuilder() + .addBuilder(com.google.cloud.ces.v1.McpToolOverride.getDefaultInstance()); + } + + /** + * + * + *
                +     * Optional. Overrides for individual tools within this toolset.
                +     * This allows overriding specific details like descriptions, names,
                +     * or pinning the tools' states so they aren't fully dynamic.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.McpToolOverride tool_overrides = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.McpToolOverride.Builder addToolOverridesBuilder(int index) { + return internalGetToolOverridesFieldBuilder() + .addBuilder(index, com.google.cloud.ces.v1.McpToolOverride.getDefaultInstance()); + } + + /** + * + * + *
                +     * Optional. Overrides for individual tools within this toolset.
                +     * This allows overriding specific details like descriptions, names,
                +     * or pinning the tools' states so they aren't fully dynamic.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.McpToolOverride tool_overrides = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getToolOverridesBuilderList() { + return internalGetToolOverridesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.McpToolOverride, + com.google.cloud.ces.v1.McpToolOverride.Builder, + com.google.cloud.ces.v1.McpToolOverrideOrBuilder> + internalGetToolOverridesFieldBuilder() { + if (toolOverridesBuilder_ == null) { + toolOverridesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.McpToolOverride, + com.google.cloud.ces.v1.McpToolOverride.Builder, + com.google.cloud.ces.v1.McpToolOverrideOrBuilder>( + toolOverrides_, + ((bitField0_ & 0x00000020) != 0), + getParentForChildren(), + isClean()); + toolOverrides_ = null; + } + return toolOverridesBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.McpToolset) } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolsetOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolsetOrBuilder.java index 4587df97f0a4..c8ef4cbe3b2e 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolsetOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolsetOrBuilder.java @@ -290,4 +290,80 @@ java.lang.String getCustomHeadersOrDefault( * */ java.lang.String getCustomHeadersOrThrow(java.lang.String key); + + /** + * + * + *
                +   * Optional. Overrides for individual tools within this toolset.
                +   * This allows overriding specific details like descriptions, names,
                +   * or pinning the tools' states so they aren't fully dynamic.
                +   * 
                + * + * + * repeated .google.cloud.ces.v1.McpToolOverride tool_overrides = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getToolOverridesList(); + + /** + * + * + *
                +   * Optional. Overrides for individual tools within this toolset.
                +   * This allows overriding specific details like descriptions, names,
                +   * or pinning the tools' states so they aren't fully dynamic.
                +   * 
                + * + * + * repeated .google.cloud.ces.v1.McpToolOverride tool_overrides = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.McpToolOverride getToolOverrides(int index); + + /** + * + * + *
                +   * Optional. Overrides for individual tools within this toolset.
                +   * This allows overriding specific details like descriptions, names,
                +   * or pinning the tools' states so they aren't fully dynamic.
                +   * 
                + * + * + * repeated .google.cloud.ces.v1.McpToolOverride tool_overrides = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getToolOverridesCount(); + + /** + * + * + *
                +   * Optional. Overrides for individual tools within this toolset.
                +   * This allows overriding specific details like descriptions, names,
                +   * or pinning the tools' states so they aren't fully dynamic.
                +   * 
                + * + * + * repeated .google.cloud.ces.v1.McpToolOverride tool_overrides = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getToolOverridesOrBuilderList(); + + /** + * + * + *
                +   * Optional. Overrides for individual tools within this toolset.
                +   * This allows overriding specific details like descriptions, names,
                +   * or pinning the tools' states so they aren't fully dynamic.
                +   * 
                + * + * + * repeated .google.cloud.ces.v1.McpToolOverride tool_overrides = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.McpToolOverrideOrBuilder getToolOverridesOrBuilder(int index); } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolsetProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolsetProto.java index 03c34accbdc7..9a0abcfc4361 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolsetProto.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolsetProto.java @@ -48,6 +48,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_ces_v1_McpToolset_CustomHeadersEntry_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_ces_v1_McpToolset_CustomHeadersEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_McpToolOverride_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_McpToolOverride_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_McpToolDefinition_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_McpToolDefinition_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -57,25 +65,33 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n" - + "%google/cloud/ces/v1/mcp_toolset.proto\022" + "\n%google/cloud/ces/v1/mcp_toolset.proto\022" + "\023google.cloud.ces.v1\032\037google/api/field_b" - + "ehavior.proto\032\036google/cloud/ces/v1/auth.proto\032" - + " google/cloud/ces/v1/common.proto\"\206\003\n\n" - + "McpToolset\022\033\n" - + "\016server_address\030\001 \001(\tB\003\340A\002\022G\n" - + "\022api_authentication\030\002" - + " \001(\0132&.google.cloud.ces.v1.ApiAuthenticationB\003\340A\001\022R\n" - + "\030service_directory_config\030\003 \001(\0132+.google." - + "cloud.ces.v1.ServiceDirectoryConfigB\003\340A\001\0227\n\n" - + "tls_config\030\004 \001(\0132\036.google.cloud.ces.v1.TlsConfigB\003\340A\001\022O\n" - + "\016custom_headers\030\005 \003(" - + "\01322.google.cloud.ces.v1.McpToolset.CustomHeadersEntryB\003\340A\001\0324\n" - + "\022CustomHeadersEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001BW\n" - + "\027com.google.cloud.ces.v1B\017McpToolsetProtoP\001Z)" - + "cloud.google.com/go/ces/apiv1/cespb;cespbb\006proto3" + + "ehavior.proto\032\036google/cloud/ces/v1/auth." + + "proto\032 google/cloud/ces/v1/common.proto\032" + + " google/cloud/ces/v1/schema.proto\"\311\003\n\nMc" + + "pToolset\022\033\n\016server_address\030\001 \001(\tB\003\340A\002\022G\n" + + "\022api_authentication\030\002 \001(\0132&.google.cloud" + + ".ces.v1.ApiAuthenticationB\003\340A\001\022R\n\030servic" + + "e_directory_config\030\003 \001(\0132+.google.cloud." + + "ces.v1.ServiceDirectoryConfigB\003\340A\001\0227\n\ntl" + + "s_config\030\004 \001(\0132\036.google.cloud.ces.v1.Tls" + + "ConfigB\003\340A\001\022O\n\016custom_headers\030\005 \003(\01322.go" + + "ogle.cloud.ces.v1.McpToolset.CustomHeade" + + "rsEntryB\003\340A\001\022A\n\016tool_overrides\030\006 \003(\0132$.g" + + "oogle.cloud.ces.v1.McpToolOverrideB\003\340A\001\032" + + "4\n\022CustomHeadersEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + + "lue\030\002 \001(\t:\0028\001\"\242\001\n\017McpToolOverride\022\021\n\004too" + + "l\030\001 \001(\tB\003\340A\002\022\032\n\rname_override\030\002 \001(\tB\003\340A\001" + + "\022!\n\024description_override\030\003 \001(\tB\003\340A\001\022=\n\010s" + + "napshot\030\004 \001(\0132&.google.cloud.ces.v1.McpT" + + "oolDefinitionB\003\340A\003\"\236\001\n\021McpToolDefinition" + + "\022\030\n\013description\030\001 \001(\tB\003\340A\003\0226\n\014input_sche" + + "ma\030\002 \001(\0132\033.google.cloud.ces.v1.SchemaB\003\340" + + "A\003\0227\n\routput_schema\030\003 \001(\0132\033.google.cloud" + + ".ces.v1.SchemaB\003\340A\003BW\n\027com.google.cloud." + + "ces.v1B\017McpToolsetProtoP\001Z)cloud.google." + + "com/go/ces/apiv1/cespb;cespbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -84,6 +100,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.cloud.ces.v1.AuthProto.getDescriptor(), com.google.cloud.ces.v1.CommonProto.getDescriptor(), + com.google.cloud.ces.v1.SchemaProto.getDescriptor(), }); internal_static_google_cloud_ces_v1_McpToolset_descriptor = getDescriptor().getMessageType(0); internal_static_google_cloud_ces_v1_McpToolset_fieldAccessorTable = @@ -95,6 +112,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceDirectoryConfig", "TlsConfig", "CustomHeaders", + "ToolOverrides", }); internal_static_google_cloud_ces_v1_McpToolset_CustomHeadersEntry_descriptor = internal_static_google_cloud_ces_v1_McpToolset_descriptor.getNestedType(0); @@ -104,10 +122,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_ces_v1_McpToolOverride_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_ces_v1_McpToolOverride_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_McpToolOverride_descriptor, + new java.lang.String[] { + "Tool", "NameOverride", "DescriptionOverride", "Snapshot", + }); + internal_static_google_cloud_ces_v1_McpToolDefinition_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_ces_v1_McpToolDefinition_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_McpToolDefinition_descriptor, + new java.lang.String[] { + "Description", "InputSchema", "OutputSchema", + }); descriptor.resolveAllFeaturesImmutable(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.cloud.ces.v1.AuthProto.getDescriptor(); com.google.cloud.ces.v1.CommonProto.getDescriptor(); + com.google.cloud.ces.v1.SchemaProto.getDescriptor(); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/MockConfig.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/MockConfig.java new file mode 100644 index 000000000000..b22bdb593428 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/MockConfig.java @@ -0,0 +1,1333 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language 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/v1/session_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
                + * Mock tool calls configuration for the session.
                + * 
                + * + * Protobuf type {@code google.cloud.ces.v1.MockConfig} + */ +@com.google.protobuf.Generated +public final class MockConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.MockConfig) + MockConfigOrBuilder { + 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= */ "", + "MockConfig"); + } + + // Use MockConfig.newBuilder() to construct. + private MockConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private MockConfig() { + mockedToolCalls_ = java.util.Collections.emptyList(); + unmatchedToolCallBehavior_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_MockConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_MockConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.MockConfig.class, + com.google.cloud.ces.v1.MockConfig.Builder.class); + } + + /** + * + * + *
                +   * What to do when a tool call doesn't match any mocked tool calls.
                +   * 
                + * + * Protobuf enum {@code google.cloud.ces.v1.MockConfig.UnmatchedToolCallBehavior} + */ + public enum UnmatchedToolCallBehavior implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                +     * Default value. This value is unused.
                +     * 
                + * + * UNMATCHED_TOOL_CALL_BEHAVIOR_UNSPECIFIED = 0; + */ + UNMATCHED_TOOL_CALL_BEHAVIOR_UNSPECIFIED(0), + /** + * + * + *
                +     * Throw an error for any tool calls that don't match a mock expected input
                +     * pattern.
                +     * 
                + * + * FAIL = 1; + */ + FAIL(1), + /** + * + * + *
                +     * For unmatched tool calls, pass the tool call through to real tool.
                +     * 
                + * + * PASS_THROUGH = 2; + */ + PASS_THROUGH(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UnmatchedToolCallBehavior"); + } + + /** + * + * + *
                +     * Default value. This value is unused.
                +     * 
                + * + * UNMATCHED_TOOL_CALL_BEHAVIOR_UNSPECIFIED = 0; + */ + public static final int UNMATCHED_TOOL_CALL_BEHAVIOR_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                +     * Throw an error for any tool calls that don't match a mock expected input
                +     * pattern.
                +     * 
                + * + * FAIL = 1; + */ + public static final int FAIL_VALUE = 1; + + /** + * + * + *
                +     * For unmatched tool calls, pass the tool call through to real tool.
                +     * 
                + * + * PASS_THROUGH = 2; + */ + public static final int PASS_THROUGH_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 UnmatchedToolCallBehavior 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 UnmatchedToolCallBehavior forNumber(int value) { + switch (value) { + case 0: + return UNMATCHED_TOOL_CALL_BEHAVIOR_UNSPECIFIED; + case 1: + return FAIL; + case 2: + return PASS_THROUGH; + 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 UnmatchedToolCallBehavior findValueByNumber(int number) { + return UnmatchedToolCallBehavior.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.v1.MockConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final UnmatchedToolCallBehavior[] VALUES = values(); + + public static UnmatchedToolCallBehavior 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 UnmatchedToolCallBehavior(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1.MockConfig.UnmatchedToolCallBehavior) + } + + public static final int MOCKED_TOOL_CALLS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List mockedToolCalls_; + + /** + * + * + *
                +   * Optional. All tool calls to mock for the duration of the session.
                +   * 
                + * + * + * repeated .google.cloud.ces.v1.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getMockedToolCallsList() { + return mockedToolCalls_; + } + + /** + * + * + *
                +   * Optional. All tool calls to mock for the duration of the session.
                +   * 
                + * + * + * repeated .google.cloud.ces.v1.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getMockedToolCallsOrBuilderList() { + return mockedToolCalls_; + } + + /** + * + * + *
                +   * Optional. All tool calls to mock for the duration of the session.
                +   * 
                + * + * + * repeated .google.cloud.ces.v1.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getMockedToolCallsCount() { + return mockedToolCalls_.size(); + } + + /** + * + * + *
                +   * Optional. All tool calls to mock for the duration of the session.
                +   * 
                + * + * + * repeated .google.cloud.ces.v1.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.MockedToolCall getMockedToolCalls(int index) { + return mockedToolCalls_.get(index); + } + + /** + * + * + *
                +   * Optional. All tool calls to mock for the duration of the session.
                +   * 
                + * + * + * repeated .google.cloud.ces.v1.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.MockedToolCallOrBuilder getMockedToolCallsOrBuilder(int index) { + return mockedToolCalls_.get(index); + } + + public static final int UNMATCHED_TOOL_CALL_BEHAVIOR_FIELD_NUMBER = 2; + private int unmatchedToolCallBehavior_ = 0; + + /** + * + * + *
                +   * Required. Beavhior for tool calls that don't match any args patterns in
                +   * mocked_tool_calls.
                +   * 
                + * + * + * .google.cloud.ces.v1.MockConfig.UnmatchedToolCallBehavior unmatched_tool_call_behavior = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for unmatchedToolCallBehavior. + */ + @java.lang.Override + public int getUnmatchedToolCallBehaviorValue() { + return unmatchedToolCallBehavior_; + } + + /** + * + * + *
                +   * Required. Beavhior for tool calls that don't match any args patterns in
                +   * mocked_tool_calls.
                +   * 
                + * + * + * .google.cloud.ces.v1.MockConfig.UnmatchedToolCallBehavior unmatched_tool_call_behavior = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The unmatchedToolCallBehavior. + */ + @java.lang.Override + public com.google.cloud.ces.v1.MockConfig.UnmatchedToolCallBehavior + getUnmatchedToolCallBehavior() { + com.google.cloud.ces.v1.MockConfig.UnmatchedToolCallBehavior result = + com.google.cloud.ces.v1.MockConfig.UnmatchedToolCallBehavior.forNumber( + unmatchedToolCallBehavior_); + return result == null + ? com.google.cloud.ces.v1.MockConfig.UnmatchedToolCallBehavior.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 { + for (int i = 0; i < mockedToolCalls_.size(); i++) { + output.writeMessage(1, mockedToolCalls_.get(i)); + } + if (unmatchedToolCallBehavior_ + != com.google.cloud.ces.v1.MockConfig.UnmatchedToolCallBehavior + .UNMATCHED_TOOL_CALL_BEHAVIOR_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, unmatchedToolCallBehavior_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < mockedToolCalls_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, mockedToolCalls_.get(i)); + } + if (unmatchedToolCallBehavior_ + != com.google.cloud.ces.v1.MockConfig.UnmatchedToolCallBehavior + .UNMATCHED_TOOL_CALL_BEHAVIOR_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, unmatchedToolCallBehavior_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.v1.MockConfig)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.MockConfig other = (com.google.cloud.ces.v1.MockConfig) obj; + + if (!getMockedToolCallsList().equals(other.getMockedToolCallsList())) return false; + if (unmatchedToolCallBehavior_ != other.unmatchedToolCallBehavior_) return false; + if (!getUnknownFields().equals(other.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 (getMockedToolCallsCount() > 0) { + hash = (37 * hash) + MOCKED_TOOL_CALLS_FIELD_NUMBER; + hash = (53 * hash) + getMockedToolCallsList().hashCode(); + } + hash = (37 * hash) + UNMATCHED_TOOL_CALL_BEHAVIOR_FIELD_NUMBER; + hash = (53 * hash) + unmatchedToolCallBehavior_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.MockConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.MockConfig parseFrom( + 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.v1.MockConfig parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.MockConfig parseFrom( + com.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.v1.MockConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.MockConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.MockConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.MockConfig parseFrom( + java.io.InputStream 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.v1.MockConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.MockConfig parseDelimitedFrom( + java.io.InputStream 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.v1.MockConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.MockConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, 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.v1.MockConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                +   * Mock tool calls configuration for the session.
                +   * 
                + * + * Protobuf type {@code google.cloud.ces.v1.MockConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.MockConfig) + com.google.cloud.ces.v1.MockConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_MockConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_MockConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.MockConfig.class, + com.google.cloud.ces.v1.MockConfig.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.MockConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (mockedToolCallsBuilder_ == null) { + mockedToolCalls_ = java.util.Collections.emptyList(); + } else { + mockedToolCalls_ = null; + mockedToolCallsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + unmatchedToolCallBehavior_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_MockConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.MockConfig getDefaultInstanceForType() { + return com.google.cloud.ces.v1.MockConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.MockConfig build() { + com.google.cloud.ces.v1.MockConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.MockConfig buildPartial() { + com.google.cloud.ces.v1.MockConfig result = new com.google.cloud.ces.v1.MockConfig(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.ces.v1.MockConfig result) { + if (mockedToolCallsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + mockedToolCalls_ = java.util.Collections.unmodifiableList(mockedToolCalls_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.mockedToolCalls_ = mockedToolCalls_; + } else { + result.mockedToolCalls_ = mockedToolCallsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.ces.v1.MockConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.unmatchedToolCallBehavior_ = unmatchedToolCallBehavior_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.MockConfig) { + return mergeFrom((com.google.cloud.ces.v1.MockConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.MockConfig other) { + if (other == com.google.cloud.ces.v1.MockConfig.getDefaultInstance()) return this; + if (mockedToolCallsBuilder_ == null) { + if (!other.mockedToolCalls_.isEmpty()) { + if (mockedToolCalls_.isEmpty()) { + mockedToolCalls_ = other.mockedToolCalls_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMockedToolCallsIsMutable(); + mockedToolCalls_.addAll(other.mockedToolCalls_); + } + onChanged(); + } + } else { + if (!other.mockedToolCalls_.isEmpty()) { + if (mockedToolCallsBuilder_.isEmpty()) { + mockedToolCallsBuilder_.dispose(); + mockedToolCallsBuilder_ = null; + mockedToolCalls_ = other.mockedToolCalls_; + bitField0_ = (bitField0_ & ~0x00000001); + mockedToolCallsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetMockedToolCallsFieldBuilder() + : null; + } else { + mockedToolCallsBuilder_.addAllMessages(other.mockedToolCalls_); + } + } + } + if (other.unmatchedToolCallBehavior_ != 0) { + setUnmatchedToolCallBehaviorValue(other.getUnmatchedToolCallBehaviorValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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.ces.v1.MockedToolCall m = + input.readMessage( + com.google.cloud.ces.v1.MockedToolCall.parser(), extensionRegistry); + if (mockedToolCallsBuilder_ == null) { + ensureMockedToolCallsIsMutable(); + mockedToolCalls_.add(m); + } else { + mockedToolCallsBuilder_.addMessage(m); + } + break; + } // case 10 + case 16: + { + unmatchedToolCallBehavior_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List mockedToolCalls_ = + java.util.Collections.emptyList(); + + private void ensureMockedToolCallsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + mockedToolCalls_ = + new java.util.ArrayList(mockedToolCalls_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.MockedToolCall, + com.google.cloud.ces.v1.MockedToolCall.Builder, + com.google.cloud.ces.v1.MockedToolCallOrBuilder> + mockedToolCallsBuilder_; + + /** + * + * + *
                +     * Optional. All tool calls to mock for the duration of the session.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getMockedToolCallsList() { + if (mockedToolCallsBuilder_ == null) { + return java.util.Collections.unmodifiableList(mockedToolCalls_); + } else { + return mockedToolCallsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                +     * Optional. All tool calls to mock for the duration of the session.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getMockedToolCallsCount() { + if (mockedToolCallsBuilder_ == null) { + return mockedToolCalls_.size(); + } else { + return mockedToolCallsBuilder_.getCount(); + } + } + + /** + * + * + *
                +     * Optional. All tool calls to mock for the duration of the session.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.MockedToolCall getMockedToolCalls(int index) { + if (mockedToolCallsBuilder_ == null) { + return mockedToolCalls_.get(index); + } else { + return mockedToolCallsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                +     * Optional. All tool calls to mock for the duration of the session.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMockedToolCalls(int index, com.google.cloud.ces.v1.MockedToolCall value) { + if (mockedToolCallsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMockedToolCallsIsMutable(); + mockedToolCalls_.set(index, value); + onChanged(); + } else { + mockedToolCallsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                +     * Optional. All tool calls to mock for the duration of the session.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMockedToolCalls( + int index, com.google.cloud.ces.v1.MockedToolCall.Builder builderForValue) { + if (mockedToolCallsBuilder_ == null) { + ensureMockedToolCallsIsMutable(); + mockedToolCalls_.set(index, builderForValue.build()); + onChanged(); + } else { + mockedToolCallsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                +     * Optional. All tool calls to mock for the duration of the session.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addMockedToolCalls(com.google.cloud.ces.v1.MockedToolCall value) { + if (mockedToolCallsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMockedToolCallsIsMutable(); + mockedToolCalls_.add(value); + onChanged(); + } else { + mockedToolCallsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                +     * Optional. All tool calls to mock for the duration of the session.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addMockedToolCalls(int index, com.google.cloud.ces.v1.MockedToolCall value) { + if (mockedToolCallsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMockedToolCallsIsMutable(); + mockedToolCalls_.add(index, value); + onChanged(); + } else { + mockedToolCallsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                +     * Optional. All tool calls to mock for the duration of the session.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addMockedToolCalls( + com.google.cloud.ces.v1.MockedToolCall.Builder builderForValue) { + if (mockedToolCallsBuilder_ == null) { + ensureMockedToolCallsIsMutable(); + mockedToolCalls_.add(builderForValue.build()); + onChanged(); + } else { + mockedToolCallsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                +     * Optional. All tool calls to mock for the duration of the session.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addMockedToolCalls( + int index, com.google.cloud.ces.v1.MockedToolCall.Builder builderForValue) { + if (mockedToolCallsBuilder_ == null) { + ensureMockedToolCallsIsMutable(); + mockedToolCalls_.add(index, builderForValue.build()); + onChanged(); + } else { + mockedToolCallsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                +     * Optional. All tool calls to mock for the duration of the session.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllMockedToolCalls( + java.lang.Iterable values) { + if (mockedToolCallsBuilder_ == null) { + ensureMockedToolCallsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, mockedToolCalls_); + onChanged(); + } else { + mockedToolCallsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                +     * Optional. All tool calls to mock for the duration of the session.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMockedToolCalls() { + if (mockedToolCallsBuilder_ == null) { + mockedToolCalls_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + mockedToolCallsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                +     * Optional. All tool calls to mock for the duration of the session.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeMockedToolCalls(int index) { + if (mockedToolCallsBuilder_ == null) { + ensureMockedToolCallsIsMutable(); + mockedToolCalls_.remove(index); + onChanged(); + } else { + mockedToolCallsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                +     * Optional. All tool calls to mock for the duration of the session.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.MockedToolCall.Builder getMockedToolCallsBuilder(int index) { + return internalGetMockedToolCallsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                +     * Optional. All tool calls to mock for the duration of the session.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.MockedToolCallOrBuilder getMockedToolCallsOrBuilder(int index) { + if (mockedToolCallsBuilder_ == null) { + return mockedToolCalls_.get(index); + } else { + return mockedToolCallsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                +     * Optional. All tool calls to mock for the duration of the session.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getMockedToolCallsOrBuilderList() { + if (mockedToolCallsBuilder_ != null) { + return mockedToolCallsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(mockedToolCalls_); + } + } + + /** + * + * + *
                +     * Optional. All tool calls to mock for the duration of the session.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.MockedToolCall.Builder addMockedToolCallsBuilder() { + return internalGetMockedToolCallsFieldBuilder() + .addBuilder(com.google.cloud.ces.v1.MockedToolCall.getDefaultInstance()); + } + + /** + * + * + *
                +     * Optional. All tool calls to mock for the duration of the session.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.MockedToolCall.Builder addMockedToolCallsBuilder(int index) { + return internalGetMockedToolCallsFieldBuilder() + .addBuilder(index, com.google.cloud.ces.v1.MockedToolCall.getDefaultInstance()); + } + + /** + * + * + *
                +     * Optional. All tool calls to mock for the duration of the session.
                +     * 
                + * + * + * repeated .google.cloud.ces.v1.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getMockedToolCallsBuilderList() { + return internalGetMockedToolCallsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.MockedToolCall, + com.google.cloud.ces.v1.MockedToolCall.Builder, + com.google.cloud.ces.v1.MockedToolCallOrBuilder> + internalGetMockedToolCallsFieldBuilder() { + if (mockedToolCallsBuilder_ == null) { + mockedToolCallsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.MockedToolCall, + com.google.cloud.ces.v1.MockedToolCall.Builder, + com.google.cloud.ces.v1.MockedToolCallOrBuilder>( + mockedToolCalls_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + mockedToolCalls_ = null; + } + return mockedToolCallsBuilder_; + } + + private int unmatchedToolCallBehavior_ = 0; + + /** + * + * + *
                +     * Required. Beavhior for tool calls that don't match any args patterns in
                +     * mocked_tool_calls.
                +     * 
                + * + * + * .google.cloud.ces.v1.MockConfig.UnmatchedToolCallBehavior unmatched_tool_call_behavior = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for unmatchedToolCallBehavior. + */ + @java.lang.Override + public int getUnmatchedToolCallBehaviorValue() { + return unmatchedToolCallBehavior_; + } + + /** + * + * + *
                +     * Required. Beavhior for tool calls that don't match any args patterns in
                +     * mocked_tool_calls.
                +     * 
                + * + * + * .google.cloud.ces.v1.MockConfig.UnmatchedToolCallBehavior unmatched_tool_call_behavior = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for unmatchedToolCallBehavior to set. + * @return This builder for chaining. + */ + public Builder setUnmatchedToolCallBehaviorValue(int value) { + unmatchedToolCallBehavior_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. Beavhior for tool calls that don't match any args patterns in
                +     * mocked_tool_calls.
                +     * 
                + * + * + * .google.cloud.ces.v1.MockConfig.UnmatchedToolCallBehavior unmatched_tool_call_behavior = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The unmatchedToolCallBehavior. + */ + @java.lang.Override + public com.google.cloud.ces.v1.MockConfig.UnmatchedToolCallBehavior + getUnmatchedToolCallBehavior() { + com.google.cloud.ces.v1.MockConfig.UnmatchedToolCallBehavior result = + com.google.cloud.ces.v1.MockConfig.UnmatchedToolCallBehavior.forNumber( + unmatchedToolCallBehavior_); + return result == null + ? com.google.cloud.ces.v1.MockConfig.UnmatchedToolCallBehavior.UNRECOGNIZED + : result; + } + + /** + * + * + *
                +     * Required. Beavhior for tool calls that don't match any args patterns in
                +     * mocked_tool_calls.
                +     * 
                + * + * + * .google.cloud.ces.v1.MockConfig.UnmatchedToolCallBehavior unmatched_tool_call_behavior = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The unmatchedToolCallBehavior to set. + * @return This builder for chaining. + */ + public Builder setUnmatchedToolCallBehavior( + com.google.cloud.ces.v1.MockConfig.UnmatchedToolCallBehavior value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + unmatchedToolCallBehavior_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. Beavhior for tool calls that don't match any args patterns in
                +     * mocked_tool_calls.
                +     * 
                + * + * + * .google.cloud.ces.v1.MockConfig.UnmatchedToolCallBehavior unmatched_tool_call_behavior = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearUnmatchedToolCallBehavior() { + bitField0_ = (bitField0_ & ~0x00000002); + unmatchedToolCallBehavior_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.MockConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.MockConfig) + private static final com.google.cloud.ces.v1.MockConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.MockConfig(); + } + + public static com.google.cloud.ces.v1.MockConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MockConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.v1.MockConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/MockConfigOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/MockConfigOrBuilder.java new file mode 100644 index 000000000000..a011c322f425 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/MockConfigOrBuilder.java @@ -0,0 +1,126 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/session_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface MockConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.MockConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                +   * Optional. All tool calls to mock for the duration of the session.
                +   * 
                + * + * + * repeated .google.cloud.ces.v1.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getMockedToolCallsList(); + + /** + * + * + *
                +   * Optional. All tool calls to mock for the duration of the session.
                +   * 
                + * + * + * repeated .google.cloud.ces.v1.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.MockedToolCall getMockedToolCalls(int index); + + /** + * + * + *
                +   * Optional. All tool calls to mock for the duration of the session.
                +   * 
                + * + * + * repeated .google.cloud.ces.v1.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getMockedToolCallsCount(); + + /** + * + * + *
                +   * Optional. All tool calls to mock for the duration of the session.
                +   * 
                + * + * + * repeated .google.cloud.ces.v1.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getMockedToolCallsOrBuilderList(); + + /** + * + * + *
                +   * Optional. All tool calls to mock for the duration of the session.
                +   * 
                + * + * + * repeated .google.cloud.ces.v1.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.MockedToolCallOrBuilder getMockedToolCallsOrBuilder(int index); + + /** + * + * + *
                +   * Required. Beavhior for tool calls that don't match any args patterns in
                +   * mocked_tool_calls.
                +   * 
                + * + * + * .google.cloud.ces.v1.MockConfig.UnmatchedToolCallBehavior unmatched_tool_call_behavior = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for unmatchedToolCallBehavior. + */ + int getUnmatchedToolCallBehaviorValue(); + + /** + * + * + *
                +   * Required. Beavhior for tool calls that don't match any args patterns in
                +   * mocked_tool_calls.
                +   * 
                + * + * + * .google.cloud.ces.v1.MockConfig.UnmatchedToolCallBehavior unmatched_tool_call_behavior = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The unmatchedToolCallBehavior. + */ + com.google.cloud.ces.v1.MockConfig.UnmatchedToolCallBehavior getUnmatchedToolCallBehavior(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/MockedToolCall.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/MockedToolCall.java new file mode 100644 index 000000000000..4da0b7e793d8 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/MockedToolCall.java @@ -0,0 +1,1950 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language 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/v1/mocks.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
                + * A mocked tool call.
                + *
                + * Expresses the target tool + a pattern to match against that tool's
                + * args / inputs. If the pattern matches, then the mock response will be
                + * returned.
                + * 
                + * + * Protobuf type {@code google.cloud.ces.v1.MockedToolCall} + */ +@com.google.protobuf.Generated +public final class MockedToolCall extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.MockedToolCall) + MockedToolCallOrBuilder { + 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= */ "", + "MockedToolCall"); + } + + // Use MockedToolCall.newBuilder() to construct. + private MockedToolCall(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private MockedToolCall() { + tool_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.MocksProto + .internal_static_google_cloud_ces_v1_MockedToolCall_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.MocksProto + .internal_static_google_cloud_ces_v1_MockedToolCall_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.MockedToolCall.class, + com.google.cloud.ces.v1.MockedToolCall.Builder.class); + } + + private int bitField0_; + private int toolIdentifierCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object toolIdentifier_; + + public enum ToolIdentifierCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + TOOL_ID(4), + TOOLSET(5), + TOOLIDENTIFIER_NOT_SET(0); + private final int value; + + private ToolIdentifierCase(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 ToolIdentifierCase valueOf(int value) { + return forNumber(value); + } + + public static ToolIdentifierCase forNumber(int value) { + switch (value) { + case 4: + return TOOL_ID; + case 5: + return TOOLSET; + case 0: + return TOOLIDENTIFIER_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ToolIdentifierCase getToolIdentifierCase() { + return ToolIdentifierCase.forNumber(toolIdentifierCase_); + } + + public static final int TOOL_ID_FIELD_NUMBER = 4; + + /** + * + * + *
                +   * Optional. The name of the tool to mock.
                +   * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
                +   * 
                + * + * + * string tool_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the toolId field is set. + */ + public boolean hasToolId() { + return toolIdentifierCase_ == 4; + } + + /** + * + * + *
                +   * Optional. The name of the tool to mock.
                +   * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
                +   * 
                + * + * + * string tool_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The toolId. + */ + public java.lang.String getToolId() { + java.lang.Object ref = ""; + if (toolIdentifierCase_ == 4) { + ref = toolIdentifier_; + } + if (ref instanceof java.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 (toolIdentifierCase_ == 4) { + toolIdentifier_ = s; + } + return s; + } + } + + /** + * + * + *
                +   * Optional. The name of the tool to mock.
                +   * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
                +   * 
                + * + * + * string tool_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for toolId. + */ + public com.google.protobuf.ByteString getToolIdBytes() { + java.lang.Object ref = ""; + if (toolIdentifierCase_ == 4) { + ref = toolIdentifier_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (toolIdentifierCase_ == 4) { + toolIdentifier_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOOLSET_FIELD_NUMBER = 5; + + /** + * + * + *
                +   * Optional. The toolset to mock.
                +   * 
                + * + * .google.cloud.ces.v1.ToolsetTool toolset = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the toolset field is set. + */ + @java.lang.Override + public boolean hasToolset() { + return toolIdentifierCase_ == 5; + } + + /** + * + * + *
                +   * Optional. The toolset to mock.
                +   * 
                + * + * .google.cloud.ces.v1.ToolsetTool toolset = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The toolset. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ToolsetTool getToolset() { + if (toolIdentifierCase_ == 5) { + return (com.google.cloud.ces.v1.ToolsetTool) toolIdentifier_; + } + return com.google.cloud.ces.v1.ToolsetTool.getDefaultInstance(); + } + + /** + * + * + *
                +   * Optional. The toolset to mock.
                +   * 
                + * + * .google.cloud.ces.v1.ToolsetTool toolset = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ToolsetToolOrBuilder getToolsetOrBuilder() { + if (toolIdentifierCase_ == 5) { + return (com.google.cloud.ces.v1.ToolsetTool) toolIdentifier_; + } + return com.google.cloud.ces.v1.ToolsetTool.getDefaultInstance(); + } + + public static final int TOOL_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object tool_ = ""; + + /** + * + * + *
                +   * Optional. Deprecated. Use tool_identifier instead.
                +   * 
                + * + * + * string tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @deprecated google.cloud.ces.v1.MockedToolCall.tool is deprecated. See + * google/cloud/ces/v1/mocks.proto;l=48 + * @return The tool. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getTool() { + java.lang.Object ref = tool_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tool_ = s; + return s; + } + } + + /** + * + * + *
                +   * Optional. Deprecated. Use tool_identifier instead.
                +   * 
                + * + * + * string tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @deprecated google.cloud.ces.v1.MockedToolCall.tool is deprecated. See + * google/cloud/ces/v1/mocks.proto;l=48 + * @return The bytes for tool. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getToolBytes() { + java.lang.Object ref = tool_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tool_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXPECTED_ARGS_PATTERN_FIELD_NUMBER = 2; + private com.google.protobuf.Struct expectedArgsPattern_; + + /** + * + * + *
                +   * Required. A pattern to match against the args / inputs of all dispatched
                +   * tool calls. If the tool call inputs match this pattern, then mock output
                +   * will be returned.
                +   * 
                + * + * + * .google.protobuf.Struct expected_args_pattern = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the expectedArgsPattern field is set. + */ + @java.lang.Override + public boolean hasExpectedArgsPattern() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                +   * Required. A pattern to match against the args / inputs of all dispatched
                +   * tool calls. If the tool call inputs match this pattern, then mock output
                +   * will be returned.
                +   * 
                + * + * + * .google.protobuf.Struct expected_args_pattern = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The expectedArgsPattern. + */ + @java.lang.Override + public com.google.protobuf.Struct getExpectedArgsPattern() { + return expectedArgsPattern_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : expectedArgsPattern_; + } + + /** + * + * + *
                +   * Required. A pattern to match against the args / inputs of all dispatched
                +   * tool calls. If the tool call inputs match this pattern, then mock output
                +   * will be returned.
                +   * 
                + * + * + * .google.protobuf.Struct expected_args_pattern = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getExpectedArgsPatternOrBuilder() { + return expectedArgsPattern_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : expectedArgsPattern_; + } + + public static final int MOCK_RESPONSE_FIELD_NUMBER = 3; + private com.google.protobuf.Struct mockResponse_; + + /** + * + * + *
                +   * Optional. The mock response / output to return if the tool call args /
                +   * inputs match the pattern.
                +   * 
                + * + * .google.protobuf.Struct mock_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the mockResponse field is set. + */ + @java.lang.Override + public boolean hasMockResponse() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                +   * Optional. The mock response / output to return if the tool call args /
                +   * inputs match the pattern.
                +   * 
                + * + * .google.protobuf.Struct mock_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mockResponse. + */ + @java.lang.Override + public com.google.protobuf.Struct getMockResponse() { + return mockResponse_ == null ? com.google.protobuf.Struct.getDefaultInstance() : mockResponse_; + } + + /** + * + * + *
                +   * Optional. The mock response / output to return if the tool call args /
                +   * inputs match the pattern.
                +   * 
                + * + * .google.protobuf.Struct mock_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getMockResponseOrBuilder() { + return mockResponse_ == null ? com.google.protobuf.Struct.getDefaultInstance() : mockResponse_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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(tool_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, tool_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getExpectedArgsPattern()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getMockResponse()); + } + if (toolIdentifierCase_ == 4) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, toolIdentifier_); + } + if (toolIdentifierCase_ == 5) { + output.writeMessage(5, (com.google.cloud.ces.v1.ToolsetTool) toolIdentifier_); + } + 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(tool_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, tool_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExpectedArgsPattern()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMockResponse()); + } + if (toolIdentifierCase_ == 4) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, toolIdentifier_); + } + if (toolIdentifierCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.cloud.ces.v1.ToolsetTool) toolIdentifier_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.v1.MockedToolCall)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.MockedToolCall other = (com.google.cloud.ces.v1.MockedToolCall) obj; + + if (!getTool().equals(other.getTool())) return false; + if (hasExpectedArgsPattern() != other.hasExpectedArgsPattern()) return false; + if (hasExpectedArgsPattern()) { + if (!getExpectedArgsPattern().equals(other.getExpectedArgsPattern())) return false; + } + if (hasMockResponse() != other.hasMockResponse()) return false; + if (hasMockResponse()) { + if (!getMockResponse().equals(other.getMockResponse())) return false; + } + if (!getToolIdentifierCase().equals(other.getToolIdentifierCase())) return false; + switch (toolIdentifierCase_) { + case 4: + if (!getToolId().equals(other.getToolId())) return false; + break; + case 5: + if (!getToolset().equals(other.getToolset())) 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) + TOOL_FIELD_NUMBER; + hash = (53 * hash) + getTool().hashCode(); + if (hasExpectedArgsPattern()) { + hash = (37 * hash) + EXPECTED_ARGS_PATTERN_FIELD_NUMBER; + hash = (53 * hash) + getExpectedArgsPattern().hashCode(); + } + if (hasMockResponse()) { + hash = (37 * hash) + MOCK_RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getMockResponse().hashCode(); + } + switch (toolIdentifierCase_) { + case 4: + hash = (37 * hash) + TOOL_ID_FIELD_NUMBER; + hash = (53 * hash) + getToolId().hashCode(); + break; + case 5: + hash = (37 * hash) + TOOLSET_FIELD_NUMBER; + hash = (53 * hash) + getToolset().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.MockedToolCall parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.MockedToolCall parseFrom( + 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.v1.MockedToolCall parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.MockedToolCall parseFrom( + com.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.v1.MockedToolCall parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.MockedToolCall parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.MockedToolCall parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.MockedToolCall parseFrom( + java.io.InputStream 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.v1.MockedToolCall parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.MockedToolCall parseDelimitedFrom( + java.io.InputStream 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.v1.MockedToolCall parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.MockedToolCall parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, 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.v1.MockedToolCall prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 mocked tool call.
                +   *
                +   * Expresses the target tool + a pattern to match against that tool's
                +   * args / inputs. If the pattern matches, then the mock response will be
                +   * returned.
                +   * 
                + * + * Protobuf type {@code google.cloud.ces.v1.MockedToolCall} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.MockedToolCall) + com.google.cloud.ces.v1.MockedToolCallOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.MocksProto + .internal_static_google_cloud_ces_v1_MockedToolCall_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.MocksProto + .internal_static_google_cloud_ces_v1_MockedToolCall_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.MockedToolCall.class, + com.google.cloud.ces.v1.MockedToolCall.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.MockedToolCall.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetExpectedArgsPatternFieldBuilder(); + internalGetMockResponseFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (toolsetBuilder_ != null) { + toolsetBuilder_.clear(); + } + tool_ = ""; + expectedArgsPattern_ = null; + if (expectedArgsPatternBuilder_ != null) { + expectedArgsPatternBuilder_.dispose(); + expectedArgsPatternBuilder_ = null; + } + mockResponse_ = null; + if (mockResponseBuilder_ != null) { + mockResponseBuilder_.dispose(); + mockResponseBuilder_ = null; + } + toolIdentifierCase_ = 0; + toolIdentifier_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.MocksProto + .internal_static_google_cloud_ces_v1_MockedToolCall_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.MockedToolCall getDefaultInstanceForType() { + return com.google.cloud.ces.v1.MockedToolCall.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.MockedToolCall build() { + com.google.cloud.ces.v1.MockedToolCall result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.MockedToolCall buildPartial() { + com.google.cloud.ces.v1.MockedToolCall result = + new com.google.cloud.ces.v1.MockedToolCall(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.MockedToolCall result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.tool_ = tool_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.expectedArgsPattern_ = + expectedArgsPatternBuilder_ == null + ? expectedArgsPattern_ + : expectedArgsPatternBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.mockResponse_ = + mockResponseBuilder_ == null ? mockResponse_ : mockResponseBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.ces.v1.MockedToolCall result) { + result.toolIdentifierCase_ = toolIdentifierCase_; + result.toolIdentifier_ = this.toolIdentifier_; + if (toolIdentifierCase_ == 5 && toolsetBuilder_ != null) { + result.toolIdentifier_ = toolsetBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.MockedToolCall) { + return mergeFrom((com.google.cloud.ces.v1.MockedToolCall) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.MockedToolCall other) { + if (other == com.google.cloud.ces.v1.MockedToolCall.getDefaultInstance()) return this; + if (!other.getTool().isEmpty()) { + tool_ = other.tool_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasExpectedArgsPattern()) { + mergeExpectedArgsPattern(other.getExpectedArgsPattern()); + } + if (other.hasMockResponse()) { + mergeMockResponse(other.getMockResponse()); + } + switch (other.getToolIdentifierCase()) { + case TOOL_ID: + { + toolIdentifierCase_ = 4; + toolIdentifier_ = other.toolIdentifier_; + onChanged(); + break; + } + case TOOLSET: + { + mergeToolset(other.getToolset()); + break; + } + case TOOLIDENTIFIER_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: + { + tool_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetExpectedArgsPatternFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetMockResponseFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + toolIdentifierCase_ = 4; + toolIdentifier_ = s; + break; + } // case 34 + case 42: + { + input.readMessage(internalGetToolsetFieldBuilder().getBuilder(), extensionRegistry); + toolIdentifierCase_ = 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 toolIdentifierCase_ = 0; + private java.lang.Object toolIdentifier_; + + public ToolIdentifierCase getToolIdentifierCase() { + return ToolIdentifierCase.forNumber(toolIdentifierCase_); + } + + public Builder clearToolIdentifier() { + toolIdentifierCase_ = 0; + toolIdentifier_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
                +     * Optional. The name of the tool to mock.
                +     * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
                +     * 
                + * + * + * string tool_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the toolId field is set. + */ + @java.lang.Override + public boolean hasToolId() { + return toolIdentifierCase_ == 4; + } + + /** + * + * + *
                +     * Optional. The name of the tool to mock.
                +     * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
                +     * 
                + * + * + * string tool_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The toolId. + */ + @java.lang.Override + public java.lang.String getToolId() { + java.lang.Object ref = ""; + if (toolIdentifierCase_ == 4) { + ref = toolIdentifier_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (toolIdentifierCase_ == 4) { + toolIdentifier_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                +     * Optional. The name of the tool to mock.
                +     * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
                +     * 
                + * + * + * string tool_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for toolId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getToolIdBytes() { + java.lang.Object ref = ""; + if (toolIdentifierCase_ == 4) { + ref = toolIdentifier_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (toolIdentifierCase_ == 4) { + toolIdentifier_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                +     * Optional. The name of the tool to mock.
                +     * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
                +     * 
                + * + * + * string tool_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The toolId to set. + * @return This builder for chaining. + */ + public Builder setToolId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + toolIdentifierCase_ = 4; + toolIdentifier_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. The name of the tool to mock.
                +     * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
                +     * 
                + * + * + * string tool_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearToolId() { + if (toolIdentifierCase_ == 4) { + toolIdentifierCase_ = 0; + toolIdentifier_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
                +     * Optional. The name of the tool to mock.
                +     * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
                +     * 
                + * + * + * string tool_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for toolId to set. + * @return This builder for chaining. + */ + public Builder setToolIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + toolIdentifierCase_ = 4; + toolIdentifier_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ToolsetTool, + com.google.cloud.ces.v1.ToolsetTool.Builder, + com.google.cloud.ces.v1.ToolsetToolOrBuilder> + toolsetBuilder_; + + /** + * + * + *
                +     * Optional. The toolset to mock.
                +     * 
                + * + * .google.cloud.ces.v1.ToolsetTool toolset = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the toolset field is set. + */ + @java.lang.Override + public boolean hasToolset() { + return toolIdentifierCase_ == 5; + } + + /** + * + * + *
                +     * Optional. The toolset to mock.
                +     * 
                + * + * .google.cloud.ces.v1.ToolsetTool toolset = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The toolset. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ToolsetTool getToolset() { + if (toolsetBuilder_ == null) { + if (toolIdentifierCase_ == 5) { + return (com.google.cloud.ces.v1.ToolsetTool) toolIdentifier_; + } + return com.google.cloud.ces.v1.ToolsetTool.getDefaultInstance(); + } else { + if (toolIdentifierCase_ == 5) { + return toolsetBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.ToolsetTool.getDefaultInstance(); + } + } + + /** + * + * + *
                +     * Optional. The toolset to mock.
                +     * 
                + * + * .google.cloud.ces.v1.ToolsetTool toolset = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setToolset(com.google.cloud.ces.v1.ToolsetTool value) { + if (toolsetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + toolIdentifier_ = value; + onChanged(); + } else { + toolsetBuilder_.setMessage(value); + } + toolIdentifierCase_ = 5; + return this; + } + + /** + * + * + *
                +     * Optional. The toolset to mock.
                +     * 
                + * + * .google.cloud.ces.v1.ToolsetTool toolset = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setToolset(com.google.cloud.ces.v1.ToolsetTool.Builder builderForValue) { + if (toolsetBuilder_ == null) { + toolIdentifier_ = builderForValue.build(); + onChanged(); + } else { + toolsetBuilder_.setMessage(builderForValue.build()); + } + toolIdentifierCase_ = 5; + return this; + } + + /** + * + * + *
                +     * Optional. The toolset to mock.
                +     * 
                + * + * .google.cloud.ces.v1.ToolsetTool toolset = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeToolset(com.google.cloud.ces.v1.ToolsetTool value) { + if (toolsetBuilder_ == null) { + if (toolIdentifierCase_ == 5 + && toolIdentifier_ != com.google.cloud.ces.v1.ToolsetTool.getDefaultInstance()) { + toolIdentifier_ = + com.google.cloud.ces.v1.ToolsetTool.newBuilder( + (com.google.cloud.ces.v1.ToolsetTool) toolIdentifier_) + .mergeFrom(value) + .buildPartial(); + } else { + toolIdentifier_ = value; + } + onChanged(); + } else { + if (toolIdentifierCase_ == 5) { + toolsetBuilder_.mergeFrom(value); + } else { + toolsetBuilder_.setMessage(value); + } + } + toolIdentifierCase_ = 5; + return this; + } + + /** + * + * + *
                +     * Optional. The toolset to mock.
                +     * 
                + * + * .google.cloud.ces.v1.ToolsetTool toolset = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearToolset() { + if (toolsetBuilder_ == null) { + if (toolIdentifierCase_ == 5) { + toolIdentifierCase_ = 0; + toolIdentifier_ = null; + onChanged(); + } + } else { + if (toolIdentifierCase_ == 5) { + toolIdentifierCase_ = 0; + toolIdentifier_ = null; + } + toolsetBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                +     * Optional. The toolset to mock.
                +     * 
                + * + * .google.cloud.ces.v1.ToolsetTool toolset = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ToolsetTool.Builder getToolsetBuilder() { + return internalGetToolsetFieldBuilder().getBuilder(); + } + + /** + * + * + *
                +     * Optional. The toolset to mock.
                +     * 
                + * + * .google.cloud.ces.v1.ToolsetTool toolset = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ToolsetToolOrBuilder getToolsetOrBuilder() { + if ((toolIdentifierCase_ == 5) && (toolsetBuilder_ != null)) { + return toolsetBuilder_.getMessageOrBuilder(); + } else { + if (toolIdentifierCase_ == 5) { + return (com.google.cloud.ces.v1.ToolsetTool) toolIdentifier_; + } + return com.google.cloud.ces.v1.ToolsetTool.getDefaultInstance(); + } + } + + /** + * + * + *
                +     * Optional. The toolset to mock.
                +     * 
                + * + * .google.cloud.ces.v1.ToolsetTool toolset = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ToolsetTool, + com.google.cloud.ces.v1.ToolsetTool.Builder, + com.google.cloud.ces.v1.ToolsetToolOrBuilder> + internalGetToolsetFieldBuilder() { + if (toolsetBuilder_ == null) { + if (!(toolIdentifierCase_ == 5)) { + toolIdentifier_ = com.google.cloud.ces.v1.ToolsetTool.getDefaultInstance(); + } + toolsetBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ToolsetTool, + com.google.cloud.ces.v1.ToolsetTool.Builder, + com.google.cloud.ces.v1.ToolsetToolOrBuilder>( + (com.google.cloud.ces.v1.ToolsetTool) toolIdentifier_, + getParentForChildren(), + isClean()); + toolIdentifier_ = null; + } + toolIdentifierCase_ = 5; + onChanged(); + return toolsetBuilder_; + } + + private java.lang.Object tool_ = ""; + + /** + * + * + *
                +     * Optional. Deprecated. Use tool_identifier instead.
                +     * 
                + * + * + * string tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @deprecated google.cloud.ces.v1.MockedToolCall.tool is deprecated. See + * google/cloud/ces/v1/mocks.proto;l=48 + * @return The tool. + */ + @java.lang.Deprecated + public java.lang.String getTool() { + java.lang.Object ref = tool_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tool_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                +     * Optional. Deprecated. Use tool_identifier instead.
                +     * 
                + * + * + * string tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @deprecated google.cloud.ces.v1.MockedToolCall.tool is deprecated. See + * google/cloud/ces/v1/mocks.proto;l=48 + * @return The bytes for tool. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getToolBytes() { + java.lang.Object ref = tool_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tool_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                +     * Optional. Deprecated. Use tool_identifier instead.
                +     * 
                + * + * + * string tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @deprecated google.cloud.ces.v1.MockedToolCall.tool is deprecated. See + * google/cloud/ces/v1/mocks.proto;l=48 + * @param value The tool to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setTool(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + tool_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. Deprecated. Use tool_identifier instead.
                +     * 
                + * + * + * string tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @deprecated google.cloud.ces.v1.MockedToolCall.tool is deprecated. See + * google/cloud/ces/v1/mocks.proto;l=48 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearTool() { + tool_ = getDefaultInstance().getTool(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. Deprecated. Use tool_identifier instead.
                +     * 
                + * + * + * string tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @deprecated google.cloud.ces.v1.MockedToolCall.tool is deprecated. See + * google/cloud/ces/v1/mocks.proto;l=48 + * @param value The bytes for tool to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setToolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tool_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.Struct expectedArgsPattern_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + expectedArgsPatternBuilder_; + + /** + * + * + *
                +     * Required. A pattern to match against the args / inputs of all dispatched
                +     * tool calls. If the tool call inputs match this pattern, then mock output
                +     * will be returned.
                +     * 
                + * + * + * .google.protobuf.Struct expected_args_pattern = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the expectedArgsPattern field is set. + */ + public boolean hasExpectedArgsPattern() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
                +     * Required. A pattern to match against the args / inputs of all dispatched
                +     * tool calls. If the tool call inputs match this pattern, then mock output
                +     * will be returned.
                +     * 
                + * + * + * .google.protobuf.Struct expected_args_pattern = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The expectedArgsPattern. + */ + public com.google.protobuf.Struct getExpectedArgsPattern() { + if (expectedArgsPatternBuilder_ == null) { + return expectedArgsPattern_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : expectedArgsPattern_; + } else { + return expectedArgsPatternBuilder_.getMessage(); + } + } + + /** + * + * + *
                +     * Required. A pattern to match against the args / inputs of all dispatched
                +     * tool calls. If the tool call inputs match this pattern, then mock output
                +     * will be returned.
                +     * 
                + * + * + * .google.protobuf.Struct expected_args_pattern = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setExpectedArgsPattern(com.google.protobuf.Struct value) { + if (expectedArgsPatternBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expectedArgsPattern_ = value; + } else { + expectedArgsPatternBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. A pattern to match against the args / inputs of all dispatched
                +     * tool calls. If the tool call inputs match this pattern, then mock output
                +     * will be returned.
                +     * 
                + * + * + * .google.protobuf.Struct expected_args_pattern = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setExpectedArgsPattern(com.google.protobuf.Struct.Builder builderForValue) { + if (expectedArgsPatternBuilder_ == null) { + expectedArgsPattern_ = builderForValue.build(); + } else { + expectedArgsPatternBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. A pattern to match against the args / inputs of all dispatched
                +     * tool calls. If the tool call inputs match this pattern, then mock output
                +     * will be returned.
                +     * 
                + * + * + * .google.protobuf.Struct expected_args_pattern = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeExpectedArgsPattern(com.google.protobuf.Struct value) { + if (expectedArgsPatternBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && expectedArgsPattern_ != null + && expectedArgsPattern_ != com.google.protobuf.Struct.getDefaultInstance()) { + getExpectedArgsPatternBuilder().mergeFrom(value); + } else { + expectedArgsPattern_ = value; + } + } else { + expectedArgsPatternBuilder_.mergeFrom(value); + } + if (expectedArgsPattern_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
                +     * Required. A pattern to match against the args / inputs of all dispatched
                +     * tool calls. If the tool call inputs match this pattern, then mock output
                +     * will be returned.
                +     * 
                + * + * + * .google.protobuf.Struct expected_args_pattern = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearExpectedArgsPattern() { + bitField0_ = (bitField0_ & ~0x00000008); + expectedArgsPattern_ = null; + if (expectedArgsPatternBuilder_ != null) { + expectedArgsPatternBuilder_.dispose(); + expectedArgsPatternBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. A pattern to match against the args / inputs of all dispatched
                +     * tool calls. If the tool call inputs match this pattern, then mock output
                +     * will be returned.
                +     * 
                + * + * + * .google.protobuf.Struct expected_args_pattern = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.Struct.Builder getExpectedArgsPatternBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetExpectedArgsPatternFieldBuilder().getBuilder(); + } + + /** + * + * + *
                +     * Required. A pattern to match against the args / inputs of all dispatched
                +     * tool calls. If the tool call inputs match this pattern, then mock output
                +     * will be returned.
                +     * 
                + * + * + * .google.protobuf.Struct expected_args_pattern = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.StructOrBuilder getExpectedArgsPatternOrBuilder() { + if (expectedArgsPatternBuilder_ != null) { + return expectedArgsPatternBuilder_.getMessageOrBuilder(); + } else { + return expectedArgsPattern_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : expectedArgsPattern_; + } + } + + /** + * + * + *
                +     * Required. A pattern to match against the args / inputs of all dispatched
                +     * tool calls. If the tool call inputs match this pattern, then mock output
                +     * will be returned.
                +     * 
                + * + * + * .google.protobuf.Struct expected_args_pattern = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetExpectedArgsPatternFieldBuilder() { + if (expectedArgsPatternBuilder_ == null) { + expectedArgsPatternBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getExpectedArgsPattern(), getParentForChildren(), isClean()); + expectedArgsPattern_ = null; + } + return expectedArgsPatternBuilder_; + } + + private com.google.protobuf.Struct mockResponse_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + mockResponseBuilder_; + + /** + * + * + *
                +     * Optional. The mock response / output to return if the tool call args /
                +     * inputs match the pattern.
                +     * 
                + * + * .google.protobuf.Struct mock_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the mockResponse field is set. + */ + public boolean hasMockResponse() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
                +     * Optional. The mock response / output to return if the tool call args /
                +     * inputs match the pattern.
                +     * 
                + * + * .google.protobuf.Struct mock_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mockResponse. + */ + public com.google.protobuf.Struct getMockResponse() { + if (mockResponseBuilder_ == null) { + return mockResponse_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : mockResponse_; + } else { + return mockResponseBuilder_.getMessage(); + } + } + + /** + * + * + *
                +     * Optional. The mock response / output to return if the tool call args /
                +     * inputs match the pattern.
                +     * 
                + * + * .google.protobuf.Struct mock_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMockResponse(com.google.protobuf.Struct value) { + if (mockResponseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + mockResponse_ = value; + } else { + mockResponseBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. The mock response / output to return if the tool call args /
                +     * inputs match the pattern.
                +     * 
                + * + * .google.protobuf.Struct mock_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMockResponse(com.google.protobuf.Struct.Builder builderForValue) { + if (mockResponseBuilder_ == null) { + mockResponse_ = builderForValue.build(); + } else { + mockResponseBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. The mock response / output to return if the tool call args /
                +     * inputs match the pattern.
                +     * 
                + * + * .google.protobuf.Struct mock_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeMockResponse(com.google.protobuf.Struct value) { + if (mockResponseBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && mockResponse_ != null + && mockResponse_ != com.google.protobuf.Struct.getDefaultInstance()) { + getMockResponseBuilder().mergeFrom(value); + } else { + mockResponse_ = value; + } + } else { + mockResponseBuilder_.mergeFrom(value); + } + if (mockResponse_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
                +     * Optional. The mock response / output to return if the tool call args /
                +     * inputs match the pattern.
                +     * 
                + * + * .google.protobuf.Struct mock_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMockResponse() { + bitField0_ = (bitField0_ & ~0x00000010); + mockResponse_ = null; + if (mockResponseBuilder_ != null) { + mockResponseBuilder_.dispose(); + mockResponseBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. The mock response / output to return if the tool call args /
                +     * inputs match the pattern.
                +     * 
                + * + * .google.protobuf.Struct mock_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Struct.Builder getMockResponseBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetMockResponseFieldBuilder().getBuilder(); + } + + /** + * + * + *
                +     * Optional. The mock response / output to return if the tool call args /
                +     * inputs match the pattern.
                +     * 
                + * + * .google.protobuf.Struct mock_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.StructOrBuilder getMockResponseOrBuilder() { + if (mockResponseBuilder_ != null) { + return mockResponseBuilder_.getMessageOrBuilder(); + } else { + return mockResponse_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : mockResponse_; + } + } + + /** + * + * + *
                +     * Optional. The mock response / output to return if the tool call args /
                +     * inputs match the pattern.
                +     * 
                + * + * .google.protobuf.Struct mock_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetMockResponseFieldBuilder() { + if (mockResponseBuilder_ == null) { + mockResponseBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getMockResponse(), getParentForChildren(), isClean()); + mockResponse_ = null; + } + return mockResponseBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.MockedToolCall) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.MockedToolCall) + private static final com.google.cloud.ces.v1.MockedToolCall DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.MockedToolCall(); + } + + public static com.google.cloud.ces.v1.MockedToolCall getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MockedToolCall parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.v1.MockedToolCall getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/MockedToolCallOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/MockedToolCallOrBuilder.java new file mode 100644 index 000000000000..2904d7d2833b --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/MockedToolCallOrBuilder.java @@ -0,0 +1,246 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language 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/v1/mocks.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface MockedToolCallOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.MockedToolCall) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                +   * Optional. The name of the tool to mock.
                +   * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
                +   * 
                + * + * + * string tool_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the toolId field is set. + */ + boolean hasToolId(); + + /** + * + * + *
                +   * Optional. The name of the tool to mock.
                +   * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
                +   * 
                + * + * + * string tool_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The toolId. + */ + java.lang.String getToolId(); + + /** + * + * + *
                +   * Optional. The name of the tool to mock.
                +   * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
                +   * 
                + * + * + * string tool_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for toolId. + */ + com.google.protobuf.ByteString getToolIdBytes(); + + /** + * + * + *
                +   * Optional. The toolset to mock.
                +   * 
                + * + * .google.cloud.ces.v1.ToolsetTool toolset = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the toolset field is set. + */ + boolean hasToolset(); + + /** + * + * + *
                +   * Optional. The toolset to mock.
                +   * 
                + * + * .google.cloud.ces.v1.ToolsetTool toolset = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The toolset. + */ + com.google.cloud.ces.v1.ToolsetTool getToolset(); + + /** + * + * + *
                +   * Optional. The toolset to mock.
                +   * 
                + * + * .google.cloud.ces.v1.ToolsetTool toolset = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.ToolsetToolOrBuilder getToolsetOrBuilder(); + + /** + * + * + *
                +   * Optional. Deprecated. Use tool_identifier instead.
                +   * 
                + * + * + * string tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @deprecated google.cloud.ces.v1.MockedToolCall.tool is deprecated. See + * google/cloud/ces/v1/mocks.proto;l=48 + * @return The tool. + */ + @java.lang.Deprecated + java.lang.String getTool(); + + /** + * + * + *
                +   * Optional. Deprecated. Use tool_identifier instead.
                +   * 
                + * + * + * string tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @deprecated google.cloud.ces.v1.MockedToolCall.tool is deprecated. See + * google/cloud/ces/v1/mocks.proto;l=48 + * @return The bytes for tool. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getToolBytes(); + + /** + * + * + *
                +   * Required. A pattern to match against the args / inputs of all dispatched
                +   * tool calls. If the tool call inputs match this pattern, then mock output
                +   * will be returned.
                +   * 
                + * + * + * .google.protobuf.Struct expected_args_pattern = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the expectedArgsPattern field is set. + */ + boolean hasExpectedArgsPattern(); + + /** + * + * + *
                +   * Required. A pattern to match against the args / inputs of all dispatched
                +   * tool calls. If the tool call inputs match this pattern, then mock output
                +   * will be returned.
                +   * 
                + * + * + * .google.protobuf.Struct expected_args_pattern = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The expectedArgsPattern. + */ + com.google.protobuf.Struct getExpectedArgsPattern(); + + /** + * + * + *
                +   * Required. A pattern to match against the args / inputs of all dispatched
                +   * tool calls. If the tool call inputs match this pattern, then mock output
                +   * will be returned.
                +   * 
                + * + * + * .google.protobuf.Struct expected_args_pattern = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.StructOrBuilder getExpectedArgsPatternOrBuilder(); + + /** + * + * + *
                +   * Optional. The mock response / output to return if the tool call args /
                +   * inputs match the pattern.
                +   * 
                + * + * .google.protobuf.Struct mock_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the mockResponse field is set. + */ + boolean hasMockResponse(); + + /** + * + * + *
                +   * Optional. The mock response / output to return if the tool call args /
                +   * inputs match the pattern.
                +   * 
                + * + * .google.protobuf.Struct mock_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mockResponse. + */ + com.google.protobuf.Struct getMockResponse(); + + /** + * + * + *
                +   * Optional. The mock response / output to return if the tool call args /
                +   * inputs match the pattern.
                +   * 
                + * + * .google.protobuf.Struct mock_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.StructOrBuilder getMockResponseOrBuilder(); + + com.google.cloud.ces.v1.MockedToolCall.ToolIdentifierCase getToolIdentifierCase(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/MocksProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/MocksProto.java new file mode 100644 index 000000000000..f0bd9da7ae6f --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/MocksProto.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/ces/v1/mocks.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public final class MocksProto extends com.google.protobuf.GeneratedFile { + private MocksProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "MocksProto"); + } + + 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_ces_v1_MockedToolCall_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_MockedToolCall_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n\037google/cloud/ces/v1/mocks.proto\022\023googl" + + "e.cloud.ces.v1\032\037google/api/field_behavio" + + "r.proto\032\031google/api/resource.proto\032&goog" + + "le/cloud/ces/v1/toolset_tool.proto\032\034goog" + + "le/protobuf/struct.proto\"\264\002\n\016MockedToolC" + + "all\0222\n\007tool_id\030\004 \001(\tB\037\340A\001\372A\031\n\027ces.google" + + "apis.com/ToolH\000\0228\n\007toolset\030\005 \001(\0132 .googl" + + "e.cloud.ces.v1.ToolsetToolB\003\340A\001H\000\022/\n\004too" + + "l\030\001 \001(\tB!\030\001\340A\001\372A\031\n\027ces.googleapis.com/To" + + "ol\022;\n\025expected_args_pattern\030\002 \001(\0132\027.goog" + + "le.protobuf.StructB\003\340A\002\0223\n\rmock_response" + + "\030\003 \001(\0132\027.google.protobuf.StructB\003\340A\001B\021\n\017" + + "tool_identifierBR\n\027com.google.cloud.ces." + + "v1B\nMocksProtoP\001Z)cloud.google.com/go/ce" + + "s/apiv1/cespb;cespbb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.ces.v1.ToolsetToolProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + }); + internal_static_google_cloud_ces_v1_MockedToolCall_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_ces_v1_MockedToolCall_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_MockedToolCall_descriptor, + new java.lang.String[] { + "ToolId", "Toolset", "Tool", "ExpectedArgsPattern", "MockResponse", "ToolIdentifier", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.ces.v1.ToolsetToolProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/PythonFunction.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/PythonFunction.java index b90605ab11e2..47243051f5bc 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/PythonFunction.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/PythonFunction.java @@ -72,6 +72,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.ces.v1.PythonFunction.Builder.class); } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -237,6 +238,66 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } + public static final int SERVICE_DIRECTORY_CONFIG_FIELD_NUMBER = 4; + private com.google.cloud.ces.v1.ServiceDirectoryConfig serviceDirectoryConfig_; + + /** + * + * + *
                +   * Optional. Service Directory configuration for the tool.
                +   * 
                + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the serviceDirectoryConfig field is set. + */ + @java.lang.Override + public boolean hasServiceDirectoryConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                +   * Optional. Service Directory configuration for the tool.
                +   * 
                + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The serviceDirectoryConfig. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ServiceDirectoryConfig getServiceDirectoryConfig() { + return serviceDirectoryConfig_ == null + ? com.google.cloud.ces.v1.ServiceDirectoryConfig.getDefaultInstance() + : serviceDirectoryConfig_; + } + + /** + * + * + *
                +   * Optional. Service Directory configuration for the tool.
                +   * 
                + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ServiceDirectoryConfigOrBuilder + getServiceDirectoryConfigOrBuilder() { + return serviceDirectoryConfig_ == null + ? com.google.cloud.ces.v1.ServiceDirectoryConfig.getDefaultInstance() + : serviceDirectoryConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -260,6 +321,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, 3, description_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getServiceDirectoryConfig()); + } getUnknownFields().writeTo(output); } @@ -278,6 +342,10 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(3, description_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, getServiceDirectoryConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -296,6 +364,10 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (!getPythonCode().equals(other.getPythonCode())) return false; if (!getDescription().equals(other.getDescription())) return false; + if (hasServiceDirectoryConfig() != other.hasServiceDirectoryConfig()) return false; + if (hasServiceDirectoryConfig()) { + if (!getServiceDirectoryConfig().equals(other.getServiceDirectoryConfig())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -313,6 +385,10 @@ public int hashCode() { hash = (53 * hash) + getPythonCode().hashCode(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); + if (hasServiceDirectoryConfig()) { + hash = (37 * hash) + SERVICE_DIRECTORY_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getServiceDirectoryConfig().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -443,10 +519,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.ces.v1.PythonFunction.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) { + internalGetServiceDirectoryConfigFieldBuilder(); + } } @java.lang.Override @@ -456,6 +541,11 @@ public Builder clear() { name_ = ""; pythonCode_ = ""; description_ = ""; + serviceDirectoryConfig_ = null; + if (serviceDirectoryConfigBuilder_ != null) { + serviceDirectoryConfigBuilder_.dispose(); + serviceDirectoryConfigBuilder_ = null; + } return this; } @@ -501,6 +591,15 @@ private void buildPartial0(com.google.cloud.ces.v1.PythonFunction result) { if (((from_bitField0_ & 0x00000004) != 0)) { result.description_ = description_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.serviceDirectoryConfig_ = + serviceDirectoryConfigBuilder_ == null + ? serviceDirectoryConfig_ + : serviceDirectoryConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -530,6 +629,9 @@ public Builder mergeFrom(com.google.cloud.ces.v1.PythonFunction other) { bitField0_ |= 0x00000004; onChanged(); } + if (other.hasServiceDirectoryConfig()) { + mergeServiceDirectoryConfig(other.getServiceDirectoryConfig()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -574,6 +676,14 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 + case 34: + { + input.readMessage( + internalGetServiceDirectoryConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -941,6 +1051,223 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.cloud.ces.v1.ServiceDirectoryConfig serviceDirectoryConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ServiceDirectoryConfig, + com.google.cloud.ces.v1.ServiceDirectoryConfig.Builder, + com.google.cloud.ces.v1.ServiceDirectoryConfigOrBuilder> + serviceDirectoryConfigBuilder_; + + /** + * + * + *
                +     * Optional. Service Directory configuration for the tool.
                +     * 
                + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the serviceDirectoryConfig field is set. + */ + public boolean hasServiceDirectoryConfig() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
                +     * Optional. Service Directory configuration for the tool.
                +     * 
                + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The serviceDirectoryConfig. + */ + public com.google.cloud.ces.v1.ServiceDirectoryConfig getServiceDirectoryConfig() { + if (serviceDirectoryConfigBuilder_ == null) { + return serviceDirectoryConfig_ == null + ? com.google.cloud.ces.v1.ServiceDirectoryConfig.getDefaultInstance() + : serviceDirectoryConfig_; + } else { + return serviceDirectoryConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
                +     * Optional. Service Directory configuration for the tool.
                +     * 
                + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setServiceDirectoryConfig(com.google.cloud.ces.v1.ServiceDirectoryConfig value) { + if (serviceDirectoryConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + serviceDirectoryConfig_ = value; + } else { + serviceDirectoryConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. Service Directory configuration for the tool.
                +     * 
                + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setServiceDirectoryConfig( + com.google.cloud.ces.v1.ServiceDirectoryConfig.Builder builderForValue) { + if (serviceDirectoryConfigBuilder_ == null) { + serviceDirectoryConfig_ = builderForValue.build(); + } else { + serviceDirectoryConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. Service Directory configuration for the tool.
                +     * 
                + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeServiceDirectoryConfig( + com.google.cloud.ces.v1.ServiceDirectoryConfig value) { + if (serviceDirectoryConfigBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && serviceDirectoryConfig_ != null + && serviceDirectoryConfig_ + != com.google.cloud.ces.v1.ServiceDirectoryConfig.getDefaultInstance()) { + getServiceDirectoryConfigBuilder().mergeFrom(value); + } else { + serviceDirectoryConfig_ = value; + } + } else { + serviceDirectoryConfigBuilder_.mergeFrom(value); + } + if (serviceDirectoryConfig_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
                +     * Optional. Service Directory configuration for the tool.
                +     * 
                + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearServiceDirectoryConfig() { + bitField0_ = (bitField0_ & ~0x00000008); + serviceDirectoryConfig_ = null; + if (serviceDirectoryConfigBuilder_ != null) { + serviceDirectoryConfigBuilder_.dispose(); + serviceDirectoryConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. Service Directory configuration for the tool.
                +     * 
                + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ServiceDirectoryConfig.Builder + getServiceDirectoryConfigBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetServiceDirectoryConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
                +     * Optional. Service Directory configuration for the tool.
                +     * 
                + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ServiceDirectoryConfigOrBuilder + getServiceDirectoryConfigOrBuilder() { + if (serviceDirectoryConfigBuilder_ != null) { + return serviceDirectoryConfigBuilder_.getMessageOrBuilder(); + } else { + return serviceDirectoryConfig_ == null + ? com.google.cloud.ces.v1.ServiceDirectoryConfig.getDefaultInstance() + : serviceDirectoryConfig_; + } + } + + /** + * + * + *
                +     * Optional. Service Directory configuration for the tool.
                +     * 
                + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ServiceDirectoryConfig, + com.google.cloud.ces.v1.ServiceDirectoryConfig.Builder, + com.google.cloud.ces.v1.ServiceDirectoryConfigOrBuilder> + internalGetServiceDirectoryConfigFieldBuilder() { + if (serviceDirectoryConfigBuilder_ == null) { + serviceDirectoryConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ServiceDirectoryConfig, + com.google.cloud.ces.v1.ServiceDirectoryConfig.Builder, + com.google.cloud.ces.v1.ServiceDirectoryConfigOrBuilder>( + getServiceDirectoryConfig(), getParentForChildren(), isClean()); + serviceDirectoryConfig_ = null; + } + return serviceDirectoryConfigBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.PythonFunction) } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/PythonFunctionOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/PythonFunctionOrBuilder.java index b1abd608fa01..0d26173c8455 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/PythonFunctionOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/PythonFunctionOrBuilder.java @@ -109,4 +109,47 @@ public interface PythonFunctionOrBuilder * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
                +   * Optional. Service Directory configuration for the tool.
                +   * 
                + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the serviceDirectoryConfig field is set. + */ + boolean hasServiceDirectoryConfig(); + + /** + * + * + *
                +   * Optional. Service Directory configuration for the tool.
                +   * 
                + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The serviceDirectoryConfig. + */ + com.google.cloud.ces.v1.ServiceDirectoryConfig getServiceDirectoryConfig(); + + /** + * + * + *
                +   * Optional. Service Directory configuration for the tool.
                +   * 
                + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.ServiceDirectoryConfigOrBuilder getServiceDirectoryConfigOrBuilder(); } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/PythonFunctionProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/PythonFunctionProto.java index d0f33d640cee..5363f7dc256a 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/PythonFunctionProto.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/PythonFunctionProto.java @@ -55,19 +55,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n" + ")google/cloud/ces/v1/python_function.pr" - + "oto\022\023google.cloud.ces.v1\032\037google/api/field_behavior.proto\"W\n" + + "oto\022\023google.cloud.ces.v1\032\037google/api/field_behavior.proto\032" + + " google/cloud/ces/v1/common.proto\"\253\001\n" + "\016PythonFunction\022\021\n" + "\004name\030\001 \001(\tB\003\340A\001\022\030\n" + "\013python_code\030\002 \001(\tB\003\340A\001\022\030\n" - + "\013description\030\003 \001(\tB\003\340A\003B[\n" - + "\027com.google.cloud.ces.v1B\023PythonFunctionProtoP\001Z)cl" - + "oud.google.com/go/ces/apiv1/cespb;cespbb\006proto3" + + "\013description\030\003 \001(\tB\003\340A\003\022R\n" + + "\030service_directory_config\030\004" + + " \001(\0132+.google.cloud.ces.v1.ServiceDirectoryConfigB\003\340A\001B[\n" + + "\027com.google.cloud.ces.v1B\023PythonFunctionProtoP\001Z)clo" + + "ud.google.com/go/ces/apiv1/cespb;cespbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.cloud.ces.v1.CommonProto.getDescriptor(), }); internal_static_google_cloud_ces_v1_PythonFunction_descriptor = getDescriptor().getMessageType(0); @@ -75,10 +79,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1_PythonFunction_descriptor, new java.lang.String[] { - "Name", "PythonCode", "Description", + "Name", "PythonCode", "Description", "ServiceDirectoryConfig", }); descriptor.resolveAllFeaturesImmutable(); com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.cloud.ces.v1.CommonProto.getDescriptor(); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RemoteAgentTool.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RemoteAgentTool.java new file mode 100644 index 000000000000..16aed7317a4b --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RemoteAgentTool.java @@ -0,0 +1,1092 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language 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/v1/agent_card.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
                + * Represents a tool that allows the agent to call another remote agent.
                + * 
                + * + * Protobuf type {@code google.cloud.ces.v1.RemoteAgentTool} + */ +@com.google.protobuf.Generated +public final class RemoteAgentTool extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.RemoteAgentTool) + RemoteAgentToolOrBuilder { + 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= */ "", + "RemoteAgentTool"); + } + + // Use RemoteAgentTool.newBuilder() to construct. + private RemoteAgentTool(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RemoteAgentTool() { + name_ = ""; + description_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentCardProto + .internal_static_google_cloud_ces_v1_RemoteAgentTool_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentCardProto + .internal_static_google_cloud_ces_v1_RemoteAgentTool_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.RemoteAgentTool.class, + com.google.cloud.ces.v1.RemoteAgentTool.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                +   * Required. The name of the tool.
                +   * 
                + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
                +   * Required. The name of the tool.
                +   * 
                + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
                +   * Required. The description of the tool.
                +   * 
                + * + * string description = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
                +   * Required. The description of the tool.
                +   * 
                + * + * string description = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AGENT_CARD_FIELD_NUMBER = 3; + private com.google.cloud.ces.v1.AgentCard agentCard_; + + /** + * + * + *
                +   * Required. The agent card of the remote agent that this tool invokes.
                +   * 
                + * + * .google.cloud.ces.v1.AgentCard agent_card = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the agentCard field is set. + */ + @java.lang.Override + public boolean hasAgentCard() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                +   * Required. The agent card of the remote agent that this tool invokes.
                +   * 
                + * + * .google.cloud.ces.v1.AgentCard agent_card = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The agentCard. + */ + @java.lang.Override + public com.google.cloud.ces.v1.AgentCard getAgentCard() { + return agentCard_ == null ? com.google.cloud.ces.v1.AgentCard.getDefaultInstance() : agentCard_; + } + + /** + * + * + *
                +   * Required. The agent card of the remote agent that this tool invokes.
                +   * 
                + * + * .google.cloud.ces.v1.AgentCard agent_card = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.AgentCardOrBuilder getAgentCardOrBuilder() { + return agentCard_ == null ? com.google.cloud.ces.v1.AgentCard.getDefaultInstance() : agentCard_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, description_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getAgentCard()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, description_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAgentCard()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.v1.RemoteAgentTool)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.RemoteAgentTool other = (com.google.cloud.ces.v1.RemoteAgentTool) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (hasAgentCard() != other.hasAgentCard()) return false; + if (hasAgentCard()) { + if (!getAgentCard().equals(other.getAgentCard())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (hasAgentCard()) { + hash = (37 * hash) + AGENT_CARD_FIELD_NUMBER; + hash = (53 * hash) + getAgentCard().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.RemoteAgentTool parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.RemoteAgentTool parseFrom( + 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.v1.RemoteAgentTool parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.RemoteAgentTool parseFrom( + com.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.v1.RemoteAgentTool parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.RemoteAgentTool parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.RemoteAgentTool parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.RemoteAgentTool parseFrom( + java.io.InputStream 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.v1.RemoteAgentTool parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.RemoteAgentTool parseDelimitedFrom( + java.io.InputStream 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.v1.RemoteAgentTool parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.RemoteAgentTool parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, 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.v1.RemoteAgentTool prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 tool that allows the agent to call another remote agent.
                +   * 
                + * + * Protobuf type {@code google.cloud.ces.v1.RemoteAgentTool} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.RemoteAgentTool) + com.google.cloud.ces.v1.RemoteAgentToolOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentCardProto + .internal_static_google_cloud_ces_v1_RemoteAgentTool_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentCardProto + .internal_static_google_cloud_ces_v1_RemoteAgentTool_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.RemoteAgentTool.class, + com.google.cloud.ces.v1.RemoteAgentTool.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.RemoteAgentTool.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetAgentCardFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + description_ = ""; + agentCard_ = null; + if (agentCardBuilder_ != null) { + agentCardBuilder_.dispose(); + agentCardBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentCardProto + .internal_static_google_cloud_ces_v1_RemoteAgentTool_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.RemoteAgentTool getDefaultInstanceForType() { + return com.google.cloud.ces.v1.RemoteAgentTool.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.RemoteAgentTool build() { + com.google.cloud.ces.v1.RemoteAgentTool result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.RemoteAgentTool buildPartial() { + com.google.cloud.ces.v1.RemoteAgentTool result = + new com.google.cloud.ces.v1.RemoteAgentTool(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.RemoteAgentTool result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.description_ = description_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.agentCard_ = agentCardBuilder_ == null ? agentCard_ : agentCardBuilder_.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.ces.v1.RemoteAgentTool) { + return mergeFrom((com.google.cloud.ces.v1.RemoteAgentTool) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.RemoteAgentTool other) { + if (other == com.google.cloud.ces.v1.RemoteAgentTool.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasAgentCard()) { + mergeAgentCard(other.getAgentCard()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetAgentCardFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
                +     * Required. The name of the tool.
                +     * 
                + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                +     * Required. The name of the tool.
                +     * 
                + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                +     * Required. The name of the tool.
                +     * 
                + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The name of the tool.
                +     * 
                + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The name of the tool.
                +     * 
                + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
                +     * Required. The description of the tool.
                +     * 
                + * + * string description = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
                +     * Required. The description of the tool.
                +     * 
                + * + * string description = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
                +     * Required. The description of the tool.
                +     * 
                + * + * string description = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The description of the tool.
                +     * 
                + * + * string description = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The description of the tool.
                +     * 
                + * + * string description = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.ces.v1.AgentCard agentCard_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.AgentCard, + com.google.cloud.ces.v1.AgentCard.Builder, + com.google.cloud.ces.v1.AgentCardOrBuilder> + agentCardBuilder_; + + /** + * + * + *
                +     * Required. The agent card of the remote agent that this tool invokes.
                +     * 
                + * + * + * .google.cloud.ces.v1.AgentCard agent_card = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the agentCard field is set. + */ + public boolean hasAgentCard() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                +     * Required. The agent card of the remote agent that this tool invokes.
                +     * 
                + * + * + * .google.cloud.ces.v1.AgentCard agent_card = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The agentCard. + */ + public com.google.cloud.ces.v1.AgentCard getAgentCard() { + if (agentCardBuilder_ == null) { + return agentCard_ == null + ? com.google.cloud.ces.v1.AgentCard.getDefaultInstance() + : agentCard_; + } else { + return agentCardBuilder_.getMessage(); + } + } + + /** + * + * + *
                +     * Required. The agent card of the remote agent that this tool invokes.
                +     * 
                + * + * + * .google.cloud.ces.v1.AgentCard agent_card = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAgentCard(com.google.cloud.ces.v1.AgentCard value) { + if (agentCardBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + agentCard_ = value; + } else { + agentCardBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The agent card of the remote agent that this tool invokes.
                +     * 
                + * + * + * .google.cloud.ces.v1.AgentCard agent_card = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAgentCard(com.google.cloud.ces.v1.AgentCard.Builder builderForValue) { + if (agentCardBuilder_ == null) { + agentCard_ = builderForValue.build(); + } else { + agentCardBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The agent card of the remote agent that this tool invokes.
                +     * 
                + * + * + * .google.cloud.ces.v1.AgentCard agent_card = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAgentCard(com.google.cloud.ces.v1.AgentCard value) { + if (agentCardBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && agentCard_ != null + && agentCard_ != com.google.cloud.ces.v1.AgentCard.getDefaultInstance()) { + getAgentCardBuilder().mergeFrom(value); + } else { + agentCard_ = value; + } + } else { + agentCardBuilder_.mergeFrom(value); + } + if (agentCard_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                +     * Required. The agent card of the remote agent that this tool invokes.
                +     * 
                + * + * + * .google.cloud.ces.v1.AgentCard agent_card = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAgentCard() { + bitField0_ = (bitField0_ & ~0x00000004); + agentCard_ = null; + if (agentCardBuilder_ != null) { + agentCardBuilder_.dispose(); + agentCardBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The agent card of the remote agent that this tool invokes.
                +     * 
                + * + * + * .google.cloud.ces.v1.AgentCard agent_card = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.AgentCard.Builder getAgentCardBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetAgentCardFieldBuilder().getBuilder(); + } + + /** + * + * + *
                +     * Required. The agent card of the remote agent that this tool invokes.
                +     * 
                + * + * + * .google.cloud.ces.v1.AgentCard agent_card = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.AgentCardOrBuilder getAgentCardOrBuilder() { + if (agentCardBuilder_ != null) { + return agentCardBuilder_.getMessageOrBuilder(); + } else { + return agentCard_ == null + ? com.google.cloud.ces.v1.AgentCard.getDefaultInstance() + : agentCard_; + } + } + + /** + * + * + *
                +     * Required. The agent card of the remote agent that this tool invokes.
                +     * 
                + * + * + * .google.cloud.ces.v1.AgentCard agent_card = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.AgentCard, + com.google.cloud.ces.v1.AgentCard.Builder, + com.google.cloud.ces.v1.AgentCardOrBuilder> + internalGetAgentCardFieldBuilder() { + if (agentCardBuilder_ == null) { + agentCardBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.AgentCard, + com.google.cloud.ces.v1.AgentCard.Builder, + com.google.cloud.ces.v1.AgentCardOrBuilder>( + getAgentCard(), getParentForChildren(), isClean()); + agentCard_ = null; + } + return agentCardBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.RemoteAgentTool) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.RemoteAgentTool) + private static final com.google.cloud.ces.v1.RemoteAgentTool DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.RemoteAgentTool(); + } + + public static com.google.cloud.ces.v1.RemoteAgentTool getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RemoteAgentTool parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.v1.RemoteAgentTool getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RemoteAgentToolOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RemoteAgentToolOrBuilder.java new file mode 100644 index 000000000000..7868bc19dc2c --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RemoteAgentToolOrBuilder.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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_card.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface RemoteAgentToolOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.RemoteAgentTool) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                +   * Required. The name of the tool.
                +   * 
                + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                +   * Required. The name of the tool.
                +   * 
                + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                +   * Required. The description of the tool.
                +   * 
                + * + * string description = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
                +   * Required. The description of the tool.
                +   * 
                + * + * string description = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
                +   * Required. The agent card of the remote agent that this tool invokes.
                +   * 
                + * + * .google.cloud.ces.v1.AgentCard agent_card = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the agentCard field is set. + */ + boolean hasAgentCard(); + + /** + * + * + *
                +   * Required. The agent card of the remote agent that this tool invokes.
                +   * 
                + * + * .google.cloud.ces.v1.AgentCard agent_card = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The agentCard. + */ + com.google.cloud.ces.v1.AgentCard getAgentCard(); + + /** + * + * + *
                +   * Required. The agent card of the remote agent that this tool invokes.
                +   * 
                + * + * .google.cloud.ces.v1.AgentCard agent_card = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.ces.v1.AgentCardOrBuilder getAgentCardOrBuilder(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RetrieveToolsRequest.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RetrieveToolsRequest.java index 9249c8b9dc15..79f35f2295b7 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RetrieveToolsRequest.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RetrieveToolsRequest.java @@ -205,6 +205,27 @@ public com.google.protobuf.ByteString getToolIdsBytes(int index) { return toolIds_.getByteString(index); } + public static final int BYPASS_PERSISTENCE_CONFIG_FIELD_NUMBER = 4; + private boolean bypassPersistenceConfig_ = false; + + /** + * + * + *
                +   * Optional. If true, the returned tools will contain raw descriptions and
                +   * schemas directly from the server, bypassing any stored persistence
                +   * configurations (overrides/snapshots).
                +   * 
                + * + * bool bypass_persistence_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bypassPersistenceConfig. + */ + @java.lang.Override + public boolean getBypassPersistenceConfig() { + return bypassPersistenceConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -225,6 +246,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < toolIds_.size(); i++) { com.google.protobuf.GeneratedMessage.writeString(output, 3, toolIds_.getRaw(i)); } + if (bypassPersistenceConfig_ != false) { + output.writeBool(4, bypassPersistenceConfig_); + } getUnknownFields().writeTo(output); } @@ -245,6 +269,9 @@ public int getSerializedSize() { size += dataSize; size += 1 * getToolIdsList().size(); } + if (bypassPersistenceConfig_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, bypassPersistenceConfig_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -263,6 +290,7 @@ public boolean equals(final java.lang.Object obj) { if (!getToolset().equals(other.getToolset())) return false; if (!getToolIdsList().equals(other.getToolIdsList())) return false; + if (getBypassPersistenceConfig() != other.getBypassPersistenceConfig()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -280,6 +308,8 @@ public int hashCode() { hash = (37 * hash) + TOOL_IDS_FIELD_NUMBER; hash = (53 * hash) + getToolIdsList().hashCode(); } + hash = (37 * hash) + BYPASS_PERSISTENCE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getBypassPersistenceConfig()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -423,6 +453,7 @@ public Builder clear() { bitField0_ = 0; toolset_ = ""; toolIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bypassPersistenceConfig_ = false; return this; } @@ -466,6 +497,9 @@ private void buildPartial0(com.google.cloud.ces.v1.RetrieveToolsRequest result) toolIds_.makeImmutable(); result.toolIds_ = toolIds_; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.bypassPersistenceConfig_ = bypassPersistenceConfig_; + } } @java.lang.Override @@ -495,6 +529,9 @@ public Builder mergeFrom(com.google.cloud.ces.v1.RetrieveToolsRequest other) { } onChanged(); } + if (other.getBypassPersistenceConfig() != false) { + setBypassPersistenceConfig(other.getBypassPersistenceConfig()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -534,6 +571,12 @@ public Builder mergeFrom( toolIds_.add(s); break; } // case 26 + case 32: + { + bypassPersistenceConfig_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 32 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -876,6 +919,68 @@ public Builder addToolIdsBytes(com.google.protobuf.ByteString value) { return this; } + private boolean bypassPersistenceConfig_; + + /** + * + * + *
                +     * Optional. If true, the returned tools will contain raw descriptions and
                +     * schemas directly from the server, bypassing any stored persistence
                +     * configurations (overrides/snapshots).
                +     * 
                + * + * bool bypass_persistence_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bypassPersistenceConfig. + */ + @java.lang.Override + public boolean getBypassPersistenceConfig() { + return bypassPersistenceConfig_; + } + + /** + * + * + *
                +     * Optional. If true, the returned tools will contain raw descriptions and
                +     * schemas directly from the server, bypassing any stored persistence
                +     * configurations (overrides/snapshots).
                +     * 
                + * + * bool bypass_persistence_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bypassPersistenceConfig to set. + * @return This builder for chaining. + */ + public Builder setBypassPersistenceConfig(boolean value) { + + bypassPersistenceConfig_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. If true, the returned tools will contain raw descriptions and
                +     * schemas directly from the server, bypassing any stored persistence
                +     * configurations (overrides/snapshots).
                +     * 
                + * + * bool bypass_persistence_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearBypassPersistenceConfig() { + bitField0_ = (bitField0_ & ~0x00000004); + bypassPersistenceConfig_ = false; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.RetrieveToolsRequest) } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RetrieveToolsRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RetrieveToolsRequestOrBuilder.java index 80a206be5ff8..1263aaad58cb 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RetrieveToolsRequestOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RetrieveToolsRequestOrBuilder.java @@ -117,4 +117,19 @@ public interface RetrieveToolsRequestOrBuilder * @return The bytes of the toolIds at the given index. */ com.google.protobuf.ByteString getToolIdsBytes(int index); + + /** + * + * + *
                +   * Optional. If true, the returned tools will contain raw descriptions and
                +   * schemas directly from the server, bypassing any stored persistence
                +   * configurations (overrides/snapshots).
                +   * 
                + * + * bool bypass_persistence_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bypassPersistenceConfig. + */ + boolean getBypassPersistenceConfig(); } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionOutput.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionOutput.java index 1270aa5867a8..8f0039c4fb0a 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionOutput.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/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.v1.SessionServiceProto @@ -1926,6 +1928,81 @@ public com.google.cloud.ces.v1.SessionOutput.DiagnosticInfo getDiagnosticInfo() : 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 @@ -1970,6 +2047,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); } @@ -2021,6 +2101,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; @@ -2042,6 +2125,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: @@ -2087,6 +2171,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; @@ -2260,6 +2348,7 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { internalGetDiagnosticInfoFieldBuilder(); + internalGetContextFieldBuilder(); } } @@ -2289,6 +2378,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; @@ -2318,6 +2414,7 @@ public com.google.cloud.ces.v1.SessionOutput build() { public com.google.cloud.ces.v1.SessionOutput buildPartial() { com.google.cloud.ces.v1.SessionOutput result = new com.google.cloud.ces.v1.SessionOutput(this); + buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -2326,6 +2423,18 @@ public com.google.cloud.ces.v1.SessionOutput buildPartial() { return result; } + private void buildPartialRepeatedFields(com.google.cloud.ces.v1.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.v1.SessionOutput result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000080) != 0)) { @@ -2384,6 +2493,33 @@ public Builder mergeFrom(com.google.cloud.ces.v1.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: { @@ -2520,6 +2656,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)) { @@ -4220,6 +4368,366 @@ public com.google.cloud.ces.v1.SessionOutput.DiagnosticInfo.Builder getDiagnosti 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.v1.SessionOutput) } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionOutputOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionOutputOrBuilder.java index 20cca68d70c1..c041f4221e66 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionOutputOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionOutputOrBuilder.java @@ -359,5 +359,60 @@ public interface SessionOutputOrBuilder */ com.google.cloud.ces.v1.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.v1.SessionOutput.OutputTypeCase getOutputTypeCase(); } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionServiceProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionServiceProto.java index 8f2542ff189a..86f827568e20 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionServiceProto.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionServiceProto.java @@ -40,6 +40,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_MockConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_MockConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_ces_v1_InputAudioConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -139,8 +143,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "otations.proto\032\027google/api/client.proto\032" + "\037google/api/field_behavior.proto\032\031google" + "/api/resource.proto\032\030google/api/routing.proto\032" - + " google/cloud/ces/v1/common.proto\032!google/cloud/ces/v1/example.proto\032,goog" - + "le/cloud/ces/v1/search_suggestions.proto\032\034google/protobuf/struct.proto\"\231\001\n" + + " google/cloud/ces/v1/common.proto\032!google/cloud/ces/v1/example.proto\032\037goog" + + "le/cloud/ces/v1/mocks.proto\032,google/clou" + + "d/ces/v1/search_suggestions.proto\032\031googl" + + "e/protobuf/any.proto\032\034google/protobuf/struct.proto\"\236\002\n\n" + + "MockConfig\022C\n" + + "\021mocked_tool_calls\030\001" + + " \003(\0132#.google.cloud.ces.v1.MockedToolCallB\003\340A\001\022d\n" + + "\034unmatched_tool_call_behavior\030\002" + + " \001(\01629.google.cloud.ces.v1.MockConfig.UnmatchedToolCallBehaviorB\003\340A\002\"e\n" + + "\031UnmatchedToolCallBehavior\022,\n" + + "(UNMATCHED_TOOL_CALL_BEHAVIOR_UNSPECIFIED\020\000\022\010\n" + + "\004FAIL\020\001\022\020\n" + + "\014PASS_THROUGH\020\002\"\231\001\n" + "\020InputAudioConfig\022?\n" + "\016audio_encoding\030\001" + " \001(\0162\".google.cloud.ces.v1.AudioEncodingB\003\340A\002\022\036\n" @@ -153,10 +168,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "SessionConfig\0223\n" + "\007session\030\001 \001(\tB\"\340A\002\372A\034\n" + "\032ces.googleapis.com/Session\022F\n" - + "\022input_audio_config\030\002 " - + "\001(\0132%.google.cloud.ces.v1.InputAudioConfigB\003\340A\001\022H\n" - + "\023output_audio_config\030\003 \001(\0132&.g" - + "oogle.cloud.ces.v1.OutputAudioConfigB\003\340A\001\022>\n" + + "\022input_audio_config\030\002" + + " \001(\0132%.google.cloud.ces.v1.InputAudioConfigB\003\340A\001\022H\n" + + "\023output_audio_config\030\003" + + " \001(\0132&.google.cloud.ces.v1.OutputAudioConfigB\003\340A\001\022>\n" + "\023historical_contexts\030\005" + " \003(\0132\034.google.cloud.ces.v1.MessageB\003\340A\001\0225\n" + "\013entry_agent\030\014 \001(\tB \340A\001\372A\032\n" @@ -164,48 +179,49 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "deployment\030\010 \001(\tB\003\340A\001\022\026\n" + "\ttime_zone\030\013 \001(\tB\003\340A\001\022\033\n" + "\016use_tool_fakes\030\016 \001(\010B\003\340A\001\022s\n" - + "\"remote_dialogflow_query_parameters\030\017 \001" - + "(\0132B.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParametersB\003\340A\001\022\"\n" + + "\"remote_dialogflow_query_parameters\030\017 \001(\0132B.google" + + ".cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParametersB\003\340A\001\022\"\n" + "\025enable_text_streaming\030\022 \001(\010B\003\340A\001\032\266\002\n" + "\037RemoteDialogflowQueryParameters\022t\n" - + "\017webhook_headers\030\001 \003(\0132V.google.cloud.ces.v1.Sessi" - + "onConfig.RemoteDialogflowQueryParameters.WebhookHeadersEntryB\003\340A\001\022-\n" + + "\017webhook_headers\030\001 \003(\0132V.google.cloud.ces.v1.SessionConfig.Re" + + "moteDialogflowQueryParameters.WebhookHeadersEntryB\003\340A\001\022-\n" + "\007payload\030\002 \001(\0132\027.google.protobuf.StructB\003\340A\001\0227\n" + "\021end_user_metadata\030\003" + " \001(\0132\027.google.protobuf.StructB\003\340A\001\0325\n" + "\023WebhookHeadersEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"C\n" - + "\tToolCalls\0226\n" - + "\n" + + "\tToolCalls\0226\n\n" + "tool_calls\030\001 \003(\0132\035.google.cloud.ces.v1.ToolCallB\003\340A\001\"O\n\r" + "ToolResponses\022>\n" - + "\016tool_responses\030\001" - + " \003(\0132!.google.cloud.ces.v1.ToolResponseB\003\340A\001\"\204\001\n" + + "\016tool_responses\030\001 " + + "\003(\0132!.google.cloud.ces.v1.ToolResponseB\003\340A\001\"\242\001\n" + "\tCitations\022?\n" - + "\014cited_chunks\030\001 \003(\0132).google.cloud.ces.v1.Citations.CitedChunk\0326\n\n" + + "\014cited_chunks\030\001 \003(\0132).google.cloud.ces.v1.Citations.CitedChunk\032T\n\n" + "CitedChunk\022\013\n" + "\003uri\030\001 \001(\t\022\r\n" + "\005title\030\002 \001(\t\022\014\n" - + "\004text\030\003 \001(\t\"\033\n" + + "\004text\030\003 \001(\t\022\034\n" + + "\024requires_attribution\030\004 \001(\010\"\033\n" + "\005Event\022\022\n" + "\005event\030\001 \001(\tB\003\340A\002\"\202\003\n" + "\014SessionInput\022\023\n" + "\004text\030\001 \001(\tB\003\340A\001H\000\022\023\n" + "\004dtmf\030\006 \001(\tB\003\340A\001H\000\022\024\n" + "\005audio\030\002 \001(\014B\003\340A\001H\000\022A\n" - + "\016tool_responses\030\003 " - + "\001(\0132\".google.cloud.ces.v1.ToolResponsesB\003\340A\001H\000\0220\n" + + "\016tool_responses\030\003" + + " \001(\0132\".google.cloud.ces.v1.ToolResponsesB\003\340A\001H\000\0220\n" + "\005image\030\004 \001(\0132\032.google.cloud.ces.v1.ImageB\003\340A\001H\000\022.\n" + "\004blob\030\007 \001(\0132\031.google.cloud.ces.v1.BlobB\003\340A\001H\000\0221\n" + "\tvariables\030\005 \001(\0132\027.google.protobuf.StructB\003\340A\001H\000\0220\n" + "\005event\030\t" + " \001(\0132\032.google.cloud.ces.v1.EventB\003\340A\001H\000\022\032\n\r" + "will_continue\030\010 \001(\010B\003\340A\001B\014\n\n" - + "input_type\"\316\004\n\r" + + "input_type\"\365\004\n\r" + "SessionOutput\022\016\n" + "\004text\030\001 \001(\tH\000\022\017\n" - + "\005audio\030\002 \001(\014H\000\0224\n\n" + + "\005audio\030\002 \001(\014H\000\0224\n" + + "\n" + "tool_calls\030\003 \001(\0132\036.google.cloud.ces.v1.ToolCallsH\000\0223\n" + "\tcitations\030\010 \001(\0132\036.google.cloud.ces.v1.CitationsH\000\022Q\n" + "\031google_search_suggestions\030\n" @@ -214,8 +230,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007payload\030\013 \001(\0132\027.google.protobuf.StructH\000\022\022\n\n" + "turn_index\030\006 \001(\005\022\026\n" + "\016turn_completed\030\004 \001(\010\022O\n" - + "\017diagnostic_info\030\007" - + " \001(\01321.google.cloud.ces.v1.SessionOutput.DiagnosticInfoB\003\340A\001\032n\n" + + "\017diagnostic_info\030\007 \001(\01321.g" + + "oogle.cloud.ces.v1.SessionOutput.DiagnosticInfoB\003\340A\001\022%\n" + + "\007context\030\014 \003(\0132\024.google.protobuf.Any\032n\n" + "\016DiagnosticInfo\022.\n" + "\010messages\030\001 \003(\0132\034.google.cloud.ces.v1.Message\022,\n" + "\troot_span\030\003 \001(\0132\031.google.cloud.ces.v1.SpanB\r\n" @@ -235,20 +252,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030BidiSessionClientMessage\0229\n" + "\006config\030\001" + " \001(\0132\".google.cloud.ces.v1.SessionConfigB\003\340A\001H\000\022@\n" - + "\016realtime_input\030\002 \001(\013" - + "2!.google.cloud.ces.v1.SessionInputB\003\340A\001H\000B\016\n" + + "\016realtime_input\030\002" + + " \001(\0132!.google.cloud.ces.v1.SessionInputB\003\340A\001H\000B\016\n" + "\014message_type\"\367\002\n" + "\030BidiSessionServerMessage\022A\n" + "\016session_output\030\001" + " \001(\0132\".google.cloud.ces.v1.SessionOutputB\003\340A\001H\000\022I\n" - + "\022recognition_result\030\002" - + " \001(\0132&.google.cloud.ces.v1.RecognitionResultB\003\340A\001H\000\022K\n" - + "\023interruption_signal\030\003" - + " \001(\0132\'.google.cloud.ces.v1.InterruptionSignalB\003\340A\001H\000\022;\n" + + "\022recognition_result\030\002 \001(\013" + + "2&.google.cloud.ces.v1.RecognitionResultB\003\340A\001H\000\022K\n" + + "\023interruption_signal\030\003 \001(\0132\'.g" + + "oogle.cloud.ces.v1.InterruptionSignalB\003\340A\001H\000\022;\n" + "\013end_session\030\005" + " \001(\0132\037.google.cloud.ces.v1.EndSessionB\003\340A\001H\000\0223\n" - + "\007go_away\030\006" - + " \001(\0132\033.google.cloud.ces.v1.GoAwayB\003\340A\001H\000B\016\n" + + "\007go_away\030\006 \001" + + "(\0132\033.google.cloud.ces.v1.GoAwayB\003\340A\001H\000B\016\n" + "\014message_type*R\n\r" + "AudioEncoding\022\036\n" + "\032AUDIO_ENCODING_UNSPECIFIED\020\000\022\014\n" @@ -256,23 +273,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005MULAW\020\002\022\010\n" + "\004ALAW\020\0032\267\005\n" + "\016SessionService\022\262\001\n\n" - + "RunSession\022&.google.cloud.ces.v1.RunSessionRequest\032\'.goo" - + "gle.cloud.ces.v1.RunSessionResponse\"S\202\323\344" - + "\223\002M\"H/v1/{config.session=projects/*/loca" - + "tions/*/apps/*/sessions/*}:runSession:\001*\022\300\001\n" - + "\020StreamRunSession\022&.google.cloud.ces.v1.RunSessionRequest\032\'.google.cloud.ces" - + ".v1.RunSessionResponse\"Y\202\323\344\223\002S\"N/v1/{con" - + "fig.session=projects/*/locations/*/apps/*/sessions/*}:streamRunSession:\001*0\001\022\300\001\n" - + "\016BidiRunSession\022-.google.cloud.ces.v1.Bid" - + "iSessionClientMessage\032-.google.cloud.ces.v1.BidiSessionServerMessage\"L\212\323\344\223\002F\022D\n" - + "\016config.session\0222{session=projects/*/loca" - + "tions/*/apps/*/sessions/*}(\0010\001\032j\312A\022ces.g" - + "oogleapis.com\322ARhttps://www.googleapis.c" - + "om/auth/ces,https://www.googleapis.com/auth/cloud-platformB\301\001\n" - + "\027com.google.cloud." - + "ces.v1B\023SessionServiceProtoP\001Z)cloud.google.com/go/ces/apiv1/cespb;cespb\352Ac\n" - + "\032ces.googleapis.com/Session\022Eprojects/{proje" - + "ct}/locations/{location}/apps/{app}/sessions/{session}b\006proto3" + + "RunSession\022&.google.cloud.ces.v1.RunSessionRequest\032\'.google.cloud.ces.v1.RunSe" + + "ssionResponse\"S\202\323\344\223\002M\"H/v1/{config.sessi" + + "on=projects/*/locations/*/apps/*/sessions/*}:runSession:\001*\022\300\001\n" + + "\020StreamRunSession\022&.google.cloud.ces.v1.RunSessionRequest\032" + + "\'.google.cloud.ces.v1.RunSessionResponse" + + "\"Y\202\323\344\223\002S\"N/v1/{config.session=projects/*" + + "/locations/*/apps/*/sessions/*}:streamRunSession:\001*0\001\022\300\001\n" + + "\016BidiRunSession\022-.google.cloud.ces.v1.BidiSessionClientMessage\032" + + "-.google.cloud.ces.v1.BidiSessionServerMessage\"L\212\323\344\223\002F\022D\n" + + "\016config.session\0222{session=projects/*/locations/*/apps/*/session" + + "s/*}(\0010\001\032j\312A\022ces.googleapis.com\322ARhttps:" + + "//www.googleapis.com/auth/ces,https://www.googleapis.com/auth/cloud-platformB\301\001\n" + + "\027com.google.cloud.ces.v1B\023SessionService" + + "ProtoP\001Z)cloud.google.com/go/ces/apiv1/cespb;cespb\352Ac\n" + + "\032ces.googleapis.com/Session\022Eprojects/{project}/locations/{locatio" + + "n}/apps/{app}/sessions/{session}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -285,11 +301,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.RoutingProto.getDescriptor(), com.google.cloud.ces.v1.CommonProto.getDescriptor(), com.google.cloud.ces.v1.ExampleProto.getDescriptor(), + com.google.cloud.ces.v1.MocksProto.getDescriptor(), com.google.cloud.ces.v1.SearchSuggestionsProto.getDescriptor(), + com.google.protobuf.AnyProto.getDescriptor(), com.google.protobuf.StructProto.getDescriptor(), }); + internal_static_google_cloud_ces_v1_MockConfig_descriptor = getDescriptor().getMessageType(0); + internal_static_google_cloud_ces_v1_MockConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_MockConfig_descriptor, + new java.lang.String[] { + "MockedToolCalls", "UnmatchedToolCallBehavior", + }); internal_static_google_cloud_ces_v1_InputAudioConfig_descriptor = - getDescriptor().getMessageType(0); + getDescriptor().getMessageType(1); internal_static_google_cloud_ces_v1_InputAudioConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1_InputAudioConfig_descriptor, @@ -297,7 +322,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AudioEncoding", "SampleRateHertz", "NoiseSuppressionLevel", }); internal_static_google_cloud_ces_v1_OutputAudioConfig_descriptor = - getDescriptor().getMessageType(1); + getDescriptor().getMessageType(2); internal_static_google_cloud_ces_v1_OutputAudioConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1_OutputAudioConfig_descriptor, @@ -305,7 +330,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AudioEncoding", "SampleRateHertz", }); internal_static_google_cloud_ces_v1_SessionConfig_descriptor = - getDescriptor().getMessageType(2); + getDescriptor().getMessageType(3); internal_static_google_cloud_ces_v1_SessionConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1_SessionConfig_descriptor, @@ -338,7 +363,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_ces_v1_ToolCalls_descriptor = getDescriptor().getMessageType(3); + internal_static_google_cloud_ces_v1_ToolCalls_descriptor = getDescriptor().getMessageType(4); internal_static_google_cloud_ces_v1_ToolCalls_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1_ToolCalls_descriptor, @@ -346,14 +371,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ToolCalls", }); internal_static_google_cloud_ces_v1_ToolResponses_descriptor = - getDescriptor().getMessageType(4); + getDescriptor().getMessageType(5); internal_static_google_cloud_ces_v1_ToolResponses_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1_ToolResponses_descriptor, new java.lang.String[] { "ToolResponses", }); - internal_static_google_cloud_ces_v1_Citations_descriptor = getDescriptor().getMessageType(5); + internal_static_google_cloud_ces_v1_Citations_descriptor = getDescriptor().getMessageType(6); internal_static_google_cloud_ces_v1_Citations_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1_Citations_descriptor, @@ -366,16 +391,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1_Citations_CitedChunk_descriptor, new java.lang.String[] { - "Uri", "Title", "Text", + "Uri", "Title", "Text", "RequiresAttribution", }); - internal_static_google_cloud_ces_v1_Event_descriptor = getDescriptor().getMessageType(6); + internal_static_google_cloud_ces_v1_Event_descriptor = getDescriptor().getMessageType(7); internal_static_google_cloud_ces_v1_Event_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1_Event_descriptor, new java.lang.String[] { "Event", }); - internal_static_google_cloud_ces_v1_SessionInput_descriptor = getDescriptor().getMessageType(7); + internal_static_google_cloud_ces_v1_SessionInput_descriptor = getDescriptor().getMessageType(8); internal_static_google_cloud_ces_v1_SessionInput_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1_SessionInput_descriptor, @@ -392,7 +417,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InputType", }); internal_static_google_cloud_ces_v1_SessionOutput_descriptor = - getDescriptor().getMessageType(8); + getDescriptor().getMessageType(9); internal_static_google_cloud_ces_v1_SessionOutput_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1_SessionOutput_descriptor, @@ -407,6 +432,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TurnIndex", "TurnCompleted", "DiagnosticInfo", + "Context", "OutputType", }); internal_static_google_cloud_ces_v1_SessionOutput_DiagnosticInfo_descriptor = @@ -418,7 +444,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Messages", "RootSpan", }); internal_static_google_cloud_ces_v1_RecognitionResult_descriptor = - getDescriptor().getMessageType(9); + getDescriptor().getMessageType(10); internal_static_google_cloud_ces_v1_RecognitionResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1_RecognitionResult_descriptor, @@ -426,26 +452,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Transcript", }); internal_static_google_cloud_ces_v1_InterruptionSignal_descriptor = - getDescriptor().getMessageType(10); + getDescriptor().getMessageType(11); internal_static_google_cloud_ces_v1_InterruptionSignal_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1_InterruptionSignal_descriptor, new java.lang.String[] { "BargeIn", }); - internal_static_google_cloud_ces_v1_EndSession_descriptor = getDescriptor().getMessageType(11); + internal_static_google_cloud_ces_v1_EndSession_descriptor = getDescriptor().getMessageType(12); internal_static_google_cloud_ces_v1_EndSession_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1_EndSession_descriptor, new java.lang.String[] { "Metadata", }); - internal_static_google_cloud_ces_v1_GoAway_descriptor = getDescriptor().getMessageType(12); + internal_static_google_cloud_ces_v1_GoAway_descriptor = getDescriptor().getMessageType(13); internal_static_google_cloud_ces_v1_GoAway_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1_GoAway_descriptor, new java.lang.String[] {}); internal_static_google_cloud_ces_v1_RunSessionRequest_descriptor = - getDescriptor().getMessageType(13); + getDescriptor().getMessageType(14); internal_static_google_cloud_ces_v1_RunSessionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1_RunSessionRequest_descriptor, @@ -453,7 +479,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Config", "Inputs", }); internal_static_google_cloud_ces_v1_RunSessionResponse_descriptor = - getDescriptor().getMessageType(14); + getDescriptor().getMessageType(15); internal_static_google_cloud_ces_v1_RunSessionResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1_RunSessionResponse_descriptor, @@ -461,7 +487,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Outputs", }); internal_static_google_cloud_ces_v1_BidiSessionClientMessage_descriptor = - getDescriptor().getMessageType(15); + getDescriptor().getMessageType(16); internal_static_google_cloud_ces_v1_BidiSessionClientMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1_BidiSessionClientMessage_descriptor, @@ -469,7 +495,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Config", "RealtimeInput", "MessageType", }); internal_static_google_cloud_ces_v1_BidiSessionServerMessage_descriptor = - getDescriptor().getMessageType(16); + getDescriptor().getMessageType(17); internal_static_google_cloud_ces_v1_BidiSessionServerMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1_BidiSessionServerMessage_descriptor, @@ -489,7 +515,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.RoutingProto.getDescriptor(); com.google.cloud.ces.v1.CommonProto.getDescriptor(); com.google.cloud.ces.v1.ExampleProto.getDescriptor(); + com.google.cloud.ces.v1.MocksProto.getDescriptor(); com.google.cloud.ces.v1.SearchSuggestionsProto.getDescriptor(); + com.google.protobuf.AnyProto.getDescriptor(); com.google.protobuf.StructProto.getDescriptor(); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SynthesizeSpeechConfig.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SynthesizeSpeechConfig.java index 6747b502e65f..b50284e9c33c 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SynthesizeSpeechConfig.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/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.v1.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.v1.SynthesizeSpeechConfig result 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 @@ -430,9 +649,24 @@ public Builder mergeFrom(com.google.cloud.ces.v1.SynthesizeSpeechConfig other) { 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; @@ -468,9 +702,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)) { @@ -626,6 +878,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_; /** @@ -665,7 +1053,7 @@ public double getSpeakingRate() { public Builder setSpeakingRate(double value) { speakingRate_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -685,12 +1073,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.v1.SynthesizeSpeechConfig) } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SynthesizeSpeechConfigOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SynthesizeSpeechConfigOrBuilder.java index dd77a507fc66..05a0e824ecfc 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SynthesizeSpeechConfigOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/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-v1/src/main/java/com/google/cloud/ces/v1/Tool.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Tool.java index e9a23a744f01..d96d5ce95ce8 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Tool.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Tool.java @@ -94,6 +94,7 @@ public enum ToolTypeCase SYSTEM_TOOL(18), AGENT_TOOL(23), WIDGET_TOOL(24), + REMOTE_AGENT_TOOL(25), TOOLTYPE_NOT_SET(0); private final int value; @@ -135,6 +136,8 @@ public static ToolTypeCase forNumber(int value) { return AGENT_TOOL; case 24: return WIDGET_TOOL; + case 25: + return REMOTE_AGENT_TOOL; case 0: return TOOLTYPE_NOT_SET; default: @@ -808,6 +811,66 @@ public com.google.cloud.ces.v1.WidgetToolOrBuilder getWidgetToolOrBuilder() { return com.google.cloud.ces.v1.WidgetTool.getDefaultInstance(); } + public static final int REMOTE_AGENT_TOOL_FIELD_NUMBER = 25; + + /** + * + * + *
                +   * Optional. The remote agent tool.
                +   * 
                + * + * + * .google.cloud.ces.v1.RemoteAgentTool remote_agent_tool = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the remoteAgentTool field is set. + */ + @java.lang.Override + public boolean hasRemoteAgentTool() { + return toolTypeCase_ == 25; + } + + /** + * + * + *
                +   * Optional. The remote agent tool.
                +   * 
                + * + * + * .google.cloud.ces.v1.RemoteAgentTool remote_agent_tool = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The remoteAgentTool. + */ + @java.lang.Override + public com.google.cloud.ces.v1.RemoteAgentTool getRemoteAgentTool() { + if (toolTypeCase_ == 25) { + return (com.google.cloud.ces.v1.RemoteAgentTool) toolType_; + } + return com.google.cloud.ces.v1.RemoteAgentTool.getDefaultInstance(); + } + + /** + * + * + *
                +   * Optional. The remote agent tool.
                +   * 
                + * + * + * .google.cloud.ces.v1.RemoteAgentTool remote_agent_tool = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.RemoteAgentToolOrBuilder getRemoteAgentToolOrBuilder() { + if (toolTypeCase_ == 25) { + return (com.google.cloud.ces.v1.RemoteAgentTool) toolType_; + } + return com.google.cloud.ces.v1.RemoteAgentTool.getDefaultInstance(); + } + public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -975,6 +1038,61 @@ public com.google.cloud.ces.v1.ExecutionType getExecutionType() { return result == null ? com.google.cloud.ces.v1.ExecutionType.UNRECOGNIZED : result; } + public static final int TIMEOUT_FIELD_NUMBER = 22; + private com.google.protobuf.Duration timeout_; + + /** + * + * + *
                +   * Optional. The timeout for the tool execution. If not set, the default
                +   * timeout is 30 seconds for `SYNCHRONOUS` tools and 60 seconds for
                +   * `ASYNCHRONOUS` tools.
                +   * 
                + * + * .google.protobuf.Duration timeout = 22 [(.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 tool execution. If not set, the default
                +   * timeout is 30 seconds for `SYNCHRONOUS` tools and 60 seconds for
                +   * `ASYNCHRONOUS` tools.
                +   * 
                + * + * .google.protobuf.Duration timeout = 22 [(.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 tool execution. If not set, the default
                +   * timeout is 30 seconds for `SYNCHRONOUS` tools and 60 seconds for
                +   * `ASYNCHRONOUS` tools.
                +   * 
                + * + * .google.protobuf.Duration timeout = 22 [(.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 = 6; private com.google.protobuf.Timestamp createTime_; @@ -992,7 +1110,7 @@ public com.google.cloud.ces.v1.ExecutionType getExecutionType() { */ @java.lang.Override public boolean hasCreateTime() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000002) != 0); } /** @@ -1044,7 +1162,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { */ @java.lang.Override public boolean hasUpdateTime() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** @@ -1209,7 +1327,7 @@ public com.google.protobuf.ByteString getGeneratedSummaryBytes() { */ @java.lang.Override public boolean hasToolFakeConfig() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** @@ -1276,10 +1394,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (toolTypeCase_ == 5) { output.writeMessage(5, (com.google.cloud.ces.v1.GoogleSearchTool) toolType_); } - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(6, getCreateTime()); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(7, getUpdateTime()); } if (toolTypeCase_ == 8) { @@ -1313,15 +1431,21 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (toolTypeCase_ == 18) { output.writeMessage(18, (com.google.cloud.ces.v1.SystemTool) toolType_); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(20, getToolFakeConfig()); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(22, getTimeout()); + } if (toolTypeCase_ == 23) { output.writeMessage(23, (com.google.cloud.ces.v1.AgentTool) toolType_); } if (toolTypeCase_ == 24) { output.writeMessage(24, (com.google.cloud.ces.v1.WidgetTool) toolType_); } + if (toolTypeCase_ == 25) { + output.writeMessage(25, (com.google.cloud.ces.v1.RemoteAgentTool) toolType_); + } getUnknownFields().writeTo(output); } @@ -1349,10 +1473,10 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 5, (com.google.cloud.ces.v1.GoogleSearchTool) toolType_); } - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateTime()); } if (toolTypeCase_ == 8) { @@ -1398,9 +1522,12 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 18, (com.google.cloud.ces.v1.SystemTool) toolType_); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getToolFakeConfig()); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, getTimeout()); + } if (toolTypeCase_ == 23) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( @@ -1411,6 +1538,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 24, (com.google.cloud.ces.v1.WidgetTool) toolType_); } + if (toolTypeCase_ == 25) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 25, (com.google.cloud.ces.v1.RemoteAgentTool) toolType_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1429,6 +1561,10 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (!getDisplayName().equals(other.getDisplayName())) return false; if (executionType_ != other.executionType_) 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; @@ -1478,6 +1614,9 @@ public boolean equals(final java.lang.Object obj) { case 24: if (!getWidgetTool().equals(other.getWidgetTool())) return false; break; + case 25: + if (!getRemoteAgentTool().equals(other.getRemoteAgentTool())) return false; + break; case 0: default: } @@ -1498,6 +1637,10 @@ public int hashCode() { hash = (53 * hash) + getDisplayName().hashCode(); hash = (37 * hash) + EXECUTION_TYPE_FIELD_NUMBER; hash = (53 * hash) + executionType_; + 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(); @@ -1559,6 +1702,10 @@ public int hashCode() { hash = (37 * hash) + WIDGET_TOOL_FIELD_NUMBER; hash = (53 * hash) + getWidgetTool().hashCode(); break; + case 25: + hash = (37 * hash) + REMOTE_AGENT_TOOL_FIELD_NUMBER; + hash = (53 * hash) + getRemoteAgentTool().hashCode(); + break; case 0: default: } @@ -1701,6 +1848,7 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetTimeoutFieldBuilder(); internalGetCreateTimeFieldBuilder(); internalGetUpdateTimeFieldBuilder(); internalGetToolFakeConfigFieldBuilder(); @@ -1744,9 +1892,17 @@ public Builder clear() { if (widgetToolBuilder_ != null) { widgetToolBuilder_.clear(); } + if (remoteAgentToolBuilder_ != null) { + remoteAgentToolBuilder_.clear(); + } name_ = ""; displayName_ = ""; executionType_ = 0; + timeout_ = null; + if (timeoutBuilder_ != null) { + timeoutBuilder_.dispose(); + timeoutBuilder_ = null; + } createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); @@ -1801,34 +1957,38 @@ public com.google.cloud.ces.v1.Tool buildPartial() { private void buildPartial0(com.google.cloud.ces.v1.Tool result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000800) != 0)) { + if (((from_bitField0_ & 0x00001000) != 0)) { result.name_ = name_; } - if (((from_bitField0_ & 0x00001000) != 0)) { + if (((from_bitField0_ & 0x00002000) != 0)) { result.displayName_ = displayName_; } - if (((from_bitField0_ & 0x00002000) != 0)) { + if (((from_bitField0_ & 0x00004000) != 0)) { result.executionType_ = executionType_; } int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00004000) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + if (((from_bitField0_ & 0x00008000) != 0)) { + result.timeout_ = timeoutBuilder_ == null ? timeout_ : timeoutBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00008000) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + if (((from_bitField0_ & 0x00010000) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00010000) != 0)) { + if (((from_bitField0_ & 0x00020000) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00040000) != 0)) { result.etag_ = etag_; } - if (((from_bitField0_ & 0x00020000) != 0)) { + if (((from_bitField0_ & 0x00080000) != 0)) { result.generatedSummary_ = generatedSummary_; } - if (((from_bitField0_ & 0x00040000) != 0)) { + if (((from_bitField0_ & 0x00100000) != 0)) { result.toolFakeConfig_ = toolFakeConfigBuilder_ == null ? toolFakeConfig_ : toolFakeConfigBuilder_.build(); - to_bitField0_ |= 0x00000004; + to_bitField0_ |= 0x00000008; } result.bitField0_ |= to_bitField0_; } @@ -1869,6 +2029,9 @@ private void buildPartialOneofs(com.google.cloud.ces.v1.Tool result) { if (toolTypeCase_ == 24 && widgetToolBuilder_ != null) { result.toolType_ = widgetToolBuilder_.build(); } + if (toolTypeCase_ == 25 && remoteAgentToolBuilder_ != null) { + result.toolType_ = remoteAgentToolBuilder_.build(); + } } @java.lang.Override @@ -1885,17 +2048,20 @@ public Builder mergeFrom(com.google.cloud.ces.v1.Tool other) { if (other == com.google.cloud.ces.v1.Tool.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); } if (other.executionType_ != 0) { setExecutionTypeValue(other.getExecutionTypeValue()); } + if (other.hasTimeout()) { + mergeTimeout(other.getTimeout()); + } if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -1904,12 +2070,12 @@ public Builder mergeFrom(com.google.cloud.ces.v1.Tool other) { } if (!other.getEtag().isEmpty()) { etag_ = other.etag_; - bitField0_ |= 0x00010000; + bitField0_ |= 0x00040000; onChanged(); } if (!other.getGeneratedSummary().isEmpty()) { generatedSummary_ = other.generatedSummary_; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00080000; onChanged(); } if (other.hasToolFakeConfig()) { @@ -1971,6 +2137,11 @@ public Builder mergeFrom(com.google.cloud.ces.v1.Tool other) { mergeWidgetTool(other.getWidgetTool()); break; } + case REMOTE_AGENT_TOOL: + { + mergeRemoteAgentTool(other.getRemoteAgentTool()); + break; + } case TOOLTYPE_NOT_SET: { break; @@ -2005,7 +2176,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; break; } // case 10 case 18: @@ -2033,14 +2204,14 @@ public Builder mergeFrom( { input.readMessage( internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00010000; break; } // case 50 case 58: { input.readMessage( internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00020000; break; } // case 58 case 66: @@ -2067,25 +2238,25 @@ public Builder mergeFrom( case 96: { executionType_ = input.readEnum(); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; break; } // case 96 case 106: { displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; break; } // case 106 case 114: { etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00040000; break; } // case 114 case 122: { generatedSummary_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00080000; break; } // case 122 case 130: @@ -2112,9 +2283,15 @@ public Builder mergeFrom( { input.readMessage( internalGetToolFakeConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00100000; break; } // case 162 + case 178: + { + input.readMessage(internalGetTimeoutFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00008000; + break; + } // case 178 case 186: { input.readMessage( @@ -2129,6 +2306,13 @@ public Builder mergeFrom( toolTypeCase_ = 24; break; } // case 194 + case 202: + { + input.readMessage( + internalGetRemoteAgentToolFieldBuilder().getBuilder(), extensionRegistry); + toolTypeCase_ = 25; + break; + } // case 202 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4741,6 +4925,242 @@ public com.google.cloud.ces.v1.WidgetToolOrBuilder getWidgetToolOrBuilder() { return widgetToolBuilder_; } + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.RemoteAgentTool, + com.google.cloud.ces.v1.RemoteAgentTool.Builder, + com.google.cloud.ces.v1.RemoteAgentToolOrBuilder> + remoteAgentToolBuilder_; + + /** + * + * + *
                +     * Optional. The remote agent tool.
                +     * 
                + * + * + * .google.cloud.ces.v1.RemoteAgentTool remote_agent_tool = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the remoteAgentTool field is set. + */ + @java.lang.Override + public boolean hasRemoteAgentTool() { + return toolTypeCase_ == 25; + } + + /** + * + * + *
                +     * Optional. The remote agent tool.
                +     * 
                + * + * + * .google.cloud.ces.v1.RemoteAgentTool remote_agent_tool = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The remoteAgentTool. + */ + @java.lang.Override + public com.google.cloud.ces.v1.RemoteAgentTool getRemoteAgentTool() { + if (remoteAgentToolBuilder_ == null) { + if (toolTypeCase_ == 25) { + return (com.google.cloud.ces.v1.RemoteAgentTool) toolType_; + } + return com.google.cloud.ces.v1.RemoteAgentTool.getDefaultInstance(); + } else { + if (toolTypeCase_ == 25) { + return remoteAgentToolBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.RemoteAgentTool.getDefaultInstance(); + } + } + + /** + * + * + *
                +     * Optional. The remote agent tool.
                +     * 
                + * + * + * .google.cloud.ces.v1.RemoteAgentTool remote_agent_tool = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRemoteAgentTool(com.google.cloud.ces.v1.RemoteAgentTool value) { + if (remoteAgentToolBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + toolType_ = value; + onChanged(); + } else { + remoteAgentToolBuilder_.setMessage(value); + } + toolTypeCase_ = 25; + return this; + } + + /** + * + * + *
                +     * Optional. The remote agent tool.
                +     * 
                + * + * + * .google.cloud.ces.v1.RemoteAgentTool remote_agent_tool = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRemoteAgentTool( + com.google.cloud.ces.v1.RemoteAgentTool.Builder builderForValue) { + if (remoteAgentToolBuilder_ == null) { + toolType_ = builderForValue.build(); + onChanged(); + } else { + remoteAgentToolBuilder_.setMessage(builderForValue.build()); + } + toolTypeCase_ = 25; + return this; + } + + /** + * + * + *
                +     * Optional. The remote agent tool.
                +     * 
                + * + * + * .google.cloud.ces.v1.RemoteAgentTool remote_agent_tool = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeRemoteAgentTool(com.google.cloud.ces.v1.RemoteAgentTool value) { + if (remoteAgentToolBuilder_ == null) { + if (toolTypeCase_ == 25 + && toolType_ != com.google.cloud.ces.v1.RemoteAgentTool.getDefaultInstance()) { + toolType_ = + com.google.cloud.ces.v1.RemoteAgentTool.newBuilder( + (com.google.cloud.ces.v1.RemoteAgentTool) toolType_) + .mergeFrom(value) + .buildPartial(); + } else { + toolType_ = value; + } + onChanged(); + } else { + if (toolTypeCase_ == 25) { + remoteAgentToolBuilder_.mergeFrom(value); + } else { + remoteAgentToolBuilder_.setMessage(value); + } + } + toolTypeCase_ = 25; + return this; + } + + /** + * + * + *
                +     * Optional. The remote agent tool.
                +     * 
                + * + * + * .google.cloud.ces.v1.RemoteAgentTool remote_agent_tool = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearRemoteAgentTool() { + if (remoteAgentToolBuilder_ == null) { + if (toolTypeCase_ == 25) { + toolTypeCase_ = 0; + toolType_ = null; + onChanged(); + } + } else { + if (toolTypeCase_ == 25) { + toolTypeCase_ = 0; + toolType_ = null; + } + remoteAgentToolBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                +     * Optional. The remote agent tool.
                +     * 
                + * + * + * .google.cloud.ces.v1.RemoteAgentTool remote_agent_tool = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.RemoteAgentTool.Builder getRemoteAgentToolBuilder() { + return internalGetRemoteAgentToolFieldBuilder().getBuilder(); + } + + /** + * + * + *
                +     * Optional. The remote agent tool.
                +     * 
                + * + * + * .google.cloud.ces.v1.RemoteAgentTool remote_agent_tool = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.RemoteAgentToolOrBuilder getRemoteAgentToolOrBuilder() { + if ((toolTypeCase_ == 25) && (remoteAgentToolBuilder_ != null)) { + return remoteAgentToolBuilder_.getMessageOrBuilder(); + } else { + if (toolTypeCase_ == 25) { + return (com.google.cloud.ces.v1.RemoteAgentTool) toolType_; + } + return com.google.cloud.ces.v1.RemoteAgentTool.getDefaultInstance(); + } + } + + /** + * + * + *
                +     * Optional. The remote agent tool.
                +     * 
                + * + * + * .google.cloud.ces.v1.RemoteAgentTool remote_agent_tool = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.RemoteAgentTool, + com.google.cloud.ces.v1.RemoteAgentTool.Builder, + com.google.cloud.ces.v1.RemoteAgentToolOrBuilder> + internalGetRemoteAgentToolFieldBuilder() { + if (remoteAgentToolBuilder_ == null) { + if (!(toolTypeCase_ == 25)) { + toolType_ = com.google.cloud.ces.v1.RemoteAgentTool.getDefaultInstance(); + } + remoteAgentToolBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.RemoteAgentTool, + com.google.cloud.ces.v1.RemoteAgentTool.Builder, + com.google.cloud.ces.v1.RemoteAgentToolOrBuilder>( + (com.google.cloud.ces.v1.RemoteAgentTool) toolType_, + getParentForChildren(), + isClean()); + toolType_ = null; + } + toolTypeCase_ = 25; + onChanged(); + return remoteAgentToolBuilder_; + } + private java.lang.Object name_ = ""; /** @@ -4830,7 +5250,7 @@ public Builder setName(java.lang.String value) { throw new NullPointerException(); } name_ = value; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -4856,7 +5276,7 @@ public Builder setName(java.lang.String value) { */ public Builder clearName() { name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); onChanged(); return this; } @@ -4887,7 +5307,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); name_ = value; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -4963,7 +5383,7 @@ public Builder setDisplayName(java.lang.String value) { throw new NullPointerException(); } displayName_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -4983,7 +5403,7 @@ public Builder setDisplayName(java.lang.String value) { */ public Builder clearDisplayName() { displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); onChanged(); return this; } @@ -5008,7 +5428,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); displayName_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -5049,7 +5469,7 @@ public int getExecutionTypeValue() { */ public Builder setExecutionTypeValue(int value) { executionType_ = value; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -5092,7 +5512,7 @@ public Builder setExecutionType(com.google.cloud.ces.v1.ExecutionType value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; executionType_ = value.getNumber(); onChanged(); return this; @@ -5112,12 +5532,229 @@ public Builder setExecutionType(com.google.cloud.ces.v1.ExecutionType value) { * @return This builder for chaining. */ public Builder clearExecutionType() { - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); executionType_ = 0; onChanged(); 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 tool execution. If not set, the default
                +     * timeout is 30 seconds for `SYNCHRONOUS` tools and 60 seconds for
                +     * `ASYNCHRONOUS` tools.
                +     * 
                + * + * .google.protobuf.Duration timeout = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the timeout field is set. + */ + public boolean hasTimeout() { + return ((bitField0_ & 0x00008000) != 0); + } + + /** + * + * + *
                +     * Optional. The timeout for the tool execution. If not set, the default
                +     * timeout is 30 seconds for `SYNCHRONOUS` tools and 60 seconds for
                +     * `ASYNCHRONOUS` tools.
                +     * 
                + * + * .google.protobuf.Duration timeout = 22 [(.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 tool execution. If not set, the default
                +     * timeout is 30 seconds for `SYNCHRONOUS` tools and 60 seconds for
                +     * `ASYNCHRONOUS` tools.
                +     * 
                + * + * .google.protobuf.Duration timeout = 22 [(.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_ |= 0x00008000; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. The timeout for the tool execution. If not set, the default
                +     * timeout is 30 seconds for `SYNCHRONOUS` tools and 60 seconds for
                +     * `ASYNCHRONOUS` tools.
                +     * 
                + * + * .google.protobuf.Duration timeout = 22 [(.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_ |= 0x00008000; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. The timeout for the tool execution. If not set, the default
                +     * timeout is 30 seconds for `SYNCHRONOUS` tools and 60 seconds for
                +     * `ASYNCHRONOUS` tools.
                +     * 
                + * + * .google.protobuf.Duration timeout = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeTimeout(com.google.protobuf.Duration value) { + if (timeoutBuilder_ == null) { + if (((bitField0_ & 0x00008000) != 0) + && timeout_ != null + && timeout_ != com.google.protobuf.Duration.getDefaultInstance()) { + getTimeoutBuilder().mergeFrom(value); + } else { + timeout_ = value; + } + } else { + timeoutBuilder_.mergeFrom(value); + } + if (timeout_ != null) { + bitField0_ |= 0x00008000; + onChanged(); + } + return this; + } + + /** + * + * + *
                +     * Optional. The timeout for the tool execution. If not set, the default
                +     * timeout is 30 seconds for `SYNCHRONOUS` tools and 60 seconds for
                +     * `ASYNCHRONOUS` tools.
                +     * 
                + * + * .google.protobuf.Duration timeout = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearTimeout() { + bitField0_ = (bitField0_ & ~0x00008000); + timeout_ = null; + if (timeoutBuilder_ != null) { + timeoutBuilder_.dispose(); + timeoutBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. The timeout for the tool execution. If not set, the default
                +     * timeout is 30 seconds for `SYNCHRONOUS` tools and 60 seconds for
                +     * `ASYNCHRONOUS` tools.
                +     * 
                + * + * .google.protobuf.Duration timeout = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Duration.Builder getTimeoutBuilder() { + bitField0_ |= 0x00008000; + onChanged(); + return internalGetTimeoutFieldBuilder().getBuilder(); + } + + /** + * + * + *
                +     * Optional. The timeout for the tool execution. If not set, the default
                +     * timeout is 30 seconds for `SYNCHRONOUS` tools and 60 seconds for
                +     * `ASYNCHRONOUS` tools.
                +     * 
                + * + * .google.protobuf.Duration timeout = 22 [(.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 tool execution. If not set, the default
                +     * timeout is 30 seconds for `SYNCHRONOUS` tools and 60 seconds for
                +     * `ASYNCHRONOUS` tools.
                +     * 
                + * + * .google.protobuf.Duration timeout = 22 [(.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, @@ -5139,7 +5776,7 @@ public Builder clearExecutionType() { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return ((bitField0_ & 0x00004000) != 0); + return ((bitField0_ & 0x00010000) != 0); } /** @@ -5185,7 +5822,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00004000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -5207,7 +5844,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { createTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00004000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -5225,7 +5862,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00004000) != 0) + if (((bitField0_ & 0x00010000) != 0) && createTime_ != null && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); @@ -5236,7 +5873,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { createTimeBuilder_.mergeFrom(value); } if (createTime_ != null) { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00010000; onChanged(); } return this; @@ -5254,7 +5891,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00010000); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); @@ -5276,7 +5913,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00010000; onChanged(); return internalGetCreateTimeFieldBuilder().getBuilder(); } @@ -5351,7 +5988,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return ((bitField0_ & 0x00008000) != 0); + return ((bitField0_ & 0x00020000) != 0); } /** @@ -5397,7 +6034,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { } else { updateTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -5419,7 +6056,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -5437,7 +6074,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00008000) != 0) + if (((bitField0_ & 0x00020000) != 0) && updateTime_ != null && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); @@ -5448,7 +6085,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { updateTimeBuilder_.mergeFrom(value); } if (updateTime_ != null) { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00020000; onChanged(); } return this; @@ -5466,7 +6103,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00020000); updateTime_ = null; if (updateTimeBuilder_ != null) { updateTimeBuilder_.dispose(); @@ -5488,7 +6125,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00020000; onChanged(); return internalGetUpdateTimeFieldBuilder().getBuilder(); } @@ -5613,7 +6250,7 @@ public Builder setEtag(java.lang.String value) { throw new NullPointerException(); } etag_ = value; - bitField0_ |= 0x00010000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -5633,7 +6270,7 @@ public Builder setEtag(java.lang.String value) { */ public Builder clearEtag() { etag_ = getDefaultInstance().getEtag(); - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00040000); onChanged(); return this; } @@ -5658,7 +6295,7 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); etag_ = value; - bitField0_ |= 0x00010000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -5731,7 +6368,7 @@ public Builder setGeneratedSummary(java.lang.String value) { throw new NullPointerException(); } generatedSummary_ = value; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -5750,7 +6387,7 @@ public Builder setGeneratedSummary(java.lang.String value) { */ public Builder clearGeneratedSummary() { generatedSummary_ = getDefaultInstance().getGeneratedSummary(); - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00080000); onChanged(); return this; } @@ -5774,7 +6411,7 @@ public Builder setGeneratedSummaryBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); generatedSummary_ = value; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -5800,7 +6437,7 @@ public Builder setGeneratedSummaryBytes(com.google.protobuf.ByteString value) { * @return Whether the toolFakeConfig field is set. */ public boolean hasToolFakeConfig() { - return ((bitField0_ & 0x00040000) != 0); + return ((bitField0_ & 0x00100000) != 0); } /** @@ -5846,7 +6483,7 @@ public Builder setToolFakeConfig(com.google.cloud.ces.v1.ToolFakeConfig value) { } else { toolFakeConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00040000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -5869,7 +6506,7 @@ public Builder setToolFakeConfig( } else { toolFakeConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00040000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -5887,7 +6524,7 @@ public Builder setToolFakeConfig( */ public Builder mergeToolFakeConfig(com.google.cloud.ces.v1.ToolFakeConfig value) { if (toolFakeConfigBuilder_ == null) { - if (((bitField0_ & 0x00040000) != 0) + if (((bitField0_ & 0x00100000) != 0) && toolFakeConfig_ != null && toolFakeConfig_ != com.google.cloud.ces.v1.ToolFakeConfig.getDefaultInstance()) { getToolFakeConfigBuilder().mergeFrom(value); @@ -5898,7 +6535,7 @@ public Builder mergeToolFakeConfig(com.google.cloud.ces.v1.ToolFakeConfig value) toolFakeConfigBuilder_.mergeFrom(value); } if (toolFakeConfig_ != null) { - bitField0_ |= 0x00040000; + bitField0_ |= 0x00100000; onChanged(); } return this; @@ -5916,7 +6553,7 @@ public Builder mergeToolFakeConfig(com.google.cloud.ces.v1.ToolFakeConfig value) * */ public Builder clearToolFakeConfig() { - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00100000); toolFakeConfig_ = null; if (toolFakeConfigBuilder_ != null) { toolFakeConfigBuilder_.dispose(); @@ -5938,7 +6575,7 @@ public Builder clearToolFakeConfig() { * */ public com.google.cloud.ces.v1.ToolFakeConfig.Builder getToolFakeConfigBuilder() { - bitField0_ |= 0x00040000; + bitField0_ |= 0x00100000; onChanged(); return internalGetToolFakeConfigFieldBuilder().getBuilder(); } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolOrBuilder.java index fef461c5ed2b..0bed1ad94390 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolOrBuilder.java @@ -496,6 +496,49 @@ public interface ToolOrBuilder */ com.google.cloud.ces.v1.WidgetToolOrBuilder getWidgetToolOrBuilder(); + /** + * + * + *
                +   * Optional. The remote agent tool.
                +   * 
                + * + * + * .google.cloud.ces.v1.RemoteAgentTool remote_agent_tool = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the remoteAgentTool field is set. + */ + boolean hasRemoteAgentTool(); + + /** + * + * + *
                +   * Optional. The remote agent tool.
                +   * 
                + * + * + * .google.cloud.ces.v1.RemoteAgentTool remote_agent_tool = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The remoteAgentTool. + */ + com.google.cloud.ces.v1.RemoteAgentTool getRemoteAgentTool(); + + /** + * + * + *
                +   * Optional. The remote agent tool.
                +   * 
                + * + * + * .google.cloud.ces.v1.RemoteAgentTool remote_agent_tool = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.RemoteAgentToolOrBuilder getRemoteAgentToolOrBuilder(); + /** * * @@ -598,6 +641,49 @@ public interface ToolOrBuilder */ com.google.cloud.ces.v1.ExecutionType getExecutionType(); + /** + * + * + *
                +   * Optional. The timeout for the tool execution. If not set, the default
                +   * timeout is 30 seconds for `SYNCHRONOUS` tools and 60 seconds for
                +   * `ASYNCHRONOUS` tools.
                +   * 
                + * + * .google.protobuf.Duration timeout = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the timeout field is set. + */ + boolean hasTimeout(); + + /** + * + * + *
                +   * Optional. The timeout for the tool execution. If not set, the default
                +   * timeout is 30 seconds for `SYNCHRONOUS` tools and 60 seconds for
                +   * `ASYNCHRONOUS` tools.
                +   * 
                + * + * .google.protobuf.Duration timeout = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The timeout. + */ + com.google.protobuf.Duration getTimeout(); + + /** + * + * + *
                +   * Optional. The timeout for the tool execution. If not set, the default
                +   * timeout is 30 seconds for `SYNCHRONOUS` tools and 60 seconds for
                +   * `ASYNCHRONOUS` tools.
                +   * 
                + * + * .google.protobuf.Duration timeout = 22 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder(); + /** * * diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolProto.java index 2fcba61593bd..324346fc0cdf 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolProto.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolProto.java @@ -57,55 +57,60 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036google/cloud/ces/v1/tool.proto\022\023google" + ".cloud.ces.v1\032\037google/api/field_behavior" + ".proto\032\031google/api/resource.proto\032$googl" - + "e/cloud/ces/v1/agent_tool.proto\032)google/cloud/ces/v1/client_function.proto\032 goog" - + "le/cloud/ces/v1/common.proto\032(google/cloud/ces/v1/connector_tool.proto\032)google/c" - + "loud/ces/v1/data_store_tool.proto\032\037googl" - + "e/cloud/ces/v1/fakes.proto\032*google/cloud/ces/v1/file_search_tool.proto\032,google/c" - + "loud/ces/v1/google_search_tool.proto\032\"go" - + "ogle/cloud/ces/v1/mcp_tool.proto\032\'google" - + "/cloud/ces/v1/open_api_tool.proto\032)google/cloud/ces/v1/python_function.proto\032%go" - + "ogle/cloud/ces/v1/system_tool.proto\032%goo" - + "gle/cloud/ces/v1/widget_tool.proto\032\037google/protobuf/timestamp.proto\"\231\t\n" + + "e/cloud/ces/v1/agent_card.proto\032$google/" + + "cloud/ces/v1/agent_tool.proto\032)google/cloud/ces/v1/client_function.proto\032 google" + + "/cloud/ces/v1/common.proto\032(google/cloud/ces/v1/connector_tool.proto\032)google/clo" + + "ud/ces/v1/data_store_tool.proto\032\037google/" + + "cloud/ces/v1/fakes.proto\032*google/cloud/ces/v1/file_search_tool.proto\032,google/clo" + + "ud/ces/v1/google_search_tool.proto\032\"goog" + + "le/cloud/ces/v1/mcp_tool.proto\032\'google/c" + + "loud/ces/v1/open_api_tool.proto\032)google/cloud/ces/v1/python_function.proto\032%goog" + + "le/cloud/ces/v1/system_tool.proto\032%googl" + + "e/cloud/ces/v1/widget_tool.proto\032\036google" + + "/protobuf/duration.proto\032\037google/protobuf/timestamp.proto\"\222\n\n" + "\004Tool\022C\n" + "\017client_function\030\002" + " \001(\0132#.google.cloud.ces.v1.ClientFunctionB\003\340A\001H\000\022>\n\r" - + "open_api_tool\030\003 \001(\0132" - + " .google.cloud.ces.v1.OpenApiToolB\003\340A\001H\000\022H\n" - + "\022google_search_tool\030\005 \001(\0132%." - + "google.cloud.ces.v1.GoogleSearchToolB\003\340A\001H\000\022A\n" + + "open_api_tool\030\003 \001(\0132 " + + ".google.cloud.ces.v1.OpenApiToolB\003\340A\001H\000\022H\n" + + "\022google_search_tool\030\005" + + " \001(\0132%.google.cloud.ces.v1.GoogleSearchToolB\003\340A\001H\000\022A\n" + "\016connector_tool\030\010" + " \001(\0132\".google.cloud.ces.v1.ConnectorToolB\003\340A\001H\000\022B\n" + "\017data_store_tool\030\n" + " \001(\0132\".google.cloud.ces.v1.DataStoreToolB\003\340A\001H\000\022C\n" - + "\017python_function\030\013 " - + "\001(\0132#.google.cloud.ces.v1.PythonFunctionB\003\340A\001H\000\0225\n" + + "\017python_function\030\013" + + " \001(\0132#.google.cloud.ces.v1.PythonFunctionB\003\340A\001H\000\0225\n" + "\010mcp_tool\030\020" + " \001(\0132\034.google.cloud.ces.v1.McpToolB\003\340A\001H\000\022D\n" - + "\020file_search_tool\030\021" - + " \001(\0132#.google.cloud.ces.v1.FileSearchToolB\003\340A\001H\000\022;\n" + + "\020file_search_tool\030\021 \001(\0132#" + + ".google.cloud.ces.v1.FileSearchToolB\003\340A\001H\000\022;\n" + "\013system_tool\030\022" + " \001(\0132\037.google.cloud.ces.v1.SystemToolB\003\340A\001H\000\0229\n\n" - + "agent_tool\030\027" - + " \001(\0132\036.google.cloud.ces.v1.AgentToolB\003\340A\001H\000\022;\n" + + "agent_tool\030\027 " + + "\001(\0132\036.google.cloud.ces.v1.AgentToolB\003\340A\001H\000\022;\n" + "\013widget_tool\030\030" - + " \001(\0132\037.google.cloud.ces.v1.WidgetToolB\003\340A\001H\000\022\021\n" + + " \001(\0132\037.google.cloud.ces.v1.WidgetToolB\003\340A\001H\000\022F\n" + + "\021remote_agent_tool\030\031" + + " \001(\0132$.google.cloud.ces.v1.RemoteAgentToolB\003\340A\001H\000\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\031\n" + "\014display_name\030\r" + " \001(\tB\003\340A\003\022?\n" + "\016execution_type\030\014" - + " \001(\0162\".google.cloud.ces.v1.ExecutionTypeB\003\340A\001\0224\n" + + " \001(\0162\".google.cloud.ces.v1.ExecutionTypeB\003\340A\001\022/\n" + + "\007timeout\030\026 \001(\0132\031.google.protobuf.DurationB\003\340A\001\0224\n" + "\013create_time\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\007" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\014\n" + "\004etag\030\016 \001(\t\022\036\n" + "\021generated_summary\030\017 \001(\tB\003\340A\003\022B\n" - + "\020tool_fake_config\030\024" - + " \001(\0132#.google.cloud.ces.v1.ToolFakeConfigB\003\340A\001:j\352Ag\n" - + "\027ces.googleapis.com/Tool\022?pr" - + "ojects/{project}/locations/{location}/apps/{app}/tools/{tool}*\005tools2\004toolB\013\n" + + "\020tool_fake_config\030\024 \001(\0132#.go" + + "ogle.cloud.ces.v1.ToolFakeConfigB\003\340A\001:j\352Ag\n" + + "\027ces.googleapis.com/Tool\022?projects/{p" + + "roject}/locations/{location}/apps/{app}/tools/{tool}*\005tools2\004toolB\013\n" + "\ttool_typeBQ\n" - + "\027com.google.cloud.ces.v1B\tToolProtoP\001Z)cloud.google.com/go/ces/apiv1/c" - + "espb;cespbb\006proto3" + + "\027com.google.cloud.ces.v1B\tToolProtoP\001Z)cloud.google.com/go/ces/apiv1/cespb;cesp" + + "bb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -113,6 +118,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.ces.v1.AgentCardProto.getDescriptor(), com.google.cloud.ces.v1.AgentToolProto.getDescriptor(), com.google.cloud.ces.v1.ClientFunctionProto.getDescriptor(), com.google.cloud.ces.v1.CommonProto.getDescriptor(), @@ -126,6 +132,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.ces.v1.PythonFunctionProto.getDescriptor(), com.google.cloud.ces.v1.SystemToolProto.getDescriptor(), com.google.cloud.ces.v1.WidgetToolProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); internal_static_google_cloud_ces_v1_Tool_descriptor = getDescriptor().getMessageType(0); @@ -144,9 +151,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SystemTool", "AgentTool", "WidgetTool", + "RemoteAgentTool", "Name", "DisplayName", "ExecutionType", + "Timeout", "CreateTime", "UpdateTime", "Etag", @@ -157,6 +166,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { descriptor.resolveAllFeaturesImmutable(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.ces.v1.AgentCardProto.getDescriptor(); com.google.cloud.ces.v1.AgentToolProto.getDescriptor(); com.google.cloud.ces.v1.ClientFunctionProto.getDescriptor(); com.google.cloud.ces.v1.CommonProto.getDescriptor(); @@ -170,6 +180,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.ces.v1.PythonFunctionProto.getDescriptor(); com.google.cloud.ces.v1.SystemToolProto.getDescriptor(); com.google.cloud.ces.v1.WidgetToolProto.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-v1/src/main/java/com/google/cloud/ces/v1/ToolServiceProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolServiceProto.java index 676b2dc0aec9..9a23cd70012d 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolServiceProto.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolServiceProto.java @@ -78,24 +78,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "tions.proto\032\027google/api/client.proto\032\037go" + "ogle/api/field_behavior.proto\032\031google/ap" + "i/resource.proto\032 google/cloud/ces/v1/sc" - + "hema.proto\032\036google/cloud/ces/v1/tool.pro" - + "to\032&google/cloud/ces/v1/toolset_tool.pro" - + "to\032\034google/protobuf/struct.proto\"\361\002\n\022Exe" - + "cuteToolRequest\022/\n\004tool\030\001 \001(\tB\037\340A\001\372A\031\n\027c" - + "es.googleapis.com/ToolH\000\022=\n\014toolset_tool" - + "\030\003 \001(\0132 .google.cloud.ces.v1.ToolsetTool" - + "B\003\340A\001H\000\0221\n\tvariables\030\005 \001(\0132\027.google.prot" - + "obuf.StructB\003\340A\001H\001\022/\n\007context\030\006 \001(\0132\027.go" - + "ogle.protobuf.StructB\003\340A\001H\001\022.\n\006parent\030\004 " - + "\001(\tB\036\340A\002\372A\030\n\026ces.googleapis.com/App\022*\n\004a" - + "rgs\030\002 \001(\0132\027.google.protobuf.StructB\003\340A\001B" - + "\021\n\017tool_identifierB\030\n\026tool_execution_con" - + "text\"\347\001\n\023ExecuteToolResponse\022,\n\004tool\030\001 \001" - + "(\tB\034\372A\031\n\027ces.googleapis.com/ToolH\000\0228\n\014to" - + "olset_tool\030\003 \001(\0132 .google.cloud.ces.v1.T" - + "oolsetToolH\000\022)\n\010response\030\002 \001(\0132\027.google." - + "protobuf.Struct\022*\n\tvariables\030\004 \001(\0132\027.goo" - + "gle.protobuf.StructB\021\n\017tool_identifier\"\316" + + "hema.proto\032,google/cloud/ces/v1/search_s" + + "uggestions.proto\032)google/cloud/ces/v1/se" + + "ssion_service.proto\032\036google/cloud/ces/v1" + + "/tool.proto\032&google/cloud/ces/v1/toolset" + + "_tool.proto\032\034google/protobuf/struct.prot" + + "o\"\254\003\n\022ExecuteToolRequest\022/\n\004tool\030\001 \001(\tB\037" + + "\340A\001\372A\031\n\027ces.googleapis.com/ToolH\000\022=\n\014too" + + "lset_tool\030\003 \001(\0132 .google.cloud.ces.v1.To" + + "olsetToolB\003\340A\001H\000\0221\n\tvariables\030\005 \001(\0132\027.go" + + "ogle.protobuf.StructB\003\340A\001H\001\022/\n\007context\030\006" + + " \001(\0132\027.google.protobuf.StructB\003\340A\001H\001\022.\n\006" + + "parent\030\004 \001(\tB\036\340A\002\372A\030\n\026ces.googleapis.com" + + "/App\022*\n\004args\030\002 \001(\0132\027.google.protobuf.Str" + + "uctB\003\340A\001\0229\n\013mock_config\030\007 \001(\0132\037.google.c" + + "loud.ces.v1.MockConfigB\003\340A\001B\021\n\017tool_iden" + + "tifierB\030\n\026tool_execution_context\"\353\002\n\023Exe" + + "cuteToolResponse\022,\n\004tool\030\001 \001(\tB\034\372A\031\n\027ces" + + ".googleapis.com/ToolH\000\0228\n\014toolset_tool\030\003" + + " \001(\0132 .google.cloud.ces.v1.ToolsetToolH\000" + + "\022)\n\010response\030\002 \001(\0132\027.google.protobuf.Str" + + "uct\022*\n\tvariables\030\004 \001(\0132\027.google.protobuf" + + ".Struct\0221\n\tcitations\030\005 \001(\0132\036.google.clou" + + "d.ces.v1.Citations\022O\n\031google_search_sugg" + + "estions\030\006 \001(\0132,.google.cloud.ces.v1.Goog" + + "leSearchSuggestionsB\021\n\017tool_identifier\"\316" + "\001\n\031RetrieveToolSchemaRequest\022/\n\004tool\030\001 \001" + "(\tB\037\340A\001\372A\031\n\027ces.googleapis.com/ToolH\000\022=\n" + "\014toolset_tool\030\002 \001(\0132 .google.cloud.ces.v" @@ -107,30 +114,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "d.ces.v1.ToolsetToolH\000\0221\n\014input_schema\030\003" + " \001(\0132\033.google.cloud.ces.v1.Schema\0222\n\rout" + "put_schema\030\004 \001(\0132\033.google.cloud.ces.v1.S" - + "chemaB\021\n\017tool_identifier\"b\n\024RetrieveTool" - + "sRequest\0223\n\007toolset\030\001 \001(\tB\"\340A\002\372A\034\n\032ces.g" - + "oogleapis.com/Toolset\022\025\n\010tool_ids\030\003 \003(\tB" - + "\003\340A\001\"A\n\025RetrieveToolsResponse\022(\n\005tools\030\001" - + " \003(\0132\031.google.cloud.ces.v1.Tool2\233\005\n\013Tool" - + "Service\022\243\001\n\013ExecuteTool\022\'.google.cloud.c" - + "es.v1.ExecuteToolRequest\032(.google.cloud." - + "ces.v1.ExecuteToolResponse\"A\202\323\344\223\002;\"6/v1/" - + "{parent=projects/*/locations/*/apps/*}:e" - + "xecuteTool:\001*\022\277\001\n\022RetrieveToolSchema\022..g" - + "oogle.cloud.ces.v1.RetrieveToolSchemaReq" - + "uest\032/.google.cloud.ces.v1.RetrieveToolS" - + "chemaResponse\"H\202\323\344\223\002B\"=/v1/{parent=proje" - + "cts/*/locations/*/apps/*}:retrieveToolSc" - + "hema:\001*\022\267\001\n\rRetrieveTools\022).google.cloud" - + ".ces.v1.RetrieveToolsRequest\032*.google.cl" - + "oud.ces.v1.RetrieveToolsResponse\"O\202\323\344\223\002I" - + "\"D/v1/{toolset=projects/*/locations/*/ap" - + "ps/*/toolsets/*}:retrieveTools:\001*\032j\312A\022ce" - + "s.googleapis.com\322ARhttps://www.googleapi" - + "s.com/auth/ces,https://www.googleapis.co" - + "m/auth/cloud-platformBX\n\027com.google.clou" - + "d.ces.v1B\020ToolServiceProtoP\001Z)cloud.goog" - + "le.com/go/ces/apiv1/cespb;cespbb\006proto3" + + "chemaB\021\n\017tool_identifier\"\212\001\n\024RetrieveToo" + + "lsRequest\0223\n\007toolset\030\001 \001(\tB\"\340A\002\372A\034\n\032ces." + + "googleapis.com/Toolset\022\025\n\010tool_ids\030\003 \003(\t" + + "B\003\340A\001\022&\n\031bypass_persistence_config\030\004 \001(\010" + + "B\003\340A\001\"A\n\025RetrieveToolsResponse\022(\n\005tools\030" + + "\001 \003(\0132\031.google.cloud.ces.v1.Tool2\233\005\n\013Too" + + "lService\022\243\001\n\013ExecuteTool\022\'.google.cloud." + + "ces.v1.ExecuteToolRequest\032(.google.cloud" + + ".ces.v1.ExecuteToolResponse\"A\202\323\344\223\002;\"6/v1" + + "/{parent=projects/*/locations/*/apps/*}:" + + "executeTool:\001*\022\277\001\n\022RetrieveToolSchema\022.." + + "google.cloud.ces.v1.RetrieveToolSchemaRe" + + "quest\032/.google.cloud.ces.v1.RetrieveTool" + + "SchemaResponse\"H\202\323\344\223\002B\"=/v1/{parent=proj" + + "ects/*/locations/*/apps/*}:retrieveToolS" + + "chema:\001*\022\267\001\n\rRetrieveTools\022).google.clou" + + "d.ces.v1.RetrieveToolsRequest\032*.google.c" + + "loud.ces.v1.RetrieveToolsResponse\"O\202\323\344\223\002" + + "I\"D/v1/{toolset=projects/*/locations/*/a" + + "pps/*/toolsets/*}:retrieveTools:\001*\032j\312A\022c" + + "es.googleapis.com\322ARhttps://www.googleap" + + "is.com/auth/ces,https://www.googleapis.c" + + "om/auth/cloud-platformBX\n\027com.google.clo" + + "ud.ces.v1B\020ToolServiceProtoP\001Z)cloud.goo" + + "gle.com/go/ces/apiv1/cespb;cespbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -141,6 +149,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.cloud.ces.v1.SchemaProto.getDescriptor(), + com.google.cloud.ces.v1.SearchSuggestionsProto.getDescriptor(), + com.google.cloud.ces.v1.SessionServiceProto.getDescriptor(), com.google.cloud.ces.v1.ToolProto.getDescriptor(), com.google.cloud.ces.v1.ToolsetToolProto.getDescriptor(), com.google.protobuf.StructProto.getDescriptor(), @@ -157,6 +167,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Context", "Parent", "Args", + "MockConfig", "ToolIdentifier", "ToolExecutionContext", }); @@ -166,7 +177,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1_ExecuteToolResponse_descriptor, new java.lang.String[] { - "Tool", "ToolsetTool", "Response", "Variables", "ToolIdentifier", + "Tool", + "ToolsetTool", + "Response", + "Variables", + "Citations", + "GoogleSearchSuggestions", + "ToolIdentifier", }); internal_static_google_cloud_ces_v1_RetrieveToolSchemaRequest_descriptor = getDescriptor().getMessageType(2); @@ -190,7 +207,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1_RetrieveToolsRequest_descriptor, new java.lang.String[] { - "Toolset", "ToolIds", + "Toolset", "ToolIds", "BypassPersistenceConfig", }); internal_static_google_cloud_ces_v1_RetrieveToolsResponse_descriptor = getDescriptor().getMessageType(5); @@ -206,6 +223,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.cloud.ces.v1.SchemaProto.getDescriptor(); + com.google.cloud.ces.v1.SearchSuggestionsProto.getDescriptor(); + com.google.cloud.ces.v1.SessionServiceProto.getDescriptor(); com.google.cloud.ces.v1.ToolProto.getDescriptor(); com.google.cloud.ces.v1.ToolsetToolProto.getDescriptor(); com.google.protobuf.StructProto.getDescriptor(); diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Toolset.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Toolset.java index 471beae03a66..7a1526a53a9d 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Toolset.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Toolset.java @@ -482,6 +482,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_; @@ -499,7 +554,7 @@ public com.google.protobuf.ByteString getDescriptionBytes() { */ @java.lang.Override public boolean hasCreateTime() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000002) != 0); } /** @@ -551,7 +606,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { */ @java.lang.Override public boolean hasUpdateTime() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** @@ -702,7 +757,7 @@ public com.google.cloud.ces.v1.ExecutionType getExecutionType() { */ @java.lang.Override public boolean hasToolFakeConfig() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** @@ -763,10 +818,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_)) { @@ -788,9 +843,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); } @@ -806,10 +864,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_)) { @@ -837,9 +895,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; @@ -858,6 +919,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; @@ -903,6 +968,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(); @@ -1075,6 +1144,7 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetTimeoutFieldBuilder(); internalGetCreateTimeFieldBuilder(); internalGetUpdateTimeFieldBuilder(); internalGetToolFakeConfigFieldBuilder(); @@ -1097,6 +1167,11 @@ public Builder clear() { name_ = ""; displayName_ = ""; description_ = ""; + timeout_ = null; + if (timeoutBuilder_ != null) { + timeoutBuilder_.dispose(); + timeoutBuilder_ = null; + } createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); @@ -1163,23 +1238,27 @@ private void buildPartial0(com.google.cloud.ces.v1.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_; } @@ -1225,6 +1304,9 @@ public Builder mergeFrom(com.google.cloud.ces.v1.Toolset other) { bitField0_ |= 0x00000020; onChanged(); } + if (other.hasTimeout()) { + mergeTimeout(other.getTimeout()); + } if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -1233,7 +1315,7 @@ public Builder mergeFrom(com.google.cloud.ces.v1.Toolset other) { } if (!other.getEtag().isEmpty()) { etag_ = other.etag_; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); } if (other.executionType_ != 0) { @@ -1305,20 +1387,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: @@ -1345,7 +1427,7 @@ public Builder mergeFrom( case 72: { executionType_ = input.readEnum(); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; break; } // case 72 case 82: @@ -1358,9 +1440,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)) { @@ -2476,6 +2564,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, @@ -2497,7 +2802,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); } /** @@ -2543,7 +2848,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2565,7 +2870,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { createTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2583,7 +2888,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); @@ -2594,7 +2899,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { createTimeBuilder_.mergeFrom(value); } if (createTime_ != null) { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); } return this; @@ -2612,7 +2917,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(); @@ -2634,7 +2939,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return internalGetCreateTimeFieldBuilder().getBuilder(); } @@ -2709,7 +3014,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); } /** @@ -2755,7 +3060,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { } else { updateTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2777,7 +3082,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2795,7 +3100,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); @@ -2806,7 +3111,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { updateTimeBuilder_.mergeFrom(value); } if (updateTime_ != null) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); } return this; @@ -2824,7 +3129,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(); @@ -2846,7 +3151,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return internalGetUpdateTimeFieldBuilder().getBuilder(); } @@ -2971,7 +3276,7 @@ public Builder setEtag(java.lang.String value) { throw new NullPointerException(); } etag_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -2991,7 +3296,7 @@ public Builder setEtag(java.lang.String value) { */ public Builder clearEtag() { etag_ = getDefaultInstance().getEtag(); - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } @@ -3016,7 +3321,7 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); etag_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -3057,7 +3362,7 @@ public int getExecutionTypeValue() { */ public Builder setExecutionTypeValue(int value) { executionType_ = value; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -3100,7 +3405,7 @@ public Builder setExecutionType(com.google.cloud.ces.v1.ExecutionType value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; executionType_ = value.getNumber(); onChanged(); return this; @@ -3120,7 +3425,7 @@ public Builder setExecutionType(com.google.cloud.ces.v1.ExecutionType value) { * @return This builder for chaining. */ public Builder clearExecutionType() { - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); executionType_ = 0; onChanged(); return this; @@ -3147,7 +3452,7 @@ public Builder clearExecutionType() { * @return Whether the toolFakeConfig field is set. */ public boolean hasToolFakeConfig() { - return ((bitField0_ & 0x00000400) != 0); + return ((bitField0_ & 0x00000800) != 0); } /** @@ -3193,7 +3498,7 @@ public Builder setToolFakeConfig(com.google.cloud.ces.v1.ToolFakeConfig value) { } else { toolFakeConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -3216,7 +3521,7 @@ public Builder setToolFakeConfig( } else { toolFakeConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -3234,7 +3539,7 @@ public Builder setToolFakeConfig( */ public Builder mergeToolFakeConfig(com.google.cloud.ces.v1.ToolFakeConfig value) { if (toolFakeConfigBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) + if (((bitField0_ & 0x00000800) != 0) && toolFakeConfig_ != null && toolFakeConfig_ != com.google.cloud.ces.v1.ToolFakeConfig.getDefaultInstance()) { getToolFakeConfigBuilder().mergeFrom(value); @@ -3245,7 +3550,7 @@ public Builder mergeToolFakeConfig(com.google.cloud.ces.v1.ToolFakeConfig value) toolFakeConfigBuilder_.mergeFrom(value); } if (toolFakeConfig_ != null) { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); } return this; @@ -3263,7 +3568,7 @@ public Builder mergeToolFakeConfig(com.google.cloud.ces.v1.ToolFakeConfig value) * */ public Builder clearToolFakeConfig() { - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); toolFakeConfig_ = null; if (toolFakeConfigBuilder_ != null) { toolFakeConfigBuilder_.dispose(); @@ -3285,7 +3590,7 @@ public Builder clearToolFakeConfig() { * */ public com.google.cloud.ces.v1.ToolFakeConfig.Builder getToolFakeConfigBuilder() { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return internalGetToolFakeConfigFieldBuilder().getBuilder(); } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolsetOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolsetOrBuilder.java index e93ad4f1249d..6a117a88badd 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolsetOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/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-v1/src/main/java/com/google/cloud/ces/v1/ToolsetProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolsetProto.java index f0e13ee426d2..6c78d4d83747 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolsetProto.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolsetProto.java @@ -59,18 +59,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " google/cloud/ces/v1/common.proto\032+google/c" + "loud/ces/v1/connector_toolset.proto\032\037goo" + "gle/cloud/ces/v1/fakes.proto\032%google/cloud/ces/v1/mcp_toolset.proto\032*google/clou" - + "d/ces/v1/open_api_toolset.proto\032\037google/protobuf/timestamp.proto\"\247\005\n" + + "d/ces/v1/open_api_toolset.proto\032\036google/" + + "protobuf/duration.proto\032\037google/protobuf/timestamp.proto\"\330\005\n" + "\007Toolset\022;\n" + "\013mcp_toolset\030\006" + " \001(\0132\037.google.cloud.ces.v1.McpToolsetB\003\340A\001H\000\022D\n" - + "\020open_api_toolset\030\007 " - + "\001(\0132#.google.cloud.ces.v1.OpenApiToolsetB\003\340A\001H\000\022G\n" - + "\021connector_toolset\030\010 \001(\0132%.goo" - + "gle.cloud.ces.v1.ConnectorToolsetB\003\340A\001H\000\022\021\n" + + "\020open_api_toolset\030\007 \001(\0132#.go" + + "ogle.cloud.ces.v1.OpenApiToolsetB\003\340A\001H\000\022G\n" + + "\021connector_toolset\030\010" + + " \001(\0132%.google.cloud.ces.v1.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" @@ -79,11 +81,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0162\".google.cloud.ces.v1.ExecutionTypeB\003\340A\001\022B\n" + "\020tool_fake_config\030\013" + " \001(\0132#.google.cloud.ces.v1.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/{locatio" + + "n}/apps/{app}/toolsets/{toolset}*\010toolsets2\007toolsetB\016\n" + "\014toolset_typeBT\n" - + "\027com.google.cloud.ces.v1B\014ToolsetProtoP\001Z)cloud.goo" - + "gle.com/go/ces/apiv1/cespb;cespbb\006proto3" + + "\027com.google.cloud.ces.v1B\014ToolsetProtoP\001Z)cloud.go" + + "ogle.com/go/ces/apiv1/cespb;cespbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -96,6 +98,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.ces.v1.FakesProto.getDescriptor(), com.google.cloud.ces.v1.McpToolsetProto.getDescriptor(), com.google.cloud.ces.v1.OpenApiToolsetProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); internal_static_google_cloud_ces_v1_Toolset_descriptor = getDescriptor().getMessageType(0); @@ -109,6 +112,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "DisplayName", "Description", + "Timeout", "CreateTime", "UpdateTime", "Etag", @@ -124,6 +128,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.ces.v1.FakesProto.getDescriptor(); com.google.cloud.ces.v1.McpToolsetProto.getDescriptor(); com.google.cloud.ces.v1.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-v1/src/main/java/com/google/cloud/ces/v1/VpcScSettings.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/VpcScSettings.java new file mode 100644 index 000000000000..17df521ea800 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/VpcScSettings.java @@ -0,0 +1,746 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language 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/v1/app.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
                + * VPC-SC settings for the app.
                + * 
                + * + * Protobuf type {@code google.cloud.ces.v1.VpcScSettings} + */ +@com.google.protobuf.Generated +public final class VpcScSettings extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.VpcScSettings) + VpcScSettingsOrBuilder { + 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= */ "", + "VpcScSettings"); + } + + // Use VpcScSettings.newBuilder() to construct. + private VpcScSettings(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private VpcScSettings() { + allowedOrigins_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_VpcScSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_VpcScSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.VpcScSettings.class, + com.google.cloud.ces.v1.VpcScSettings.Builder.class); + } + + public static final int ALLOWED_ORIGINS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList allowedOrigins_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
                +   * Optional. The allowed HTTP(s) origins that OpenAPI tools in the App are
                +   * able to directly call when VPC Service Controls are enabled. These strings
                +   * must match the origin exactly, including the port if specified. For
                +   * example, "https://example.com" or "https://example.com:443". This list does
                +   * not yet apply to Python tools that may make direct HTTP calls.
                +   * 
                + * + * repeated string allowed_origins = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the allowedOrigins. + */ + public com.google.protobuf.ProtocolStringList getAllowedOriginsList() { + return allowedOrigins_; + } + + /** + * + * + *
                +   * Optional. The allowed HTTP(s) origins that OpenAPI tools in the App are
                +   * able to directly call when VPC Service Controls are enabled. These strings
                +   * must match the origin exactly, including the port if specified. For
                +   * example, "https://example.com" or "https://example.com:443". This list does
                +   * not yet apply to Python tools that may make direct HTTP calls.
                +   * 
                + * + * repeated string allowed_origins = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of allowedOrigins. + */ + public int getAllowedOriginsCount() { + return allowedOrigins_.size(); + } + + /** + * + * + *
                +   * Optional. The allowed HTTP(s) origins that OpenAPI tools in the App are
                +   * able to directly call when VPC Service Controls are enabled. These strings
                +   * must match the origin exactly, including the port if specified. For
                +   * example, "https://example.com" or "https://example.com:443". This list does
                +   * not yet apply to Python tools that may make direct HTTP calls.
                +   * 
                + * + * repeated string allowed_origins = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The allowedOrigins at the given index. + */ + public java.lang.String getAllowedOrigins(int index) { + return allowedOrigins_.get(index); + } + + /** + * + * + *
                +   * Optional. The allowed HTTP(s) origins that OpenAPI tools in the App are
                +   * able to directly call when VPC Service Controls are enabled. These strings
                +   * must match the origin exactly, including the port if specified. For
                +   * example, "https://example.com" or "https://example.com:443". This list does
                +   * not yet apply to Python tools that may make direct HTTP calls.
                +   * 
                + * + * repeated string allowed_origins = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the allowedOrigins at the given index. + */ + public com.google.protobuf.ByteString getAllowedOriginsBytes(int index) { + return allowedOrigins_.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 < allowedOrigins_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, allowedOrigins_.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 < allowedOrigins_.size(); i++) { + dataSize += computeStringSizeNoTag(allowedOrigins_.getRaw(i)); + } + size += dataSize; + size += 1 * getAllowedOriginsList().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.ces.v1.VpcScSettings)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.VpcScSettings other = (com.google.cloud.ces.v1.VpcScSettings) obj; + + if (!getAllowedOriginsList().equals(other.getAllowedOriginsList())) return false; + if (!getUnknownFields().equals(other.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 (getAllowedOriginsCount() > 0) { + hash = (37 * hash) + ALLOWED_ORIGINS_FIELD_NUMBER; + hash = (53 * hash) + getAllowedOriginsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.VpcScSettings parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.VpcScSettings parseFrom( + 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.v1.VpcScSettings parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.VpcScSettings parseFrom( + com.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.v1.VpcScSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.VpcScSettings parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.VpcScSettings parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.VpcScSettings parseFrom( + java.io.InputStream 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.v1.VpcScSettings parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.VpcScSettings parseDelimitedFrom( + java.io.InputStream 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.v1.VpcScSettings parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.VpcScSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, 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.v1.VpcScSettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                +   * VPC-SC settings for the app.
                +   * 
                + * + * Protobuf type {@code google.cloud.ces.v1.VpcScSettings} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.VpcScSettings) + com.google.cloud.ces.v1.VpcScSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_VpcScSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_VpcScSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.VpcScSettings.class, + com.google.cloud.ces.v1.VpcScSettings.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.VpcScSettings.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + allowedOrigins_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_VpcScSettings_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.VpcScSettings getDefaultInstanceForType() { + return com.google.cloud.ces.v1.VpcScSettings.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.VpcScSettings build() { + com.google.cloud.ces.v1.VpcScSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.VpcScSettings buildPartial() { + com.google.cloud.ces.v1.VpcScSettings result = + new com.google.cloud.ces.v1.VpcScSettings(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.VpcScSettings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + allowedOrigins_.makeImmutable(); + result.allowedOrigins_ = allowedOrigins_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.VpcScSettings) { + return mergeFrom((com.google.cloud.ces.v1.VpcScSettings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.VpcScSettings other) { + if (other == com.google.cloud.ces.v1.VpcScSettings.getDefaultInstance()) return this; + if (!other.allowedOrigins_.isEmpty()) { + if (allowedOrigins_.isEmpty()) { + allowedOrigins_ = other.allowedOrigins_; + bitField0_ |= 0x00000001; + } else { + ensureAllowedOriginsIsMutable(); + allowedOrigins_.addAll(other.allowedOrigins_); + } + 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(); + ensureAllowedOriginsIsMutable(); + allowedOrigins_.add(s); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList allowedOrigins_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureAllowedOriginsIsMutable() { + if (!allowedOrigins_.isModifiable()) { + allowedOrigins_ = new com.google.protobuf.LazyStringArrayList(allowedOrigins_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
                +     * Optional. The allowed HTTP(s) origins that OpenAPI tools in the App are
                +     * able to directly call when VPC Service Controls are enabled. These strings
                +     * must match the origin exactly, including the port if specified. For
                +     * example, "https://example.com" or "https://example.com:443". This list does
                +     * not yet apply to Python tools that may make direct HTTP calls.
                +     * 
                + * + * repeated string allowed_origins = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the allowedOrigins. + */ + public com.google.protobuf.ProtocolStringList getAllowedOriginsList() { + allowedOrigins_.makeImmutable(); + return allowedOrigins_; + } + + /** + * + * + *
                +     * Optional. The allowed HTTP(s) origins that OpenAPI tools in the App are
                +     * able to directly call when VPC Service Controls are enabled. These strings
                +     * must match the origin exactly, including the port if specified. For
                +     * example, "https://example.com" or "https://example.com:443". This list does
                +     * not yet apply to Python tools that may make direct HTTP calls.
                +     * 
                + * + * repeated string allowed_origins = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of allowedOrigins. + */ + public int getAllowedOriginsCount() { + return allowedOrigins_.size(); + } + + /** + * + * + *
                +     * Optional. The allowed HTTP(s) origins that OpenAPI tools in the App are
                +     * able to directly call when VPC Service Controls are enabled. These strings
                +     * must match the origin exactly, including the port if specified. For
                +     * example, "https://example.com" or "https://example.com:443". This list does
                +     * not yet apply to Python tools that may make direct HTTP calls.
                +     * 
                + * + * repeated string allowed_origins = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The allowedOrigins at the given index. + */ + public java.lang.String getAllowedOrigins(int index) { + return allowedOrigins_.get(index); + } + + /** + * + * + *
                +     * Optional. The allowed HTTP(s) origins that OpenAPI tools in the App are
                +     * able to directly call when VPC Service Controls are enabled. These strings
                +     * must match the origin exactly, including the port if specified. For
                +     * example, "https://example.com" or "https://example.com:443". This list does
                +     * not yet apply to Python tools that may make direct HTTP calls.
                +     * 
                + * + * repeated string allowed_origins = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the allowedOrigins at the given index. + */ + public com.google.protobuf.ByteString getAllowedOriginsBytes(int index) { + return allowedOrigins_.getByteString(index); + } + + /** + * + * + *
                +     * Optional. The allowed HTTP(s) origins that OpenAPI tools in the App are
                +     * able to directly call when VPC Service Controls are enabled. These strings
                +     * must match the origin exactly, including the port if specified. For
                +     * example, "https://example.com" or "https://example.com:443". This list does
                +     * not yet apply to Python tools that may make direct HTTP calls.
                +     * 
                + * + * repeated string allowed_origins = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The allowedOrigins to set. + * @return This builder for chaining. + */ + public Builder setAllowedOrigins(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowedOriginsIsMutable(); + allowedOrigins_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. The allowed HTTP(s) origins that OpenAPI tools in the App are
                +     * able to directly call when VPC Service Controls are enabled. These strings
                +     * must match the origin exactly, including the port if specified. For
                +     * example, "https://example.com" or "https://example.com:443". This list does
                +     * not yet apply to Python tools that may make direct HTTP calls.
                +     * 
                + * + * repeated string allowed_origins = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The allowedOrigins to add. + * @return This builder for chaining. + */ + public Builder addAllowedOrigins(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowedOriginsIsMutable(); + allowedOrigins_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. The allowed HTTP(s) origins that OpenAPI tools in the App are
                +     * able to directly call when VPC Service Controls are enabled. These strings
                +     * must match the origin exactly, including the port if specified. For
                +     * example, "https://example.com" or "https://example.com:443". This list does
                +     * not yet apply to Python tools that may make direct HTTP calls.
                +     * 
                + * + * repeated string allowed_origins = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The allowedOrigins to add. + * @return This builder for chaining. + */ + public Builder addAllAllowedOrigins(java.lang.Iterable values) { + ensureAllowedOriginsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedOrigins_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. The allowed HTTP(s) origins that OpenAPI tools in the App are
                +     * able to directly call when VPC Service Controls are enabled. These strings
                +     * must match the origin exactly, including the port if specified. For
                +     * example, "https://example.com" or "https://example.com:443". This list does
                +     * not yet apply to Python tools that may make direct HTTP calls.
                +     * 
                + * + * repeated string allowed_origins = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAllowedOrigins() { + allowedOrigins_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. The allowed HTTP(s) origins that OpenAPI tools in the App are
                +     * able to directly call when VPC Service Controls are enabled. These strings
                +     * must match the origin exactly, including the port if specified. For
                +     * example, "https://example.com" or "https://example.com:443". This list does
                +     * not yet apply to Python tools that may make direct HTTP calls.
                +     * 
                + * + * repeated string allowed_origins = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the allowedOrigins to add. + * @return This builder for chaining. + */ + public Builder addAllowedOriginsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAllowedOriginsIsMutable(); + allowedOrigins_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.VpcScSettings) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.VpcScSettings) + private static final com.google.cloud.ces.v1.VpcScSettings DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.VpcScSettings(); + } + + public static com.google.cloud.ces.v1.VpcScSettings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VpcScSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.v1.VpcScSettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/VpcScSettingsOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/VpcScSettingsOrBuilder.java new file mode 100644 index 000000000000..b073efb5bcb5 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/VpcScSettingsOrBuilder.java @@ -0,0 +1,98 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language 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/v1/app.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface VpcScSettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.VpcScSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                +   * Optional. The allowed HTTP(s) origins that OpenAPI tools in the App are
                +   * able to directly call when VPC Service Controls are enabled. These strings
                +   * must match the origin exactly, including the port if specified. For
                +   * example, "https://example.com" or "https://example.com:443". This list does
                +   * not yet apply to Python tools that may make direct HTTP calls.
                +   * 
                + * + * repeated string allowed_origins = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the allowedOrigins. + */ + java.util.List getAllowedOriginsList(); + + /** + * + * + *
                +   * Optional. The allowed HTTP(s) origins that OpenAPI tools in the App are
                +   * able to directly call when VPC Service Controls are enabled. These strings
                +   * must match the origin exactly, including the port if specified. For
                +   * example, "https://example.com" or "https://example.com:443". This list does
                +   * not yet apply to Python tools that may make direct HTTP calls.
                +   * 
                + * + * repeated string allowed_origins = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of allowedOrigins. + */ + int getAllowedOriginsCount(); + + /** + * + * + *
                +   * Optional. The allowed HTTP(s) origins that OpenAPI tools in the App are
                +   * able to directly call when VPC Service Controls are enabled. These strings
                +   * must match the origin exactly, including the port if specified. For
                +   * example, "https://example.com" or "https://example.com:443". This list does
                +   * not yet apply to Python tools that may make direct HTTP calls.
                +   * 
                + * + * repeated string allowed_origins = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The allowedOrigins at the given index. + */ + java.lang.String getAllowedOrigins(int index); + + /** + * + * + *
                +   * Optional. The allowed HTTP(s) origins that OpenAPI tools in the App are
                +   * able to directly call when VPC Service Controls are enabled. These strings
                +   * must match the origin exactly, including the port if specified. For
                +   * example, "https://example.com" or "https://example.com:443". This list does
                +   * not yet apply to Python tools that may make direct HTTP calls.
                +   * 
                + * + * repeated string allowed_origins = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the allowedOrigins at the given index. + */ + com.google.protobuf.ByteString getAllowedOriginsBytes(int index); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/WhatsAppCredentials.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/WhatsAppCredentials.java new file mode 100644 index 000000000000..e3208b748cb5 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/WhatsAppCredentials.java @@ -0,0 +1,1540 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language 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/v1/deployment.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
                + * Ephemeral Meta credentials for WhatsApp native integration.
                + * 
                + * + * Protobuf type {@code google.cloud.ces.v1.WhatsAppCredentials} + */ +@com.google.protobuf.Generated +public final class WhatsAppCredentials extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.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.v1.ChannelProfileProto + .internal_static_google_cloud_ces_v1_WhatsAppCredentials_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.ChannelProfileProto + .internal_static_google_cloud_ces_v1_WhatsAppCredentials_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.WhatsAppCredentials.class, + com.google.cloud.ces.v1.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.v1.WhatsAppCredentials)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.WhatsAppCredentials other = + (com.google.cloud.ces.v1.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.v1.WhatsAppCredentials parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.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.v1.WhatsAppCredentials parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.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.v1.WhatsAppCredentials parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.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.v1.WhatsAppCredentials parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.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.v1.WhatsAppCredentials parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.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.v1.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.v1.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.v1.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.v1.WhatsAppCredentials} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.WhatsAppCredentials) + com.google.cloud.ces.v1.WhatsAppCredentialsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.ChannelProfileProto + .internal_static_google_cloud_ces_v1_WhatsAppCredentials_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.ChannelProfileProto + .internal_static_google_cloud_ces_v1_WhatsAppCredentials_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.WhatsAppCredentials.class, + com.google.cloud.ces.v1.WhatsAppCredentials.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.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.v1.ChannelProfileProto + .internal_static_google_cloud_ces_v1_WhatsAppCredentials_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.WhatsAppCredentials getDefaultInstanceForType() { + return com.google.cloud.ces.v1.WhatsAppCredentials.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.WhatsAppCredentials build() { + com.google.cloud.ces.v1.WhatsAppCredentials result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.WhatsAppCredentials buildPartial() { + com.google.cloud.ces.v1.WhatsAppCredentials result = + new com.google.cloud.ces.v1.WhatsAppCredentials(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.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.v1.WhatsAppCredentials) { + return mergeFrom((com.google.cloud.ces.v1.WhatsAppCredentials) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.WhatsAppCredentials other) { + if (other == com.google.cloud.ces.v1.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.v1.WhatsAppCredentials) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.WhatsAppCredentials) + private static final com.google.cloud.ces.v1.WhatsAppCredentials DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.WhatsAppCredentials(); + } + + public static com.google.cloud.ces.v1.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.v1.WhatsAppCredentials getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/WhatsAppCredentialsOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/WhatsAppCredentialsOrBuilder.java new file mode 100644 index 000000000000..e6571c167b2e --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/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/v1/deployment.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface WhatsAppCredentialsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.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-v1/src/main/java/com/google/cloud/ces/v1/WidgetTool.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/WidgetTool.java index bc909442a981..a080035f29d8 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/WidgetTool.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/WidgetTool.java @@ -475,6 +475,1255 @@ private WidgetType(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1.WidgetTool.WidgetType) } + public interface TextResponseConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.WidgetTool.TextResponseConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                +     * Optional. The strategy for providing the text response.
                +     * 
                + * + * + * .google.cloud.ces.v1.WidgetTool.TextResponseConfig.Type type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + + /** + * + * + *
                +     * Optional. The strategy for providing the text response.
                +     * 
                + * + * + * .google.cloud.ces.v1.WidgetTool.TextResponseConfig.Type type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The type. + */ + com.google.cloud.ces.v1.WidgetTool.TextResponseConfig.Type getType(); + + /** + * + * + *
                +     * Optional. The static text response to return when type is STATIC.
                +     * 
                + * + * string static_text = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The staticText. + */ + java.lang.String getStaticText(); + + /** + * + * + *
                +     * Optional. The static text response to return when type is STATIC.
                +     * 
                + * + * string static_text = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for staticText. + */ + com.google.protobuf.ByteString getStaticTextBytes(); + + /** + * + * + *
                +     * Optional. Instruction for the LLM on how to generate the text response.
                +     * Used as the description for the text response parameter if type is
                +     * LLM_GENERATED.
                +     * 
                + * + * string text_response_instruction = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The textResponseInstruction. + */ + java.lang.String getTextResponseInstruction(); + + /** + * + * + *
                +     * Optional. Instruction for the LLM on how to generate the text response.
                +     * Used as the description for the text response parameter if type is
                +     * LLM_GENERATED.
                +     * 
                + * + * string text_response_instruction = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for textResponseInstruction. + */ + com.google.protobuf.ByteString getTextResponseInstructionBytes(); + } + + /** + * + * + *
                +   * Configuration for the text response returned with the widget.
                +   * 
                + * + * Protobuf type {@code google.cloud.ces.v1.WidgetTool.TextResponseConfig} + */ + public static final class TextResponseConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.WidgetTool.TextResponseConfig) + TextResponseConfigOrBuilder { + 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= */ "", + "TextResponseConfig"); + } + + // Use TextResponseConfig.newBuilder() to construct. + private TextResponseConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private TextResponseConfig() { + type_ = 0; + staticText_ = ""; + textResponseInstruction_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.WidgetToolProto + .internal_static_google_cloud_ces_v1_WidgetTool_TextResponseConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.WidgetToolProto + .internal_static_google_cloud_ces_v1_WidgetTool_TextResponseConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.WidgetTool.TextResponseConfig.class, + com.google.cloud.ces.v1.WidgetTool.TextResponseConfig.Builder.class); + } + + /** + * + * + *
                +     * Defines how the text response is produced.
                +     * 
                + * + * Protobuf enum {@code google.cloud.ces.v1.WidgetTool.TextResponseConfig.Type} + */ + public enum Type implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                +       * Unspecified type.
                +       * 
                + * + * TYPE_UNSPECIFIED = 0; + */ + TYPE_UNSPECIFIED(0), + /** + * + * + *
                +       * The LLM dynamically decides whether to generate a text response
                +       * alongside the widget based on the conversation context.
                +       * 
                + * + * NONE = 1; + */ + NONE(1), + /** + * + * + *
                +       * The LLM is explicitly required to generate a text response.
                +       * 
                + * + * LLM_GENERATED = 2; + */ + LLM_GENERATED(2), + /** + * + * + *
                +       * A pre-defined static text response is always used.
                +       * 
                + * + * STATIC = 3; + */ + STATIC(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Type"); + } + + /** + * + * + *
                +       * Unspecified type.
                +       * 
                + * + * TYPE_UNSPECIFIED = 0; + */ + public static final int TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                +       * The LLM dynamically decides whether to generate a text response
                +       * alongside the widget based on the conversation context.
                +       * 
                + * + * NONE = 1; + */ + public static final int NONE_VALUE = 1; + + /** + * + * + *
                +       * The LLM is explicitly required to generate a text response.
                +       * 
                + * + * LLM_GENERATED = 2; + */ + public static final int LLM_GENERATED_VALUE = 2; + + /** + * + * + *
                +       * A pre-defined static text response is always used.
                +       * 
                + * + * STATIC = 3; + */ + public static final int STATIC_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Type valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Type forNumber(int value) { + switch (value) { + case 0: + return TYPE_UNSPECIFIED; + case 1: + return NONE; + case 2: + return LLM_GENERATED; + case 3: + return STATIC; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.ces.v1.WidgetTool.TextResponseConfig.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Type[] VALUES = values(); + + public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Type(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1.WidgetTool.TextResponseConfig.Type) + } + + public static final int TYPE_FIELD_NUMBER = 1; + private int type_ = 0; + + /** + * + * + *
                +     * Optional. The strategy for providing the text response.
                +     * 
                + * + * + * .google.cloud.ces.v1.WidgetTool.TextResponseConfig.Type type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
                +     * Optional. The strategy for providing the text response.
                +     * 
                + * + * + * .google.cloud.ces.v1.WidgetTool.TextResponseConfig.Type type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.ces.v1.WidgetTool.TextResponseConfig.Type getType() { + com.google.cloud.ces.v1.WidgetTool.TextResponseConfig.Type result = + com.google.cloud.ces.v1.WidgetTool.TextResponseConfig.Type.forNumber(type_); + return result == null + ? com.google.cloud.ces.v1.WidgetTool.TextResponseConfig.Type.UNRECOGNIZED + : result; + } + + public static final int STATIC_TEXT_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object staticText_ = ""; + + /** + * + * + *
                +     * Optional. The static text response to return when type is STATIC.
                +     * 
                + * + * string static_text = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The staticText. + */ + @java.lang.Override + public java.lang.String getStaticText() { + java.lang.Object ref = staticText_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + staticText_ = s; + return s; + } + } + + /** + * + * + *
                +     * Optional. The static text response to return when type is STATIC.
                +     * 
                + * + * string static_text = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for staticText. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStaticTextBytes() { + java.lang.Object ref = staticText_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + staticText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TEXT_RESPONSE_INSTRUCTION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object textResponseInstruction_ = ""; + + /** + * + * + *
                +     * Optional. Instruction for the LLM on how to generate the text response.
                +     * Used as the description for the text response parameter if type is
                +     * LLM_GENERATED.
                +     * 
                + * + * string text_response_instruction = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The textResponseInstruction. + */ + @java.lang.Override + public java.lang.String getTextResponseInstruction() { + java.lang.Object ref = textResponseInstruction_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + textResponseInstruction_ = s; + return s; + } + } + + /** + * + * + *
                +     * Optional. Instruction for the LLM on how to generate the text response.
                +     * Used as the description for the text response parameter if type is
                +     * LLM_GENERATED.
                +     * 
                + * + * string text_response_instruction = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for textResponseInstruction. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTextResponseInstructionBytes() { + java.lang.Object ref = textResponseInstruction_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + textResponseInstruction_ = 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 (type_ + != com.google.cloud.ces.v1.WidgetTool.TextResponseConfig.Type.TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, type_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(staticText_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, staticText_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(textResponseInstruction_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, textResponseInstruction_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (type_ + != com.google.cloud.ces.v1.WidgetTool.TextResponseConfig.Type.TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(staticText_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, staticText_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(textResponseInstruction_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, textResponseInstruction_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.v1.WidgetTool.TextResponseConfig)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.WidgetTool.TextResponseConfig other = + (com.google.cloud.ces.v1.WidgetTool.TextResponseConfig) obj; + + if (type_ != other.type_) return false; + if (!getStaticText().equals(other.getStaticText())) return false; + if (!getTextResponseInstruction().equals(other.getTextResponseInstruction())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + STATIC_TEXT_FIELD_NUMBER; + hash = (53 * hash) + getStaticText().hashCode(); + hash = (37 * hash) + TEXT_RESPONSE_INSTRUCTION_FIELD_NUMBER; + hash = (53 * hash) + getTextResponseInstruction().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.WidgetTool.TextResponseConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.WidgetTool.TextResponseConfig parseFrom( + 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.v1.WidgetTool.TextResponseConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.WidgetTool.TextResponseConfig parseFrom( + com.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.v1.WidgetTool.TextResponseConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.WidgetTool.TextResponseConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.WidgetTool.TextResponseConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.WidgetTool.TextResponseConfig parseFrom( + java.io.InputStream 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.v1.WidgetTool.TextResponseConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.WidgetTool.TextResponseConfig parseDelimitedFrom( + java.io.InputStream 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.v1.WidgetTool.TextResponseConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.WidgetTool.TextResponseConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, 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.v1.WidgetTool.TextResponseConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                +     * Configuration for the text response returned with the widget.
                +     * 
                + * + * Protobuf type {@code google.cloud.ces.v1.WidgetTool.TextResponseConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.WidgetTool.TextResponseConfig) + com.google.cloud.ces.v1.WidgetTool.TextResponseConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.WidgetToolProto + .internal_static_google_cloud_ces_v1_WidgetTool_TextResponseConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.WidgetToolProto + .internal_static_google_cloud_ces_v1_WidgetTool_TextResponseConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.WidgetTool.TextResponseConfig.class, + com.google.cloud.ces.v1.WidgetTool.TextResponseConfig.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.WidgetTool.TextResponseConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + type_ = 0; + staticText_ = ""; + textResponseInstruction_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.WidgetToolProto + .internal_static_google_cloud_ces_v1_WidgetTool_TextResponseConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.WidgetTool.TextResponseConfig getDefaultInstanceForType() { + return com.google.cloud.ces.v1.WidgetTool.TextResponseConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.WidgetTool.TextResponseConfig build() { + com.google.cloud.ces.v1.WidgetTool.TextResponseConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.WidgetTool.TextResponseConfig buildPartial() { + com.google.cloud.ces.v1.WidgetTool.TextResponseConfig result = + new com.google.cloud.ces.v1.WidgetTool.TextResponseConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.WidgetTool.TextResponseConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.staticText_ = staticText_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.textResponseInstruction_ = textResponseInstruction_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.WidgetTool.TextResponseConfig) { + return mergeFrom((com.google.cloud.ces.v1.WidgetTool.TextResponseConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.WidgetTool.TextResponseConfig other) { + if (other == com.google.cloud.ces.v1.WidgetTool.TextResponseConfig.getDefaultInstance()) + return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (!other.getStaticText().isEmpty()) { + staticText_ = other.staticText_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getTextResponseInstruction().isEmpty()) { + textResponseInstruction_ = other.textResponseInstruction_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + type_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + staticText_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + textResponseInstruction_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int type_ = 0; + + /** + * + * + *
                +       * Optional. The strategy for providing the text response.
                +       * 
                + * + * + * .google.cloud.ces.v1.WidgetTool.TextResponseConfig.Type type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
                +       * Optional. The strategy for providing the text response.
                +       * 
                + * + * + * .google.cloud.ces.v1.WidgetTool.TextResponseConfig.Type type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                +       * Optional. The strategy for providing the text response.
                +       * 
                + * + * + * .google.cloud.ces.v1.WidgetTool.TextResponseConfig.Type type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.ces.v1.WidgetTool.TextResponseConfig.Type getType() { + com.google.cloud.ces.v1.WidgetTool.TextResponseConfig.Type result = + com.google.cloud.ces.v1.WidgetTool.TextResponseConfig.Type.forNumber(type_); + return result == null + ? com.google.cloud.ces.v1.WidgetTool.TextResponseConfig.Type.UNRECOGNIZED + : result; + } + + /** + * + * + *
                +       * Optional. The strategy for providing the text response.
                +       * 
                + * + * + * .google.cloud.ces.v1.WidgetTool.TextResponseConfig.Type type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(com.google.cloud.ces.v1.WidgetTool.TextResponseConfig.Type value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + type_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                +       * Optional. The strategy for providing the text response.
                +       * 
                + * + * + * .google.cloud.ces.v1.WidgetTool.TextResponseConfig.Type type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000001); + type_ = 0; + onChanged(); + return this; + } + + private java.lang.Object staticText_ = ""; + + /** + * + * + *
                +       * Optional. The static text response to return when type is STATIC.
                +       * 
                + * + * string static_text = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The staticText. + */ + public java.lang.String getStaticText() { + java.lang.Object ref = staticText_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + staticText_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                +       * Optional. The static text response to return when type is STATIC.
                +       * 
                + * + * string static_text = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for staticText. + */ + public com.google.protobuf.ByteString getStaticTextBytes() { + java.lang.Object ref = staticText_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + staticText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                +       * Optional. The static text response to return when type is STATIC.
                +       * 
                + * + * string static_text = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The staticText to set. + * @return This builder for chaining. + */ + public Builder setStaticText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + staticText_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                +       * Optional. The static text response to return when type is STATIC.
                +       * 
                + * + * string static_text = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearStaticText() { + staticText_ = getDefaultInstance().getStaticText(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                +       * Optional. The static text response to return when type is STATIC.
                +       * 
                + * + * string static_text = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for staticText to set. + * @return This builder for chaining. + */ + public Builder setStaticTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + staticText_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object textResponseInstruction_ = ""; + + /** + * + * + *
                +       * Optional. Instruction for the LLM on how to generate the text response.
                +       * Used as the description for the text response parameter if type is
                +       * LLM_GENERATED.
                +       * 
                + * + * string text_response_instruction = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The textResponseInstruction. + */ + public java.lang.String getTextResponseInstruction() { + java.lang.Object ref = textResponseInstruction_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + textResponseInstruction_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                +       * Optional. Instruction for the LLM on how to generate the text response.
                +       * Used as the description for the text response parameter if type is
                +       * LLM_GENERATED.
                +       * 
                + * + * string text_response_instruction = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for textResponseInstruction. + */ + public com.google.protobuf.ByteString getTextResponseInstructionBytes() { + java.lang.Object ref = textResponseInstruction_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + textResponseInstruction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                +       * Optional. Instruction for the LLM on how to generate the text response.
                +       * Used as the description for the text response parameter if type is
                +       * LLM_GENERATED.
                +       * 
                + * + * string text_response_instruction = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The textResponseInstruction to set. + * @return This builder for chaining. + */ + public Builder setTextResponseInstruction(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + textResponseInstruction_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                +       * Optional. Instruction for the LLM on how to generate the text response.
                +       * Used as the description for the text response parameter if type is
                +       * LLM_GENERATED.
                +       * 
                + * + * string text_response_instruction = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearTextResponseInstruction() { + textResponseInstruction_ = getDefaultInstance().getTextResponseInstruction(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                +       * Optional. Instruction for the LLM on how to generate the text response.
                +       * Used as the description for the text response parameter if type is
                +       * LLM_GENERATED.
                +       * 
                + * + * string text_response_instruction = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes for textResponseInstruction to set. + * @return This builder for chaining. + */ + public Builder setTextResponseInstructionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + textResponseInstruction_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.WidgetTool.TextResponseConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.WidgetTool.TextResponseConfig) + private static final com.google.cloud.ces.v1.WidgetTool.TextResponseConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.WidgetTool.TextResponseConfig(); + } + + public static com.google.cloud.ces.v1.WidgetTool.TextResponseConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextResponseConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.v1.WidgetTool.TextResponseConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + public interface DataMappingOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.WidgetTool.DataMapping) @@ -669,7 +1918,7 @@ java.lang.String getFieldMappingsOrDefault( * string python_script = 3 [deprecated = true]; * * @deprecated google.cloud.ces.v1.WidgetTool.DataMapping.python_script is deprecated. See - * google/cloud/ces/v1/widget_tool.proto;l=66 + * google/cloud/ces/v1/widget_tool.proto;l=97 * @return The pythonScript. */ @java.lang.Deprecated @@ -685,7 +1934,7 @@ java.lang.String getFieldMappingsOrDefault( * string python_script = 3 [deprecated = true]; * * @deprecated google.cloud.ces.v1.WidgetTool.DataMapping.python_script is deprecated. See - * google/cloud/ces/v1/widget_tool.proto;l=66 + * google/cloud/ces/v1/widget_tool.proto;l=97 * @return The bytes for pythonScript. */ @java.lang.Deprecated @@ -1220,7 +2469,7 @@ public com.google.cloud.ces.v1.WidgetTool.DataMapping.Mode getMode() { * string python_script = 3 [deprecated = true]; * * @deprecated google.cloud.ces.v1.WidgetTool.DataMapping.python_script is deprecated. See - * google/cloud/ces/v1/widget_tool.proto;l=66 + * google/cloud/ces/v1/widget_tool.proto;l=97 * @return The pythonScript. */ @java.lang.Override @@ -1247,7 +2496,7 @@ public java.lang.String getPythonScript() { * string python_script = 3 [deprecated = true]; * * @deprecated google.cloud.ces.v1.WidgetTool.DataMapping.python_script is deprecated. See - * google/cloud/ces/v1/widget_tool.proto;l=66 + * google/cloud/ces/v1/widget_tool.proto;l=97 * @return The bytes for pythonScript. */ @java.lang.Override @@ -2385,7 +3634,7 @@ public Builder clearMode() { * string python_script = 3 [deprecated = true]; * * @deprecated google.cloud.ces.v1.WidgetTool.DataMapping.python_script is deprecated. See - * google/cloud/ces/v1/widget_tool.proto;l=66 + * google/cloud/ces/v1/widget_tool.proto;l=97 * @return The pythonScript. */ @java.lang.Deprecated @@ -2411,7 +3660,7 @@ public java.lang.String getPythonScript() { * string python_script = 3 [deprecated = true]; * * @deprecated google.cloud.ces.v1.WidgetTool.DataMapping.python_script is deprecated. See - * google/cloud/ces/v1/widget_tool.proto;l=66 + * google/cloud/ces/v1/widget_tool.proto;l=97 * @return The bytes for pythonScript. */ @java.lang.Deprecated @@ -2437,7 +3686,7 @@ public com.google.protobuf.ByteString getPythonScriptBytes() { * string python_script = 3 [deprecated = true]; * * @deprecated google.cloud.ces.v1.WidgetTool.DataMapping.python_script is deprecated. See - * google/cloud/ces/v1/widget_tool.proto;l=66 + * google/cloud/ces/v1/widget_tool.proto;l=97 * @param value The pythonScript to set. * @return This builder for chaining. */ @@ -2462,7 +3711,7 @@ public Builder setPythonScript(java.lang.String value) { * string python_script = 3 [deprecated = true]; * * @deprecated google.cloud.ces.v1.WidgetTool.DataMapping.python_script is deprecated. See - * google/cloud/ces/v1/widget_tool.proto;l=66 + * google/cloud/ces/v1/widget_tool.proto;l=97 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2483,7 +3732,7 @@ public Builder clearPythonScript() { * string python_script = 3 [deprecated = true]; * * @deprecated google.cloud.ces.v1.WidgetTool.DataMapping.python_script is deprecated. See - * google/cloud/ces/v1/widget_tool.proto;l=66 + * google/cloud/ces/v1/widget_tool.proto;l=97 * @param value The bytes for pythonScript to set. * @return This builder for chaining. */ @@ -2916,6 +4165,66 @@ public com.google.cloud.ces.v1.WidgetTool.DataMappingOrBuilder getDataMappingOrB : dataMapping_; } + public static final int TEXT_RESPONSE_CONFIG_FIELD_NUMBER = 7; + private com.google.cloud.ces.v1.WidgetTool.TextResponseConfig textResponseConfig_; + + /** + * + * + *
                +   * Optional. Configuration for always-included text responses.
                +   * 
                + * + * + * .google.cloud.ces.v1.WidgetTool.TextResponseConfig text_response_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the textResponseConfig field is set. + */ + @java.lang.Override + public boolean hasTextResponseConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                +   * Optional. Configuration for always-included text responses.
                +   * 
                + * + * + * .google.cloud.ces.v1.WidgetTool.TextResponseConfig text_response_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The textResponseConfig. + */ + @java.lang.Override + public com.google.cloud.ces.v1.WidgetTool.TextResponseConfig getTextResponseConfig() { + return textResponseConfig_ == null + ? com.google.cloud.ces.v1.WidgetTool.TextResponseConfig.getDefaultInstance() + : textResponseConfig_; + } + + /** + * + * + *
                +   * Optional. Configuration for always-included text responses.
                +   * 
                + * + * + * .google.cloud.ces.v1.WidgetTool.TextResponseConfig text_response_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.WidgetTool.TextResponseConfigOrBuilder + getTextResponseConfigOrBuilder() { + return textResponseConfig_ == null + ? com.google.cloud.ces.v1.WidgetTool.TextResponseConfig.getDefaultInstance() + : textResponseConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2949,6 +4258,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(6, getDataMapping()); } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(7, getTextResponseConfig()); + } getUnknownFields().writeTo(output); } @@ -2979,6 +4291,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getDataMapping()); } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getTextResponseConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -3005,6 +4320,10 @@ public boolean equals(final java.lang.Object obj) { if (hasDataMapping()) { if (!getDataMapping().equals(other.getDataMapping())) return false; } + if (hasTextResponseConfig() != other.hasTextResponseConfig()) return false; + if (hasTextResponseConfig()) { + if (!getTextResponseConfig().equals(other.getTextResponseConfig())) return false; + } if (!getInputCase().equals(other.getInputCase())) return false; switch (inputCase_) { case 4: @@ -3038,6 +4357,10 @@ public int hashCode() { hash = (37 * hash) + DATA_MAPPING_FIELD_NUMBER; hash = (53 * hash) + getDataMapping().hashCode(); } + if (hasTextResponseConfig()) { + hash = (37 * hash) + TEXT_RESPONSE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getTextResponseConfig().hashCode(); + } switch (inputCase_) { case 4: hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; @@ -3191,6 +4514,7 @@ private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { internalGetUiConfigFieldBuilder(); internalGetDataMappingFieldBuilder(); + internalGetTextResponseConfigFieldBuilder(); } } @@ -3214,6 +4538,11 @@ public Builder clear() { dataMappingBuilder_.dispose(); dataMappingBuilder_ = null; } + textResponseConfig_ = null; + if (textResponseConfigBuilder_ != null) { + textResponseConfigBuilder_.dispose(); + textResponseConfigBuilder_ = null; + } inputCase_ = 0; input_ = null; return this; @@ -3271,6 +4600,13 @@ private void buildPartial0(com.google.cloud.ces.v1.WidgetTool result) { dataMappingBuilder_ == null ? dataMapping_ : dataMappingBuilder_.build(); to_bitField0_ |= 0x00000002; } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.textResponseConfig_ = + textResponseConfigBuilder_ == null + ? textResponseConfig_ + : textResponseConfigBuilder_.build(); + to_bitField0_ |= 0x00000004; + } result.bitField0_ |= to_bitField0_; } @@ -3313,6 +4649,9 @@ public Builder mergeFrom(com.google.cloud.ces.v1.WidgetTool other) { if (other.hasDataMapping()) { mergeDataMapping(other.getDataMapping()); } + if (other.hasTextResponseConfig()) { + mergeTextResponseConfig(other.getTextResponseConfig()); + } switch (other.getInputCase()) { case PARAMETERS: { @@ -3389,6 +4728,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000020; break; } // case 50 + case 58: + { + input.readMessage( + internalGetTextResponseConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4389,6 +5735,224 @@ public com.google.cloud.ces.v1.WidgetTool.DataMappingOrBuilder getDataMappingOrB return dataMappingBuilder_; } + private com.google.cloud.ces.v1.WidgetTool.TextResponseConfig textResponseConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.WidgetTool.TextResponseConfig, + com.google.cloud.ces.v1.WidgetTool.TextResponseConfig.Builder, + com.google.cloud.ces.v1.WidgetTool.TextResponseConfigOrBuilder> + textResponseConfigBuilder_; + + /** + * + * + *
                +     * Optional. Configuration for always-included text responses.
                +     * 
                + * + * + * .google.cloud.ces.v1.WidgetTool.TextResponseConfig text_response_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the textResponseConfig field is set. + */ + public boolean hasTextResponseConfig() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
                +     * Optional. Configuration for always-included text responses.
                +     * 
                + * + * + * .google.cloud.ces.v1.WidgetTool.TextResponseConfig text_response_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The textResponseConfig. + */ + public com.google.cloud.ces.v1.WidgetTool.TextResponseConfig getTextResponseConfig() { + if (textResponseConfigBuilder_ == null) { + return textResponseConfig_ == null + ? com.google.cloud.ces.v1.WidgetTool.TextResponseConfig.getDefaultInstance() + : textResponseConfig_; + } else { + return textResponseConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
                +     * Optional. Configuration for always-included text responses.
                +     * 
                + * + * + * .google.cloud.ces.v1.WidgetTool.TextResponseConfig text_response_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTextResponseConfig( + com.google.cloud.ces.v1.WidgetTool.TextResponseConfig value) { + if (textResponseConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + textResponseConfig_ = value; + } else { + textResponseConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. Configuration for always-included text responses.
                +     * 
                + * + * + * .google.cloud.ces.v1.WidgetTool.TextResponseConfig text_response_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTextResponseConfig( + com.google.cloud.ces.v1.WidgetTool.TextResponseConfig.Builder builderForValue) { + if (textResponseConfigBuilder_ == null) { + textResponseConfig_ = builderForValue.build(); + } else { + textResponseConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. Configuration for always-included text responses.
                +     * 
                + * + * + * .google.cloud.ces.v1.WidgetTool.TextResponseConfig text_response_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeTextResponseConfig( + com.google.cloud.ces.v1.WidgetTool.TextResponseConfig value) { + if (textResponseConfigBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && textResponseConfig_ != null + && textResponseConfig_ + != com.google.cloud.ces.v1.WidgetTool.TextResponseConfig.getDefaultInstance()) { + getTextResponseConfigBuilder().mergeFrom(value); + } else { + textResponseConfig_ = value; + } + } else { + textResponseConfigBuilder_.mergeFrom(value); + } + if (textResponseConfig_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
                +     * Optional. Configuration for always-included text responses.
                +     * 
                + * + * + * .google.cloud.ces.v1.WidgetTool.TextResponseConfig text_response_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearTextResponseConfig() { + bitField0_ = (bitField0_ & ~0x00000040); + textResponseConfig_ = null; + if (textResponseConfigBuilder_ != null) { + textResponseConfigBuilder_.dispose(); + textResponseConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. Configuration for always-included text responses.
                +     * 
                + * + * + * .google.cloud.ces.v1.WidgetTool.TextResponseConfig text_response_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.WidgetTool.TextResponseConfig.Builder + getTextResponseConfigBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetTextResponseConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
                +     * Optional. Configuration for always-included text responses.
                +     * 
                + * + * + * .google.cloud.ces.v1.WidgetTool.TextResponseConfig text_response_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.WidgetTool.TextResponseConfigOrBuilder + getTextResponseConfigOrBuilder() { + if (textResponseConfigBuilder_ != null) { + return textResponseConfigBuilder_.getMessageOrBuilder(); + } else { + return textResponseConfig_ == null + ? com.google.cloud.ces.v1.WidgetTool.TextResponseConfig.getDefaultInstance() + : textResponseConfig_; + } + } + + /** + * + * + *
                +     * Optional. Configuration for always-included text responses.
                +     * 
                + * + * + * .google.cloud.ces.v1.WidgetTool.TextResponseConfig text_response_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.WidgetTool.TextResponseConfig, + com.google.cloud.ces.v1.WidgetTool.TextResponseConfig.Builder, + com.google.cloud.ces.v1.WidgetTool.TextResponseConfigOrBuilder> + internalGetTextResponseConfigFieldBuilder() { + if (textResponseConfigBuilder_ == null) { + textResponseConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.WidgetTool.TextResponseConfig, + com.google.cloud.ces.v1.WidgetTool.TextResponseConfig.Builder, + com.google.cloud.ces.v1.WidgetTool.TextResponseConfigOrBuilder>( + getTextResponseConfig(), getParentForChildren(), isClean()); + textResponseConfig_ = null; + } + return textResponseConfigBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.WidgetTool) } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/WidgetToolOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/WidgetToolOrBuilder.java index de79d65c1798..c4945eefad11 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/WidgetToolOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/WidgetToolOrBuilder.java @@ -233,5 +233,48 @@ public interface WidgetToolOrBuilder */ com.google.cloud.ces.v1.WidgetTool.DataMappingOrBuilder getDataMappingOrBuilder(); + /** + * + * + *
                +   * Optional. Configuration for always-included text responses.
                +   * 
                + * + * + * .google.cloud.ces.v1.WidgetTool.TextResponseConfig text_response_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the textResponseConfig field is set. + */ + boolean hasTextResponseConfig(); + + /** + * + * + *
                +   * Optional. Configuration for always-included text responses.
                +   * 
                + * + * + * .google.cloud.ces.v1.WidgetTool.TextResponseConfig text_response_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The textResponseConfig. + */ + com.google.cloud.ces.v1.WidgetTool.TextResponseConfig getTextResponseConfig(); + + /** + * + * + *
                +   * Optional. Configuration for always-included text responses.
                +   * 
                + * + * + * .google.cloud.ces.v1.WidgetTool.TextResponseConfig text_response_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.WidgetTool.TextResponseConfigOrBuilder getTextResponseConfigOrBuilder(); + com.google.cloud.ces.v1.WidgetTool.InputCase getInputCase(); } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/WidgetToolProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/WidgetToolProto.java index 7b6816531d2a..8feb6192c049 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/WidgetToolProto.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/WidgetToolProto.java @@ -44,6 +44,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_ces_v1_WidgetTool_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_ces_v1_WidgetTool_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_WidgetTool_TextResponseConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_WidgetTool_TextResponseConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_ces_v1_WidgetTool_DataMapping_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -65,7 +69,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "%google/cloud/ces/v1/widget_tool.proto\022" + "\023google.cloud.ces.v1\032\037google/api/field_b" + "ehavior.proto\032)google/cloud/ces/v1/python_function.proto\032 google/cloud/ces/v1/sc" - + "hema.proto\032\034google/protobuf/struct.proto\"\221\010\n\n" + + "hema.proto\032\034google/protobuf/struct.proto\"\324\n\n\n" + "WidgetTool\0226\n\n" + "parameters\030\004" + " \001(\0132\033.google.cloud.ces.v1.SchemaB\003\340A\001H\000\022\021\n" @@ -75,11 +79,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0162*.google.cloud.ces.v1.WidgetTool.WidgetTypeB\003\340A\001\022/\n" + "\tui_config\030\005 \001(\0132\027.google.protobuf.StructB\003\340A\001\022F\n" + "\014data_mapping\030\006" - + " \001(\0132+.google.cloud.ces.v1.WidgetTool.DataMappingB\003\340A\001\032\246\003\n" + + " \001(\0132+.google.cloud.ces.v1.WidgetTool.DataMappingB\003\340A\001\022U\n" + + "\024text_response_config\030\007" + + " \001(\01322.google.cloud.ces.v1.WidgetTool.TextResponseConfigB\003\340A\001\032\351\001\n" + + "\022TextResponseConfig\022J\n" + + "\004type\030\001 \001(\01627.google" + + ".cloud.ces.v1.WidgetTool.TextResponseConfig.TypeB\003\340A\001\022\030\n" + + "\013static_text\030\002 \001(\tB\003\340A\001\022&\n" + + "\031text_response_instruction\030\003 \001(\tB\003\340A\001\"E\n" + + "\004Type\022\024\n" + + "\020TYPE_UNSPECIFIED\020\000\022\010\n" + + "\004NONE\020\001\022\021\n\r" + + "LLM_GENERATED\020\002\022\n\n" + + "\006STATIC\020\003\032\246\003\n" + "\013DataMapping\022\035\n" + "\020source_tool_name\030\001 \001(\tB\003\340A\001\022[\n" - + "\016field_mappings\030\002 \003(\0132>.google.cloud.ces.v1" - + ".WidgetTool.DataMapping.FieldMappingsEntryB\003\340A\001\022A\n" + + "\016field_mappings\030\002 \003(\0132>.google.cloud.ces" + + ".v1.WidgetTool.DataMapping.FieldMappingsEntryB\003\340A\001\022A\n" + "\017python_function\030\005" + " \001(\0132#.google.cloud.ces.v1.PythonFunctionB\003\340A\001\022C\n" + "\004mode\030\004" @@ -108,8 +124,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025APPOINTMENT_SCHEDULER\020\013\022\020\n" + "\014CONTACT_FORM\020\014B\007\n" + "\005inputBW\n" - + "\027com.google.cloud.ces.v1B\017WidgetToolProtoP\001Z)cloud.google.com/go/ces/apiv" - + "1/cespb;cespbb\006proto3" + + "\027com.google.cloud.ces.v1B\017WidgetToolProtoP\001Z)cloud.google.com/go/ces/a" + + "piv1/cespb;cespbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -125,10 +141,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1_WidgetTool_descriptor, new java.lang.String[] { - "Parameters", "Name", "Description", "WidgetType", "UiConfig", "DataMapping", "Input", + "Parameters", + "Name", + "Description", + "WidgetType", + "UiConfig", + "DataMapping", + "TextResponseConfig", + "Input", }); - internal_static_google_cloud_ces_v1_WidgetTool_DataMapping_descriptor = + internal_static_google_cloud_ces_v1_WidgetTool_TextResponseConfig_descriptor = internal_static_google_cloud_ces_v1_WidgetTool_descriptor.getNestedType(0); + internal_static_google_cloud_ces_v1_WidgetTool_TextResponseConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_WidgetTool_TextResponseConfig_descriptor, + new java.lang.String[] { + "Type", "StaticText", "TextResponseInstruction", + }); + internal_static_google_cloud_ces_v1_WidgetTool_DataMapping_descriptor = + internal_static_google_cloud_ces_v1_WidgetTool_descriptor.getNestedType(1); internal_static_google_cloud_ces_v1_WidgetTool_DataMapping_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1_WidgetTool_DataMapping_descriptor, diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/agent.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/agent.proto index ffe04a307fc6..c225a766d7d5 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/agent.proto +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/agent.proto @@ -92,6 +92,11 @@ message Agent { // app-level barge-in settings. bool respect_response_interruption_settings = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The name of the variable that contains the language code to be + // used for the Dialogflow session. If unspecified, the default language + // code of the Dialogflow agent will be used. + string language_code_variable = 7 [(google.api.field_behavior) = OPTIONAL]; } // A toolset with a selection of its tools. @@ -233,4 +238,9 @@ message Agent { // If multiple rules match, the first one in the list will be used. repeated TransferRule transfer_rules = 30 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Misconfigurations or errors in the agent that may affect agent + // quality. + repeated string validation_errors = 32 + [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/agent_card.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/agent_card.proto new file mode 100644 index 000000000000..ce239258d13d --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/agent_card.proto @@ -0,0 +1,109 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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.ces.v1; + +import "google/api/field_behavior.proto"; + +option go_package = "cloud.google.com/go/ces/apiv1/cespb;cespb"; +option java_multiple_files = true; +option java_outer_classname = "AgentCardProto"; +option java_package = "com.google.cloud.ces.v1"; + +// AgentCard conveys key information about a remote agent. +// It is a trimmed version of the AgentCard defined in the A2A protocol +// https://a2a-protocol.org/dev/specification/#441-agentcard +message AgentCard { + // Required. A human-readable name for the agent. + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. A description of the agent's domain of action/solution space. + string description = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. Ordered list of supported interfaces. The first entry is + // preferred. + repeated AgentInterface supported_interfaces = 3 + [(google.api.field_behavior) = REQUIRED]; + + // Required. The version of the agent. + string version = 5 [(google.api.field_behavior) = REQUIRED]; + + // Required. Skills represent a unit of ability an agent can perform. This may + // somewhat abstract but represents a more focused set of actions that the + // agent is highly likely to succeed at. + repeated AgentSkill skills = 6 [(google.api.field_behavior) = REQUIRED]; +} + +// Declares a combination of a target URL, transport and protocol version for +// interacting with the agent. This allows agents to expose the same +// functionality over multiple protocol binding mechanisms. +message AgentInterface { + // Required. The URL where this interface is available. Must be a valid + // absolute HTTPS URL in production. Example: + // "https://api.example.com/a2a/v1", "https://grpc.example.com/a2a" + string url = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The protocol binding supported at this URL. This is an open form + // string, to be easily extended for other protocol bindings. The core ones + // officially supported are `JSONRPC`, `GRPC` and `HTTP+JSON`. + string protocol_binding = 2 [(google.api.field_behavior) = REQUIRED]; + + // Tenant ID to be used in the request when calling the agent. + string tenant = 3; + + // Required. The version of the A2A protocol this interface exposes. + // Use the latest supported minor version per major version. + // Examples: "0.3", "1.0" + string protocol_version = 4 [(google.api.field_behavior) = REQUIRED]; +} + +// Represents a distinct capability or function that an agent can perform. +message AgentSkill { + // Required. A unique identifier for the agent's skill. + string id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. A human-readable name for the skill. + string name = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. A detailed description of the skill. + string description = 3 [(google.api.field_behavior) = REQUIRED]; + + // Required. A set of keywords describing the skill's capabilities. + repeated string tags = 4 [(google.api.field_behavior) = REQUIRED]; + + // Example prompts or scenarios that this skill can handle. + repeated string examples = 5; + + // The set of supported input media types for this skill, overriding the + // agent's defaults. + repeated string input_modes = 6; + + // The set of supported output media types for this skill, overriding the + // agent's defaults. + repeated string output_modes = 7; +} + +// Represents a tool that allows the agent to call another remote agent. +message RemoteAgentTool { + // Required. The name of the tool. + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The description of the tool. + string description = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The agent card of the remote agent that this tool invokes. + AgentCard agent_card = 3 [(google.api.field_behavior) = REQUIRED]; +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/app.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/app.proto index 6f76428e5179..05c5ab19580b 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/app.proto +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/app.proto @@ -193,9 +193,16 @@ message App { ClientCertificateSettings client_certificate_settings = 25 [(google.api.field_behavior) = OPTIONAL]; + // Optional. VPC-SC settings for the app. + VpcScSettings vpc_sc_settings = 26 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Indicates whether the app is locked for changes. If the app is // locked, modifications to the app resources will be rejected. bool locked = 29 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Misconfigurations or warnings in the app. + repeated string validation_errors = 39 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // TimeZone settings of the app. @@ -333,12 +340,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.v1.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]; @@ -359,11 +366,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 @@ -380,15 +405,31 @@ message LoggingSettings { // Optional. Configuration for how sensitive data should be redacted. RedactionConfig redaction_config = 1 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Configuration for how audio interactions should be recorded. + // Optional. Configuration for how audio interactions should be recorded. The + // audio is subject to redaction as configured in + // [RedactionConfig][google.cloud.ces.v1.LoggingSettings.redaction_config]. AudioRecordingConfig audio_recording_config = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Settings to describe the BigQuery export behaviors for the app. - // The conversation data will be exported to BigQuery tables if it is enabled. + // Optional. Configures an additional recording of unredacted audio. This can + // be used to maintain a raw audio copy when audio redaction is + // [enabled][google.cloud.ces.v1.RedactionConfig.enable_redaction], typically + // for auditing or monitoring purposes. + AudioRecordingConfig unredacted_audio_recording_config = 8 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Configures the BigQuery export behaviors for the app. The + // conversation data is subject to redaction as configured in + // [RedactionConfig][google.cloud.ces.v1.LoggingSettings.redaction_config]. 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]; @@ -412,6 +453,31 @@ message LoggingSettings { // Settings to describe how errors should be handled in the app. message ErrorHandlingSettings { + // Configuration for handling fallback responses. + message FallbackResponseConfig { + // Optional. The fallback messages in case of system errors (e.g. LLM + // errors), mapped by [supported language + // code](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/reference/language). + map custom_fallback_messages = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The maximum number of fallback attempts to make before the + // agent emitting [EndSession][google.cloud.ces.v1.EndSession] Signal. + int32 max_fallback_attempts = 2 [(google.api.field_behavior) = OPTIONAL]; + } + + // Configuration for ending the session in case of system errors (e.g. LLM + // errors). + message EndSessionConfig { + // Optional. Whether to escalate the session in + // [EndSession][google.cloud.ces.v1.EndSession]. If session is escalated, + // [metadata in EndSession][google.cloud.ces.v1.EndSession.metadata] will + // contain `session_escalated = true`. See + // https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/deploy/google-telephony-platform#transfer_a_call_to_a_human_agent + // for details. + optional bool escalate_session = 1 [(google.api.field_behavior) = OPTIONAL]; + } + // Defines the strategy for handling errors. enum ErrorHandlingStrategy { // Unspecified error handling strategy. @@ -432,6 +498,15 @@ message ErrorHandlingSettings { // Optional. The strategy to use for error handling. ErrorHandlingStrategy error_handling_strategy = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Configuration for handling fallback responses. + FallbackResponseConfig fallback_response_config = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Configuration for ending the session in case of system errors + // (e.g. LLM errors). + EndSessionConfig end_session_config = 3 + [(google.api.field_behavior) = OPTIONAL]; } // Threshold settings for metrics in an Evaluation. @@ -567,11 +642,26 @@ message ClientCertificateSettings { string passphrase = 3 [(google.api.field_behavior) = OPTIONAL]; } +// VPC-SC settings for the app. +message VpcScSettings { + // Optional. The allowed HTTP(s) origins that OpenAPI tools in the App are + // able to directly call when VPC Service Controls are enabled. These strings + // must match the origin exactly, including the port if specified. For + // example, "https://example.com" or "https://example.com:443". This list does + // not yet apply to Python tools that may make direct HTTP calls. + repeated string allowed_origins = 1 [(google.api.field_behavior) = OPTIONAL]; +} + // Settings to describe the conversation logging behaviors for the app. message ConversationLoggingSettings { // Optional. Whether to disable conversation logging for the sessions. bool disable_conversation_logging = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Controls the retention window for the conversation. + // If not set, the conversation will be retained for 365 days. + google.protobuf.Duration retention_window = 2 + [(google.api.field_behavior) = OPTIONAL]; } // Settings to describe the Cloud Logging behaviors for the app. diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/common.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/common.proto index c4c28e1d4083..3f11c6dc2996 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/common.proto +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/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. diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/conversation.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/conversation.proto index 6630ac30c73e..dfa4613a190e 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/conversation.proto +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/conversation.proto @@ -77,6 +77,10 @@ message Conversation { // The conversation is from the evaluation. EVAL = 3; + + // The conversation is from an agent tool. Agent tool runs the agent in a + // separate session, which is persisted for testing and debugging purposes. + AGENT_TOOL = 4; } // Type of the input message. @@ -84,22 +88,25 @@ message Conversation { // Unspecified input type. INPUT_TYPE_UNSPECIFIED = 0; - // The input message is text. + // Text input. INPUT_TYPE_TEXT = 1; - // The input message is audio. + // Event input. + INPUT_TYPE_EVENT = 7; + + // Audio input. INPUT_TYPE_AUDIO = 2; - // The input message is image. + // Image input. INPUT_TYPE_IMAGE = 3; - // The input message is blob file. + // Blob input. INPUT_TYPE_BLOB = 4; - // The input message is client function tool response. + // Client function tool response input. INPUT_TYPE_TOOL_RESPONSE = 5; - // The input message are variables. + // Variables input. INPUT_TYPE_VARIABLES = 6; } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/deployment.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/deployment.proto index 61d238e175d6..7673c0daa60e 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/deployment.proto +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/deployment.proto @@ -26,6 +26,61 @@ option java_multiple_files = true; option java_outer_classname = "ChannelProfileProto"; option java_package = "com.google.cloud.ces.v1"; +// Experiment for the deployment. +message ExperimentConfig { + // Version release for the experiment. + message VersionRelease { + // Traffic allocation for the version release. + message TrafficAllocation { + // Optional. Id of the traffic allocation. + // Free format string, up to 128 characters. + string id = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Traffic percentage of the traffic allocation. + // Must be between 0 and 100. + int32 traffic_percentage = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. App version of the traffic allocation. + // Format: + // `projects/{project}/locations/{location}/apps/{app}/versions/{version}` + string app_version = 3 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "ces.googleapis.com/AppVersion" + } + ]; + } + + // Optional. State of the version release. + State state = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Traffic allocations for the version release. + repeated TrafficAllocation traffic_allocations = 2 + [(google.api.field_behavior) = OPTIONAL]; + } + + // State of the experiment. + enum State { + // Unspecified state. + STATE_UNSPECIFIED = 0; + + // Deprecated: This state is no longer used. + PENDING = 1; + + // Running state. Experiment is running and valid. + RUNNING = 2; + + // Deprecated: This state is no longer used. + DONE = 3; + + // Deprecated: This state is no longer used. + EXPIRED = 4; + } + + // Optional. Version release for the experiment. + VersionRelease version_release = 1 [(google.api.field_behavior) = OPTIONAL]; +} + // A deployment represents an immutable, queryable version of the app. // It is used to deploy an app version with a specific channel profile. message Deployment { @@ -69,4 +124,52 @@ message Deployment { // read-modify-write operation. If the etag is empty, the update will // overwrite any concurrent changes. string etag = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // 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-v1/src/main/proto/google/cloud/ces/v1/mcp_tool.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/mcp_tool.proto index 03560357395d..c48cd0897a21 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/mcp_tool.proto +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/mcp_tool.proto @@ -30,9 +30,30 @@ option java_package = "com.google.cloud.ces.v1"; // See https://modelcontextprotocol.io/specification/2025-06-18/server/tools for // more details. message McpTool { + // Represents the dynamic availability state of the tool. + enum State { + // Default state. + STATE_UNSPECIFIED = 0; + + // The tool is available and actively offered by the server. + ACTIVE = 1; + + // The tool is configured or pinned, but currently not offered by the + // server. + INACTIVE = 2; + + // The tool exists on the server, but does not match the version on the + // server. + STALE = 3; + } + // Required. The name of the MCP tool. string name = 1 [(google.api.field_behavior) = REQUIRED]; + // Optional. The name override of the MCP tool. + // This is populated if the name was overridden by a Toolset override. + string name_override = 13 [(google.api.field_behavior) = OPTIONAL]; + // Optional. The description of the MCP tool. string description = 2 [(google.api.field_behavior) = OPTIONAL]; @@ -74,4 +95,8 @@ message McpTool { // for more details. map custom_headers = 9 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The dynamic availability state of the tool on the external + // server. + State state = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/mcp_toolset.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/mcp_toolset.proto index 77cec758d712..1aa1a3a12713 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/mcp_toolset.proto +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/mcp_toolset.proto @@ -19,6 +19,7 @@ package google.cloud.ces.v1; import "google/api/field_behavior.proto"; import "google/cloud/ces/v1/auth.proto"; import "google/cloud/ces/v1/common.proto"; +import "google/cloud/ces/v1/schema.proto"; option go_package = "cloud.google.com/go/ces/apiv1/cespb;cespb"; option java_multiple_files = true; @@ -59,4 +60,46 @@ message McpToolset { // for more details. map custom_headers = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Overrides for individual tools within this toolset. + // This allows overriding specific details like descriptions, names, + // or pinning the tools' states so they aren't fully dynamic. + repeated McpToolOverride tool_overrides = 6 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Overrides associated with a given tool in a Toolset. +// This enables "pinning" or "overriding" of tool definitions from the external +// dynamic server. +message McpToolOverride { + // Required. The original name of the tool as it is emitted by the MCP server. + string tool = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. If present, this tool uses this name in the Agent instead of the + // original name. This is primarily used as an alias if the MCP server offers + // poorly named tools. + string name_override = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If present, this tool uses this description instead of the + // original description from the server. + string description_override = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. If present, this tool is "Pinned" and uses the snapshot values + // as fallbacks if the server becomes temporarily unavailable or if no + // Override is present. + McpToolDefinition snapshot = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Container for a tool's core definition elements that are snapshot. +// Schemas in the snapshot are used as-is and cannot be overridden. +message McpToolDefinition { + // Output only. The description of the MCP tool. This can be overridden + // by `description_override` in `McpToolOverride`. + string description = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The schema of the input arguments of the MCP tool. + Schema input_schema = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The schema of the output arguments of the MCP tool. + Schema output_schema = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/mocks.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/mocks.proto new file mode 100644 index 000000000000..351489de3d8c --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/mocks.proto @@ -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 +// +// 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.ces.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/ces/v1/toolset_tool.proto"; +import "google/protobuf/struct.proto"; + +option go_package = "cloud.google.com/go/ces/apiv1/cespb;cespb"; +option java_multiple_files = true; +option java_outer_classname = "MocksProto"; +option java_package = "com.google.cloud.ces.v1"; + +// A mocked tool call. +// +// Expresses the target tool + a pattern to match against that tool's +// args / inputs. If the pattern matches, then the mock response will be +// returned. +message MockedToolCall { + // The identifier of the tool to mock. + oneof tool_identifier { + // Optional. The name of the tool to mock. + // Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` + string tool_id = 4 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { type: "ces.googleapis.com/Tool" } + ]; + + // Optional. The toolset to mock. + ToolsetTool toolset = 5 [(google.api.field_behavior) = OPTIONAL]; + } + + // Optional. Deprecated. Use tool_identifier instead. + string tool = 1 [ + deprecated = true, + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { type: "ces.googleapis.com/Tool" } + ]; + + // Required. A pattern to match against the args / inputs of all dispatched + // tool calls. If the tool call inputs match this pattern, then mock output + // will be returned. + google.protobuf.Struct expected_args_pattern = 2 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. The mock response / output to return if the tool call args / + // inputs match the pattern. + google.protobuf.Struct mock_response = 3 + [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/python_function.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/python_function.proto index a0bf77d823a4..f2b0d4552fb0 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/python_function.proto +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/python_function.proto @@ -17,6 +17,7 @@ syntax = "proto3"; package google.cloud.ces.v1; import "google/api/field_behavior.proto"; +import "google/cloud/ces/v1/common.proto"; option go_package = "cloud.google.com/go/ces/apiv1/cespb;cespb"; option java_multiple_files = true; @@ -36,4 +37,8 @@ message PythonFunction { // Output only. The description of the Python function, parsed from the python // code's docstring. string description = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Service Directory configuration for the tool. + ServiceDirectoryConfig service_directory_config = 4 + [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/session_service.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/session_service.proto index 8ce30efba3be..66bbd5264133 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/session_service.proto +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/session_service.proto @@ -23,7 +23,9 @@ import "google/api/resource.proto"; import "google/api/routing.proto"; import "google/cloud/ces/v1/common.proto"; import "google/cloud/ces/v1/example.proto"; +import "google/cloud/ces/v1/mocks.proto"; import "google/cloud/ces/v1/search_suggestions.proto"; +import "google/protobuf/any.proto"; import "google/protobuf/struct.proto"; option go_package = "cloud.google.com/go/ces/apiv1/cespb;cespb"; @@ -155,6 +157,31 @@ enum AudioEncoding { ALAW = 3; } +// Mock tool calls configuration for the session. +message MockConfig { + // What to do when a tool call doesn't match any mocked tool calls. + enum UnmatchedToolCallBehavior { + // Default value. This value is unused. + UNMATCHED_TOOL_CALL_BEHAVIOR_UNSPECIFIED = 0; + + // Throw an error for any tool calls that don't match a mock expected input + // pattern. + FAIL = 1; + + // For unmatched tool calls, pass the tool call through to real tool. + PASS_THROUGH = 2; + } + + // Optional. All tool calls to mock for the duration of the session. + repeated MockedToolCall mocked_tool_calls = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. Beavhior for tool calls that don't match any args patterns in + // mocked_tool_calls. + UnmatchedToolCallBehavior unmatched_tool_call_behavior = 2 + [(google.api.field_behavior) = REQUIRED]; +} + // InputAudioConfig configures how the CES agent should interpret the incoming // audio data. message InputAudioConfig { @@ -295,6 +322,9 @@ message Citations { // Text used for citation. string text = 3; + + // Whether this citation requires attribution to be shown to the end users. + bool requires_attribution = 4; } // List of cited pieces of information. @@ -403,6 +433,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-v1/src/main/proto/google/cloud/ces/v1/tool.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/tool.proto index 5bb4821b91fb..7477e160912c 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/tool.proto +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/tool.proto @@ -18,6 +18,7 @@ package google.cloud.ces.v1; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/cloud/ces/v1/agent_card.proto"; import "google/cloud/ces/v1/agent_tool.proto"; import "google/cloud/ces/v1/client_function.proto"; import "google/cloud/ces/v1/common.proto"; @@ -31,6 +32,7 @@ import "google/cloud/ces/v1/open_api_tool.proto"; import "google/cloud/ces/v1/python_function.proto"; import "google/cloud/ces/v1/system_tool.proto"; import "google/cloud/ces/v1/widget_tool.proto"; +import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; option go_package = "cloud.google.com/go/ces/apiv1/cespb;cespb"; @@ -86,6 +88,10 @@ message Tool { // Optional. The widget tool. WidgetTool widget_tool = 24 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The remote agent tool. + RemoteAgentTool remote_agent_tool = 25 + [(google.api.field_behavior) = OPTIONAL]; } // Identifier. The resource name of the tool. Format: @@ -107,6 +113,12 @@ message Tool { // Optional. The execution type of the tool. ExecutionType execution_type = 12 [(google.api.field_behavior) = OPTIONAL]; + // Optional. The timeout for the tool execution. If not set, the default + // timeout is 30 seconds for `SYNCHRONOUS` tools and 60 seconds for + // `ASYNCHRONOUS` tools. + google.protobuf.Duration timeout = 22 + [(google.api.field_behavior) = OPTIONAL]; + // Output only. Timestamp when the tool was created. google.protobuf.Timestamp create_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/tool_service.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/tool_service.proto index b14807418ec4..9f023c5985f0 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/tool_service.proto +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/tool_service.proto @@ -21,6 +21,8 @@ import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/ces/v1/schema.proto"; +import "google/cloud/ces/v1/search_suggestions.proto"; +import "google/cloud/ces/v1/session_service.proto"; import "google/cloud/ces/v1/tool.proto"; import "google/cloud/ces/v1/toolset_tool.proto"; import "google/protobuf/struct.proto"; @@ -105,6 +107,11 @@ message ExecuteToolRequest { // Optional. The input parameters and values for the tool in JSON object // format. google.protobuf.Struct args = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Mock configuration for the tool execution. + // If this field is set, tools that call other tools will be + // mocked based on the provided patterns and responses. + MockConfig mock_config = 7 [(google.api.field_behavior) = OPTIONAL]; } // Response message for @@ -129,6 +136,13 @@ message ExecuteToolResponse { // The variable values at the end of the tool execution. google.protobuf.Struct variables = 4; + + // Citations that provide the source information for the tool's execution. + Citations citations = 5; + + // The suggestions returned from Google Search as a result of invoking the + // Google Search Tool during the tool execution. + GoogleSearchSuggestions google_search_suggestions = 6; } // Request message for @@ -194,6 +208,11 @@ message RetrieveToolsRequest { // Optional. The identifiers of the tools to retrieve from the toolset. // If empty, all tools in the toolset will be returned. repeated string tool_ids = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If true, the returned tools will contain raw descriptions and + // schemas directly from the server, bypassing any stored persistence + // configurations (overrides/snapshots). + bool bypass_persistence_config = 4 [(google.api.field_behavior) = OPTIONAL]; } // Response message for diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/toolset.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/toolset.proto index 81ee47207cd3..809450503503 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/toolset.proto +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/toolset.proto @@ -23,6 +23,7 @@ import "google/cloud/ces/v1/connector_toolset.proto"; import "google/cloud/ces/v1/fakes.proto"; import "google/cloud/ces/v1/mcp_toolset.proto"; import "google/cloud/ces/v1/open_api_toolset.proto"; +import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; option go_package = "cloud.google.com/go/ces/apiv1/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/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/widget_tool.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/widget_tool.proto index eaa4cfb384d3..739c708365fb 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/widget_tool.proto +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/widget_tool.proto @@ -31,6 +31,37 @@ option java_package = "com.google.cloud.ces.v1"; // responsible for processing the widget and generating the next user query to // continue the interaction with the agent. message WidgetTool { + // Configuration for the text response returned with the widget. + message TextResponseConfig { + // Defines how the text response is produced. + enum Type { + // Unspecified type. + TYPE_UNSPECIFIED = 0; + + // The LLM dynamically decides whether to generate a text response + // alongside the widget based on the conversation context. + NONE = 1; + + // The LLM is explicitly required to generate a text response. + LLM_GENERATED = 2; + + // A pre-defined static text response is always used. + STATIC = 3; + } + + // Optional. The strategy for providing the text response. + Type type = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The static text response to return when type is STATIC. + string static_text = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Instruction for the LLM on how to generate the text response. + // Used as the description for the text response parameter if type is + // LLM_GENERATED. + string text_response_instruction = 3 + [(google.api.field_behavior) = OPTIONAL]; + } + // Configuration for mapping data from a source tool to the widget's input // parameters. message DataMapping { @@ -132,4 +163,8 @@ message WidgetTool { // Optional. The mapping that defines how data from a source tool is mapped to // the widget's input parameters. DataMapping data_mapping = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Configuration for always-included text responses. + TextResponseConfig text_response_config = 7 + [(google.api.field_behavior) = OPTIONAL]; } 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/v1/toolservice/executetool/AsyncExecuteTool.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/toolservice/executetool/AsyncExecuteTool.java index 7875be09e71f..5febf9c6c3b2 100644 --- a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/toolservice/executetool/AsyncExecuteTool.java +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/toolservice/executetool/AsyncExecuteTool.java @@ -21,6 +21,7 @@ import com.google.cloud.ces.v1.AppName; import com.google.cloud.ces.v1.ExecuteToolRequest; import com.google.cloud.ces.v1.ExecuteToolResponse; +import com.google.cloud.ces.v1.MockConfig; import com.google.cloud.ces.v1.ToolServiceClient; import com.google.protobuf.Struct; @@ -41,6 +42,7 @@ public static void asyncExecuteTool() throws Exception { ExecuteToolRequest.newBuilder() .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) .setArgs(Struct.newBuilder().build()) + .setMockConfig(MockConfig.newBuilder().build()) .build(); ApiFuture future = toolServiceClient.executeToolCallable().futureCall(request); diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/toolservice/executetool/SyncExecuteTool.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/toolservice/executetool/SyncExecuteTool.java index 203f559cf18a..d8e713c9d99c 100644 --- a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/toolservice/executetool/SyncExecuteTool.java +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/toolservice/executetool/SyncExecuteTool.java @@ -20,6 +20,7 @@ import com.google.cloud.ces.v1.AppName; import com.google.cloud.ces.v1.ExecuteToolRequest; import com.google.cloud.ces.v1.ExecuteToolResponse; +import com.google.cloud.ces.v1.MockConfig; import com.google.cloud.ces.v1.ToolServiceClient; import com.google.protobuf.Struct; @@ -40,6 +41,7 @@ public static void syncExecuteTool() throws Exception { ExecuteToolRequest.newBuilder() .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) .setArgs(Struct.newBuilder().build()) + .setMockConfig(MockConfig.newBuilder().build()) .build(); ExecuteToolResponse response = toolServiceClient.executeTool(request); } diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/toolservice/retrievetools/AsyncRetrieveTools.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/toolservice/retrievetools/AsyncRetrieveTools.java index cce14bc4fcff..eb1038cfcbe6 100644 --- a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/toolservice/retrievetools/AsyncRetrieveTools.java +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/toolservice/retrievetools/AsyncRetrieveTools.java @@ -42,6 +42,7 @@ public static void asyncRetrieveTools() throws Exception { .setToolset( ToolsetName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOLSET]").toString()) .addAllToolIds(new ArrayList()) + .setBypassPersistenceConfig(true) .build(); ApiFuture future = toolServiceClient.retrieveToolsCallable().futureCall(request); diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/toolservice/retrievetools/SyncRetrieveTools.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/toolservice/retrievetools/SyncRetrieveTools.java index cc8c7400cde3..56aad0069d48 100644 --- a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/toolservice/retrievetools/SyncRetrieveTools.java +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/toolservice/retrievetools/SyncRetrieveTools.java @@ -41,6 +41,7 @@ public static void syncRetrieveTools() throws Exception { .setToolset( ToolsetName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOLSET]").toString()) .addAllToolIds(new ArrayList()) + .setBypassPersistenceConfig(true) .build(); RetrieveToolsResponse response = toolServiceClient.retrieveTools(request); } 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-chat/google-cloud-chat/src/main/java/com/google/chat/v1/ChatServiceClient.java b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/ChatServiceClient.java index ef6119a741af..3dd7ce46f3a4 100644 --- a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/ChatServiceClient.java +++ b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/ChatServiceClient.java @@ -775,6 +775,103 @@ * * * + *

                GetAvailability + *

                Returns availability information for a human user in Google Chat. For example, this can be used to check if a user is online or away, or to retrieve their custom status message. + *

                This method only retrieves the authenticated user's availability. + *

                Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with one of the following [authorization scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + *

                - `https://www.googleapis.com/auth/chat.users.availability.readonly` - `https://www.googleapis.com/auth/chat.users.availability` + * + *

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

                + *
                  + *
                • getAvailability(GetAvailabilityRequest request) + *

                + *

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

                + *
                  + *
                • getAvailability(AvailabilityName name) + *

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

                + *
                  + *
                • getAvailabilityCallable() + *

                + * + * + * + *

                MarkAsActive + *

                Marks user as `ACTIVE` in Google Chat. + *

                Sets the user's availability state to `ACTIVE`. The `ACTIVE` state lasts until the specified expiration, at which point the user's state becomes `AWAY`. Note that if the user is actively using Chat, the `ACTIVE` state duration may extend beyond the provided expiration. + *

                This method only updates the authenticated user's availability. + *

                Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with [authorization scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + *

                - `https://www.googleapis.com/auth/chat.users.availability` + * + *

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

                + *
                  + *
                • markAsActive(MarkAsActiveRequest request) + *

                + *

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

                + *
                  + *
                • markAsActiveCallable() + *

                + * + * + * + *

                MarkAsAway + *

                Marks user as `AWAY` in Google Chat. + *

                Sets the user's state to away and is not affected by the user's activity. + *

                This method only updates the authenticated user's availability. + *

                Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with [authorization scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + *

                - `https://www.googleapis.com/auth/chat.users.availability` + * + *

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

                + *
                  + *
                • markAsAway(MarkAsAwayRequest request) + *

                + *

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

                + *
                  + *
                • markAsAwayCallable() + *

                + * + * + * + *

                MarkAsDoNotDisturb + *

                Marks user as `DO_NOT_DISTURB` in Google Chat. + *

                Sets a user's availability state to `DO_NOT_DISTURB` until a specified expiration time. When in `DO_NOT_DISTURB`, users typically won't receive notifications. + *

                This method only updates the authenticated user's availability. + *

                Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with [authorization scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + *

                - `https://www.googleapis.com/auth/chat.users.availability` + * + *

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

                + *
                  + *
                • markAsDoNotDisturb(MarkAsDoNotDisturbRequest request) + *

                + *

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

                + *
                  + *
                • markAsDoNotDisturbCallable() + *

                + * + * + * + *

                UpdateAvailability + *

                Updates availability information for a human user. Only the `custom_status` field can be updated through this method. + *

                This method only updates the authenticated user's availability. + *

                Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with one of the following [authorization scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + *

                - `https://www.googleapis.com/auth/chat.users.availability` + * + *

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

                + *
                  + *
                • updateAvailability(UpdateAvailabilityRequest request) + *

                + *

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

                + *
                  + *
                • updateAvailability(Availability availability, 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.

                + *
                  + *
                • updateAvailabilityCallable() + *

                + * + * + * *

                GetSpaceEvent *

                Returns an event from a Google Chat space. The [event payload](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.oneof_payload) contains the most recent version of the resource that changed. For example, if you request an event about a new message but the message was later updated, the server returns the updated `Message` resource in the event payload. *

                Note: The `permissionSettings` field is not returned in the Space object of the Space event data for this request. @@ -7052,6 +7149,524 @@ public final ThreadReadState getThreadReadState(GetThreadReadStateRequest reques return stub.getThreadReadStateCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns availability information for a human user in Google Chat. For example, this can be used + * to check if a user is online or away, or to retrieve their custom status message. + * + *

                This method only retrieves the authenticated user's availability. + * + *

                Requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * with one of the following [authorization + * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + * + *

                - `https://www.googleapis.com/auth/chat.users.availability.readonly` - + * `https://www.googleapis.com/auth/chat.users.availability` + * + *

                Sample code: + * + *

                {@code
                +   * // This snippet has been automatically generated and should be regarded as a code template only.
                +   * // It will require modifications to work:
                +   * // - It may require correct/in-range values for request initialization.
                +   * // - It may require specifying regional endpoints when creating the service client as shown in
                +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                +   * try (ChatServiceClient chatServiceClient = ChatServiceClient.create()) {
                +   *   AvailabilityName name = AvailabilityName.of("[USER]");
                +   *   Availability response = chatServiceClient.getAvailability(name);
                +   * }
                +   * }
                + * + * @param name Required. The resource name of the availability to retrieve. + *

                Format: users/{user}/availability + *

                `{user}` is the id for the Person in the People API or Admin SDK directory API. For + * example, `users/123456789`. + *

                The user's email address or `me` can also be used as an alias to refer to the caller. + * For example, `users/user{@literal @}example.com` or `users/me`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Availability getAvailability(AvailabilityName name) { + GetAvailabilityRequest request = + GetAvailabilityRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getAvailability(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns availability information for a human user in Google Chat. For example, this can be used + * to check if a user is online or away, or to retrieve their custom status message. + * + *

                This method only retrieves the authenticated user's availability. + * + *

                Requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * with one of the following [authorization + * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + * + *

                - `https://www.googleapis.com/auth/chat.users.availability.readonly` - + * `https://www.googleapis.com/auth/chat.users.availability` + * + *

                Sample code: + * + *

                {@code
                +   * // This snippet has been automatically generated and should be regarded as a code template only.
                +   * // It will require modifications to work:
                +   * // - It may require correct/in-range values for request initialization.
                +   * // - It may require specifying regional endpoints when creating the service client as shown in
                +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                +   * try (ChatServiceClient chatServiceClient = ChatServiceClient.create()) {
                +   *   String name = AvailabilityName.of("[USER]").toString();
                +   *   Availability response = chatServiceClient.getAvailability(name);
                +   * }
                +   * }
                + * + * @param name Required. The resource name of the availability to retrieve. + *

                Format: users/{user}/availability + *

                `{user}` is the id for the Person in the People API or Admin SDK directory API. For + * example, `users/123456789`. + *

                The user's email address or `me` can also be used as an alias to refer to the caller. + * For example, `users/user{@literal @}example.com` or `users/me`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Availability getAvailability(String name) { + GetAvailabilityRequest request = GetAvailabilityRequest.newBuilder().setName(name).build(); + return getAvailability(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns availability information for a human user in Google Chat. For example, this can be used + * to check if a user is online or away, or to retrieve their custom status message. + * + *

                This method only retrieves the authenticated user's availability. + * + *

                Requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * with one of the following [authorization + * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + * + *

                - `https://www.googleapis.com/auth/chat.users.availability.readonly` - + * `https://www.googleapis.com/auth/chat.users.availability` + * + *

                Sample code: + * + *

                {@code
                +   * // This snippet has been automatically generated and should be regarded as a code template only.
                +   * // It will require modifications to work:
                +   * // - It may require correct/in-range values for request initialization.
                +   * // - It may require specifying regional endpoints when creating the service client as shown in
                +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                +   * try (ChatServiceClient chatServiceClient = ChatServiceClient.create()) {
                +   *   GetAvailabilityRequest request =
                +   *       GetAvailabilityRequest.newBuilder()
                +   *           .setName(AvailabilityName.of("[USER]").toString())
                +   *           .build();
                +   *   Availability response = chatServiceClient.getAvailability(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 Availability getAvailability(GetAvailabilityRequest request) { + return getAvailabilityCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns availability information for a human user in Google Chat. For example, this can be used + * to check if a user is online or away, or to retrieve their custom status message. + * + *

                This method only retrieves the authenticated user's availability. + * + *

                Requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * with one of the following [authorization + * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + * + *

                - `https://www.googleapis.com/auth/chat.users.availability.readonly` - + * `https://www.googleapis.com/auth/chat.users.availability` + * + *

                Sample code: + * + *

                {@code
                +   * // This snippet has been automatically generated and should be regarded as a code template only.
                +   * // It will require modifications to work:
                +   * // - It may require correct/in-range values for request initialization.
                +   * // - It may require specifying regional endpoints when creating the service client as shown in
                +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                +   * try (ChatServiceClient chatServiceClient = ChatServiceClient.create()) {
                +   *   GetAvailabilityRequest request =
                +   *       GetAvailabilityRequest.newBuilder()
                +   *           .setName(AvailabilityName.of("[USER]").toString())
                +   *           .build();
                +   *   ApiFuture future =
                +   *       chatServiceClient.getAvailabilityCallable().futureCall(request);
                +   *   // Do something.
                +   *   Availability response = future.get();
                +   * }
                +   * }
                + */ + public final UnaryCallable getAvailabilityCallable() { + return stub.getAvailabilityCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Marks user as `ACTIVE` in Google Chat. + * + *

                Sets the user's availability state to `ACTIVE`. The `ACTIVE` state lasts until the specified + * expiration, at which point the user's state becomes `AWAY`. Note that if the user is actively + * using Chat, the `ACTIVE` state duration may extend beyond the provided expiration. + * + *

                This method only updates the authenticated user's availability. + * + *

                Requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * with [authorization + * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + * + *

                - `https://www.googleapis.com/auth/chat.users.availability` + * + *

                Sample code: + * + *

                {@code
                +   * // This snippet has been automatically generated and should be regarded as a code template only.
                +   * // It will require modifications to work:
                +   * // - It may require correct/in-range values for request initialization.
                +   * // - It may require specifying regional endpoints when creating the service client as shown in
                +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                +   * try (ChatServiceClient chatServiceClient = ChatServiceClient.create()) {
                +   *   MarkAsActiveRequest request =
                +   *       MarkAsActiveRequest.newBuilder()
                +   *           .setName(AvailabilityName.of("[USER]").toString())
                +   *           .build();
                +   *   Availability response = chatServiceClient.markAsActive(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 Availability markAsActive(MarkAsActiveRequest request) { + return markAsActiveCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Marks user as `ACTIVE` in Google Chat. + * + *

                Sets the user's availability state to `ACTIVE`. The `ACTIVE` state lasts until the specified + * expiration, at which point the user's state becomes `AWAY`. Note that if the user is actively + * using Chat, the `ACTIVE` state duration may extend beyond the provided expiration. + * + *

                This method only updates the authenticated user's availability. + * + *

                Requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * with [authorization + * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + * + *

                - `https://www.googleapis.com/auth/chat.users.availability` + * + *

                Sample code: + * + *

                {@code
                +   * // This snippet has been automatically generated and should be regarded as a code template only.
                +   * // It will require modifications to work:
                +   * // - It may require correct/in-range values for request initialization.
                +   * // - It may require specifying regional endpoints when creating the service client as shown in
                +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                +   * try (ChatServiceClient chatServiceClient = ChatServiceClient.create()) {
                +   *   MarkAsActiveRequest request =
                +   *       MarkAsActiveRequest.newBuilder()
                +   *           .setName(AvailabilityName.of("[USER]").toString())
                +   *           .build();
                +   *   ApiFuture future = chatServiceClient.markAsActiveCallable().futureCall(request);
                +   *   // Do something.
                +   *   Availability response = future.get();
                +   * }
                +   * }
                + */ + public final UnaryCallable markAsActiveCallable() { + return stub.markAsActiveCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Marks user as `AWAY` in Google Chat. + * + *

                Sets the user's state to away and is not affected by the user's activity. + * + *

                This method only updates the authenticated user's availability. + * + *

                Requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * with [authorization + * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + * + *

                - `https://www.googleapis.com/auth/chat.users.availability` + * + *

                Sample code: + * + *

                {@code
                +   * // This snippet has been automatically generated and should be regarded as a code template only.
                +   * // It will require modifications to work:
                +   * // - It may require correct/in-range values for request initialization.
                +   * // - It may require specifying regional endpoints when creating the service client as shown in
                +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                +   * try (ChatServiceClient chatServiceClient = ChatServiceClient.create()) {
                +   *   MarkAsAwayRequest request =
                +   *       MarkAsAwayRequest.newBuilder().setName(AvailabilityName.of("[USER]").toString()).build();
                +   *   Availability response = chatServiceClient.markAsAway(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 Availability markAsAway(MarkAsAwayRequest request) { + return markAsAwayCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Marks user as `AWAY` in Google Chat. + * + *

                Sets the user's state to away and is not affected by the user's activity. + * + *

                This method only updates the authenticated user's availability. + * + *

                Requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * with [authorization + * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + * + *

                - `https://www.googleapis.com/auth/chat.users.availability` + * + *

                Sample code: + * + *

                {@code
                +   * // This snippet has been automatically generated and should be regarded as a code template only.
                +   * // It will require modifications to work:
                +   * // - It may require correct/in-range values for request initialization.
                +   * // - It may require specifying regional endpoints when creating the service client as shown in
                +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                +   * try (ChatServiceClient chatServiceClient = ChatServiceClient.create()) {
                +   *   MarkAsAwayRequest request =
                +   *       MarkAsAwayRequest.newBuilder().setName(AvailabilityName.of("[USER]").toString()).build();
                +   *   ApiFuture future = chatServiceClient.markAsAwayCallable().futureCall(request);
                +   *   // Do something.
                +   *   Availability response = future.get();
                +   * }
                +   * }
                + */ + public final UnaryCallable markAsAwayCallable() { + return stub.markAsAwayCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Marks user as `DO_NOT_DISTURB` in Google Chat. + * + *

                Sets a user's availability state to `DO_NOT_DISTURB` until a specified expiration time. When + * in `DO_NOT_DISTURB`, users typically won't receive notifications. + * + *

                This method only updates the authenticated user's availability. + * + *

                Requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * with [authorization + * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + * + *

                - `https://www.googleapis.com/auth/chat.users.availability` + * + *

                Sample code: + * + *

                {@code
                +   * // This snippet has been automatically generated and should be regarded as a code template only.
                +   * // It will require modifications to work:
                +   * // - It may require correct/in-range values for request initialization.
                +   * // - It may require specifying regional endpoints when creating the service client as shown in
                +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                +   * try (ChatServiceClient chatServiceClient = ChatServiceClient.create()) {
                +   *   MarkAsDoNotDisturbRequest request =
                +   *       MarkAsDoNotDisturbRequest.newBuilder()
                +   *           .setName(AvailabilityName.of("[USER]").toString())
                +   *           .build();
                +   *   Availability response = chatServiceClient.markAsDoNotDisturb(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 Availability markAsDoNotDisturb(MarkAsDoNotDisturbRequest request) { + return markAsDoNotDisturbCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Marks user as `DO_NOT_DISTURB` in Google Chat. + * + *

                Sets a user's availability state to `DO_NOT_DISTURB` until a specified expiration time. When + * in `DO_NOT_DISTURB`, users typically won't receive notifications. + * + *

                This method only updates the authenticated user's availability. + * + *

                Requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * with [authorization + * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + * + *

                - `https://www.googleapis.com/auth/chat.users.availability` + * + *

                Sample code: + * + *

                {@code
                +   * // This snippet has been automatically generated and should be regarded as a code template only.
                +   * // It will require modifications to work:
                +   * // - It may require correct/in-range values for request initialization.
                +   * // - It may require specifying regional endpoints when creating the service client as shown in
                +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                +   * try (ChatServiceClient chatServiceClient = ChatServiceClient.create()) {
                +   *   MarkAsDoNotDisturbRequest request =
                +   *       MarkAsDoNotDisturbRequest.newBuilder()
                +   *           .setName(AvailabilityName.of("[USER]").toString())
                +   *           .build();
                +   *   ApiFuture future =
                +   *       chatServiceClient.markAsDoNotDisturbCallable().futureCall(request);
                +   *   // Do something.
                +   *   Availability response = future.get();
                +   * }
                +   * }
                + */ + public final UnaryCallable markAsDoNotDisturbCallable() { + return stub.markAsDoNotDisturbCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates availability information for a human user. Only the `custom_status` field can be + * updated through this method. + * + *

                This method only updates the authenticated user's availability. + * + *

                Requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * with one of the following [authorization + * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + * + *

                - `https://www.googleapis.com/auth/chat.users.availability` + * + *

                Sample code: + * + *

                {@code
                +   * // This snippet has been automatically generated and should be regarded as a code template only.
                +   * // It will require modifications to work:
                +   * // - It may require correct/in-range values for request initialization.
                +   * // - It may require specifying regional endpoints when creating the service client as shown in
                +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                +   * try (ChatServiceClient chatServiceClient = ChatServiceClient.create()) {
                +   *   Availability availability = Availability.newBuilder().build();
                +   *   FieldMask updateMask = FieldMask.newBuilder().build();
                +   *   Availability response = chatServiceClient.updateAvailability(availability, updateMask);
                +   * }
                +   * }
                + * + * @param availability Required. The availability to update. + * @param updateMask Required. The list of fields to update. The only field that can be updated is + * `custom_status`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Availability updateAvailability(Availability availability, FieldMask updateMask) { + UpdateAvailabilityRequest request = + UpdateAvailabilityRequest.newBuilder() + .setAvailability(availability) + .setUpdateMask(updateMask) + .build(); + return updateAvailability(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates availability information for a human user. Only the `custom_status` field can be + * updated through this method. + * + *

                This method only updates the authenticated user's availability. + * + *

                Requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * with one of the following [authorization + * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + * + *

                - `https://www.googleapis.com/auth/chat.users.availability` + * + *

                Sample code: + * + *

                {@code
                +   * // This snippet has been automatically generated and should be regarded as a code template only.
                +   * // It will require modifications to work:
                +   * // - It may require correct/in-range values for request initialization.
                +   * // - It may require specifying regional endpoints when creating the service client as shown in
                +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                +   * try (ChatServiceClient chatServiceClient = ChatServiceClient.create()) {
                +   *   UpdateAvailabilityRequest request =
                +   *       UpdateAvailabilityRequest.newBuilder()
                +   *           .setAvailability(Availability.newBuilder().build())
                +   *           .setUpdateMask(FieldMask.newBuilder().build())
                +   *           .build();
                +   *   Availability response = chatServiceClient.updateAvailability(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 Availability updateAvailability(UpdateAvailabilityRequest request) { + return updateAvailabilityCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates availability information for a human user. Only the `custom_status` field can be + * updated through this method. + * + *

                This method only updates the authenticated user's availability. + * + *

                Requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * with one of the following [authorization + * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + * + *

                - `https://www.googleapis.com/auth/chat.users.availability` + * + *

                Sample code: + * + *

                {@code
                +   * // This snippet has been automatically generated and should be regarded as a code template only.
                +   * // It will require modifications to work:
                +   * // - It may require correct/in-range values for request initialization.
                +   * // - It may require specifying regional endpoints when creating the service client as shown in
                +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                +   * try (ChatServiceClient chatServiceClient = ChatServiceClient.create()) {
                +   *   UpdateAvailabilityRequest request =
                +   *       UpdateAvailabilityRequest.newBuilder()
                +   *           .setAvailability(Availability.newBuilder().build())
                +   *           .setUpdateMask(FieldMask.newBuilder().build())
                +   *           .build();
                +   *   ApiFuture future =
                +   *       chatServiceClient.updateAvailabilityCallable().futureCall(request);
                +   *   // Do something.
                +   *   Availability response = future.get();
                +   * }
                +   * }
                + */ + public final UnaryCallable updateAvailabilityCallable() { + return stub.updateAvailabilityCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Returns an event from a Google Chat space. The [event diff --git a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/ChatServiceSettings.java b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/ChatServiceSettings.java index 414c7437df2f..ba3597b8c70e 100644 --- a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/ChatServiceSettings.java +++ b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/ChatServiceSettings.java @@ -271,6 +271,31 @@ public UnaryCallSettings getSpaceReadS return ((ChatServiceStubSettings) getStubSettings()).getThreadReadStateSettings(); } + /** Returns the object with the settings used for calls to getAvailability. */ + public UnaryCallSettings getAvailabilitySettings() { + return ((ChatServiceStubSettings) getStubSettings()).getAvailabilitySettings(); + } + + /** Returns the object with the settings used for calls to markAsActive. */ + public UnaryCallSettings markAsActiveSettings() { + return ((ChatServiceStubSettings) getStubSettings()).markAsActiveSettings(); + } + + /** Returns the object with the settings used for calls to markAsAway. */ + public UnaryCallSettings markAsAwaySettings() { + return ((ChatServiceStubSettings) getStubSettings()).markAsAwaySettings(); + } + + /** Returns the object with the settings used for calls to markAsDoNotDisturb. */ + public UnaryCallSettings markAsDoNotDisturbSettings() { + return ((ChatServiceStubSettings) getStubSettings()).markAsDoNotDisturbSettings(); + } + + /** Returns the object with the settings used for calls to updateAvailability. */ + public UnaryCallSettings updateAvailabilitySettings() { + return ((ChatServiceStubSettings) getStubSettings()).updateAvailabilitySettings(); + } + /** Returns the object with the settings used for calls to getSpaceEvent. */ public UnaryCallSettings getSpaceEventSettings() { return ((ChatServiceStubSettings) getStubSettings()).getSpaceEventSettings(); @@ -628,6 +653,34 @@ public UnaryCallSettings.Builder deleteCustomEm return getStubSettingsBuilder().getThreadReadStateSettings(); } + /** Returns the builder for the settings used for calls to getAvailability. */ + public UnaryCallSettings.Builder + getAvailabilitySettings() { + return getStubSettingsBuilder().getAvailabilitySettings(); + } + + /** Returns the builder for the settings used for calls to markAsActive. */ + public UnaryCallSettings.Builder markAsActiveSettings() { + return getStubSettingsBuilder().markAsActiveSettings(); + } + + /** Returns the builder for the settings used for calls to markAsAway. */ + public UnaryCallSettings.Builder markAsAwaySettings() { + return getStubSettingsBuilder().markAsAwaySettings(); + } + + /** Returns the builder for the settings used for calls to markAsDoNotDisturb. */ + public UnaryCallSettings.Builder + markAsDoNotDisturbSettings() { + return getStubSettingsBuilder().markAsDoNotDisturbSettings(); + } + + /** Returns the builder for the settings used for calls to updateAvailability. */ + public UnaryCallSettings.Builder + updateAvailabilitySettings() { + return getStubSettingsBuilder().updateAvailabilitySettings(); + } + /** Returns the builder for the settings used for calls to getSpaceEvent. */ public UnaryCallSettings.Builder getSpaceEventSettings() { return getStubSettingsBuilder().getSpaceEventSettings(); diff --git a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/gapic_metadata.json b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/gapic_metadata.json index 3c17aa5e5b7f..152165274f4a 100644 --- a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/gapic_metadata.json +++ b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/gapic_metadata.json @@ -58,6 +58,9 @@ "GetAttachment": { "methods": ["getAttachment", "getAttachment", "getAttachment", "getAttachmentCallable"] }, + "GetAvailability": { + "methods": ["getAvailability", "getAvailability", "getAvailability", "getAvailabilityCallable"] + }, "GetCustomEmoji": { "methods": ["getCustomEmoji", "getCustomEmoji", "getCustomEmoji", "getCustomEmojiCallable"] }, @@ -106,6 +109,15 @@ "ListSpaces": { "methods": ["listSpaces", "listSpaces", "listSpacesPagedCallable", "listSpacesCallable"] }, + "MarkAsActive": { + "methods": ["markAsActive", "markAsActiveCallable"] + }, + "MarkAsAway": { + "methods": ["markAsAway", "markAsAwayCallable"] + }, + "MarkAsDoNotDisturb": { + "methods": ["markAsDoNotDisturb", "markAsDoNotDisturbCallable"] + }, "MoveSectionItem": { "methods": ["moveSectionItem", "moveSectionItem", "moveSectionItem", "moveSectionItem", "moveSectionItem", "moveSectionItemCallable"] }, @@ -118,6 +130,9 @@ "SetUpSpace": { "methods": ["setUpSpace", "setUpSpaceCallable"] }, + "UpdateAvailability": { + "methods": ["updateAvailability", "updateAvailability", "updateAvailabilityCallable"] + }, "UpdateMembership": { "methods": ["updateMembership", "updateMembership", "updateMembershipCallable"] }, diff --git a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/ChatServiceStub.java b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/ChatServiceStub.java index 8f023fcf7c43..619096e604e8 100644 --- a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/ChatServiceStub.java +++ b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/ChatServiceStub.java @@ -30,6 +30,7 @@ import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.UnaryCallable; import com.google.chat.v1.Attachment; +import com.google.chat.v1.Availability; import com.google.chat.v1.CompleteImportSpaceRequest; import com.google.chat.v1.CompleteImportSpaceResponse; import com.google.chat.v1.CreateCustomEmojiRequest; @@ -49,6 +50,7 @@ import com.google.chat.v1.FindGroupChatsRequest; import com.google.chat.v1.FindGroupChatsResponse; import com.google.chat.v1.GetAttachmentRequest; +import com.google.chat.v1.GetAvailabilityRequest; import com.google.chat.v1.GetCustomEmojiRequest; import com.google.chat.v1.GetMembershipRequest; import com.google.chat.v1.GetMessageRequest; @@ -73,6 +75,9 @@ import com.google.chat.v1.ListSpaceEventsResponse; import com.google.chat.v1.ListSpacesRequest; import com.google.chat.v1.ListSpacesResponse; +import com.google.chat.v1.MarkAsActiveRequest; +import com.google.chat.v1.MarkAsAwayRequest; +import com.google.chat.v1.MarkAsDoNotDisturbRequest; import com.google.chat.v1.Membership; import com.google.chat.v1.Message; import com.google.chat.v1.MoveSectionItemRequest; @@ -89,6 +94,7 @@ import com.google.chat.v1.SpaceNotificationSetting; import com.google.chat.v1.SpaceReadState; import com.google.chat.v1.ThreadReadState; +import com.google.chat.v1.UpdateAvailabilityRequest; import com.google.chat.v1.UpdateMembershipRequest; import com.google.chat.v1.UpdateMessageRequest; import com.google.chat.v1.UpdateSectionRequest; @@ -272,6 +278,26 @@ public UnaryCallable getThreadReadSt throw new UnsupportedOperationException("Not implemented: getThreadReadStateCallable()"); } + public UnaryCallable getAvailabilityCallable() { + throw new UnsupportedOperationException("Not implemented: getAvailabilityCallable()"); + } + + public UnaryCallable markAsActiveCallable() { + throw new UnsupportedOperationException("Not implemented: markAsActiveCallable()"); + } + + public UnaryCallable markAsAwayCallable() { + throw new UnsupportedOperationException("Not implemented: markAsAwayCallable()"); + } + + public UnaryCallable markAsDoNotDisturbCallable() { + throw new UnsupportedOperationException("Not implemented: markAsDoNotDisturbCallable()"); + } + + public UnaryCallable updateAvailabilityCallable() { + throw new UnsupportedOperationException("Not implemented: updateAvailabilityCallable()"); + } + public UnaryCallable getSpaceEventCallable() { throw new UnsupportedOperationException("Not implemented: getSpaceEventCallable()"); } diff --git a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/ChatServiceStubSettings.java b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/ChatServiceStubSettings.java index b3ff9092fe8f..0a9f4a5c5819 100644 --- a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/ChatServiceStubSettings.java +++ b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/ChatServiceStubSettings.java @@ -55,6 +55,7 @@ import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import com.google.chat.v1.Attachment; +import com.google.chat.v1.Availability; import com.google.chat.v1.CompleteImportSpaceRequest; import com.google.chat.v1.CompleteImportSpaceResponse; import com.google.chat.v1.CreateCustomEmojiRequest; @@ -74,6 +75,7 @@ import com.google.chat.v1.FindGroupChatsRequest; import com.google.chat.v1.FindGroupChatsResponse; import com.google.chat.v1.GetAttachmentRequest; +import com.google.chat.v1.GetAvailabilityRequest; import com.google.chat.v1.GetCustomEmojiRequest; import com.google.chat.v1.GetMembershipRequest; import com.google.chat.v1.GetMessageRequest; @@ -98,6 +100,9 @@ import com.google.chat.v1.ListSpaceEventsResponse; import com.google.chat.v1.ListSpacesRequest; import com.google.chat.v1.ListSpacesResponse; +import com.google.chat.v1.MarkAsActiveRequest; +import com.google.chat.v1.MarkAsAwayRequest; +import com.google.chat.v1.MarkAsDoNotDisturbRequest; import com.google.chat.v1.Membership; import com.google.chat.v1.Message; import com.google.chat.v1.MoveSectionItemRequest; @@ -115,6 +120,7 @@ import com.google.chat.v1.SpaceNotificationSetting; import com.google.chat.v1.SpaceReadState; import com.google.chat.v1.ThreadReadState; +import com.google.chat.v1.UpdateAvailabilityRequest; import com.google.chat.v1.UpdateMembershipRequest; import com.google.chat.v1.UpdateMessageRequest; import com.google.chat.v1.UpdateSectionRequest; @@ -218,6 +224,8 @@ public class ChatServiceStubSettings extends StubSettings getThreadReadStateSettings; + private final UnaryCallSettings getAvailabilitySettings; + private final UnaryCallSettings markAsActiveSettings; + private final UnaryCallSettings markAsAwaySettings; + private final UnaryCallSettings + markAsDoNotDisturbSettings; + private final UnaryCallSettings + updateAvailabilitySettings; private final UnaryCallSettings getSpaceEventSettings; private final PagedCallSettings< ListSpaceEventsRequest, ListSpaceEventsResponse, ListSpaceEventsPagedResponse> @@ -1000,6 +1015,31 @@ public UnaryCallSettings getSpaceReadS return getThreadReadStateSettings; } + /** Returns the object with the settings used for calls to getAvailability. */ + public UnaryCallSettings getAvailabilitySettings() { + return getAvailabilitySettings; + } + + /** Returns the object with the settings used for calls to markAsActive. */ + public UnaryCallSettings markAsActiveSettings() { + return markAsActiveSettings; + } + + /** Returns the object with the settings used for calls to markAsAway. */ + public UnaryCallSettings markAsAwaySettings() { + return markAsAwaySettings; + } + + /** Returns the object with the settings used for calls to markAsDoNotDisturb. */ + public UnaryCallSettings markAsDoNotDisturbSettings() { + return markAsDoNotDisturbSettings; + } + + /** Returns the object with the settings used for calls to updateAvailability. */ + public UnaryCallSettings updateAvailabilitySettings() { + return updateAvailabilitySettings; + } + /** Returns the object with the settings used for calls to getSpaceEvent. */ public UnaryCallSettings getSpaceEventSettings() { return getSpaceEventSettings; @@ -1207,6 +1247,11 @@ protected ChatServiceStubSettings(Builder settingsBuilder) throws IOException { getSpaceReadStateSettings = settingsBuilder.getSpaceReadStateSettings().build(); updateSpaceReadStateSettings = settingsBuilder.updateSpaceReadStateSettings().build(); getThreadReadStateSettings = settingsBuilder.getThreadReadStateSettings().build(); + getAvailabilitySettings = settingsBuilder.getAvailabilitySettings().build(); + markAsActiveSettings = settingsBuilder.markAsActiveSettings().build(); + markAsAwaySettings = settingsBuilder.markAsAwaySettings().build(); + markAsDoNotDisturbSettings = settingsBuilder.markAsDoNotDisturbSettings().build(); + updateAvailabilitySettings = settingsBuilder.updateAvailabilitySettings().build(); getSpaceEventSettings = settingsBuilder.getSpaceEventSettings().build(); listSpaceEventsSettings = settingsBuilder.listSpaceEventsSettings().build(); getSpaceNotificationSettingSettings = @@ -1292,6 +1337,14 @@ public static class Builder extends StubSettings.Builder getThreadReadStateSettings; + private final UnaryCallSettings.Builder + getAvailabilitySettings; + private final UnaryCallSettings.Builder markAsActiveSettings; + private final UnaryCallSettings.Builder markAsAwaySettings; + private final UnaryCallSettings.Builder + markAsDoNotDisturbSettings; + private final UnaryCallSettings.Builder + updateAvailabilitySettings; private final UnaryCallSettings.Builder getSpaceEventSettings; private final PagedCallSettings.Builder< ListSpaceEventsRequest, ListSpaceEventsResponse, ListSpaceEventsPagedResponse> @@ -1385,6 +1438,11 @@ protected Builder(ClientContext clientContext) { getSpaceReadStateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateSpaceReadStateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); getThreadReadStateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getAvailabilitySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + markAsActiveSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + markAsAwaySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + markAsDoNotDisturbSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateAvailabilitySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); getSpaceEventSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listSpaceEventsSettings = PagedCallSettings.newBuilder(LIST_SPACE_EVENTS_PAGE_STR_FACT); getSpaceNotificationSettingSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -1431,6 +1489,11 @@ protected Builder(ClientContext clientContext) { getSpaceReadStateSettings, updateSpaceReadStateSettings, getThreadReadStateSettings, + getAvailabilitySettings, + markAsActiveSettings, + markAsAwaySettings, + markAsDoNotDisturbSettings, + updateAvailabilitySettings, getSpaceEventSettings, listSpaceEventsSettings, getSpaceNotificationSettingSettings, @@ -1480,6 +1543,11 @@ protected Builder(ChatServiceStubSettings settings) { getSpaceReadStateSettings = settings.getSpaceReadStateSettings.toBuilder(); updateSpaceReadStateSettings = settings.updateSpaceReadStateSettings.toBuilder(); getThreadReadStateSettings = settings.getThreadReadStateSettings.toBuilder(); + getAvailabilitySettings = settings.getAvailabilitySettings.toBuilder(); + markAsActiveSettings = settings.markAsActiveSettings.toBuilder(); + markAsAwaySettings = settings.markAsAwaySettings.toBuilder(); + markAsDoNotDisturbSettings = settings.markAsDoNotDisturbSettings.toBuilder(); + updateAvailabilitySettings = settings.updateAvailabilitySettings.toBuilder(); getSpaceEventSettings = settings.getSpaceEventSettings.toBuilder(); listSpaceEventsSettings = settings.listSpaceEventsSettings.toBuilder(); getSpaceNotificationSettingSettings = @@ -1528,6 +1596,11 @@ protected Builder(ChatServiceStubSettings settings) { getSpaceReadStateSettings, updateSpaceReadStateSettings, getThreadReadStateSettings, + getAvailabilitySettings, + markAsActiveSettings, + markAsAwaySettings, + markAsDoNotDisturbSettings, + updateAvailabilitySettings, getSpaceEventSettings, listSpaceEventsSettings, getSpaceNotificationSettingSettings, @@ -1726,6 +1799,31 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder + .getAvailabilitySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .markAsActiveSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .markAsAwaySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .markAsDoNotDisturbSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .updateAvailabilitySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder .getSpaceEventSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) @@ -1981,6 +2079,34 @@ public UnaryCallSettings.Builder deleteCustomEm return getThreadReadStateSettings; } + /** Returns the builder for the settings used for calls to getAvailability. */ + public UnaryCallSettings.Builder + getAvailabilitySettings() { + return getAvailabilitySettings; + } + + /** Returns the builder for the settings used for calls to markAsActive. */ + public UnaryCallSettings.Builder markAsActiveSettings() { + return markAsActiveSettings; + } + + /** Returns the builder for the settings used for calls to markAsAway. */ + public UnaryCallSettings.Builder markAsAwaySettings() { + return markAsAwaySettings; + } + + /** Returns the builder for the settings used for calls to markAsDoNotDisturb. */ + public UnaryCallSettings.Builder + markAsDoNotDisturbSettings() { + return markAsDoNotDisturbSettings; + } + + /** Returns the builder for the settings used for calls to updateAvailability. */ + public UnaryCallSettings.Builder + updateAvailabilitySettings() { + return updateAvailabilitySettings; + } + /** Returns the builder for the settings used for calls to getSpaceEvent. */ public UnaryCallSettings.Builder getSpaceEventSettings() { return getSpaceEventSettings; diff --git a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/GrpcChatServiceStub.java b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/GrpcChatServiceStub.java index 54f7371c6f4b..0b0c657f8ecb 100644 --- a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/GrpcChatServiceStub.java +++ b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/GrpcChatServiceStub.java @@ -35,6 +35,7 @@ import com.google.api.gax.rpc.RequestParamsBuilder; import com.google.api.gax.rpc.UnaryCallable; import com.google.chat.v1.Attachment; +import com.google.chat.v1.Availability; import com.google.chat.v1.CompleteImportSpaceRequest; import com.google.chat.v1.CompleteImportSpaceResponse; import com.google.chat.v1.CreateCustomEmojiRequest; @@ -54,6 +55,7 @@ import com.google.chat.v1.FindGroupChatsRequest; import com.google.chat.v1.FindGroupChatsResponse; import com.google.chat.v1.GetAttachmentRequest; +import com.google.chat.v1.GetAvailabilityRequest; import com.google.chat.v1.GetCustomEmojiRequest; import com.google.chat.v1.GetMembershipRequest; import com.google.chat.v1.GetMessageRequest; @@ -78,6 +80,9 @@ import com.google.chat.v1.ListSpaceEventsResponse; import com.google.chat.v1.ListSpacesRequest; import com.google.chat.v1.ListSpacesResponse; +import com.google.chat.v1.MarkAsActiveRequest; +import com.google.chat.v1.MarkAsAwayRequest; +import com.google.chat.v1.MarkAsDoNotDisturbRequest; import com.google.chat.v1.Membership; import com.google.chat.v1.Message; import com.google.chat.v1.MoveSectionItemRequest; @@ -94,6 +99,7 @@ import com.google.chat.v1.SpaceNotificationSetting; import com.google.chat.v1.SpaceReadState; import com.google.chat.v1.ThreadReadState; +import com.google.chat.v1.UpdateAvailabilityRequest; import com.google.chat.v1.UpdateMembershipRequest; import com.google.chat.v1.UpdateMessageRequest; import com.google.chat.v1.UpdateSectionRequest; @@ -461,6 +467,59 @@ public class GrpcChatServiceStub extends ChatServiceStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + getAvailabilityMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.chat.v1.ChatService/GetAvailability") + .setRequestMarshaller( + ProtoUtils.marshaller(GetAvailabilityRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Availability.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + markAsActiveMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.chat.v1.ChatService/MarkAsActive") + .setRequestMarshaller(ProtoUtils.marshaller(MarkAsActiveRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Availability.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + markAsAwayMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.chat.v1.ChatService/MarkAsAway") + .setRequestMarshaller(ProtoUtils.marshaller(MarkAsAwayRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Availability.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + markAsDoNotDisturbMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.chat.v1.ChatService/MarkAsDoNotDisturb") + .setRequestMarshaller( + ProtoUtils.marshaller(MarkAsDoNotDisturbRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Availability.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateAvailabilityMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.chat.v1.ChatService/UpdateAvailability") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateAvailabilityRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Availability.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor getSpaceEventMethodDescriptor = MethodDescriptor.newBuilder() @@ -641,6 +700,11 @@ public class GrpcChatServiceStub extends ChatServiceStub { updateSpaceReadStateCallable; private final UnaryCallable getThreadReadStateCallable; + private final UnaryCallable getAvailabilityCallable; + private final UnaryCallable markAsActiveCallable; + private final UnaryCallable markAsAwayCallable; + private final UnaryCallable markAsDoNotDisturbCallable; + private final UnaryCallable updateAvailabilityCallable; private final UnaryCallable getSpaceEventCallable; private final UnaryCallable listSpaceEventsCallable; @@ -1008,6 +1072,61 @@ protected GrpcChatServiceStub( }) .setResourceNameExtractor(request -> request.getName()) .build(); + GrpcCallSettings getAvailabilityTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getAvailabilityMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings markAsActiveTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(markAsActiveMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings markAsAwayTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(markAsAwayMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings markAsDoNotDisturbTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(markAsDoNotDisturbMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings updateAvailabilityTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateAvailabilityMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "availability.name", String.valueOf(request.getAvailability().getName())); + return builder.build(); + }) + .build(); GrpcCallSettings getSpaceEventTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getSpaceEventMethodDescriptor) @@ -1269,6 +1388,25 @@ protected GrpcChatServiceStub( getThreadReadStateTransportSettings, settings.getThreadReadStateSettings(), clientContext); + this.getAvailabilityCallable = + callableFactory.createUnaryCallable( + getAvailabilityTransportSettings, settings.getAvailabilitySettings(), clientContext); + this.markAsActiveCallable = + callableFactory.createUnaryCallable( + markAsActiveTransportSettings, settings.markAsActiveSettings(), clientContext); + this.markAsAwayCallable = + callableFactory.createUnaryCallable( + markAsAwayTransportSettings, settings.markAsAwaySettings(), clientContext); + this.markAsDoNotDisturbCallable = + callableFactory.createUnaryCallable( + markAsDoNotDisturbTransportSettings, + settings.markAsDoNotDisturbSettings(), + clientContext); + this.updateAvailabilityCallable = + callableFactory.createUnaryCallable( + updateAvailabilityTransportSettings, + settings.updateAvailabilitySettings(), + clientContext); this.getSpaceEventCallable = callableFactory.createUnaryCallable( getSpaceEventTransportSettings, settings.getSpaceEventSettings(), clientContext); @@ -1526,6 +1664,31 @@ public UnaryCallable getThreadReadSt return getThreadReadStateCallable; } + @Override + public UnaryCallable getAvailabilityCallable() { + return getAvailabilityCallable; + } + + @Override + public UnaryCallable markAsActiveCallable() { + return markAsActiveCallable; + } + + @Override + public UnaryCallable markAsAwayCallable() { + return markAsAwayCallable; + } + + @Override + public UnaryCallable markAsDoNotDisturbCallable() { + return markAsDoNotDisturbCallable; + } + + @Override + public UnaryCallable updateAvailabilityCallable() { + return updateAvailabilityCallable; + } + @Override public UnaryCallable getSpaceEventCallable() { return getSpaceEventCallable; diff --git a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/HttpJsonChatServiceStub.java b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/HttpJsonChatServiceStub.java index f67165555ba8..5e63f3f88413 100644 --- a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/HttpJsonChatServiceStub.java +++ b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/HttpJsonChatServiceStub.java @@ -40,6 +40,7 @@ import com.google.api.gax.rpc.RequestParamsBuilder; import com.google.api.gax.rpc.UnaryCallable; import com.google.chat.v1.Attachment; +import com.google.chat.v1.Availability; import com.google.chat.v1.CompleteImportSpaceRequest; import com.google.chat.v1.CompleteImportSpaceResponse; import com.google.chat.v1.CreateCustomEmojiRequest; @@ -59,6 +60,7 @@ import com.google.chat.v1.FindGroupChatsRequest; import com.google.chat.v1.FindGroupChatsResponse; import com.google.chat.v1.GetAttachmentRequest; +import com.google.chat.v1.GetAvailabilityRequest; import com.google.chat.v1.GetCustomEmojiRequest; import com.google.chat.v1.GetMembershipRequest; import com.google.chat.v1.GetMessageRequest; @@ -83,6 +85,9 @@ import com.google.chat.v1.ListSpaceEventsResponse; import com.google.chat.v1.ListSpacesRequest; import com.google.chat.v1.ListSpacesResponse; +import com.google.chat.v1.MarkAsActiveRequest; +import com.google.chat.v1.MarkAsAwayRequest; +import com.google.chat.v1.MarkAsDoNotDisturbRequest; import com.google.chat.v1.Membership; import com.google.chat.v1.Message; import com.google.chat.v1.MoveSectionItemRequest; @@ -99,6 +104,7 @@ import com.google.chat.v1.SpaceNotificationSetting; import com.google.chat.v1.SpaceReadState; import com.google.chat.v1.ThreadReadState; +import com.google.chat.v1.UpdateAvailabilityRequest; import com.google.chat.v1.UpdateMembershipRequest; import com.google.chat.v1.UpdateMessageRequest; import com.google.chat.v1.UpdateSectionRequest; @@ -1307,6 +1313,190 @@ public class HttpJsonChatServiceStub extends ChatServiceStub { .build()) .build(); + private static final ApiMethodDescriptor + getAvailabilityMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.chat.v1.ChatService/GetAvailability") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=users/*/availability}", + 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(Availability.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + markAsActiveMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.chat.v1.ChatService/MarkAsActive") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=users/*/availability}:markAsActive", + 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(Availability.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + markAsAwayMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.chat.v1.ChatService/MarkAsAway") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=users/*/availability}:markAsAway", + 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(Availability.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + markAsDoNotDisturbMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.chat.v1.ChatService/MarkAsDoNotDisturb") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=users/*/availability}:markAsDoNotDisturb", + 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(Availability.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateAvailabilityMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.chat.v1.ChatService/UpdateAvailability") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{availability.name=users/*/availability}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "availability.name", request.getAvailability().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("availability", request.getAvailability(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Availability.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor getSpaceEventMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -1768,6 +1958,11 @@ public class HttpJsonChatServiceStub extends ChatServiceStub { updateSpaceReadStateCallable; private final UnaryCallable getThreadReadStateCallable; + private final UnaryCallable getAvailabilityCallable; + private final UnaryCallable markAsActiveCallable; + private final UnaryCallable markAsAwayCallable; + private final UnaryCallable markAsDoNotDisturbCallable; + private final UnaryCallable updateAvailabilityCallable; private final UnaryCallable getSpaceEventCallable; private final UnaryCallable listSpaceEventsCallable; @@ -2170,6 +2365,68 @@ protected HttpJsonChatServiceStub( }) .setResourceNameExtractor(request -> request.getName()) .build(); + HttpJsonCallSettings getAvailabilityTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getAvailabilityMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings markAsActiveTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(markAsActiveMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings markAsAwayTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(markAsAwayMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + markAsDoNotDisturbTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(markAsDoNotDisturbMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + updateAvailabilityTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateAvailabilityMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "availability.name", String.valueOf(request.getAvailability().getName())); + return builder.build(); + }) + .build(); HttpJsonCallSettings getSpaceEventTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(getSpaceEventMethodDescriptor) @@ -2442,6 +2699,25 @@ protected HttpJsonChatServiceStub( getThreadReadStateTransportSettings, settings.getThreadReadStateSettings(), clientContext); + this.getAvailabilityCallable = + callableFactory.createUnaryCallable( + getAvailabilityTransportSettings, settings.getAvailabilitySettings(), clientContext); + this.markAsActiveCallable = + callableFactory.createUnaryCallable( + markAsActiveTransportSettings, settings.markAsActiveSettings(), clientContext); + this.markAsAwayCallable = + callableFactory.createUnaryCallable( + markAsAwayTransportSettings, settings.markAsAwaySettings(), clientContext); + this.markAsDoNotDisturbCallable = + callableFactory.createUnaryCallable( + markAsDoNotDisturbTransportSettings, + settings.markAsDoNotDisturbSettings(), + clientContext); + this.updateAvailabilityCallable = + callableFactory.createUnaryCallable( + updateAvailabilityTransportSettings, + settings.updateAvailabilitySettings(), + clientContext); this.getSpaceEventCallable = callableFactory.createUnaryCallable( getSpaceEventTransportSettings, settings.getSpaceEventSettings(), clientContext); @@ -2528,6 +2804,11 @@ public static List getMethodDescriptors() { methodDescriptors.add(getSpaceReadStateMethodDescriptor); methodDescriptors.add(updateSpaceReadStateMethodDescriptor); methodDescriptors.add(getThreadReadStateMethodDescriptor); + methodDescriptors.add(getAvailabilityMethodDescriptor); + methodDescriptors.add(markAsActiveMethodDescriptor); + methodDescriptors.add(markAsAwayMethodDescriptor); + methodDescriptors.add(markAsDoNotDisturbMethodDescriptor); + methodDescriptors.add(updateAvailabilityMethodDescriptor); methodDescriptors.add(getSpaceEventMethodDescriptor); methodDescriptors.add(listSpaceEventsMethodDescriptor); methodDescriptors.add(getSpaceNotificationSettingMethodDescriptor); @@ -2744,6 +3025,31 @@ public UnaryCallable getThreadReadSt return getThreadReadStateCallable; } + @Override + public UnaryCallable getAvailabilityCallable() { + return getAvailabilityCallable; + } + + @Override + public UnaryCallable markAsActiveCallable() { + return markAsActiveCallable; + } + + @Override + public UnaryCallable markAsAwayCallable() { + return markAsAwayCallable; + } + + @Override + public UnaryCallable markAsDoNotDisturbCallable() { + return markAsDoNotDisturbCallable; + } + + @Override + public UnaryCallable updateAvailabilityCallable() { + return updateAvailabilityCallable; + } + @Override public UnaryCallable getSpaceEventCallable() { return getSpaceEventCallable; diff --git a/java-chat/google-cloud-chat/src/main/resources/META-INF/native-image/com.google.chat.v1/reflect-config.json b/java-chat/google-cloud-chat/src/main/resources/META-INF/native-image/com.google.chat.v1/reflect-config.json index 62eacfda45c6..fd6beccc5598 100644 --- a/java-chat/google-cloud-chat/src/main/resources/META-INF/native-image/com.google.chat.v1/reflect-config.json +++ b/java-chat/google-cloud-chat/src/main/resources/META-INF/native-image/com.google.chat.v1/reflect-config.json @@ -1691,6 +1691,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.chat.v1.Availability", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.Availability$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.Availability$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.chat.v1.CalendarEventLinkData", "queryAllDeclaredConstructors": true, @@ -2078,6 +2105,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.chat.v1.CustomStatus", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.CustomStatus$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.chat.v1.DeleteCustomEmojiRequest", "queryAllDeclaredConstructors": true, @@ -2249,6 +2294,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.chat.v1.DoNotDisturbMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.DoNotDisturbMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.chat.v1.DriveDataRef", "queryAllDeclaredConstructors": true, @@ -2411,6 +2474,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.chat.v1.GetAvailabilityRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.GetAvailabilityRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.chat.v1.GetCustomEmojiRequest", "queryAllDeclaredConstructors": true, @@ -2870,6 +2951,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.chat.v1.MarkAsActiveRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.MarkAsActiveRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.MarkAsAwayRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.MarkAsAwayRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.MarkAsDoNotDisturbRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.MarkAsDoNotDisturbRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.chat.v1.MatchedUrl", "queryAllDeclaredConstructors": true, @@ -3887,6 +4022,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.chat.v1.UpdateAvailabilityRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.UpdateAvailabilityRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.chat.v1.UpdateMembershipRequest", "queryAllDeclaredConstructors": true, diff --git a/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientHttpJsonTest.java b/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientHttpJsonTest.java index ef9e2f4b8cb6..beb8b2774005 100644 --- a/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientHttpJsonTest.java +++ b/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientHttpJsonTest.java @@ -2760,6 +2760,298 @@ public void getThreadReadStateExceptionTest2() throws Exception { } } + @Test + public void getAvailabilityTest() throws Exception { + Availability expectedResponse = + Availability.newBuilder() + .setName(AvailabilityName.of("[USER]").toString()) + .setCustomStatus(CustomStatus.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + AvailabilityName name = AvailabilityName.of("[USER]"); + + Availability actualResponse = client.getAvailability(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 getAvailabilityExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AvailabilityName name = AvailabilityName.of("[USER]"); + client.getAvailability(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAvailabilityTest2() throws Exception { + Availability expectedResponse = + Availability.newBuilder() + .setName(AvailabilityName.of("[USER]").toString()) + .setCustomStatus(CustomStatus.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "users/user-3694/availability"; + + Availability actualResponse = client.getAvailability(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 getAvailabilityExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "users/user-3694/availability"; + client.getAvailability(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void markAsActiveTest() throws Exception { + Availability expectedResponse = + Availability.newBuilder() + .setName(AvailabilityName.of("[USER]").toString()) + .setCustomStatus(CustomStatus.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + MarkAsActiveRequest request = + MarkAsActiveRequest.newBuilder().setName(AvailabilityName.of("[USER]").toString()).build(); + + Availability actualResponse = client.markAsActive(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void markAsActiveExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + MarkAsActiveRequest request = + MarkAsActiveRequest.newBuilder() + .setName(AvailabilityName.of("[USER]").toString()) + .build(); + client.markAsActive(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void markAsAwayTest() throws Exception { + Availability expectedResponse = + Availability.newBuilder() + .setName(AvailabilityName.of("[USER]").toString()) + .setCustomStatus(CustomStatus.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + MarkAsAwayRequest request = + MarkAsAwayRequest.newBuilder().setName(AvailabilityName.of("[USER]").toString()).build(); + + Availability actualResponse = client.markAsAway(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void markAsAwayExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + MarkAsAwayRequest request = + MarkAsAwayRequest.newBuilder().setName(AvailabilityName.of("[USER]").toString()).build(); + client.markAsAway(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void markAsDoNotDisturbTest() throws Exception { + Availability expectedResponse = + Availability.newBuilder() + .setName(AvailabilityName.of("[USER]").toString()) + .setCustomStatus(CustomStatus.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + MarkAsDoNotDisturbRequest request = + MarkAsDoNotDisturbRequest.newBuilder() + .setName(AvailabilityName.of("[USER]").toString()) + .build(); + + Availability actualResponse = client.markAsDoNotDisturb(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void markAsDoNotDisturbExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + MarkAsDoNotDisturbRequest request = + MarkAsDoNotDisturbRequest.newBuilder() + .setName(AvailabilityName.of("[USER]").toString()) + .build(); + client.markAsDoNotDisturb(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateAvailabilityTest() throws Exception { + Availability expectedResponse = + Availability.newBuilder() + .setName(AvailabilityName.of("[USER]").toString()) + .setCustomStatus(CustomStatus.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + Availability availability = + Availability.newBuilder() + .setName(AvailabilityName.of("[USER]").toString()) + .setCustomStatus(CustomStatus.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Availability actualResponse = client.updateAvailability(availability, 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 updateAvailabilityExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Availability availability = + Availability.newBuilder() + .setName(AvailabilityName.of("[USER]").toString()) + .setCustomStatus(CustomStatus.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateAvailability(availability, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void getSpaceEventTest() throws Exception { SpaceEvent expectedResponse = diff --git a/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientTest.java b/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientTest.java index e6758b29868c..33bc0d364160 100644 --- a/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientTest.java +++ b/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientTest.java @@ -2367,6 +2367,259 @@ public void getThreadReadStateExceptionTest2() throws Exception { } } + @Test + public void getAvailabilityTest() throws Exception { + Availability expectedResponse = + Availability.newBuilder() + .setName(AvailabilityName.of("[USER]").toString()) + .setCustomStatus(CustomStatus.newBuilder().build()) + .build(); + mockChatService.addResponse(expectedResponse); + + AvailabilityName name = AvailabilityName.of("[USER]"); + + Availability actualResponse = client.getAvailability(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockChatService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAvailabilityRequest actualRequest = ((GetAvailabilityRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAvailabilityExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockChatService.addException(exception); + + try { + AvailabilityName name = AvailabilityName.of("[USER]"); + client.getAvailability(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAvailabilityTest2() throws Exception { + Availability expectedResponse = + Availability.newBuilder() + .setName(AvailabilityName.of("[USER]").toString()) + .setCustomStatus(CustomStatus.newBuilder().build()) + .build(); + mockChatService.addResponse(expectedResponse); + + String name = "name3373707"; + + Availability actualResponse = client.getAvailability(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockChatService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAvailabilityRequest actualRequest = ((GetAvailabilityRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAvailabilityExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockChatService.addException(exception); + + try { + String name = "name3373707"; + client.getAvailability(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void markAsActiveTest() throws Exception { + Availability expectedResponse = + Availability.newBuilder() + .setName(AvailabilityName.of("[USER]").toString()) + .setCustomStatus(CustomStatus.newBuilder().build()) + .build(); + mockChatService.addResponse(expectedResponse); + + MarkAsActiveRequest request = + MarkAsActiveRequest.newBuilder().setName(AvailabilityName.of("[USER]").toString()).build(); + + Availability actualResponse = client.markAsActive(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockChatService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + MarkAsActiveRequest actualRequest = ((MarkAsActiveRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getExpireTime(), actualRequest.getExpireTime()); + Assert.assertEquals(request.getTtl(), actualRequest.getTtl()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void markAsActiveExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockChatService.addException(exception); + + try { + MarkAsActiveRequest request = + MarkAsActiveRequest.newBuilder() + .setName(AvailabilityName.of("[USER]").toString()) + .build(); + client.markAsActive(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void markAsAwayTest() throws Exception { + Availability expectedResponse = + Availability.newBuilder() + .setName(AvailabilityName.of("[USER]").toString()) + .setCustomStatus(CustomStatus.newBuilder().build()) + .build(); + mockChatService.addResponse(expectedResponse); + + MarkAsAwayRequest request = + MarkAsAwayRequest.newBuilder().setName(AvailabilityName.of("[USER]").toString()).build(); + + Availability actualResponse = client.markAsAway(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockChatService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + MarkAsAwayRequest actualRequest = ((MarkAsAwayRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void markAsAwayExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockChatService.addException(exception); + + try { + MarkAsAwayRequest request = + MarkAsAwayRequest.newBuilder().setName(AvailabilityName.of("[USER]").toString()).build(); + client.markAsAway(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void markAsDoNotDisturbTest() throws Exception { + Availability expectedResponse = + Availability.newBuilder() + .setName(AvailabilityName.of("[USER]").toString()) + .setCustomStatus(CustomStatus.newBuilder().build()) + .build(); + mockChatService.addResponse(expectedResponse); + + MarkAsDoNotDisturbRequest request = + MarkAsDoNotDisturbRequest.newBuilder() + .setName(AvailabilityName.of("[USER]").toString()) + .build(); + + Availability actualResponse = client.markAsDoNotDisturb(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockChatService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + MarkAsDoNotDisturbRequest actualRequest = ((MarkAsDoNotDisturbRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getExpireTime(), actualRequest.getExpireTime()); + Assert.assertEquals(request.getTtl(), actualRequest.getTtl()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void markAsDoNotDisturbExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockChatService.addException(exception); + + try { + MarkAsDoNotDisturbRequest request = + MarkAsDoNotDisturbRequest.newBuilder() + .setName(AvailabilityName.of("[USER]").toString()) + .build(); + client.markAsDoNotDisturb(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateAvailabilityTest() throws Exception { + Availability expectedResponse = + Availability.newBuilder() + .setName(AvailabilityName.of("[USER]").toString()) + .setCustomStatus(CustomStatus.newBuilder().build()) + .build(); + mockChatService.addResponse(expectedResponse); + + Availability availability = Availability.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Availability actualResponse = client.updateAvailability(availability, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockChatService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateAvailabilityRequest actualRequest = ((UpdateAvailabilityRequest) actualRequests.get(0)); + + Assert.assertEquals(availability, actualRequest.getAvailability()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateAvailabilityExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockChatService.addException(exception); + + try { + Availability availability = Availability.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateAvailability(availability, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void getSpaceEventTest() throws Exception { SpaceEvent expectedResponse = diff --git a/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/MockChatServiceImpl.java b/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/MockChatServiceImpl.java index 276c57293fa2..8ee07df34625 100644 --- a/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/MockChatServiceImpl.java +++ b/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/MockChatServiceImpl.java @@ -726,6 +726,110 @@ public void getThreadReadState( } } + @Override + public void getAvailability( + GetAvailabilityRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Availability) { + requests.add(request); + responseObserver.onNext(((Availability) 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 GetAvailability, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Availability.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void markAsActive( + MarkAsActiveRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Availability) { + requests.add(request); + responseObserver.onNext(((Availability) 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 MarkAsActive, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Availability.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void markAsAway(MarkAsAwayRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Availability) { + requests.add(request); + responseObserver.onNext(((Availability) 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 MarkAsAway, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Availability.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void markAsDoNotDisturb( + MarkAsDoNotDisturbRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Availability) { + requests.add(request); + responseObserver.onNext(((Availability) 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 MarkAsDoNotDisturb, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Availability.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateAvailability( + UpdateAvailabilityRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Availability) { + requests.add(request); + responseObserver.onNext(((Availability) 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 UpdateAvailability, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Availability.class.getName(), + Exception.class.getName()))); + } + } + @Override public void getSpaceEvent( GetSpaceEventRequest request, StreamObserver responseObserver) { diff --git a/java-chat/grpc-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ChatServiceGrpc.java b/java-chat/grpc-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ChatServiceGrpc.java index 9b1af68b3d96..cf62985ed01c 100644 --- a/java-chat/grpc-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ChatServiceGrpc.java +++ b/java-chat/grpc-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ChatServiceGrpc.java @@ -1328,6 +1328,210 @@ private ChatServiceGrpc() {} return getGetThreadReadStateMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.chat.v1.GetAvailabilityRequest, com.google.chat.v1.Availability> + getGetAvailabilityMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetAvailability", + requestType = com.google.chat.v1.GetAvailabilityRequest.class, + responseType = com.google.chat.v1.Availability.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.chat.v1.GetAvailabilityRequest, com.google.chat.v1.Availability> + getGetAvailabilityMethod() { + io.grpc.MethodDescriptor< + com.google.chat.v1.GetAvailabilityRequest, com.google.chat.v1.Availability> + getGetAvailabilityMethod; + if ((getGetAvailabilityMethod = ChatServiceGrpc.getGetAvailabilityMethod) == null) { + synchronized (ChatServiceGrpc.class) { + if ((getGetAvailabilityMethod = ChatServiceGrpc.getGetAvailabilityMethod) == null) { + ChatServiceGrpc.getGetAvailabilityMethod = + getGetAvailabilityMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAvailability")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.chat.v1.GetAvailabilityRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.chat.v1.Availability.getDefaultInstance())) + .setSchemaDescriptor( + new ChatServiceMethodDescriptorSupplier("GetAvailability")) + .build(); + } + } + } + return getGetAvailabilityMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.chat.v1.MarkAsActiveRequest, com.google.chat.v1.Availability> + getMarkAsActiveMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "MarkAsActive", + requestType = com.google.chat.v1.MarkAsActiveRequest.class, + responseType = com.google.chat.v1.Availability.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.chat.v1.MarkAsActiveRequest, com.google.chat.v1.Availability> + getMarkAsActiveMethod() { + io.grpc.MethodDescriptor< + com.google.chat.v1.MarkAsActiveRequest, com.google.chat.v1.Availability> + getMarkAsActiveMethod; + if ((getMarkAsActiveMethod = ChatServiceGrpc.getMarkAsActiveMethod) == null) { + synchronized (ChatServiceGrpc.class) { + if ((getMarkAsActiveMethod = ChatServiceGrpc.getMarkAsActiveMethod) == null) { + ChatServiceGrpc.getMarkAsActiveMethod = + getMarkAsActiveMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "MarkAsActive")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.chat.v1.MarkAsActiveRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.chat.v1.Availability.getDefaultInstance())) + .setSchemaDescriptor(new ChatServiceMethodDescriptorSupplier("MarkAsActive")) + .build(); + } + } + } + return getMarkAsActiveMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.chat.v1.MarkAsAwayRequest, com.google.chat.v1.Availability> + getMarkAsAwayMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "MarkAsAway", + requestType = com.google.chat.v1.MarkAsAwayRequest.class, + responseType = com.google.chat.v1.Availability.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.chat.v1.MarkAsAwayRequest, com.google.chat.v1.Availability> + getMarkAsAwayMethod() { + io.grpc.MethodDescriptor + getMarkAsAwayMethod; + if ((getMarkAsAwayMethod = ChatServiceGrpc.getMarkAsAwayMethod) == null) { + synchronized (ChatServiceGrpc.class) { + if ((getMarkAsAwayMethod = ChatServiceGrpc.getMarkAsAwayMethod) == null) { + ChatServiceGrpc.getMarkAsAwayMethod = + getMarkAsAwayMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "MarkAsAway")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.chat.v1.MarkAsAwayRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.chat.v1.Availability.getDefaultInstance())) + .setSchemaDescriptor(new ChatServiceMethodDescriptorSupplier("MarkAsAway")) + .build(); + } + } + } + return getMarkAsAwayMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.chat.v1.MarkAsDoNotDisturbRequest, com.google.chat.v1.Availability> + getMarkAsDoNotDisturbMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "MarkAsDoNotDisturb", + requestType = com.google.chat.v1.MarkAsDoNotDisturbRequest.class, + responseType = com.google.chat.v1.Availability.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.chat.v1.MarkAsDoNotDisturbRequest, com.google.chat.v1.Availability> + getMarkAsDoNotDisturbMethod() { + io.grpc.MethodDescriptor< + com.google.chat.v1.MarkAsDoNotDisturbRequest, com.google.chat.v1.Availability> + getMarkAsDoNotDisturbMethod; + if ((getMarkAsDoNotDisturbMethod = ChatServiceGrpc.getMarkAsDoNotDisturbMethod) == null) { + synchronized (ChatServiceGrpc.class) { + if ((getMarkAsDoNotDisturbMethod = ChatServiceGrpc.getMarkAsDoNotDisturbMethod) == null) { + ChatServiceGrpc.getMarkAsDoNotDisturbMethod = + getMarkAsDoNotDisturbMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "MarkAsDoNotDisturb")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.chat.v1.MarkAsDoNotDisturbRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.chat.v1.Availability.getDefaultInstance())) + .setSchemaDescriptor( + new ChatServiceMethodDescriptorSupplier("MarkAsDoNotDisturb")) + .build(); + } + } + } + return getMarkAsDoNotDisturbMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.chat.v1.UpdateAvailabilityRequest, com.google.chat.v1.Availability> + getUpdateAvailabilityMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateAvailability", + requestType = com.google.chat.v1.UpdateAvailabilityRequest.class, + responseType = com.google.chat.v1.Availability.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.chat.v1.UpdateAvailabilityRequest, com.google.chat.v1.Availability> + getUpdateAvailabilityMethod() { + io.grpc.MethodDescriptor< + com.google.chat.v1.UpdateAvailabilityRequest, com.google.chat.v1.Availability> + getUpdateAvailabilityMethod; + if ((getUpdateAvailabilityMethod = ChatServiceGrpc.getUpdateAvailabilityMethod) == null) { + synchronized (ChatServiceGrpc.class) { + if ((getUpdateAvailabilityMethod = ChatServiceGrpc.getUpdateAvailabilityMethod) == null) { + ChatServiceGrpc.getUpdateAvailabilityMethod = + getUpdateAvailabilityMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateAvailability")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.chat.v1.UpdateAvailabilityRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.chat.v1.Availability.getDefaultInstance())) + .setSchemaDescriptor( + new ChatServiceMethodDescriptorSupplier("UpdateAvailability")) + .build(); + } + } + } + return getUpdateAvailabilityMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.chat.v1.GetSpaceEventRequest, com.google.chat.v1.SpaceEvent> getGetSpaceEventMethod; @@ -2909,6 +3113,118 @@ default void getThreadReadState( getGetThreadReadStateMethod(), responseObserver); } + /** + * + * + *
                +     * Returns availability information for a human user in Google Chat. For
                +     * example, this can be used to check if a user is online or away, or to
                +     * retrieve their custom status message.
                +     * This method only retrieves the authenticated user's availability.
                +     * Requires [user
                +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
                +     * with one of the following [authorization
                +     * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
                +     *   - `https://www.googleapis.com/auth/chat.users.availability.readonly`
                +     *   - `https://www.googleapis.com/auth/chat.users.availability`
                +     * 
                + */ + default void getAvailability( + com.google.chat.v1.GetAvailabilityRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetAvailabilityMethod(), responseObserver); + } + + /** + * + * + *
                +     * Marks user as `ACTIVE` in Google Chat.
                +     * Sets the user's availability state to `ACTIVE`. The `ACTIVE` state
                +     * lasts until the specified expiration, at which point the user's state
                +     * becomes `AWAY`. Note that if the user is actively using Chat, the `ACTIVE`
                +     * state duration may extend beyond the provided expiration.
                +     * This method only updates the authenticated user's availability.
                +     * Requires [user
                +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
                +     * with [authorization
                +     * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
                +     *   - `https://www.googleapis.com/auth/chat.users.availability`
                +     * 
                + */ + default void markAsActive( + com.google.chat.v1.MarkAsActiveRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getMarkAsActiveMethod(), responseObserver); + } + + /** + * + * + *
                +     * Marks user as `AWAY` in Google Chat.
                +     * Sets the user's state to away and is not affected by the user's
                +     * activity.
                +     * This method only updates the authenticated user's availability.
                +     * Requires [user
                +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
                +     * with [authorization
                +     * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
                +     *   - `https://www.googleapis.com/auth/chat.users.availability`
                +     * 
                + */ + default void markAsAway( + com.google.chat.v1.MarkAsAwayRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMarkAsAwayMethod(), responseObserver); + } + + /** + * + * + *
                +     * Marks user as `DO_NOT_DISTURB` in Google Chat.
                +     * Sets a user's availability state to `DO_NOT_DISTURB` until a specified
                +     * expiration time.
                +     * When in `DO_NOT_DISTURB`, users typically won't receive notifications.
                +     * This method only updates the authenticated user's availability.
                +     * Requires [user
                +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
                +     * with [authorization
                +     * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
                +     *   - `https://www.googleapis.com/auth/chat.users.availability`
                +     * 
                + */ + default void markAsDoNotDisturb( + com.google.chat.v1.MarkAsDoNotDisturbRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getMarkAsDoNotDisturbMethod(), responseObserver); + } + + /** + * + * + *
                +     * Updates availability information for a human user. Only the `custom_status`
                +     * field can be updated through this method.
                +     * This method only updates the authenticated user's availability.
                +     * Requires [user
                +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
                +     * with one of the following [authorization
                +     * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
                +     *   - `https://www.googleapis.com/auth/chat.users.availability`
                +     * 
                + */ + default void updateAvailability( + com.google.chat.v1.UpdateAvailabilityRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateAvailabilityMethod(), responseObserver); + } + /** * * @@ -4355,6 +4671,127 @@ public void getThreadReadState( responseObserver); } + /** + * + * + *
                +     * Returns availability information for a human user in Google Chat. For
                +     * example, this can be used to check if a user is online or away, or to
                +     * retrieve their custom status message.
                +     * This method only retrieves the authenticated user's availability.
                +     * Requires [user
                +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
                +     * with one of the following [authorization
                +     * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
                +     *   - `https://www.googleapis.com/auth/chat.users.availability.readonly`
                +     *   - `https://www.googleapis.com/auth/chat.users.availability`
                +     * 
                + */ + public void getAvailability( + com.google.chat.v1.GetAvailabilityRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAvailabilityMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                +     * Marks user as `ACTIVE` in Google Chat.
                +     * Sets the user's availability state to `ACTIVE`. The `ACTIVE` state
                +     * lasts until the specified expiration, at which point the user's state
                +     * becomes `AWAY`. Note that if the user is actively using Chat, the `ACTIVE`
                +     * state duration may extend beyond the provided expiration.
                +     * This method only updates the authenticated user's availability.
                +     * Requires [user
                +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
                +     * with [authorization
                +     * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
                +     *   - `https://www.googleapis.com/auth/chat.users.availability`
                +     * 
                + */ + public void markAsActive( + com.google.chat.v1.MarkAsActiveRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getMarkAsActiveMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                +     * Marks user as `AWAY` in Google Chat.
                +     * Sets the user's state to away and is not affected by the user's
                +     * activity.
                +     * This method only updates the authenticated user's availability.
                +     * Requires [user
                +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
                +     * with [authorization
                +     * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
                +     *   - `https://www.googleapis.com/auth/chat.users.availability`
                +     * 
                + */ + public void markAsAway( + com.google.chat.v1.MarkAsAwayRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getMarkAsAwayMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
                +     * Marks user as `DO_NOT_DISTURB` in Google Chat.
                +     * Sets a user's availability state to `DO_NOT_DISTURB` until a specified
                +     * expiration time.
                +     * When in `DO_NOT_DISTURB`, users typically won't receive notifications.
                +     * This method only updates the authenticated user's availability.
                +     * Requires [user
                +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
                +     * with [authorization
                +     * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
                +     *   - `https://www.googleapis.com/auth/chat.users.availability`
                +     * 
                + */ + public void markAsDoNotDisturb( + com.google.chat.v1.MarkAsDoNotDisturbRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getMarkAsDoNotDisturbMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                +     * Updates availability information for a human user. Only the `custom_status`
                +     * field can be updated through this method.
                +     * This method only updates the authenticated user's availability.
                +     * Requires [user
                +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
                +     * with one of the following [authorization
                +     * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
                +     *   - `https://www.googleapis.com/auth/chat.users.availability`
                +     * 
                + */ + public void updateAvailability( + com.google.chat.v1.UpdateAvailabilityRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateAvailabilityMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -5718,6 +6155,114 @@ public com.google.chat.v1.ThreadReadState getThreadReadState( getChannel(), getGetThreadReadStateMethod(), getCallOptions(), request); } + /** + * + * + *
                +     * Returns availability information for a human user in Google Chat. For
                +     * example, this can be used to check if a user is online or away, or to
                +     * retrieve their custom status message.
                +     * This method only retrieves the authenticated user's availability.
                +     * Requires [user
                +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
                +     * with one of the following [authorization
                +     * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
                +     *   - `https://www.googleapis.com/auth/chat.users.availability.readonly`
                +     *   - `https://www.googleapis.com/auth/chat.users.availability`
                +     * 
                + */ + public com.google.chat.v1.Availability getAvailability( + com.google.chat.v1.GetAvailabilityRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetAvailabilityMethod(), getCallOptions(), request); + } + + /** + * + * + *
                +     * Marks user as `ACTIVE` in Google Chat.
                +     * Sets the user's availability state to `ACTIVE`. The `ACTIVE` state
                +     * lasts until the specified expiration, at which point the user's state
                +     * becomes `AWAY`. Note that if the user is actively using Chat, the `ACTIVE`
                +     * state duration may extend beyond the provided expiration.
                +     * This method only updates the authenticated user's availability.
                +     * Requires [user
                +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
                +     * with [authorization
                +     * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
                +     *   - `https://www.googleapis.com/auth/chat.users.availability`
                +     * 
                + */ + public com.google.chat.v1.Availability markAsActive( + com.google.chat.v1.MarkAsActiveRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getMarkAsActiveMethod(), getCallOptions(), request); + } + + /** + * + * + *
                +     * Marks user as `AWAY` in Google Chat.
                +     * Sets the user's state to away and is not affected by the user's
                +     * activity.
                +     * This method only updates the authenticated user's availability.
                +     * Requires [user
                +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
                +     * with [authorization
                +     * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
                +     *   - `https://www.googleapis.com/auth/chat.users.availability`
                +     * 
                + */ + public com.google.chat.v1.Availability markAsAway(com.google.chat.v1.MarkAsAwayRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getMarkAsAwayMethod(), getCallOptions(), request); + } + + /** + * + * + *
                +     * Marks user as `DO_NOT_DISTURB` in Google Chat.
                +     * Sets a user's availability state to `DO_NOT_DISTURB` until a specified
                +     * expiration time.
                +     * When in `DO_NOT_DISTURB`, users typically won't receive notifications.
                +     * This method only updates the authenticated user's availability.
                +     * Requires [user
                +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
                +     * with [authorization
                +     * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
                +     *   - `https://www.googleapis.com/auth/chat.users.availability`
                +     * 
                + */ + public com.google.chat.v1.Availability markAsDoNotDisturb( + com.google.chat.v1.MarkAsDoNotDisturbRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getMarkAsDoNotDisturbMethod(), getCallOptions(), request); + } + + /** + * + * + *
                +     * Updates availability information for a human user. Only the `custom_status`
                +     * field can be updated through this method.
                +     * This method only updates the authenticated user's availability.
                +     * Requires [user
                +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
                +     * with one of the following [authorization
                +     * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
                +     *   - `https://www.googleapis.com/auth/chat.users.availability`
                +     * 
                + */ + public com.google.chat.v1.Availability updateAvailability( + com.google.chat.v1.UpdateAvailabilityRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateAvailabilityMethod(), getCallOptions(), request); + } + /** * * @@ -7044,6 +7589,114 @@ public com.google.chat.v1.ThreadReadState getThreadReadState( getChannel(), getGetThreadReadStateMethod(), getCallOptions(), request); } + /** + * + * + *
                +     * Returns availability information for a human user in Google Chat. For
                +     * example, this can be used to check if a user is online or away, or to
                +     * retrieve their custom status message.
                +     * This method only retrieves the authenticated user's availability.
                +     * Requires [user
                +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
                +     * with one of the following [authorization
                +     * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
                +     *   - `https://www.googleapis.com/auth/chat.users.availability.readonly`
                +     *   - `https://www.googleapis.com/auth/chat.users.availability`
                +     * 
                + */ + public com.google.chat.v1.Availability getAvailability( + com.google.chat.v1.GetAvailabilityRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAvailabilityMethod(), getCallOptions(), request); + } + + /** + * + * + *
                +     * Marks user as `ACTIVE` in Google Chat.
                +     * Sets the user's availability state to `ACTIVE`. The `ACTIVE` state
                +     * lasts until the specified expiration, at which point the user's state
                +     * becomes `AWAY`. Note that if the user is actively using Chat, the `ACTIVE`
                +     * state duration may extend beyond the provided expiration.
                +     * This method only updates the authenticated user's availability.
                +     * Requires [user
                +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
                +     * with [authorization
                +     * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
                +     *   - `https://www.googleapis.com/auth/chat.users.availability`
                +     * 
                + */ + public com.google.chat.v1.Availability markAsActive( + com.google.chat.v1.MarkAsActiveRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getMarkAsActiveMethod(), getCallOptions(), request); + } + + /** + * + * + *
                +     * Marks user as `AWAY` in Google Chat.
                +     * Sets the user's state to away and is not affected by the user's
                +     * activity.
                +     * This method only updates the authenticated user's availability.
                +     * Requires [user
                +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
                +     * with [authorization
                +     * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
                +     *   - `https://www.googleapis.com/auth/chat.users.availability`
                +     * 
                + */ + public com.google.chat.v1.Availability markAsAway( + com.google.chat.v1.MarkAsAwayRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getMarkAsAwayMethod(), getCallOptions(), request); + } + + /** + * + * + *
                +     * Marks user as `DO_NOT_DISTURB` in Google Chat.
                +     * Sets a user's availability state to `DO_NOT_DISTURB` until a specified
                +     * expiration time.
                +     * When in `DO_NOT_DISTURB`, users typically won't receive notifications.
                +     * This method only updates the authenticated user's availability.
                +     * Requires [user
                +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
                +     * with [authorization
                +     * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
                +     *   - `https://www.googleapis.com/auth/chat.users.availability`
                +     * 
                + */ + public com.google.chat.v1.Availability markAsDoNotDisturb( + com.google.chat.v1.MarkAsDoNotDisturbRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getMarkAsDoNotDisturbMethod(), getCallOptions(), request); + } + + /** + * + * + *
                +     * Updates availability information for a human user. Only the `custom_status`
                +     * field can be updated through this method.
                +     * This method only updates the authenticated user's availability.
                +     * Requires [user
                +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
                +     * with one of the following [authorization
                +     * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
                +     *   - `https://www.googleapis.com/auth/chat.users.availability`
                +     * 
                + */ + public com.google.chat.v1.Availability updateAvailability( + com.google.chat.v1.UpdateAvailabilityRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateAvailabilityMethod(), getCallOptions(), request); + } + /** * * @@ -8382,6 +9035,114 @@ public com.google.common.util.concurrent.ListenableFuture + * Returns availability information for a human user in Google Chat. For + * example, this can be used to check if a user is online or away, or to + * retrieve their custom status message. + * This method only retrieves the authenticated user's availability. + * Requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * with one of the following [authorization + * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + * - `https://www.googleapis.com/auth/chat.users.availability.readonly` + * - `https://www.googleapis.com/auth/chat.users.availability` + * + */ + public com.google.common.util.concurrent.ListenableFuture + getAvailability(com.google.chat.v1.GetAvailabilityRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAvailabilityMethod(), getCallOptions()), request); + } + + /** + * + * + *
                +     * Marks user as `ACTIVE` in Google Chat.
                +     * Sets the user's availability state to `ACTIVE`. The `ACTIVE` state
                +     * lasts until the specified expiration, at which point the user's state
                +     * becomes `AWAY`. Note that if the user is actively using Chat, the `ACTIVE`
                +     * state duration may extend beyond the provided expiration.
                +     * This method only updates the authenticated user's availability.
                +     * Requires [user
                +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
                +     * with [authorization
                +     * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
                +     *   - `https://www.googleapis.com/auth/chat.users.availability`
                +     * 
                + */ + public com.google.common.util.concurrent.ListenableFuture + markAsActive(com.google.chat.v1.MarkAsActiveRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getMarkAsActiveMethod(), getCallOptions()), request); + } + + /** + * + * + *
                +     * Marks user as `AWAY` in Google Chat.
                +     * Sets the user's state to away and is not affected by the user's
                +     * activity.
                +     * This method only updates the authenticated user's availability.
                +     * Requires [user
                +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
                +     * with [authorization
                +     * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
                +     *   - `https://www.googleapis.com/auth/chat.users.availability`
                +     * 
                + */ + public com.google.common.util.concurrent.ListenableFuture + markAsAway(com.google.chat.v1.MarkAsAwayRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getMarkAsAwayMethod(), getCallOptions()), request); + } + + /** + * + * + *
                +     * Marks user as `DO_NOT_DISTURB` in Google Chat.
                +     * Sets a user's availability state to `DO_NOT_DISTURB` until a specified
                +     * expiration time.
                +     * When in `DO_NOT_DISTURB`, users typically won't receive notifications.
                +     * This method only updates the authenticated user's availability.
                +     * Requires [user
                +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
                +     * with [authorization
                +     * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
                +     *   - `https://www.googleapis.com/auth/chat.users.availability`
                +     * 
                + */ + public com.google.common.util.concurrent.ListenableFuture + markAsDoNotDisturb(com.google.chat.v1.MarkAsDoNotDisturbRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getMarkAsDoNotDisturbMethod(), getCallOptions()), request); + } + + /** + * + * + *
                +     * Updates availability information for a human user. Only the `custom_status`
                +     * field can be updated through this method.
                +     * This method only updates the authenticated user's availability.
                +     * Requires [user
                +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
                +     * with one of the following [authorization
                +     * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
                +     *   - `https://www.googleapis.com/auth/chat.users.availability`
                +     * 
                + */ + public com.google.common.util.concurrent.ListenableFuture + updateAvailability(com.google.chat.v1.UpdateAvailabilityRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateAvailabilityMethod(), getCallOptions()), request); + } + /** * * @@ -8711,17 +9472,22 @@ public com.google.common.util.concurrent.ListenableFuture implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -8909,6 +9675,31 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.chat.v1.GetThreadReadStateRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_GET_AVAILABILITY: + serviceImpl.getAvailability( + (com.google.chat.v1.GetAvailabilityRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_MARK_AS_ACTIVE: + serviceImpl.markAsActive( + (com.google.chat.v1.MarkAsActiveRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_MARK_AS_AWAY: + serviceImpl.markAsAway( + (com.google.chat.v1.MarkAsAwayRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_MARK_AS_DO_NOT_DISTURB: + serviceImpl.markAsDoNotDisturb( + (com.google.chat.v1.MarkAsDoNotDisturbRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_AVAILABILITY: + serviceImpl.updateAvailability( + (com.google.chat.v1.UpdateAvailabilityRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_GET_SPACE_EVENT: serviceImpl.getSpaceEvent( (com.google.chat.v1.GetSpaceEventRequest) request, @@ -9181,6 +9972,36 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.chat.v1.GetThreadReadStateRequest, com.google.chat.v1.ThreadReadState>(service, METHODID_GET_THREAD_READ_STATE))) + .addMethod( + getGetAvailabilityMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.chat.v1.GetAvailabilityRequest, com.google.chat.v1.Availability>( + service, METHODID_GET_AVAILABILITY))) + .addMethod( + getMarkAsActiveMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.chat.v1.MarkAsActiveRequest, com.google.chat.v1.Availability>( + service, METHODID_MARK_AS_ACTIVE))) + .addMethod( + getMarkAsAwayMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.chat.v1.MarkAsAwayRequest, com.google.chat.v1.Availability>( + service, METHODID_MARK_AS_AWAY))) + .addMethod( + getMarkAsDoNotDisturbMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.chat.v1.MarkAsDoNotDisturbRequest, com.google.chat.v1.Availability>( + service, METHODID_MARK_AS_DO_NOT_DISTURB))) + .addMethod( + getUpdateAvailabilityMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.chat.v1.UpdateAvailabilityRequest, com.google.chat.v1.Availability>( + service, METHODID_UPDATE_AVAILABILITY))) .addMethod( getGetSpaceEventMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -9336,6 +10157,11 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getGetSpaceReadStateMethod()) .addMethod(getUpdateSpaceReadStateMethod()) .addMethod(getGetThreadReadStateMethod()) + .addMethod(getGetAvailabilityMethod()) + .addMethod(getMarkAsActiveMethod()) + .addMethod(getMarkAsAwayMethod()) + .addMethod(getMarkAsDoNotDisturbMethod()) + .addMethod(getUpdateAvailabilityMethod()) .addMethod(getGetSpaceEventMethod()) .addMethod(getListSpaceEventsMethod()) .addMethod(getGetSpaceNotificationSettingMethod()) diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Availability.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Availability.java new file mode 100644 index 000000000000..1816b9ab1c80 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Availability.java @@ -0,0 +1,1769 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/chat/v1/availability.proto +// Protobuf Java Version: 4.33.2 + +package com.google.chat.v1; + +/** + * + * + *
                + * Represents a user's current availability information in Google Chat,
                + * including their state (for example, Active, Away, Do Not Disturb) and any
                + * custom status.
                + * 
                + * + * Protobuf type {@code google.chat.v1.Availability} + */ +@com.google.protobuf.Generated +public final class Availability extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.chat.v1.Availability) + AvailabilityOrBuilder { + 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= */ "", + "Availability"); + } + + // Use Availability.newBuilder() to construct. + private Availability(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Availability() { + name_ = ""; + state_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.AvailabilityProto + .internal_static_google_chat_v1_Availability_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.AvailabilityProto + .internal_static_google_chat_v1_Availability_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.Availability.class, com.google.chat.v1.Availability.Builder.class); + } + + /** + * + * + *
                +   * Represents the current availability state of the user.
                +   * 
                + * + * Protobuf enum {@code google.chat.v1.Availability.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                +     * Default value. The state is unspecified.
                +     * 
                + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
                +     * The user is currently active, based on recent activity.
                +     * 
                + * + * ACTIVE = 1; + */ + ACTIVE(1), + /** + * + * + *
                +     * The user is currently idle. This state indicates a period of inactivity
                +     * after being ACTIVE, before potentially transitioning to AWAY.
                +     * 
                + * + * IDLE = 2; + */ + IDLE(2), + /** + * + * + *
                +     * The user is currently away. This can be either automatically set after
                +     * a period of inactivity in ACTIVE or IDLE state, or it can be manually set
                +     * by the user. When manually set via `MarkAsAway`, this state persists
                +     * regardless of user activity.
                +     * 
                + * + * AWAY = 3; + */ + AWAY(3), + /** + * + * + *
                +     * The user is in Do Not Disturb state, which is manually set.
                +     * 
                + * + * DO_NOT_DISTURB = 4; + */ + DO_NOT_DISTURB(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
                +     * Default value. The state is unspecified.
                +     * 
                + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                +     * The user is currently active, based on recent activity.
                +     * 
                + * + * ACTIVE = 1; + */ + public static final int ACTIVE_VALUE = 1; + + /** + * + * + *
                +     * The user is currently idle. This state indicates a period of inactivity
                +     * after being ACTIVE, before potentially transitioning to AWAY.
                +     * 
                + * + * IDLE = 2; + */ + public static final int IDLE_VALUE = 2; + + /** + * + * + *
                +     * The user is currently away. This can be either automatically set after
                +     * a period of inactivity in ACTIVE or IDLE state, or it can be manually set
                +     * by the user. When manually set via `MarkAsAway`, this state persists
                +     * regardless of user activity.
                +     * 
                + * + * AWAY = 3; + */ + public static final int AWAY_VALUE = 3; + + /** + * + * + *
                +     * The user is in Do Not Disturb state, which is manually set.
                +     * 
                + * + * DO_NOT_DISTURB = 4; + */ + public static final int DO_NOT_DISTURB_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return ACTIVE; + case 2: + return IDLE; + case 3: + return AWAY; + case 4: + return DO_NOT_DISTURB; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.chat.v1.Availability.getDescriptor().getEnumTypes().get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.chat.v1.Availability.State) + } + + private int bitField0_; + private int stateMetadataCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object stateMetadata_; + + public enum StateMetadataCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + DO_NOT_DISTURB_METADATA(3), + STATEMETADATA_NOT_SET(0); + private final int value; + + private StateMetadataCase(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 StateMetadataCase valueOf(int value) { + return forNumber(value); + } + + public static StateMetadataCase forNumber(int value) { + switch (value) { + case 3: + return DO_NOT_DISTURB_METADATA; + case 0: + return STATEMETADATA_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public StateMetadataCase getStateMetadataCase() { + return StateMetadataCase.forNumber(stateMetadataCase_); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                +   * Identifier. Resource name of the user's availability.
                +   *
                +   * Format: `users/{user}/availability`
                +   *
                +   * `{user}` is the id for the Person in the People API or Admin SDK directory
                +   * API. For example, `users/123456789`.
                +   *
                +   * The user's email address or `me` can also be used as an alias to refer to
                +   * the caller.  For example, `users/user@example.com` or `users/me`.
                +   * 
                + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
                +   * Identifier. Resource name of the user's availability.
                +   *
                +   * Format: `users/{user}/availability`
                +   *
                +   * `{user}` is the id for the Person in the People API or Admin SDK directory
                +   * API. For example, `users/123456789`.
                +   *
                +   * The user's email address or `me` can also be used as an alias to refer to
                +   * the caller.  For example, `users/user@example.com` or `users/me`.
                +   * 
                + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 2; + private int state_ = 0; + + /** + * + * + *
                +   * Output only. The user's current availability state.
                +   * 
                + * + * + * .google.chat.v1.Availability.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
                +   * Output only. The user's current availability state.
                +   * 
                + * + * + * .google.chat.v1.Availability.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.chat.v1.Availability.State getState() { + com.google.chat.v1.Availability.State result = + com.google.chat.v1.Availability.State.forNumber(state_); + return result == null ? com.google.chat.v1.Availability.State.UNRECOGNIZED : result; + } + + public static final int DO_NOT_DISTURB_METADATA_FIELD_NUMBER = 3; + + /** + * + * + *
                +   * Output only. Metadata if the user state is set to DO_NOT_DISTURB.
                +   * 
                + * + * + * .google.chat.v1.DoNotDisturbMetadata do_not_disturb_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the doNotDisturbMetadata field is set. + */ + @java.lang.Override + public boolean hasDoNotDisturbMetadata() { + return stateMetadataCase_ == 3; + } + + /** + * + * + *
                +   * Output only. Metadata if the user state is set to DO_NOT_DISTURB.
                +   * 
                + * + * + * .google.chat.v1.DoNotDisturbMetadata do_not_disturb_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The doNotDisturbMetadata. + */ + @java.lang.Override + public com.google.chat.v1.DoNotDisturbMetadata getDoNotDisturbMetadata() { + if (stateMetadataCase_ == 3) { + return (com.google.chat.v1.DoNotDisturbMetadata) stateMetadata_; + } + return com.google.chat.v1.DoNotDisturbMetadata.getDefaultInstance(); + } + + /** + * + * + *
                +   * Output only. Metadata if the user state is set to DO_NOT_DISTURB.
                +   * 
                + * + * + * .google.chat.v1.DoNotDisturbMetadata do_not_disturb_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.chat.v1.DoNotDisturbMetadataOrBuilder getDoNotDisturbMetadataOrBuilder() { + if (stateMetadataCase_ == 3) { + return (com.google.chat.v1.DoNotDisturbMetadata) stateMetadata_; + } + return com.google.chat.v1.DoNotDisturbMetadata.getDefaultInstance(); + } + + public static final int CUSTOM_STATUS_FIELD_NUMBER = 4; + private com.google.chat.v1.CustomStatus customStatus_; + + /** + * + * + *
                +   * Optional. The user's custom status.
                +   * 
                + * + * .google.chat.v1.CustomStatus custom_status = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the customStatus field is set. + */ + @java.lang.Override + public boolean hasCustomStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                +   * Optional. The user's custom status.
                +   * 
                + * + * .google.chat.v1.CustomStatus custom_status = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The customStatus. + */ + @java.lang.Override + public com.google.chat.v1.CustomStatus getCustomStatus() { + return customStatus_ == null + ? com.google.chat.v1.CustomStatus.getDefaultInstance() + : customStatus_; + } + + /** + * + * + *
                +   * Optional. The user's custom status.
                +   * 
                + * + * .google.chat.v1.CustomStatus custom_status = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.chat.v1.CustomStatusOrBuilder getCustomStatusOrBuilder() { + return customStatus_ == null + ? com.google.chat.v1.CustomStatus.getDefaultInstance() + : customStatus_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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 (state_ != com.google.chat.v1.Availability.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, state_); + } + if (stateMetadataCase_ == 3) { + output.writeMessage(3, (com.google.chat.v1.DoNotDisturbMetadata) stateMetadata_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getCustomStatus()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (state_ != com.google.chat.v1.Availability.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); + } + if (stateMetadataCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.chat.v1.DoNotDisturbMetadata) stateMetadata_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCustomStatus()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.chat.v1.Availability)) { + return super.equals(obj); + } + com.google.chat.v1.Availability other = (com.google.chat.v1.Availability) obj; + + if (!getName().equals(other.getName())) return false; + if (state_ != other.state_) return false; + if (hasCustomStatus() != other.hasCustomStatus()) return false; + if (hasCustomStatus()) { + if (!getCustomStatus().equals(other.getCustomStatus())) return false; + } + if (!getStateMetadataCase().equals(other.getStateMetadataCase())) return false; + switch (stateMetadataCase_) { + case 3: + if (!getDoNotDisturbMetadata().equals(other.getDoNotDisturbMetadata())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + if (hasCustomStatus()) { + hash = (37 * hash) + CUSTOM_STATUS_FIELD_NUMBER; + hash = (53 * hash) + getCustomStatus().hashCode(); + } + switch (stateMetadataCase_) { + case 3: + hash = (37 * hash) + DO_NOT_DISTURB_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getDoNotDisturbMetadata().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.chat.v1.Availability parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.Availability parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.Availability parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.Availability parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.Availability parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.Availability parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.Availability parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.Availability parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.Availability parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.chat.v1.Availability parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.Availability parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.Availability parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.chat.v1.Availability prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 user's current availability information in Google Chat,
                +   * including their state (for example, Active, Away, Do Not Disturb) and any
                +   * custom status.
                +   * 
                + * + * Protobuf type {@code google.chat.v1.Availability} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.chat.v1.Availability) + com.google.chat.v1.AvailabilityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.AvailabilityProto + .internal_static_google_chat_v1_Availability_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.AvailabilityProto + .internal_static_google_chat_v1_Availability_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.Availability.class, com.google.chat.v1.Availability.Builder.class); + } + + // Construct using com.google.chat.v1.Availability.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCustomStatusFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + state_ = 0; + if (doNotDisturbMetadataBuilder_ != null) { + doNotDisturbMetadataBuilder_.clear(); + } + customStatus_ = null; + if (customStatusBuilder_ != null) { + customStatusBuilder_.dispose(); + customStatusBuilder_ = null; + } + stateMetadataCase_ = 0; + stateMetadata_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.chat.v1.AvailabilityProto + .internal_static_google_chat_v1_Availability_descriptor; + } + + @java.lang.Override + public com.google.chat.v1.Availability getDefaultInstanceForType() { + return com.google.chat.v1.Availability.getDefaultInstance(); + } + + @java.lang.Override + public com.google.chat.v1.Availability build() { + com.google.chat.v1.Availability result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.chat.v1.Availability buildPartial() { + com.google.chat.v1.Availability result = new com.google.chat.v1.Availability(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.chat.v1.Availability result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.state_ = state_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.customStatus_ = + customStatusBuilder_ == null ? customStatus_ : customStatusBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.chat.v1.Availability result) { + result.stateMetadataCase_ = stateMetadataCase_; + result.stateMetadata_ = this.stateMetadata_; + if (stateMetadataCase_ == 3 && doNotDisturbMetadataBuilder_ != null) { + result.stateMetadata_ = doNotDisturbMetadataBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.chat.v1.Availability) { + return mergeFrom((com.google.chat.v1.Availability) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.chat.v1.Availability other) { + if (other == com.google.chat.v1.Availability.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.hasCustomStatus()) { + mergeCustomStatus(other.getCustomStatus()); + } + switch (other.getStateMetadataCase()) { + case DO_NOT_DISTURB_METADATA: + { + mergeDoNotDisturbMetadata(other.getDoNotDisturbMetadata()); + break; + } + case STATEMETADATA_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_ |= 0x00000001; + break; + } // case 10 + case 16: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + input.readMessage( + internalGetDoNotDisturbMetadataFieldBuilder().getBuilder(), extensionRegistry); + stateMetadataCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetCustomStatusFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int stateMetadataCase_ = 0; + private java.lang.Object stateMetadata_; + + public StateMetadataCase getStateMetadataCase() { + return StateMetadataCase.forNumber(stateMetadataCase_); + } + + public Builder clearStateMetadata() { + stateMetadataCase_ = 0; + stateMetadata_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
                +     * Identifier. Resource name of the user's availability.
                +     *
                +     * Format: `users/{user}/availability`
                +     *
                +     * `{user}` is the id for the Person in the People API or Admin SDK directory
                +     * API. For example, `users/123456789`.
                +     *
                +     * The user's email address or `me` can also be used as an alias to refer to
                +     * the caller.  For example, `users/user@example.com` or `users/me`.
                +     * 
                + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                +     * Identifier. Resource name of the user's availability.
                +     *
                +     * Format: `users/{user}/availability`
                +     *
                +     * `{user}` is the id for the Person in the People API or Admin SDK directory
                +     * API. For example, `users/123456789`.
                +     *
                +     * The user's email address or `me` can also be used as an alias to refer to
                +     * the caller.  For example, `users/user@example.com` or `users/me`.
                +     * 
                + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                +     * Identifier. Resource name of the user's availability.
                +     *
                +     * Format: `users/{user}/availability`
                +     *
                +     * `{user}` is the id for the Person in the People API or Admin SDK directory
                +     * API. For example, `users/123456789`.
                +     *
                +     * The user's email address or `me` can also be used as an alias to refer to
                +     * the caller.  For example, `users/user@example.com` or `users/me`.
                +     * 
                + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Identifier. Resource name of the user's availability.
                +     *
                +     * Format: `users/{user}/availability`
                +     *
                +     * `{user}` is the id for the Person in the People API or Admin SDK directory
                +     * API. For example, `users/123456789`.
                +     *
                +     * The user's email address or `me` can also be used as an alias to refer to
                +     * the caller.  For example, `users/user@example.com` or `users/me`.
                +     * 
                + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Identifier. Resource name of the user's availability.
                +     *
                +     * Format: `users/{user}/availability`
                +     *
                +     * `{user}` is the id for the Person in the People API or Admin SDK directory
                +     * API. For example, `users/123456789`.
                +     *
                +     * The user's email address or `me` can also be used as an alias to refer to
                +     * the caller.  For example, `users/user@example.com` or `users/me`.
                +     * 
                + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int state_ = 0; + + /** + * + * + *
                +     * Output only. The user's current availability state.
                +     * 
                + * + * + * .google.chat.v1.Availability.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
                +     * Output only. The user's current availability state.
                +     * 
                + * + * + * .google.chat.v1.Availability.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. The user's current availability state.
                +     * 
                + * + * + * .google.chat.v1.Availability.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.chat.v1.Availability.State getState() { + com.google.chat.v1.Availability.State result = + com.google.chat.v1.Availability.State.forNumber(state_); + return result == null ? com.google.chat.v1.Availability.State.UNRECOGNIZED : result; + } + + /** + * + * + *
                +     * Output only. The user's current availability state.
                +     * 
                + * + * + * .google.chat.v1.Availability.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.chat.v1.Availability.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. The user's current availability state.
                +     * 
                + * + * + * .google.chat.v1.Availability.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000002); + state_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.chat.v1.DoNotDisturbMetadata, + com.google.chat.v1.DoNotDisturbMetadata.Builder, + com.google.chat.v1.DoNotDisturbMetadataOrBuilder> + doNotDisturbMetadataBuilder_; + + /** + * + * + *
                +     * Output only. Metadata if the user state is set to DO_NOT_DISTURB.
                +     * 
                + * + * + * .google.chat.v1.DoNotDisturbMetadata do_not_disturb_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the doNotDisturbMetadata field is set. + */ + @java.lang.Override + public boolean hasDoNotDisturbMetadata() { + return stateMetadataCase_ == 3; + } + + /** + * + * + *
                +     * Output only. Metadata if the user state is set to DO_NOT_DISTURB.
                +     * 
                + * + * + * .google.chat.v1.DoNotDisturbMetadata do_not_disturb_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The doNotDisturbMetadata. + */ + @java.lang.Override + public com.google.chat.v1.DoNotDisturbMetadata getDoNotDisturbMetadata() { + if (doNotDisturbMetadataBuilder_ == null) { + if (stateMetadataCase_ == 3) { + return (com.google.chat.v1.DoNotDisturbMetadata) stateMetadata_; + } + return com.google.chat.v1.DoNotDisturbMetadata.getDefaultInstance(); + } else { + if (stateMetadataCase_ == 3) { + return doNotDisturbMetadataBuilder_.getMessage(); + } + return com.google.chat.v1.DoNotDisturbMetadata.getDefaultInstance(); + } + } + + /** + * + * + *
                +     * Output only. Metadata if the user state is set to DO_NOT_DISTURB.
                +     * 
                + * + * + * .google.chat.v1.DoNotDisturbMetadata do_not_disturb_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDoNotDisturbMetadata(com.google.chat.v1.DoNotDisturbMetadata value) { + if (doNotDisturbMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stateMetadata_ = value; + onChanged(); + } else { + doNotDisturbMetadataBuilder_.setMessage(value); + } + stateMetadataCase_ = 3; + return this; + } + + /** + * + * + *
                +     * Output only. Metadata if the user state is set to DO_NOT_DISTURB.
                +     * 
                + * + * + * .google.chat.v1.DoNotDisturbMetadata do_not_disturb_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDoNotDisturbMetadata( + com.google.chat.v1.DoNotDisturbMetadata.Builder builderForValue) { + if (doNotDisturbMetadataBuilder_ == null) { + stateMetadata_ = builderForValue.build(); + onChanged(); + } else { + doNotDisturbMetadataBuilder_.setMessage(builderForValue.build()); + } + stateMetadataCase_ = 3; + return this; + } + + /** + * + * + *
                +     * Output only. Metadata if the user state is set to DO_NOT_DISTURB.
                +     * 
                + * + * + * .google.chat.v1.DoNotDisturbMetadata do_not_disturb_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeDoNotDisturbMetadata(com.google.chat.v1.DoNotDisturbMetadata value) { + if (doNotDisturbMetadataBuilder_ == null) { + if (stateMetadataCase_ == 3 + && stateMetadata_ != com.google.chat.v1.DoNotDisturbMetadata.getDefaultInstance()) { + stateMetadata_ = + com.google.chat.v1.DoNotDisturbMetadata.newBuilder( + (com.google.chat.v1.DoNotDisturbMetadata) stateMetadata_) + .mergeFrom(value) + .buildPartial(); + } else { + stateMetadata_ = value; + } + onChanged(); + } else { + if (stateMetadataCase_ == 3) { + doNotDisturbMetadataBuilder_.mergeFrom(value); + } else { + doNotDisturbMetadataBuilder_.setMessage(value); + } + } + stateMetadataCase_ = 3; + return this; + } + + /** + * + * + *
                +     * Output only. Metadata if the user state is set to DO_NOT_DISTURB.
                +     * 
                + * + * + * .google.chat.v1.DoNotDisturbMetadata do_not_disturb_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDoNotDisturbMetadata() { + if (doNotDisturbMetadataBuilder_ == null) { + if (stateMetadataCase_ == 3) { + stateMetadataCase_ = 0; + stateMetadata_ = null; + onChanged(); + } + } else { + if (stateMetadataCase_ == 3) { + stateMetadataCase_ = 0; + stateMetadata_ = null; + } + doNotDisturbMetadataBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                +     * Output only. Metadata if the user state is set to DO_NOT_DISTURB.
                +     * 
                + * + * + * .google.chat.v1.DoNotDisturbMetadata do_not_disturb_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.chat.v1.DoNotDisturbMetadata.Builder getDoNotDisturbMetadataBuilder() { + return internalGetDoNotDisturbMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
                +     * Output only. Metadata if the user state is set to DO_NOT_DISTURB.
                +     * 
                + * + * + * .google.chat.v1.DoNotDisturbMetadata do_not_disturb_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.chat.v1.DoNotDisturbMetadataOrBuilder getDoNotDisturbMetadataOrBuilder() { + if ((stateMetadataCase_ == 3) && (doNotDisturbMetadataBuilder_ != null)) { + return doNotDisturbMetadataBuilder_.getMessageOrBuilder(); + } else { + if (stateMetadataCase_ == 3) { + return (com.google.chat.v1.DoNotDisturbMetadata) stateMetadata_; + } + return com.google.chat.v1.DoNotDisturbMetadata.getDefaultInstance(); + } + } + + /** + * + * + *
                +     * Output only. Metadata if the user state is set to DO_NOT_DISTURB.
                +     * 
                + * + * + * .google.chat.v1.DoNotDisturbMetadata do_not_disturb_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.chat.v1.DoNotDisturbMetadata, + com.google.chat.v1.DoNotDisturbMetadata.Builder, + com.google.chat.v1.DoNotDisturbMetadataOrBuilder> + internalGetDoNotDisturbMetadataFieldBuilder() { + if (doNotDisturbMetadataBuilder_ == null) { + if (!(stateMetadataCase_ == 3)) { + stateMetadata_ = com.google.chat.v1.DoNotDisturbMetadata.getDefaultInstance(); + } + doNotDisturbMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.chat.v1.DoNotDisturbMetadata, + com.google.chat.v1.DoNotDisturbMetadata.Builder, + com.google.chat.v1.DoNotDisturbMetadataOrBuilder>( + (com.google.chat.v1.DoNotDisturbMetadata) stateMetadata_, + getParentForChildren(), + isClean()); + stateMetadata_ = null; + } + stateMetadataCase_ = 3; + onChanged(); + return doNotDisturbMetadataBuilder_; + } + + private com.google.chat.v1.CustomStatus customStatus_; + private com.google.protobuf.SingleFieldBuilder< + com.google.chat.v1.CustomStatus, + com.google.chat.v1.CustomStatus.Builder, + com.google.chat.v1.CustomStatusOrBuilder> + customStatusBuilder_; + + /** + * + * + *
                +     * Optional. The user's custom status.
                +     * 
                + * + * + * .google.chat.v1.CustomStatus custom_status = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the customStatus field is set. + */ + public boolean hasCustomStatus() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
                +     * Optional. The user's custom status.
                +     * 
                + * + * + * .google.chat.v1.CustomStatus custom_status = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The customStatus. + */ + public com.google.chat.v1.CustomStatus getCustomStatus() { + if (customStatusBuilder_ == null) { + return customStatus_ == null + ? com.google.chat.v1.CustomStatus.getDefaultInstance() + : customStatus_; + } else { + return customStatusBuilder_.getMessage(); + } + } + + /** + * + * + *
                +     * Optional. The user's custom status.
                +     * 
                + * + * + * .google.chat.v1.CustomStatus custom_status = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCustomStatus(com.google.chat.v1.CustomStatus value) { + if (customStatusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customStatus_ = value; + } else { + customStatusBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. The user's custom status.
                +     * 
                + * + * + * .google.chat.v1.CustomStatus custom_status = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCustomStatus(com.google.chat.v1.CustomStatus.Builder builderForValue) { + if (customStatusBuilder_ == null) { + customStatus_ = builderForValue.build(); + } else { + customStatusBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. The user's custom status.
                +     * 
                + * + * + * .google.chat.v1.CustomStatus custom_status = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeCustomStatus(com.google.chat.v1.CustomStatus value) { + if (customStatusBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && customStatus_ != null + && customStatus_ != com.google.chat.v1.CustomStatus.getDefaultInstance()) { + getCustomStatusBuilder().mergeFrom(value); + } else { + customStatus_ = value; + } + } else { + customStatusBuilder_.mergeFrom(value); + } + if (customStatus_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
                +     * Optional. The user's custom status.
                +     * 
                + * + * + * .google.chat.v1.CustomStatus custom_status = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCustomStatus() { + bitField0_ = (bitField0_ & ~0x00000008); + customStatus_ = null; + if (customStatusBuilder_ != null) { + customStatusBuilder_.dispose(); + customStatusBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. The user's custom status.
                +     * 
                + * + * + * .google.chat.v1.CustomStatus custom_status = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.chat.v1.CustomStatus.Builder getCustomStatusBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetCustomStatusFieldBuilder().getBuilder(); + } + + /** + * + * + *
                +     * Optional. The user's custom status.
                +     * 
                + * + * + * .google.chat.v1.CustomStatus custom_status = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.chat.v1.CustomStatusOrBuilder getCustomStatusOrBuilder() { + if (customStatusBuilder_ != null) { + return customStatusBuilder_.getMessageOrBuilder(); + } else { + return customStatus_ == null + ? com.google.chat.v1.CustomStatus.getDefaultInstance() + : customStatus_; + } + } + + /** + * + * + *
                +     * Optional. The user's custom status.
                +     * 
                + * + * + * .google.chat.v1.CustomStatus custom_status = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.chat.v1.CustomStatus, + com.google.chat.v1.CustomStatus.Builder, + com.google.chat.v1.CustomStatusOrBuilder> + internalGetCustomStatusFieldBuilder() { + if (customStatusBuilder_ == null) { + customStatusBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.chat.v1.CustomStatus, + com.google.chat.v1.CustomStatus.Builder, + com.google.chat.v1.CustomStatusOrBuilder>( + getCustomStatus(), getParentForChildren(), isClean()); + customStatus_ = null; + } + return customStatusBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.chat.v1.Availability) + } + + // @@protoc_insertion_point(class_scope:google.chat.v1.Availability) + private static final com.google.chat.v1.Availability DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.chat.v1.Availability(); + } + + public static com.google.chat.v1.Availability getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Availability parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.chat.v1.Availability getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/AvailabilityName.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/AvailabilityName.java new file mode 100644 index 000000000000..38b8589495bd --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/AvailabilityName.java @@ -0,0 +1,168 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.chat.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 AvailabilityName implements ResourceName { + private static final PathTemplate USER = + PathTemplate.createWithoutUrlEncoding("users/{user}/availability"); + private volatile Map fieldValuesMap; + private final String user; + + @Deprecated + protected AvailabilityName() { + user = null; + } + + private AvailabilityName(Builder builder) { + user = Preconditions.checkNotNull(builder.getUser()); + } + + public String getUser() { + return user; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static AvailabilityName of(String user) { + return newBuilder().setUser(user).build(); + } + + public static String format(String user) { + return newBuilder().setUser(user).build().toString(); + } + + public static AvailabilityName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + USER.validatedMatch( + formattedString, "AvailabilityName.parse: formattedString not in valid format"); + return of(matchMap.get("user")); + } + + 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 (AvailabilityName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return USER.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (user != null) { + fieldMapBuilder.put("user", user); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return USER.instantiate("user", user); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + AvailabilityName that = ((AvailabilityName) o); + return Objects.equals(this.user, that.user); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(user); + return h; + } + + /** Builder for users/{user}/availability. */ + public static class Builder { + private String user; + + protected Builder() {} + + public String getUser() { + return user; + } + + public Builder setUser(String user) { + this.user = user; + return this; + } + + private Builder(AvailabilityName availabilityName) { + this.user = availabilityName.user; + } + + public AvailabilityName build() { + return new AvailabilityName(this); + } + } +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/AvailabilityOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/AvailabilityOrBuilder.java new file mode 100644 index 000000000000..e1e91c16bd95 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/AvailabilityOrBuilder.java @@ -0,0 +1,185 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/chat/v1/availability.proto +// Protobuf Java Version: 4.33.2 + +package com.google.chat.v1; + +@com.google.protobuf.Generated +public interface AvailabilityOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.chat.v1.Availability) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                +   * Identifier. Resource name of the user's availability.
                +   *
                +   * Format: `users/{user}/availability`
                +   *
                +   * `{user}` is the id for the Person in the People API or Admin SDK directory
                +   * API. For example, `users/123456789`.
                +   *
                +   * The user's email address or `me` can also be used as an alias to refer to
                +   * the caller.  For example, `users/user@example.com` or `users/me`.
                +   * 
                + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                +   * Identifier. Resource name of the user's availability.
                +   *
                +   * Format: `users/{user}/availability`
                +   *
                +   * `{user}` is the id for the Person in the People API or Admin SDK directory
                +   * API. For example, `users/123456789`.
                +   *
                +   * The user's email address or `me` can also be used as an alias to refer to
                +   * the caller.  For example, `users/user@example.com` or `users/me`.
                +   * 
                + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                +   * Output only. The user's current availability state.
                +   * 
                + * + * + * .google.chat.v1.Availability.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
                +   * Output only. The user's current availability state.
                +   * 
                + * + * + * .google.chat.v1.Availability.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.chat.v1.Availability.State getState(); + + /** + * + * + *
                +   * Output only. Metadata if the user state is set to DO_NOT_DISTURB.
                +   * 
                + * + * + * .google.chat.v1.DoNotDisturbMetadata do_not_disturb_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the doNotDisturbMetadata field is set. + */ + boolean hasDoNotDisturbMetadata(); + + /** + * + * + *
                +   * Output only. Metadata if the user state is set to DO_NOT_DISTURB.
                +   * 
                + * + * + * .google.chat.v1.DoNotDisturbMetadata do_not_disturb_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The doNotDisturbMetadata. + */ + com.google.chat.v1.DoNotDisturbMetadata getDoNotDisturbMetadata(); + + /** + * + * + *
                +   * Output only. Metadata if the user state is set to DO_NOT_DISTURB.
                +   * 
                + * + * + * .google.chat.v1.DoNotDisturbMetadata do_not_disturb_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.chat.v1.DoNotDisturbMetadataOrBuilder getDoNotDisturbMetadataOrBuilder(); + + /** + * + * + *
                +   * Optional. The user's custom status.
                +   * 
                + * + * .google.chat.v1.CustomStatus custom_status = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the customStatus field is set. + */ + boolean hasCustomStatus(); + + /** + * + * + *
                +   * Optional. The user's custom status.
                +   * 
                + * + * .google.chat.v1.CustomStatus custom_status = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The customStatus. + */ + com.google.chat.v1.CustomStatus getCustomStatus(); + + /** + * + * + *
                +   * Optional. The user's custom status.
                +   * 
                + * + * .google.chat.v1.CustomStatus custom_status = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.chat.v1.CustomStatusOrBuilder getCustomStatusOrBuilder(); + + com.google.chat.v1.Availability.StateMetadataCase getStateMetadataCase(); +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/AvailabilityProto.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/AvailabilityProto.java new file mode 100644 index 000000000000..a66151a37866 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/AvailabilityProto.java @@ -0,0 +1,231 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/chat/v1/availability.proto +// Protobuf Java Version: 4.33.2 + +package com.google.chat.v1; + +@com.google.protobuf.Generated +public final class AvailabilityProto extends com.google.protobuf.GeneratedFile { + private AvailabilityProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AvailabilityProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_chat_v1_Availability_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_chat_v1_Availability_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_chat_v1_CustomStatus_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_chat_v1_CustomStatus_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_chat_v1_DoNotDisturbMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_chat_v1_DoNotDisturbMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_chat_v1_GetAvailabilityRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_chat_v1_GetAvailabilityRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_chat_v1_UpdateAvailabilityRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_chat_v1_UpdateAvailabilityRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_chat_v1_MarkAsActiveRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_chat_v1_MarkAsActiveRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_chat_v1_MarkAsAwayRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_chat_v1_MarkAsAwayRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_chat_v1_MarkAsDoNotDisturbRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_chat_v1_MarkAsDoNotDisturbRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n" + + "!google/chat/v1/availability.proto\022\016goo" + + "gle.chat.v1\032\037google/api/field_behavior.p" + + "roto\032\031google/api/resource.proto\032\035google/" + + "chat/v1/reaction.proto\032\036google/protobuf/duration.proto\032" + + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\247\003\n" + + "\014Availability\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\0226\n" + + "\005state\030\002 \001(\0162\".google.chat.v1.Availability.StateB\003\340A\003\022L\n" + + "\027do_not_disturb_metadata\030\003" + + " \001(\0132$.google.chat.v1.DoNotDisturbMetadataB\003\340A\003H\000\0228\n\r" + + "custom_status\030\004 \001(\0132\034.google.chat.v1.CustomStatusB\003\340A\001\"R\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\n\n" + + "\006ACTIVE\020\001\022\010\n" + + "\004IDLE\020\002\022\010\n" + + "\004AWAY\020\003\022\022\n" + + "\016DO_NOT_DISTURB\020\004:^\352A[\n" + + " chat.googleapis.com/Availability\022\031users/" + + "{user}/availability*\016availabilities2\014availabilityB\020\n" + + "\016state_metadata\"\274\001\n" + + "\014CustomStatus\022\021\n" + + "\004text\030\001 \001(\tB\003\340A\002\022)\n" + + "\005emoji\030\002 \001(\0132\025.google.chat.v1.EmojiB\003\340A\002\0221\n" + + "\013expire_time\030\003 \001(\0132\032.google.protobuf.TimestampH\000\022-\n" + + "\003ttl\030\004 \001(\0132\031.google.protobuf.DurationB\003\340A\004H\000B\014\n\n" + + "expiration\"P\n" + + "\024DoNotDisturbMetadata\0228\n" + + "\017expiration_time\030\001" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\"P\n" + + "\026GetAvailabilityRequest\0226\n" + + "\004name\030\001 \001(\tB(\340A\002\372A\"\n" + + " chat.googleapis.com/Availability\"\212\001\n" + + "\031UpdateAvailabilityRequest\0227\n" + + "\014availability\030\001" + + " \001(\0132\034.google.chat.v1.AvailabilityB\003\340A\002\0224\n" + + "\013update_mask\030\002" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\270\001\n" + + "\023MarkAsActiveRequest\0226\n" + + "\004name\030\001 \001(\tB(\340A\002\372A\"\n" + + " chat.googleapis.com/Availability\0221\n" + + "\013expire_time\030\002 \001(\0132\032.google.protobuf.TimestampH\000\022(\n" + + "\003ttl\030\003 \001(\0132\031.google.protobuf.DurationH\000B\014\n\n" + + "expiration\"K\n" + + "\021MarkAsAwayRequest\0226\n" + + "\004name\030\001 \001(\tB(\340A\002\372A\"\n" + + " chat.googleapis.com/Availability\"\276\001\n" + + "\031MarkAsDoNotDisturbRequest\0226\n" + + "\004name\030\001 \001(\tB(\340A\002\372A\"\n" + + " chat.googleapis.com/Availability\0221\n" + + "\013expire_time\030\002 \001(\0132\032.google.protobuf.TimestampH\000\022(\n" + + "\003ttl\030\003 \001(\0132\031.google.protobuf.DurationH\000B\014\n\n" + + "expirationB\252\001\n" + + "\022com.google.chat.v1B\021AvailabilityProtoP\001Z,cloud.google.c" + + "om/go/chat/apiv1/chatpb;chatpb\242\002\013DYNAPIP" + + "roto\252\002\023Google.Apps.Chat.V1\312\002\023Google\\Apps" + + "\\Chat\\V1\352\002\026Google::Apps::Chat::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.chat.v1.ReactionProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_chat_v1_Availability_descriptor = getDescriptor().getMessageType(0); + internal_static_google_chat_v1_Availability_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_chat_v1_Availability_descriptor, + new java.lang.String[] { + "Name", "State", "DoNotDisturbMetadata", "CustomStatus", "StateMetadata", + }); + internal_static_google_chat_v1_CustomStatus_descriptor = getDescriptor().getMessageType(1); + internal_static_google_chat_v1_CustomStatus_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_chat_v1_CustomStatus_descriptor, + new java.lang.String[] { + "Text", "Emoji", "ExpireTime", "Ttl", "Expiration", + }); + internal_static_google_chat_v1_DoNotDisturbMetadata_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_chat_v1_DoNotDisturbMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_chat_v1_DoNotDisturbMetadata_descriptor, + new java.lang.String[] { + "ExpirationTime", + }); + internal_static_google_chat_v1_GetAvailabilityRequest_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_chat_v1_GetAvailabilityRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_chat_v1_GetAvailabilityRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_chat_v1_UpdateAvailabilityRequest_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_chat_v1_UpdateAvailabilityRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_chat_v1_UpdateAvailabilityRequest_descriptor, + new java.lang.String[] { + "Availability", "UpdateMask", + }); + internal_static_google_chat_v1_MarkAsActiveRequest_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_chat_v1_MarkAsActiveRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_chat_v1_MarkAsActiveRequest_descriptor, + new java.lang.String[] { + "Name", "ExpireTime", "Ttl", "Expiration", + }); + internal_static_google_chat_v1_MarkAsAwayRequest_descriptor = getDescriptor().getMessageType(6); + internal_static_google_chat_v1_MarkAsAwayRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_chat_v1_MarkAsAwayRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_chat_v1_MarkAsDoNotDisturbRequest_descriptor = + getDescriptor().getMessageType(7); + internal_static_google_chat_v1_MarkAsDoNotDisturbRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_chat_v1_MarkAsDoNotDisturbRequest_descriptor, + new java.lang.String[] { + "Name", "ExpireTime", "Ttl", "Expiration", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.chat.v1.ReactionProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ChatServiceProto.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ChatServiceProto.java index 5139ea4ce4fc..17fdf35b3c12 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ChatServiceProto.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ChatServiceProto.java @@ -51,216 +51,239 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n!google/chat/v1/chat_service.proto\022\016goo" + "gle.chat.v1\032\034google/api/annotations.prot" + "o\032\027google/api/client.proto\032\037google/chat/" - + "v1/attachment.proto\032\037google/chat/v1/memb" - + "ership.proto\032\034google/chat/v1/message.pro" - + "to\032\035google/chat/v1/reaction.proto\032\034googl" - + "e/chat/v1/section.proto\032\032google/chat/v1/" - + "space.proto\032 google/chat/v1/space_event." - + "proto\032/google/chat/v1/space_notification" - + "_setting.proto\032%google/chat/v1/space_rea" - + "d_state.proto\032 google/chat/v1/space_setu" - + "p.proto\032&google/chat/v1/thread_read_stat" - + "e.proto\032\033google/protobuf/empty.proto2\321@\n" - + "\013ChatService\022\233\001\n\rCreateMessage\022$.google." - + "chat.v1.CreateMessageRequest\032\027.google.ch" - + "at.v1.Message\"K\332A\031parent,message,message" - + "_id\202\323\344\223\002)\"\036/v1/{parent=spaces/*}/message" - + "s:\007message\022\212\001\n\014ListMessages\022#.google.cha" - + "t.v1.ListMessagesRequest\032$.google.chat.v" - + "1.ListMessagesResponse\"/\332A\006parent\202\323\344\223\002 \022" - + "\036/v1/{parent=spaces/*}/messages\022\222\001\n\017List" - + "Memberships\022&.google.chat.v1.ListMembers" - + "hipsRequest\032\'.google.chat.v1.ListMembers" - + "hipsResponse\".\332A\006parent\202\323\344\223\002\037\022\035/v1/{pare" - + "nt=spaces/*}/members\022\177\n\rGetMembership\022$." - + "google.chat.v1.GetMembershipRequest\032\032.go" - + "ogle.chat.v1.Membership\",\332A\004name\202\323\344\223\002\037\022\035" - + "/v1/{name=spaces/*/members/*}\022w\n\nGetMess" - + "age\022!.google.chat.v1.GetMessageRequest\032\027" - + ".google.chat.v1.Message\"-\332A\004name\202\323\344\223\002 \022\036" - + "/v1/{name=spaces/*/messages/*}\022\321\001\n\rUpdat" - + "eMessage\022$.google.chat.v1.UpdateMessageR" - + "equest\032\027.google.chat.v1.Message\"\200\001\332A\023mes" - + "sage,update_mask\202\323\344\223\002d\032&/v1/{message.nam" - + "e=spaces/*/messages/*}:\007messageZ12&/v1/{" - + "message.name=spaces/*/messages/*}:\007messa" - + "ge\022|\n\rDeleteMessage\022$.google.chat.v1.Del" - + "eteMessageRequest\032\026.google.protobuf.Empt" - + "y\"-\332A\004name\202\323\344\223\002 *\036/v1/{name=spaces/*/mes" - + "sages/*}\022\216\001\n\rGetAttachment\022$.google.chat" - + ".v1.GetAttachmentRequest\032\032.google.chat.v" - + "1.Attachment\";\332A\004name\202\323\344\223\002.\022,/v1/{name=s" - + "paces/*/messages/*/attachments/*}\022\232\001\n\020Up" - + "loadAttachment\022\'.google.chat.v1.UploadAt" - + "tachmentRequest\032(.google.chat.v1.UploadA" - + "ttachmentResponse\"3\202\323\344\223\002-\"(/v1/{parent=s" - + "paces/*}/attachments:upload:\001*\022j\n\nListSp" - + "aces\022!.google.chat.v1.ListSpacesRequest\032" - + "\".google.chat.v1.ListSpacesResponse\"\025\332A\000" - + "\202\323\344\223\002\014\022\n/v1/spaces\022w\n\014SearchSpaces\022#.goo" - + "gle.chat.v1.SearchSpacesRequest\032$.google" - + ".chat.v1.SearchSpacesResponse\"\034\332A\000\202\323\344\223\002\023" - + "\022\021/v1/spaces:search\022f\n\010GetSpace\022\037.google" - + ".chat.v1.GetSpaceRequest\032\025.google.chat.v" - + "1.Space\"\"\332A\004name\202\323\344\223\002\025\022\023/v1/{name=spaces" - + "/*}\022k\n\013CreateSpace\022\".google.chat.v1.Crea" - + "teSpaceRequest\032\025.google.chat.v1.Space\"!\332" - + "A\005space\202\323\344\223\002\023\"\n/v1/spaces:\005space\022c\n\nSetU" - + "pSpace\022!.google.chat.v1.SetUpSpaceReques" - + "t\032\025.google.chat.v1.Space\"\033\202\323\344\223\002\025\"\020/v1/sp" - + "aces:setup:\001*\022\206\001\n\013UpdateSpace\022\".google.c" - + "hat.v1.UpdateSpaceRequest\032\025.google.chat." - + "v1.Space\"<\332A\021space,update_mask\202\323\344\223\002\"2\031/v" - + "1/{space.name=spaces/*}:\005space\022m\n\013Delete" - + "Space\022\".google.chat.v1.DeleteSpaceReques" - + "t\032\026.google.protobuf.Empty\"\"\332A\004name\202\323\344\223\002\025" - + "*\023/v1/{name=spaces/*}\022\235\001\n\023CompleteImport" - + "Space\022*.google.chat.v1.CompleteImportSpa" - + "ceRequest\032+.google.chat.v1.CompleteImpor" - + "tSpaceResponse\"-\202\323\344\223\002\'\"\"/v1/{name=spaces" - + "/*}:completeImport:\001*\022z\n\021FindDirectMessa" - + "ge\022(.google.chat.v1.FindDirectMessageReq" - + "uest\032\025.google.chat.v1.Space\"$\202\323\344\223\002\036\022\034/v1" - + "/spaces:findDirectMessage\022\202\001\n\016FindGroupC" - + "hats\022%.google.chat.v1.FindGroupChatsRequ" - + "est\032&.google.chat.v1.FindGroupChatsRespo" - + "nse\"!\202\323\344\223\002\033\022\031/v1/spaces:findGroupChats\022\236" - + "\001\n\020CreateMembership\022\'.google.chat.v1.Cre" - + "ateMembershipRequest\032\032.google.chat.v1.Me" - + "mbership\"E\332A\021parent,membership\202\323\344\223\002+\"\035/v" - + "1/{parent=spaces/*}/members:\nmembership\022" - + "\256\001\n\020UpdateMembership\022\'.google.chat.v1.Up" - + "dateMembershipRequest\032\032.google.chat.v1.M" - + "embership\"U\332A\026membership,update_mask\202\323\344\223" - + "\00262(/v1/{membership.name=spaces/*/member" - + "s/*}:\nmembership\022\205\001\n\020DeleteMembership\022\'." - + "google.chat.v1.DeleteMembershipRequest\032\032" - + ".google.chat.v1.Membership\",\332A\004name\202\323\344\223\002" - + "\037*\035/v1/{name=spaces/*/members/*}\022\241\001\n\016Cre" - + "ateReaction\022%.google.chat.v1.CreateReact" - + "ionRequest\032\030.google.chat.v1.Reaction\"N\332A" - + "\017parent,reaction\202\323\344\223\0026\"*/v1/{parent=spac" - + "es/*/messages/*}/reactions:\010reaction\022\231\001\n" - + "\rListReactions\022$.google.chat.v1.ListReac" - + "tionsRequest\032%.google.chat.v1.ListReacti" - + "onsResponse\";\332A\006parent\202\323\344\223\002,\022*/v1/{paren" - + "t=spaces/*/messages/*}/reactions\022\212\001\n\016Del" - + "eteReaction\022%.google.chat.v1.DeleteReact" - + "ionRequest\032\026.google.protobuf.Empty\"9\332A\004n" - + "ame\202\323\344\223\002,**/v1/{name=spaces/*/messages/*" - + "/reactions/*}\022\221\001\n\021CreateCustomEmoji\022(.go" - + "ogle.chat.v1.CreateCustomEmojiRequest\032\033." - + "google.chat.v1.CustomEmoji\"5\332A\014custom_em" - + "oji\202\323\344\223\002 \"\020/v1/customEmojis:\014custom_emoj" - + "i\022~\n\016GetCustomEmoji\022%.google.chat.v1.Get" - + "CustomEmojiRequest\032\033.google.chat.v1.Cust" - + "omEmoji\"(\332A\004name\202\323\344\223\002\033\022\031/v1/{name=custom" - + "Emojis/*}\022\202\001\n\020ListCustomEmojis\022\'.google." - + "chat.v1.ListCustomEmojisRequest\032(.google" - + ".chat.v1.ListCustomEmojisResponse\"\033\332A\000\202\323" - + "\344\223\002\022\022\020/v1/customEmojis\022\177\n\021DeleteCustomEm" - + "oji\022(.google.chat.v1.DeleteCustomEmojiRe" - + "quest\032\026.google.protobuf.Empty\"(\332A\004name\202\323" - + "\344\223\002\033*\031/v1/{name=customEmojis/*}\022\230\001\n\021GetS" - + "paceReadState\022(.google.chat.v1.GetSpaceR" - + "eadStateRequest\032\036.google.chat.v1.SpaceRe" - + "adState\"9\332A\004name\202\323\344\223\002,\022*/v1/{name=users/" - + "*/spaces/*/spaceReadState}\022\331\001\n\024UpdateSpa" - + "ceReadState\022+.google.chat.v1.UpdateSpace" - + "ReadStateRequest\032\036.google.chat.v1.SpaceR" - + "eadState\"t\332A\034space_read_state,update_mas" - + "k\202\323\344\223\002O2;/v1/{space_read_state.name=user" - + "s/*/spaces/*/spaceReadState}:\020space_read" - + "_state\022\246\001\n\022GetThreadReadState\022).google.c" - + "hat.v1.GetThreadReadStateRequest\032\037.googl" - + "e.chat.v1.ThreadReadState\"D\332A\004name\202\323\344\223\0027" - + "\0225/v1/{name=users/*/spaces/*/threads/*/t" - + "hreadReadState}\022\203\001\n\rGetSpaceEvent\022$.goog" - + "le.chat.v1.GetSpaceEventRequest\032\032.google" - + ".chat.v1.SpaceEvent\"0\332A\004name\202\323\344\223\002#\022!/v1/" - + "{name=spaces/*/spaceEvents/*}\022\235\001\n\017ListSp" - + "aceEvents\022&.google.chat.v1.ListSpaceEven" - + "tsRequest\032\'.google.chat.v1.ListSpaceEven" - + "tsResponse\"9\332A\rparent,filter\202\323\344\223\002#\022!/v1/" - + "{parent=spaces/*}/spaceEvents\022\300\001\n\033GetSpa" - + "ceNotificationSetting\0222.google.chat.v1.G" - + "etSpaceNotificationSettingRequest\032(.goog" - + "le.chat.v1.SpaceNotificationSetting\"C\332A\004" - + "name\202\323\344\223\0026\0224/v1/{name=users/*/spaces/*/s" - + "paceNotificationSetting}\022\240\002\n\036UpdateSpace" - + "NotificationSetting\0225.google.chat.v1.Upd" - + "ateSpaceNotificationSettingRequest\032(.goo" - + "gle.chat.v1.SpaceNotificationSetting\"\234\001\332" - + "A&space_notification_setting,update_mask" - + "\202\323\344\223\002m2O/v1/{space_notification_setting." - + "name=users/*/spaces/*/spaceNotificationS" - + "etting}:\032space_notification_setting\022\217\001\n\r" - + "CreateSection\022$.google.chat.v1.CreateSec" - + "tionRequest\032\027.google.chat.v1.Section\"?\332A" - + "\016parent,section\202\323\344\223\002(\"\035/v1/{parent=users" - + "/*}/sections:\007section\022{\n\rDeleteSection\022$" - + ".google.chat.v1.DeleteSectionRequest\032\026.g" - + "oogle.protobuf.Empty\",\332A\004name\202\323\344\223\002\037*\035/v1" - + "/{name=users/*/sections/*}\022\234\001\n\rUpdateSec" - + "tion\022$.google.chat.v1.UpdateSectionReque" - + "st\032\027.google.chat.v1.Section\"L\332A\023section," - + "update_mask\202\323\344\223\00202%/v1/{section.name=use" - + "rs/*/sections/*}:\007section\022\211\001\n\014ListSectio" - + "ns\022#.google.chat.v1.ListSectionsRequest\032" - + "$.google.chat.v1.ListSectionsResponse\".\332" - + "A\006parent\202\323\344\223\002\037\022\035/v1/{parent=users/*}/sec" - + "tions\022\225\001\n\017PositionSection\022&.google.chat." - + "v1.PositionSectionRequest\032\'.google.chat." - + "v1.PositionSectionResponse\"1\202\323\344\223\002+\"&/v1/" - + "{name=users/*/sections/*}:position:\001*\022\235\001" - + "\n\020ListSectionItems\022\'.google.chat.v1.List" - + "SectionItemsRequest\032(.google.chat.v1.Lis" - + "tSectionItemsResponse\"6\332A\006parent\202\323\344\223\002\'\022%" - + "/v1/{parent=users/*/sections/*}/items\022\257\001" - + "\n\017MoveSectionItem\022&.google.chat.v1.MoveS" - + "ectionItemRequest\032\'.google.chat.v1.MoveS" - + "ectionItemResponse\"K\332A\023name,target_secti" - + "on\202\323\344\223\002/\"*/v1/{name=users/*/sections/*/i" - + "tems/*}:move:\001*\032\276\016\312A\023chat.googleapis.com" - + "\322A\244\016https://www.googleapis.com/auth/chat" - + ".admin.delete,https://www.googleapis.com" - + "/auth/chat.admin.memberships,https://www" - + ".googleapis.com/auth/chat.admin.membersh" - + "ips.readonly,https://www.googleapis.com/" - + "auth/chat.admin.spaces,https://www.googl" - + "eapis.com/auth/chat.admin.spaces.readonl" - + "y,https://www.googleapis.com/auth/chat.a" - + "pp.delete,https://www.googleapis.com/aut" - + "h/chat.app.memberships,https://www.googl" - + "eapis.com/auth/chat.app.memberships.read" - + "only,https://www.googleapis.com/auth/cha" - + "t.app.messages.readonly,https://www.goog" - + "leapis.com/auth/chat.app.spaces,https://" - + "www.googleapis.com/auth/chat.app.spaces." - + "create,https://www.googleapis.com/auth/c" - + "hat.app.spaces.readonly,https://www.goog" - + "leapis.com/auth/chat.bot,https://www.goo" - + "gleapis.com/auth/chat.customemojis,https" - + "://www.googleapis.com/auth/chat.customem" - + "ojis.readonly,https://www.googleapis.com" - + "/auth/chat.delete,https://www.googleapis" - + ".com/auth/chat.import,https://www.google" - + "apis.com/auth/chat.memberships,https://w" - + "ww.googleapis.com/auth/chat.memberships." - + "app,https://www.googleapis.com/auth/chat" - + ".memberships.readonly,https://www.google" - + "apis.com/auth/chat.messages,https://www." - + "googleapis.com/auth/chat.messages.create" - + ",https://www.googleapis.com/auth/chat.me" - + "ssages.reactions,https://www.googleapis." - + "com/auth/chat.messages.reactions.create," + + "v1/attachment.proto\032!google/chat/v1/avai" + + "lability.proto\032\037google/chat/v1/membershi" + + "p.proto\032\034google/chat/v1/message.proto\032\035g" + + "oogle/chat/v1/reaction.proto\032\034google/cha" + + "t/v1/section.proto\032\032google/chat/v1/space" + + ".proto\032 google/chat/v1/space_event.proto" + + "\032/google/chat/v1/space_notification_sett" + + "ing.proto\032%google/chat/v1/space_read_sta" + + "te.proto\032 google/chat/v1/space_setup.pro" + + "to\032&google/chat/v1/thread_read_state.pro" + + "to\032\033google/protobuf/empty.proto2\306G\n\013Chat" + + "Service\022\233\001\n\rCreateMessage\022$.google.chat." + + "v1.CreateMessageRequest\032\027.google.chat.v1" + + ".Message\"K\332A\031parent,message,message_id\202\323" + + "\344\223\002)\"\036/v1/{parent=spaces/*}/messages:\007me" + + "ssage\022\212\001\n\014ListMessages\022#.google.chat.v1." + + "ListMessagesRequest\032$.google.chat.v1.Lis" + + "tMessagesResponse\"/\332A\006parent\202\323\344\223\002 \022\036/v1/" + + "{parent=spaces/*}/messages\022\222\001\n\017ListMembe" + + "rships\022&.google.chat.v1.ListMembershipsR" + + "equest\032\'.google.chat.v1.ListMembershipsR" + + "esponse\".\332A\006parent\202\323\344\223\002\037\022\035/v1/{parent=sp" + + "aces/*}/members\022\177\n\rGetMembership\022$.googl" + + "e.chat.v1.GetMembershipRequest\032\032.google." + + "chat.v1.Membership\",\332A\004name\202\323\344\223\002\037\022\035/v1/{" + + "name=spaces/*/members/*}\022w\n\nGetMessage\022!" + + ".google.chat.v1.GetMessageRequest\032\027.goog" + + "le.chat.v1.Message\"-\332A\004name\202\323\344\223\002 \022\036/v1/{" + + "name=spaces/*/messages/*}\022\321\001\n\rUpdateMess" + + "age\022$.google.chat.v1.UpdateMessageReques" + + "t\032\027.google.chat.v1.Message\"\200\001\332A\023message," + + "update_mask\202\323\344\223\002d\032&/v1/{message.name=spa" + + "ces/*/messages/*}:\007messageZ12&/v1/{messa" + + "ge.name=spaces/*/messages/*}:\007message\022|\n" + + "\rDeleteMessage\022$.google.chat.v1.DeleteMe" + + "ssageRequest\032\026.google.protobuf.Empty\"-\332A" + + "\004name\202\323\344\223\002 *\036/v1/{name=spaces/*/messages" + + "/*}\022\216\001\n\rGetAttachment\022$.google.chat.v1.G" + + "etAttachmentRequest\032\032.google.chat.v1.Att" + + "achment\";\332A\004name\202\323\344\223\002.\022,/v1/{name=spaces" + + "/*/messages/*/attachments/*}\022\232\001\n\020UploadA" + + "ttachment\022\'.google.chat.v1.UploadAttachm" + + "entRequest\032(.google.chat.v1.UploadAttach" + + "mentResponse\"3\202\323\344\223\002-\"(/v1/{parent=spaces" + + "/*}/attachments:upload:\001*\022j\n\nListSpaces\022" + + "!.google.chat.v1.ListSpacesRequest\032\".goo" + + "gle.chat.v1.ListSpacesResponse\"\025\332A\000\202\323\344\223\002" + + "\014\022\n/v1/spaces\022w\n\014SearchSpaces\022#.google.c" + + "hat.v1.SearchSpacesRequest\032$.google.chat" + + ".v1.SearchSpacesResponse\"\034\332A\000\202\323\344\223\002\023\022\021/v1" + + "/spaces:search\022f\n\010GetSpace\022\037.google.chat" + + ".v1.GetSpaceRequest\032\025.google.chat.v1.Spa" + + "ce\"\"\332A\004name\202\323\344\223\002\025\022\023/v1/{name=spaces/*}\022k" + + "\n\013CreateSpace\022\".google.chat.v1.CreateSpa" + + "ceRequest\032\025.google.chat.v1.Space\"!\332A\005spa" + + "ce\202\323\344\223\002\023\"\n/v1/spaces:\005space\022c\n\nSetUpSpac" + + "e\022!.google.chat.v1.SetUpSpaceRequest\032\025.g" + + "oogle.chat.v1.Space\"\033\202\323\344\223\002\025\"\020/v1/spaces:" + + "setup:\001*\022\206\001\n\013UpdateSpace\022\".google.chat.v" + + "1.UpdateSpaceRequest\032\025.google.chat.v1.Sp" + + "ace\"<\332A\021space,update_mask\202\323\344\223\002\"2\031/v1/{sp" + + "ace.name=spaces/*}:\005space\022m\n\013DeleteSpace" + + "\022\".google.chat.v1.DeleteSpaceRequest\032\026.g" + + "oogle.protobuf.Empty\"\"\332A\004name\202\323\344\223\002\025*\023/v1" + + "/{name=spaces/*}\022\235\001\n\023CompleteImportSpace" + + "\022*.google.chat.v1.CompleteImportSpaceReq" + + "uest\032+.google.chat.v1.CompleteImportSpac" + + "eResponse\"-\202\323\344\223\002\'\"\"/v1/{name=spaces/*}:c" + + "ompleteImport:\001*\022z\n\021FindDirectMessage\022(." + + "google.chat.v1.FindDirectMessageRequest\032" + + "\025.google.chat.v1.Space\"$\202\323\344\223\002\036\022\034/v1/spac" + + "es:findDirectMessage\022\202\001\n\016FindGroupChats\022" + + "%.google.chat.v1.FindGroupChatsRequest\032&" + + ".google.chat.v1.FindGroupChatsResponse\"!" + + "\202\323\344\223\002\033\022\031/v1/spaces:findGroupChats\022\236\001\n\020Cr" + + "eateMembership\022\'.google.chat.v1.CreateMe" + + "mbershipRequest\032\032.google.chat.v1.Members" + + "hip\"E\332A\021parent,membership\202\323\344\223\002+\"\035/v1/{pa" + + "rent=spaces/*}/members:\nmembership\022\256\001\n\020U" + + "pdateMembership\022\'.google.chat.v1.UpdateM" + + "embershipRequest\032\032.google.chat.v1.Member" + + "ship\"U\332A\026membership,update_mask\202\323\344\223\00262(/" + + "v1/{membership.name=spaces/*/members/*}:" + + "\nmembership\022\205\001\n\020DeleteMembership\022\'.googl" + + "e.chat.v1.DeleteMembershipRequest\032\032.goog" + + "le.chat.v1.Membership\",\332A\004name\202\323\344\223\002\037*\035/v" + + "1/{name=spaces/*/members/*}\022\241\001\n\016CreateRe" + + "action\022%.google.chat.v1.CreateReactionRe" + + "quest\032\030.google.chat.v1.Reaction\"N\332A\017pare" + + "nt,reaction\202\323\344\223\0026\"*/v1/{parent=spaces/*/" + + "messages/*}/reactions:\010reaction\022\231\001\n\rList" + + "Reactions\022$.google.chat.v1.ListReactions" + + "Request\032%.google.chat.v1.ListReactionsRe" + + "sponse\";\332A\006parent\202\323\344\223\002,\022*/v1/{parent=spa" + + "ces/*/messages/*}/reactions\022\212\001\n\016DeleteRe" + + "action\022%.google.chat.v1.DeleteReactionRe" + + "quest\032\026.google.protobuf.Empty\"9\332A\004name\202\323" + + "\344\223\002,**/v1/{name=spaces/*/messages/*/reac" + + "tions/*}\022\221\001\n\021CreateCustomEmoji\022(.google." + + "chat.v1.CreateCustomEmojiRequest\032\033.googl" + + "e.chat.v1.CustomEmoji\"5\332A\014custom_emoji\202\323" + + "\344\223\002 \"\020/v1/customEmojis:\014custom_emoji\022~\n\016" + + "GetCustomEmoji\022%.google.chat.v1.GetCusto" + + "mEmojiRequest\032\033.google.chat.v1.CustomEmo" + + "ji\"(\332A\004name\202\323\344\223\002\033\022\031/v1/{name=customEmoji" + + "s/*}\022\202\001\n\020ListCustomEmojis\022\'.google.chat." + + "v1.ListCustomEmojisRequest\032(.google.chat" + + ".v1.ListCustomEmojisResponse\"\033\332A\000\202\323\344\223\002\022\022" + + "\020/v1/customEmojis\022\177\n\021DeleteCustomEmoji\022(" + + ".google.chat.v1.DeleteCustomEmojiRequest" + + "\032\026.google.protobuf.Empty\"(\332A\004name\202\323\344\223\002\033*" + + "\031/v1/{name=customEmojis/*}\022\230\001\n\021GetSpaceR" + + "eadState\022(.google.chat.v1.GetSpaceReadSt" + + "ateRequest\032\036.google.chat.v1.SpaceReadSta" + + "te\"9\332A\004name\202\323\344\223\002,\022*/v1/{name=users/*/spa" + + "ces/*/spaceReadState}\022\331\001\n\024UpdateSpaceRea" + + "dState\022+.google.chat.v1.UpdateSpaceReadS" + + "tateRequest\032\036.google.chat.v1.SpaceReadSt" + + "ate\"t\332A\034space_read_state,update_mask\202\323\344\223" + + "\002O2;/v1/{space_read_state.name=users/*/s" + + "paces/*/spaceReadState}:\020space_read_stat" + + "e\022\246\001\n\022GetThreadReadState\022).google.chat.v" + + "1.GetThreadReadStateRequest\032\037.google.cha" + + "t.v1.ThreadReadState\"D\332A\004name\202\323\344\223\0027\0225/v1" + + "/{name=users/*/spaces/*/threads/*/thread" + + "ReadState}\022\207\001\n\017GetAvailability\022&.google." + + "chat.v1.GetAvailabilityRequest\032\034.google." + + "chat.v1.Availability\".\332A\004name\202\323\344\223\002!\022\037/v1" + + "/{name=users/*/availability}\022\212\001\n\014MarkAsA" + + "ctive\022#.google.chat.v1.MarkAsActiveReque" + + "st\032\034.google.chat.v1.Availability\"7\202\323\344\223\0021" + + "\",/v1/{name=users/*/availability}:markAs" + + "Active:\001*\022\204\001\n\nMarkAsAway\022!.google.chat.v" + + "1.MarkAsAwayRequest\032\034.google.chat.v1.Ava" + + "ilability\"5\202\323\344\223\002/\"*/v1/{name=users/*/ava" + + "ilability}:markAsAway:\001*\022\234\001\n\022MarkAsDoNot" + + "Disturb\022).google.chat.v1.MarkAsDoNotDist" + + "urbRequest\032\034.google.chat.v1.Availability" + + "\"=\202\323\344\223\0027\"2/v1/{name=users/*/availability" + + "}:markAsDoNotDisturb:\001*\022\274\001\n\022UpdateAvaila" + + "bility\022).google.chat.v1.UpdateAvailabili" + + "tyRequest\032\034.google.chat.v1.Availability\"" + + "]\332A\030availability,update_mask\202\323\344\223\002<2,/v1/" + + "{availability.name=users/*/availability}" + + ":\014availability\022\203\001\n\rGetSpaceEvent\022$.googl" + + "e.chat.v1.GetSpaceEventRequest\032\032.google." + + "chat.v1.SpaceEvent\"0\332A\004name\202\323\344\223\002#\022!/v1/{" + + "name=spaces/*/spaceEvents/*}\022\235\001\n\017ListSpa" + + "ceEvents\022&.google.chat.v1.ListSpaceEvent" + + "sRequest\032\'.google.chat.v1.ListSpaceEvent" + + "sResponse\"9\332A\rparent,filter\202\323\344\223\002#\022!/v1/{" + + "parent=spaces/*}/spaceEvents\022\300\001\n\033GetSpac" + + "eNotificationSetting\0222.google.chat.v1.Ge" + + "tSpaceNotificationSettingRequest\032(.googl" + + "e.chat.v1.SpaceNotificationSetting\"C\332A\004n" + + "ame\202\323\344\223\0026\0224/v1/{name=users/*/spaces/*/sp" + + "aceNotificationSetting}\022\240\002\n\036UpdateSpaceN" + + "otificationSetting\0225.google.chat.v1.Upda" + + "teSpaceNotificationSettingRequest\032(.goog" + + "le.chat.v1.SpaceNotificationSetting\"\234\001\332A" + + "&space_notification_setting,update_mask\202" + + "\323\344\223\002m2O/v1/{space_notification_setting.n" + + "ame=users/*/spaces/*/spaceNotificationSe" + + "tting}:\032space_notification_setting\022\217\001\n\rC" + + "reateSection\022$.google.chat.v1.CreateSect" + + "ionRequest\032\027.google.chat.v1.Section\"?\332A\016" + + "parent,section\202\323\344\223\002(\"\035/v1/{parent=users/" + + "*}/sections:\007section\022{\n\rDeleteSection\022$." + + "google.chat.v1.DeleteSectionRequest\032\026.go" + + "ogle.protobuf.Empty\",\332A\004name\202\323\344\223\002\037*\035/v1/" + + "{name=users/*/sections/*}\022\234\001\n\rUpdateSect" + + "ion\022$.google.chat.v1.UpdateSectionReques" + + "t\032\027.google.chat.v1.Section\"L\332A\023section,u" + + "pdate_mask\202\323\344\223\00202%/v1/{section.name=user" + + "s/*/sections/*}:\007section\022\211\001\n\014ListSection" + + "s\022#.google.chat.v1.ListSectionsRequest\032$" + + ".google.chat.v1.ListSectionsResponse\".\332A" + + "\006parent\202\323\344\223\002\037\022\035/v1/{parent=users/*}/sect" + + "ions\022\225\001\n\017PositionSection\022&.google.chat.v" + + "1.PositionSectionRequest\032\'.google.chat.v" + + "1.PositionSectionResponse\"1\202\323\344\223\002+\"&/v1/{" + + "name=users/*/sections/*}:position:\001*\022\235\001\n" + + "\020ListSectionItems\022\'.google.chat.v1.ListS" + + "ectionItemsRequest\032(.google.chat.v1.List" + + "SectionItemsResponse\"6\332A\006parent\202\323\344\223\002\'\022%/" + + "v1/{parent=users/*/sections/*}/items\022\257\001\n" + + "\017MoveSectionItem\022&.google.chat.v1.MoveSe" + + "ctionItemRequest\032\'.google.chat.v1.MoveSe" + + "ctionItemResponse\"K\332A\023name,target_sectio" + + "n\202\323\344\223\002/\"*/v1/{name=users/*/sections/*/it" + + "ems/*}:move:\001*\032\267\017\312A\023chat.googleapis.com\322" + + "A\235\017https://www.googleapis.com/auth/chat." + + "admin.delete,https://www.googleapis.com/" + + "auth/chat.admin.memberships,https://www." + + "googleapis.com/auth/chat.admin.membershi" + + "ps.readonly,https://www.googleapis.com/a" + + "uth/chat.admin.spaces,https://www.google" + + "apis.com/auth/chat.admin.spaces.readonly" + + ",https://www.googleapis.com/auth/chat.ap" + + "p.delete,https://www.googleapis.com/auth" + + "/chat.app.memberships,https://www.google" + + "apis.com/auth/chat.app.memberships.reado" + + "nly,https://www.googleapis.com/auth/chat" + + ".app.messages.readonly,https://www.googl" + + "eapis.com/auth/chat.app.spaces,https://w" + + "ww.googleapis.com/auth/chat.app.spaces.c" + + "reate,https://www.googleapis.com/auth/ch" + + "at.app.spaces.readonly,https://www.googl" + + "eapis.com/auth/chat.bot,https://www.goog" + + "leapis.com/auth/chat.customemojis,https:" + + "//www.googleapis.com/auth/chat.customemo" + + "jis.readonly,https://www.googleapis.com/" + + "auth/chat.delete,https://www.googleapis." + + "com/auth/chat.import,https://www.googlea" + + "pis.com/auth/chat.memberships,https://ww" + + "w.googleapis.com/auth/chat.memberships.a" + + "pp,https://www.googleapis.com/auth/chat." + + "memberships.readonly,https://www.googlea" + + "pis.com/auth/chat.messages,https://www.g" + + "oogleapis.com/auth/chat.messages.create," + "https://www.googleapis.com/auth/chat.mes" - + "sages.reactions.readonly,https://www.goo" - + "gleapis.com/auth/chat.messages.readonly," - + "https://www.googleapis.com/auth/chat.spa" - + "ces,https://www.googleapis.com/auth/chat" - + ".spaces.create,https://www.googleapis.co" - + "m/auth/chat.spaces.readonly,https://www." + + "sages.reactions,https://www.googleapis.c" + + "om/auth/chat.messages.reactions.create,h" + + "ttps://www.googleapis.com/auth/chat.mess" + + "ages.reactions.readonly,https://www.goog" + + "leapis.com/auth/chat.messages.readonly,h" + + "ttps://www.googleapis.com/auth/chat.spac" + + "es,https://www.googleapis.com/auth/chat." + + "spaces.create,https://www.googleapis.com" + + "/auth/chat.spaces.readonly,https://www.g" + + "oogleapis.com/auth/chat.users.availabili" + + "ty,https://www.googleapis.com/auth/chat." + + "users.availability.readonly,https://www." + "googleapis.com/auth/chat.users.readstate" + ",https://www.googleapis.com/auth/chat.us" + "ers.readstate.readonly,https://www.googl" @@ -281,6 +304,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.AnnotationsProto.getDescriptor(), com.google.api.ClientProto.getDescriptor(), com.google.chat.v1.AttachmentProto.getDescriptor(), + com.google.chat.v1.AvailabilityProto.getDescriptor(), com.google.chat.v1.MembershipProto.getDescriptor(), com.google.chat.v1.MessageProto.getDescriptor(), com.google.chat.v1.ReactionProto.getDescriptor(), @@ -297,6 +321,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.AnnotationsProto.getDescriptor(); com.google.api.ClientProto.getDescriptor(); com.google.chat.v1.AttachmentProto.getDescriptor(); + com.google.chat.v1.AvailabilityProto.getDescriptor(); com.google.chat.v1.MembershipProto.getDescriptor(); com.google.chat.v1.MessageProto.getDescriptor(); com.google.chat.v1.ReactionProto.getDescriptor(); diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CustomStatus.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CustomStatus.java new file mode 100644 index 000000000000..bdfa5a2ee33e --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CustomStatus.java @@ -0,0 +1,1595 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/chat/v1/availability.proto +// Protobuf Java Version: 4.33.2 + +package com.google.chat.v1; + +/** + * + * + *
                + * Represents a user's custom status in Google Chat.
                + * This includes a short text message with an optional emoji that a user sets to
                + * give more context about their availability.
                + * 
                + * + * Protobuf type {@code google.chat.v1.CustomStatus} + */ +@com.google.protobuf.Generated +public final class CustomStatus extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.chat.v1.CustomStatus) + CustomStatusOrBuilder { + 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= */ "", + "CustomStatus"); + } + + // Use CustomStatus.newBuilder() to construct. + private CustomStatus(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CustomStatus() { + text_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.AvailabilityProto + .internal_static_google_chat_v1_CustomStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.AvailabilityProto + .internal_static_google_chat_v1_CustomStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.CustomStatus.class, com.google.chat.v1.CustomStatus.Builder.class); + } + + private int bitField0_; + private int expirationCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object expiration_; + + public enum ExpirationCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + EXPIRE_TIME(3), + TTL(4), + EXPIRATION_NOT_SET(0); + private final int value; + + private ExpirationCase(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 ExpirationCase valueOf(int value) { + return forNumber(value); + } + + public static ExpirationCase forNumber(int value) { + switch (value) { + case 3: + return EXPIRE_TIME; + case 4: + return TTL; + case 0: + return EXPIRATION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ExpirationCase getExpirationCase() { + return ExpirationCase.forNumber(expirationCase_); + } + + public static final int TEXT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object text_ = ""; + + /** + * + * + *
                +   * Required. The text of the custom status. This will be a string with maximum
                +   * length of 64.
                +   * 
                + * + * string text = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The text. + */ + @java.lang.Override + public java.lang.String getText() { + java.lang.Object ref = text_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + text_ = s; + return s; + } + } + + /** + * + * + *
                +   * Required. The text of the custom status. This will be a string with maximum
                +   * length of 64.
                +   * 
                + * + * string text = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for text. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTextBytes() { + java.lang.Object ref = text_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + text_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EMOJI_FIELD_NUMBER = 2; + private com.google.chat.v1.Emoji emoji_; + + /** + * + * + *
                +   * Required. The emoji of the custom status. Only Unicode emojis are
                +   * supported; custom emojis are not supported.
                +   * 
                + * + * .google.chat.v1.Emoji emoji = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the emoji field is set. + */ + @java.lang.Override + public boolean hasEmoji() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                +   * Required. The emoji of the custom status. Only Unicode emojis are
                +   * supported; custom emojis are not supported.
                +   * 
                + * + * .google.chat.v1.Emoji emoji = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The emoji. + */ + @java.lang.Override + public com.google.chat.v1.Emoji getEmoji() { + return emoji_ == null ? com.google.chat.v1.Emoji.getDefaultInstance() : emoji_; + } + + /** + * + * + *
                +   * Required. The emoji of the custom status. Only Unicode emojis are
                +   * supported; custom emojis are not supported.
                +   * 
                + * + * .google.chat.v1.Emoji emoji = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.chat.v1.EmojiOrBuilder getEmojiOrBuilder() { + return emoji_ == null ? com.google.chat.v1.Emoji.getDefaultInstance() : emoji_; + } + + public static final int EXPIRE_TIME_FIELD_NUMBER = 3; + + /** + * + * + *
                +   * The timestamp when the custom status expires.
                +   * 
                + * + * .google.protobuf.Timestamp expire_time = 3; + * + * @return Whether the expireTime field is set. + */ + @java.lang.Override + public boolean hasExpireTime() { + return expirationCase_ == 3; + } + + /** + * + * + *
                +   * The timestamp when the custom status expires.
                +   * 
                + * + * .google.protobuf.Timestamp expire_time = 3; + * + * @return The expireTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getExpireTime() { + if (expirationCase_ == 3) { + return (com.google.protobuf.Timestamp) expiration_; + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } + + /** + * + * + *
                +   * The timestamp when the custom status expires.
                +   * 
                + * + * .google.protobuf.Timestamp expire_time = 3; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { + if (expirationCase_ == 3) { + return (com.google.protobuf.Timestamp) expiration_; + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } + + public static final int TTL_FIELD_NUMBER = 4; + + /** + * + * + *
                +   * Input only. The time-to-live duration after which the custom status
                +   * expires.
                +   * 
                + * + * .google.protobuf.Duration ttl = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return Whether the ttl field is set. + */ + @java.lang.Override + public boolean hasTtl() { + return expirationCase_ == 4; + } + + /** + * + * + *
                +   * Input only. The time-to-live duration after which the custom status
                +   * expires.
                +   * 
                + * + * .google.protobuf.Duration ttl = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The ttl. + */ + @java.lang.Override + public com.google.protobuf.Duration getTtl() { + if (expirationCase_ == 4) { + return (com.google.protobuf.Duration) expiration_; + } + return com.google.protobuf.Duration.getDefaultInstance(); + } + + /** + * + * + *
                +   * Input only. The time-to-live duration after which the custom status
                +   * expires.
                +   * 
                + * + * .google.protobuf.Duration ttl = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() { + if (expirationCase_ == 4) { + return (com.google.protobuf.Duration) expiration_; + } + return com.google.protobuf.Duration.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(text_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, text_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getEmoji()); + } + if (expirationCase_ == 3) { + output.writeMessage(3, (com.google.protobuf.Timestamp) expiration_); + } + if (expirationCase_ == 4) { + output.writeMessage(4, (com.google.protobuf.Duration) expiration_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(text_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, text_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEmoji()); + } + if (expirationCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.protobuf.Timestamp) expiration_); + } + if (expirationCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.protobuf.Duration) expiration_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.chat.v1.CustomStatus)) { + return super.equals(obj); + } + com.google.chat.v1.CustomStatus other = (com.google.chat.v1.CustomStatus) obj; + + if (!getText().equals(other.getText())) return false; + if (hasEmoji() != other.hasEmoji()) return false; + if (hasEmoji()) { + if (!getEmoji().equals(other.getEmoji())) return false; + } + if (!getExpirationCase().equals(other.getExpirationCase())) return false; + switch (expirationCase_) { + case 3: + if (!getExpireTime().equals(other.getExpireTime())) return false; + break; + case 4: + if (!getTtl().equals(other.getTtl())) 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) + TEXT_FIELD_NUMBER; + hash = (53 * hash) + getText().hashCode(); + if (hasEmoji()) { + hash = (37 * hash) + EMOJI_FIELD_NUMBER; + hash = (53 * hash) + getEmoji().hashCode(); + } + switch (expirationCase_) { + case 3: + hash = (37 * hash) + EXPIRE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getExpireTime().hashCode(); + break; + case 4: + hash = (37 * hash) + TTL_FIELD_NUMBER; + hash = (53 * hash) + getTtl().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.chat.v1.CustomStatus parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.CustomStatus parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.CustomStatus parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.CustomStatus parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.CustomStatus parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.CustomStatus parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.CustomStatus parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.CustomStatus parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.CustomStatus parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.chat.v1.CustomStatus parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.CustomStatus parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.CustomStatus parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.chat.v1.CustomStatus prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 user's custom status in Google Chat.
                +   * This includes a short text message with an optional emoji that a user sets to
                +   * give more context about their availability.
                +   * 
                + * + * Protobuf type {@code google.chat.v1.CustomStatus} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.chat.v1.CustomStatus) + com.google.chat.v1.CustomStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.AvailabilityProto + .internal_static_google_chat_v1_CustomStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.AvailabilityProto + .internal_static_google_chat_v1_CustomStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.CustomStatus.class, com.google.chat.v1.CustomStatus.Builder.class); + } + + // Construct using com.google.chat.v1.CustomStatus.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetEmojiFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + text_ = ""; + emoji_ = null; + if (emojiBuilder_ != null) { + emojiBuilder_.dispose(); + emojiBuilder_ = null; + } + if (expireTimeBuilder_ != null) { + expireTimeBuilder_.clear(); + } + if (ttlBuilder_ != null) { + ttlBuilder_.clear(); + } + expirationCase_ = 0; + expiration_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.chat.v1.AvailabilityProto + .internal_static_google_chat_v1_CustomStatus_descriptor; + } + + @java.lang.Override + public com.google.chat.v1.CustomStatus getDefaultInstanceForType() { + return com.google.chat.v1.CustomStatus.getDefaultInstance(); + } + + @java.lang.Override + public com.google.chat.v1.CustomStatus build() { + com.google.chat.v1.CustomStatus result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.chat.v1.CustomStatus buildPartial() { + com.google.chat.v1.CustomStatus result = new com.google.chat.v1.CustomStatus(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.chat.v1.CustomStatus result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.text_ = text_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.emoji_ = emojiBuilder_ == null ? emoji_ : emojiBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.chat.v1.CustomStatus result) { + result.expirationCase_ = expirationCase_; + result.expiration_ = this.expiration_; + if (expirationCase_ == 3 && expireTimeBuilder_ != null) { + result.expiration_ = expireTimeBuilder_.build(); + } + if (expirationCase_ == 4 && ttlBuilder_ != null) { + result.expiration_ = ttlBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.chat.v1.CustomStatus) { + return mergeFrom((com.google.chat.v1.CustomStatus) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.chat.v1.CustomStatus other) { + if (other == com.google.chat.v1.CustomStatus.getDefaultInstance()) return this; + if (!other.getText().isEmpty()) { + text_ = other.text_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasEmoji()) { + mergeEmoji(other.getEmoji()); + } + switch (other.getExpirationCase()) { + case EXPIRE_TIME: + { + mergeExpireTime(other.getExpireTime()); + break; + } + case TTL: + { + mergeTtl(other.getTtl()); + break; + } + case EXPIRATION_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: + { + text_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(internalGetEmojiFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetExpireTimeFieldBuilder().getBuilder(), extensionRegistry); + expirationCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage(internalGetTtlFieldBuilder().getBuilder(), extensionRegistry); + expirationCase_ = 4; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int expirationCase_ = 0; + private java.lang.Object expiration_; + + public ExpirationCase getExpirationCase() { + return ExpirationCase.forNumber(expirationCase_); + } + + public Builder clearExpiration() { + expirationCase_ = 0; + expiration_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.lang.Object text_ = ""; + + /** + * + * + *
                +     * Required. The text of the custom status. This will be a string with maximum
                +     * length of 64.
                +     * 
                + * + * string text = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The text. + */ + public java.lang.String getText() { + java.lang.Object ref = text_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + text_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                +     * Required. The text of the custom status. This will be a string with maximum
                +     * length of 64.
                +     * 
                + * + * string text = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for text. + */ + public com.google.protobuf.ByteString getTextBytes() { + java.lang.Object ref = text_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + text_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                +     * Required. The text of the custom status. This will be a string with maximum
                +     * length of 64.
                +     * 
                + * + * string text = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The text to set. + * @return This builder for chaining. + */ + public Builder setText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + text_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The text of the custom status. This will be a string with maximum
                +     * length of 64.
                +     * 
                + * + * string text = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearText() { + text_ = getDefaultInstance().getText(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The text of the custom status. This will be a string with maximum
                +     * length of 64.
                +     * 
                + * + * string text = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for text to set. + * @return This builder for chaining. + */ + public Builder setTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + text_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.chat.v1.Emoji emoji_; + private com.google.protobuf.SingleFieldBuilder< + com.google.chat.v1.Emoji, + com.google.chat.v1.Emoji.Builder, + com.google.chat.v1.EmojiOrBuilder> + emojiBuilder_; + + /** + * + * + *
                +     * Required. The emoji of the custom status. Only Unicode emojis are
                +     * supported; custom emojis are not supported.
                +     * 
                + * + * .google.chat.v1.Emoji emoji = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the emoji field is set. + */ + public boolean hasEmoji() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                +     * Required. The emoji of the custom status. Only Unicode emojis are
                +     * supported; custom emojis are not supported.
                +     * 
                + * + * .google.chat.v1.Emoji emoji = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The emoji. + */ + public com.google.chat.v1.Emoji getEmoji() { + if (emojiBuilder_ == null) { + return emoji_ == null ? com.google.chat.v1.Emoji.getDefaultInstance() : emoji_; + } else { + return emojiBuilder_.getMessage(); + } + } + + /** + * + * + *
                +     * Required. The emoji of the custom status. Only Unicode emojis are
                +     * supported; custom emojis are not supported.
                +     * 
                + * + * .google.chat.v1.Emoji emoji = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setEmoji(com.google.chat.v1.Emoji value) { + if (emojiBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + emoji_ = value; + } else { + emojiBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The emoji of the custom status. Only Unicode emojis are
                +     * supported; custom emojis are not supported.
                +     * 
                + * + * .google.chat.v1.Emoji emoji = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setEmoji(com.google.chat.v1.Emoji.Builder builderForValue) { + if (emojiBuilder_ == null) { + emoji_ = builderForValue.build(); + } else { + emojiBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The emoji of the custom status. Only Unicode emojis are
                +     * supported; custom emojis are not supported.
                +     * 
                + * + * .google.chat.v1.Emoji emoji = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeEmoji(com.google.chat.v1.Emoji value) { + if (emojiBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && emoji_ != null + && emoji_ != com.google.chat.v1.Emoji.getDefaultInstance()) { + getEmojiBuilder().mergeFrom(value); + } else { + emoji_ = value; + } + } else { + emojiBuilder_.mergeFrom(value); + } + if (emoji_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                +     * Required. The emoji of the custom status. Only Unicode emojis are
                +     * supported; custom emojis are not supported.
                +     * 
                + * + * .google.chat.v1.Emoji emoji = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearEmoji() { + bitField0_ = (bitField0_ & ~0x00000002); + emoji_ = null; + if (emojiBuilder_ != null) { + emojiBuilder_.dispose(); + emojiBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The emoji of the custom status. Only Unicode emojis are
                +     * supported; custom emojis are not supported.
                +     * 
                + * + * .google.chat.v1.Emoji emoji = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.chat.v1.Emoji.Builder getEmojiBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetEmojiFieldBuilder().getBuilder(); + } + + /** + * + * + *
                +     * Required. The emoji of the custom status. Only Unicode emojis are
                +     * supported; custom emojis are not supported.
                +     * 
                + * + * .google.chat.v1.Emoji emoji = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.chat.v1.EmojiOrBuilder getEmojiOrBuilder() { + if (emojiBuilder_ != null) { + return emojiBuilder_.getMessageOrBuilder(); + } else { + return emoji_ == null ? com.google.chat.v1.Emoji.getDefaultInstance() : emoji_; + } + } + + /** + * + * + *
                +     * Required. The emoji of the custom status. Only Unicode emojis are
                +     * supported; custom emojis are not supported.
                +     * 
                + * + * .google.chat.v1.Emoji emoji = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.chat.v1.Emoji, + com.google.chat.v1.Emoji.Builder, + com.google.chat.v1.EmojiOrBuilder> + internalGetEmojiFieldBuilder() { + if (emojiBuilder_ == null) { + emojiBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.chat.v1.Emoji, + com.google.chat.v1.Emoji.Builder, + com.google.chat.v1.EmojiOrBuilder>(getEmoji(), getParentForChildren(), isClean()); + emoji_ = null; + } + return emojiBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + expireTimeBuilder_; + + /** + * + * + *
                +     * The timestamp when the custom status expires.
                +     * 
                + * + * .google.protobuf.Timestamp expire_time = 3; + * + * @return Whether the expireTime field is set. + */ + @java.lang.Override + public boolean hasExpireTime() { + return expirationCase_ == 3; + } + + /** + * + * + *
                +     * The timestamp when the custom status expires.
                +     * 
                + * + * .google.protobuf.Timestamp expire_time = 3; + * + * @return The expireTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getExpireTime() { + if (expireTimeBuilder_ == null) { + if (expirationCase_ == 3) { + return (com.google.protobuf.Timestamp) expiration_; + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } else { + if (expirationCase_ == 3) { + return expireTimeBuilder_.getMessage(); + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } + } + + /** + * + * + *
                +     * The timestamp when the custom status expires.
                +     * 
                + * + * .google.protobuf.Timestamp expire_time = 3; + */ + public Builder setExpireTime(com.google.protobuf.Timestamp value) { + if (expireTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expiration_ = value; + onChanged(); + } else { + expireTimeBuilder_.setMessage(value); + } + expirationCase_ = 3; + return this; + } + + /** + * + * + *
                +     * The timestamp when the custom status expires.
                +     * 
                + * + * .google.protobuf.Timestamp expire_time = 3; + */ + public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (expireTimeBuilder_ == null) { + expiration_ = builderForValue.build(); + onChanged(); + } else { + expireTimeBuilder_.setMessage(builderForValue.build()); + } + expirationCase_ = 3; + return this; + } + + /** + * + * + *
                +     * The timestamp when the custom status expires.
                +     * 
                + * + * .google.protobuf.Timestamp expire_time = 3; + */ + public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { + if (expireTimeBuilder_ == null) { + if (expirationCase_ == 3 + && expiration_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + expiration_ = + com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) expiration_) + .mergeFrom(value) + .buildPartial(); + } else { + expiration_ = value; + } + onChanged(); + } else { + if (expirationCase_ == 3) { + expireTimeBuilder_.mergeFrom(value); + } else { + expireTimeBuilder_.setMessage(value); + } + } + expirationCase_ = 3; + return this; + } + + /** + * + * + *
                +     * The timestamp when the custom status expires.
                +     * 
                + * + * .google.protobuf.Timestamp expire_time = 3; + */ + public Builder clearExpireTime() { + if (expireTimeBuilder_ == null) { + if (expirationCase_ == 3) { + expirationCase_ = 0; + expiration_ = null; + onChanged(); + } + } else { + if (expirationCase_ == 3) { + expirationCase_ = 0; + expiration_ = null; + } + expireTimeBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                +     * The timestamp when the custom status expires.
                +     * 
                + * + * .google.protobuf.Timestamp expire_time = 3; + */ + public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { + return internalGetExpireTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                +     * The timestamp when the custom status expires.
                +     * 
                + * + * .google.protobuf.Timestamp expire_time = 3; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { + if ((expirationCase_ == 3) && (expireTimeBuilder_ != null)) { + return expireTimeBuilder_.getMessageOrBuilder(); + } else { + if (expirationCase_ == 3) { + return (com.google.protobuf.Timestamp) expiration_; + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } + } + + /** + * + * + *
                +     * The timestamp when the custom status expires.
                +     * 
                + * + * .google.protobuf.Timestamp expire_time = 3; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetExpireTimeFieldBuilder() { + if (expireTimeBuilder_ == null) { + if (!(expirationCase_ == 3)) { + expiration_ = com.google.protobuf.Timestamp.getDefaultInstance(); + } + expireTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + (com.google.protobuf.Timestamp) expiration_, getParentForChildren(), isClean()); + expiration_ = null; + } + expirationCase_ = 3; + onChanged(); + return expireTimeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + ttlBuilder_; + + /** + * + * + *
                +     * Input only. The time-to-live duration after which the custom status
                +     * expires.
                +     * 
                + * + * .google.protobuf.Duration ttl = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return Whether the ttl field is set. + */ + @java.lang.Override + public boolean hasTtl() { + return expirationCase_ == 4; + } + + /** + * + * + *
                +     * Input only. The time-to-live duration after which the custom status
                +     * expires.
                +     * 
                + * + * .google.protobuf.Duration ttl = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The ttl. + */ + @java.lang.Override + public com.google.protobuf.Duration getTtl() { + if (ttlBuilder_ == null) { + if (expirationCase_ == 4) { + return (com.google.protobuf.Duration) expiration_; + } + return com.google.protobuf.Duration.getDefaultInstance(); + } else { + if (expirationCase_ == 4) { + return ttlBuilder_.getMessage(); + } + return com.google.protobuf.Duration.getDefaultInstance(); + } + } + + /** + * + * + *
                +     * Input only. The time-to-live duration after which the custom status
                +     * expires.
                +     * 
                + * + * .google.protobuf.Duration ttl = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + */ + public Builder setTtl(com.google.protobuf.Duration value) { + if (ttlBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expiration_ = value; + onChanged(); + } else { + ttlBuilder_.setMessage(value); + } + expirationCase_ = 4; + return this; + } + + /** + * + * + *
                +     * Input only. The time-to-live duration after which the custom status
                +     * expires.
                +     * 
                + * + * .google.protobuf.Duration ttl = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + */ + public Builder setTtl(com.google.protobuf.Duration.Builder builderForValue) { + if (ttlBuilder_ == null) { + expiration_ = builderForValue.build(); + onChanged(); + } else { + ttlBuilder_.setMessage(builderForValue.build()); + } + expirationCase_ = 4; + return this; + } + + /** + * + * + *
                +     * Input only. The time-to-live duration after which the custom status
                +     * expires.
                +     * 
                + * + * .google.protobuf.Duration ttl = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + */ + public Builder mergeTtl(com.google.protobuf.Duration value) { + if (ttlBuilder_ == null) { + if (expirationCase_ == 4 + && expiration_ != com.google.protobuf.Duration.getDefaultInstance()) { + expiration_ = + com.google.protobuf.Duration.newBuilder((com.google.protobuf.Duration) expiration_) + .mergeFrom(value) + .buildPartial(); + } else { + expiration_ = value; + } + onChanged(); + } else { + if (expirationCase_ == 4) { + ttlBuilder_.mergeFrom(value); + } else { + ttlBuilder_.setMessage(value); + } + } + expirationCase_ = 4; + return this; + } + + /** + * + * + *
                +     * Input only. The time-to-live duration after which the custom status
                +     * expires.
                +     * 
                + * + * .google.protobuf.Duration ttl = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + */ + public Builder clearTtl() { + if (ttlBuilder_ == null) { + if (expirationCase_ == 4) { + expirationCase_ = 0; + expiration_ = null; + onChanged(); + } + } else { + if (expirationCase_ == 4) { + expirationCase_ = 0; + expiration_ = null; + } + ttlBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                +     * Input only. The time-to-live duration after which the custom status
                +     * expires.
                +     * 
                + * + * .google.protobuf.Duration ttl = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + */ + public com.google.protobuf.Duration.Builder getTtlBuilder() { + return internalGetTtlFieldBuilder().getBuilder(); + } + + /** + * + * + *
                +     * Input only. The time-to-live duration after which the custom status
                +     * expires.
                +     * 
                + * + * .google.protobuf.Duration ttl = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() { + if ((expirationCase_ == 4) && (ttlBuilder_ != null)) { + return ttlBuilder_.getMessageOrBuilder(); + } else { + if (expirationCase_ == 4) { + return (com.google.protobuf.Duration) expiration_; + } + return com.google.protobuf.Duration.getDefaultInstance(); + } + } + + /** + * + * + *
                +     * Input only. The time-to-live duration after which the custom status
                +     * expires.
                +     * 
                + * + * .google.protobuf.Duration ttl = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + internalGetTtlFieldBuilder() { + if (ttlBuilder_ == null) { + if (!(expirationCase_ == 4)) { + expiration_ = com.google.protobuf.Duration.getDefaultInstance(); + } + ttlBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + (com.google.protobuf.Duration) expiration_, getParentForChildren(), isClean()); + expiration_ = null; + } + expirationCase_ = 4; + onChanged(); + return ttlBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.chat.v1.CustomStatus) + } + + // @@protoc_insertion_point(class_scope:google.chat.v1.CustomStatus) + private static final com.google.chat.v1.CustomStatus DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.chat.v1.CustomStatus(); + } + + public static com.google.chat.v1.CustomStatus getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.chat.v1.CustomStatus getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CustomStatusOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CustomStatusOrBuilder.java new file mode 100644 index 000000000000..c69201f66434 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CustomStatusOrBuilder.java @@ -0,0 +1,175 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/chat/v1/availability.proto +// Protobuf Java Version: 4.33.2 + +package com.google.chat.v1; + +@com.google.protobuf.Generated +public interface CustomStatusOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.chat.v1.CustomStatus) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                +   * Required. The text of the custom status. This will be a string with maximum
                +   * length of 64.
                +   * 
                + * + * string text = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The text. + */ + java.lang.String getText(); + + /** + * + * + *
                +   * Required. The text of the custom status. This will be a string with maximum
                +   * length of 64.
                +   * 
                + * + * string text = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for text. + */ + com.google.protobuf.ByteString getTextBytes(); + + /** + * + * + *
                +   * Required. The emoji of the custom status. Only Unicode emojis are
                +   * supported; custom emojis are not supported.
                +   * 
                + * + * .google.chat.v1.Emoji emoji = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the emoji field is set. + */ + boolean hasEmoji(); + + /** + * + * + *
                +   * Required. The emoji of the custom status. Only Unicode emojis are
                +   * supported; custom emojis are not supported.
                +   * 
                + * + * .google.chat.v1.Emoji emoji = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The emoji. + */ + com.google.chat.v1.Emoji getEmoji(); + + /** + * + * + *
                +   * Required. The emoji of the custom status. Only Unicode emojis are
                +   * supported; custom emojis are not supported.
                +   * 
                + * + * .google.chat.v1.Emoji emoji = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.chat.v1.EmojiOrBuilder getEmojiOrBuilder(); + + /** + * + * + *
                +   * The timestamp when the custom status expires.
                +   * 
                + * + * .google.protobuf.Timestamp expire_time = 3; + * + * @return Whether the expireTime field is set. + */ + boolean hasExpireTime(); + + /** + * + * + *
                +   * The timestamp when the custom status expires.
                +   * 
                + * + * .google.protobuf.Timestamp expire_time = 3; + * + * @return The expireTime. + */ + com.google.protobuf.Timestamp getExpireTime(); + + /** + * + * + *
                +   * The timestamp when the custom status expires.
                +   * 
                + * + * .google.protobuf.Timestamp expire_time = 3; + */ + com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); + + /** + * + * + *
                +   * Input only. The time-to-live duration after which the custom status
                +   * expires.
                +   * 
                + * + * .google.protobuf.Duration ttl = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return Whether the ttl field is set. + */ + boolean hasTtl(); + + /** + * + * + *
                +   * Input only. The time-to-live duration after which the custom status
                +   * expires.
                +   * 
                + * + * .google.protobuf.Duration ttl = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The ttl. + */ + com.google.protobuf.Duration getTtl(); + + /** + * + * + *
                +   * Input only. The time-to-live duration after which the custom status
                +   * expires.
                +   * 
                + * + * .google.protobuf.Duration ttl = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + */ + com.google.protobuf.DurationOrBuilder getTtlOrBuilder(); + + com.google.chat.v1.CustomStatus.ExpirationCase getExpirationCase(); +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/DoNotDisturbMetadata.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/DoNotDisturbMetadata.java new file mode 100644 index 000000000000..cea25bb1b75d --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/DoNotDisturbMetadata.java @@ -0,0 +1,735 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/chat/v1/availability.proto +// Protobuf Java Version: 4.33.2 + +package com.google.chat.v1; + +/** + * + * + *
                + * Metadata associated with the `DO_NOT_DISTURB` availability state,
                + * specifying when the state is set to expire.
                + * 
                + * + * Protobuf type {@code google.chat.v1.DoNotDisturbMetadata} + */ +@com.google.protobuf.Generated +public final class DoNotDisturbMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.chat.v1.DoNotDisturbMetadata) + DoNotDisturbMetadataOrBuilder { + 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= */ "", + "DoNotDisturbMetadata"); + } + + // Use DoNotDisturbMetadata.newBuilder() to construct. + private DoNotDisturbMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DoNotDisturbMetadata() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.AvailabilityProto + .internal_static_google_chat_v1_DoNotDisturbMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.AvailabilityProto + .internal_static_google_chat_v1_DoNotDisturbMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.DoNotDisturbMetadata.class, + com.google.chat.v1.DoNotDisturbMetadata.Builder.class); + } + + private int bitField0_; + public static final int EXPIRATION_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp expirationTime_; + + /** + * + * + *
                +   * Output only. Timestamp until which the user should be marked as
                +   * DO_NOT_DISTURB. This can be maximum of 1 year in the future.
                +   * 
                + * + * + * .google.protobuf.Timestamp expiration_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the expirationTime field is set. + */ + @java.lang.Override + public boolean hasExpirationTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                +   * Output only. Timestamp until which the user should be marked as
                +   * DO_NOT_DISTURB. This can be maximum of 1 year in the future.
                +   * 
                + * + * + * .google.protobuf.Timestamp expiration_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The expirationTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getExpirationTime() { + return expirationTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expirationTime_; + } + + /** + * + * + *
                +   * Output only. Timestamp until which the user should be marked as
                +   * DO_NOT_DISTURB. This can be maximum of 1 year in the future.
                +   * 
                + * + * + * .google.protobuf.Timestamp expiration_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getExpirationTimeOrBuilder() { + return expirationTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expirationTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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, getExpirationTime()); + } + 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, getExpirationTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.chat.v1.DoNotDisturbMetadata)) { + return super.equals(obj); + } + com.google.chat.v1.DoNotDisturbMetadata other = (com.google.chat.v1.DoNotDisturbMetadata) obj; + + if (hasExpirationTime() != other.hasExpirationTime()) return false; + if (hasExpirationTime()) { + if (!getExpirationTime().equals(other.getExpirationTime())) return false; + } + if (!getUnknownFields().equals(other.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 (hasExpirationTime()) { + hash = (37 * hash) + EXPIRATION_TIME_FIELD_NUMBER; + hash = (53 * hash) + getExpirationTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.chat.v1.DoNotDisturbMetadata parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.DoNotDisturbMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.DoNotDisturbMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.DoNotDisturbMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.DoNotDisturbMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.DoNotDisturbMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.DoNotDisturbMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.DoNotDisturbMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.DoNotDisturbMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.chat.v1.DoNotDisturbMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.DoNotDisturbMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.DoNotDisturbMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.chat.v1.DoNotDisturbMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                +   * Metadata associated with the `DO_NOT_DISTURB` availability state,
                +   * specifying when the state is set to expire.
                +   * 
                + * + * Protobuf type {@code google.chat.v1.DoNotDisturbMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.chat.v1.DoNotDisturbMetadata) + com.google.chat.v1.DoNotDisturbMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.AvailabilityProto + .internal_static_google_chat_v1_DoNotDisturbMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.AvailabilityProto + .internal_static_google_chat_v1_DoNotDisturbMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.DoNotDisturbMetadata.class, + com.google.chat.v1.DoNotDisturbMetadata.Builder.class); + } + + // Construct using com.google.chat.v1.DoNotDisturbMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetExpirationTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + expirationTime_ = null; + if (expirationTimeBuilder_ != null) { + expirationTimeBuilder_.dispose(); + expirationTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.chat.v1.AvailabilityProto + .internal_static_google_chat_v1_DoNotDisturbMetadata_descriptor; + } + + @java.lang.Override + public com.google.chat.v1.DoNotDisturbMetadata getDefaultInstanceForType() { + return com.google.chat.v1.DoNotDisturbMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.chat.v1.DoNotDisturbMetadata build() { + com.google.chat.v1.DoNotDisturbMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.chat.v1.DoNotDisturbMetadata buildPartial() { + com.google.chat.v1.DoNotDisturbMetadata result = + new com.google.chat.v1.DoNotDisturbMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.chat.v1.DoNotDisturbMetadata result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.expirationTime_ = + expirationTimeBuilder_ == null ? expirationTime_ : expirationTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.chat.v1.DoNotDisturbMetadata) { + return mergeFrom((com.google.chat.v1.DoNotDisturbMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.chat.v1.DoNotDisturbMetadata other) { + if (other == com.google.chat.v1.DoNotDisturbMetadata.getDefaultInstance()) return this; + if (other.hasExpirationTime()) { + mergeExpirationTime(other.getExpirationTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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( + internalGetExpirationTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.Timestamp expirationTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + expirationTimeBuilder_; + + /** + * + * + *
                +     * Output only. Timestamp until which the user should be marked as
                +     * DO_NOT_DISTURB. This can be maximum of 1 year in the future.
                +     * 
                + * + * + * .google.protobuf.Timestamp expiration_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the expirationTime field is set. + */ + public boolean hasExpirationTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                +     * Output only. Timestamp until which the user should be marked as
                +     * DO_NOT_DISTURB. This can be maximum of 1 year in the future.
                +     * 
                + * + * + * .google.protobuf.Timestamp expiration_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The expirationTime. + */ + public com.google.protobuf.Timestamp getExpirationTime() { + if (expirationTimeBuilder_ == null) { + return expirationTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expirationTime_; + } else { + return expirationTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
                +     * Output only. Timestamp until which the user should be marked as
                +     * DO_NOT_DISTURB. This can be maximum of 1 year in the future.
                +     * 
                + * + * + * .google.protobuf.Timestamp expiration_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setExpirationTime(com.google.protobuf.Timestamp value) { + if (expirationTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expirationTime_ = value; + } else { + expirationTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. Timestamp until which the user should be marked as
                +     * DO_NOT_DISTURB. This can be maximum of 1 year in the future.
                +     * 
                + * + * + * .google.protobuf.Timestamp expiration_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setExpirationTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (expirationTimeBuilder_ == null) { + expirationTime_ = builderForValue.build(); + } else { + expirationTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. Timestamp until which the user should be marked as
                +     * DO_NOT_DISTURB. This can be maximum of 1 year in the future.
                +     * 
                + * + * + * .google.protobuf.Timestamp expiration_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeExpirationTime(com.google.protobuf.Timestamp value) { + if (expirationTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && expirationTime_ != null + && expirationTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getExpirationTimeBuilder().mergeFrom(value); + } else { + expirationTime_ = value; + } + } else { + expirationTimeBuilder_.mergeFrom(value); + } + if (expirationTime_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
                +     * Output only. Timestamp until which the user should be marked as
                +     * DO_NOT_DISTURB. This can be maximum of 1 year in the future.
                +     * 
                + * + * + * .google.protobuf.Timestamp expiration_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearExpirationTime() { + bitField0_ = (bitField0_ & ~0x00000001); + expirationTime_ = null; + if (expirationTimeBuilder_ != null) { + expirationTimeBuilder_.dispose(); + expirationTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. Timestamp until which the user should be marked as
                +     * DO_NOT_DISTURB. This can be maximum of 1 year in the future.
                +     * 
                + * + * + * .google.protobuf.Timestamp expiration_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getExpirationTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetExpirationTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                +     * Output only. Timestamp until which the user should be marked as
                +     * DO_NOT_DISTURB. This can be maximum of 1 year in the future.
                +     * 
                + * + * + * .google.protobuf.Timestamp expiration_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getExpirationTimeOrBuilder() { + if (expirationTimeBuilder_ != null) { + return expirationTimeBuilder_.getMessageOrBuilder(); + } else { + return expirationTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expirationTime_; + } + } + + /** + * + * + *
                +     * Output only. Timestamp until which the user should be marked as
                +     * DO_NOT_DISTURB. This can be maximum of 1 year in the future.
                +     * 
                + * + * + * .google.protobuf.Timestamp expiration_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetExpirationTimeFieldBuilder() { + if (expirationTimeBuilder_ == null) { + expirationTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getExpirationTime(), getParentForChildren(), isClean()); + expirationTime_ = null; + } + return expirationTimeBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.chat.v1.DoNotDisturbMetadata) + } + + // @@protoc_insertion_point(class_scope:google.chat.v1.DoNotDisturbMetadata) + private static final com.google.chat.v1.DoNotDisturbMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.chat.v1.DoNotDisturbMetadata(); + } + + public static com.google.chat.v1.DoNotDisturbMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DoNotDisturbMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.chat.v1.DoNotDisturbMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/DoNotDisturbMetadataOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/DoNotDisturbMetadataOrBuilder.java new file mode 100644 index 000000000000..b9ee49654bb3 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/DoNotDisturbMetadataOrBuilder.java @@ -0,0 +1,74 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/chat/v1/availability.proto +// Protobuf Java Version: 4.33.2 + +package com.google.chat.v1; + +@com.google.protobuf.Generated +public interface DoNotDisturbMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.chat.v1.DoNotDisturbMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                +   * Output only. Timestamp until which the user should be marked as
                +   * DO_NOT_DISTURB. This can be maximum of 1 year in the future.
                +   * 
                + * + * + * .google.protobuf.Timestamp expiration_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the expirationTime field is set. + */ + boolean hasExpirationTime(); + + /** + * + * + *
                +   * Output only. Timestamp until which the user should be marked as
                +   * DO_NOT_DISTURB. This can be maximum of 1 year in the future.
                +   * 
                + * + * + * .google.protobuf.Timestamp expiration_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The expirationTime. + */ + com.google.protobuf.Timestamp getExpirationTime(); + + /** + * + * + *
                +   * Output only. Timestamp until which the user should be marked as
                +   * DO_NOT_DISTURB. This can be maximum of 1 year in the future.
                +   * 
                + * + * + * .google.protobuf.Timestamp expiration_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getExpirationTimeOrBuilder(); +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/GetAvailabilityRequest.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/GetAvailabilityRequest.java new file mode 100644 index 000000000000..f86da2d26fb5 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/GetAvailabilityRequest.java @@ -0,0 +1,665 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/chat/v1/availability.proto +// Protobuf Java Version: 4.33.2 + +package com.google.chat.v1; + +/** + * + * + *
                + * Request message for the `GetAvailability` method.
                + * 
                + * + * Protobuf type {@code google.chat.v1.GetAvailabilityRequest} + */ +@com.google.protobuf.Generated +public final class GetAvailabilityRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.chat.v1.GetAvailabilityRequest) + GetAvailabilityRequestOrBuilder { + 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= */ "", + "GetAvailabilityRequest"); + } + + // Use GetAvailabilityRequest.newBuilder() to construct. + private GetAvailabilityRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetAvailabilityRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.AvailabilityProto + .internal_static_google_chat_v1_GetAvailabilityRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.AvailabilityProto + .internal_static_google_chat_v1_GetAvailabilityRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.GetAvailabilityRequest.class, + com.google.chat.v1.GetAvailabilityRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                +   * Required. The resource name of the availability to retrieve.
                +   *
                +   * Format: users/{user}/availability
                +   *
                +   * `{user}` is the id for the Person in the People API or Admin SDK directory
                +   * API. For example, `users/123456789`.
                +   *
                +   * The user's email address or `me` can also be used as an alias to refer to
                +   * the caller.  For example, `users/user@example.com` or `users/me`.
                +   * 
                + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
                +   * Required. The resource name of the availability to retrieve.
                +   *
                +   * Format: users/{user}/availability
                +   *
                +   * `{user}` is the id for the Person in the People API or Admin SDK directory
                +   * API. For example, `users/123456789`.
                +   *
                +   * The user's email address or `me` can also be used as an alias to refer to
                +   * the caller.  For example, `users/user@example.com` or `users/me`.
                +   * 
                + * + * + * 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.chat.v1.GetAvailabilityRequest)) { + return super.equals(obj); + } + com.google.chat.v1.GetAvailabilityRequest other = + (com.google.chat.v1.GetAvailabilityRequest) 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.chat.v1.GetAvailabilityRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.GetAvailabilityRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.GetAvailabilityRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.GetAvailabilityRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.GetAvailabilityRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.GetAvailabilityRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.GetAvailabilityRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.GetAvailabilityRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.GetAvailabilityRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.chat.v1.GetAvailabilityRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.GetAvailabilityRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.GetAvailabilityRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.chat.v1.GetAvailabilityRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                +   * Request message for the `GetAvailability` method.
                +   * 
                + * + * Protobuf type {@code google.chat.v1.GetAvailabilityRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.chat.v1.GetAvailabilityRequest) + com.google.chat.v1.GetAvailabilityRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.AvailabilityProto + .internal_static_google_chat_v1_GetAvailabilityRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.AvailabilityProto + .internal_static_google_chat_v1_GetAvailabilityRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.GetAvailabilityRequest.class, + com.google.chat.v1.GetAvailabilityRequest.Builder.class); + } + + // Construct using com.google.chat.v1.GetAvailabilityRequest.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.chat.v1.AvailabilityProto + .internal_static_google_chat_v1_GetAvailabilityRequest_descriptor; + } + + @java.lang.Override + public com.google.chat.v1.GetAvailabilityRequest getDefaultInstanceForType() { + return com.google.chat.v1.GetAvailabilityRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.chat.v1.GetAvailabilityRequest build() { + com.google.chat.v1.GetAvailabilityRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.chat.v1.GetAvailabilityRequest buildPartial() { + com.google.chat.v1.GetAvailabilityRequest result = + new com.google.chat.v1.GetAvailabilityRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.chat.v1.GetAvailabilityRequest 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.chat.v1.GetAvailabilityRequest) { + return mergeFrom((com.google.chat.v1.GetAvailabilityRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.chat.v1.GetAvailabilityRequest other) { + if (other == com.google.chat.v1.GetAvailabilityRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
                +     * Required. The resource name of the availability to retrieve.
                +     *
                +     * Format: users/{user}/availability
                +     *
                +     * `{user}` is the id for the Person in the People API or Admin SDK directory
                +     * API. For example, `users/123456789`.
                +     *
                +     * The user's email address or `me` can also be used as an alias to refer to
                +     * the caller.  For example, `users/user@example.com` or `users/me`.
                +     * 
                + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                +     * Required. The resource name of the availability to retrieve.
                +     *
                +     * Format: users/{user}/availability
                +     *
                +     * `{user}` is the id for the Person in the People API or Admin SDK directory
                +     * API. For example, `users/123456789`.
                +     *
                +     * The user's email address or `me` can also be used as an alias to refer to
                +     * the caller.  For example, `users/user@example.com` or `users/me`.
                +     * 
                + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                +     * Required. The resource name of the availability to retrieve.
                +     *
                +     * Format: users/{user}/availability
                +     *
                +     * `{user}` is the id for the Person in the People API or Admin SDK directory
                +     * API. For example, `users/123456789`.
                +     *
                +     * The user's email address or `me` can also be used as an alias to refer to
                +     * the caller.  For example, `users/user@example.com` or `users/me`.
                +     * 
                + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The resource name of the availability to retrieve.
                +     *
                +     * Format: users/{user}/availability
                +     *
                +     * `{user}` is the id for the Person in the People API or Admin SDK directory
                +     * API. For example, `users/123456789`.
                +     *
                +     * The user's email address or `me` can also be used as an alias to refer to
                +     * the caller.  For example, `users/user@example.com` or `users/me`.
                +     * 
                + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The resource name of the availability to retrieve.
                +     *
                +     * Format: users/{user}/availability
                +     *
                +     * `{user}` is the id for the Person in the People API or Admin SDK directory
                +     * API. For example, `users/123456789`.
                +     *
                +     * The user's email address or `me` can also be used as an alias to refer to
                +     * the caller.  For example, `users/user@example.com` or `users/me`.
                +     * 
                + * + * + * 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.chat.v1.GetAvailabilityRequest) + } + + // @@protoc_insertion_point(class_scope:google.chat.v1.GetAvailabilityRequest) + private static final com.google.chat.v1.GetAvailabilityRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.chat.v1.GetAvailabilityRequest(); + } + + public static com.google.chat.v1.GetAvailabilityRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAvailabilityRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.chat.v1.GetAvailabilityRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/GetAvailabilityRequestOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/GetAvailabilityRequestOrBuilder.java new file mode 100644 index 000000000000..ae4c4cdf7276 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/GetAvailabilityRequestOrBuilder.java @@ -0,0 +1,74 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/chat/v1/availability.proto +// Protobuf Java Version: 4.33.2 + +package com.google.chat.v1; + +@com.google.protobuf.Generated +public interface GetAvailabilityRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.chat.v1.GetAvailabilityRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                +   * Required. The resource name of the availability to retrieve.
                +   *
                +   * Format: users/{user}/availability
                +   *
                +   * `{user}` is the id for the Person in the People API or Admin SDK directory
                +   * API. For example, `users/123456789`.
                +   *
                +   * The user's email address or `me` can also be used as an alias to refer to
                +   * the caller.  For example, `users/user@example.com` or `users/me`.
                +   * 
                + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                +   * Required. The resource name of the availability to retrieve.
                +   *
                +   * Format: users/{user}/availability
                +   *
                +   * `{user}` is the id for the Person in the People API or Admin SDK directory
                +   * API. For example, `users/123456789`.
                +   *
                +   * The user's email address or `me` can also be used as an alias to refer to
                +   * the caller.  For example, `users/user@example.com` or `users/me`.
                +   * 
                + * + * + * 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-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MarkAsActiveRequest.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MarkAsActiveRequest.java new file mode 100644 index 000000000000..2850ff754be6 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MarkAsActiveRequest.java @@ -0,0 +1,1369 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/chat/v1/availability.proto +// Protobuf Java Version: 4.33.2 + +package com.google.chat.v1; + +/** + * + * + *
                + * Request message for the `MarkAsActive` method.
                + * 
                + * + * Protobuf type {@code google.chat.v1.MarkAsActiveRequest} + */ +@com.google.protobuf.Generated +public final class MarkAsActiveRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.chat.v1.MarkAsActiveRequest) + MarkAsActiveRequestOrBuilder { + 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= */ "", + "MarkAsActiveRequest"); + } + + // Use MarkAsActiveRequest.newBuilder() to construct. + private MarkAsActiveRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private MarkAsActiveRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.AvailabilityProto + .internal_static_google_chat_v1_MarkAsActiveRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.AvailabilityProto + .internal_static_google_chat_v1_MarkAsActiveRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.MarkAsActiveRequest.class, + com.google.chat.v1.MarkAsActiveRequest.Builder.class); + } + + private int expirationCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object expiration_; + + public enum ExpirationCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + EXPIRE_TIME(2), + TTL(3), + EXPIRATION_NOT_SET(0); + private final int value; + + private ExpirationCase(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 ExpirationCase valueOf(int value) { + return forNumber(value); + } + + public static ExpirationCase forNumber(int value) { + switch (value) { + case 2: + return EXPIRE_TIME; + case 3: + return TTL; + case 0: + return EXPIRATION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ExpirationCase getExpirationCase() { + return ExpirationCase.forNumber(expirationCase_); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                +   * Required. The resource name of the availability to mark as active.
                +   * Format: users/{user}/availability
                +   *
                +   * `{user}` is the id for the Person in the People API or Admin SDK directory
                +   * API. For example, `users/123456789`.
                +   *
                +   * The user's email address or `me` can also be used as an alias to refer to
                +   * the caller.  For example, `users/user@example.com` or `users/me`.
                +   * 
                + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
                +   * Required. The resource name of the availability to mark as active.
                +   * Format: users/{user}/availability
                +   *
                +   * `{user}` is the id for the Person in the People API or Admin SDK directory
                +   * API. For example, `users/123456789`.
                +   *
                +   * The user's email address or `me` can also be used as an alias to refer to
                +   * the caller.  For example, `users/user@example.com` or `users/me`.
                +   * 
                + * + * + * 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 EXPIRE_TIME_FIELD_NUMBER = 2; + + /** + * + * + *
                +   * The absolute timestamp when the ACTIVE state expires.
                +   * 
                + * + * .google.protobuf.Timestamp expire_time = 2; + * + * @return Whether the expireTime field is set. + */ + @java.lang.Override + public boolean hasExpireTime() { + return expirationCase_ == 2; + } + + /** + * + * + *
                +   * The absolute timestamp when the ACTIVE state expires.
                +   * 
                + * + * .google.protobuf.Timestamp expire_time = 2; + * + * @return The expireTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getExpireTime() { + if (expirationCase_ == 2) { + return (com.google.protobuf.Timestamp) expiration_; + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } + + /** + * + * + *
                +   * The absolute timestamp when the ACTIVE state expires.
                +   * 
                + * + * .google.protobuf.Timestamp expire_time = 2; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { + if (expirationCase_ == 2) { + return (com.google.protobuf.Timestamp) expiration_; + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } + + public static final int TTL_FIELD_NUMBER = 3; + + /** + * + * + *
                +   * The duration from the current time until the ACTIVE state expires.
                +   * Using a short TTL can effectively reset the user's state to be based
                +   * on activity after this brief duration.
                +   * 
                + * + * .google.protobuf.Duration ttl = 3; + * + * @return Whether the ttl field is set. + */ + @java.lang.Override + public boolean hasTtl() { + return expirationCase_ == 3; + } + + /** + * + * + *
                +   * The duration from the current time until the ACTIVE state expires.
                +   * Using a short TTL can effectively reset the user's state to be based
                +   * on activity after this brief duration.
                +   * 
                + * + * .google.protobuf.Duration ttl = 3; + * + * @return The ttl. + */ + @java.lang.Override + public com.google.protobuf.Duration getTtl() { + if (expirationCase_ == 3) { + return (com.google.protobuf.Duration) expiration_; + } + return com.google.protobuf.Duration.getDefaultInstance(); + } + + /** + * + * + *
                +   * The duration from the current time until the ACTIVE state expires.
                +   * Using a short TTL can effectively reset the user's state to be based
                +   * on activity after this brief duration.
                +   * 
                + * + * .google.protobuf.Duration ttl = 3; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() { + if (expirationCase_ == 3) { + return (com.google.protobuf.Duration) expiration_; + } + return com.google.protobuf.Duration.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (expirationCase_ == 2) { + output.writeMessage(2, (com.google.protobuf.Timestamp) expiration_); + } + if (expirationCase_ == 3) { + output.writeMessage(3, (com.google.protobuf.Duration) expiration_); + } + 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 (expirationCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.protobuf.Timestamp) expiration_); + } + if (expirationCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.protobuf.Duration) expiration_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.chat.v1.MarkAsActiveRequest)) { + return super.equals(obj); + } + com.google.chat.v1.MarkAsActiveRequest other = (com.google.chat.v1.MarkAsActiveRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getExpirationCase().equals(other.getExpirationCase())) return false; + switch (expirationCase_) { + case 2: + if (!getExpireTime().equals(other.getExpireTime())) return false; + break; + case 3: + if (!getTtl().equals(other.getTtl())) 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(); + switch (expirationCase_) { + case 2: + hash = (37 * hash) + EXPIRE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getExpireTime().hashCode(); + break; + case 3: + hash = (37 * hash) + TTL_FIELD_NUMBER; + hash = (53 * hash) + getTtl().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.chat.v1.MarkAsActiveRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.MarkAsActiveRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.MarkAsActiveRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.MarkAsActiveRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.MarkAsActiveRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.MarkAsActiveRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.MarkAsActiveRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.MarkAsActiveRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.MarkAsActiveRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.chat.v1.MarkAsActiveRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.MarkAsActiveRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.MarkAsActiveRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.chat.v1.MarkAsActiveRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                +   * Request message for the `MarkAsActive` method.
                +   * 
                + * + * Protobuf type {@code google.chat.v1.MarkAsActiveRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.chat.v1.MarkAsActiveRequest) + com.google.chat.v1.MarkAsActiveRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.AvailabilityProto + .internal_static_google_chat_v1_MarkAsActiveRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.AvailabilityProto + .internal_static_google_chat_v1_MarkAsActiveRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.MarkAsActiveRequest.class, + com.google.chat.v1.MarkAsActiveRequest.Builder.class); + } + + // Construct using com.google.chat.v1.MarkAsActiveRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + if (expireTimeBuilder_ != null) { + expireTimeBuilder_.clear(); + } + if (ttlBuilder_ != null) { + ttlBuilder_.clear(); + } + expirationCase_ = 0; + expiration_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.chat.v1.AvailabilityProto + .internal_static_google_chat_v1_MarkAsActiveRequest_descriptor; + } + + @java.lang.Override + public com.google.chat.v1.MarkAsActiveRequest getDefaultInstanceForType() { + return com.google.chat.v1.MarkAsActiveRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.chat.v1.MarkAsActiveRequest build() { + com.google.chat.v1.MarkAsActiveRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.chat.v1.MarkAsActiveRequest buildPartial() { + com.google.chat.v1.MarkAsActiveRequest result = + new com.google.chat.v1.MarkAsActiveRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.chat.v1.MarkAsActiveRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + private void buildPartialOneofs(com.google.chat.v1.MarkAsActiveRequest result) { + result.expirationCase_ = expirationCase_; + result.expiration_ = this.expiration_; + if (expirationCase_ == 2 && expireTimeBuilder_ != null) { + result.expiration_ = expireTimeBuilder_.build(); + } + if (expirationCase_ == 3 && ttlBuilder_ != null) { + result.expiration_ = ttlBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.chat.v1.MarkAsActiveRequest) { + return mergeFrom((com.google.chat.v1.MarkAsActiveRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.chat.v1.MarkAsActiveRequest other) { + if (other == com.google.chat.v1.MarkAsActiveRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + switch (other.getExpirationCase()) { + case EXPIRE_TIME: + { + mergeExpireTime(other.getExpireTime()); + break; + } + case TTL: + { + mergeTtl(other.getTtl()); + break; + } + case EXPIRATION_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_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetExpireTimeFieldBuilder().getBuilder(), extensionRegistry); + expirationCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(internalGetTtlFieldBuilder().getBuilder(), extensionRegistry); + expirationCase_ = 3; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int expirationCase_ = 0; + private java.lang.Object expiration_; + + public ExpirationCase getExpirationCase() { + return ExpirationCase.forNumber(expirationCase_); + } + + public Builder clearExpiration() { + expirationCase_ = 0; + expiration_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
                +     * Required. The resource name of the availability to mark as active.
                +     * Format: users/{user}/availability
                +     *
                +     * `{user}` is the id for the Person in the People API or Admin SDK directory
                +     * API. For example, `users/123456789`.
                +     *
                +     * The user's email address or `me` can also be used as an alias to refer to
                +     * the caller.  For example, `users/user@example.com` or `users/me`.
                +     * 
                + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                +     * Required. The resource name of the availability to mark as active.
                +     * Format: users/{user}/availability
                +     *
                +     * `{user}` is the id for the Person in the People API or Admin SDK directory
                +     * API. For example, `users/123456789`.
                +     *
                +     * The user's email address or `me` can also be used as an alias to refer to
                +     * the caller.  For example, `users/user@example.com` or `users/me`.
                +     * 
                + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                +     * Required. The resource name of the availability to mark as active.
                +     * Format: users/{user}/availability
                +     *
                +     * `{user}` is the id for the Person in the People API or Admin SDK directory
                +     * API. For example, `users/123456789`.
                +     *
                +     * The user's email address or `me` can also be used as an alias to refer to
                +     * the caller.  For example, `users/user@example.com` or `users/me`.
                +     * 
                + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The resource name of the availability to mark as active.
                +     * Format: users/{user}/availability
                +     *
                +     * `{user}` is the id for the Person in the People API or Admin SDK directory
                +     * API. For example, `users/123456789`.
                +     *
                +     * The user's email address or `me` can also be used as an alias to refer to
                +     * the caller.  For example, `users/user@example.com` or `users/me`.
                +     * 
                + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The resource name of the availability to mark as active.
                +     * Format: users/{user}/availability
                +     *
                +     * `{user}` is the id for the Person in the People API or Admin SDK directory
                +     * API. For example, `users/123456789`.
                +     *
                +     * The user's email address or `me` can also be used as an alias to refer to
                +     * the caller.  For example, `users/user@example.com` or `users/me`.
                +     * 
                + * + * + * 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.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + expireTimeBuilder_; + + /** + * + * + *
                +     * The absolute timestamp when the ACTIVE state expires.
                +     * 
                + * + * .google.protobuf.Timestamp expire_time = 2; + * + * @return Whether the expireTime field is set. + */ + @java.lang.Override + public boolean hasExpireTime() { + return expirationCase_ == 2; + } + + /** + * + * + *
                +     * The absolute timestamp when the ACTIVE state expires.
                +     * 
                + * + * .google.protobuf.Timestamp expire_time = 2; + * + * @return The expireTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getExpireTime() { + if (expireTimeBuilder_ == null) { + if (expirationCase_ == 2) { + return (com.google.protobuf.Timestamp) expiration_; + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } else { + if (expirationCase_ == 2) { + return expireTimeBuilder_.getMessage(); + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } + } + + /** + * + * + *
                +     * The absolute timestamp when the ACTIVE state expires.
                +     * 
                + * + * .google.protobuf.Timestamp expire_time = 2; + */ + public Builder setExpireTime(com.google.protobuf.Timestamp value) { + if (expireTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expiration_ = value; + onChanged(); + } else { + expireTimeBuilder_.setMessage(value); + } + expirationCase_ = 2; + return this; + } + + /** + * + * + *
                +     * The absolute timestamp when the ACTIVE state expires.
                +     * 
                + * + * .google.protobuf.Timestamp expire_time = 2; + */ + public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (expireTimeBuilder_ == null) { + expiration_ = builderForValue.build(); + onChanged(); + } else { + expireTimeBuilder_.setMessage(builderForValue.build()); + } + expirationCase_ = 2; + return this; + } + + /** + * + * + *
                +     * The absolute timestamp when the ACTIVE state expires.
                +     * 
                + * + * .google.protobuf.Timestamp expire_time = 2; + */ + public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { + if (expireTimeBuilder_ == null) { + if (expirationCase_ == 2 + && expiration_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + expiration_ = + com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) expiration_) + .mergeFrom(value) + .buildPartial(); + } else { + expiration_ = value; + } + onChanged(); + } else { + if (expirationCase_ == 2) { + expireTimeBuilder_.mergeFrom(value); + } else { + expireTimeBuilder_.setMessage(value); + } + } + expirationCase_ = 2; + return this; + } + + /** + * + * + *
                +     * The absolute timestamp when the ACTIVE state expires.
                +     * 
                + * + * .google.protobuf.Timestamp expire_time = 2; + */ + public Builder clearExpireTime() { + if (expireTimeBuilder_ == null) { + if (expirationCase_ == 2) { + expirationCase_ = 0; + expiration_ = null; + onChanged(); + } + } else { + if (expirationCase_ == 2) { + expirationCase_ = 0; + expiration_ = null; + } + expireTimeBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                +     * The absolute timestamp when the ACTIVE state expires.
                +     * 
                + * + * .google.protobuf.Timestamp expire_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { + return internalGetExpireTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                +     * The absolute timestamp when the ACTIVE state expires.
                +     * 
                + * + * .google.protobuf.Timestamp expire_time = 2; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { + if ((expirationCase_ == 2) && (expireTimeBuilder_ != null)) { + return expireTimeBuilder_.getMessageOrBuilder(); + } else { + if (expirationCase_ == 2) { + return (com.google.protobuf.Timestamp) expiration_; + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } + } + + /** + * + * + *
                +     * The absolute timestamp when the ACTIVE state expires.
                +     * 
                + * + * .google.protobuf.Timestamp expire_time = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetExpireTimeFieldBuilder() { + if (expireTimeBuilder_ == null) { + if (!(expirationCase_ == 2)) { + expiration_ = com.google.protobuf.Timestamp.getDefaultInstance(); + } + expireTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + (com.google.protobuf.Timestamp) expiration_, getParentForChildren(), isClean()); + expiration_ = null; + } + expirationCase_ = 2; + onChanged(); + return expireTimeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + ttlBuilder_; + + /** + * + * + *
                +     * The duration from the current time until the ACTIVE state expires.
                +     * Using a short TTL can effectively reset the user's state to be based
                +     * on activity after this brief duration.
                +     * 
                + * + * .google.protobuf.Duration ttl = 3; + * + * @return Whether the ttl field is set. + */ + @java.lang.Override + public boolean hasTtl() { + return expirationCase_ == 3; + } + + /** + * + * + *
                +     * The duration from the current time until the ACTIVE state expires.
                +     * Using a short TTL can effectively reset the user's state to be based
                +     * on activity after this brief duration.
                +     * 
                + * + * .google.protobuf.Duration ttl = 3; + * + * @return The ttl. + */ + @java.lang.Override + public com.google.protobuf.Duration getTtl() { + if (ttlBuilder_ == null) { + if (expirationCase_ == 3) { + return (com.google.protobuf.Duration) expiration_; + } + return com.google.protobuf.Duration.getDefaultInstance(); + } else { + if (expirationCase_ == 3) { + return ttlBuilder_.getMessage(); + } + return com.google.protobuf.Duration.getDefaultInstance(); + } + } + + /** + * + * + *
                +     * The duration from the current time until the ACTIVE state expires.
                +     * Using a short TTL can effectively reset the user's state to be based
                +     * on activity after this brief duration.
                +     * 
                + * + * .google.protobuf.Duration ttl = 3; + */ + public Builder setTtl(com.google.protobuf.Duration value) { + if (ttlBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expiration_ = value; + onChanged(); + } else { + ttlBuilder_.setMessage(value); + } + expirationCase_ = 3; + return this; + } + + /** + * + * + *
                +     * The duration from the current time until the ACTIVE state expires.
                +     * Using a short TTL can effectively reset the user's state to be based
                +     * on activity after this brief duration.
                +     * 
                + * + * .google.protobuf.Duration ttl = 3; + */ + public Builder setTtl(com.google.protobuf.Duration.Builder builderForValue) { + if (ttlBuilder_ == null) { + expiration_ = builderForValue.build(); + onChanged(); + } else { + ttlBuilder_.setMessage(builderForValue.build()); + } + expirationCase_ = 3; + return this; + } + + /** + * + * + *
                +     * The duration from the current time until the ACTIVE state expires.
                +     * Using a short TTL can effectively reset the user's state to be based
                +     * on activity after this brief duration.
                +     * 
                + * + * .google.protobuf.Duration ttl = 3; + */ + public Builder mergeTtl(com.google.protobuf.Duration value) { + if (ttlBuilder_ == null) { + if (expirationCase_ == 3 + && expiration_ != com.google.protobuf.Duration.getDefaultInstance()) { + expiration_ = + com.google.protobuf.Duration.newBuilder((com.google.protobuf.Duration) expiration_) + .mergeFrom(value) + .buildPartial(); + } else { + expiration_ = value; + } + onChanged(); + } else { + if (expirationCase_ == 3) { + ttlBuilder_.mergeFrom(value); + } else { + ttlBuilder_.setMessage(value); + } + } + expirationCase_ = 3; + return this; + } + + /** + * + * + *
                +     * The duration from the current time until the ACTIVE state expires.
                +     * Using a short TTL can effectively reset the user's state to be based
                +     * on activity after this brief duration.
                +     * 
                + * + * .google.protobuf.Duration ttl = 3; + */ + public Builder clearTtl() { + if (ttlBuilder_ == null) { + if (expirationCase_ == 3) { + expirationCase_ = 0; + expiration_ = null; + onChanged(); + } + } else { + if (expirationCase_ == 3) { + expirationCase_ = 0; + expiration_ = null; + } + ttlBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                +     * The duration from the current time until the ACTIVE state expires.
                +     * Using a short TTL can effectively reset the user's state to be based
                +     * on activity after this brief duration.
                +     * 
                + * + * .google.protobuf.Duration ttl = 3; + */ + public com.google.protobuf.Duration.Builder getTtlBuilder() { + return internalGetTtlFieldBuilder().getBuilder(); + } + + /** + * + * + *
                +     * The duration from the current time until the ACTIVE state expires.
                +     * Using a short TTL can effectively reset the user's state to be based
                +     * on activity after this brief duration.
                +     * 
                + * + * .google.protobuf.Duration ttl = 3; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() { + if ((expirationCase_ == 3) && (ttlBuilder_ != null)) { + return ttlBuilder_.getMessageOrBuilder(); + } else { + if (expirationCase_ == 3) { + return (com.google.protobuf.Duration) expiration_; + } + return com.google.protobuf.Duration.getDefaultInstance(); + } + } + + /** + * + * + *
                +     * The duration from the current time until the ACTIVE state expires.
                +     * Using a short TTL can effectively reset the user's state to be based
                +     * on activity after this brief duration.
                +     * 
                + * + * .google.protobuf.Duration ttl = 3; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + internalGetTtlFieldBuilder() { + if (ttlBuilder_ == null) { + if (!(expirationCase_ == 3)) { + expiration_ = com.google.protobuf.Duration.getDefaultInstance(); + } + ttlBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + (com.google.protobuf.Duration) expiration_, getParentForChildren(), isClean()); + expiration_ = null; + } + expirationCase_ = 3; + onChanged(); + return ttlBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.chat.v1.MarkAsActiveRequest) + } + + // @@protoc_insertion_point(class_scope:google.chat.v1.MarkAsActiveRequest) + private static final com.google.chat.v1.MarkAsActiveRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.chat.v1.MarkAsActiveRequest(); + } + + public static com.google.chat.v1.MarkAsActiveRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MarkAsActiveRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.chat.v1.MarkAsActiveRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MarkAsActiveRequestOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MarkAsActiveRequestOrBuilder.java new file mode 100644 index 000000000000..10f74f489619 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MarkAsActiveRequestOrBuilder.java @@ -0,0 +1,154 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/chat/v1/availability.proto +// Protobuf Java Version: 4.33.2 + +package com.google.chat.v1; + +@com.google.protobuf.Generated +public interface MarkAsActiveRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.chat.v1.MarkAsActiveRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                +   * Required. The resource name of the availability to mark as active.
                +   * Format: users/{user}/availability
                +   *
                +   * `{user}` is the id for the Person in the People API or Admin SDK directory
                +   * API. For example, `users/123456789`.
                +   *
                +   * The user's email address or `me` can also be used as an alias to refer to
                +   * the caller.  For example, `users/user@example.com` or `users/me`.
                +   * 
                + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                +   * Required. The resource name of the availability to mark as active.
                +   * Format: users/{user}/availability
                +   *
                +   * `{user}` is the id for the Person in the People API or Admin SDK directory
                +   * API. For example, `users/123456789`.
                +   *
                +   * The user's email address or `me` can also be used as an alias to refer to
                +   * the caller.  For example, `users/user@example.com` or `users/me`.
                +   * 
                + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                +   * The absolute timestamp when the ACTIVE state expires.
                +   * 
                + * + * .google.protobuf.Timestamp expire_time = 2; + * + * @return Whether the expireTime field is set. + */ + boolean hasExpireTime(); + + /** + * + * + *
                +   * The absolute timestamp when the ACTIVE state expires.
                +   * 
                + * + * .google.protobuf.Timestamp expire_time = 2; + * + * @return The expireTime. + */ + com.google.protobuf.Timestamp getExpireTime(); + + /** + * + * + *
                +   * The absolute timestamp when the ACTIVE state expires.
                +   * 
                + * + * .google.protobuf.Timestamp expire_time = 2; + */ + com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); + + /** + * + * + *
                +   * The duration from the current time until the ACTIVE state expires.
                +   * Using a short TTL can effectively reset the user's state to be based
                +   * on activity after this brief duration.
                +   * 
                + * + * .google.protobuf.Duration ttl = 3; + * + * @return Whether the ttl field is set. + */ + boolean hasTtl(); + + /** + * + * + *
                +   * The duration from the current time until the ACTIVE state expires.
                +   * Using a short TTL can effectively reset the user's state to be based
                +   * on activity after this brief duration.
                +   * 
                + * + * .google.protobuf.Duration ttl = 3; + * + * @return The ttl. + */ + com.google.protobuf.Duration getTtl(); + + /** + * + * + *
                +   * The duration from the current time until the ACTIVE state expires.
                +   * Using a short TTL can effectively reset the user's state to be based
                +   * on activity after this brief duration.
                +   * 
                + * + * .google.protobuf.Duration ttl = 3; + */ + com.google.protobuf.DurationOrBuilder getTtlOrBuilder(); + + com.google.chat.v1.MarkAsActiveRequest.ExpirationCase getExpirationCase(); +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MarkAsAwayRequest.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MarkAsAwayRequest.java new file mode 100644 index 000000000000..e5ac0b3f0566 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MarkAsAwayRequest.java @@ -0,0 +1,655 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/chat/v1/availability.proto +// Protobuf Java Version: 4.33.2 + +package com.google.chat.v1; + +/** + * + * + *
                + * Request message for the `MarkAsAway` method.
                + * 
                + * + * Protobuf type {@code google.chat.v1.MarkAsAwayRequest} + */ +@com.google.protobuf.Generated +public final class MarkAsAwayRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.chat.v1.MarkAsAwayRequest) + MarkAsAwayRequestOrBuilder { + 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= */ "", + "MarkAsAwayRequest"); + } + + // Use MarkAsAwayRequest.newBuilder() to construct. + private MarkAsAwayRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private MarkAsAwayRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.AvailabilityProto + .internal_static_google_chat_v1_MarkAsAwayRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.AvailabilityProto + .internal_static_google_chat_v1_MarkAsAwayRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.MarkAsAwayRequest.class, + com.google.chat.v1.MarkAsAwayRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                +   * Required. The resource name of the availability to mark as away.
                +   * Format: users/{user}/availability
                +   *
                +   * `{user}` is the id for the Person in the People API or Admin SDK directory
                +   * API. For example, `users/123456789`.
                +   *
                +   * The user's email address or `me` can also be used as an alias to refer to
                +   * the caller.  For example, `users/user@example.com` or `users/me`.
                +   * 
                + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
                +   * Required. The resource name of the availability to mark as away.
                +   * Format: users/{user}/availability
                +   *
                +   * `{user}` is the id for the Person in the People API or Admin SDK directory
                +   * API. For example, `users/123456789`.
                +   *
                +   * The user's email address or `me` can also be used as an alias to refer to
                +   * the caller.  For example, `users/user@example.com` or `users/me`.
                +   * 
                + * + * + * 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.chat.v1.MarkAsAwayRequest)) { + return super.equals(obj); + } + com.google.chat.v1.MarkAsAwayRequest other = (com.google.chat.v1.MarkAsAwayRequest) 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.chat.v1.MarkAsAwayRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.MarkAsAwayRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.MarkAsAwayRequest parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.MarkAsAwayRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.MarkAsAwayRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.MarkAsAwayRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.MarkAsAwayRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.MarkAsAwayRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.MarkAsAwayRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.chat.v1.MarkAsAwayRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.MarkAsAwayRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.MarkAsAwayRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.chat.v1.MarkAsAwayRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                +   * Request message for the `MarkAsAway` method.
                +   * 
                + * + * Protobuf type {@code google.chat.v1.MarkAsAwayRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.chat.v1.MarkAsAwayRequest) + com.google.chat.v1.MarkAsAwayRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.AvailabilityProto + .internal_static_google_chat_v1_MarkAsAwayRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.AvailabilityProto + .internal_static_google_chat_v1_MarkAsAwayRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.MarkAsAwayRequest.class, + com.google.chat.v1.MarkAsAwayRequest.Builder.class); + } + + // Construct using com.google.chat.v1.MarkAsAwayRequest.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.chat.v1.AvailabilityProto + .internal_static_google_chat_v1_MarkAsAwayRequest_descriptor; + } + + @java.lang.Override + public com.google.chat.v1.MarkAsAwayRequest getDefaultInstanceForType() { + return com.google.chat.v1.MarkAsAwayRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.chat.v1.MarkAsAwayRequest build() { + com.google.chat.v1.MarkAsAwayRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.chat.v1.MarkAsAwayRequest buildPartial() { + com.google.chat.v1.MarkAsAwayRequest result = new com.google.chat.v1.MarkAsAwayRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.chat.v1.MarkAsAwayRequest 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.chat.v1.MarkAsAwayRequest) { + return mergeFrom((com.google.chat.v1.MarkAsAwayRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.chat.v1.MarkAsAwayRequest other) { + if (other == com.google.chat.v1.MarkAsAwayRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
                +     * Required. The resource name of the availability to mark as away.
                +     * Format: users/{user}/availability
                +     *
                +     * `{user}` is the id for the Person in the People API or Admin SDK directory
                +     * API. For example, `users/123456789`.
                +     *
                +     * The user's email address or `me` can also be used as an alias to refer to
                +     * the caller.  For example, `users/user@example.com` or `users/me`.
                +     * 
                + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                +     * Required. The resource name of the availability to mark as away.
                +     * Format: users/{user}/availability
                +     *
                +     * `{user}` is the id for the Person in the People API or Admin SDK directory
                +     * API. For example, `users/123456789`.
                +     *
                +     * The user's email address or `me` can also be used as an alias to refer to
                +     * the caller.  For example, `users/user@example.com` or `users/me`.
                +     * 
                + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                +     * Required. The resource name of the availability to mark as away.
                +     * Format: users/{user}/availability
                +     *
                +     * `{user}` is the id for the Person in the People API or Admin SDK directory
                +     * API. For example, `users/123456789`.
                +     *
                +     * The user's email address or `me` can also be used as an alias to refer to
                +     * the caller.  For example, `users/user@example.com` or `users/me`.
                +     * 
                + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The resource name of the availability to mark as away.
                +     * Format: users/{user}/availability
                +     *
                +     * `{user}` is the id for the Person in the People API or Admin SDK directory
                +     * API. For example, `users/123456789`.
                +     *
                +     * The user's email address or `me` can also be used as an alias to refer to
                +     * the caller.  For example, `users/user@example.com` or `users/me`.
                +     * 
                + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The resource name of the availability to mark as away.
                +     * Format: users/{user}/availability
                +     *
                +     * `{user}` is the id for the Person in the People API or Admin SDK directory
                +     * API. For example, `users/123456789`.
                +     *
                +     * The user's email address or `me` can also be used as an alias to refer to
                +     * the caller.  For example, `users/user@example.com` or `users/me`.
                +     * 
                + * + * + * 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.chat.v1.MarkAsAwayRequest) + } + + // @@protoc_insertion_point(class_scope:google.chat.v1.MarkAsAwayRequest) + private static final com.google.chat.v1.MarkAsAwayRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.chat.v1.MarkAsAwayRequest(); + } + + public static com.google.chat.v1.MarkAsAwayRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MarkAsAwayRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.chat.v1.MarkAsAwayRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MarkAsAwayRequestOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MarkAsAwayRequestOrBuilder.java new file mode 100644 index 000000000000..e6549428bd2a --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MarkAsAwayRequestOrBuilder.java @@ -0,0 +1,72 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/chat/v1/availability.proto +// Protobuf Java Version: 4.33.2 + +package com.google.chat.v1; + +@com.google.protobuf.Generated +public interface MarkAsAwayRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.chat.v1.MarkAsAwayRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                +   * Required. The resource name of the availability to mark as away.
                +   * Format: users/{user}/availability
                +   *
                +   * `{user}` is the id for the Person in the People API or Admin SDK directory
                +   * API. For example, `users/123456789`.
                +   *
                +   * The user's email address or `me` can also be used as an alias to refer to
                +   * the caller.  For example, `users/user@example.com` or `users/me`.
                +   * 
                + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                +   * Required. The resource name of the availability to mark as away.
                +   * Format: users/{user}/availability
                +   *
                +   * `{user}` is the id for the Person in the People API or Admin SDK directory
                +   * API. For example, `users/123456789`.
                +   *
                +   * The user's email address or `me` can also be used as an alias to refer to
                +   * the caller.  For example, `users/user@example.com` or `users/me`.
                +   * 
                + * + * + * 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-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MarkAsDoNotDisturbRequest.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MarkAsDoNotDisturbRequest.java new file mode 100644 index 000000000000..a84af7a27e3b --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MarkAsDoNotDisturbRequest.java @@ -0,0 +1,1346 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/chat/v1/availability.proto +// Protobuf Java Version: 4.33.2 + +package com.google.chat.v1; + +/** + * + * + *
                + * Request message for the `MarkAsDoNotDisturb` method.
                + * 
                + * + * Protobuf type {@code google.chat.v1.MarkAsDoNotDisturbRequest} + */ +@com.google.protobuf.Generated +public final class MarkAsDoNotDisturbRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.chat.v1.MarkAsDoNotDisturbRequest) + MarkAsDoNotDisturbRequestOrBuilder { + 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= */ "", + "MarkAsDoNotDisturbRequest"); + } + + // Use MarkAsDoNotDisturbRequest.newBuilder() to construct. + private MarkAsDoNotDisturbRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private MarkAsDoNotDisturbRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.AvailabilityProto + .internal_static_google_chat_v1_MarkAsDoNotDisturbRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.AvailabilityProto + .internal_static_google_chat_v1_MarkAsDoNotDisturbRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.MarkAsDoNotDisturbRequest.class, + com.google.chat.v1.MarkAsDoNotDisturbRequest.Builder.class); + } + + private int expirationCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object expiration_; + + public enum ExpirationCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + EXPIRE_TIME(2), + TTL(3), + EXPIRATION_NOT_SET(0); + private final int value; + + private ExpirationCase(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 ExpirationCase valueOf(int value) { + return forNumber(value); + } + + public static ExpirationCase forNumber(int value) { + switch (value) { + case 2: + return EXPIRE_TIME; + case 3: + return TTL; + case 0: + return EXPIRATION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ExpirationCase getExpirationCase() { + return ExpirationCase.forNumber(expirationCase_); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                +   * Required. The resource name of the availability to mark as Do Not Disturb.
                +   * Format: users/{user}/availability
                +   *
                +   * `{user}` is the id for the Person in the People API or Admin SDK directory
                +   * API. For example, `users/123456789`.
                +   *
                +   * The user's email address or `me` can also be used as an alias to refer to
                +   * the caller.  For example, `users/user@example.com` or `users/me`.
                +   * 
                + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
                +   * Required. The resource name of the availability to mark as Do Not Disturb.
                +   * Format: users/{user}/availability
                +   *
                +   * `{user}` is the id for the Person in the People API or Admin SDK directory
                +   * API. For example, `users/123456789`.
                +   *
                +   * The user's email address or `me` can also be used as an alias to refer to
                +   * the caller.  For example, `users/user@example.com` or `users/me`.
                +   * 
                + * + * + * 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 EXPIRE_TIME_FIELD_NUMBER = 2; + + /** + * + * + *
                +   * The absolute timestamp when the DND state expires.
                +   * 
                + * + * .google.protobuf.Timestamp expire_time = 2; + * + * @return Whether the expireTime field is set. + */ + @java.lang.Override + public boolean hasExpireTime() { + return expirationCase_ == 2; + } + + /** + * + * + *
                +   * The absolute timestamp when the DND state expires.
                +   * 
                + * + * .google.protobuf.Timestamp expire_time = 2; + * + * @return The expireTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getExpireTime() { + if (expirationCase_ == 2) { + return (com.google.protobuf.Timestamp) expiration_; + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } + + /** + * + * + *
                +   * The absolute timestamp when the DND state expires.
                +   * 
                + * + * .google.protobuf.Timestamp expire_time = 2; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { + if (expirationCase_ == 2) { + return (com.google.protobuf.Timestamp) expiration_; + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } + + public static final int TTL_FIELD_NUMBER = 3; + + /** + * + * + *
                +   * The duration from the current time until the DND state expires.
                +   * 
                + * + * .google.protobuf.Duration ttl = 3; + * + * @return Whether the ttl field is set. + */ + @java.lang.Override + public boolean hasTtl() { + return expirationCase_ == 3; + } + + /** + * + * + *
                +   * The duration from the current time until the DND state expires.
                +   * 
                + * + * .google.protobuf.Duration ttl = 3; + * + * @return The ttl. + */ + @java.lang.Override + public com.google.protobuf.Duration getTtl() { + if (expirationCase_ == 3) { + return (com.google.protobuf.Duration) expiration_; + } + return com.google.protobuf.Duration.getDefaultInstance(); + } + + /** + * + * + *
                +   * The duration from the current time until the DND state expires.
                +   * 
                + * + * .google.protobuf.Duration ttl = 3; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() { + if (expirationCase_ == 3) { + return (com.google.protobuf.Duration) expiration_; + } + return com.google.protobuf.Duration.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (expirationCase_ == 2) { + output.writeMessage(2, (com.google.protobuf.Timestamp) expiration_); + } + if (expirationCase_ == 3) { + output.writeMessage(3, (com.google.protobuf.Duration) expiration_); + } + 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 (expirationCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.protobuf.Timestamp) expiration_); + } + if (expirationCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.protobuf.Duration) expiration_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.chat.v1.MarkAsDoNotDisturbRequest)) { + return super.equals(obj); + } + com.google.chat.v1.MarkAsDoNotDisturbRequest other = + (com.google.chat.v1.MarkAsDoNotDisturbRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getExpirationCase().equals(other.getExpirationCase())) return false; + switch (expirationCase_) { + case 2: + if (!getExpireTime().equals(other.getExpireTime())) return false; + break; + case 3: + if (!getTtl().equals(other.getTtl())) 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(); + switch (expirationCase_) { + case 2: + hash = (37 * hash) + EXPIRE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getExpireTime().hashCode(); + break; + case 3: + hash = (37 * hash) + TTL_FIELD_NUMBER; + hash = (53 * hash) + getTtl().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.chat.v1.MarkAsDoNotDisturbRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.MarkAsDoNotDisturbRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.MarkAsDoNotDisturbRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.MarkAsDoNotDisturbRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.MarkAsDoNotDisturbRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.MarkAsDoNotDisturbRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.MarkAsDoNotDisturbRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.MarkAsDoNotDisturbRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.MarkAsDoNotDisturbRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.chat.v1.MarkAsDoNotDisturbRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.MarkAsDoNotDisturbRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.MarkAsDoNotDisturbRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.chat.v1.MarkAsDoNotDisturbRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                +   * Request message for the `MarkAsDoNotDisturb` method.
                +   * 
                + * + * Protobuf type {@code google.chat.v1.MarkAsDoNotDisturbRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.chat.v1.MarkAsDoNotDisturbRequest) + com.google.chat.v1.MarkAsDoNotDisturbRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.AvailabilityProto + .internal_static_google_chat_v1_MarkAsDoNotDisturbRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.AvailabilityProto + .internal_static_google_chat_v1_MarkAsDoNotDisturbRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.MarkAsDoNotDisturbRequest.class, + com.google.chat.v1.MarkAsDoNotDisturbRequest.Builder.class); + } + + // Construct using com.google.chat.v1.MarkAsDoNotDisturbRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + if (expireTimeBuilder_ != null) { + expireTimeBuilder_.clear(); + } + if (ttlBuilder_ != null) { + ttlBuilder_.clear(); + } + expirationCase_ = 0; + expiration_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.chat.v1.AvailabilityProto + .internal_static_google_chat_v1_MarkAsDoNotDisturbRequest_descriptor; + } + + @java.lang.Override + public com.google.chat.v1.MarkAsDoNotDisturbRequest getDefaultInstanceForType() { + return com.google.chat.v1.MarkAsDoNotDisturbRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.chat.v1.MarkAsDoNotDisturbRequest build() { + com.google.chat.v1.MarkAsDoNotDisturbRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.chat.v1.MarkAsDoNotDisturbRequest buildPartial() { + com.google.chat.v1.MarkAsDoNotDisturbRequest result = + new com.google.chat.v1.MarkAsDoNotDisturbRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.chat.v1.MarkAsDoNotDisturbRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + private void buildPartialOneofs(com.google.chat.v1.MarkAsDoNotDisturbRequest result) { + result.expirationCase_ = expirationCase_; + result.expiration_ = this.expiration_; + if (expirationCase_ == 2 && expireTimeBuilder_ != null) { + result.expiration_ = expireTimeBuilder_.build(); + } + if (expirationCase_ == 3 && ttlBuilder_ != null) { + result.expiration_ = ttlBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.chat.v1.MarkAsDoNotDisturbRequest) { + return mergeFrom((com.google.chat.v1.MarkAsDoNotDisturbRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.chat.v1.MarkAsDoNotDisturbRequest other) { + if (other == com.google.chat.v1.MarkAsDoNotDisturbRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + switch (other.getExpirationCase()) { + case EXPIRE_TIME: + { + mergeExpireTime(other.getExpireTime()); + break; + } + case TTL: + { + mergeTtl(other.getTtl()); + break; + } + case EXPIRATION_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_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetExpireTimeFieldBuilder().getBuilder(), extensionRegistry); + expirationCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(internalGetTtlFieldBuilder().getBuilder(), extensionRegistry); + expirationCase_ = 3; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int expirationCase_ = 0; + private java.lang.Object expiration_; + + public ExpirationCase getExpirationCase() { + return ExpirationCase.forNumber(expirationCase_); + } + + public Builder clearExpiration() { + expirationCase_ = 0; + expiration_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
                +     * Required. The resource name of the availability to mark as Do Not Disturb.
                +     * Format: users/{user}/availability
                +     *
                +     * `{user}` is the id for the Person in the People API or Admin SDK directory
                +     * API. For example, `users/123456789`.
                +     *
                +     * The user's email address or `me` can also be used as an alias to refer to
                +     * the caller.  For example, `users/user@example.com` or `users/me`.
                +     * 
                + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                +     * Required. The resource name of the availability to mark as Do Not Disturb.
                +     * Format: users/{user}/availability
                +     *
                +     * `{user}` is the id for the Person in the People API or Admin SDK directory
                +     * API. For example, `users/123456789`.
                +     *
                +     * The user's email address or `me` can also be used as an alias to refer to
                +     * the caller.  For example, `users/user@example.com` or `users/me`.
                +     * 
                + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                +     * Required. The resource name of the availability to mark as Do Not Disturb.
                +     * Format: users/{user}/availability
                +     *
                +     * `{user}` is the id for the Person in the People API or Admin SDK directory
                +     * API. For example, `users/123456789`.
                +     *
                +     * The user's email address or `me` can also be used as an alias to refer to
                +     * the caller.  For example, `users/user@example.com` or `users/me`.
                +     * 
                + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The resource name of the availability to mark as Do Not Disturb.
                +     * Format: users/{user}/availability
                +     *
                +     * `{user}` is the id for the Person in the People API or Admin SDK directory
                +     * API. For example, `users/123456789`.
                +     *
                +     * The user's email address or `me` can also be used as an alias to refer to
                +     * the caller.  For example, `users/user@example.com` or `users/me`.
                +     * 
                + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The resource name of the availability to mark as Do Not Disturb.
                +     * Format: users/{user}/availability
                +     *
                +     * `{user}` is the id for the Person in the People API or Admin SDK directory
                +     * API. For example, `users/123456789`.
                +     *
                +     * The user's email address or `me` can also be used as an alias to refer to
                +     * the caller.  For example, `users/user@example.com` or `users/me`.
                +     * 
                + * + * + * 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.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + expireTimeBuilder_; + + /** + * + * + *
                +     * The absolute timestamp when the DND state expires.
                +     * 
                + * + * .google.protobuf.Timestamp expire_time = 2; + * + * @return Whether the expireTime field is set. + */ + @java.lang.Override + public boolean hasExpireTime() { + return expirationCase_ == 2; + } + + /** + * + * + *
                +     * The absolute timestamp when the DND state expires.
                +     * 
                + * + * .google.protobuf.Timestamp expire_time = 2; + * + * @return The expireTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getExpireTime() { + if (expireTimeBuilder_ == null) { + if (expirationCase_ == 2) { + return (com.google.protobuf.Timestamp) expiration_; + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } else { + if (expirationCase_ == 2) { + return expireTimeBuilder_.getMessage(); + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } + } + + /** + * + * + *
                +     * The absolute timestamp when the DND state expires.
                +     * 
                + * + * .google.protobuf.Timestamp expire_time = 2; + */ + public Builder setExpireTime(com.google.protobuf.Timestamp value) { + if (expireTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expiration_ = value; + onChanged(); + } else { + expireTimeBuilder_.setMessage(value); + } + expirationCase_ = 2; + return this; + } + + /** + * + * + *
                +     * The absolute timestamp when the DND state expires.
                +     * 
                + * + * .google.protobuf.Timestamp expire_time = 2; + */ + public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (expireTimeBuilder_ == null) { + expiration_ = builderForValue.build(); + onChanged(); + } else { + expireTimeBuilder_.setMessage(builderForValue.build()); + } + expirationCase_ = 2; + return this; + } + + /** + * + * + *
                +     * The absolute timestamp when the DND state expires.
                +     * 
                + * + * .google.protobuf.Timestamp expire_time = 2; + */ + public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { + if (expireTimeBuilder_ == null) { + if (expirationCase_ == 2 + && expiration_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + expiration_ = + com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) expiration_) + .mergeFrom(value) + .buildPartial(); + } else { + expiration_ = value; + } + onChanged(); + } else { + if (expirationCase_ == 2) { + expireTimeBuilder_.mergeFrom(value); + } else { + expireTimeBuilder_.setMessage(value); + } + } + expirationCase_ = 2; + return this; + } + + /** + * + * + *
                +     * The absolute timestamp when the DND state expires.
                +     * 
                + * + * .google.protobuf.Timestamp expire_time = 2; + */ + public Builder clearExpireTime() { + if (expireTimeBuilder_ == null) { + if (expirationCase_ == 2) { + expirationCase_ = 0; + expiration_ = null; + onChanged(); + } + } else { + if (expirationCase_ == 2) { + expirationCase_ = 0; + expiration_ = null; + } + expireTimeBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                +     * The absolute timestamp when the DND state expires.
                +     * 
                + * + * .google.protobuf.Timestamp expire_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { + return internalGetExpireTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                +     * The absolute timestamp when the DND state expires.
                +     * 
                + * + * .google.protobuf.Timestamp expire_time = 2; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { + if ((expirationCase_ == 2) && (expireTimeBuilder_ != null)) { + return expireTimeBuilder_.getMessageOrBuilder(); + } else { + if (expirationCase_ == 2) { + return (com.google.protobuf.Timestamp) expiration_; + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } + } + + /** + * + * + *
                +     * The absolute timestamp when the DND state expires.
                +     * 
                + * + * .google.protobuf.Timestamp expire_time = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetExpireTimeFieldBuilder() { + if (expireTimeBuilder_ == null) { + if (!(expirationCase_ == 2)) { + expiration_ = com.google.protobuf.Timestamp.getDefaultInstance(); + } + expireTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + (com.google.protobuf.Timestamp) expiration_, getParentForChildren(), isClean()); + expiration_ = null; + } + expirationCase_ = 2; + onChanged(); + return expireTimeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + ttlBuilder_; + + /** + * + * + *
                +     * The duration from the current time until the DND state expires.
                +     * 
                + * + * .google.protobuf.Duration ttl = 3; + * + * @return Whether the ttl field is set. + */ + @java.lang.Override + public boolean hasTtl() { + return expirationCase_ == 3; + } + + /** + * + * + *
                +     * The duration from the current time until the DND state expires.
                +     * 
                + * + * .google.protobuf.Duration ttl = 3; + * + * @return The ttl. + */ + @java.lang.Override + public com.google.protobuf.Duration getTtl() { + if (ttlBuilder_ == null) { + if (expirationCase_ == 3) { + return (com.google.protobuf.Duration) expiration_; + } + return com.google.protobuf.Duration.getDefaultInstance(); + } else { + if (expirationCase_ == 3) { + return ttlBuilder_.getMessage(); + } + return com.google.protobuf.Duration.getDefaultInstance(); + } + } + + /** + * + * + *
                +     * The duration from the current time until the DND state expires.
                +     * 
                + * + * .google.protobuf.Duration ttl = 3; + */ + public Builder setTtl(com.google.protobuf.Duration value) { + if (ttlBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expiration_ = value; + onChanged(); + } else { + ttlBuilder_.setMessage(value); + } + expirationCase_ = 3; + return this; + } + + /** + * + * + *
                +     * The duration from the current time until the DND state expires.
                +     * 
                + * + * .google.protobuf.Duration ttl = 3; + */ + public Builder setTtl(com.google.protobuf.Duration.Builder builderForValue) { + if (ttlBuilder_ == null) { + expiration_ = builderForValue.build(); + onChanged(); + } else { + ttlBuilder_.setMessage(builderForValue.build()); + } + expirationCase_ = 3; + return this; + } + + /** + * + * + *
                +     * The duration from the current time until the DND state expires.
                +     * 
                + * + * .google.protobuf.Duration ttl = 3; + */ + public Builder mergeTtl(com.google.protobuf.Duration value) { + if (ttlBuilder_ == null) { + if (expirationCase_ == 3 + && expiration_ != com.google.protobuf.Duration.getDefaultInstance()) { + expiration_ = + com.google.protobuf.Duration.newBuilder((com.google.protobuf.Duration) expiration_) + .mergeFrom(value) + .buildPartial(); + } else { + expiration_ = value; + } + onChanged(); + } else { + if (expirationCase_ == 3) { + ttlBuilder_.mergeFrom(value); + } else { + ttlBuilder_.setMessage(value); + } + } + expirationCase_ = 3; + return this; + } + + /** + * + * + *
                +     * The duration from the current time until the DND state expires.
                +     * 
                + * + * .google.protobuf.Duration ttl = 3; + */ + public Builder clearTtl() { + if (ttlBuilder_ == null) { + if (expirationCase_ == 3) { + expirationCase_ = 0; + expiration_ = null; + onChanged(); + } + } else { + if (expirationCase_ == 3) { + expirationCase_ = 0; + expiration_ = null; + } + ttlBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                +     * The duration from the current time until the DND state expires.
                +     * 
                + * + * .google.protobuf.Duration ttl = 3; + */ + public com.google.protobuf.Duration.Builder getTtlBuilder() { + return internalGetTtlFieldBuilder().getBuilder(); + } + + /** + * + * + *
                +     * The duration from the current time until the DND state expires.
                +     * 
                + * + * .google.protobuf.Duration ttl = 3; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() { + if ((expirationCase_ == 3) && (ttlBuilder_ != null)) { + return ttlBuilder_.getMessageOrBuilder(); + } else { + if (expirationCase_ == 3) { + return (com.google.protobuf.Duration) expiration_; + } + return com.google.protobuf.Duration.getDefaultInstance(); + } + } + + /** + * + * + *
                +     * The duration from the current time until the DND state expires.
                +     * 
                + * + * .google.protobuf.Duration ttl = 3; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + internalGetTtlFieldBuilder() { + if (ttlBuilder_ == null) { + if (!(expirationCase_ == 3)) { + expiration_ = com.google.protobuf.Duration.getDefaultInstance(); + } + ttlBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + (com.google.protobuf.Duration) expiration_, getParentForChildren(), isClean()); + expiration_ = null; + } + expirationCase_ = 3; + onChanged(); + return ttlBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.chat.v1.MarkAsDoNotDisturbRequest) + } + + // @@protoc_insertion_point(class_scope:google.chat.v1.MarkAsDoNotDisturbRequest) + private static final com.google.chat.v1.MarkAsDoNotDisturbRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.chat.v1.MarkAsDoNotDisturbRequest(); + } + + public static com.google.chat.v1.MarkAsDoNotDisturbRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MarkAsDoNotDisturbRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.chat.v1.MarkAsDoNotDisturbRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MarkAsDoNotDisturbRequestOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MarkAsDoNotDisturbRequestOrBuilder.java new file mode 100644 index 000000000000..a79f9280079f --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MarkAsDoNotDisturbRequestOrBuilder.java @@ -0,0 +1,148 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/chat/v1/availability.proto +// Protobuf Java Version: 4.33.2 + +package com.google.chat.v1; + +@com.google.protobuf.Generated +public interface MarkAsDoNotDisturbRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.chat.v1.MarkAsDoNotDisturbRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                +   * Required. The resource name of the availability to mark as Do Not Disturb.
                +   * Format: users/{user}/availability
                +   *
                +   * `{user}` is the id for the Person in the People API or Admin SDK directory
                +   * API. For example, `users/123456789`.
                +   *
                +   * The user's email address or `me` can also be used as an alias to refer to
                +   * the caller.  For example, `users/user@example.com` or `users/me`.
                +   * 
                + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                +   * Required. The resource name of the availability to mark as Do Not Disturb.
                +   * Format: users/{user}/availability
                +   *
                +   * `{user}` is the id for the Person in the People API or Admin SDK directory
                +   * API. For example, `users/123456789`.
                +   *
                +   * The user's email address or `me` can also be used as an alias to refer to
                +   * the caller.  For example, `users/user@example.com` or `users/me`.
                +   * 
                + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                +   * The absolute timestamp when the DND state expires.
                +   * 
                + * + * .google.protobuf.Timestamp expire_time = 2; + * + * @return Whether the expireTime field is set. + */ + boolean hasExpireTime(); + + /** + * + * + *
                +   * The absolute timestamp when the DND state expires.
                +   * 
                + * + * .google.protobuf.Timestamp expire_time = 2; + * + * @return The expireTime. + */ + com.google.protobuf.Timestamp getExpireTime(); + + /** + * + * + *
                +   * The absolute timestamp when the DND state expires.
                +   * 
                + * + * .google.protobuf.Timestamp expire_time = 2; + */ + com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); + + /** + * + * + *
                +   * The duration from the current time until the DND state expires.
                +   * 
                + * + * .google.protobuf.Duration ttl = 3; + * + * @return Whether the ttl field is set. + */ + boolean hasTtl(); + + /** + * + * + *
                +   * The duration from the current time until the DND state expires.
                +   * 
                + * + * .google.protobuf.Duration ttl = 3; + * + * @return The ttl. + */ + com.google.protobuf.Duration getTtl(); + + /** + * + * + *
                +   * The duration from the current time until the DND state expires.
                +   * 
                + * + * .google.protobuf.Duration ttl = 3; + */ + com.google.protobuf.DurationOrBuilder getTtlOrBuilder(); + + com.google.chat.v1.MarkAsDoNotDisturbRequest.ExpirationCase getExpirationCase(); +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/UpdateAvailabilityRequest.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/UpdateAvailabilityRequest.java new file mode 100644 index 000000000000..f3c75a937837 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/UpdateAvailabilityRequest.java @@ -0,0 +1,1020 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/chat/v1/availability.proto +// Protobuf Java Version: 4.33.2 + +package com.google.chat.v1; + +/** + * + * + *
                + * Request message for the `UpdateAvailability` method.
                + * 
                + * + * Protobuf type {@code google.chat.v1.UpdateAvailabilityRequest} + */ +@com.google.protobuf.Generated +public final class UpdateAvailabilityRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.chat.v1.UpdateAvailabilityRequest) + UpdateAvailabilityRequestOrBuilder { + 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= */ "", + "UpdateAvailabilityRequest"); + } + + // Use UpdateAvailabilityRequest.newBuilder() to construct. + private UpdateAvailabilityRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateAvailabilityRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.AvailabilityProto + .internal_static_google_chat_v1_UpdateAvailabilityRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.AvailabilityProto + .internal_static_google_chat_v1_UpdateAvailabilityRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.UpdateAvailabilityRequest.class, + com.google.chat.v1.UpdateAvailabilityRequest.Builder.class); + } + + private int bitField0_; + public static final int AVAILABILITY_FIELD_NUMBER = 1; + private com.google.chat.v1.Availability availability_; + + /** + * + * + *
                +   * Required. The availability to update.
                +   * 
                + * + * .google.chat.v1.Availability availability = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the availability field is set. + */ + @java.lang.Override + public boolean hasAvailability() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                +   * Required. The availability to update.
                +   * 
                + * + * .google.chat.v1.Availability availability = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The availability. + */ + @java.lang.Override + public com.google.chat.v1.Availability getAvailability() { + return availability_ == null + ? com.google.chat.v1.Availability.getDefaultInstance() + : availability_; + } + + /** + * + * + *
                +   * Required. The availability to update.
                +   * 
                + * + * .google.chat.v1.Availability availability = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.chat.v1.AvailabilityOrBuilder getAvailabilityOrBuilder() { + return availability_ == null + ? com.google.chat.v1.Availability.getDefaultInstance() + : availability_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
                +   * Required. The list of fields to update.
                +   * The only field that can be updated is `custom_status`.
                +   * 
                + * + * .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.
                +   * The only field that can be updated is `custom_status`.
                +   * 
                + * + * .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.
                +   * The only field that can be updated is `custom_status`.
                +   * 
                + * + * .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, getAvailability()); + } + 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, getAvailability()); + } + 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.chat.v1.UpdateAvailabilityRequest)) { + return super.equals(obj); + } + com.google.chat.v1.UpdateAvailabilityRequest other = + (com.google.chat.v1.UpdateAvailabilityRequest) obj; + + if (hasAvailability() != other.hasAvailability()) return false; + if (hasAvailability()) { + if (!getAvailability().equals(other.getAvailability())) 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 (hasAvailability()) { + hash = (37 * hash) + AVAILABILITY_FIELD_NUMBER; + hash = (53 * hash) + getAvailability().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.chat.v1.UpdateAvailabilityRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.UpdateAvailabilityRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.UpdateAvailabilityRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.UpdateAvailabilityRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.UpdateAvailabilityRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.UpdateAvailabilityRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.UpdateAvailabilityRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.UpdateAvailabilityRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.UpdateAvailabilityRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.chat.v1.UpdateAvailabilityRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.UpdateAvailabilityRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.UpdateAvailabilityRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.chat.v1.UpdateAvailabilityRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                +   * Request message for the `UpdateAvailability` method.
                +   * 
                + * + * Protobuf type {@code google.chat.v1.UpdateAvailabilityRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.chat.v1.UpdateAvailabilityRequest) + com.google.chat.v1.UpdateAvailabilityRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.AvailabilityProto + .internal_static_google_chat_v1_UpdateAvailabilityRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.AvailabilityProto + .internal_static_google_chat_v1_UpdateAvailabilityRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.UpdateAvailabilityRequest.class, + com.google.chat.v1.UpdateAvailabilityRequest.Builder.class); + } + + // Construct using com.google.chat.v1.UpdateAvailabilityRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetAvailabilityFieldBuilder(); + internalGetUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + availability_ = null; + if (availabilityBuilder_ != null) { + availabilityBuilder_.dispose(); + availabilityBuilder_ = 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.chat.v1.AvailabilityProto + .internal_static_google_chat_v1_UpdateAvailabilityRequest_descriptor; + } + + @java.lang.Override + public com.google.chat.v1.UpdateAvailabilityRequest getDefaultInstanceForType() { + return com.google.chat.v1.UpdateAvailabilityRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.chat.v1.UpdateAvailabilityRequest build() { + com.google.chat.v1.UpdateAvailabilityRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.chat.v1.UpdateAvailabilityRequest buildPartial() { + com.google.chat.v1.UpdateAvailabilityRequest result = + new com.google.chat.v1.UpdateAvailabilityRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.chat.v1.UpdateAvailabilityRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.availability_ = + availabilityBuilder_ == null ? availability_ : availabilityBuilder_.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.chat.v1.UpdateAvailabilityRequest) { + return mergeFrom((com.google.chat.v1.UpdateAvailabilityRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.chat.v1.UpdateAvailabilityRequest other) { + if (other == com.google.chat.v1.UpdateAvailabilityRequest.getDefaultInstance()) return this; + if (other.hasAvailability()) { + mergeAvailability(other.getAvailability()); + } + 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( + internalGetAvailabilityFieldBuilder().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.chat.v1.Availability availability_; + private com.google.protobuf.SingleFieldBuilder< + com.google.chat.v1.Availability, + com.google.chat.v1.Availability.Builder, + com.google.chat.v1.AvailabilityOrBuilder> + availabilityBuilder_; + + /** + * + * + *
                +     * Required. The availability to update.
                +     * 
                + * + * + * .google.chat.v1.Availability availability = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the availability field is set. + */ + public boolean hasAvailability() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                +     * Required. The availability to update.
                +     * 
                + * + * + * .google.chat.v1.Availability availability = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The availability. + */ + public com.google.chat.v1.Availability getAvailability() { + if (availabilityBuilder_ == null) { + return availability_ == null + ? com.google.chat.v1.Availability.getDefaultInstance() + : availability_; + } else { + return availabilityBuilder_.getMessage(); + } + } + + /** + * + * + *
                +     * Required. The availability to update.
                +     * 
                + * + * + * .google.chat.v1.Availability availability = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAvailability(com.google.chat.v1.Availability value) { + if (availabilityBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + availability_ = value; + } else { + availabilityBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The availability to update.
                +     * 
                + * + * + * .google.chat.v1.Availability availability = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAvailability(com.google.chat.v1.Availability.Builder builderForValue) { + if (availabilityBuilder_ == null) { + availability_ = builderForValue.build(); + } else { + availabilityBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The availability to update.
                +     * 
                + * + * + * .google.chat.v1.Availability availability = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAvailability(com.google.chat.v1.Availability value) { + if (availabilityBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && availability_ != null + && availability_ != com.google.chat.v1.Availability.getDefaultInstance()) { + getAvailabilityBuilder().mergeFrom(value); + } else { + availability_ = value; + } + } else { + availabilityBuilder_.mergeFrom(value); + } + if (availability_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
                +     * Required. The availability to update.
                +     * 
                + * + * + * .google.chat.v1.Availability availability = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAvailability() { + bitField0_ = (bitField0_ & ~0x00000001); + availability_ = null; + if (availabilityBuilder_ != null) { + availabilityBuilder_.dispose(); + availabilityBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The availability to update.
                +     * 
                + * + * + * .google.chat.v1.Availability availability = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.chat.v1.Availability.Builder getAvailabilityBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetAvailabilityFieldBuilder().getBuilder(); + } + + /** + * + * + *
                +     * Required. The availability to update.
                +     * 
                + * + * + * .google.chat.v1.Availability availability = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.chat.v1.AvailabilityOrBuilder getAvailabilityOrBuilder() { + if (availabilityBuilder_ != null) { + return availabilityBuilder_.getMessageOrBuilder(); + } else { + return availability_ == null + ? com.google.chat.v1.Availability.getDefaultInstance() + : availability_; + } + } + + /** + * + * + *
                +     * Required. The availability to update.
                +     * 
                + * + * + * .google.chat.v1.Availability availability = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.chat.v1.Availability, + com.google.chat.v1.Availability.Builder, + com.google.chat.v1.AvailabilityOrBuilder> + internalGetAvailabilityFieldBuilder() { + if (availabilityBuilder_ == null) { + availabilityBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.chat.v1.Availability, + com.google.chat.v1.Availability.Builder, + com.google.chat.v1.AvailabilityOrBuilder>( + getAvailability(), getParentForChildren(), isClean()); + availability_ = null; + } + return availabilityBuilder_; + } + + 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.
                +     * The only field that can be updated is `custom_status`.
                +     * 
                + * + * .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.
                +     * The only field that can be updated is `custom_status`.
                +     * 
                + * + * .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.
                +     * The only field that can be updated is `custom_status`.
                +     * 
                + * + * .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.
                +     * The only field that can be updated is `custom_status`.
                +     * 
                + * + * .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.
                +     * The only field that can be updated is `custom_status`.
                +     * 
                + * + * .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.
                +     * The only field that can be updated is `custom_status`.
                +     * 
                + * + * .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.
                +     * The only field that can be updated is `custom_status`.
                +     * 
                + * + * .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.
                +     * The only field that can be updated is `custom_status`.
                +     * 
                + * + * .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.
                +     * The only field that can be updated is `custom_status`.
                +     * 
                + * + * .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.chat.v1.UpdateAvailabilityRequest) + } + + // @@protoc_insertion_point(class_scope:google.chat.v1.UpdateAvailabilityRequest) + private static final com.google.chat.v1.UpdateAvailabilityRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.chat.v1.UpdateAvailabilityRequest(); + } + + public static com.google.chat.v1.UpdateAvailabilityRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateAvailabilityRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.chat.v1.UpdateAvailabilityRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/UpdateAvailabilityRequestOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/UpdateAvailabilityRequestOrBuilder.java new file mode 100644 index 000000000000..3ccf03806dda --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/UpdateAvailabilityRequestOrBuilder.java @@ -0,0 +1,111 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/chat/v1/availability.proto +// Protobuf Java Version: 4.33.2 + +package com.google.chat.v1; + +@com.google.protobuf.Generated +public interface UpdateAvailabilityRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.chat.v1.UpdateAvailabilityRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                +   * Required. The availability to update.
                +   * 
                + * + * .google.chat.v1.Availability availability = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the availability field is set. + */ + boolean hasAvailability(); + + /** + * + * + *
                +   * Required. The availability to update.
                +   * 
                + * + * .google.chat.v1.Availability availability = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The availability. + */ + com.google.chat.v1.Availability getAvailability(); + + /** + * + * + *
                +   * Required. The availability to update.
                +   * 
                + * + * .google.chat.v1.Availability availability = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.chat.v1.AvailabilityOrBuilder getAvailabilityOrBuilder(); + + /** + * + * + *
                +   * Required. The list of fields to update.
                +   * The only field that can be updated is `custom_status`.
                +   * 
                + * + * .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.
                +   * The only field that can be updated is `custom_status`.
                +   * 
                + * + * .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.
                +   * The only field that can be updated is `custom_status`.
                +   * 
                + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/availability.proto b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/availability.proto new file mode 100644 index 000000000000..3e3cf9d71c12 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/availability.proto @@ -0,0 +1,232 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.chat.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/chat/v1/reaction.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Apps.Chat.V1"; +option go_package = "cloud.google.com/go/chat/apiv1/chatpb;chatpb"; +option java_multiple_files = true; +option java_outer_classname = "AvailabilityProto"; +option java_package = "com.google.chat.v1"; +option objc_class_prefix = "DYNAPIProto"; +option php_namespace = "Google\\Apps\\Chat\\V1"; +option ruby_package = "Google::Apps::Chat::V1"; + +// Represents a user's current availability information in Google Chat, +// including their state (for example, Active, Away, Do Not Disturb) and any +// custom status. +message Availability { + option (google.api.resource) = { + type: "chat.googleapis.com/Availability" + pattern: "users/{user}/availability" + plural: "availabilities" + singular: "availability" + }; + + // Represents the current availability state of the user. + enum State { + // Default value. The state is unspecified. + STATE_UNSPECIFIED = 0; + + // The user is currently active, based on recent activity. + ACTIVE = 1; + + // The user is currently idle. This state indicates a period of inactivity + // after being ACTIVE, before potentially transitioning to AWAY. + IDLE = 2; + + // The user is currently away. This can be either automatically set after + // a period of inactivity in ACTIVE or IDLE state, or it can be manually set + // by the user. When manually set via `MarkAsAway`, this state persists + // regardless of user activity. + AWAY = 3; + + // The user is in Do Not Disturb state, which is manually set. + DO_NOT_DISTURB = 4; + } + + // Identifier. Resource name of the user's availability. + // + // Format: `users/{user}/availability` + // + // `{user}` is the id for the Person in the People API or Admin SDK directory + // API. For example, `users/123456789`. + // + // The user's email address or `me` can also be used as an alias to refer to + // the caller. For example, `users/user@example.com` or `users/me`. + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. The user's current availability state. + State state = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Additional metadata associated with the user's availability state. + oneof state_metadata { + // Output only. Metadata if the user state is set to DO_NOT_DISTURB. + DoNotDisturbMetadata do_not_disturb_metadata = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Optional. The user's custom status. + CustomStatus custom_status = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Represents a user's custom status in Google Chat. +// This includes a short text message with an optional emoji that a user sets to +// give more context about their availability. +message CustomStatus { + // Required. The text of the custom status. This will be a string with maximum + // length of 64. + string text = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The emoji of the custom status. Only Unicode emojis are + // supported; custom emojis are not supported. + Emoji emoji = 2 [(google.api.field_behavior) = REQUIRED]; + + // The expiration time of the custom status. It can be specified as either + // an absolute timestamp or a time-to-live duration. + oneof expiration { + // The timestamp when the custom status expires. + google.protobuf.Timestamp expire_time = 3; + + // Input only. The time-to-live duration after which the custom status + // expires. + google.protobuf.Duration ttl = 4 [(google.api.field_behavior) = INPUT_ONLY]; + } +} + +// Metadata associated with the `DO_NOT_DISTURB` availability state, +// specifying when the state is set to expire. +message DoNotDisturbMetadata { + // Output only. Timestamp until which the user should be marked as + // DO_NOT_DISTURB. This can be maximum of 1 year in the future. + google.protobuf.Timestamp expiration_time = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Request message for the `GetAvailability` method. +message GetAvailabilityRequest { + // Required. The resource name of the availability to retrieve. + // + // Format: users/{user}/availability + // + // `{user}` is the id for the Person in the People API or Admin SDK directory + // API. For example, `users/123456789`. + // + // The user's email address or `me` can also be used as an alias to refer to + // the caller. For example, `users/user@example.com` or `users/me`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "chat.googleapis.com/Availability" + } + ]; +} + +// Request message for the `UpdateAvailability` method. +message UpdateAvailabilityRequest { + // Required. The availability to update. + Availability availability = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of fields to update. + // The only field that can be updated is `custom_status`. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for the `MarkAsActive` method. +message MarkAsActiveRequest { + // Required. The resource name of the availability to mark as active. + // Format: users/{user}/availability + // + // `{user}` is the id for the Person in the People API or Admin SDK directory + // API. For example, `users/123456789`. + // + // The user's email address or `me` can also be used as an alias to refer to + // the caller. For example, `users/user@example.com` or `users/me`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "chat.googleapis.com/Availability" + } + ]; + + // The expiration for the ACTIVE availability state. The user will + // be marked as Away after expiration. If no expiration is provided, the + // ACTIVE state will expire 30 minutes from the current time. + oneof expiration { + // The absolute timestamp when the ACTIVE state expires. + google.protobuf.Timestamp expire_time = 2; + + // The duration from the current time until the ACTIVE state expires. + // Using a short TTL can effectively reset the user's state to be based + // on activity after this brief duration. + google.protobuf.Duration ttl = 3; + } +} + +// Request message for the `MarkAsAway` method. +message MarkAsAwayRequest { + // Required. The resource name of the availability to mark as away. + // Format: users/{user}/availability + // + // `{user}` is the id for the Person in the People API or Admin SDK directory + // API. For example, `users/123456789`. + // + // The user's email address or `me` can also be used as an alias to refer to + // the caller. For example, `users/user@example.com` or `users/me`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "chat.googleapis.com/Availability" + } + ]; +} + +// Request message for the `MarkAsDoNotDisturb` method. +message MarkAsDoNotDisturbRequest { + // Required. The resource name of the availability to mark as Do Not Disturb. + // Format: users/{user}/availability + // + // `{user}` is the id for the Person in the People API or Admin SDK directory + // API. For example, `users/123456789`. + // + // The user's email address or `me` can also be used as an alias to refer to + // the caller. For example, `users/user@example.com` or `users/me`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "chat.googleapis.com/Availability" + } + ]; + + // Required. The expiration for the DND availability state. The user will be + // marked as Away after expiration. This can be at most 1 year from the + // current time. + oneof expiration { + // The absolute timestamp when the DND state expires. + google.protobuf.Timestamp expire_time = 2; + + // The duration from the current time until the DND state expires. + google.protobuf.Duration ttl = 3; + } +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/chat_service.proto b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/chat_service.proto index 8aea14861df7..fcf714fb95aa 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/chat_service.proto +++ b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/chat_service.proto @@ -19,6 +19,7 @@ package google.chat.v1; import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/chat/v1/attachment.proto"; +import "google/chat/v1/availability.proto"; import "google/chat/v1/membership.proto"; import "google/chat/v1/message.proto"; import "google/chat/v1/reaction.proto"; @@ -74,6 +75,8 @@ service ChatService { "https://www.googleapis.com/auth/chat.spaces," "https://www.googleapis.com/auth/chat.spaces.create," "https://www.googleapis.com/auth/chat.spaces.readonly," + "https://www.googleapis.com/auth/chat.users.availability," + "https://www.googleapis.com/auth/chat.users.availability.readonly," "https://www.googleapis.com/auth/chat.users.readstate," "https://www.googleapis.com/auth/chat.users.readstate.readonly," "https://www.googleapis.com/auth/chat.users.sections," @@ -1083,6 +1086,108 @@ service ChatService { option (google.api.method_signature) = "name"; } + // Returns availability information for a human user in Google Chat. For + // example, this can be used to check if a user is online or away, or to + // retrieve their custom status message. + // + // This method only retrieves the authenticated user's availability. + // + // Requires [user + // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + // with one of the following [authorization + // scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + // + // - `https://www.googleapis.com/auth/chat.users.availability.readonly` + // - `https://www.googleapis.com/auth/chat.users.availability` + rpc GetAvailability(GetAvailabilityRequest) returns (Availability) { + option (google.api.http) = { + get: "/v1/{name=users/*/availability}" + }; + option (google.api.method_signature) = "name"; + } + + // Marks user as `ACTIVE` in Google Chat. + // + // Sets the user's availability state to `ACTIVE`. The `ACTIVE` state + // lasts until the specified expiration, at which point the user's state + // becomes `AWAY`. Note that if the user is actively using Chat, the `ACTIVE` + // state duration may extend beyond the provided expiration. + // + // This method only updates the authenticated user's availability. + // + // Requires [user + // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + // with [authorization + // scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + // + // - `https://www.googleapis.com/auth/chat.users.availability` + rpc MarkAsActive(MarkAsActiveRequest) returns (Availability) { + option (google.api.http) = { + post: "/v1/{name=users/*/availability}:markAsActive" + body: "*" + }; + } + + // Marks user as `AWAY` in Google Chat. + // + // Sets the user's state to away and is not affected by the user's + // activity. + // + // This method only updates the authenticated user's availability. + // + // Requires [user + // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + // with [authorization + // scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + // + // - `https://www.googleapis.com/auth/chat.users.availability` + rpc MarkAsAway(MarkAsAwayRequest) returns (Availability) { + option (google.api.http) = { + post: "/v1/{name=users/*/availability}:markAsAway" + body: "*" + }; + } + + // Marks user as `DO_NOT_DISTURB` in Google Chat. + // + // Sets a user's availability state to `DO_NOT_DISTURB` until a specified + // expiration time. + // When in `DO_NOT_DISTURB`, users typically won't receive notifications. + // + // This method only updates the authenticated user's availability. + // + // Requires [user + // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + // with [authorization + // scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + // + // - `https://www.googleapis.com/auth/chat.users.availability` + rpc MarkAsDoNotDisturb(MarkAsDoNotDisturbRequest) returns (Availability) { + option (google.api.http) = { + post: "/v1/{name=users/*/availability}:markAsDoNotDisturb" + body: "*" + }; + } + + // Updates availability information for a human user. Only the `custom_status` + // field can be updated through this method. + // + // This method only updates the authenticated user's availability. + // + // Requires [user + // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + // with one of the following [authorization + // scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + // + // - `https://www.googleapis.com/auth/chat.users.availability` + rpc UpdateAvailability(UpdateAvailabilityRequest) returns (Availability) { + option (google.api.http) = { + patch: "/v1/{availability.name=users/*/availability}" + body: "availability" + }; + option (google.api.method_signature) = "availability,update_mask"; + } + // Returns an event from a Google Chat space. The [event // payload](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.oneof_payload) // contains the most recent version of the resource that changed. For example, diff --git a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/getavailability/AsyncGetAvailability.java b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/getavailability/AsyncGetAvailability.java new file mode 100644 index 000000000000..d08c8a87133d --- /dev/null +++ b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/getavailability/AsyncGetAvailability.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.chat.v1.samples; + +// [START chat_v1_generated_ChatService_GetAvailability_async] +import com.google.api.core.ApiFuture; +import com.google.chat.v1.Availability; +import com.google.chat.v1.AvailabilityName; +import com.google.chat.v1.ChatServiceClient; +import com.google.chat.v1.GetAvailabilityRequest; + +public class AsyncGetAvailability { + + public static void main(String[] args) throws Exception { + asyncGetAvailability(); + } + + public static void asyncGetAvailability() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ChatServiceClient chatServiceClient = ChatServiceClient.create()) { + GetAvailabilityRequest request = + GetAvailabilityRequest.newBuilder() + .setName(AvailabilityName.of("[USER]").toString()) + .build(); + ApiFuture future = + chatServiceClient.getAvailabilityCallable().futureCall(request); + // Do something. + Availability response = future.get(); + } + } +} +// [END chat_v1_generated_ChatService_GetAvailability_async] diff --git a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/getavailability/SyncGetAvailability.java b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/getavailability/SyncGetAvailability.java new file mode 100644 index 000000000000..18982fec7c5f --- /dev/null +++ b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/getavailability/SyncGetAvailability.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.chat.v1.samples; + +// [START chat_v1_generated_ChatService_GetAvailability_sync] +import com.google.chat.v1.Availability; +import com.google.chat.v1.AvailabilityName; +import com.google.chat.v1.ChatServiceClient; +import com.google.chat.v1.GetAvailabilityRequest; + +public class SyncGetAvailability { + + public static void main(String[] args) throws Exception { + syncGetAvailability(); + } + + public static void syncGetAvailability() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ChatServiceClient chatServiceClient = ChatServiceClient.create()) { + GetAvailabilityRequest request = + GetAvailabilityRequest.newBuilder() + .setName(AvailabilityName.of("[USER]").toString()) + .build(); + Availability response = chatServiceClient.getAvailability(request); + } + } +} +// [END chat_v1_generated_ChatService_GetAvailability_sync] diff --git a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/getavailability/SyncGetAvailabilityAvailabilityname.java b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/getavailability/SyncGetAvailabilityAvailabilityname.java new file mode 100644 index 000000000000..7dda4bf8aada --- /dev/null +++ b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/getavailability/SyncGetAvailabilityAvailabilityname.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.chat.v1.samples; + +// [START chat_v1_generated_ChatService_GetAvailability_Availabilityname_sync] +import com.google.chat.v1.Availability; +import com.google.chat.v1.AvailabilityName; +import com.google.chat.v1.ChatServiceClient; + +public class SyncGetAvailabilityAvailabilityname { + + public static void main(String[] args) throws Exception { + syncGetAvailabilityAvailabilityname(); + } + + public static void syncGetAvailabilityAvailabilityname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ChatServiceClient chatServiceClient = ChatServiceClient.create()) { + AvailabilityName name = AvailabilityName.of("[USER]"); + Availability response = chatServiceClient.getAvailability(name); + } + } +} +// [END chat_v1_generated_ChatService_GetAvailability_Availabilityname_sync] diff --git a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/getavailability/SyncGetAvailabilityString.java b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/getavailability/SyncGetAvailabilityString.java new file mode 100644 index 000000000000..85ef841a7b8a --- /dev/null +++ b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/getavailability/SyncGetAvailabilityString.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.chat.v1.samples; + +// [START chat_v1_generated_ChatService_GetAvailability_String_sync] +import com.google.chat.v1.Availability; +import com.google.chat.v1.AvailabilityName; +import com.google.chat.v1.ChatServiceClient; + +public class SyncGetAvailabilityString { + + public static void main(String[] args) throws Exception { + syncGetAvailabilityString(); + } + + public static void syncGetAvailabilityString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ChatServiceClient chatServiceClient = ChatServiceClient.create()) { + String name = AvailabilityName.of("[USER]").toString(); + Availability response = chatServiceClient.getAvailability(name); + } + } +} +// [END chat_v1_generated_ChatService_GetAvailability_String_sync] diff --git a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/markasactive/AsyncMarkAsActive.java b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/markasactive/AsyncMarkAsActive.java new file mode 100644 index 000000000000..49a8981dee18 --- /dev/null +++ b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/markasactive/AsyncMarkAsActive.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.chat.v1.samples; + +// [START chat_v1_generated_ChatService_MarkAsActive_async] +import com.google.api.core.ApiFuture; +import com.google.chat.v1.Availability; +import com.google.chat.v1.AvailabilityName; +import com.google.chat.v1.ChatServiceClient; +import com.google.chat.v1.MarkAsActiveRequest; + +public class AsyncMarkAsActive { + + public static void main(String[] args) throws Exception { + asyncMarkAsActive(); + } + + public static void asyncMarkAsActive() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ChatServiceClient chatServiceClient = ChatServiceClient.create()) { + MarkAsActiveRequest request = + MarkAsActiveRequest.newBuilder() + .setName(AvailabilityName.of("[USER]").toString()) + .build(); + ApiFuture future = chatServiceClient.markAsActiveCallable().futureCall(request); + // Do something. + Availability response = future.get(); + } + } +} +// [END chat_v1_generated_ChatService_MarkAsActive_async] diff --git a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/markasactive/SyncMarkAsActive.java b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/markasactive/SyncMarkAsActive.java new file mode 100644 index 000000000000..53b55be451dd --- /dev/null +++ b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/markasactive/SyncMarkAsActive.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.chat.v1.samples; + +// [START chat_v1_generated_ChatService_MarkAsActive_sync] +import com.google.chat.v1.Availability; +import com.google.chat.v1.AvailabilityName; +import com.google.chat.v1.ChatServiceClient; +import com.google.chat.v1.MarkAsActiveRequest; + +public class SyncMarkAsActive { + + public static void main(String[] args) throws Exception { + syncMarkAsActive(); + } + + public static void syncMarkAsActive() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ChatServiceClient chatServiceClient = ChatServiceClient.create()) { + MarkAsActiveRequest request = + MarkAsActiveRequest.newBuilder() + .setName(AvailabilityName.of("[USER]").toString()) + .build(); + Availability response = chatServiceClient.markAsActive(request); + } + } +} +// [END chat_v1_generated_ChatService_MarkAsActive_sync] diff --git a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/markasaway/AsyncMarkAsAway.java b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/markasaway/AsyncMarkAsAway.java new file mode 100644 index 000000000000..eb7b88db3e30 --- /dev/null +++ b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/markasaway/AsyncMarkAsAway.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.chat.v1.samples; + +// [START chat_v1_generated_ChatService_MarkAsAway_async] +import com.google.api.core.ApiFuture; +import com.google.chat.v1.Availability; +import com.google.chat.v1.AvailabilityName; +import com.google.chat.v1.ChatServiceClient; +import com.google.chat.v1.MarkAsAwayRequest; + +public class AsyncMarkAsAway { + + public static void main(String[] args) throws Exception { + asyncMarkAsAway(); + } + + public static void asyncMarkAsAway() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ChatServiceClient chatServiceClient = ChatServiceClient.create()) { + MarkAsAwayRequest request = + MarkAsAwayRequest.newBuilder().setName(AvailabilityName.of("[USER]").toString()).build(); + ApiFuture future = chatServiceClient.markAsAwayCallable().futureCall(request); + // Do something. + Availability response = future.get(); + } + } +} +// [END chat_v1_generated_ChatService_MarkAsAway_async] diff --git a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/markasaway/SyncMarkAsAway.java b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/markasaway/SyncMarkAsAway.java new file mode 100644 index 000000000000..227f1e91eb42 --- /dev/null +++ b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/markasaway/SyncMarkAsAway.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.chat.v1.samples; + +// [START chat_v1_generated_ChatService_MarkAsAway_sync] +import com.google.chat.v1.Availability; +import com.google.chat.v1.AvailabilityName; +import com.google.chat.v1.ChatServiceClient; +import com.google.chat.v1.MarkAsAwayRequest; + +public class SyncMarkAsAway { + + public static void main(String[] args) throws Exception { + syncMarkAsAway(); + } + + public static void syncMarkAsAway() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ChatServiceClient chatServiceClient = ChatServiceClient.create()) { + MarkAsAwayRequest request = + MarkAsAwayRequest.newBuilder().setName(AvailabilityName.of("[USER]").toString()).build(); + Availability response = chatServiceClient.markAsAway(request); + } + } +} +// [END chat_v1_generated_ChatService_MarkAsAway_sync] diff --git a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/markasdonotdisturb/AsyncMarkAsDoNotDisturb.java b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/markasdonotdisturb/AsyncMarkAsDoNotDisturb.java new file mode 100644 index 000000000000..be1148665e7e --- /dev/null +++ b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/markasdonotdisturb/AsyncMarkAsDoNotDisturb.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.chat.v1.samples; + +// [START chat_v1_generated_ChatService_MarkAsDoNotDisturb_async] +import com.google.api.core.ApiFuture; +import com.google.chat.v1.Availability; +import com.google.chat.v1.AvailabilityName; +import com.google.chat.v1.ChatServiceClient; +import com.google.chat.v1.MarkAsDoNotDisturbRequest; + +public class AsyncMarkAsDoNotDisturb { + + public static void main(String[] args) throws Exception { + asyncMarkAsDoNotDisturb(); + } + + public static void asyncMarkAsDoNotDisturb() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ChatServiceClient chatServiceClient = ChatServiceClient.create()) { + MarkAsDoNotDisturbRequest request = + MarkAsDoNotDisturbRequest.newBuilder() + .setName(AvailabilityName.of("[USER]").toString()) + .build(); + ApiFuture future = + chatServiceClient.markAsDoNotDisturbCallable().futureCall(request); + // Do something. + Availability response = future.get(); + } + } +} +// [END chat_v1_generated_ChatService_MarkAsDoNotDisturb_async] diff --git a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/markasdonotdisturb/SyncMarkAsDoNotDisturb.java b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/markasdonotdisturb/SyncMarkAsDoNotDisturb.java new file mode 100644 index 000000000000..460b1db7f98e --- /dev/null +++ b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/markasdonotdisturb/SyncMarkAsDoNotDisturb.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.chat.v1.samples; + +// [START chat_v1_generated_ChatService_MarkAsDoNotDisturb_sync] +import com.google.chat.v1.Availability; +import com.google.chat.v1.AvailabilityName; +import com.google.chat.v1.ChatServiceClient; +import com.google.chat.v1.MarkAsDoNotDisturbRequest; + +public class SyncMarkAsDoNotDisturb { + + public static void main(String[] args) throws Exception { + syncMarkAsDoNotDisturb(); + } + + public static void syncMarkAsDoNotDisturb() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ChatServiceClient chatServiceClient = ChatServiceClient.create()) { + MarkAsDoNotDisturbRequest request = + MarkAsDoNotDisturbRequest.newBuilder() + .setName(AvailabilityName.of("[USER]").toString()) + .build(); + Availability response = chatServiceClient.markAsDoNotDisturb(request); + } + } +} +// [END chat_v1_generated_ChatService_MarkAsDoNotDisturb_sync] diff --git a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/updateavailability/AsyncUpdateAvailability.java b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/updateavailability/AsyncUpdateAvailability.java new file mode 100644 index 000000000000..fd0247de1bd0 --- /dev/null +++ b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/updateavailability/AsyncUpdateAvailability.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.chat.v1.samples; + +// [START chat_v1_generated_ChatService_UpdateAvailability_async] +import com.google.api.core.ApiFuture; +import com.google.chat.v1.Availability; +import com.google.chat.v1.ChatServiceClient; +import com.google.chat.v1.UpdateAvailabilityRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateAvailability { + + public static void main(String[] args) throws Exception { + asyncUpdateAvailability(); + } + + public static void asyncUpdateAvailability() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ChatServiceClient chatServiceClient = ChatServiceClient.create()) { + UpdateAvailabilityRequest request = + UpdateAvailabilityRequest.newBuilder() + .setAvailability(Availability.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + chatServiceClient.updateAvailabilityCallable().futureCall(request); + // Do something. + Availability response = future.get(); + } + } +} +// [END chat_v1_generated_ChatService_UpdateAvailability_async] diff --git a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/updateavailability/SyncUpdateAvailability.java b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/updateavailability/SyncUpdateAvailability.java new file mode 100644 index 000000000000..cd79830ab364 --- /dev/null +++ b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/updateavailability/SyncUpdateAvailability.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.chat.v1.samples; + +// [START chat_v1_generated_ChatService_UpdateAvailability_sync] +import com.google.chat.v1.Availability; +import com.google.chat.v1.ChatServiceClient; +import com.google.chat.v1.UpdateAvailabilityRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateAvailability { + + public static void main(String[] args) throws Exception { + syncUpdateAvailability(); + } + + public static void syncUpdateAvailability() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ChatServiceClient chatServiceClient = ChatServiceClient.create()) { + UpdateAvailabilityRequest request = + UpdateAvailabilityRequest.newBuilder() + .setAvailability(Availability.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Availability response = chatServiceClient.updateAvailability(request); + } + } +} +// [END chat_v1_generated_ChatService_UpdateAvailability_sync] diff --git a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/updateavailability/SyncUpdateAvailabilityAvailabilityFieldmask.java b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/updateavailability/SyncUpdateAvailabilityAvailabilityFieldmask.java new file mode 100644 index 000000000000..0a541f5f4b27 --- /dev/null +++ b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/updateavailability/SyncUpdateAvailabilityAvailabilityFieldmask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.chat.v1.samples; + +// [START chat_v1_generated_ChatService_UpdateAvailability_AvailabilityFieldmask_sync] +import com.google.chat.v1.Availability; +import com.google.chat.v1.ChatServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateAvailabilityAvailabilityFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateAvailabilityAvailabilityFieldmask(); + } + + public static void syncUpdateAvailabilityAvailabilityFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ChatServiceClient chatServiceClient = ChatServiceClient.create()) { + Availability availability = Availability.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Availability response = chatServiceClient.updateAvailability(availability, updateMask); + } + } +} +// [END chat_v1_generated_ChatService_UpdateAvailability_AvailabilityFieldmask_sync] 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-datamanager/.repo-metadata.json b/java-datamanager/.repo-metadata.json index 782c0afa37ce..973224dd7224 100644 --- a/java-datamanager/.repo-metadata.json +++ b/java-datamanager/.repo-metadata.json @@ -9,7 +9,7 @@ "language": "java", "repo": "googleapis/google-cloud-java", "repo_short": "java-datamanager", - "distribution_name": "com.google.api-ads:data-manager", + "distribution_name": "com.google.api-ad:data-manager", "api_id": "datamanager.googleapis.com", "library_type": "GAPIC_AUTO", "requires_billing": true, diff --git a/java-datamanager/README.md b/java-datamanager/README.md index 334a912d5d77..f7a2b74be927 100644 --- a/java-datamanager/README.md +++ b/java-datamanager/README.md @@ -20,7 +20,7 @@ If you are using Maven, add this to your pom.xml file: ```xml - com.google.api-ads + com.google.api-ad data-manager 0.15.0 @@ -29,13 +29,13 @@ If you are using Maven, add this to your pom.xml file: If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.api-ads:data-manager:0.15.0' +implementation 'com.google.api-ad:data-manager:0.15.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.api-ads" % "data-manager" % "0.15.0" +libraryDependencies += "com.google.api-ad" % "data-manager" % "0.15.0" ``` ## Authentication @@ -157,8 +157,8 @@ Java is a registered trademark of Oracle and/or its affiliates. [product-docs]: https://developers.google.com/data-manager [javadocs]: https://cloud.google.com/java/docs/reference/data-manager/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow -[maven-version-image]: https://img.shields.io/maven-central/v/com.google.api-ads/data-manager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.api-ads/data-manager/0.15.0 +[maven-version-image]: https://img.shields.io/maven-central/v/com.google.api-ad/data-manager.svg +[maven-version-link]: https://central.sonatype.com/artifact/com.google.api-ad/data-manager/0.15.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/IngestionServiceStubSettings.java b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/IngestionServiceStubSettings.java index 6edfe164836f..1f3c83545de1 100644 --- a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/IngestionServiceStubSettings.java +++ b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/IngestionServiceStubSettings.java @@ -270,7 +270,7 @@ protected IngestionServiceStubSettings(Builder settingsBuilder) throws IOExcepti @Override protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() - .setArtifactName("com.google.api-ads:data-manager") + .setArtifactName("com.google.api-ad:data-manager") .setRepository("googleapis/google-cloud-java") .setVersion(Version.VERSION) .build(); diff --git a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/MarketingDataInsightsServiceStubSettings.java b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/MarketingDataInsightsServiceStubSettings.java index 47add476f03f..2edd116b9203 100644 --- a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/MarketingDataInsightsServiceStubSettings.java +++ b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/MarketingDataInsightsServiceStubSettings.java @@ -233,7 +233,7 @@ protected MarketingDataInsightsServiceStubSettings(Builder settingsBuilder) thro @Override protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() - .setArtifactName("com.google.api-ads:data-manager") + .setArtifactName("com.google.api-ad:data-manager") .setRepository("googleapis/google-cloud-java") .setVersion(Version.VERSION) .build(); diff --git a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/PartnerLinkServiceStubSettings.java b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/PartnerLinkServiceStubSettings.java index aa3c7f89c5bb..fbc95b37d490 100644 --- a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/PartnerLinkServiceStubSettings.java +++ b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/PartnerLinkServiceStubSettings.java @@ -321,7 +321,7 @@ protected PartnerLinkServiceStubSettings(Builder settingsBuilder) throws IOExcep @Override protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() - .setArtifactName("com.google.api-ads:data-manager") + .setArtifactName("com.google.api-ad:data-manager") .setRepository("googleapis/google-cloud-java") .setVersion(Version.VERSION) .build(); diff --git a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/UserListDirectLicenseServiceStubSettings.java b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/UserListDirectLicenseServiceStubSettings.java index 5531cbe18405..5306b3705dfc 100644 --- a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/UserListDirectLicenseServiceStubSettings.java +++ b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/UserListDirectLicenseServiceStubSettings.java @@ -357,7 +357,7 @@ protected UserListDirectLicenseServiceStubSettings(Builder settingsBuilder) thro @Override protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() - .setArtifactName("com.google.api-ads:data-manager") + .setArtifactName("com.google.api-ad:data-manager") .setRepository("googleapis/google-cloud-java") .setVersion(Version.VERSION) .build(); diff --git a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/UserListGlobalLicenseServiceStubSettings.java b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/UserListGlobalLicenseServiceStubSettings.java index 6cf7e03156c0..441bbded21ae 100644 --- a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/UserListGlobalLicenseServiceStubSettings.java +++ b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/UserListGlobalLicenseServiceStubSettings.java @@ -460,7 +460,7 @@ protected UserListGlobalLicenseServiceStubSettings(Builder settingsBuilder) thro @Override protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() - .setArtifactName("com.google.api-ads:data-manager") + .setArtifactName("com.google.api-ad:data-manager") .setRepository("googleapis/google-cloud-java") .setVersion(Version.VERSION) .build(); diff --git a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/UserListServiceStubSettings.java b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/UserListServiceStubSettings.java index 85df83c73113..8dac2da02803 100644 --- a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/UserListServiceStubSettings.java +++ b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/UserListServiceStubSettings.java @@ -324,7 +324,7 @@ protected UserListServiceStubSettings(Builder settingsBuilder) throws IOExceptio @Override protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() - .setArtifactName("com.google.api-ads:data-manager") + .setArtifactName("com.google.api-ad:data-manager") .setRepository("googleapis/google-cloud-java") .setVersion(Version.VERSION) .build(); 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-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/EndpointAuthorization.java b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/EndpointAuthorization.java index a48a9d43da6a..263e76e43b88 100644 --- a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/EndpointAuthorization.java +++ b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/EndpointAuthorization.java @@ -27,7 +27,7 @@ * Authorization mechanism for a subscriber endpoint. * For all requests sent by the Webhooks service, the JSON payload is * cryptographically signed. The signature is delivered in the - * `X-HEALTHAPI-SIGNATURE` HTTP header. This is an ECDSA (NIST P256) + * `GOOGLE-HEALTH-API-SIGNATURE` HTTP header. This is an ECDSA (NIST P256) * signature of the JSON payload. Clients must verify this signature using * Google Health API's public key to confirm the payload was sent by the Health * API. @@ -343,7 +343,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * Authorization mechanism for a subscriber endpoint. * For all requests sent by the Webhooks service, the JSON payload is * cryptographically signed. The signature is delivered in the - * `X-HEALTHAPI-SIGNATURE` HTTP header. This is an ECDSA (NIST P256) + * `GOOGLE-HEALTH-API-SIGNATURE` HTTP header. This is an ECDSA (NIST P256) * signature of the JSON payload. Clients must verify this signature using * Google Health API's public key to confirm the payload was sent by the Health * API. diff --git a/java-health/proto-google-cloud-health-v4/src/main/proto/google/devicesandservices/health/v4/data_subscription_service.proto b/java-health/proto-google-cloud-health-v4/src/main/proto/google/devicesandservices/health/v4/data_subscription_service.proto index cb0e90ee1dfa..b0b3048776cc 100644 --- a/java-health/proto-google-cloud-health-v4/src/main/proto/google/devicesandservices/health/v4/data_subscription_service.proto +++ b/java-health/proto-google-cloud-health-v4/src/main/proto/google/devicesandservices/health/v4/data_subscription_service.proto @@ -544,7 +544,7 @@ message SubscriberConfig { // Authorization mechanism for a subscriber endpoint. // For all requests sent by the Webhooks service, the JSON payload is // cryptographically signed. The signature is delivered in the -// `X-HEALTHAPI-SIGNATURE` HTTP header. This is an ECDSA (NIST P256) +// `GOOGLE-HEALTH-API-SIGNATURE` HTTP header. This is an ECDSA (NIST P256) // signature of the JSON payload. Clients must verify this signature using // Google Health API's public key to confirm the payload was sent by the Health // API. 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. diff --git a/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/MemorystoreClient.java b/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/MemorystoreClient.java index 2128f62d69a0..1bd90afebc36 100644 --- a/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/MemorystoreClient.java +++ b/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/MemorystoreClient.java @@ -364,8 +364,47 @@ * * * + *

                StartMigration + *

                Initiates the migration of a source instance to the target Memorystore instance. + *

                After the successful completion of this operation, the target instance will: 1. Set up replication with the source instance and replicate any writes to the source instance. 2. Only allow reads. + * + *

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

                + *
                  + *
                • startMigrationAsync(StartMigrationRequest request) + *

                + *

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

                + *
                  + *
                • startMigrationOperationCallable() + *

                • startMigrationCallable() + *

                + * + * + * + *

                FinishMigration + *

                Finalizes the migration process. + *

                After the successful completion of this operation, the target instance will: 1. Stop replicating from the source instance. 2. Allow both reads and writes. + * + *

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

                + *
                  + *
                • finishMigrationAsync(FinishMigrationRequest request) + *

                + *

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

                + *
                  + *
                • finishMigrationAsync(InstanceName name, boolean force) + *

                • finishMigrationAsync(String name, boolean force) + *

                + *

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

                + *
                  + *
                • finishMigrationOperationCallable() + *

                • finishMigrationCallable() + *

                + * + * + * *

                ListLocations - *

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

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

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

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

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

                *
                  @@ -2701,10 +2740,291 @@ public final UnaryCallable backupInstanceCalla return stub.backupInstanceCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Initiates the migration of a source instance to the target Memorystore instance. + * + *

                  After the successful completion of this operation, the target instance will: 1. Set up + * replication with the source instance and replicate any writes to the source instance. 2. Only + * allow reads. + * + *

                  Sample code: + * + *

                  {@code
                  +   * // This snippet has been automatically generated and should be regarded as a code template only.
                  +   * // It will require modifications to work:
                  +   * // - It may require correct/in-range values for request initialization.
                  +   * // - It may require specifying regional endpoints when creating the service client as shown in
                  +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                  +   * try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) {
                  +   *   StartMigrationRequest request =
                  +   *       StartMigrationRequest.newBuilder()
                  +   *           .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
                  +   *           .build();
                  +   *   Instance response = memorystoreClient.startMigrationAsync(request).get();
                  +   * }
                  +   * }
                  + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture startMigrationAsync( + StartMigrationRequest request) { + return startMigrationOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Initiates the migration of a source instance to the target Memorystore instance. + * + *

                  After the successful completion of this operation, the target instance will: 1. Set up + * replication with the source instance and replicate any writes to the source instance. 2. Only + * allow reads. + * + *

                  Sample code: + * + *

                  {@code
                  +   * // This snippet has been automatically generated and should be regarded as a code template only.
                  +   * // It will require modifications to work:
                  +   * // - It may require correct/in-range values for request initialization.
                  +   * // - It may require specifying regional endpoints when creating the service client as shown in
                  +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                  +   * try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) {
                  +   *   StartMigrationRequest request =
                  +   *       StartMigrationRequest.newBuilder()
                  +   *           .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
                  +   *           .build();
                  +   *   OperationFuture future =
                  +   *       memorystoreClient.startMigrationOperationCallable().futureCall(request);
                  +   *   // Do something.
                  +   *   Instance response = future.get();
                  +   * }
                  +   * }
                  + */ + public final OperationCallable + startMigrationOperationCallable() { + return stub.startMigrationOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Initiates the migration of a source instance to the target Memorystore instance. + * + *

                  After the successful completion of this operation, the target instance will: 1. Set up + * replication with the source instance and replicate any writes to the source instance. 2. Only + * allow reads. + * + *

                  Sample code: + * + *

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

                  After the successful completion of this operation, the target instance will: 1. Stop + * replicating from the source instance. 2. Allow both reads and writes. + * + *

                  Sample code: + * + *

                  {@code
                  +   * // This snippet has been automatically generated and should be regarded as a code template only.
                  +   * // It will require modifications to work:
                  +   * // - It may require correct/in-range values for request initialization.
                  +   * // - It may require specifying regional endpoints when creating the service client as shown in
                  +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                  +   * try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) {
                  +   *   InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
                  +   *   boolean force = true;
                  +   *   Instance response = memorystoreClient.finishMigrationAsync(name, force).get();
                  +   * }
                  +   * }
                  + * + * @param name Required. The resource name of the instance to finalize migration on. Format: + * projects/{project}/locations/{location}/instances/{instance} + * @param force Optional. By default, the `FinishMigration` operation ensures the target + * replication offset to catch up to the source offset as of the time of the call. Set this + * field to `true` to bypass this offset verification check. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture finishMigrationAsync( + InstanceName name, boolean force) { + FinishMigrationRequest request = + FinishMigrationRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setForce(force) + .build(); + return finishMigrationAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Finalizes the migration process. + * + *

                  After the successful completion of this operation, the target instance will: 1. Stop + * replicating from the source instance. 2. Allow both reads and writes. + * + *

                  Sample code: + * + *

                  {@code
                  +   * // This snippet has been automatically generated and should be regarded as a code template only.
                  +   * // It will require modifications to work:
                  +   * // - It may require correct/in-range values for request initialization.
                  +   * // - It may require specifying regional endpoints when creating the service client as shown in
                  +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                  +   * try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) {
                  +   *   String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString();
                  +   *   boolean force = true;
                  +   *   Instance response = memorystoreClient.finishMigrationAsync(name, force).get();
                  +   * }
                  +   * }
                  + * + * @param name Required. The resource name of the instance to finalize migration on. Format: + * projects/{project}/locations/{location}/instances/{instance} + * @param force Optional. By default, the `FinishMigration` operation ensures the target + * replication offset to catch up to the source offset as of the time of the call. Set this + * field to `true` to bypass this offset verification check. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture finishMigrationAsync( + String name, boolean force) { + FinishMigrationRequest request = + FinishMigrationRequest.newBuilder().setName(name).setForce(force).build(); + return finishMigrationAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Finalizes the migration process. + * + *

                  After the successful completion of this operation, the target instance will: 1. Stop + * replicating from the source instance. 2. Allow both reads and writes. + * + *

                  Sample code: + * + *

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

                  After the successful completion of this operation, the target instance will: 1. Stop + * replicating from the source instance. 2. Allow both reads and writes. + * + *

                  Sample code: + * + *

                  {@code
                  +   * // This snippet has been automatically generated and should be regarded as a code template only.
                  +   * // It will require modifications to work:
                  +   * // - It may require correct/in-range values for request initialization.
                  +   * // - It may require specifying regional endpoints when creating the service client as shown in
                  +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                  +   * try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) {
                  +   *   FinishMigrationRequest request =
                  +   *       FinishMigrationRequest.newBuilder()
                  +   *           .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
                  +   *           .setForce(true)
                  +   *           .build();
                  +   *   OperationFuture future =
                  +   *       memorystoreClient.finishMigrationOperationCallable().futureCall(request);
                  +   *   // Do something.
                  +   *   Instance response = future.get();
                  +   * }
                  +   * }
                  + */ + public final OperationCallable + finishMigrationOperationCallable() { + return stub.finishMigrationOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Finalizes the migration process. + * + *

                  After the successful completion of this operation, the target instance will: 1. Stop + * replicating from the source instance. 2. Allow both reads and writes. + * + *

                  Sample code: + * + *

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

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

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

                  Sample code: * *

                  {@code
                  @@ -2738,6 +3058,18 @@ 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][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

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

                  Sample code: * *

                  {@code
                  @@ -2772,6 +3104,18 @@ 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][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

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

                  Sample code: * *

                  {@code
                  diff --git a/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/MemorystoreSettings.java b/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/MemorystoreSettings.java
                  index 1dc735d08f13..640f3055472e 100644
                  --- a/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/MemorystoreSettings.java
                  +++ b/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/MemorystoreSettings.java
                  @@ -253,6 +253,28 @@ public UnaryCallSettings backupInstanceSetting
                       return ((MemorystoreStubSettings) getStubSettings()).backupInstanceOperationSettings();
                     }
                   
                  +  /** Returns the object with the settings used for calls to startMigration. */
                  +  public UnaryCallSettings startMigrationSettings() {
                  +    return ((MemorystoreStubSettings) getStubSettings()).startMigrationSettings();
                  +  }
                  +
                  +  /** Returns the object with the settings used for calls to startMigration. */
                  +  public OperationCallSettings
                  +      startMigrationOperationSettings() {
                  +    return ((MemorystoreStubSettings) getStubSettings()).startMigrationOperationSettings();
                  +  }
                  +
                  +  /** Returns the object with the settings used for calls to finishMigration. */
                  +  public UnaryCallSettings finishMigrationSettings() {
                  +    return ((MemorystoreStubSettings) getStubSettings()).finishMigrationSettings();
                  +  }
                  +
                  +  /** Returns the object with the settings used for calls to finishMigration. */
                  +  public OperationCallSettings
                  +      finishMigrationOperationSettings() {
                  +    return ((MemorystoreStubSettings) getStubSettings()).finishMigrationOperationSettings();
                  +  }
                  +
                     /** Returns the object with the settings used for calls to listLocations. */
                     public PagedCallSettings
                         listLocationsSettings() {
                  @@ -507,6 +529,28 @@ public UnaryCallSettings.Builder backupInstanc
                         return getStubSettingsBuilder().backupInstanceOperationSettings();
                       }
                   
                  +    /** Returns the builder for the settings used for calls to startMigration. */
                  +    public UnaryCallSettings.Builder startMigrationSettings() {
                  +      return getStubSettingsBuilder().startMigrationSettings();
                  +    }
                  +
                  +    /** Returns the builder for the settings used for calls to startMigration. */
                  +    public OperationCallSettings.Builder
                  +        startMigrationOperationSettings() {
                  +      return getStubSettingsBuilder().startMigrationOperationSettings();
                  +    }
                  +
                  +    /** Returns the builder for the settings used for calls to finishMigration. */
                  +    public UnaryCallSettings.Builder finishMigrationSettings() {
                  +      return getStubSettingsBuilder().finishMigrationSettings();
                  +    }
                  +
                  +    /** Returns the builder for the settings used for calls to finishMigration. */
                  +    public OperationCallSettings.Builder
                  +        finishMigrationOperationSettings() {
                  +      return getStubSettingsBuilder().finishMigrationOperationSettings();
                  +    }
                  +
                       /** Returns the builder for the settings used for calls to listLocations. */
                       public PagedCallSettings.Builder<
                               ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
                  diff --git a/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/gapic_metadata.json b/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/gapic_metadata.json
                  index dc9699c64217..67f43bfe0839 100644
                  --- a/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/gapic_metadata.json
                  +++ b/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/gapic_metadata.json
                  @@ -25,6 +25,9 @@
                               "ExportBackup": {
                                 "methods": ["exportBackupAsync", "exportBackupOperationCallable", "exportBackupCallable"]
                               },
                  +            "FinishMigration": {
                  +              "methods": ["finishMigrationAsync", "finishMigrationAsync", "finishMigrationAsync", "finishMigrationOperationCallable", "finishMigrationCallable"]
                  +            },
                               "GetBackup": {
                                 "methods": ["getBackup", "getBackup", "getBackup", "getBackupCallable"]
                               },
                  @@ -58,6 +61,9 @@
                               "RescheduleMaintenance": {
                                 "methods": ["rescheduleMaintenanceAsync", "rescheduleMaintenanceAsync", "rescheduleMaintenanceAsync", "rescheduleMaintenanceOperationCallable", "rescheduleMaintenanceCallable"]
                               },
                  +            "StartMigration": {
                  +              "methods": ["startMigrationAsync", "startMigrationOperationCallable", "startMigrationCallable"]
                  +            },
                               "UpdateInstance": {
                                 "methods": ["updateInstanceAsync", "updateInstanceAsync", "updateInstanceOperationCallable", "updateInstanceCallable"]
                               }
                  diff --git a/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/stub/GrpcMemorystoreStub.java b/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/stub/GrpcMemorystoreStub.java
                  index 0938ec87384d..d307f002492d 100644
                  --- a/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/stub/GrpcMemorystoreStub.java
                  +++ b/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/stub/GrpcMemorystoreStub.java
                  @@ -41,6 +41,7 @@
                   import com.google.cloud.memorystore.v1.DeleteBackupRequest;
                   import com.google.cloud.memorystore.v1.DeleteInstanceRequest;
                   import com.google.cloud.memorystore.v1.ExportBackupRequest;
                  +import com.google.cloud.memorystore.v1.FinishMigrationRequest;
                   import com.google.cloud.memorystore.v1.GetBackupCollectionRequest;
                   import com.google.cloud.memorystore.v1.GetBackupRequest;
                   import com.google.cloud.memorystore.v1.GetCertificateAuthorityRequest;
                  @@ -56,6 +57,7 @@
                   import com.google.cloud.memorystore.v1.OperationMetadata;
                   import com.google.cloud.memorystore.v1.RescheduleMaintenanceRequest;
                   import com.google.cloud.memorystore.v1.SharedRegionalCertificateAuthority;
                  +import com.google.cloud.memorystore.v1.StartMigrationRequest;
                   import com.google.cloud.memorystore.v1.UpdateInstanceRequest;
                   import com.google.longrunning.Operation;
                   import com.google.longrunning.stub.GrpcOperationsStub;
                  @@ -242,6 +244,28 @@ public class GrpcMemorystoreStub extends MemorystoreStub {
                                 .setSampledToLocalTracing(true)
                                 .build();
                   
                  +  private static final MethodDescriptor
                  +      startMigrationMethodDescriptor =
                  +          MethodDescriptor.newBuilder()
                  +              .setType(MethodDescriptor.MethodType.UNARY)
                  +              .setFullMethodName("google.cloud.memorystore.v1.Memorystore/StartMigration")
                  +              .setRequestMarshaller(
                  +                  ProtoUtils.marshaller(StartMigrationRequest.getDefaultInstance()))
                  +              .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
                  +              .setSampledToLocalTracing(true)
                  +              .build();
                  +
                  +  private static final MethodDescriptor
                  +      finishMigrationMethodDescriptor =
                  +          MethodDescriptor.newBuilder()
                  +              .setType(MethodDescriptor.MethodType.UNARY)
                  +              .setFullMethodName("google.cloud.memorystore.v1.Memorystore/FinishMigration")
                  +              .setRequestMarshaller(
                  +                  ProtoUtils.marshaller(FinishMigrationRequest.getDefaultInstance()))
                  +              .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
                  +              .setSampledToLocalTracing(true)
                  +              .build();
                  +
                     private static final MethodDescriptor
                         listLocationsMethodDescriptor =
                             MethodDescriptor.newBuilder()
                  @@ -304,6 +328,12 @@ public class GrpcMemorystoreStub extends MemorystoreStub {
                     private final UnaryCallable backupInstanceCallable;
                     private final OperationCallable
                         backupInstanceOperationCallable;
                  +  private final UnaryCallable startMigrationCallable;
                  +  private final OperationCallable
                  +      startMigrationOperationCallable;
                  +  private final UnaryCallable finishMigrationCallable;
                  +  private final OperationCallable
                  +      finishMigrationOperationCallable;
                     private final UnaryCallable listLocationsCallable;
                     private final UnaryCallable
                         listLocationsPagedCallable;
                  @@ -524,6 +554,28 @@ protected GrpcMemorystoreStub(
                                   })
                               .setResourceNameExtractor(request -> request.getName())
                               .build();
                  +    GrpcCallSettings startMigrationTransportSettings =
                  +        GrpcCallSettings.newBuilder()
                  +            .setMethodDescriptor(startMigrationMethodDescriptor)
                  +            .setParamsExtractor(
                  +                request -> {
                  +                  RequestParamsBuilder builder = RequestParamsBuilder.create();
                  +                  builder.add("name", String.valueOf(request.getName()));
                  +                  return builder.build();
                  +                })
                  +            .setResourceNameExtractor(request -> request.getName())
                  +            .build();
                  +    GrpcCallSettings finishMigrationTransportSettings =
                  +        GrpcCallSettings.newBuilder()
                  +            .setMethodDescriptor(finishMigrationMethodDescriptor)
                  +            .setParamsExtractor(
                  +                request -> {
                  +                  RequestParamsBuilder builder = RequestParamsBuilder.create();
                  +                  builder.add("name", String.valueOf(request.getName()));
                  +                  return builder.build();
                  +                })
                  +            .setResourceNameExtractor(request -> request.getName())
                  +            .build();
                       GrpcCallSettings listLocationsTransportSettings =
                           GrpcCallSettings.newBuilder()
                               .setMethodDescriptor(listLocationsMethodDescriptor)
                  @@ -653,6 +705,24 @@ protected GrpcMemorystoreStub(
                               settings.backupInstanceOperationSettings(),
                               clientContext,
                               operationsStub);
                  +    this.startMigrationCallable =
                  +        callableFactory.createUnaryCallable(
                  +            startMigrationTransportSettings, settings.startMigrationSettings(), clientContext);
                  +    this.startMigrationOperationCallable =
                  +        callableFactory.createOperationCallable(
                  +            startMigrationTransportSettings,
                  +            settings.startMigrationOperationSettings(),
                  +            clientContext,
                  +            operationsStub);
                  +    this.finishMigrationCallable =
                  +        callableFactory.createUnaryCallable(
                  +            finishMigrationTransportSettings, settings.finishMigrationSettings(), clientContext);
                  +    this.finishMigrationOperationCallable =
                  +        callableFactory.createOperationCallable(
                  +            finishMigrationTransportSettings,
                  +            settings.finishMigrationOperationSettings(),
                  +            clientContext,
                  +            operationsStub);
                       this.listLocationsCallable =
                           callableFactory.createUnaryCallable(
                               listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
                  @@ -809,6 +879,28 @@ public UnaryCallable backupInstanceCallable()
                       return backupInstanceOperationCallable;
                     }
                   
                  +  @Override
                  +  public UnaryCallable startMigrationCallable() {
                  +    return startMigrationCallable;
                  +  }
                  +
                  +  @Override
                  +  public OperationCallable
                  +      startMigrationOperationCallable() {
                  +    return startMigrationOperationCallable;
                  +  }
                  +
                  +  @Override
                  +  public UnaryCallable finishMigrationCallable() {
                  +    return finishMigrationCallable;
                  +  }
                  +
                  +  @Override
                  +  public OperationCallable
                  +      finishMigrationOperationCallable() {
                  +    return finishMigrationOperationCallable;
                  +  }
                  +
                     @Override
                     public UnaryCallable listLocationsCallable() {
                       return listLocationsCallable;
                  diff --git a/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/stub/HttpJsonMemorystoreStub.java b/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/stub/HttpJsonMemorystoreStub.java
                  index ab7973f22a63..e965ba4f80da 100644
                  --- a/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/stub/HttpJsonMemorystoreStub.java
                  +++ b/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/stub/HttpJsonMemorystoreStub.java
                  @@ -49,6 +49,7 @@
                   import com.google.cloud.memorystore.v1.DeleteBackupRequest;
                   import com.google.cloud.memorystore.v1.DeleteInstanceRequest;
                   import com.google.cloud.memorystore.v1.ExportBackupRequest;
                  +import com.google.cloud.memorystore.v1.FinishMigrationRequest;
                   import com.google.cloud.memorystore.v1.GetBackupCollectionRequest;
                   import com.google.cloud.memorystore.v1.GetBackupRequest;
                   import com.google.cloud.memorystore.v1.GetCertificateAuthorityRequest;
                  @@ -64,6 +65,7 @@
                   import com.google.cloud.memorystore.v1.OperationMetadata;
                   import com.google.cloud.memorystore.v1.RescheduleMaintenanceRequest;
                   import com.google.cloud.memorystore.v1.SharedRegionalCertificateAuthority;
                  +import com.google.cloud.memorystore.v1.StartMigrationRequest;
                   import com.google.cloud.memorystore.v1.UpdateInstanceRequest;
                   import com.google.common.collect.ImmutableMap;
                   import com.google.longrunning.Operation;
                  @@ -660,6 +662,86 @@ public class HttpJsonMemorystoreStub extends MemorystoreStub {
                                         HttpJsonOperationSnapshot.create(response))
                                 .build();
                   
                  +  private static final ApiMethodDescriptor
                  +      startMigrationMethodDescriptor =
                  +          ApiMethodDescriptor.newBuilder()
                  +              .setFullMethodName("google.cloud.memorystore.v1.Memorystore/StartMigration")
                  +              .setHttpMethod("POST")
                  +              .setType(ApiMethodDescriptor.MethodType.UNARY)
                  +              .setRequestFormatter(
                  +                  ProtoMessageRequestFormatter.newBuilder()
                  +                      .setPath(
                  +                          "/v1/{name=projects/*/locations/*/instances/*}:startMigration",
                  +                          request -> {
                  +                            Map fields = new HashMap<>();
                  +                            ProtoRestSerializer serializer =
                  +                                ProtoRestSerializer.create();
                  +                            serializer.putPathParam(fields, "name", request.getName());
                  +                            return fields;
                  +                          })
                  +                      .setQueryParamsExtractor(
                  +                          request -> {
                  +                            Map> fields = new HashMap<>();
                  +                            ProtoRestSerializer serializer =
                  +                                ProtoRestSerializer.create();
                  +                            serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
                  +                            return fields;
                  +                          })
                  +                      .setRequestBodyExtractor(
                  +                          request ->
                  +                              ProtoRestSerializer.create()
                  +                                  .toBody("*", request.toBuilder().clearName().build(), true))
                  +                      .build())
                  +              .setResponseParser(
                  +                  ProtoMessageResponseParser.newBuilder()
                  +                      .setDefaultInstance(Operation.getDefaultInstance())
                  +                      .setDefaultTypeRegistry(typeRegistry)
                  +                      .build())
                  +              .setOperationSnapshotFactory(
                  +                  (StartMigrationRequest request, Operation response) ->
                  +                      HttpJsonOperationSnapshot.create(response))
                  +              .build();
                  +
                  +  private static final ApiMethodDescriptor
                  +      finishMigrationMethodDescriptor =
                  +          ApiMethodDescriptor.newBuilder()
                  +              .setFullMethodName("google.cloud.memorystore.v1.Memorystore/FinishMigration")
                  +              .setHttpMethod("POST")
                  +              .setType(ApiMethodDescriptor.MethodType.UNARY)
                  +              .setRequestFormatter(
                  +                  ProtoMessageRequestFormatter.newBuilder()
                  +                      .setPath(
                  +                          "/v1/{name=projects/*/locations/*/instances/*}:finishMigration",
                  +                          request -> {
                  +                            Map fields = new HashMap<>();
                  +                            ProtoRestSerializer serializer =
                  +                                ProtoRestSerializer.create();
                  +                            serializer.putPathParam(fields, "name", request.getName());
                  +                            return fields;
                  +                          })
                  +                      .setQueryParamsExtractor(
                  +                          request -> {
                  +                            Map> fields = new HashMap<>();
                  +                            ProtoRestSerializer serializer =
                  +                                ProtoRestSerializer.create();
                  +                            serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
                  +                            return fields;
                  +                          })
                  +                      .setRequestBodyExtractor(
                  +                          request ->
                  +                              ProtoRestSerializer.create()
                  +                                  .toBody("*", request.toBuilder().clearName().build(), true))
                  +                      .build())
                  +              .setResponseParser(
                  +                  ProtoMessageResponseParser.newBuilder()
                  +                      .setDefaultInstance(Operation.getDefaultInstance())
                  +                      .setDefaultTypeRegistry(typeRegistry)
                  +                      .build())
                  +              .setOperationSnapshotFactory(
                  +                  (FinishMigrationRequest request, Operation response) ->
                  +                      HttpJsonOperationSnapshot.create(response))
                  +              .build();
                  +
                     private static final ApiMethodDescriptor
                         listLocationsMethodDescriptor =
                             ApiMethodDescriptor.newBuilder()
                  @@ -769,6 +851,12 @@ public class HttpJsonMemorystoreStub extends MemorystoreStub {
                     private final UnaryCallable backupInstanceCallable;
                     private final OperationCallable
                         backupInstanceOperationCallable;
                  +  private final UnaryCallable startMigrationCallable;
                  +  private final OperationCallable
                  +      startMigrationOperationCallable;
                  +  private final UnaryCallable finishMigrationCallable;
                  +  private final OperationCallable
                  +      finishMigrationOperationCallable;
                     private final UnaryCallable listLocationsCallable;
                     private final UnaryCallable
                         listLocationsPagedCallable;
                  @@ -1033,6 +1121,30 @@ protected HttpJsonMemorystoreStub(
                                   })
                               .setResourceNameExtractor(request -> request.getName())
                               .build();
                  +    HttpJsonCallSettings startMigrationTransportSettings =
                  +        HttpJsonCallSettings.newBuilder()
                  +            .setMethodDescriptor(startMigrationMethodDescriptor)
                  +            .setTypeRegistry(typeRegistry)
                  +            .setParamsExtractor(
                  +                request -> {
                  +                  RequestParamsBuilder builder = RequestParamsBuilder.create();
                  +                  builder.add("name", String.valueOf(request.getName()));
                  +                  return builder.build();
                  +                })
                  +            .setResourceNameExtractor(request -> request.getName())
                  +            .build();
                  +    HttpJsonCallSettings finishMigrationTransportSettings =
                  +        HttpJsonCallSettings.newBuilder()
                  +            .setMethodDescriptor(finishMigrationMethodDescriptor)
                  +            .setTypeRegistry(typeRegistry)
                  +            .setParamsExtractor(
                  +                request -> {
                  +                  RequestParamsBuilder builder = RequestParamsBuilder.create();
                  +                  builder.add("name", String.valueOf(request.getName()));
                  +                  return builder.build();
                  +                })
                  +            .setResourceNameExtractor(request -> request.getName())
                  +            .build();
                       HttpJsonCallSettings
                           listLocationsTransportSettings =
                               HttpJsonCallSettings.newBuilder()
                  @@ -1165,6 +1277,24 @@ protected HttpJsonMemorystoreStub(
                               settings.backupInstanceOperationSettings(),
                               clientContext,
                               httpJsonOperationsStub);
                  +    this.startMigrationCallable =
                  +        callableFactory.createUnaryCallable(
                  +            startMigrationTransportSettings, settings.startMigrationSettings(), clientContext);
                  +    this.startMigrationOperationCallable =
                  +        callableFactory.createOperationCallable(
                  +            startMigrationTransportSettings,
                  +            settings.startMigrationOperationSettings(),
                  +            clientContext,
                  +            httpJsonOperationsStub);
                  +    this.finishMigrationCallable =
                  +        callableFactory.createUnaryCallable(
                  +            finishMigrationTransportSettings, settings.finishMigrationSettings(), clientContext);
                  +    this.finishMigrationOperationCallable =
                  +        callableFactory.createOperationCallable(
                  +            finishMigrationTransportSettings,
                  +            settings.finishMigrationOperationSettings(),
                  +            clientContext,
                  +            httpJsonOperationsStub);
                       this.listLocationsCallable =
                           callableFactory.createUnaryCallable(
                               listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
                  @@ -1197,6 +1327,8 @@ public static List getMethodDescriptors() {
                       methodDescriptors.add(deleteBackupMethodDescriptor);
                       methodDescriptors.add(exportBackupMethodDescriptor);
                       methodDescriptors.add(backupInstanceMethodDescriptor);
                  +    methodDescriptors.add(startMigrationMethodDescriptor);
                  +    methodDescriptors.add(finishMigrationMethodDescriptor);
                       methodDescriptors.add(listLocationsMethodDescriptor);
                       methodDescriptors.add(getLocationMethodDescriptor);
                       return methodDescriptors;
                  @@ -1344,6 +1476,28 @@ public UnaryCallable backupInstanceCallable()
                       return backupInstanceOperationCallable;
                     }
                   
                  +  @Override
                  +  public UnaryCallable startMigrationCallable() {
                  +    return startMigrationCallable;
                  +  }
                  +
                  +  @Override
                  +  public OperationCallable
                  +      startMigrationOperationCallable() {
                  +    return startMigrationOperationCallable;
                  +  }
                  +
                  +  @Override
                  +  public UnaryCallable finishMigrationCallable() {
                  +    return finishMigrationCallable;
                  +  }
                  +
                  +  @Override
                  +  public OperationCallable
                  +      finishMigrationOperationCallable() {
                  +    return finishMigrationOperationCallable;
                  +  }
                  +
                     @Override
                     public UnaryCallable listLocationsCallable() {
                       return listLocationsCallable;
                  diff --git a/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/stub/MemorystoreStub.java b/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/stub/MemorystoreStub.java
                  index 1fb8b799f45c..28e8a8b49c37 100644
                  --- a/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/stub/MemorystoreStub.java
                  +++ b/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/stub/MemorystoreStub.java
                  @@ -36,6 +36,7 @@
                   import com.google.cloud.memorystore.v1.DeleteBackupRequest;
                   import com.google.cloud.memorystore.v1.DeleteInstanceRequest;
                   import com.google.cloud.memorystore.v1.ExportBackupRequest;
                  +import com.google.cloud.memorystore.v1.FinishMigrationRequest;
                   import com.google.cloud.memorystore.v1.GetBackupCollectionRequest;
                   import com.google.cloud.memorystore.v1.GetBackupRequest;
                   import com.google.cloud.memorystore.v1.GetCertificateAuthorityRequest;
                  @@ -51,6 +52,7 @@
                   import com.google.cloud.memorystore.v1.OperationMetadata;
                   import com.google.cloud.memorystore.v1.RescheduleMaintenanceRequest;
                   import com.google.cloud.memorystore.v1.SharedRegionalCertificateAuthority;
                  +import com.google.cloud.memorystore.v1.StartMigrationRequest;
                   import com.google.cloud.memorystore.v1.UpdateInstanceRequest;
                   import com.google.longrunning.Operation;
                   import com.google.longrunning.stub.OperationsStub;
                  @@ -190,6 +192,24 @@ public UnaryCallable backupInstanceCallable()
                       throw new UnsupportedOperationException("Not implemented: backupInstanceCallable()");
                     }
                   
                  +  public OperationCallable
                  +      startMigrationOperationCallable() {
                  +    throw new UnsupportedOperationException("Not implemented: startMigrationOperationCallable()");
                  +  }
                  +
                  +  public UnaryCallable startMigrationCallable() {
                  +    throw new UnsupportedOperationException("Not implemented: startMigrationCallable()");
                  +  }
                  +
                  +  public OperationCallable
                  +      finishMigrationOperationCallable() {
                  +    throw new UnsupportedOperationException("Not implemented: finishMigrationOperationCallable()");
                  +  }
                  +
                  +  public UnaryCallable finishMigrationCallable() {
                  +    throw new UnsupportedOperationException("Not implemented: finishMigrationCallable()");
                  +  }
                  +
                     public UnaryCallable
                         listLocationsPagedCallable() {
                       throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()");
                  diff --git a/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/stub/MemorystoreStubSettings.java b/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/stub/MemorystoreStubSettings.java
                  index a5530b44b532..16b133c9bdf7 100644
                  --- a/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/stub/MemorystoreStubSettings.java
                  +++ b/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/stub/MemorystoreStubSettings.java
                  @@ -64,6 +64,7 @@
                   import com.google.cloud.memorystore.v1.DeleteBackupRequest;
                   import com.google.cloud.memorystore.v1.DeleteInstanceRequest;
                   import com.google.cloud.memorystore.v1.ExportBackupRequest;
                  +import com.google.cloud.memorystore.v1.FinishMigrationRequest;
                   import com.google.cloud.memorystore.v1.GetBackupCollectionRequest;
                   import com.google.cloud.memorystore.v1.GetBackupRequest;
                   import com.google.cloud.memorystore.v1.GetCertificateAuthorityRequest;
                  @@ -79,6 +80,7 @@
                   import com.google.cloud.memorystore.v1.OperationMetadata;
                   import com.google.cloud.memorystore.v1.RescheduleMaintenanceRequest;
                   import com.google.cloud.memorystore.v1.SharedRegionalCertificateAuthority;
                  +import com.google.cloud.memorystore.v1.StartMigrationRequest;
                   import com.google.cloud.memorystore.v1.UpdateInstanceRequest;
                   import com.google.common.collect.ImmutableList;
                   import com.google.common.collect.ImmutableMap;
                  @@ -172,7 +174,11 @@
                   public class MemorystoreStubSettings extends StubSettings {
                     /** The default scopes of the service. */
                     private static final ImmutableList DEFAULT_SERVICE_SCOPES =
                  -      ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build();
                  +      ImmutableList.builder()
                  +          .add("https://www.googleapis.com/auth/cloud-platform")
                  +          .add("https://www.googleapis.com/auth/memorystore.read-only")
                  +          .add("https://www.googleapis.com/auth/memorystore.read-write")
                  +          .build();
                   
                     private final PagedCallSettings<
                             ListInstancesRequest, ListInstancesResponse, ListInstancesPagedResponse>
                  @@ -215,6 +221,12 @@ public class MemorystoreStubSettings extends StubSettings backupInstanceSettings;
                     private final OperationCallSettings
                         backupInstanceOperationSettings;
                  +  private final UnaryCallSettings startMigrationSettings;
                  +  private final OperationCallSettings
                  +      startMigrationOperationSettings;
                  +  private final UnaryCallSettings finishMigrationSettings;
                  +  private final OperationCallSettings
                  +      finishMigrationOperationSettings;
                     private final PagedCallSettings<
                             ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
                         listLocationsSettings;
                  @@ -566,6 +578,28 @@ public UnaryCallSettings backupInstanceSetting
                       return backupInstanceOperationSettings;
                     }
                   
                  +  /** Returns the object with the settings used for calls to startMigration. */
                  +  public UnaryCallSettings startMigrationSettings() {
                  +    return startMigrationSettings;
                  +  }
                  +
                  +  /** Returns the object with the settings used for calls to startMigration. */
                  +  public OperationCallSettings
                  +      startMigrationOperationSettings() {
                  +    return startMigrationOperationSettings;
                  +  }
                  +
                  +  /** Returns the object with the settings used for calls to finishMigration. */
                  +  public UnaryCallSettings finishMigrationSettings() {
                  +    return finishMigrationSettings;
                  +  }
                  +
                  +  /** Returns the object with the settings used for calls to finishMigration. */
                  +  public OperationCallSettings
                  +      finishMigrationOperationSettings() {
                  +    return finishMigrationOperationSettings;
                  +  }
                  +
                     /** Returns the object with the settings used for calls to listLocations. */
                     public PagedCallSettings
                         listLocationsSettings() {
                  @@ -712,6 +746,10 @@ protected MemorystoreStubSettings(Builder settingsBuilder) throws IOException {
                       exportBackupOperationSettings = settingsBuilder.exportBackupOperationSettings().build();
                       backupInstanceSettings = settingsBuilder.backupInstanceSettings().build();
                       backupInstanceOperationSettings = settingsBuilder.backupInstanceOperationSettings().build();
                  +    startMigrationSettings = settingsBuilder.startMigrationSettings().build();
                  +    startMigrationOperationSettings = settingsBuilder.startMigrationOperationSettings().build();
                  +    finishMigrationSettings = settingsBuilder.finishMigrationSettings().build();
                  +    finishMigrationOperationSettings = settingsBuilder.finishMigrationOperationSettings().build();
                       listLocationsSettings = settingsBuilder.listLocationsSettings().build();
                       getLocationSettings = settingsBuilder.getLocationSettings().build();
                     }
                  @@ -775,6 +813,14 @@ public static class Builder extends StubSettings.Builder
                           backupInstanceOperationSettings;
                  +    private final UnaryCallSettings.Builder
                  +        startMigrationSettings;
                  +    private final OperationCallSettings.Builder
                  +        startMigrationOperationSettings;
                  +    private final UnaryCallSettings.Builder
                  +        finishMigrationSettings;
                  +    private final OperationCallSettings.Builder
                  +        finishMigrationOperationSettings;
                       private final PagedCallSettings.Builder<
                               ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
                           listLocationsSettings;
                  @@ -854,6 +900,10 @@ protected Builder(ClientContext clientContext) {
                         exportBackupOperationSettings = OperationCallSettings.newBuilder();
                         backupInstanceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
                         backupInstanceOperationSettings = OperationCallSettings.newBuilder();
                  +      startMigrationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
                  +      startMigrationOperationSettings = OperationCallSettings.newBuilder();
                  +      finishMigrationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
                  +      finishMigrationOperationSettings = OperationCallSettings.newBuilder();
                         listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT);
                         getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
                   
                  @@ -874,6 +924,8 @@ protected Builder(ClientContext clientContext) {
                                 deleteBackupSettings,
                                 exportBackupSettings,
                                 backupInstanceSettings,
                  +              startMigrationSettings,
                  +              finishMigrationSettings,
                                 listLocationsSettings,
                                 getLocationSettings);
                         initDefaults(this);
                  @@ -906,6 +958,10 @@ protected Builder(MemorystoreStubSettings settings) {
                         exportBackupOperationSettings = settings.exportBackupOperationSettings.toBuilder();
                         backupInstanceSettings = settings.backupInstanceSettings.toBuilder();
                         backupInstanceOperationSettings = settings.backupInstanceOperationSettings.toBuilder();
                  +      startMigrationSettings = settings.startMigrationSettings.toBuilder();
                  +      startMigrationOperationSettings = settings.startMigrationOperationSettings.toBuilder();
                  +      finishMigrationSettings = settings.finishMigrationSettings.toBuilder();
                  +      finishMigrationOperationSettings = settings.finishMigrationOperationSettings.toBuilder();
                         listLocationsSettings = settings.listLocationsSettings.toBuilder();
                         getLocationSettings = settings.getLocationSettings.toBuilder();
                   
                  @@ -926,6 +982,8 @@ protected Builder(MemorystoreStubSettings settings) {
                                 deleteBackupSettings,
                                 exportBackupSettings,
                                 backupInstanceSettings,
                  +              startMigrationSettings,
                  +              finishMigrationSettings,
                                 listLocationsSettings,
                                 getLocationSettings);
                       }
                  @@ -1030,6 +1088,16 @@ private static Builder initDefaults(Builder builder) {
                             .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
                             .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
                   
                  +      builder
                  +          .startMigrationSettings()
                  +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
                  +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
                  +
                  +      builder
                  +          .finishMigrationSettings()
                  +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
                  +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
                  +
                         builder
                             .listLocationsSettings()
                             .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
                  @@ -1208,6 +1276,54 @@ private static Builder initDefaults(Builder builder) {
                                         .setTotalTimeoutDuration(Duration.ofMillis(300000L))
                                         .build()));
                   
                  +      builder
                  +          .startMigrationOperationSettings()
                  +          .setInitialCallSettings(
                  +              UnaryCallSettings
                  +                  .newUnaryCallSettingsBuilder()
                  +                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
                  +                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"))
                  +                  .build())
                  +          .setResponseTransformer(
                  +              ProtoOperationTransformers.ResponseTransformer.create(Instance.class))
                  +          .setMetadataTransformer(
                  +              ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class))
                  +          .setPollingAlgorithm(
                  +              OperationTimedPollAlgorithm.create(
                  +                  RetrySettings.newBuilder()
                  +                      .setInitialRetryDelayDuration(Duration.ofMillis(5000L))
                  +                      .setRetryDelayMultiplier(1.5)
                  +                      .setMaxRetryDelayDuration(Duration.ofMillis(45000L))
                  +                      .setInitialRpcTimeoutDuration(Duration.ZERO)
                  +                      .setRpcTimeoutMultiplier(1.0)
                  +                      .setMaxRpcTimeoutDuration(Duration.ZERO)
                  +                      .setTotalTimeoutDuration(Duration.ofMillis(300000L))
                  +                      .build()));
                  +
                  +      builder
                  +          .finishMigrationOperationSettings()
                  +          .setInitialCallSettings(
                  +              UnaryCallSettings
                  +                  .newUnaryCallSettingsBuilder()
                  +                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
                  +                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"))
                  +                  .build())
                  +          .setResponseTransformer(
                  +              ProtoOperationTransformers.ResponseTransformer.create(Instance.class))
                  +          .setMetadataTransformer(
                  +              ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class))
                  +          .setPollingAlgorithm(
                  +              OperationTimedPollAlgorithm.create(
                  +                  RetrySettings.newBuilder()
                  +                      .setInitialRetryDelayDuration(Duration.ofMillis(5000L))
                  +                      .setRetryDelayMultiplier(1.5)
                  +                      .setMaxRetryDelayDuration(Duration.ofMillis(45000L))
                  +                      .setInitialRpcTimeoutDuration(Duration.ZERO)
                  +                      .setRpcTimeoutMultiplier(1.0)
                  +                      .setMaxRpcTimeoutDuration(Duration.ZERO)
                  +                      .setTotalTimeoutDuration(Duration.ofMillis(300000L))
                  +                      .build()));
                  +
                         return builder;
                       }
                   
                  @@ -1358,6 +1474,28 @@ public UnaryCallSettings.Builder backupInstanc
                         return backupInstanceOperationSettings;
                       }
                   
                  +    /** Returns the builder for the settings used for calls to startMigration. */
                  +    public UnaryCallSettings.Builder startMigrationSettings() {
                  +      return startMigrationSettings;
                  +    }
                  +
                  +    /** Returns the builder for the settings used for calls to startMigration. */
                  +    public OperationCallSettings.Builder
                  +        startMigrationOperationSettings() {
                  +      return startMigrationOperationSettings;
                  +    }
                  +
                  +    /** Returns the builder for the settings used for calls to finishMigration. */
                  +    public UnaryCallSettings.Builder finishMigrationSettings() {
                  +      return finishMigrationSettings;
                  +    }
                  +
                  +    /** Returns the builder for the settings used for calls to finishMigration. */
                  +    public OperationCallSettings.Builder
                  +        finishMigrationOperationSettings() {
                  +      return finishMigrationOperationSettings;
                  +    }
                  +
                       /** Returns the builder for the settings used for calls to listLocations. */
                       public PagedCallSettings.Builder<
                               ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
                  diff --git a/java-valkey/google-cloud-valkey/src/main/resources/META-INF/native-image/com.google.cloud.memorystore.v1/reflect-config.json b/java-valkey/google-cloud-valkey/src/main/resources/META-INF/native-image/com.google.cloud.memorystore.v1/reflect-config.json
                  index d6e79f0efd38..e160c7f466bd 100644
                  --- a/java-valkey/google-cloud-valkey/src/main/resources/META-INF/native-image/com.google.cloud.memorystore.v1/reflect-config.json
                  +++ b/java-valkey/google-cloud-valkey/src/main/resources/META-INF/native-image/com.google.cloud.memorystore.v1/reflect-config.json
                  @@ -980,6 +980,24 @@
                       "allDeclaredClasses": true,
                       "allPublicClasses": true
                     },
                  +  {
                  +    "name": "com.google.cloud.memorystore.v1.FinishMigrationRequest",
                  +    "queryAllDeclaredConstructors": true,
                  +    "queryAllPublicConstructors": true,
                  +    "queryAllDeclaredMethods": true,
                  +    "allPublicMethods": true,
                  +    "allDeclaredClasses": true,
                  +    "allPublicClasses": true
                  +  },
                  +  {
                  +    "name": "com.google.cloud.memorystore.v1.FinishMigrationRequest$Builder",
                  +    "queryAllDeclaredConstructors": true,
                  +    "queryAllPublicConstructors": true,
                  +    "queryAllDeclaredMethods": true,
                  +    "allPublicMethods": true,
                  +    "allDeclaredClasses": true,
                  +    "allPublicClasses": true
                  +  },
                     {
                       "name": "com.google.cloud.memorystore.v1.GetBackupCollectionRequest",
                       "queryAllDeclaredConstructors": true,
                  @@ -1394,6 +1412,33 @@
                       "allDeclaredClasses": true,
                       "allPublicClasses": true
                     },
                  +  {
                  +    "name": "com.google.cloud.memorystore.v1.MigrationConfig",
                  +    "queryAllDeclaredConstructors": true,
                  +    "queryAllPublicConstructors": true,
                  +    "queryAllDeclaredMethods": true,
                  +    "allPublicMethods": true,
                  +    "allDeclaredClasses": true,
                  +    "allPublicClasses": true
                  +  },
                  +  {
                  +    "name": "com.google.cloud.memorystore.v1.MigrationConfig$Builder",
                  +    "queryAllDeclaredConstructors": true,
                  +    "queryAllPublicConstructors": true,
                  +    "queryAllDeclaredMethods": true,
                  +    "allPublicMethods": true,
                  +    "allDeclaredClasses": true,
                  +    "allPublicClasses": true
                  +  },
                  +  {
                  +    "name": "com.google.cloud.memorystore.v1.MigrationConfig$State",
                  +    "queryAllDeclaredConstructors": true,
                  +    "queryAllPublicConstructors": true,
                  +    "queryAllDeclaredMethods": true,
                  +    "allPublicMethods": true,
                  +    "allDeclaredClasses": true,
                  +    "allPublicClasses": true
                  +  },
                     {
                       "name": "com.google.cloud.memorystore.v1.NodeConfig",
                       "queryAllDeclaredConstructors": true,
                  @@ -1601,6 +1646,24 @@
                       "allDeclaredClasses": true,
                       "allPublicClasses": true
                     },
                  +  {
                  +    "name": "com.google.cloud.memorystore.v1.SelfManagedSource",
                  +    "queryAllDeclaredConstructors": true,
                  +    "queryAllPublicConstructors": true,
                  +    "queryAllDeclaredMethods": true,
                  +    "allPublicMethods": true,
                  +    "allDeclaredClasses": true,
                  +    "allPublicClasses": true
                  +  },
                  +  {
                  +    "name": "com.google.cloud.memorystore.v1.SelfManagedSource$Builder",
                  +    "queryAllDeclaredConstructors": true,
                  +    "queryAllPublicConstructors": true,
                  +    "queryAllDeclaredMethods": true,
                  +    "allPublicMethods": true,
                  +    "allDeclaredClasses": true,
                  +    "allPublicClasses": true
                  +  },
                     {
                       "name": "com.google.cloud.memorystore.v1.SharedRegionalCertificateAuthority",
                       "queryAllDeclaredConstructors": true,
                  @@ -1655,6 +1718,24 @@
                       "allDeclaredClasses": true,
                       "allPublicClasses": true
                     },
                  +  {
                  +    "name": "com.google.cloud.memorystore.v1.StartMigrationRequest",
                  +    "queryAllDeclaredConstructors": true,
                  +    "queryAllPublicConstructors": true,
                  +    "queryAllDeclaredMethods": true,
                  +    "allPublicMethods": true,
                  +    "allDeclaredClasses": true,
                  +    "allPublicClasses": true
                  +  },
                  +  {
                  +    "name": "com.google.cloud.memorystore.v1.StartMigrationRequest$Builder",
                  +    "queryAllDeclaredConstructors": true,
                  +    "queryAllPublicConstructors": true,
                  +    "queryAllDeclaredMethods": true,
                  +    "allPublicMethods": true,
                  +    "allDeclaredClasses": true,
                  +    "allPublicClasses": true
                  +  },
                     {
                       "name": "com.google.cloud.memorystore.v1.UpdateInstanceRequest",
                       "queryAllDeclaredConstructors": true,
                  diff --git a/java-valkey/google-cloud-valkey/src/test/java/com/google/cloud/memorystore/v1/MemorystoreClientHttpJsonTest.java b/java-valkey/google-cloud-valkey/src/test/java/com/google/cloud/memorystore/v1/MemorystoreClientHttpJsonTest.java
                  index 6aaf636024fe..99357bd620a9 100644
                  --- a/java-valkey/google-cloud-valkey/src/test/java/com/google/cloud/memorystore/v1/MemorystoreClientHttpJsonTest.java
                  +++ b/java-valkey/google-cloud-valkey/src/test/java/com/google/cloud/memorystore/v1/MemorystoreClientHttpJsonTest.java
                  @@ -232,6 +232,7 @@ public void getInstanceTest() throws Exception {
                               .setAllowFewerZonesDeployment(true)
                               .setServerCaPool("serverCaPool1433802429")
                               .setRotateServerCertificate(true)
                  +            .setMigrationConfig(MigrationConfig.newBuilder().build())
                               .build();
                       mockService.addResponse(expectedResponse);
                   
                  @@ -313,6 +314,7 @@ public void getInstanceTest2() throws Exception {
                               .setAllowFewerZonesDeployment(true)
                               .setServerCaPool("serverCaPool1433802429")
                               .setRotateServerCertificate(true)
                  +            .setMigrationConfig(MigrationConfig.newBuilder().build())
                               .build();
                       mockService.addResponse(expectedResponse);
                   
                  @@ -394,6 +396,7 @@ public void createInstanceTest() throws Exception {
                               .setAllowFewerZonesDeployment(true)
                               .setServerCaPool("serverCaPool1433802429")
                               .setRotateServerCertificate(true)
                  +            .setMigrationConfig(MigrationConfig.newBuilder().build())
                               .build();
                       Operation resultOperation =
                           Operation.newBuilder()
                  @@ -484,6 +487,7 @@ public void createInstanceTest2() throws Exception {
                               .setAllowFewerZonesDeployment(true)
                               .setServerCaPool("serverCaPool1433802429")
                               .setRotateServerCertificate(true)
                  +            .setMigrationConfig(MigrationConfig.newBuilder().build())
                               .build();
                       Operation resultOperation =
                           Operation.newBuilder()
                  @@ -574,6 +578,7 @@ public void updateInstanceTest() throws Exception {
                               .setAllowFewerZonesDeployment(true)
                               .setServerCaPool("serverCaPool1433802429")
                               .setRotateServerCertificate(true)
                  +            .setMigrationConfig(MigrationConfig.newBuilder().build())
                               .build();
                       Operation resultOperation =
                           Operation.newBuilder()
                  @@ -623,6 +628,7 @@ public void updateInstanceTest() throws Exception {
                               .setAllowFewerZonesDeployment(true)
                               .setServerCaPool("serverCaPool1433802429")
                               .setRotateServerCertificate(true)
                  +            .setMigrationConfig(MigrationConfig.newBuilder().build())
                               .build();
                       FieldMask updateMask = FieldMask.newBuilder().build();
                   
                  @@ -693,6 +699,7 @@ public void updateInstanceExceptionTest() throws Exception {
                                 .setAllowFewerZonesDeployment(true)
                                 .setServerCaPool("serverCaPool1433802429")
                                 .setRotateServerCertificate(true)
                  +              .setMigrationConfig(MigrationConfig.newBuilder().build())
                                 .build();
                         FieldMask updateMask = FieldMask.newBuilder().build();
                         client.updateInstanceAsync(instance, updateMask).get();
                  @@ -1012,6 +1019,7 @@ public void rescheduleMaintenanceTest() throws Exception {
                               .setAllowFewerZonesDeployment(true)
                               .setServerCaPool("serverCaPool1433802429")
                               .setRotateServerCertificate(true)
                  +            .setMigrationConfig(MigrationConfig.newBuilder().build())
                               .build();
                       Operation resultOperation =
                           Operation.newBuilder()
                  @@ -1105,6 +1113,7 @@ public void rescheduleMaintenanceTest2() throws Exception {
                               .setAllowFewerZonesDeployment(true)
                               .setServerCaPool("serverCaPool1433802429")
                               .setRotateServerCertificate(true)
                  +            .setMigrationConfig(MigrationConfig.newBuilder().build())
                               .build();
                       Operation resultOperation =
                           Operation.newBuilder()
                  @@ -1794,6 +1803,7 @@ public void backupInstanceTest() throws Exception {
                               .setAllowFewerZonesDeployment(true)
                               .setServerCaPool("serverCaPool1433802429")
                               .setRotateServerCertificate(true)
                  +            .setMigrationConfig(MigrationConfig.newBuilder().build())
                               .build();
                       Operation resultOperation =
                           Operation.newBuilder()
                  @@ -1880,6 +1890,7 @@ public void backupInstanceTest2() throws Exception {
                               .setAllowFewerZonesDeployment(true)
                               .setServerCaPool("serverCaPool1433802429")
                               .setRotateServerCertificate(true)
                  +            .setMigrationConfig(MigrationConfig.newBuilder().build())
                               .build();
                       Operation resultOperation =
                           Operation.newBuilder()
                  @@ -1924,6 +1935,277 @@ public void backupInstanceExceptionTest2() throws Exception {
                       }
                     }
                   
                  +  @Test
                  +  public void startMigrationTest() throws Exception {
                  +    Instance expectedResponse =
                  +        Instance.newBuilder()
                  +            .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
                  +            .setCreateTime(Timestamp.newBuilder().build())
                  +            .setUpdateTime(Timestamp.newBuilder().build())
                  +            .putAllLabels(new HashMap())
                  +            .setStateInfo(Instance.StateInfo.newBuilder().build())
                  +            .setUid("uid115792")
                  +            .setReplicaCount(564075208)
                  +            .setShardCount(-495377042)
                  +            .addAllDiscoveryEndpoints(new ArrayList())
                  +            .setPersistenceConfig(PersistenceConfig.newBuilder().build())
                  +            .setEngineVersion("engineVersion-1416229834")
                  +            .putAllEngineConfigs(new HashMap())
                  +            .setNodeConfig(NodeConfig.newBuilder().build())
                  +            .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build())
                  +            .setDeletionProtectionEnabled(true)
                  +            .addAllPscAutoConnections(new ArrayList())
                  +            .addAllPscAttachmentDetails(new ArrayList())
                  +            .addAllEndpoints(new ArrayList())
                  +            .setSimulateMaintenanceEvent(true)
                  +            .setOndemandMaintenance(true)
                  +            .setSatisfiesPzs(true)
                  +            .setSatisfiesPzi(true)
                  +            .setMaintenancePolicy(MaintenancePolicy.newBuilder().build())
                  +            .setMaintenanceSchedule(MaintenanceSchedule.newBuilder().build())
                  +            .setCrossInstanceReplicationConfig(CrossInstanceReplicationConfig.newBuilder().build())
                  +            .setAsyncInstanceEndpointsDeletionEnabled(true)
                  +            .setKmsKey("kmsKey-1127483058")
                  +            .setEncryptionInfo(EncryptionInfo.newBuilder().build())
                  +            .setBackupCollection(
                  +                BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]")
                  +                    .toString())
                  +            .setAutomatedBackupConfig(AutomatedBackupConfig.newBuilder().build())
                  +            .setMaintenanceVersion("maintenanceVersion1355658821")
                  +            .setEffectiveMaintenanceVersion("effectiveMaintenanceVersion-380297140")
                  +            .addAllAvailableMaintenanceVersions(new ArrayList())
                  +            .setAllowFewerZonesDeployment(true)
                  +            .setServerCaPool("serverCaPool1433802429")
                  +            .setRotateServerCertificate(true)
                  +            .setMigrationConfig(MigrationConfig.newBuilder().build())
                  +            .build();
                  +    Operation resultOperation =
                  +        Operation.newBuilder()
                  +            .setName("startMigrationTest")
                  +            .setDone(true)
                  +            .setResponse(Any.pack(expectedResponse))
                  +            .build();
                  +    mockService.addResponse(resultOperation);
                  +
                  +    StartMigrationRequest request =
                  +        StartMigrationRequest.newBuilder()
                  +            .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
                  +            .build();
                  +
                  +    Instance actualResponse = client.startMigrationAsync(request).get();
                  +    Assert.assertEquals(expectedResponse, actualResponse);
                  +
                  +    List actualRequests = mockService.getRequestPaths();
                  +    Assert.assertEquals(1, actualRequests.size());
                  +
                  +    String apiClientHeaderKey =
                  +        mockService
                  +            .getRequestHeaders()
                  +            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
                  +            .iterator()
                  +            .next();
                  +    Assert.assertTrue(
                  +        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
                  +            .matcher(apiClientHeaderKey)
                  +            .matches());
                  +  }
                  +
                  +  @Test
                  +  public void startMigrationExceptionTest() throws Exception {
                  +    ApiException exception =
                  +        ApiExceptionFactory.createException(
                  +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
                  +    mockService.addException(exception);
                  +
                  +    try {
                  +      StartMigrationRequest request =
                  +          StartMigrationRequest.newBuilder()
                  +              .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
                  +              .build();
                  +      client.startMigrationAsync(request).get();
                  +      Assert.fail("No exception raised");
                  +    } catch (ExecutionException e) {
                  +    }
                  +  }
                  +
                  +  @Test
                  +  public void finishMigrationTest() throws Exception {
                  +    Instance expectedResponse =
                  +        Instance.newBuilder()
                  +            .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
                  +            .setCreateTime(Timestamp.newBuilder().build())
                  +            .setUpdateTime(Timestamp.newBuilder().build())
                  +            .putAllLabels(new HashMap())
                  +            .setStateInfo(Instance.StateInfo.newBuilder().build())
                  +            .setUid("uid115792")
                  +            .setReplicaCount(564075208)
                  +            .setShardCount(-495377042)
                  +            .addAllDiscoveryEndpoints(new ArrayList())
                  +            .setPersistenceConfig(PersistenceConfig.newBuilder().build())
                  +            .setEngineVersion("engineVersion-1416229834")
                  +            .putAllEngineConfigs(new HashMap())
                  +            .setNodeConfig(NodeConfig.newBuilder().build())
                  +            .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build())
                  +            .setDeletionProtectionEnabled(true)
                  +            .addAllPscAutoConnections(new ArrayList())
                  +            .addAllPscAttachmentDetails(new ArrayList())
                  +            .addAllEndpoints(new ArrayList())
                  +            .setSimulateMaintenanceEvent(true)
                  +            .setOndemandMaintenance(true)
                  +            .setSatisfiesPzs(true)
                  +            .setSatisfiesPzi(true)
                  +            .setMaintenancePolicy(MaintenancePolicy.newBuilder().build())
                  +            .setMaintenanceSchedule(MaintenanceSchedule.newBuilder().build())
                  +            .setCrossInstanceReplicationConfig(CrossInstanceReplicationConfig.newBuilder().build())
                  +            .setAsyncInstanceEndpointsDeletionEnabled(true)
                  +            .setKmsKey("kmsKey-1127483058")
                  +            .setEncryptionInfo(EncryptionInfo.newBuilder().build())
                  +            .setBackupCollection(
                  +                BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]")
                  +                    .toString())
                  +            .setAutomatedBackupConfig(AutomatedBackupConfig.newBuilder().build())
                  +            .setMaintenanceVersion("maintenanceVersion1355658821")
                  +            .setEffectiveMaintenanceVersion("effectiveMaintenanceVersion-380297140")
                  +            .addAllAvailableMaintenanceVersions(new ArrayList())
                  +            .setAllowFewerZonesDeployment(true)
                  +            .setServerCaPool("serverCaPool1433802429")
                  +            .setRotateServerCertificate(true)
                  +            .setMigrationConfig(MigrationConfig.newBuilder().build())
                  +            .build();
                  +    Operation resultOperation =
                  +        Operation.newBuilder()
                  +            .setName("finishMigrationTest")
                  +            .setDone(true)
                  +            .setResponse(Any.pack(expectedResponse))
                  +            .build();
                  +    mockService.addResponse(resultOperation);
                  +
                  +    InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
                  +    boolean force = true;
                  +
                  +    Instance actualResponse = client.finishMigrationAsync(name, force).get();
                  +    Assert.assertEquals(expectedResponse, actualResponse);
                  +
                  +    List actualRequests = mockService.getRequestPaths();
                  +    Assert.assertEquals(1, actualRequests.size());
                  +
                  +    String apiClientHeaderKey =
                  +        mockService
                  +            .getRequestHeaders()
                  +            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
                  +            .iterator()
                  +            .next();
                  +    Assert.assertTrue(
                  +        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
                  +            .matcher(apiClientHeaderKey)
                  +            .matches());
                  +  }
                  +
                  +  @Test
                  +  public void finishMigrationExceptionTest() throws Exception {
                  +    ApiException exception =
                  +        ApiExceptionFactory.createException(
                  +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
                  +    mockService.addException(exception);
                  +
                  +    try {
                  +      InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
                  +      boolean force = true;
                  +      client.finishMigrationAsync(name, force).get();
                  +      Assert.fail("No exception raised");
                  +    } catch (ExecutionException e) {
                  +    }
                  +  }
                  +
                  +  @Test
                  +  public void finishMigrationTest2() throws Exception {
                  +    Instance expectedResponse =
                  +        Instance.newBuilder()
                  +            .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
                  +            .setCreateTime(Timestamp.newBuilder().build())
                  +            .setUpdateTime(Timestamp.newBuilder().build())
                  +            .putAllLabels(new HashMap())
                  +            .setStateInfo(Instance.StateInfo.newBuilder().build())
                  +            .setUid("uid115792")
                  +            .setReplicaCount(564075208)
                  +            .setShardCount(-495377042)
                  +            .addAllDiscoveryEndpoints(new ArrayList())
                  +            .setPersistenceConfig(PersistenceConfig.newBuilder().build())
                  +            .setEngineVersion("engineVersion-1416229834")
                  +            .putAllEngineConfigs(new HashMap())
                  +            .setNodeConfig(NodeConfig.newBuilder().build())
                  +            .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build())
                  +            .setDeletionProtectionEnabled(true)
                  +            .addAllPscAutoConnections(new ArrayList())
                  +            .addAllPscAttachmentDetails(new ArrayList())
                  +            .addAllEndpoints(new ArrayList())
                  +            .setSimulateMaintenanceEvent(true)
                  +            .setOndemandMaintenance(true)
                  +            .setSatisfiesPzs(true)
                  +            .setSatisfiesPzi(true)
                  +            .setMaintenancePolicy(MaintenancePolicy.newBuilder().build())
                  +            .setMaintenanceSchedule(MaintenanceSchedule.newBuilder().build())
                  +            .setCrossInstanceReplicationConfig(CrossInstanceReplicationConfig.newBuilder().build())
                  +            .setAsyncInstanceEndpointsDeletionEnabled(true)
                  +            .setKmsKey("kmsKey-1127483058")
                  +            .setEncryptionInfo(EncryptionInfo.newBuilder().build())
                  +            .setBackupCollection(
                  +                BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]")
                  +                    .toString())
                  +            .setAutomatedBackupConfig(AutomatedBackupConfig.newBuilder().build())
                  +            .setMaintenanceVersion("maintenanceVersion1355658821")
                  +            .setEffectiveMaintenanceVersion("effectiveMaintenanceVersion-380297140")
                  +            .addAllAvailableMaintenanceVersions(new ArrayList())
                  +            .setAllowFewerZonesDeployment(true)
                  +            .setServerCaPool("serverCaPool1433802429")
                  +            .setRotateServerCertificate(true)
                  +            .setMigrationConfig(MigrationConfig.newBuilder().build())
                  +            .build();
                  +    Operation resultOperation =
                  +        Operation.newBuilder()
                  +            .setName("finishMigrationTest")
                  +            .setDone(true)
                  +            .setResponse(Any.pack(expectedResponse))
                  +            .build();
                  +    mockService.addResponse(resultOperation);
                  +
                  +    String name = "projects/project-9412/locations/location-9412/instances/instance-9412";
                  +    boolean force = true;
                  +
                  +    Instance actualResponse = client.finishMigrationAsync(name, force).get();
                  +    Assert.assertEquals(expectedResponse, actualResponse);
                  +
                  +    List actualRequests = mockService.getRequestPaths();
                  +    Assert.assertEquals(1, actualRequests.size());
                  +
                  +    String apiClientHeaderKey =
                  +        mockService
                  +            .getRequestHeaders()
                  +            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
                  +            .iterator()
                  +            .next();
                  +    Assert.assertTrue(
                  +        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
                  +            .matcher(apiClientHeaderKey)
                  +            .matches());
                  +  }
                  +
                  +  @Test
                  +  public void finishMigrationExceptionTest2() throws Exception {
                  +    ApiException exception =
                  +        ApiExceptionFactory.createException(
                  +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
                  +    mockService.addException(exception);
                  +
                  +    try {
                  +      String name = "projects/project-9412/locations/location-9412/instances/instance-9412";
                  +      boolean force = true;
                  +      client.finishMigrationAsync(name, force).get();
                  +      Assert.fail("No exception raised");
                  +    } catch (ExecutionException e) {
                  +    }
                  +  }
                  +
                     @Test
                     public void listLocationsTest() throws Exception {
                       Location responsesElement = Location.newBuilder().build();
                  diff --git a/java-valkey/google-cloud-valkey/src/test/java/com/google/cloud/memorystore/v1/MemorystoreClientTest.java b/java-valkey/google-cloud-valkey/src/test/java/com/google/cloud/memorystore/v1/MemorystoreClientTest.java
                  index c508596a1375..1c77c1ad2264 100644
                  --- a/java-valkey/google-cloud-valkey/src/test/java/com/google/cloud/memorystore/v1/MemorystoreClientTest.java
                  +++ b/java-valkey/google-cloud-valkey/src/test/java/com/google/cloud/memorystore/v1/MemorystoreClientTest.java
                  @@ -227,6 +227,7 @@ public void getInstanceTest() throws Exception {
                               .setAllowFewerZonesDeployment(true)
                               .setServerCaPool("serverCaPool1433802429")
                               .setRotateServerCertificate(true)
                  +            .setMigrationConfig(MigrationConfig.newBuilder().build())
                               .build();
                       mockMemorystore.addResponse(expectedResponse);
                   
                  @@ -302,6 +303,7 @@ public void getInstanceTest2() throws Exception {
                               .setAllowFewerZonesDeployment(true)
                               .setServerCaPool("serverCaPool1433802429")
                               .setRotateServerCertificate(true)
                  +            .setMigrationConfig(MigrationConfig.newBuilder().build())
                               .build();
                       mockMemorystore.addResponse(expectedResponse);
                   
                  @@ -377,6 +379,7 @@ public void createInstanceTest() throws Exception {
                               .setAllowFewerZonesDeployment(true)
                               .setServerCaPool("serverCaPool1433802429")
                               .setRotateServerCertificate(true)
                  +            .setMigrationConfig(MigrationConfig.newBuilder().build())
                               .build();
                       Operation resultOperation =
                           Operation.newBuilder()
                  @@ -466,6 +469,7 @@ public void createInstanceTest2() throws Exception {
                               .setAllowFewerZonesDeployment(true)
                               .setServerCaPool("serverCaPool1433802429")
                               .setRotateServerCertificate(true)
                  +            .setMigrationConfig(MigrationConfig.newBuilder().build())
                               .build();
                       Operation resultOperation =
                           Operation.newBuilder()
                  @@ -555,6 +559,7 @@ public void updateInstanceTest() throws Exception {
                               .setAllowFewerZonesDeployment(true)
                               .setServerCaPool("serverCaPool1433802429")
                               .setRotateServerCertificate(true)
                  +            .setMigrationConfig(MigrationConfig.newBuilder().build())
                               .build();
                       Operation resultOperation =
                           Operation.newBuilder()
                  @@ -883,6 +888,7 @@ public void rescheduleMaintenanceTest() throws Exception {
                               .setAllowFewerZonesDeployment(true)
                               .setServerCaPool("serverCaPool1433802429")
                               .setRotateServerCertificate(true)
                  +            .setMigrationConfig(MigrationConfig.newBuilder().build())
                               .build();
                       Operation resultOperation =
                           Operation.newBuilder()
                  @@ -976,6 +982,7 @@ public void rescheduleMaintenanceTest2() throws Exception {
                               .setAllowFewerZonesDeployment(true)
                               .setServerCaPool("serverCaPool1433802429")
                               .setRotateServerCertificate(true)
                  +            .setMigrationConfig(MigrationConfig.newBuilder().build())
                               .build();
                       Operation resultOperation =
                           Operation.newBuilder()
                  @@ -1603,6 +1610,7 @@ public void backupInstanceTest() throws Exception {
                               .setAllowFewerZonesDeployment(true)
                               .setServerCaPool("serverCaPool1433802429")
                               .setRotateServerCertificate(true)
                  +            .setMigrationConfig(MigrationConfig.newBuilder().build())
                               .build();
                       Operation resultOperation =
                           Operation.newBuilder()
                  @@ -1686,6 +1694,7 @@ public void backupInstanceTest2() throws Exception {
                               .setAllowFewerZonesDeployment(true)
                               .setServerCaPool("serverCaPool1433802429")
                               .setRotateServerCertificate(true)
                  +            .setMigrationConfig(MigrationConfig.newBuilder().build())
                               .build();
                       Operation resultOperation =
                           Operation.newBuilder()
                  @@ -1727,6 +1736,271 @@ public void backupInstanceExceptionTest2() throws Exception {
                       }
                     }
                   
                  +  @Test
                  +  public void startMigrationTest() throws Exception {
                  +    Instance expectedResponse =
                  +        Instance.newBuilder()
                  +            .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
                  +            .setCreateTime(Timestamp.newBuilder().build())
                  +            .setUpdateTime(Timestamp.newBuilder().build())
                  +            .putAllLabels(new HashMap())
                  +            .setStateInfo(Instance.StateInfo.newBuilder().build())
                  +            .setUid("uid115792")
                  +            .setReplicaCount(564075208)
                  +            .setShardCount(-495377042)
                  +            .addAllDiscoveryEndpoints(new ArrayList())
                  +            .setPersistenceConfig(PersistenceConfig.newBuilder().build())
                  +            .setEngineVersion("engineVersion-1416229834")
                  +            .putAllEngineConfigs(new HashMap())
                  +            .setNodeConfig(NodeConfig.newBuilder().build())
                  +            .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build())
                  +            .setDeletionProtectionEnabled(true)
                  +            .addAllPscAutoConnections(new ArrayList())
                  +            .addAllPscAttachmentDetails(new ArrayList())
                  +            .addAllEndpoints(new ArrayList())
                  +            .setSimulateMaintenanceEvent(true)
                  +            .setOndemandMaintenance(true)
                  +            .setSatisfiesPzs(true)
                  +            .setSatisfiesPzi(true)
                  +            .setMaintenancePolicy(MaintenancePolicy.newBuilder().build())
                  +            .setMaintenanceSchedule(MaintenanceSchedule.newBuilder().build())
                  +            .setCrossInstanceReplicationConfig(CrossInstanceReplicationConfig.newBuilder().build())
                  +            .setAsyncInstanceEndpointsDeletionEnabled(true)
                  +            .setKmsKey("kmsKey-1127483058")
                  +            .setEncryptionInfo(EncryptionInfo.newBuilder().build())
                  +            .setBackupCollection(
                  +                BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]")
                  +                    .toString())
                  +            .setAutomatedBackupConfig(AutomatedBackupConfig.newBuilder().build())
                  +            .setMaintenanceVersion("maintenanceVersion1355658821")
                  +            .setEffectiveMaintenanceVersion("effectiveMaintenanceVersion-380297140")
                  +            .addAllAvailableMaintenanceVersions(new ArrayList())
                  +            .setAllowFewerZonesDeployment(true)
                  +            .setServerCaPool("serverCaPool1433802429")
                  +            .setRotateServerCertificate(true)
                  +            .setMigrationConfig(MigrationConfig.newBuilder().build())
                  +            .build();
                  +    Operation resultOperation =
                  +        Operation.newBuilder()
                  +            .setName("startMigrationTest")
                  +            .setDone(true)
                  +            .setResponse(Any.pack(expectedResponse))
                  +            .build();
                  +    mockMemorystore.addResponse(resultOperation);
                  +
                  +    StartMigrationRequest request =
                  +        StartMigrationRequest.newBuilder()
                  +            .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
                  +            .build();
                  +
                  +    Instance actualResponse = client.startMigrationAsync(request).get();
                  +    Assert.assertEquals(expectedResponse, actualResponse);
                  +
                  +    List actualRequests = mockMemorystore.getRequests();
                  +    Assert.assertEquals(1, actualRequests.size());
                  +    StartMigrationRequest actualRequest = ((StartMigrationRequest) actualRequests.get(0));
                  +
                  +    Assert.assertEquals(request.getSelfManagedSource(), actualRequest.getSelfManagedSource());
                  +    Assert.assertEquals(request.getName(), actualRequest.getName());
                  +    Assert.assertTrue(
                  +        channelProvider.isHeaderSent(
                  +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
                  +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
                  +  }
                  +
                  +  @Test
                  +  public void startMigrationExceptionTest() throws Exception {
                  +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
                  +    mockMemorystore.addException(exception);
                  +
                  +    try {
                  +      StartMigrationRequest request =
                  +          StartMigrationRequest.newBuilder()
                  +              .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
                  +              .build();
                  +      client.startMigrationAsync(request).get();
                  +      Assert.fail("No exception raised");
                  +    } catch (ExecutionException e) {
                  +      Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
                  +      InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause());
                  +      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
                  +    }
                  +  }
                  +
                  +  @Test
                  +  public void finishMigrationTest() throws Exception {
                  +    Instance expectedResponse =
                  +        Instance.newBuilder()
                  +            .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
                  +            .setCreateTime(Timestamp.newBuilder().build())
                  +            .setUpdateTime(Timestamp.newBuilder().build())
                  +            .putAllLabels(new HashMap())
                  +            .setStateInfo(Instance.StateInfo.newBuilder().build())
                  +            .setUid("uid115792")
                  +            .setReplicaCount(564075208)
                  +            .setShardCount(-495377042)
                  +            .addAllDiscoveryEndpoints(new ArrayList())
                  +            .setPersistenceConfig(PersistenceConfig.newBuilder().build())
                  +            .setEngineVersion("engineVersion-1416229834")
                  +            .putAllEngineConfigs(new HashMap())
                  +            .setNodeConfig(NodeConfig.newBuilder().build())
                  +            .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build())
                  +            .setDeletionProtectionEnabled(true)
                  +            .addAllPscAutoConnections(new ArrayList())
                  +            .addAllPscAttachmentDetails(new ArrayList())
                  +            .addAllEndpoints(new ArrayList())
                  +            .setSimulateMaintenanceEvent(true)
                  +            .setOndemandMaintenance(true)
                  +            .setSatisfiesPzs(true)
                  +            .setSatisfiesPzi(true)
                  +            .setMaintenancePolicy(MaintenancePolicy.newBuilder().build())
                  +            .setMaintenanceSchedule(MaintenanceSchedule.newBuilder().build())
                  +            .setCrossInstanceReplicationConfig(CrossInstanceReplicationConfig.newBuilder().build())
                  +            .setAsyncInstanceEndpointsDeletionEnabled(true)
                  +            .setKmsKey("kmsKey-1127483058")
                  +            .setEncryptionInfo(EncryptionInfo.newBuilder().build())
                  +            .setBackupCollection(
                  +                BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]")
                  +                    .toString())
                  +            .setAutomatedBackupConfig(AutomatedBackupConfig.newBuilder().build())
                  +            .setMaintenanceVersion("maintenanceVersion1355658821")
                  +            .setEffectiveMaintenanceVersion("effectiveMaintenanceVersion-380297140")
                  +            .addAllAvailableMaintenanceVersions(new ArrayList())
                  +            .setAllowFewerZonesDeployment(true)
                  +            .setServerCaPool("serverCaPool1433802429")
                  +            .setRotateServerCertificate(true)
                  +            .setMigrationConfig(MigrationConfig.newBuilder().build())
                  +            .build();
                  +    Operation resultOperation =
                  +        Operation.newBuilder()
                  +            .setName("finishMigrationTest")
                  +            .setDone(true)
                  +            .setResponse(Any.pack(expectedResponse))
                  +            .build();
                  +    mockMemorystore.addResponse(resultOperation);
                  +
                  +    InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
                  +    boolean force = true;
                  +
                  +    Instance actualResponse = client.finishMigrationAsync(name, force).get();
                  +    Assert.assertEquals(expectedResponse, actualResponse);
                  +
                  +    List actualRequests = mockMemorystore.getRequests();
                  +    Assert.assertEquals(1, actualRequests.size());
                  +    FinishMigrationRequest actualRequest = ((FinishMigrationRequest) actualRequests.get(0));
                  +
                  +    Assert.assertEquals(name.toString(), actualRequest.getName());
                  +    Assert.assertEquals(force, actualRequest.getForce());
                  +    Assert.assertTrue(
                  +        channelProvider.isHeaderSent(
                  +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
                  +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
                  +  }
                  +
                  +  @Test
                  +  public void finishMigrationExceptionTest() throws Exception {
                  +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
                  +    mockMemorystore.addException(exception);
                  +
                  +    try {
                  +      InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
                  +      boolean force = true;
                  +      client.finishMigrationAsync(name, force).get();
                  +      Assert.fail("No exception raised");
                  +    } catch (ExecutionException e) {
                  +      Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
                  +      InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause());
                  +      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
                  +    }
                  +  }
                  +
                  +  @Test
                  +  public void finishMigrationTest2() throws Exception {
                  +    Instance expectedResponse =
                  +        Instance.newBuilder()
                  +            .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
                  +            .setCreateTime(Timestamp.newBuilder().build())
                  +            .setUpdateTime(Timestamp.newBuilder().build())
                  +            .putAllLabels(new HashMap())
                  +            .setStateInfo(Instance.StateInfo.newBuilder().build())
                  +            .setUid("uid115792")
                  +            .setReplicaCount(564075208)
                  +            .setShardCount(-495377042)
                  +            .addAllDiscoveryEndpoints(new ArrayList())
                  +            .setPersistenceConfig(PersistenceConfig.newBuilder().build())
                  +            .setEngineVersion("engineVersion-1416229834")
                  +            .putAllEngineConfigs(new HashMap())
                  +            .setNodeConfig(NodeConfig.newBuilder().build())
                  +            .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build())
                  +            .setDeletionProtectionEnabled(true)
                  +            .addAllPscAutoConnections(new ArrayList())
                  +            .addAllPscAttachmentDetails(new ArrayList())
                  +            .addAllEndpoints(new ArrayList())
                  +            .setSimulateMaintenanceEvent(true)
                  +            .setOndemandMaintenance(true)
                  +            .setSatisfiesPzs(true)
                  +            .setSatisfiesPzi(true)
                  +            .setMaintenancePolicy(MaintenancePolicy.newBuilder().build())
                  +            .setMaintenanceSchedule(MaintenanceSchedule.newBuilder().build())
                  +            .setCrossInstanceReplicationConfig(CrossInstanceReplicationConfig.newBuilder().build())
                  +            .setAsyncInstanceEndpointsDeletionEnabled(true)
                  +            .setKmsKey("kmsKey-1127483058")
                  +            .setEncryptionInfo(EncryptionInfo.newBuilder().build())
                  +            .setBackupCollection(
                  +                BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]")
                  +                    .toString())
                  +            .setAutomatedBackupConfig(AutomatedBackupConfig.newBuilder().build())
                  +            .setMaintenanceVersion("maintenanceVersion1355658821")
                  +            .setEffectiveMaintenanceVersion("effectiveMaintenanceVersion-380297140")
                  +            .addAllAvailableMaintenanceVersions(new ArrayList())
                  +            .setAllowFewerZonesDeployment(true)
                  +            .setServerCaPool("serverCaPool1433802429")
                  +            .setRotateServerCertificate(true)
                  +            .setMigrationConfig(MigrationConfig.newBuilder().build())
                  +            .build();
                  +    Operation resultOperation =
                  +        Operation.newBuilder()
                  +            .setName("finishMigrationTest")
                  +            .setDone(true)
                  +            .setResponse(Any.pack(expectedResponse))
                  +            .build();
                  +    mockMemorystore.addResponse(resultOperation);
                  +
                  +    String name = "name3373707";
                  +    boolean force = true;
                  +
                  +    Instance actualResponse = client.finishMigrationAsync(name, force).get();
                  +    Assert.assertEquals(expectedResponse, actualResponse);
                  +
                  +    List actualRequests = mockMemorystore.getRequests();
                  +    Assert.assertEquals(1, actualRequests.size());
                  +    FinishMigrationRequest actualRequest = ((FinishMigrationRequest) actualRequests.get(0));
                  +
                  +    Assert.assertEquals(name, actualRequest.getName());
                  +    Assert.assertEquals(force, actualRequest.getForce());
                  +    Assert.assertTrue(
                  +        channelProvider.isHeaderSent(
                  +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
                  +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
                  +  }
                  +
                  +  @Test
                  +  public void finishMigrationExceptionTest2() throws Exception {
                  +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
                  +    mockMemorystore.addException(exception);
                  +
                  +    try {
                  +      String name = "name3373707";
                  +      boolean force = true;
                  +      client.finishMigrationAsync(name, force).get();
                  +      Assert.fail("No exception raised");
                  +    } catch (ExecutionException e) {
                  +      Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
                  +      InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause());
                  +      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
                  +    }
                  +  }
                  +
                     @Test
                     public void listLocationsTest() throws Exception {
                       Location responsesElement = Location.newBuilder().build();
                  diff --git a/java-valkey/google-cloud-valkey/src/test/java/com/google/cloud/memorystore/v1/MockMemorystoreImpl.java b/java-valkey/google-cloud-valkey/src/test/java/com/google/cloud/memorystore/v1/MockMemorystoreImpl.java
                  index d845ef6bd62e..0c0a2c60a6a9 100644
                  --- a/java-valkey/google-cloud-valkey/src/test/java/com/google/cloud/memorystore/v1/MockMemorystoreImpl.java
                  +++ b/java-valkey/google-cloud-valkey/src/test/java/com/google/cloud/memorystore/v1/MockMemorystoreImpl.java
                  @@ -378,4 +378,46 @@ public void backupInstance(
                                     Exception.class.getName())));
                       }
                     }
                  +
                  +  @Override
                  +  public void startMigration(
                  +      StartMigrationRequest request, StreamObserver responseObserver) {
                  +    Object response = responses.poll();
                  +    if (response instanceof Operation) {
                  +      requests.add(request);
                  +      responseObserver.onNext(((Operation) response));
                  +      responseObserver.onCompleted();
                  +    } else if (response instanceof Exception) {
                  +      responseObserver.onError(((Exception) response));
                  +    } else {
                  +      responseObserver.onError(
                  +          new IllegalArgumentException(
                  +              String.format(
                  +                  "Unrecognized response type %s for method StartMigration, expected %s or %s",
                  +                  response == null ? "null" : response.getClass().getName(),
                  +                  Operation.class.getName(),
                  +                  Exception.class.getName())));
                  +    }
                  +  }
                  +
                  +  @Override
                  +  public void finishMigration(
                  +      FinishMigrationRequest request, StreamObserver responseObserver) {
                  +    Object response = responses.poll();
                  +    if (response instanceof Operation) {
                  +      requests.add(request);
                  +      responseObserver.onNext(((Operation) response));
                  +      responseObserver.onCompleted();
                  +    } else if (response instanceof Exception) {
                  +      responseObserver.onError(((Exception) response));
                  +    } else {
                  +      responseObserver.onError(
                  +          new IllegalArgumentException(
                  +              String.format(
                  +                  "Unrecognized response type %s for method FinishMigration, expected %s or %s",
                  +                  response == null ? "null" : response.getClass().getName(),
                  +                  Operation.class.getName(),
                  +                  Exception.class.getName())));
                  +    }
                  +  }
                   }
                  diff --git a/java-valkey/grpc-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/MemorystoreGrpc.java b/java-valkey/grpc-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/MemorystoreGrpc.java
                  index c54c6124979a..db10a796d2e0 100644
                  --- a/java-valkey/grpc-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/MemorystoreGrpc.java
                  +++ b/java-valkey/grpc-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/MemorystoreGrpc.java
                  @@ -720,6 +720,93 @@ private MemorystoreGrpc() {}
                       return getBackupInstanceMethod;
                     }
                   
                  +  private static volatile io.grpc.MethodDescriptor<
                  +          com.google.cloud.memorystore.v1.StartMigrationRequest, com.google.longrunning.Operation>
                  +      getStartMigrationMethod;
                  +
                  +  @io.grpc.stub.annotations.RpcMethod(
                  +      fullMethodName = SERVICE_NAME + '/' + "StartMigration",
                  +      requestType = com.google.cloud.memorystore.v1.StartMigrationRequest.class,
                  +      responseType = com.google.longrunning.Operation.class,
                  +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
                  +  public static io.grpc.MethodDescriptor<
                  +          com.google.cloud.memorystore.v1.StartMigrationRequest, com.google.longrunning.Operation>
                  +      getStartMigrationMethod() {
                  +    io.grpc.MethodDescriptor<
                  +            com.google.cloud.memorystore.v1.StartMigrationRequest, com.google.longrunning.Operation>
                  +        getStartMigrationMethod;
                  +    if ((getStartMigrationMethod = MemorystoreGrpc.getStartMigrationMethod) == null) {
                  +      synchronized (MemorystoreGrpc.class) {
                  +        if ((getStartMigrationMethod = MemorystoreGrpc.getStartMigrationMethod) == null) {
                  +          MemorystoreGrpc.getStartMigrationMethod =
                  +              getStartMigrationMethod =
                  +                  io.grpc.MethodDescriptor
                  +                      .
                  +                          newBuilder()
                  +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
                  +                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartMigration"))
                  +                      .setSampledToLocalTracing(true)
                  +                      .setRequestMarshaller(
                  +                          io.grpc.protobuf.ProtoUtils.marshaller(
                  +                              com.google.cloud.memorystore.v1.StartMigrationRequest
                  +                                  .getDefaultInstance()))
                  +                      .setResponseMarshaller(
                  +                          io.grpc.protobuf.ProtoUtils.marshaller(
                  +                              com.google.longrunning.Operation.getDefaultInstance()))
                  +                      .setSchemaDescriptor(
                  +                          new MemorystoreMethodDescriptorSupplier("StartMigration"))
                  +                      .build();
                  +        }
                  +      }
                  +    }
                  +    return getStartMigrationMethod;
                  +  }
                  +
                  +  private static volatile io.grpc.MethodDescriptor<
                  +          com.google.cloud.memorystore.v1.FinishMigrationRequest, com.google.longrunning.Operation>
                  +      getFinishMigrationMethod;
                  +
                  +  @io.grpc.stub.annotations.RpcMethod(
                  +      fullMethodName = SERVICE_NAME + '/' + "FinishMigration",
                  +      requestType = com.google.cloud.memorystore.v1.FinishMigrationRequest.class,
                  +      responseType = com.google.longrunning.Operation.class,
                  +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
                  +  public static io.grpc.MethodDescriptor<
                  +          com.google.cloud.memorystore.v1.FinishMigrationRequest, com.google.longrunning.Operation>
                  +      getFinishMigrationMethod() {
                  +    io.grpc.MethodDescriptor<
                  +            com.google.cloud.memorystore.v1.FinishMigrationRequest,
                  +            com.google.longrunning.Operation>
                  +        getFinishMigrationMethod;
                  +    if ((getFinishMigrationMethod = MemorystoreGrpc.getFinishMigrationMethod) == null) {
                  +      synchronized (MemorystoreGrpc.class) {
                  +        if ((getFinishMigrationMethod = MemorystoreGrpc.getFinishMigrationMethod) == null) {
                  +          MemorystoreGrpc.getFinishMigrationMethod =
                  +              getFinishMigrationMethod =
                  +                  io.grpc.MethodDescriptor
                  +                      .
                  +                          newBuilder()
                  +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
                  +                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FinishMigration"))
                  +                      .setSampledToLocalTracing(true)
                  +                      .setRequestMarshaller(
                  +                          io.grpc.protobuf.ProtoUtils.marshaller(
                  +                              com.google.cloud.memorystore.v1.FinishMigrationRequest
                  +                                  .getDefaultInstance()))
                  +                      .setResponseMarshaller(
                  +                          io.grpc.protobuf.ProtoUtils.marshaller(
                  +                              com.google.longrunning.Operation.getDefaultInstance()))
                  +                      .setSchemaDescriptor(
                  +                          new MemorystoreMethodDescriptorSupplier("FinishMigration"))
                  +                      .build();
                  +        }
                  +      }
                  +    }
                  +    return getFinishMigrationMethod;
                  +  }
                  +
                     /** Creates a new async stub that supports all call types for the service */
                     public static MemorystoreStub newStub(io.grpc.Channel channel) {
                       io.grpc.stub.AbstractStub.StubFactory factory =
                  @@ -1012,6 +1099,44 @@ default void backupInstance(
                         io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
                             getBackupInstanceMethod(), responseObserver);
                       }
                  +
                  +    /**
                  +     *
                  +     *
                  +     * 
                  +     * Initiates the migration of a source instance to the target Memorystore
                  +     * instance.
                  +     * After the successful completion of this operation, the target instance
                  +     * will:
                  +     * 1. Set up replication with the source instance and replicate any writes to
                  +     * the source instance.
                  +     * 2. Only allow reads.
                  +     * 
                  + */ + default void startMigration( + com.google.cloud.memorystore.v1.StartMigrationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getStartMigrationMethod(), responseObserver); + } + + /** + * + * + *
                  +     * Finalizes the migration process.
                  +     * After the successful completion of this operation, the target instance
                  +     * will:
                  +     * 1. Stop replicating from the source instance.
                  +     * 2. Allow both reads and writes.
                  +     * 
                  + */ + default void finishMigration( + com.google.cloud.memorystore.v1.FinishMigrationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getFinishMigrationMethod(), responseObserver); + } } /** @@ -1307,6 +1432,48 @@ public void backupInstance( request, responseObserver); } + + /** + * + * + *
                  +     * Initiates the migration of a source instance to the target Memorystore
                  +     * instance.
                  +     * After the successful completion of this operation, the target instance
                  +     * will:
                  +     * 1. Set up replication with the source instance and replicate any writes to
                  +     * the source instance.
                  +     * 2. Only allow reads.
                  +     * 
                  + */ + public void startMigration( + com.google.cloud.memorystore.v1.StartMigrationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStartMigrationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                  +     * Finalizes the migration process.
                  +     * After the successful completion of this operation, the target instance
                  +     * will:
                  +     * 1. Stop replicating from the source instance.
                  +     * 2. Allow both reads and writes.
                  +     * 
                  + */ + public void finishMigration( + com.google.cloud.memorystore.v1.FinishMigrationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getFinishMigrationMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -1553,6 +1720,44 @@ public com.google.longrunning.Operation backupInstance( return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBackupInstanceMethod(), getCallOptions(), request); } + + /** + * + * + *
                  +     * Initiates the migration of a source instance to the target Memorystore
                  +     * instance.
                  +     * After the successful completion of this operation, the target instance
                  +     * will:
                  +     * 1. Set up replication with the source instance and replicate any writes to
                  +     * the source instance.
                  +     * 2. Only allow reads.
                  +     * 
                  + */ + public com.google.longrunning.Operation startMigration( + com.google.cloud.memorystore.v1.StartMigrationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getStartMigrationMethod(), getCallOptions(), request); + } + + /** + * + * + *
                  +     * Finalizes the migration process.
                  +     * After the successful completion of this operation, the target instance
                  +     * will:
                  +     * 1. Stop replicating from the source instance.
                  +     * 2. Allow both reads and writes.
                  +     * 
                  + */ + public com.google.longrunning.Operation finishMigration( + com.google.cloud.memorystore.v1.FinishMigrationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getFinishMigrationMethod(), getCallOptions(), request); + } } /** @@ -1787,6 +1992,42 @@ public com.google.longrunning.Operation backupInstance( return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getBackupInstanceMethod(), getCallOptions(), request); } + + /** + * + * + *
                  +     * Initiates the migration of a source instance to the target Memorystore
                  +     * instance.
                  +     * After the successful completion of this operation, the target instance
                  +     * will:
                  +     * 1. Set up replication with the source instance and replicate any writes to
                  +     * the source instance.
                  +     * 2. Only allow reads.
                  +     * 
                  + */ + public com.google.longrunning.Operation startMigration( + com.google.cloud.memorystore.v1.StartMigrationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStartMigrationMethod(), getCallOptions(), request); + } + + /** + * + * + *
                  +     * Finalizes the migration process.
                  +     * After the successful completion of this operation, the target instance
                  +     * will:
                  +     * 1. Stop replicating from the source instance.
                  +     * 2. Allow both reads and writes.
                  +     * 
                  + */ + public com.google.longrunning.Operation finishMigration( + com.google.cloud.memorystore.v1.FinishMigrationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getFinishMigrationMethod(), getCallOptions(), request); + } } /** @@ -2030,6 +2271,42 @@ protected MemorystoreFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getBackupInstanceMethod(), getCallOptions()), request); } + + /** + * + * + *
                  +     * Initiates the migration of a source instance to the target Memorystore
                  +     * instance.
                  +     * After the successful completion of this operation, the target instance
                  +     * will:
                  +     * 1. Set up replication with the source instance and replicate any writes to
                  +     * the source instance.
                  +     * 2. Only allow reads.
                  +     * 
                  + */ + public com.google.common.util.concurrent.ListenableFuture + startMigration(com.google.cloud.memorystore.v1.StartMigrationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStartMigrationMethod(), getCallOptions()), request); + } + + /** + * + * + *
                  +     * Finalizes the migration process.
                  +     * After the successful completion of this operation, the target instance
                  +     * will:
                  +     * 1. Stop replicating from the source instance.
                  +     * 2. Allow both reads and writes.
                  +     * 
                  + */ + public com.google.common.util.concurrent.ListenableFuture + finishMigration(com.google.cloud.memorystore.v1.FinishMigrationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getFinishMigrationMethod(), getCallOptions()), request); + } } private static final int METHODID_LIST_INSTANCES = 0; @@ -2047,6 +2324,8 @@ protected MemorystoreFutureStub build( private static final int METHODID_DELETE_BACKUP = 12; private static final int METHODID_EXPORT_BACKUP = 13; private static final int METHODID_BACKUP_INSTANCE = 14; + private static final int METHODID_START_MIGRATION = 15; + private static final int METHODID_FINISH_MIGRATION = 16; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -2151,6 +2430,16 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.memorystore.v1.BackupInstanceRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_START_MIGRATION: + serviceImpl.startMigration( + (com.google.cloud.memorystore.v1.StartMigrationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_FINISH_MIGRATION: + serviceImpl.finishMigration( + (com.google.cloud.memorystore.v1.FinishMigrationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; default: throw new AssertionError(); } @@ -2265,6 +2554,18 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.memorystore.v1.BackupInstanceRequest, com.google.longrunning.Operation>(service, METHODID_BACKUP_INSTANCE))) + .addMethod( + getStartMigrationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.memorystore.v1.StartMigrationRequest, + com.google.longrunning.Operation>(service, METHODID_START_MIGRATION))) + .addMethod( + getFinishMigrationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.memorystore.v1.FinishMigrationRequest, + com.google.longrunning.Operation>(service, METHODID_FINISH_MIGRATION))) .build(); } @@ -2331,6 +2632,8 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getDeleteBackupMethod()) .addMethod(getExportBackupMethod()) .addMethod(getBackupInstanceMethod()) + .addMethod(getStartMigrationMethod()) + .addMethod(getFinishMigrationMethod()) .build(); } } diff --git a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/BackupInstanceRequest.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/BackupInstanceRequest.java index be81ac125a63..d65e64fe492f 100644 --- a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/BackupInstanceRequest.java +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/BackupInstanceRequest.java @@ -24,7 +24,7 @@ * * *
                  - * Request for [BackupInstance].
                  + * Request for `BackupInstance`.
                    * 
                  * * Protobuf type {@code google.cloud.memorystore.v1.BackupInstanceRequest} @@ -450,7 +450,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
                  -   * Request for [BackupInstance].
                  +   * Request for `BackupInstance`.
                      * 
                  * * Protobuf type {@code google.cloud.memorystore.v1.BackupInstanceRequest} diff --git a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/DeleteBackupRequest.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/DeleteBackupRequest.java index d54fa81dbdc7..1bf1f1ced7fc 100644 --- a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/DeleteBackupRequest.java +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/DeleteBackupRequest.java @@ -24,7 +24,7 @@ * * *
                  - * Request for [DeleteBackup].
                  + * Request for `DeleteBackup`.
                    * 
                  * * Protobuf type {@code google.cloud.memorystore.v1.DeleteBackupRequest} @@ -360,7 +360,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
                  -   * Request for [DeleteBackup].
                  +   * Request for `DeleteBackup`.
                      * 
                  * * Protobuf type {@code google.cloud.memorystore.v1.DeleteBackupRequest} diff --git a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/DiscoveryEndpoint.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/DiscoveryEndpoint.java index cf5bea7c48bc..561d573d1702 100644 --- a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/DiscoveryEndpoint.java +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/DiscoveryEndpoint.java @@ -154,7 +154,7 @@ public int getPort() { *
                      * Output only. The network where the IP address of the discovery endpoint
                      * will be reserved, in the form of
                  -   * projects/{network_project}/global/networks/{network_id}.
                  +   * projects/{network_project}/global/networks/{network_name}.
                      * 
                  * * @@ -182,7 +182,7 @@ public java.lang.String getNetwork() { *
                      * Output only. The network where the IP address of the discovery endpoint
                      * will be reserved, in the form of
                  -   * projects/{network_project}/global/networks/{network_id}.
                  +   * projects/{network_project}/global/networks/{network_name}.
                      * 
                  * * @@ -735,7 +735,7 @@ public Builder clearPort() { *
                        * Output only. The network where the IP address of the discovery endpoint
                        * will be reserved, in the form of
                  -     * projects/{network_project}/global/networks/{network_id}.
                  +     * projects/{network_project}/global/networks/{network_name}.
                        * 
                  * * @@ -762,7 +762,7 @@ public java.lang.String getNetwork() { *
                        * Output only. The network where the IP address of the discovery endpoint
                        * will be reserved, in the form of
                  -     * projects/{network_project}/global/networks/{network_id}.
                  +     * projects/{network_project}/global/networks/{network_name}.
                        * 
                  * * @@ -789,7 +789,7 @@ public com.google.protobuf.ByteString getNetworkBytes() { *
                        * Output only. The network where the IP address of the discovery endpoint
                        * will be reserved, in the form of
                  -     * projects/{network_project}/global/networks/{network_id}.
                  +     * projects/{network_project}/global/networks/{network_name}.
                        * 
                  * * @@ -815,7 +815,7 @@ public Builder setNetwork(java.lang.String value) { *
                        * Output only. The network where the IP address of the discovery endpoint
                        * will be reserved, in the form of
                  -     * projects/{network_project}/global/networks/{network_id}.
                  +     * projects/{network_project}/global/networks/{network_name}.
                        * 
                  * * @@ -837,7 +837,7 @@ public Builder clearNetwork() { *
                        * Output only. The network where the IP address of the discovery endpoint
                        * will be reserved, in the form of
                  -     * projects/{network_project}/global/networks/{network_id}.
                  +     * projects/{network_project}/global/networks/{network_name}.
                        * 
                  * * diff --git a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/DiscoveryEndpointOrBuilder.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/DiscoveryEndpointOrBuilder.java index ff638e49921a..5d98a400a6b3 100644 --- a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/DiscoveryEndpointOrBuilder.java +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/DiscoveryEndpointOrBuilder.java @@ -71,7 +71,7 @@ public interface DiscoveryEndpointOrBuilder *
                      * Output only. The network where the IP address of the discovery endpoint
                      * will be reserved, in the form of
                  -   * projects/{network_project}/global/networks/{network_id}.
                  +   * projects/{network_project}/global/networks/{network_name}.
                      * 
                  * * @@ -88,7 +88,7 @@ public interface DiscoveryEndpointOrBuilder *
                      * Output only. The network where the IP address of the discovery endpoint
                      * will be reserved, in the form of
                  -   * projects/{network_project}/global/networks/{network_id}.
                  +   * projects/{network_project}/global/networks/{network_name}.
                      * 
                  * * diff --git a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/ExportBackupRequest.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/ExportBackupRequest.java index f5e54c16d4cc..faea7ead1022 100644 --- a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/ExportBackupRequest.java +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/ExportBackupRequest.java @@ -24,7 +24,7 @@ * * *
                  - * Request for [ExportBackup].
                  + * Request for `ExportBackup`.
                    * 
                  * * Protobuf type {@code google.cloud.memorystore.v1.ExportBackupRequest} @@ -435,7 +435,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
                  -   * Request for [ExportBackup].
                  +   * Request for `ExportBackup`.
                      * 
                  * * Protobuf type {@code google.cloud.memorystore.v1.ExportBackupRequest} diff --git a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/FinishMigrationRequest.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/FinishMigrationRequest.java new file mode 100644 index 000000000000..4d52dbd8b260 --- /dev/null +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/FinishMigrationRequest.java @@ -0,0 +1,723 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/memorystore/v1/memorystore.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.memorystore.v1; + +/** + * + * + *
                  + * Request for `FinishMigration`.
                  + * 
                  + * + * Protobuf type {@code google.cloud.memorystore.v1.FinishMigrationRequest} + */ +@com.google.protobuf.Generated +public final class FinishMigrationRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.memorystore.v1.FinishMigrationRequest) + FinishMigrationRequestOrBuilder { + 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= */ "", + "FinishMigrationRequest"); + } + + // Use FinishMigrationRequest.newBuilder() to construct. + private FinishMigrationRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FinishMigrationRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_FinishMigrationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_FinishMigrationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.memorystore.v1.FinishMigrationRequest.class, + com.google.cloud.memorystore.v1.FinishMigrationRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                  +   * Required. The resource name of the instance to finalize migration on.
                  +   * Format: projects/{project}/locations/{location}/instances/{instance}
                  +   * 
                  + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
                  +   * Required. The resource name of the instance to finalize migration on.
                  +   * Format: projects/{project}/locations/{location}/instances/{instance}
                  +   * 
                  + * + * + * 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 FORCE_FIELD_NUMBER = 2; + private boolean force_ = false; + + /** + * + * + *
                  +   * Optional. By default, the `FinishMigration` operation ensures the target
                  +   * replication offset to catch up to the source offset as of the time of the
                  +   * call. Set this field to `true` to bypass this offset verification check.
                  +   * 
                  + * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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 (force_ != false) { + output.writeBool(2, force_); + } + 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 (force_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, force_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.memorystore.v1.FinishMigrationRequest)) { + return super.equals(obj); + } + com.google.cloud.memorystore.v1.FinishMigrationRequest other = + (com.google.cloud.memorystore.v1.FinishMigrationRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (getForce() != other.getForce()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + 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) + FORCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.memorystore.v1.FinishMigrationRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1.FinishMigrationRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.memorystore.v1.FinishMigrationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1.FinishMigrationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.memorystore.v1.FinishMigrationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1.FinishMigrationRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.memorystore.v1.FinishMigrationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1.FinishMigrationRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.memorystore.v1.FinishMigrationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1.FinishMigrationRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.memorystore.v1.FinishMigrationRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1.FinishMigrationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.memorystore.v1.FinishMigrationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                  +   * Request for `FinishMigration`.
                  +   * 
                  + * + * Protobuf type {@code google.cloud.memorystore.v1.FinishMigrationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.memorystore.v1.FinishMigrationRequest) + com.google.cloud.memorystore.v1.FinishMigrationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_FinishMigrationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_FinishMigrationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.memorystore.v1.FinishMigrationRequest.class, + com.google.cloud.memorystore.v1.FinishMigrationRequest.Builder.class); + } + + // Construct using com.google.cloud.memorystore.v1.FinishMigrationRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + force_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_FinishMigrationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.memorystore.v1.FinishMigrationRequest getDefaultInstanceForType() { + return com.google.cloud.memorystore.v1.FinishMigrationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.memorystore.v1.FinishMigrationRequest build() { + com.google.cloud.memorystore.v1.FinishMigrationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.memorystore.v1.FinishMigrationRequest buildPartial() { + com.google.cloud.memorystore.v1.FinishMigrationRequest result = + new com.google.cloud.memorystore.v1.FinishMigrationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.memorystore.v1.FinishMigrationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.force_ = force_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.memorystore.v1.FinishMigrationRequest) { + return mergeFrom((com.google.cloud.memorystore.v1.FinishMigrationRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.memorystore.v1.FinishMigrationRequest other) { + if (other == com.google.cloud.memorystore.v1.FinishMigrationRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getForce() != false) { + setForce(other.getForce()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + force_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
                  +     * Required. The resource name of the instance to finalize migration on.
                  +     * Format: projects/{project}/locations/{location}/instances/{instance}
                  +     * 
                  + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                  +     * Required. The resource name of the instance to finalize migration on.
                  +     * Format: projects/{project}/locations/{location}/instances/{instance}
                  +     * 
                  + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                  +     * Required. The resource name of the instance to finalize migration on.
                  +     * Format: projects/{project}/locations/{location}/instances/{instance}
                  +     * 
                  + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                  +     * Required. The resource name of the instance to finalize migration on.
                  +     * Format: projects/{project}/locations/{location}/instances/{instance}
                  +     * 
                  + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                  +     * Required. The resource name of the instance to finalize migration on.
                  +     * Format: projects/{project}/locations/{location}/instances/{instance}
                  +     * 
                  + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean force_; + + /** + * + * + *
                  +     * Optional. By default, the `FinishMigration` operation ensures the target
                  +     * replication offset to catch up to the source offset as of the time of the
                  +     * call. Set this field to `true` to bypass this offset verification check.
                  +     * 
                  + * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + /** + * + * + *
                  +     * Optional. By default, the `FinishMigration` operation ensures the target
                  +     * replication offset to catch up to the source offset as of the time of the
                  +     * call. Set this field to `true` to bypass this offset verification check.
                  +     * 
                  + * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The force to set. + * @return This builder for chaining. + */ + public Builder setForce(boolean value) { + + force_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                  +     * Optional. By default, the `FinishMigration` operation ensures the target
                  +     * replication offset to catch up to the source offset as of the time of the
                  +     * call. Set this field to `true` to bypass this offset verification check.
                  +     * 
                  + * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearForce() { + bitField0_ = (bitField0_ & ~0x00000002); + force_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.memorystore.v1.FinishMigrationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.memorystore.v1.FinishMigrationRequest) + private static final com.google.cloud.memorystore.v1.FinishMigrationRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.memorystore.v1.FinishMigrationRequest(); + } + + public static com.google.cloud.memorystore.v1.FinishMigrationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FinishMigrationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.memorystore.v1.FinishMigrationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/FinishMigrationRequestOrBuilder.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/FinishMigrationRequestOrBuilder.java new file mode 100644 index 000000000000..e10b97deee14 --- /dev/null +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/FinishMigrationRequestOrBuilder.java @@ -0,0 +1,75 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/memorystore/v1/memorystore.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.memorystore.v1; + +@com.google.protobuf.Generated +public interface FinishMigrationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.memorystore.v1.FinishMigrationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                  +   * Required. The resource name of the instance to finalize migration on.
                  +   * Format: projects/{project}/locations/{location}/instances/{instance}
                  +   * 
                  + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                  +   * Required. The resource name of the instance to finalize migration on.
                  +   * Format: projects/{project}/locations/{location}/instances/{instance}
                  +   * 
                  + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                  +   * Optional. By default, the `FinishMigration` operation ensures the target
                  +   * replication offset to catch up to the source offset as of the time of the
                  +   * call. Set this field to `true` to bypass this offset verification check.
                  +   * 
                  + * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + boolean getForce(); +} diff --git a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/GetBackupCollectionRequest.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/GetBackupCollectionRequest.java index 9a59571b215e..90c0c5f0d9a0 100644 --- a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/GetBackupCollectionRequest.java +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/GetBackupCollectionRequest.java @@ -24,7 +24,7 @@ * * *
                  - * Request for [GetBackupCollection].
                  + * Request for `GetBackupCollection`.
                    * 
                  * * Protobuf type {@code google.cloud.memorystore.v1.GetBackupCollectionRequest} @@ -296,7 +296,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
                  -   * Request for [GetBackupCollection].
                  +   * Request for `GetBackupCollection`.
                      * 
                  * * Protobuf type {@code google.cloud.memorystore.v1.GetBackupCollectionRequest} diff --git a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/GetBackupRequest.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/GetBackupRequest.java index 3a1369657f2c..19535bc3c597 100644 --- a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/GetBackupRequest.java +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/GetBackupRequest.java @@ -24,7 +24,7 @@ * * *
                  - * Request for [GetBackup].
                  + * Request for `GetBackup`.
                    * 
                  * * Protobuf type {@code google.cloud.memorystore.v1.GetBackupRequest} @@ -293,7 +293,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
                  -   * Request for [GetBackup].
                  +   * Request for `GetBackup`.
                      * 
                  * * Protobuf type {@code google.cloud.memorystore.v1.GetBackupRequest} diff --git a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/GetCertificateAuthorityRequest.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/GetCertificateAuthorityRequest.java index b26e63c4ed5c..28b395002ad4 100644 --- a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/GetCertificateAuthorityRequest.java +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/GetCertificateAuthorityRequest.java @@ -24,7 +24,7 @@ * * *
                  - * Request message for [GetCertificateAuthority][].
                  + * Request message for `GetCertificateAuthority`.
                    * 
                  * * Protobuf type {@code google.cloud.memorystore.v1.GetCertificateAuthorityRequest} @@ -296,7 +296,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
                  -   * Request message for [GetCertificateAuthority][].
                  +   * Request message for `GetCertificateAuthority`.
                      * 
                  * * Protobuf type {@code google.cloud.memorystore.v1.GetCertificateAuthorityRequest} diff --git a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/GetSharedRegionalCertificateAuthorityRequest.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/GetSharedRegionalCertificateAuthorityRequest.java index ed3846b04da4..9e06f11b2841 100644 --- a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/GetSharedRegionalCertificateAuthorityRequest.java +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/GetSharedRegionalCertificateAuthorityRequest.java @@ -24,8 +24,7 @@ * * *
                  - * Request for
                  - * [GetSharedRegionalCertificateAuthority][google.cloud.memorystore.v1.Memorystore.GetSharedRegionalCertificateAuthority].
                  + * Request for `GetSharedRegionalCertificateAuthority`.
                    * 
                  * * Protobuf type {@code google.cloud.memorystore.v1.GetSharedRegionalCertificateAuthorityRequest} @@ -307,8 +306,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
                  -   * Request for
                  -   * [GetSharedRegionalCertificateAuthority][google.cloud.memorystore.v1.Memorystore.GetSharedRegionalCertificateAuthority].
                  +   * Request for `GetSharedRegionalCertificateAuthority`.
                      * 
                  * * Protobuf type {@code google.cloud.memorystore.v1.GetSharedRegionalCertificateAuthorityRequest} diff --git a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/Instance.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/Instance.java index ccbc5aceae71..4f88def7f58e 100644 --- a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/Instance.java +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/Instance.java @@ -162,6 +162,16 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * DELETING = 4; */ DELETING(4), + /** + * + * + *
                  +     * Instance is being migrated.
                  +     * 
                  + * + * MIGRATING = 6; + */ + MIGRATING(6), UNRECOGNIZED(-1), ; @@ -230,6 +240,17 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DELETING_VALUE = 4; + /** + * + * + *
                  +     * Instance is being migrated.
                  +     * 
                  + * + * MIGRATING = 6; + */ + public static final int MIGRATING_VALUE = 6; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -264,6 +285,8 @@ public static State forNumber(int value) { return UPDATING; case 4: return DELETING; + case 6: + return MIGRATING; default: return null; } @@ -767,7 +790,7 @@ public enum NodeType implements com.google.protobuf.ProtocolMessageEnum { * * *
                  -     * High memory 2x large.
                  +     * High memory 2xlarge.
                        * 
                  * * HIGHMEM_2XLARGE = 9; @@ -899,7 +922,7 @@ public enum NodeType implements com.google.protobuf.ProtocolMessageEnum { * * *
                  -     * High memory 2x large.
                  +     * High memory 2xlarge.
                        * 
                  * * HIGHMEM_2XLARGE = 9; @@ -8909,11 +8932,11 @@ public com.google.cloud.memorystore.v1.Instance.InstanceEndpointOrBuilder getEnd * * *
                  -   * Optional. The mode config for the instance.
                  +   * Optional. Immutable. The mode config for the instance.
                      * 
                  * * - * .google.cloud.memorystore.v1.Instance.Mode mode = 26 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.memorystore.v1.Instance.Mode mode = 26 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * * * @return The enum numeric value on the wire for mode. @@ -8927,11 +8950,11 @@ public int getModeValue() { * * *
                  -   * Optional. The mode config for the instance.
                  +   * Optional. Immutable. The mode config for the instance.
                      * 
                  * * - * .google.cloud.memorystore.v1.Instance.Mode mode = 26 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.memorystore.v1.Instance.Mode mode = 26 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * * * @return The mode. @@ -8997,7 +9020,7 @@ public boolean getSimulateMaintenanceEvent() { *
                  * * @deprecated google.cloud.memorystore.v1.Instance.ondemand_maintenance is deprecated. See - * google/cloud/memorystore/v1/memorystore.proto;l=604 + * google/cloud/memorystore/v1/memorystore.proto;l=655 * @return Whether the ondemandMaintenance field is set. */ @java.lang.Override @@ -9018,7 +9041,7 @@ public boolean hasOndemandMaintenance() { *
                  * * @deprecated google.cloud.memorystore.v1.Instance.ondemand_maintenance is deprecated. See - * google/cloud/memorystore/v1/memorystore.proto;l=604 + * google/cloud/memorystore/v1/memorystore.proto;l=655 * @return The ondemandMaintenance. */ @java.lang.Override @@ -9861,7 +9884,7 @@ public com.google.protobuf.ByteString getAvailableMaintenanceVersionsBytes(int i *
                  * * @deprecated google.cloud.memorystore.v1.Instance.allow_fewer_zones_deployment is deprecated. - * See google/cloud/memorystore/v1/memorystore.proto;l=685 + * See google/cloud/memorystore/v1/memorystore.proto;l=736 * @return The allowFewerZonesDeployment. */ @java.lang.Override @@ -10051,6 +10074,65 @@ public boolean getRotateServerCertificate() { return rotateServerCertificate_; } + public static final int MIGRATION_CONFIG_FIELD_NUMBER = 59; + private com.google.cloud.memorystore.v1.MigrationConfig migrationConfig_; + + /** + * + * + *
                  +   * Output only. Migration config for the instance.
                  +   * 
                  + * + * + * .google.cloud.memorystore.v1.MigrationConfig migration_config = 59 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the migrationConfig field is set. + */ + @java.lang.Override + public boolean hasMigrationConfig() { + return ((bitField0_ & 0x02000000) != 0); + } + + /** + * + * + *
                  +   * Output only. Migration config for the instance.
                  +   * 
                  + * + * + * .google.cloud.memorystore.v1.MigrationConfig migration_config = 59 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The migrationConfig. + */ + @java.lang.Override + public com.google.cloud.memorystore.v1.MigrationConfig getMigrationConfig() { + return migrationConfig_ == null + ? com.google.cloud.memorystore.v1.MigrationConfig.getDefaultInstance() + : migrationConfig_; + } + + /** + * + * + *
                  +   * Output only. Migration config for the instance.
                  +   * 
                  + * + * + * .google.cloud.memorystore.v1.MigrationConfig migration_config = 59 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.memorystore.v1.MigrationConfigOrBuilder getMigrationConfigOrBuilder() { + return migrationConfig_ == null + ? com.google.cloud.memorystore.v1.MigrationConfig.getDefaultInstance() + : migrationConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -10204,6 +10286,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x01000000) != 0)) { output.writeBool(58, rotateServerCertificate_); } + if (((bitField0_ & 0x02000000) != 0)) { + output.writeMessage(59, getMigrationConfig()); + } getUnknownFields().writeTo(output); } @@ -10386,6 +10471,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x01000000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(58, rotateServerCertificate_); } + if (((bitField0_ & 0x02000000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(59, getMigrationConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -10524,6 +10612,10 @@ public boolean equals(final java.lang.Object obj) { if (hasRotateServerCertificate()) { if (getRotateServerCertificate() != other.getRotateServerCertificate()) return false; } + if (hasMigrationConfig() != other.hasMigrationConfig()) return false; + if (hasMigrationConfig()) { + if (!getMigrationConfig().equals(other.getMigrationConfig())) return false; + } if (!getImportSourcesCase().equals(other.getImportSourcesCase())) return false; switch (importSourcesCase_) { case 23: @@ -10697,6 +10789,10 @@ public int hashCode() { hash = (37 * hash) + ROTATE_SERVER_CERTIFICATE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRotateServerCertificate()); } + if (hasMigrationConfig()) { + hash = (37 * hash) + MIGRATION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getMigrationConfig().hashCode(); + } switch (importSourcesCase_) { case 23: hash = (37 * hash) + GCS_SOURCE_FIELD_NUMBER; @@ -10891,6 +10987,7 @@ private void maybeForceBuilderInitialization() { internalGetCrossInstanceReplicationConfigFieldBuilder(); internalGetEncryptionInfoFieldBuilder(); internalGetAutomatedBackupConfigFieldBuilder(); + internalGetMigrationConfigFieldBuilder(); } } @@ -11015,6 +11112,11 @@ public Builder clear() { serverCaMode_ = 0; serverCaPool_ = ""; rotateServerCertificate_ = false; + migrationConfig_ = null; + if (migrationConfigBuilder_ != null) { + migrationConfigBuilder_.dispose(); + migrationConfigBuilder_ = null; + } importSourcesCase_ = 0; importSources_ = null; return this; @@ -11265,6 +11367,11 @@ private void buildPartial1(com.google.cloud.memorystore.v1.Instance result) { result.rotateServerCertificate_ = rotateServerCertificate_; to_bitField0_ |= 0x01000000; } + if (((from_bitField1_ & 0x00001000) != 0)) { + result.migrationConfig_ = + migrationConfigBuilder_ == null ? migrationConfig_ : migrationConfigBuilder_.build(); + to_bitField0_ |= 0x02000000; + } result.bitField0_ |= to_bitField0_; } @@ -11534,6 +11641,9 @@ public Builder mergeFrom(com.google.cloud.memorystore.v1.Instance other) { if (other.hasRotateServerCertificate()) { setRotateServerCertificate(other.getRotateServerCertificate()); } + if (other.hasMigrationConfig()) { + mergeMigrationConfig(other.getMigrationConfig()); + } switch (other.getImportSourcesCase()) { case GCS_SOURCE: { @@ -11900,6 +12010,13 @@ public Builder mergeFrom( bitField1_ |= 0x00000800; break; } // case 464 + case 474: + { + input.readMessage( + internalGetMigrationConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField1_ |= 0x00001000; + break; + } // case 474 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -16913,11 +17030,11 @@ public com.google.cloud.memorystore.v1.Instance.InstanceEndpoint.Builder addEndp * * *
                  -     * Optional. The mode config for the instance.
                  +     * Optional. Immutable. The mode config for the instance.
                        * 
                  * * - * .google.cloud.memorystore.v1.Instance.Mode mode = 26 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.memorystore.v1.Instance.Mode mode = 26 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * * * @return The enum numeric value on the wire for mode. @@ -16931,11 +17048,11 @@ public int getModeValue() { * * *
                  -     * Optional. The mode config for the instance.
                  +     * Optional. Immutable. The mode config for the instance.
                        * 
                  * * - * .google.cloud.memorystore.v1.Instance.Mode mode = 26 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.memorystore.v1.Instance.Mode mode = 26 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * * * @param value The enum numeric value on the wire for mode to set. @@ -16952,11 +17069,11 @@ public Builder setModeValue(int value) { * * *
                  -     * Optional. The mode config for the instance.
                  +     * Optional. Immutable. The mode config for the instance.
                        * 
                  * * - * .google.cloud.memorystore.v1.Instance.Mode mode = 26 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.memorystore.v1.Instance.Mode mode = 26 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * * * @return The mode. @@ -16972,11 +17089,11 @@ public com.google.cloud.memorystore.v1.Instance.Mode getMode() { * * *
                  -     * Optional. The mode config for the instance.
                  +     * Optional. Immutable. The mode config for the instance.
                        * 
                  * * - * .google.cloud.memorystore.v1.Instance.Mode mode = 26 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.memorystore.v1.Instance.Mode mode = 26 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * * * @param value The mode to set. @@ -16996,11 +17113,11 @@ public Builder setMode(com.google.cloud.memorystore.v1.Instance.Mode value) { * * *
                  -     * Optional. The mode config for the instance.
                  +     * Optional. Immutable. The mode config for the instance.
                        * 
                  * * - * .google.cloud.memorystore.v1.Instance.Mode mode = 26 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.memorystore.v1.Instance.Mode mode = 26 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * * * @return This builder for chaining. @@ -17106,7 +17223,7 @@ public Builder clearSimulateMaintenanceEvent() { *
                  * * @deprecated google.cloud.memorystore.v1.Instance.ondemand_maintenance is deprecated. See - * google/cloud/memorystore/v1/memorystore.proto;l=604 + * google/cloud/memorystore/v1/memorystore.proto;l=655 * @return Whether the ondemandMaintenance field is set. */ @java.lang.Override @@ -17127,7 +17244,7 @@ public boolean hasOndemandMaintenance() { *
                  * * @deprecated google.cloud.memorystore.v1.Instance.ondemand_maintenance is deprecated. See - * google/cloud/memorystore/v1/memorystore.proto;l=604 + * google/cloud/memorystore/v1/memorystore.proto;l=655 * @return The ondemandMaintenance. */ @java.lang.Override @@ -17148,7 +17265,7 @@ public boolean getOndemandMaintenance() { *
                  * * @deprecated google.cloud.memorystore.v1.Instance.ondemand_maintenance is deprecated. See - * google/cloud/memorystore/v1/memorystore.proto;l=604 + * google/cloud/memorystore/v1/memorystore.proto;l=655 * @param value The ondemandMaintenance to set. * @return This builder for chaining. */ @@ -17173,7 +17290,7 @@ public Builder setOndemandMaintenance(boolean value) { *
                  * * @deprecated google.cloud.memorystore.v1.Instance.ondemand_maintenance is deprecated. See - * google/cloud/memorystore/v1/memorystore.proto;l=604 + * google/cloud/memorystore/v1/memorystore.proto;l=655 * @return This builder for chaining. */ @java.lang.Deprecated @@ -19335,7 +19452,7 @@ public Builder addAvailableMaintenanceVersionsBytes(com.google.protobuf.ByteStri *
                  * * @deprecated google.cloud.memorystore.v1.Instance.allow_fewer_zones_deployment is deprecated. - * See google/cloud/memorystore/v1/memorystore.proto;l=685 + * See google/cloud/memorystore/v1/memorystore.proto;l=736 * @return The allowFewerZonesDeployment. */ @java.lang.Override @@ -19356,7 +19473,7 @@ public boolean getAllowFewerZonesDeployment() { *
                  * * @deprecated google.cloud.memorystore.v1.Instance.allow_fewer_zones_deployment is deprecated. - * See google/cloud/memorystore/v1/memorystore.proto;l=685 + * See google/cloud/memorystore/v1/memorystore.proto;l=736 * @param value The allowFewerZonesDeployment to set. * @return This builder for chaining. */ @@ -19381,7 +19498,7 @@ public Builder setAllowFewerZonesDeployment(boolean value) { * * * @deprecated google.cloud.memorystore.v1.Instance.allow_fewer_zones_deployment is deprecated. - * See google/cloud/memorystore/v1/memorystore.proto;l=685 + * See google/cloud/memorystore/v1/memorystore.proto;l=736 * @return This builder for chaining. */ @java.lang.Deprecated @@ -19747,6 +19864,220 @@ public Builder clearRotateServerCertificate() { return this; } + private com.google.cloud.memorystore.v1.MigrationConfig migrationConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.memorystore.v1.MigrationConfig, + com.google.cloud.memorystore.v1.MigrationConfig.Builder, + com.google.cloud.memorystore.v1.MigrationConfigOrBuilder> + migrationConfigBuilder_; + + /** + * + * + *
                  +     * Output only. Migration config for the instance.
                  +     * 
                  + * + * + * .google.cloud.memorystore.v1.MigrationConfig migration_config = 59 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the migrationConfig field is set. + */ + public boolean hasMigrationConfig() { + return ((bitField1_ & 0x00001000) != 0); + } + + /** + * + * + *
                  +     * Output only. Migration config for the instance.
                  +     * 
                  + * + * + * .google.cloud.memorystore.v1.MigrationConfig migration_config = 59 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The migrationConfig. + */ + public com.google.cloud.memorystore.v1.MigrationConfig getMigrationConfig() { + if (migrationConfigBuilder_ == null) { + return migrationConfig_ == null + ? com.google.cloud.memorystore.v1.MigrationConfig.getDefaultInstance() + : migrationConfig_; + } else { + return migrationConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
                  +     * Output only. Migration config for the instance.
                  +     * 
                  + * + * + * .google.cloud.memorystore.v1.MigrationConfig migration_config = 59 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setMigrationConfig(com.google.cloud.memorystore.v1.MigrationConfig value) { + if (migrationConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + migrationConfig_ = value; + } else { + migrationConfigBuilder_.setMessage(value); + } + bitField1_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
                  +     * Output only. Migration config for the instance.
                  +     * 
                  + * + * + * .google.cloud.memorystore.v1.MigrationConfig migration_config = 59 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setMigrationConfig( + com.google.cloud.memorystore.v1.MigrationConfig.Builder builderForValue) { + if (migrationConfigBuilder_ == null) { + migrationConfig_ = builderForValue.build(); + } else { + migrationConfigBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
                  +     * Output only. Migration config for the instance.
                  +     * 
                  + * + * + * .google.cloud.memorystore.v1.MigrationConfig migration_config = 59 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeMigrationConfig(com.google.cloud.memorystore.v1.MigrationConfig value) { + if (migrationConfigBuilder_ == null) { + if (((bitField1_ & 0x00001000) != 0) + && migrationConfig_ != null + && migrationConfig_ + != com.google.cloud.memorystore.v1.MigrationConfig.getDefaultInstance()) { + getMigrationConfigBuilder().mergeFrom(value); + } else { + migrationConfig_ = value; + } + } else { + migrationConfigBuilder_.mergeFrom(value); + } + if (migrationConfig_ != null) { + bitField1_ |= 0x00001000; + onChanged(); + } + return this; + } + + /** + * + * + *
                  +     * Output only. Migration config for the instance.
                  +     * 
                  + * + * + * .google.cloud.memorystore.v1.MigrationConfig migration_config = 59 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearMigrationConfig() { + bitField1_ = (bitField1_ & ~0x00001000); + migrationConfig_ = null; + if (migrationConfigBuilder_ != null) { + migrationConfigBuilder_.dispose(); + migrationConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                  +     * Output only. Migration config for the instance.
                  +     * 
                  + * + * + * .google.cloud.memorystore.v1.MigrationConfig migration_config = 59 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.memorystore.v1.MigrationConfig.Builder getMigrationConfigBuilder() { + bitField1_ |= 0x00001000; + onChanged(); + return internalGetMigrationConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
                  +     * Output only. Migration config for the instance.
                  +     * 
                  + * + * + * .google.cloud.memorystore.v1.MigrationConfig migration_config = 59 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.memorystore.v1.MigrationConfigOrBuilder getMigrationConfigOrBuilder() { + if (migrationConfigBuilder_ != null) { + return migrationConfigBuilder_.getMessageOrBuilder(); + } else { + return migrationConfig_ == null + ? com.google.cloud.memorystore.v1.MigrationConfig.getDefaultInstance() + : migrationConfig_; + } + } + + /** + * + * + *
                  +     * Output only. Migration config for the instance.
                  +     * 
                  + * + * + * .google.cloud.memorystore.v1.MigrationConfig migration_config = 59 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.memorystore.v1.MigrationConfig, + com.google.cloud.memorystore.v1.MigrationConfig.Builder, + com.google.cloud.memorystore.v1.MigrationConfigOrBuilder> + internalGetMigrationConfigFieldBuilder() { + if (migrationConfigBuilder_ == null) { + migrationConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.memorystore.v1.MigrationConfig, + com.google.cloud.memorystore.v1.MigrationConfig.Builder, + com.google.cloud.memorystore.v1.MigrationConfigOrBuilder>( + getMigrationConfig(), getParentForChildren(), isClean()); + migrationConfig_ = null; + } + return migrationConfigBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.memorystore.v1.Instance) } diff --git a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/InstanceOrBuilder.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/InstanceOrBuilder.java index 014b9350674a..15cf04e272f9 100644 --- a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/InstanceOrBuilder.java +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/InstanceOrBuilder.java @@ -1097,11 +1097,11 @@ com.google.cloud.memorystore.v1.Instance.InstanceEndpointOrBuilder getEndpointsO * * *
                  -   * Optional. The mode config for the instance.
                  +   * Optional. Immutable. The mode config for the instance.
                      * 
                  * * - * .google.cloud.memorystore.v1.Instance.Mode mode = 26 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.memorystore.v1.Instance.Mode mode = 26 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * * * @return The enum numeric value on the wire for mode. @@ -1112,11 +1112,11 @@ com.google.cloud.memorystore.v1.Instance.InstanceEndpointOrBuilder getEndpointsO * * *
                  -   * Optional. The mode config for the instance.
                  +   * Optional. Immutable. The mode config for the instance.
                      * 
                  * * - * .google.cloud.memorystore.v1.Instance.Mode mode = 26 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.memorystore.v1.Instance.Mode mode = 26 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * * * @return The mode. @@ -1165,7 +1165,7 @@ com.google.cloud.memorystore.v1.Instance.InstanceEndpointOrBuilder getEndpointsO * * * @deprecated google.cloud.memorystore.v1.Instance.ondemand_maintenance is deprecated. See - * google/cloud/memorystore/v1/memorystore.proto;l=604 + * google/cloud/memorystore/v1/memorystore.proto;l=655 * @return Whether the ondemandMaintenance field is set. */ @java.lang.Deprecated @@ -1183,7 +1183,7 @@ com.google.cloud.memorystore.v1.Instance.InstanceEndpointOrBuilder getEndpointsO * * * @deprecated google.cloud.memorystore.v1.Instance.ondemand_maintenance is deprecated. See - * google/cloud/memorystore/v1/memorystore.proto;l=604 + * google/cloud/memorystore/v1/memorystore.proto;l=655 * @return The ondemandMaintenance. */ @java.lang.Deprecated @@ -1776,7 +1776,7 @@ com.google.cloud.memorystore.v1.Instance.InstanceEndpointOrBuilder getEndpointsO * * * @deprecated google.cloud.memorystore.v1.Instance.allow_fewer_zones_deployment is deprecated. - * See google/cloud/memorystore/v1/memorystore.proto;l=685 + * See google/cloud/memorystore/v1/memorystore.proto;l=736 * @return The allowFewerZonesDeployment. */ @java.lang.Deprecated @@ -1908,5 +1908,48 @@ com.google.cloud.memorystore.v1.Instance.InstanceEndpointOrBuilder getEndpointsO */ boolean getRotateServerCertificate(); + /** + * + * + *
                  +   * Output only. Migration config for the instance.
                  +   * 
                  + * + * + * .google.cloud.memorystore.v1.MigrationConfig migration_config = 59 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the migrationConfig field is set. + */ + boolean hasMigrationConfig(); + + /** + * + * + *
                  +   * Output only. Migration config for the instance.
                  +   * 
                  + * + * + * .google.cloud.memorystore.v1.MigrationConfig migration_config = 59 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The migrationConfig. + */ + com.google.cloud.memorystore.v1.MigrationConfig getMigrationConfig(); + + /** + * + * + *
                  +   * Output only. Migration config for the instance.
                  +   * 
                  + * + * + * .google.cloud.memorystore.v1.MigrationConfig migration_config = 59 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.memorystore.v1.MigrationConfigOrBuilder getMigrationConfigOrBuilder(); + com.google.cloud.memorystore.v1.Instance.ImportSourcesCase getImportSourcesCase(); } diff --git a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/ListBackupCollectionsRequest.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/ListBackupCollectionsRequest.java index 32e1c3be6aee..0604104764cc 100644 --- a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/ListBackupCollectionsRequest.java +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/ListBackupCollectionsRequest.java @@ -24,7 +24,7 @@ * * *
                  - * Request for [ListBackupCollections]
                  + * Request for `ListBackupCollections`.
                    * 
                  * * Protobuf type {@code google.cloud.memorystore.v1.ListBackupCollectionsRequest} @@ -146,7 +146,7 @@ public com.google.protobuf.ByteString getParentBytes() { * If not specified, a default value of 1000 will be used by the service. * Regardless of the page_size value, the response may include a partial list * and a caller should only rely on response's - * [`next_page_token`][google.cloud.memorystore.v1.ListBackupCollectionsResponse.next_page_token] + * `next_page_token` * to determine if there are more clusters left to be queried. *
                  * @@ -169,7 +169,7 @@ public int getPageSize() { * *
                      * Optional. The `next_page_token` value returned from a previous
                  -   * [ListBackupCollections] request, if any.
                  +   * `ListBackupCollections` request, if any.
                      * 
                  * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -194,7 +194,7 @@ public java.lang.String getPageToken() { * *
                      * Optional. The `next_page_token` value returned from a previous
                  -   * [ListBackupCollections] request, if any.
                  +   * `ListBackupCollections` request, if any.
                      * 
                  * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -397,7 +397,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
                  -   * Request for [ListBackupCollections]
                  +   * Request for `ListBackupCollections`.
                      * 
                  * * Protobuf type {@code google.cloud.memorystore.v1.ListBackupCollectionsRequest} @@ -721,7 +721,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * If not specified, a default value of 1000 will be used by the service. * Regardless of the page_size value, the response may include a partial list * and a caller should only rely on response's - * [`next_page_token`][google.cloud.memorystore.v1.ListBackupCollectionsResponse.next_page_token] + * `next_page_token` * to determine if there are more clusters left to be queried. *
                  * @@ -743,7 +743,7 @@ public int getPageSize() { * If not specified, a default value of 1000 will be used by the service. * Regardless of the page_size value, the response may include a partial list * and a caller should only rely on response's - * [`next_page_token`][google.cloud.memorystore.v1.ListBackupCollectionsResponse.next_page_token] + * `next_page_token` * to determine if there are more clusters left to be queried. *
                  * @@ -769,7 +769,7 @@ public Builder setPageSize(int value) { * If not specified, a default value of 1000 will be used by the service. * Regardless of the page_size value, the response may include a partial list * and a caller should only rely on response's - * [`next_page_token`][google.cloud.memorystore.v1.ListBackupCollectionsResponse.next_page_token] + * `next_page_token` * to determine if there are more clusters left to be queried. * * @@ -791,7 +791,7 @@ public Builder clearPageSize() { * *
                        * Optional. The `next_page_token` value returned from a previous
                  -     * [ListBackupCollections] request, if any.
                  +     * `ListBackupCollections` request, if any.
                        * 
                  * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -815,7 +815,7 @@ public java.lang.String getPageToken() { * *
                        * Optional. The `next_page_token` value returned from a previous
                  -     * [ListBackupCollections] request, if any.
                  +     * `ListBackupCollections` request, if any.
                        * 
                  * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -839,7 +839,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * *
                        * Optional. The `next_page_token` value returned from a previous
                  -     * [ListBackupCollections] request, if any.
                  +     * `ListBackupCollections` request, if any.
                        * 
                  * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -862,7 +862,7 @@ public Builder setPageToken(java.lang.String value) { * *
                        * Optional. The `next_page_token` value returned from a previous
                  -     * [ListBackupCollections] request, if any.
                  +     * `ListBackupCollections` request, if any.
                        * 
                  * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -881,7 +881,7 @@ public Builder clearPageToken() { * *
                        * Optional. The `next_page_token` value returned from a previous
                  -     * [ListBackupCollections] request, if any.
                  +     * `ListBackupCollections` request, if any.
                        * 
                  * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/ListBackupCollectionsRequestOrBuilder.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/ListBackupCollectionsRequestOrBuilder.java index 7bf324aa5a4e..496f881a176c 100644 --- a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/ListBackupCollectionsRequestOrBuilder.java +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/ListBackupCollectionsRequestOrBuilder.java @@ -71,7 +71,7 @@ public interface ListBackupCollectionsRequestOrBuilder * If not specified, a default value of 1000 will be used by the service. * Regardless of the page_size value, the response may include a partial list * and a caller should only rely on response's - * [`next_page_token`][google.cloud.memorystore.v1.ListBackupCollectionsResponse.next_page_token] + * `next_page_token` * to determine if there are more clusters left to be queried. * * @@ -86,7 +86,7 @@ public interface ListBackupCollectionsRequestOrBuilder * *
                      * Optional. The `next_page_token` value returned from a previous
                  -   * [ListBackupCollections] request, if any.
                  +   * `ListBackupCollections` request, if any.
                      * 
                  * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -100,7 +100,7 @@ public interface ListBackupCollectionsRequestOrBuilder * *
                      * Optional. The `next_page_token` value returned from a previous
                  -   * [ListBackupCollections] request, if any.
                  +   * `ListBackupCollections` request, if any.
                      * 
                  * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/ListBackupCollectionsResponse.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/ListBackupCollectionsResponse.java index d37a4ca77a73..37ca58693138 100644 --- a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/ListBackupCollectionsResponse.java +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/ListBackupCollectionsResponse.java @@ -24,7 +24,7 @@ * * *
                  - * Response for [ListBackupCollections].
                  + * Response for `ListBackupCollections`.
                    * 
                  * * Protobuf type {@code google.cloud.memorystore.v1.ListBackupCollectionsResponse} @@ -511,7 +511,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
                  -   * Response for [ListBackupCollections].
                  +   * Response for `ListBackupCollections`.
                      * 
                  * * Protobuf type {@code google.cloud.memorystore.v1.ListBackupCollectionsResponse} diff --git a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/ListBackupsRequest.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/ListBackupsRequest.java index 24dce4b193b3..e5a63dd9ee8f 100644 --- a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/ListBackupsRequest.java +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/ListBackupsRequest.java @@ -24,7 +24,7 @@ * * *
                  - * Request for [ListBackups].
                  + * Request for `ListBackups`.
                    * 
                  * * Protobuf type {@code google.cloud.memorystore.v1.ListBackupsRequest} @@ -142,7 +142,7 @@ public com.google.protobuf.ByteString getParentBytes() { * If not specified, a default value of 1000 will be used by the service. * Regardless of the page_size value, the response may include a partial list * and a caller should only rely on response's - * [`next_page_token`][google.cloud.memorystore.v1.ListBackupsResponse.next_page_token] + * `next_page_token` * to determine if there are more clusters left to be queried. * * @@ -165,7 +165,7 @@ public int getPageSize() { * *
                      * Optional. The `next_page_token` value returned from a previous
                  -   * [ListBackupCollections] request, if any.
                  +   * `ListBackupCollections` request, if any.
                      * 
                  * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -190,7 +190,7 @@ public java.lang.String getPageToken() { * *
                      * Optional. The `next_page_token` value returned from a previous
                  -   * [ListBackupCollections] request, if any.
                  +   * `ListBackupCollections` request, if any.
                      * 
                  * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -392,7 +392,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
                  -   * Request for [ListBackups].
                  +   * Request for `ListBackups`.
                      * 
                  * * Protobuf type {@code google.cloud.memorystore.v1.ListBackupsRequest} @@ -703,7 +703,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * If not specified, a default value of 1000 will be used by the service. * Regardless of the page_size value, the response may include a partial list * and a caller should only rely on response's - * [`next_page_token`][google.cloud.memorystore.v1.ListBackupsResponse.next_page_token] + * `next_page_token` * to determine if there are more clusters left to be queried. * * @@ -725,7 +725,7 @@ public int getPageSize() { * If not specified, a default value of 1000 will be used by the service. * Regardless of the page_size value, the response may include a partial list * and a caller should only rely on response's - * [`next_page_token`][google.cloud.memorystore.v1.ListBackupsResponse.next_page_token] + * `next_page_token` * to determine if there are more clusters left to be queried. * * @@ -751,7 +751,7 @@ public Builder setPageSize(int value) { * If not specified, a default value of 1000 will be used by the service. * Regardless of the page_size value, the response may include a partial list * and a caller should only rely on response's - * [`next_page_token`][google.cloud.memorystore.v1.ListBackupsResponse.next_page_token] + * `next_page_token` * to determine if there are more clusters left to be queried. * * @@ -773,7 +773,7 @@ public Builder clearPageSize() { * *
                        * Optional. The `next_page_token` value returned from a previous
                  -     * [ListBackupCollections] request, if any.
                  +     * `ListBackupCollections` request, if any.
                        * 
                  * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -797,7 +797,7 @@ public java.lang.String getPageToken() { * *
                        * Optional. The `next_page_token` value returned from a previous
                  -     * [ListBackupCollections] request, if any.
                  +     * `ListBackupCollections` request, if any.
                        * 
                  * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -821,7 +821,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * *
                        * Optional. The `next_page_token` value returned from a previous
                  -     * [ListBackupCollections] request, if any.
                  +     * `ListBackupCollections` request, if any.
                        * 
                  * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -844,7 +844,7 @@ public Builder setPageToken(java.lang.String value) { * *
                        * Optional. The `next_page_token` value returned from a previous
                  -     * [ListBackupCollections] request, if any.
                  +     * `ListBackupCollections` request, if any.
                        * 
                  * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -863,7 +863,7 @@ public Builder clearPageToken() { * *
                        * Optional. The `next_page_token` value returned from a previous
                  -     * [ListBackupCollections] request, if any.
                  +     * `ListBackupCollections` request, if any.
                        * 
                  * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/ListBackupsRequestOrBuilder.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/ListBackupsRequestOrBuilder.java index 72c348cb5b23..02b4183ff4fa 100644 --- a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/ListBackupsRequestOrBuilder.java +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/ListBackupsRequestOrBuilder.java @@ -67,7 +67,7 @@ public interface ListBackupsRequestOrBuilder * If not specified, a default value of 1000 will be used by the service. * Regardless of the page_size value, the response may include a partial list * and a caller should only rely on response's - * [`next_page_token`][google.cloud.memorystore.v1.ListBackupsResponse.next_page_token] + * `next_page_token` * to determine if there are more clusters left to be queried. * * @@ -82,7 +82,7 @@ public interface ListBackupsRequestOrBuilder * *
                      * Optional. The `next_page_token` value returned from a previous
                  -   * [ListBackupCollections] request, if any.
                  +   * `ListBackupCollections` request, if any.
                      * 
                  * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -96,7 +96,7 @@ public interface ListBackupsRequestOrBuilder * *
                      * Optional. The `next_page_token` value returned from a previous
                  -   * [ListBackupCollections] request, if any.
                  +   * `ListBackupCollections` request, if any.
                      * 
                  * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/ListBackupsResponse.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/ListBackupsResponse.java index 3e646d207b5a..90432d24da26 100644 --- a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/ListBackupsResponse.java +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/ListBackupsResponse.java @@ -24,7 +24,7 @@ * * *
                  - * Response for [ListBackups].
                  + * Response for `ListBackups`.
                    * 
                  * * Protobuf type {@code google.cloud.memorystore.v1.ListBackupsResponse} @@ -462,7 +462,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
                  -   * Response for [ListBackups].
                  +   * Response for `ListBackups`.
                      * 
                  * * Protobuf type {@code google.cloud.memorystore.v1.ListBackupsResponse} diff --git a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/ListInstancesResponse.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/ListInstancesResponse.java index 77fc3f959631..cf5d843fa517 100644 --- a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/ListInstancesResponse.java +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/ListInstancesResponse.java @@ -24,7 +24,7 @@ * * *
                  - * Response message for [ListInstances][].
                  + * Response message for `ListInstances`.
                    * 
                  * * Protobuf type {@code google.cloud.memorystore.v1.ListInstancesResponse} @@ -473,7 +473,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
                  -   * Response message for [ListInstances][].
                  +   * Response message for `ListInstances`.
                      * 
                  * * Protobuf type {@code google.cloud.memorystore.v1.ListInstancesResponse} diff --git a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/MigrationConfig.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/MigrationConfig.java new file mode 100644 index 000000000000..07f1419dc18f --- /dev/null +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/MigrationConfig.java @@ -0,0 +1,1344 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/memorystore/v1/memorystore.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.memorystore.v1; + +/** + * + * + *
                  + * Configuration for the migration of an instance.
                  + * 
                  + * + * Protobuf type {@code google.cloud.memorystore.v1.MigrationConfig} + */ +@com.google.protobuf.Generated +public final class MigrationConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.memorystore.v1.MigrationConfig) + MigrationConfigOrBuilder { + 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= */ "", + "MigrationConfig"); + } + + // Use MigrationConfig.newBuilder() to construct. + private MigrationConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private MigrationConfig() { + state_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_MigrationConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_MigrationConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.memorystore.v1.MigrationConfig.class, + com.google.cloud.memorystore.v1.MigrationConfig.Builder.class); + } + + /** + * + * + *
                  +   * Migration state of the instance.
                  +   * New values may be added in the future.
                  +   * 
                  + * + * Protobuf enum {@code google.cloud.memorystore.v1.MigrationConfig.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                  +     * Instance has no migration related activity. This is the initial state.
                  +     * 
                  + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
                  +     * Instance is not currently migrating. The instance underwent a migration
                  +     * attempt that failed, and the subsequent rollback was successful. The
                  +     * instance is now ready for a new migration attempt if desired.
                  +     * 
                  + * + * ROLLED_BACK = 1; + */ + ROLLED_BACK(1), + /** + * + * + *
                  +     * Indicates a previous migration attempt failed. The high-level instance
                  +     * state will be `MIGRATING`. The instance is not ready for a new migration
                  +     * attempt. Rollback is in progress to restore the instance to its original
                  +     * state. The instance will remain in this state until rollback is
                  +     * successful.
                  +     * 
                  + * + * ROLLING_BACK = 5; + */ + ROLLING_BACK(5), + /** + * + * + *
                  +     * Instance is in the process of migration. Instance has established
                  +     * successful replication and is ready for cutover.
                  +     * 
                  + * + * REPLICATION_ESTABLISHED = 6; + */ + REPLICATION_ESTABLISHED(6), + /** + * + * + *
                  +     * Instance is successfully migrated.
                  +     * 
                  + * + * MIGRATED = 4; + */ + MIGRATED(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
                  +     * Instance has no migration related activity. This is the initial state.
                  +     * 
                  + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                  +     * Instance is not currently migrating. The instance underwent a migration
                  +     * attempt that failed, and the subsequent rollback was successful. The
                  +     * instance is now ready for a new migration attempt if desired.
                  +     * 
                  + * + * ROLLED_BACK = 1; + */ + public static final int ROLLED_BACK_VALUE = 1; + + /** + * + * + *
                  +     * Indicates a previous migration attempt failed. The high-level instance
                  +     * state will be `MIGRATING`. The instance is not ready for a new migration
                  +     * attempt. Rollback is in progress to restore the instance to its original
                  +     * state. The instance will remain in this state until rollback is
                  +     * successful.
                  +     * 
                  + * + * ROLLING_BACK = 5; + */ + public static final int ROLLING_BACK_VALUE = 5; + + /** + * + * + *
                  +     * Instance is in the process of migration. Instance has established
                  +     * successful replication and is ready for cutover.
                  +     * 
                  + * + * REPLICATION_ESTABLISHED = 6; + */ + public static final int REPLICATION_ESTABLISHED_VALUE = 6; + + /** + * + * + *
                  +     * Instance is successfully migrated.
                  +     * 
                  + * + * MIGRATED = 4; + */ + public static final int MIGRATED_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return ROLLED_BACK; + case 5: + return ROLLING_BACK; + case 6: + return REPLICATION_ESTABLISHED; + case 4: + return MIGRATED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.memorystore.v1.MigrationConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.memorystore.v1.MigrationConfig.State) + } + + private int sourceCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object source_; + + public enum SourceCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + SELF_MANAGED_SOURCE(2), + SOURCE_NOT_SET(0); + private final int value; + + private SourceCase(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 SourceCase valueOf(int value) { + return forNumber(value); + } + + public static SourceCase forNumber(int value) { + switch (value) { + case 2: + return SELF_MANAGED_SOURCE; + case 0: + return SOURCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + public static final int SELF_MANAGED_SOURCE_FIELD_NUMBER = 2; + + /** + * + * + *
                  +   * Output only. Configuration for migrating from a self-managed Valkey/Redis
                  +   * instance
                  +   * 
                  + * + * + * .google.cloud.memorystore.v1.SelfManagedSource self_managed_source = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the selfManagedSource field is set. + */ + @java.lang.Override + public boolean hasSelfManagedSource() { + return sourceCase_ == 2; + } + + /** + * + * + *
                  +   * Output only. Configuration for migrating from a self-managed Valkey/Redis
                  +   * instance
                  +   * 
                  + * + * + * .google.cloud.memorystore.v1.SelfManagedSource self_managed_source = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The selfManagedSource. + */ + @java.lang.Override + public com.google.cloud.memorystore.v1.SelfManagedSource getSelfManagedSource() { + if (sourceCase_ == 2) { + return (com.google.cloud.memorystore.v1.SelfManagedSource) source_; + } + return com.google.cloud.memorystore.v1.SelfManagedSource.getDefaultInstance(); + } + + /** + * + * + *
                  +   * Output only. Configuration for migrating from a self-managed Valkey/Redis
                  +   * instance
                  +   * 
                  + * + * + * .google.cloud.memorystore.v1.SelfManagedSource self_managed_source = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.memorystore.v1.SelfManagedSourceOrBuilder + getSelfManagedSourceOrBuilder() { + if (sourceCase_ == 2) { + return (com.google.cloud.memorystore.v1.SelfManagedSource) source_; + } + return com.google.cloud.memorystore.v1.SelfManagedSource.getDefaultInstance(); + } + + public static final int STATE_FIELD_NUMBER = 1; + private int state_ = 0; + + /** + * + * + *
                  +   * Output only. Migration state of the instance.
                  +   * 
                  + * + * + * .google.cloud.memorystore.v1.MigrationConfig.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
                  +   * Output only. Migration state of the instance.
                  +   * 
                  + * + * + * .google.cloud.memorystore.v1.MigrationConfig.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.memorystore.v1.MigrationConfig.State getState() { + com.google.cloud.memorystore.v1.MigrationConfig.State result = + com.google.cloud.memorystore.v1.MigrationConfig.State.forNumber(state_); + return result == null + ? com.google.cloud.memorystore.v1.MigrationConfig.State.UNRECOGNIZED + : result; + } + + public static final int FORCE_FINISH_MIGRATION_FIELD_NUMBER = 4; + private boolean forceFinishMigration_ = false; + + /** + * + * + *
                  +   * Output only. Represents a boolean flag to force migration finalization
                  +   * without offset catch up validation between source and target before
                  +   * stopping replication.
                  +   * 
                  + * + * bool force_finish_migration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The forceFinishMigration. + */ + @java.lang.Override + public boolean getForceFinishMigration() { + return forceFinishMigration_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (state_ + != com.google.cloud.memorystore.v1.MigrationConfig.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(1, state_); + } + if (sourceCase_ == 2) { + output.writeMessage(2, (com.google.cloud.memorystore.v1.SelfManagedSource) source_); + } + if (forceFinishMigration_ != false) { + output.writeBool(4, forceFinishMigration_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (state_ + != com.google.cloud.memorystore.v1.MigrationConfig.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); + } + if (sourceCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.memorystore.v1.SelfManagedSource) source_); + } + if (forceFinishMigration_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, forceFinishMigration_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.memorystore.v1.MigrationConfig)) { + return super.equals(obj); + } + com.google.cloud.memorystore.v1.MigrationConfig other = + (com.google.cloud.memorystore.v1.MigrationConfig) obj; + + if (state_ != other.state_) return false; + if (getForceFinishMigration() != other.getForceFinishMigration()) return false; + if (!getSourceCase().equals(other.getSourceCase())) return false; + switch (sourceCase_) { + case 2: + if (!getSelfManagedSource().equals(other.getSelfManagedSource())) 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) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + FORCE_FINISH_MIGRATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForceFinishMigration()); + switch (sourceCase_) { + case 2: + hash = (37 * hash) + SELF_MANAGED_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getSelfManagedSource().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.memorystore.v1.MigrationConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1.MigrationConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.memorystore.v1.MigrationConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1.MigrationConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.memorystore.v1.MigrationConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1.MigrationConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.memorystore.v1.MigrationConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1.MigrationConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.memorystore.v1.MigrationConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1.MigrationConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.memorystore.v1.MigrationConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1.MigrationConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.memorystore.v1.MigrationConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                  +   * Configuration for the migration of an instance.
                  +   * 
                  + * + * Protobuf type {@code google.cloud.memorystore.v1.MigrationConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.memorystore.v1.MigrationConfig) + com.google.cloud.memorystore.v1.MigrationConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_MigrationConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_MigrationConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.memorystore.v1.MigrationConfig.class, + com.google.cloud.memorystore.v1.MigrationConfig.Builder.class); + } + + // Construct using com.google.cloud.memorystore.v1.MigrationConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (selfManagedSourceBuilder_ != null) { + selfManagedSourceBuilder_.clear(); + } + state_ = 0; + forceFinishMigration_ = false; + sourceCase_ = 0; + source_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_MigrationConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.memorystore.v1.MigrationConfig getDefaultInstanceForType() { + return com.google.cloud.memorystore.v1.MigrationConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.memorystore.v1.MigrationConfig build() { + com.google.cloud.memorystore.v1.MigrationConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.memorystore.v1.MigrationConfig buildPartial() { + com.google.cloud.memorystore.v1.MigrationConfig result = + new com.google.cloud.memorystore.v1.MigrationConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.memorystore.v1.MigrationConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.forceFinishMigration_ = forceFinishMigration_; + } + } + + private void buildPartialOneofs(com.google.cloud.memorystore.v1.MigrationConfig result) { + result.sourceCase_ = sourceCase_; + result.source_ = this.source_; + if (sourceCase_ == 2 && selfManagedSourceBuilder_ != null) { + result.source_ = selfManagedSourceBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.memorystore.v1.MigrationConfig) { + return mergeFrom((com.google.cloud.memorystore.v1.MigrationConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.memorystore.v1.MigrationConfig other) { + if (other == com.google.cloud.memorystore.v1.MigrationConfig.getDefaultInstance()) + return this; + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.getForceFinishMigration() != false) { + setForceFinishMigration(other.getForceFinishMigration()); + } + switch (other.getSourceCase()) { + case SELF_MANAGED_SOURCE: + { + mergeSelfManagedSource(other.getSelfManagedSource()); + break; + } + case SOURCE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 8 + case 18: + { + input.readMessage( + internalGetSelfManagedSourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 2; + break; + } // case 18 + case 32: + { + forceFinishMigration_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int sourceCase_ = 0; + private java.lang.Object source_; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + public Builder clearSource() { + sourceCase_ = 0; + source_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.memorystore.v1.SelfManagedSource, + com.google.cloud.memorystore.v1.SelfManagedSource.Builder, + com.google.cloud.memorystore.v1.SelfManagedSourceOrBuilder> + selfManagedSourceBuilder_; + + /** + * + * + *
                  +     * Output only. Configuration for migrating from a self-managed Valkey/Redis
                  +     * instance
                  +     * 
                  + * + * + * .google.cloud.memorystore.v1.SelfManagedSource self_managed_source = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the selfManagedSource field is set. + */ + @java.lang.Override + public boolean hasSelfManagedSource() { + return sourceCase_ == 2; + } + + /** + * + * + *
                  +     * Output only. Configuration for migrating from a self-managed Valkey/Redis
                  +     * instance
                  +     * 
                  + * + * + * .google.cloud.memorystore.v1.SelfManagedSource self_managed_source = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The selfManagedSource. + */ + @java.lang.Override + public com.google.cloud.memorystore.v1.SelfManagedSource getSelfManagedSource() { + if (selfManagedSourceBuilder_ == null) { + if (sourceCase_ == 2) { + return (com.google.cloud.memorystore.v1.SelfManagedSource) source_; + } + return com.google.cloud.memorystore.v1.SelfManagedSource.getDefaultInstance(); + } else { + if (sourceCase_ == 2) { + return selfManagedSourceBuilder_.getMessage(); + } + return com.google.cloud.memorystore.v1.SelfManagedSource.getDefaultInstance(); + } + } + + /** + * + * + *
                  +     * Output only. Configuration for migrating from a self-managed Valkey/Redis
                  +     * instance
                  +     * 
                  + * + * + * .google.cloud.memorystore.v1.SelfManagedSource self_managed_source = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSelfManagedSource(com.google.cloud.memorystore.v1.SelfManagedSource value) { + if (selfManagedSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + selfManagedSourceBuilder_.setMessage(value); + } + sourceCase_ = 2; + return this; + } + + /** + * + * + *
                  +     * Output only. Configuration for migrating from a self-managed Valkey/Redis
                  +     * instance
                  +     * 
                  + * + * + * .google.cloud.memorystore.v1.SelfManagedSource self_managed_source = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSelfManagedSource( + com.google.cloud.memorystore.v1.SelfManagedSource.Builder builderForValue) { + if (selfManagedSourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + selfManagedSourceBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 2; + return this; + } + + /** + * + * + *
                  +     * Output only. Configuration for migrating from a self-managed Valkey/Redis
                  +     * instance
                  +     * 
                  + * + * + * .google.cloud.memorystore.v1.SelfManagedSource self_managed_source = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeSelfManagedSource(com.google.cloud.memorystore.v1.SelfManagedSource value) { + if (selfManagedSourceBuilder_ == null) { + if (sourceCase_ == 2 + && source_ != com.google.cloud.memorystore.v1.SelfManagedSource.getDefaultInstance()) { + source_ = + com.google.cloud.memorystore.v1.SelfManagedSource.newBuilder( + (com.google.cloud.memorystore.v1.SelfManagedSource) source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 2) { + selfManagedSourceBuilder_.mergeFrom(value); + } else { + selfManagedSourceBuilder_.setMessage(value); + } + } + sourceCase_ = 2; + return this; + } + + /** + * + * + *
                  +     * Output only. Configuration for migrating from a self-managed Valkey/Redis
                  +     * instance
                  +     * 
                  + * + * + * .google.cloud.memorystore.v1.SelfManagedSource self_managed_source = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearSelfManagedSource() { + if (selfManagedSourceBuilder_ == null) { + if (sourceCase_ == 2) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 2) { + sourceCase_ = 0; + source_ = null; + } + selfManagedSourceBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                  +     * Output only. Configuration for migrating from a self-managed Valkey/Redis
                  +     * instance
                  +     * 
                  + * + * + * .google.cloud.memorystore.v1.SelfManagedSource self_managed_source = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.memorystore.v1.SelfManagedSource.Builder getSelfManagedSourceBuilder() { + return internalGetSelfManagedSourceFieldBuilder().getBuilder(); + } + + /** + * + * + *
                  +     * Output only. Configuration for migrating from a self-managed Valkey/Redis
                  +     * instance
                  +     * 
                  + * + * + * .google.cloud.memorystore.v1.SelfManagedSource self_managed_source = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.memorystore.v1.SelfManagedSourceOrBuilder + getSelfManagedSourceOrBuilder() { + if ((sourceCase_ == 2) && (selfManagedSourceBuilder_ != null)) { + return selfManagedSourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 2) { + return (com.google.cloud.memorystore.v1.SelfManagedSource) source_; + } + return com.google.cloud.memorystore.v1.SelfManagedSource.getDefaultInstance(); + } + } + + /** + * + * + *
                  +     * Output only. Configuration for migrating from a self-managed Valkey/Redis
                  +     * instance
                  +     * 
                  + * + * + * .google.cloud.memorystore.v1.SelfManagedSource self_managed_source = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.memorystore.v1.SelfManagedSource, + com.google.cloud.memorystore.v1.SelfManagedSource.Builder, + com.google.cloud.memorystore.v1.SelfManagedSourceOrBuilder> + internalGetSelfManagedSourceFieldBuilder() { + if (selfManagedSourceBuilder_ == null) { + if (!(sourceCase_ == 2)) { + source_ = com.google.cloud.memorystore.v1.SelfManagedSource.getDefaultInstance(); + } + selfManagedSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.memorystore.v1.SelfManagedSource, + com.google.cloud.memorystore.v1.SelfManagedSource.Builder, + com.google.cloud.memorystore.v1.SelfManagedSourceOrBuilder>( + (com.google.cloud.memorystore.v1.SelfManagedSource) source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 2; + onChanged(); + return selfManagedSourceBuilder_; + } + + private int state_ = 0; + + /** + * + * + *
                  +     * Output only. Migration state of the instance.
                  +     * 
                  + * + * + * .google.cloud.memorystore.v1.MigrationConfig.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
                  +     * Output only. Migration state of the instance.
                  +     * 
                  + * + * + * .google.cloud.memorystore.v1.MigrationConfig.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                  +     * Output only. Migration state of the instance.
                  +     * 
                  + * + * + * .google.cloud.memorystore.v1.MigrationConfig.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.memorystore.v1.MigrationConfig.State getState() { + com.google.cloud.memorystore.v1.MigrationConfig.State result = + com.google.cloud.memorystore.v1.MigrationConfig.State.forNumber(state_); + return result == null + ? com.google.cloud.memorystore.v1.MigrationConfig.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
                  +     * Output only. Migration state of the instance.
                  +     * 
                  + * + * + * .google.cloud.memorystore.v1.MigrationConfig.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.memorystore.v1.MigrationConfig.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                  +     * Output only. Migration state of the instance.
                  +     * 
                  + * + * + * .google.cloud.memorystore.v1.MigrationConfig.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000002); + state_ = 0; + onChanged(); + return this; + } + + private boolean forceFinishMigration_; + + /** + * + * + *
                  +     * Output only. Represents a boolean flag to force migration finalization
                  +     * without offset catch up validation between source and target before
                  +     * stopping replication.
                  +     * 
                  + * + * bool force_finish_migration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The forceFinishMigration. + */ + @java.lang.Override + public boolean getForceFinishMigration() { + return forceFinishMigration_; + } + + /** + * + * + *
                  +     * Output only. Represents a boolean flag to force migration finalization
                  +     * without offset catch up validation between source and target before
                  +     * stopping replication.
                  +     * 
                  + * + * bool force_finish_migration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The forceFinishMigration to set. + * @return This builder for chaining. + */ + public Builder setForceFinishMigration(boolean value) { + + forceFinishMigration_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                  +     * Output only. Represents a boolean flag to force migration finalization
                  +     * without offset catch up validation between source and target before
                  +     * stopping replication.
                  +     * 
                  + * + * bool force_finish_migration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearForceFinishMigration() { + bitField0_ = (bitField0_ & ~0x00000004); + forceFinishMigration_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.memorystore.v1.MigrationConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.memorystore.v1.MigrationConfig) + private static final com.google.cloud.memorystore.v1.MigrationConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.memorystore.v1.MigrationConfig(); + } + + public static com.google.cloud.memorystore.v1.MigrationConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MigrationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.memorystore.v1.MigrationConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/MigrationConfigOrBuilder.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/MigrationConfigOrBuilder.java new file mode 100644 index 000000000000..4804da26ce12 --- /dev/null +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/MigrationConfigOrBuilder.java @@ -0,0 +1,121 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/memorystore/v1/memorystore.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.memorystore.v1; + +@com.google.protobuf.Generated +public interface MigrationConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.memorystore.v1.MigrationConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                  +   * Output only. Configuration for migrating from a self-managed Valkey/Redis
                  +   * instance
                  +   * 
                  + * + * + * .google.cloud.memorystore.v1.SelfManagedSource self_managed_source = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the selfManagedSource field is set. + */ + boolean hasSelfManagedSource(); + + /** + * + * + *
                  +   * Output only. Configuration for migrating from a self-managed Valkey/Redis
                  +   * instance
                  +   * 
                  + * + * + * .google.cloud.memorystore.v1.SelfManagedSource self_managed_source = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The selfManagedSource. + */ + com.google.cloud.memorystore.v1.SelfManagedSource getSelfManagedSource(); + + /** + * + * + *
                  +   * Output only. Configuration for migrating from a self-managed Valkey/Redis
                  +   * instance
                  +   * 
                  + * + * + * .google.cloud.memorystore.v1.SelfManagedSource self_managed_source = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.memorystore.v1.SelfManagedSourceOrBuilder getSelfManagedSourceOrBuilder(); + + /** + * + * + *
                  +   * Output only. Migration state of the instance.
                  +   * 
                  + * + * + * .google.cloud.memorystore.v1.MigrationConfig.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
                  +   * Output only. Migration state of the instance.
                  +   * 
                  + * + * + * .google.cloud.memorystore.v1.MigrationConfig.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.memorystore.v1.MigrationConfig.State getState(); + + /** + * + * + *
                  +   * Output only. Represents a boolean flag to force migration finalization
                  +   * without offset catch up validation between source and target before
                  +   * stopping replication.
                  +   * 
                  + * + * bool force_finish_migration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The forceFinishMigration. + */ + boolean getForceFinishMigration(); + + com.google.cloud.memorystore.v1.MigrationConfig.SourceCase getSourceCase(); +} diff --git a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/PscAutoConnection.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/PscAutoConnection.java index 75fef1e2ee0d..75e00ebd62ec 100644 --- a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/PscAutoConnection.java +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/PscAutoConnection.java @@ -401,7 +401,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * *
                      * Required. The network where the PSC endpoints are created, in the form of
                  -   * projects/{project_id}/global/networks/{network_id}.
                  +   * projects/{project_id}/global/networks/{network_name}.
                      * 
                  * * @@ -428,7 +428,7 @@ public java.lang.String getNetwork() { * *
                      * Required. The network where the PSC endpoints are created, in the form of
                  -   * projects/{project_id}/global/networks/{network_id}.
                  +   * projects/{project_id}/global/networks/{network_name}.
                      * 
                  * * @@ -1713,7 +1713,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * *
                        * Required. The network where the PSC endpoints are created, in the form of
                  -     * projects/{project_id}/global/networks/{network_id}.
                  +     * projects/{project_id}/global/networks/{network_name}.
                        * 
                  * * @@ -1739,7 +1739,7 @@ public java.lang.String getNetwork() { * *
                        * Required. The network where the PSC endpoints are created, in the form of
                  -     * projects/{project_id}/global/networks/{network_id}.
                  +     * projects/{project_id}/global/networks/{network_name}.
                        * 
                  * * @@ -1765,7 +1765,7 @@ public com.google.protobuf.ByteString getNetworkBytes() { * *
                        * Required. The network where the PSC endpoints are created, in the form of
                  -     * projects/{project_id}/global/networks/{network_id}.
                  +     * projects/{project_id}/global/networks/{network_name}.
                        * 
                  * * @@ -1790,7 +1790,7 @@ public Builder setNetwork(java.lang.String value) { * *
                        * Required. The network where the PSC endpoints are created, in the form of
                  -     * projects/{project_id}/global/networks/{network_id}.
                  +     * projects/{project_id}/global/networks/{network_name}.
                        * 
                  * * @@ -1811,7 +1811,7 @@ public Builder clearNetwork() { * *
                        * Required. The network where the PSC endpoints are created, in the form of
                  -     * projects/{project_id}/global/networks/{network_id}.
                  +     * projects/{project_id}/global/networks/{network_name}.
                        * 
                  * * diff --git a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/PscAutoConnectionOrBuilder.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/PscAutoConnectionOrBuilder.java index 76da529fc31f..e91919f4d095 100644 --- a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/PscAutoConnectionOrBuilder.java +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/PscAutoConnectionOrBuilder.java @@ -179,7 +179,7 @@ public interface PscAutoConnectionOrBuilder * *
                      * Required. The network where the PSC endpoints are created, in the form of
                  -   * projects/{project_id}/global/networks/{network_id}.
                  +   * projects/{project_id}/global/networks/{network_name}.
                      * 
                  * * @@ -195,7 +195,7 @@ public interface PscAutoConnectionOrBuilder * *
                      * Required. The network where the PSC endpoints are created, in the form of
                  -   * projects/{project_id}/global/networks/{network_id}.
                  +   * projects/{project_id}/global/networks/{network_name}.
                      * 
                  * * diff --git a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/PscConnection.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/PscConnection.java index 018b7d69fd42..f72e45684d52 100644 --- a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/PscConnection.java +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/PscConnection.java @@ -401,7 +401,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * *
                      * Required. The consumer network where the IP address resides, in the form of
                  -   * projects/{project_id}/global/networks/{network_id}.
                  +   * projects/{project_id}/global/networks/{network_name}.
                      * 
                  * * @@ -428,7 +428,7 @@ public java.lang.String getNetwork() { * *
                      * Required. The consumer network where the IP address resides, in the form of
                  -   * projects/{project_id}/global/networks/{network_id}.
                  +   * projects/{project_id}/global/networks/{network_name}.
                      * 
                  * * @@ -1712,7 +1712,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * *
                        * Required. The consumer network where the IP address resides, in the form of
                  -     * projects/{project_id}/global/networks/{network_id}.
                  +     * projects/{project_id}/global/networks/{network_name}.
                        * 
                  * * @@ -1738,7 +1738,7 @@ public java.lang.String getNetwork() { * *
                        * Required. The consumer network where the IP address resides, in the form of
                  -     * projects/{project_id}/global/networks/{network_id}.
                  +     * projects/{project_id}/global/networks/{network_name}.
                        * 
                  * * @@ -1764,7 +1764,7 @@ public com.google.protobuf.ByteString getNetworkBytes() { * *
                        * Required. The consumer network where the IP address resides, in the form of
                  -     * projects/{project_id}/global/networks/{network_id}.
                  +     * projects/{project_id}/global/networks/{network_name}.
                        * 
                  * * @@ -1789,7 +1789,7 @@ public Builder setNetwork(java.lang.String value) { * *
                        * Required. The consumer network where the IP address resides, in the form of
                  -     * projects/{project_id}/global/networks/{network_id}.
                  +     * projects/{project_id}/global/networks/{network_name}.
                        * 
                  * * @@ -1810,7 +1810,7 @@ public Builder clearNetwork() { * *
                        * Required. The consumer network where the IP address resides, in the form of
                  -     * projects/{project_id}/global/networks/{network_id}.
                  +     * projects/{project_id}/global/networks/{network_name}.
                        * 
                  * * diff --git a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/PscConnectionOrBuilder.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/PscConnectionOrBuilder.java index 071c215800f8..c6ecf7ea4908 100644 --- a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/PscConnectionOrBuilder.java +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/PscConnectionOrBuilder.java @@ -179,7 +179,7 @@ public interface PscConnectionOrBuilder * *
                      * Required. The consumer network where the IP address resides, in the form of
                  -   * projects/{project_id}/global/networks/{network_id}.
                  +   * projects/{project_id}/global/networks/{network_name}.
                      * 
                  * * @@ -195,7 +195,7 @@ public interface PscConnectionOrBuilder * *
                      * Required. The consumer network where the IP address resides, in the form of
                  -   * projects/{project_id}/global/networks/{network_id}.
                  +   * projects/{project_id}/global/networks/{network_name}.
                      * 
                  * * diff --git a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/SelfManagedSource.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/SelfManagedSource.java new file mode 100644 index 000000000000..71420b713049 --- /dev/null +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/SelfManagedSource.java @@ -0,0 +1,995 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/memorystore/v1/memorystore.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.memorystore.v1; + +/** + * + * + *
                  + * Details of the self-managed source instance.
                  + * 
                  + * + * Protobuf type {@code google.cloud.memorystore.v1.SelfManagedSource} + */ +@com.google.protobuf.Generated +public final class SelfManagedSource extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.memorystore.v1.SelfManagedSource) + SelfManagedSourceOrBuilder { + 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= */ "", + "SelfManagedSource"); + } + + // Use SelfManagedSource.newBuilder() to construct. + private SelfManagedSource(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SelfManagedSource() { + ipAddress_ = ""; + networkAttachment_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_SelfManagedSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_SelfManagedSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.memorystore.v1.SelfManagedSource.class, + com.google.cloud.memorystore.v1.SelfManagedSource.Builder.class); + } + + public static final int IP_ADDRESS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object ipAddress_ = ""; + + /** + * + * + *
                  +   * Required. The IP address of the source instance.
                  +   * This IP address should be a stable IP address that can be accessed by the
                  +   * Memorystore instance throughout the migration process.
                  +   * 
                  + * + * + * string ip_address = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... } + * + * + * @return The ipAddress. + */ + @java.lang.Override + public java.lang.String getIpAddress() { + java.lang.Object ref = ipAddress_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ipAddress_ = s; + return s; + } + } + + /** + * + * + *
                  +   * Required. The IP address of the source instance.
                  +   * This IP address should be a stable IP address that can be accessed by the
                  +   * Memorystore instance throughout the migration process.
                  +   * 
                  + * + * + * string ip_address = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... } + * + * + * @return The bytes for ipAddress. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIpAddressBytes() { + java.lang.Object ref = ipAddress_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ipAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PORT_FIELD_NUMBER = 2; + private int port_ = 0; + + /** + * + * + *
                  +   * Required. The port of the source instance.
                  +   * This port should be a stable port that can be accessed by the Memorystore
                  +   * instance throughout the migration process.
                  +   * 
                  + * + * int32 port = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The port. + */ + @java.lang.Override + public int getPort() { + return port_; + } + + public static final int NETWORK_ATTACHMENT_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object networkAttachment_ = ""; + + /** + * + * + *
                  +   * Required. The resource name of the Private Service Connect Network
                  +   * Attachment used to establish connectivity to the source instance. This
                  +   * network attachment has the following requirements:
                  +   * 1. It must be in the same project as the Memorystore instance.
                  +   * 2. It must be in the same region as the Memorystore instance.
                  +   * 3. The subnet attached to the network attachment must be in the same VPC
                  +   * network as the source instance nodes.
                  +   *
                  +   * Format:
                  +   * projects/{project}/regions/{region}/networkAttachments/{network_attachment}
                  +   * 
                  + * + * + * string network_attachment = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The networkAttachment. + */ + @java.lang.Override + public java.lang.String getNetworkAttachment() { + java.lang.Object ref = networkAttachment_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + networkAttachment_ = s; + return s; + } + } + + /** + * + * + *
                  +   * Required. The resource name of the Private Service Connect Network
                  +   * Attachment used to establish connectivity to the source instance. This
                  +   * network attachment has the following requirements:
                  +   * 1. It must be in the same project as the Memorystore instance.
                  +   * 2. It must be in the same region as the Memorystore instance.
                  +   * 3. The subnet attached to the network attachment must be in the same VPC
                  +   * network as the source instance nodes.
                  +   *
                  +   * Format:
                  +   * projects/{project}/regions/{region}/networkAttachments/{network_attachment}
                  +   * 
                  + * + * + * string network_attachment = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for networkAttachment. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNetworkAttachmentBytes() { + java.lang.Object ref = networkAttachment_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + networkAttachment_ = 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(ipAddress_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, ipAddress_); + } + if (port_ != 0) { + output.writeInt32(2, port_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(networkAttachment_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, networkAttachment_); + } + 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(ipAddress_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, ipAddress_); + } + if (port_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, port_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(networkAttachment_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, networkAttachment_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.memorystore.v1.SelfManagedSource)) { + return super.equals(obj); + } + com.google.cloud.memorystore.v1.SelfManagedSource other = + (com.google.cloud.memorystore.v1.SelfManagedSource) obj; + + if (!getIpAddress().equals(other.getIpAddress())) return false; + if (getPort() != other.getPort()) return false; + if (!getNetworkAttachment().equals(other.getNetworkAttachment())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + IP_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getIpAddress().hashCode(); + hash = (37 * hash) + PORT_FIELD_NUMBER; + hash = (53 * hash) + getPort(); + hash = (37 * hash) + NETWORK_ATTACHMENT_FIELD_NUMBER; + hash = (53 * hash) + getNetworkAttachment().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.memorystore.v1.SelfManagedSource parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1.SelfManagedSource parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.memorystore.v1.SelfManagedSource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1.SelfManagedSource parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.memorystore.v1.SelfManagedSource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1.SelfManagedSource parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.memorystore.v1.SelfManagedSource parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1.SelfManagedSource parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.memorystore.v1.SelfManagedSource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1.SelfManagedSource parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.memorystore.v1.SelfManagedSource parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1.SelfManagedSource parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.memorystore.v1.SelfManagedSource prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                  +   * Details of the self-managed source instance.
                  +   * 
                  + * + * Protobuf type {@code google.cloud.memorystore.v1.SelfManagedSource} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.memorystore.v1.SelfManagedSource) + com.google.cloud.memorystore.v1.SelfManagedSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_SelfManagedSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_SelfManagedSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.memorystore.v1.SelfManagedSource.class, + com.google.cloud.memorystore.v1.SelfManagedSource.Builder.class); + } + + // Construct using com.google.cloud.memorystore.v1.SelfManagedSource.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + ipAddress_ = ""; + port_ = 0; + networkAttachment_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_SelfManagedSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.memorystore.v1.SelfManagedSource getDefaultInstanceForType() { + return com.google.cloud.memorystore.v1.SelfManagedSource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.memorystore.v1.SelfManagedSource build() { + com.google.cloud.memorystore.v1.SelfManagedSource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.memorystore.v1.SelfManagedSource buildPartial() { + com.google.cloud.memorystore.v1.SelfManagedSource result = + new com.google.cloud.memorystore.v1.SelfManagedSource(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.memorystore.v1.SelfManagedSource result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.ipAddress_ = ipAddress_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.port_ = port_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.networkAttachment_ = networkAttachment_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.memorystore.v1.SelfManagedSource) { + return mergeFrom((com.google.cloud.memorystore.v1.SelfManagedSource) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.memorystore.v1.SelfManagedSource other) { + if (other == com.google.cloud.memorystore.v1.SelfManagedSource.getDefaultInstance()) + return this; + if (!other.getIpAddress().isEmpty()) { + ipAddress_ = other.ipAddress_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPort() != 0) { + setPort(other.getPort()); + } + if (!other.getNetworkAttachment().isEmpty()) { + networkAttachment_ = other.networkAttachment_; + 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: + { + ipAddress_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + port_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + networkAttachment_ = 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 ipAddress_ = ""; + + /** + * + * + *
                  +     * Required. The IP address of the source instance.
                  +     * This IP address should be a stable IP address that can be accessed by the
                  +     * Memorystore instance throughout the migration process.
                  +     * 
                  + * + * + * string ip_address = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... } + * + * + * @return The ipAddress. + */ + public java.lang.String getIpAddress() { + java.lang.Object ref = ipAddress_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ipAddress_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                  +     * Required. The IP address of the source instance.
                  +     * This IP address should be a stable IP address that can be accessed by the
                  +     * Memorystore instance throughout the migration process.
                  +     * 
                  + * + * + * string ip_address = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... } + * + * + * @return The bytes for ipAddress. + */ + public com.google.protobuf.ByteString getIpAddressBytes() { + java.lang.Object ref = ipAddress_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ipAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                  +     * Required. The IP address of the source instance.
                  +     * This IP address should be a stable IP address that can be accessed by the
                  +     * Memorystore instance throughout the migration process.
                  +     * 
                  + * + * + * string ip_address = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... } + * + * + * @param value The ipAddress to set. + * @return This builder for chaining. + */ + public Builder setIpAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ipAddress_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                  +     * Required. The IP address of the source instance.
                  +     * This IP address should be a stable IP address that can be accessed by the
                  +     * Memorystore instance throughout the migration process.
                  +     * 
                  + * + * + * string ip_address = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearIpAddress() { + ipAddress_ = getDefaultInstance().getIpAddress(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                  +     * Required. The IP address of the source instance.
                  +     * This IP address should be a stable IP address that can be accessed by the
                  +     * Memorystore instance throughout the migration process.
                  +     * 
                  + * + * + * string ip_address = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for ipAddress to set. + * @return This builder for chaining. + */ + public Builder setIpAddressBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ipAddress_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int port_; + + /** + * + * + *
                  +     * Required. The port of the source instance.
                  +     * This port should be a stable port that can be accessed by the Memorystore
                  +     * instance throughout the migration process.
                  +     * 
                  + * + * int32 port = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The port. + */ + @java.lang.Override + public int getPort() { + return port_; + } + + /** + * + * + *
                  +     * Required. The port of the source instance.
                  +     * This port should be a stable port that can be accessed by the Memorystore
                  +     * instance throughout the migration process.
                  +     * 
                  + * + * int32 port = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The port to set. + * @return This builder for chaining. + */ + public Builder setPort(int value) { + + port_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                  +     * Required. The port of the source instance.
                  +     * This port should be a stable port that can be accessed by the Memorystore
                  +     * instance throughout the migration process.
                  +     * 
                  + * + * int32 port = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearPort() { + bitField0_ = (bitField0_ & ~0x00000002); + port_ = 0; + onChanged(); + return this; + } + + private java.lang.Object networkAttachment_ = ""; + + /** + * + * + *
                  +     * Required. The resource name of the Private Service Connect Network
                  +     * Attachment used to establish connectivity to the source instance. This
                  +     * network attachment has the following requirements:
                  +     * 1. It must be in the same project as the Memorystore instance.
                  +     * 2. It must be in the same region as the Memorystore instance.
                  +     * 3. The subnet attached to the network attachment must be in the same VPC
                  +     * network as the source instance nodes.
                  +     *
                  +     * Format:
                  +     * projects/{project}/regions/{region}/networkAttachments/{network_attachment}
                  +     * 
                  + * + * + * string network_attachment = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The networkAttachment. + */ + public java.lang.String getNetworkAttachment() { + java.lang.Object ref = networkAttachment_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + networkAttachment_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                  +     * Required. The resource name of the Private Service Connect Network
                  +     * Attachment used to establish connectivity to the source instance. This
                  +     * network attachment has the following requirements:
                  +     * 1. It must be in the same project as the Memorystore instance.
                  +     * 2. It must be in the same region as the Memorystore instance.
                  +     * 3. The subnet attached to the network attachment must be in the same VPC
                  +     * network as the source instance nodes.
                  +     *
                  +     * Format:
                  +     * projects/{project}/regions/{region}/networkAttachments/{network_attachment}
                  +     * 
                  + * + * + * string network_attachment = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for networkAttachment. + */ + public com.google.protobuf.ByteString getNetworkAttachmentBytes() { + java.lang.Object ref = networkAttachment_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + networkAttachment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                  +     * Required. The resource name of the Private Service Connect Network
                  +     * Attachment used to establish connectivity to the source instance. This
                  +     * network attachment has the following requirements:
                  +     * 1. It must be in the same project as the Memorystore instance.
                  +     * 2. It must be in the same region as the Memorystore instance.
                  +     * 3. The subnet attached to the network attachment must be in the same VPC
                  +     * network as the source instance nodes.
                  +     *
                  +     * Format:
                  +     * projects/{project}/regions/{region}/networkAttachments/{network_attachment}
                  +     * 
                  + * + * + * string network_attachment = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The networkAttachment to set. + * @return This builder for chaining. + */ + public Builder setNetworkAttachment(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + networkAttachment_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                  +     * Required. The resource name of the Private Service Connect Network
                  +     * Attachment used to establish connectivity to the source instance. This
                  +     * network attachment has the following requirements:
                  +     * 1. It must be in the same project as the Memorystore instance.
                  +     * 2. It must be in the same region as the Memorystore instance.
                  +     * 3. The subnet attached to the network attachment must be in the same VPC
                  +     * network as the source instance nodes.
                  +     *
                  +     * Format:
                  +     * projects/{project}/regions/{region}/networkAttachments/{network_attachment}
                  +     * 
                  + * + * + * string network_attachment = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearNetworkAttachment() { + networkAttachment_ = getDefaultInstance().getNetworkAttachment(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                  +     * Required. The resource name of the Private Service Connect Network
                  +     * Attachment used to establish connectivity to the source instance. This
                  +     * network attachment has the following requirements:
                  +     * 1. It must be in the same project as the Memorystore instance.
                  +     * 2. It must be in the same region as the Memorystore instance.
                  +     * 3. The subnet attached to the network attachment must be in the same VPC
                  +     * network as the source instance nodes.
                  +     *
                  +     * Format:
                  +     * projects/{project}/regions/{region}/networkAttachments/{network_attachment}
                  +     * 
                  + * + * + * string network_attachment = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for networkAttachment to set. + * @return This builder for chaining. + */ + public Builder setNetworkAttachmentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + networkAttachment_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.memorystore.v1.SelfManagedSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.memorystore.v1.SelfManagedSource) + private static final com.google.cloud.memorystore.v1.SelfManagedSource DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.memorystore.v1.SelfManagedSource(); + } + + public static com.google.cloud.memorystore.v1.SelfManagedSource getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SelfManagedSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.memorystore.v1.SelfManagedSource getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/SelfManagedSourceOrBuilder.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/SelfManagedSourceOrBuilder.java new file mode 100644 index 000000000000..36a906f2253a --- /dev/null +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/SelfManagedSourceOrBuilder.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/memorystore/v1/memorystore.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.memorystore.v1; + +@com.google.protobuf.Generated +public interface SelfManagedSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.memorystore.v1.SelfManagedSource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                  +   * Required. The IP address of the source instance.
                  +   * This IP address should be a stable IP address that can be accessed by the
                  +   * Memorystore instance throughout the migration process.
                  +   * 
                  + * + * + * string ip_address = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... } + * + * + * @return The ipAddress. + */ + java.lang.String getIpAddress(); + + /** + * + * + *
                  +   * Required. The IP address of the source instance.
                  +   * This IP address should be a stable IP address that can be accessed by the
                  +   * Memorystore instance throughout the migration process.
                  +   * 
                  + * + * + * string ip_address = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... } + * + * + * @return The bytes for ipAddress. + */ + com.google.protobuf.ByteString getIpAddressBytes(); + + /** + * + * + *
                  +   * Required. The port of the source instance.
                  +   * This port should be a stable port that can be accessed by the Memorystore
                  +   * instance throughout the migration process.
                  +   * 
                  + * + * int32 port = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The port. + */ + int getPort(); + + /** + * + * + *
                  +   * Required. The resource name of the Private Service Connect Network
                  +   * Attachment used to establish connectivity to the source instance. This
                  +   * network attachment has the following requirements:
                  +   * 1. It must be in the same project as the Memorystore instance.
                  +   * 2. It must be in the same region as the Memorystore instance.
                  +   * 3. The subnet attached to the network attachment must be in the same VPC
                  +   * network as the source instance nodes.
                  +   *
                  +   * Format:
                  +   * projects/{project}/regions/{region}/networkAttachments/{network_attachment}
                  +   * 
                  + * + * + * string network_attachment = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The networkAttachment. + */ + java.lang.String getNetworkAttachment(); + + /** + * + * + *
                  +   * Required. The resource name of the Private Service Connect Network
                  +   * Attachment used to establish connectivity to the source instance. This
                  +   * network attachment has the following requirements:
                  +   * 1. It must be in the same project as the Memorystore instance.
                  +   * 2. It must be in the same region as the Memorystore instance.
                  +   * 3. The subnet attached to the network attachment must be in the same VPC
                  +   * network as the source instance nodes.
                  +   *
                  +   * Format:
                  +   * projects/{project}/regions/{region}/networkAttachments/{network_attachment}
                  +   * 
                  + * + * + * string network_attachment = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for networkAttachment. + */ + com.google.protobuf.ByteString getNetworkAttachmentBytes(); +} diff --git a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/StartMigrationRequest.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/StartMigrationRequest.java new file mode 100644 index 000000000000..977887a039ba --- /dev/null +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/StartMigrationRequest.java @@ -0,0 +1,1045 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/memorystore/v1/memorystore.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.memorystore.v1; + +/** + * + * + *
                  + * Request for `StartMigration`.
                  + * 
                  + * + * Protobuf type {@code google.cloud.memorystore.v1.StartMigrationRequest} + */ +@com.google.protobuf.Generated +public final class StartMigrationRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.memorystore.v1.StartMigrationRequest) + StartMigrationRequestOrBuilder { + 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= */ "", + "StartMigrationRequest"); + } + + // Use StartMigrationRequest.newBuilder() to construct. + private StartMigrationRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private StartMigrationRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_StartMigrationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_StartMigrationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.memorystore.v1.StartMigrationRequest.class, + com.google.cloud.memorystore.v1.StartMigrationRequest.Builder.class); + } + + private int sourceCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object source_; + + public enum SourceCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + SELF_MANAGED_SOURCE(2), + SOURCE_NOT_SET(0); + private final int value; + + private SourceCase(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 SourceCase valueOf(int value) { + return forNumber(value); + } + + public static SourceCase forNumber(int value) { + switch (value) { + case 2: + return SELF_MANAGED_SOURCE; + case 0: + return SOURCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + public static final int SELF_MANAGED_SOURCE_FIELD_NUMBER = 2; + + /** + * + * + *
                  +   * Required. Configuration for migrating from a self-managed Valkey/Redis
                  +   * instance
                  +   * 
                  + * + * + * .google.cloud.memorystore.v1.SelfManagedSource self_managed_source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the selfManagedSource field is set. + */ + @java.lang.Override + public boolean hasSelfManagedSource() { + return sourceCase_ == 2; + } + + /** + * + * + *
                  +   * Required. Configuration for migrating from a self-managed Valkey/Redis
                  +   * instance
                  +   * 
                  + * + * + * .google.cloud.memorystore.v1.SelfManagedSource self_managed_source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The selfManagedSource. + */ + @java.lang.Override + public com.google.cloud.memorystore.v1.SelfManagedSource getSelfManagedSource() { + if (sourceCase_ == 2) { + return (com.google.cloud.memorystore.v1.SelfManagedSource) source_; + } + return com.google.cloud.memorystore.v1.SelfManagedSource.getDefaultInstance(); + } + + /** + * + * + *
                  +   * Required. Configuration for migrating from a self-managed Valkey/Redis
                  +   * instance
                  +   * 
                  + * + * + * .google.cloud.memorystore.v1.SelfManagedSource self_managed_source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.memorystore.v1.SelfManagedSourceOrBuilder + getSelfManagedSourceOrBuilder() { + if (sourceCase_ == 2) { + return (com.google.cloud.memorystore.v1.SelfManagedSource) source_; + } + return com.google.cloud.memorystore.v1.SelfManagedSource.getDefaultInstance(); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                  +   * Required. The resource name of the instance to start migration on.
                  +   * Format: projects/{project}/locations/{location}/instances/{instance}
                  +   * 
                  + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
                  +   * Required. The resource name of the instance to start migration on.
                  +   * Format: projects/{project}/locations/{location}/instances/{instance}
                  +   * 
                  + * + * + * 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_); + } + if (sourceCase_ == 2) { + output.writeMessage(2, (com.google.cloud.memorystore.v1.SelfManagedSource) source_); + } + 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 (sourceCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.memorystore.v1.SelfManagedSource) source_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.memorystore.v1.StartMigrationRequest)) { + return super.equals(obj); + } + com.google.cloud.memorystore.v1.StartMigrationRequest other = + (com.google.cloud.memorystore.v1.StartMigrationRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getSourceCase().equals(other.getSourceCase())) return false; + switch (sourceCase_) { + case 2: + if (!getSelfManagedSource().equals(other.getSelfManagedSource())) 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(); + switch (sourceCase_) { + case 2: + hash = (37 * hash) + SELF_MANAGED_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getSelfManagedSource().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.memorystore.v1.StartMigrationRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1.StartMigrationRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.memorystore.v1.StartMigrationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1.StartMigrationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.memorystore.v1.StartMigrationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1.StartMigrationRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.memorystore.v1.StartMigrationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1.StartMigrationRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.memorystore.v1.StartMigrationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1.StartMigrationRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.memorystore.v1.StartMigrationRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1.StartMigrationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.memorystore.v1.StartMigrationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                  +   * Request for `StartMigration`.
                  +   * 
                  + * + * Protobuf type {@code google.cloud.memorystore.v1.StartMigrationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.memorystore.v1.StartMigrationRequest) + com.google.cloud.memorystore.v1.StartMigrationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_StartMigrationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_StartMigrationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.memorystore.v1.StartMigrationRequest.class, + com.google.cloud.memorystore.v1.StartMigrationRequest.Builder.class); + } + + // Construct using com.google.cloud.memorystore.v1.StartMigrationRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (selfManagedSourceBuilder_ != null) { + selfManagedSourceBuilder_.clear(); + } + name_ = ""; + sourceCase_ = 0; + source_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_StartMigrationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.memorystore.v1.StartMigrationRequest getDefaultInstanceForType() { + return com.google.cloud.memorystore.v1.StartMigrationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.memorystore.v1.StartMigrationRequest build() { + com.google.cloud.memorystore.v1.StartMigrationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.memorystore.v1.StartMigrationRequest buildPartial() { + com.google.cloud.memorystore.v1.StartMigrationRequest result = + new com.google.cloud.memorystore.v1.StartMigrationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.memorystore.v1.StartMigrationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.name_ = name_; + } + } + + private void buildPartialOneofs(com.google.cloud.memorystore.v1.StartMigrationRequest result) { + result.sourceCase_ = sourceCase_; + result.source_ = this.source_; + if (sourceCase_ == 2 && selfManagedSourceBuilder_ != null) { + result.source_ = selfManagedSourceBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.memorystore.v1.StartMigrationRequest) { + return mergeFrom((com.google.cloud.memorystore.v1.StartMigrationRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.memorystore.v1.StartMigrationRequest other) { + if (other == com.google.cloud.memorystore.v1.StartMigrationRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000002; + onChanged(); + } + switch (other.getSourceCase()) { + case SELF_MANAGED_SOURCE: + { + mergeSelfManagedSource(other.getSelfManagedSource()); + break; + } + case SOURCE_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 18: + { + input.readMessage( + internalGetSelfManagedSourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 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 sourceCase_ = 0; + private java.lang.Object source_; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + public Builder clearSource() { + sourceCase_ = 0; + source_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.memorystore.v1.SelfManagedSource, + com.google.cloud.memorystore.v1.SelfManagedSource.Builder, + com.google.cloud.memorystore.v1.SelfManagedSourceOrBuilder> + selfManagedSourceBuilder_; + + /** + * + * + *
                  +     * Required. Configuration for migrating from a self-managed Valkey/Redis
                  +     * instance
                  +     * 
                  + * + * + * .google.cloud.memorystore.v1.SelfManagedSource self_managed_source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the selfManagedSource field is set. + */ + @java.lang.Override + public boolean hasSelfManagedSource() { + return sourceCase_ == 2; + } + + /** + * + * + *
                  +     * Required. Configuration for migrating from a self-managed Valkey/Redis
                  +     * instance
                  +     * 
                  + * + * + * .google.cloud.memorystore.v1.SelfManagedSource self_managed_source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The selfManagedSource. + */ + @java.lang.Override + public com.google.cloud.memorystore.v1.SelfManagedSource getSelfManagedSource() { + if (selfManagedSourceBuilder_ == null) { + if (sourceCase_ == 2) { + return (com.google.cloud.memorystore.v1.SelfManagedSource) source_; + } + return com.google.cloud.memorystore.v1.SelfManagedSource.getDefaultInstance(); + } else { + if (sourceCase_ == 2) { + return selfManagedSourceBuilder_.getMessage(); + } + return com.google.cloud.memorystore.v1.SelfManagedSource.getDefaultInstance(); + } + } + + /** + * + * + *
                  +     * Required. Configuration for migrating from a self-managed Valkey/Redis
                  +     * instance
                  +     * 
                  + * + * + * .google.cloud.memorystore.v1.SelfManagedSource self_managed_source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSelfManagedSource(com.google.cloud.memorystore.v1.SelfManagedSource value) { + if (selfManagedSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + selfManagedSourceBuilder_.setMessage(value); + } + sourceCase_ = 2; + return this; + } + + /** + * + * + *
                  +     * Required. Configuration for migrating from a self-managed Valkey/Redis
                  +     * instance
                  +     * 
                  + * + * + * .google.cloud.memorystore.v1.SelfManagedSource self_managed_source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSelfManagedSource( + com.google.cloud.memorystore.v1.SelfManagedSource.Builder builderForValue) { + if (selfManagedSourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + selfManagedSourceBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 2; + return this; + } + + /** + * + * + *
                  +     * Required. Configuration for migrating from a self-managed Valkey/Redis
                  +     * instance
                  +     * 
                  + * + * + * .google.cloud.memorystore.v1.SelfManagedSource self_managed_source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeSelfManagedSource(com.google.cloud.memorystore.v1.SelfManagedSource value) { + if (selfManagedSourceBuilder_ == null) { + if (sourceCase_ == 2 + && source_ != com.google.cloud.memorystore.v1.SelfManagedSource.getDefaultInstance()) { + source_ = + com.google.cloud.memorystore.v1.SelfManagedSource.newBuilder( + (com.google.cloud.memorystore.v1.SelfManagedSource) source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 2) { + selfManagedSourceBuilder_.mergeFrom(value); + } else { + selfManagedSourceBuilder_.setMessage(value); + } + } + sourceCase_ = 2; + return this; + } + + /** + * + * + *
                  +     * Required. Configuration for migrating from a self-managed Valkey/Redis
                  +     * instance
                  +     * 
                  + * + * + * .google.cloud.memorystore.v1.SelfManagedSource self_managed_source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearSelfManagedSource() { + if (selfManagedSourceBuilder_ == null) { + if (sourceCase_ == 2) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 2) { + sourceCase_ = 0; + source_ = null; + } + selfManagedSourceBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                  +     * Required. Configuration for migrating from a self-managed Valkey/Redis
                  +     * instance
                  +     * 
                  + * + * + * .google.cloud.memorystore.v1.SelfManagedSource self_managed_source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.memorystore.v1.SelfManagedSource.Builder getSelfManagedSourceBuilder() { + return internalGetSelfManagedSourceFieldBuilder().getBuilder(); + } + + /** + * + * + *
                  +     * Required. Configuration for migrating from a self-managed Valkey/Redis
                  +     * instance
                  +     * 
                  + * + * + * .google.cloud.memorystore.v1.SelfManagedSource self_managed_source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.memorystore.v1.SelfManagedSourceOrBuilder + getSelfManagedSourceOrBuilder() { + if ((sourceCase_ == 2) && (selfManagedSourceBuilder_ != null)) { + return selfManagedSourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 2) { + return (com.google.cloud.memorystore.v1.SelfManagedSource) source_; + } + return com.google.cloud.memorystore.v1.SelfManagedSource.getDefaultInstance(); + } + } + + /** + * + * + *
                  +     * Required. Configuration for migrating from a self-managed Valkey/Redis
                  +     * instance
                  +     * 
                  + * + * + * .google.cloud.memorystore.v1.SelfManagedSource self_managed_source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.memorystore.v1.SelfManagedSource, + com.google.cloud.memorystore.v1.SelfManagedSource.Builder, + com.google.cloud.memorystore.v1.SelfManagedSourceOrBuilder> + internalGetSelfManagedSourceFieldBuilder() { + if (selfManagedSourceBuilder_ == null) { + if (!(sourceCase_ == 2)) { + source_ = com.google.cloud.memorystore.v1.SelfManagedSource.getDefaultInstance(); + } + selfManagedSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.memorystore.v1.SelfManagedSource, + com.google.cloud.memorystore.v1.SelfManagedSource.Builder, + com.google.cloud.memorystore.v1.SelfManagedSourceOrBuilder>( + (com.google.cloud.memorystore.v1.SelfManagedSource) source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 2; + onChanged(); + return selfManagedSourceBuilder_; + } + + private java.lang.Object name_ = ""; + + /** + * + * + *
                  +     * Required. The resource name of the instance to start migration on.
                  +     * Format: projects/{project}/locations/{location}/instances/{instance}
                  +     * 
                  + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                  +     * Required. The resource name of the instance to start migration on.
                  +     * Format: projects/{project}/locations/{location}/instances/{instance}
                  +     * 
                  + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                  +     * Required. The resource name of the instance to start migration on.
                  +     * Format: projects/{project}/locations/{location}/instances/{instance}
                  +     * 
                  + * + * + * 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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                  +     * Required. The resource name of the instance to start migration on.
                  +     * Format: projects/{project}/locations/{location}/instances/{instance}
                  +     * 
                  + * + * + * 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_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                  +     * Required. The resource name of the instance to start migration on.
                  +     * Format: projects/{project}/locations/{location}/instances/{instance}
                  +     * 
                  + * + * + * 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_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.memorystore.v1.StartMigrationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.memorystore.v1.StartMigrationRequest) + private static final com.google.cloud.memorystore.v1.StartMigrationRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.memorystore.v1.StartMigrationRequest(); + } + + public static com.google.cloud.memorystore.v1.StartMigrationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StartMigrationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.memorystore.v1.StartMigrationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/StartMigrationRequestOrBuilder.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/StartMigrationRequestOrBuilder.java new file mode 100644 index 000000000000..0d552b1f910c --- /dev/null +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/StartMigrationRequestOrBuilder.java @@ -0,0 +1,108 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/memorystore/v1/memorystore.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.memorystore.v1; + +@com.google.protobuf.Generated +public interface StartMigrationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.memorystore.v1.StartMigrationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                  +   * Required. Configuration for migrating from a self-managed Valkey/Redis
                  +   * instance
                  +   * 
                  + * + * + * .google.cloud.memorystore.v1.SelfManagedSource self_managed_source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the selfManagedSource field is set. + */ + boolean hasSelfManagedSource(); + + /** + * + * + *
                  +   * Required. Configuration for migrating from a self-managed Valkey/Redis
                  +   * instance
                  +   * 
                  + * + * + * .google.cloud.memorystore.v1.SelfManagedSource self_managed_source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The selfManagedSource. + */ + com.google.cloud.memorystore.v1.SelfManagedSource getSelfManagedSource(); + + /** + * + * + *
                  +   * Required. Configuration for migrating from a self-managed Valkey/Redis
                  +   * instance
                  +   * 
                  + * + * + * .google.cloud.memorystore.v1.SelfManagedSource self_managed_source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.memorystore.v1.SelfManagedSourceOrBuilder getSelfManagedSourceOrBuilder(); + + /** + * + * + *
                  +   * Required. The resource name of the instance to start migration on.
                  +   * Format: projects/{project}/locations/{location}/instances/{instance}
                  +   * 
                  + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                  +   * Required. The resource name of the instance to start migration on.
                  +   * Format: projects/{project}/locations/{location}/instances/{instance}
                  +   * 
                  + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + com.google.cloud.memorystore.v1.StartMigrationRequest.SourceCase getSourceCase(); +} diff --git a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/V1mainProto.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/V1mainProto.java index 471e8aae587f..8b7019c17eea 100644 --- a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/V1mainProto.java +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/V1mainProto.java @@ -76,6 +76,22 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_memorystore_v1_Instance_EngineConfigsEntry_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_memorystore_v1_Instance_EngineConfigsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memorystore_v1_StartMigrationRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_memorystore_v1_StartMigrationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memorystore_v1_FinishMigrationRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_memorystore_v1_FinishMigrationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memorystore_v1_SelfManagedSource_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_memorystore_v1_SelfManagedSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memorystore_v1_MigrationConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_memorystore_v1_MigrationConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_memorystore_v1_AutomatedBackupConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -279,7 +295,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "/operations.proto\032\036google/protobuf/duration.proto\032\033google/protobuf/empty.proto\032" + " google/protobuf/field_mask.proto\032\037google" + "/protobuf/timestamp.proto\032\033google/type/d" - + "ayofweek.proto\032\033google/type/timeofday.proto\"\333(\n" + + "ayofweek.proto\032\033google/type/timeofday.proto\"\272)\n" + "\010Instance\022S\n\n" + "gcs_source\030\027 \001(\01325.g" + "oogle.cloud.memorystore.v1.Instance.GcsBackupSourceB\006\340A\001\340A\005H\000\022b\n" @@ -321,9 +337,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026psc_attachment_details\030\025" + " \003(\01320.google.cloud.memorystore.v1.PscAttachmentDetailB\003\340A\003\022N\n" + "\tendpoints\030\031" - + " \003(\01326.google.cloud.memorystore.v1.Instance.InstanceEndpointB\003\340A\001\022=\n" + + " \003(\01326.google.cloud.memorystore.v1.Instance.InstanceEndpointB\003\340A\001\022@\n" + "\004mode\030\032" - + " \001(\0162*.google.cloud.memorystore.v1.Instance.ModeB\003\340A\001\022/\n" + + " \001(\0162*.google.cloud.memorystore.v1.Instance.ModeB\006\340A\001\340A\005\022/\n" + "\032simulate_maintenance_event\030\033" + " \001(\010B\006\340A\001\340A\004H\003\210\001\001\022+\n" + "\024ondemand_maintenance\030\034" @@ -334,8 +350,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132..google.cloud.memorystore.v1.MaintenancePolicyB\003\340A\001\022S\n" + "\024maintenance_schedule\030 " + " \001(\01320.google.cloud.memorystore.v1.MaintenanceScheduleB\003\340A\003\022k\n" - + "!cross_instance_replication_config\030! \001(\0132;.goo" - + "gle.cloud.memorystore.v1.CrossInstanceReplicationConfigB\003\340A\001\022;\n" + + "!cross_instance_replication_config\030! \001(\0132;." + + "google.cloud.memorystore.v1.CrossInstanceReplicationConfigB\003\340A\001\022;\n" + ")async_instance_endpoints_deletion_enabled\030," + " \001(\010B\003\340A\001H\007\210\001\001\022?\n" + "\007kms_key\030- \001(\tB)\340A\001\372A#\n" @@ -344,20 +360,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132+.google.cloud.memorystore.v1.EncryptionInfoB\003\340A\003\022S\n" + "\021backup_collection\030/ \001(\tB3\340A\003\372A-\n" + "+memorystore.googleapis.com/BackupCollectionH\t\210\001\001\022X\n" - + "\027automated_backup_config\0300" - + " \001(\01322.google.cloud.memorystore.v1.AutomatedBackupConfigB\003\340A\001\022%\n" + + "\027automated_backup_config\0300 \001(\01322.google.cloud.me" + + "morystore.v1.AutomatedBackupConfigB\003\340A\001\022%\n" + "\023maintenance_version\0301 \001(\tB\003\340A\001H\n" + "\210\001\001\022/\n" + "\035effective_maintenance_version\0302 \001(\tB\003\340A\003H\013\210\001\001\022+\n" + "\036available_maintenance_versions\0303 \003(\tB\003\340A\003\022.\n" + "\034allow_fewer_zones_deployment\0306 \001(\010B\010\030\001\340A\001\340A\005\022W\n" - + "\016server_ca_mode\0308 \001(" - + "\01622.google.cloud.memorystore.v1.Instance.ServerCaModeB\006\340A\001\340A\005H\014\210\001\001\022G\n" + + "\016server_ca_mode\0308" + + " \001(\01622.google.cloud.memorystore.v1.Instance.ServerCaModeB\006\340A\001\340A\005H\014\210\001\001\022G\n" + "\016server_ca_pool\0309 \001(\tB*\340A\001\340A\005\372A!\n" + "\037privateca.googleapis.com/CaPoolH\r" + "\210\001\001\022.\n" + "\031rotate_server_certificate\030:" - + " \001(\010B\006\340A\001\340A\004H\016\210\001\001\032\244\003\n" + + " \001(\010B\006\340A\001\340A\004H\016\210\001\001\022K\n" + + "\020migration_config\030;" + + " \001(\0132,.google.cloud.memorystore.v1.MigrationConfigB\003\340A\003\032\244\003\n" + "\tStateInfo\022V\n" + "\013update_info\030\001 \001(\0132:.google.cloud.me" + "morystore.v1.Instance.StateInfo.UpdateInfoB\003\340A\003H\000\032\266\002\n\n" @@ -390,13 +408,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005value\030\002 \001(\t:\0028\001\0324\n" + "\022EngineConfigsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001\"T\n" + + "\005value\030\002 \001(\t:\0028\001\"c\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\014\n" + "\010CREATING\020\001\022\n\n" + "\006ACTIVE\020\002\022\014\n" + "\010UPDATING\020\003\022\014\n" - + "\010DELETING\020\004\"X\n" + + "\010DELETING\020\004\022\r\n" + + "\tMIGRATING\020\006\"X\n" + "\021AuthorizationMode\022\"\n" + "\036AUTHORIZATION_MODE_UNSPECIFIED\020\000\022\021\n\r" + "AUTH_DISABLED\020\001\022\014\n" @@ -431,9 +450,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "-SERVER_CA_MODE_GOOGLE_MANAGED_PER_INSTANCE_CA\020\001\032\002\010\001\022/\n" + "\'SERVER_CA_MODE_GOOGLE_MANAGED_SHARED_CA\020\002\032\002\010\001\022.\n" + "&SERVER_CA_MODE_CUSTOMER_MANAGED_CAS_CA\020\003\032\002\010\001\032\002\020\001:{\352Ax\n" - + "#memorystore.googleapis.com/" - + "Instance\022.google.cloud.memoryst" - + "ore.v1.PersistenceConfig.PersistenceModeB\003\340A\001\022Q\n\n" - + "rdb_config\030\002 \001(\01328.google.cloud" - + ".memorystore.v1.PersistenceConfig.RDBConfigB\003\340A\001\022Q\n\n" - + "aof_config\030\003 \001(\01328.google.cl" - + "oud.memorystore.v1.PersistenceConfig.AOFConfigB\003\340A\001\032\261\002\n" + + "\004mode\030\001 \001(\016" + + "2>.google.cloud.memorystore.v1.PersistenceConfig.PersistenceModeB\003\340A\001\022Q\n\n" + + "rdb_config\030\002" + + " \001(\01328.google.cloud.memorystore.v1.PersistenceConfig.RDBConfigB\003\340A\001\022Q\n\n" + + "aof_config\030\003" + + " \001(\01328.google.cloud.memorystore.v1.PersistenceConfig.AOFConfigB\003\340A\001\032\261\002\n" + "\tRDBConfig\022i\n" - + "\023rdb_snapshot_period\030\001 \001(\0162G.google.cloud.memorystor" - + "e.v1.PersistenceConfig.RDBConfig.SnapshotPeriodB\003\340A\001\022@\n" + + "\023rdb_snapshot_period\030\001 \001(\0162G" + + ".google.cloud.memorystore.v1.PersistenceConfig.RDBConfig.SnapshotPeriodB\003\340A\001\022@\n" + "\027rdb_snapshot_start_time\030\002" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\001\"w\n" + "\016SnapshotPeriod\022\037\n" @@ -620,8 +666,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014TWELVE_HOURS\020\003\022\025\n" + "\021TWENTY_FOUR_HOURS\020\004\032\277\001\n" + "\tAOFConfig\022_\n" - + "\014append_fsync\030\001 \001(\0162D.go" - + "ogle.cloud.memorystore.v1.PersistenceConfig.AOFConfig.AppendFsyncB\003\340A\001\"Q\n" + + "\014append_fsync\030\001 \001(\0162D.google.cloud.memor" + + "ystore.v1.PersistenceConfig.AOFConfig.AppendFsyncB\003\340A\001\"Q\n" + "\013AppendFsync\022\034\n" + "\030APPEND_FSYNC_UNSPECIFIED\020\000\022\t\n" + "\005NEVER\020\001\022\r\n" @@ -636,18 +682,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007size_gb\030\001 \001(\001B\003\340A\003\"\351\001\n" + "\026ZoneDistributionConfig\022\021\n" + "\004zone\030\002 \001(\tB\003\340A\001\022[\n" - + "\004mode\030\001 \001(\0162H.google.cloud.memorystor" - + "e.v1.ZoneDistributionConfig.ZoneDistributionModeB\003\340A\001\"_\n" + + "\004mode\030\001 \001(\0162H" + + ".google.cloud.memorystore.v1.ZoneDistributionConfig.ZoneDistributionModeB\003\340A\001\"_\n" + "\024ZoneDistributionMode\022&\n" - + "\"ZONE_DISTRIBUTION_MODE_UNSPECIFIED\020\000\022\016\n" - + "\n" + + "\"ZONE_DISTRIBUTION_MODE_UNSPECIFIED\020\000\022\016\n\n" + "MULTI_ZONE\020\001\022\017\n" + "\013SINGLE_ZONE\020\002\"\316\002\n" + "\034RescheduleMaintenanceRequest\0229\n" + "\004name\030\001 \001(\tB+\340A\002\372A%\n" + "#memorystore.googleapis.com/Instance\022f\n" - + "\017reschedule_type\030\002 \001(\0162H.google.clo" - + "ud.memorystore.v1.RescheduleMaintenanceRequest.RescheduleTypeB\003\340A\002\0226\n\r" + + "\017reschedule_type\030\002 \001(\0162H.google.cloud.memorystore.v" + + "1.RescheduleMaintenanceRequest.RescheduleTypeB\003\340A\002\0226\n\r" + "schedule_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\001\"S\n" + "\016RescheduleType\022\037\n" + "\033RESCHEDULE_TYPE_UNSPECIFIED\020\000\022\r\n" @@ -656,8 +701,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024ListInstancesRequest\022;\n" + "\006parent\030\001 \001(" + "\tB+\340A\002\372A%\022#memorystore.googleapis.com/Instance\022\026\n" - + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n" - + "\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\"\177\n" @@ -669,8 +713,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB+\340A\002\372A%\n" + "#memorystore.googleapis.com/Instance\"\315\001\n" + "\025CreateInstanceRequest\022;\n" - + "\006parent\030\001 \001(\tB+" - + "\340A\002\372A%\022#memorystore.googleapis.com/Instance\022\030\n" + + "\006parent\030\001 \001(" + + "\tB+\340A\002\372A%\022#memorystore.googleapis.com/Instance\022\030\n" + "\013instance_id\030\002 \001(\tB\003\340A\002\022<\n" + "\010instance\030\003" + " \001(\0132%.google.cloud.memorystore.v1.InstanceB\003\340A\002\022\037\n\n" @@ -685,8 +729,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "#memorystore.googleapis.com/Instance\022\037\n\n" + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\224\001\n" + "\034ListBackupCollectionsRequest\022C\n" - + "\006parent\030\001 \001(\tB3\340A\002\372A-\022+memor" - + "ystore.googleapis.com/BackupCollection\022\026\n" + + "\006parent\030\001 \001(" + + "\tB3\340A\002\372A-\022+memorystore.googleapis.com/BackupCollection\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\"\230\001\n" + "\035ListBackupCollectionsResponse\022I\n" @@ -728,32 +772,33 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB+\340A\002\372A%\n" + "#memorystore.googleapis.com/Instance\"\211\004\n" + "\024CertificateAuthority\022j\n" - + "\021managed_server_ca\030\002 \001(\0132M.google.cloud.memory" - + "store.v1.CertificateAuthority.ManagedCertificateAuthorityH\000\022\021\n" + + "\021managed_server_ca\030\002 \001(\0132M.google.cloud.memorystore.v1.Certifi" + + "cateAuthority.ManagedCertificateAuthorityH\000\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\032\253\001\n" + "\033ManagedCertificateAuthority\022i\n" - + "\010ca_certs\030\001 \003(\0132W.google.cloud.memorystore.v1.C" - + "ertificateAuthority.ManagedCertificateAuthority.CertChain\032!\n" + + "\010ca_certs\030\001 \003(\0132W.google.cloud.memorystore.v1.CertificateAuthor" + + "ity.ManagedCertificateAuthority.CertChain\032!\n" + "\tCertChain\022\024\n" + "\014certificates\030\001 \003(\t:\266\001\352A\262\001\n" - + "/memorystore.googleapis.com/CertificateAuthority\022Qprojects/{" - + "project}/locations/{location}/instances/" - + "{instance}/certificateAuthority*\026certificateAuthorities2\024certificateAuthorityB\013\n" + + "/memorystore.googleapis.com/CertificateAuthority\022Qprojects/{project}/locatio" + + "ns/{location}/instances/{instance}/certi" + + "ficateAuthority*\026certificateAuthorities2\024certificateAuthorityB\013\n" + "\tserver_ca\"\200\005\n" + "\"SharedRegionalCertificateAuthority\022\200\001\n" - + "\021managed_server_ca\030\002 \001(\0132c.google.cloud.memorystore.v1.SharedRegion" - + "alCertificateAuthority.RegionalManagedCertificateAuthorityH\000\022\021\n" + + "\021managed_server_ca\030\002 \001(\0132c.google.cloud.mem" + + "orystore.v1.SharedRegionalCertificateAut" + + "hority.RegionalManagedCertificateAuthorityH\000\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\032\332\001\n" + "#RegionalManagedCertificateAuthority\022\207\001\n" - + "\010ca_certs\030\001 \003(\0132u.google.cloud.memory" - + "store.v1.SharedRegionalCertificateAuthor" - + "ity.RegionalManagedCertificateAuthority.RegionalCertChain\032)\n" + + "\010ca_certs\030\001 \003(\0132u.google.cloud.memorystore.v1.SharedR" + + "egionalCertificateAuthority.RegionalMana" + + "gedCertificateAuthority.RegionalCertChain\032)\n" + "\021RegionalCertChain\022\024\n" + "\014certificates\030\001 \003(\t:\331\001\352A\325\001\n" - + "=memorystore.googleapis.com/SharedRegionalCertificat" - + "eAuthority\022Jprojects/{project}/locations/{location}/sharedRegionalCertificateAut" - + "hority*$sharedRegionalCertificateAuthori" - + "ties2\"sharedRegionalCertificateAuthorityB\013\n" + + "=memorystore.googleapis.com/", + "SharedRegionalCertificateAuthority\022Jprojects/{project}/locations/{location}/shar" + + "edRegionalCertificateAuthority*$sharedRe" + + "gionalCertificateAuthorities2\"sharedRegionalCertificateAuthorityB\013\n" + "\tserver_ca\"\203\001\n" + ",GetSharedRegionalCertificateAuthorityRequest\022S\n" + "\004name\030\001 \001(\tBE\340A\002\372A?\n" @@ -767,134 +812,132 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026requested_cancellation\030\006 \001(\010B\003\340A\003\022\030\n" + "\013api_version\030\007 \001(\tB\003\340A\003\"\366\004\n" + "\016EncryptionInfo\022N\n" - + "\017encryption_type\030\001" - + " \001(\01620.google.cloud.memorystore.v1.EncryptionInfo.TypeB\003\340A\003\022J\n" + + "\017encryption_type\030\001 \001(\01620.goo" + + "gle.cloud.memorystore.v1.EncryptionInfo.TypeB\003\340A\003\022J\n" + "\020kms_key_versions\030\002 \003(\tB0\340A\003\372A*\n" + "(cloudkms.googleapis.com/CryptoKeyVersion\022[\n" - + "\025kms_key_primary_state\030\003" - + " \001(\01627.google.cloud.memorystore.v1.EncryptionInfo.KmsKeyStateB\003\340A\003\0229\n" - + "\020la", - "st_update_time\030\004 \001(\0132\032.google.protobuf.T" - + "imestampB\003\340A\003\"\\\n\004Type\022\024\n\020TYPE_UNSPECIFIE" - + "D\020\000\022\035\n\031GOOGLE_DEFAULT_ENCRYPTION\020\001\022\037\n\033CU" - + "STOMER_MANAGED_ENCRYPTION\020\002\"\321\001\n\013KmsKeySt" - + "ate\022\035\n\031KMS_KEY_STATE_UNSPECIFIED\020\000\022\013\n\007EN" - + "ABLED\020\001\022\025\n\021PERMISSION_DENIED\020\002\022\014\n\010DISABL" - + "ED\020\003\022\r\n\tDESTROYED\020\004\022\025\n\021DESTROY_SCHEDULED" - + "\020\005\022 \n\034EKM_KEY_UNREACHABLE_DETECTED\020\006\022\024\n\020" - + "BILLING_DISABLED\020\007\022\023\n\017UNKNOWN_FAILURE\020\010*" - + "W\n\023PscConnectionStatus\022%\n!PSC_CONNECTION" - + "_STATUS_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\r\n\tNOT" - + "_FOUND\020\002*\211\001\n\016ConnectionType\022\037\n\033CONNECTIO" - + "N_TYPE_UNSPECIFIED\020\000\022\035\n\031CONNECTION_TYPE_" - + "DISCOVERY\020\001\022\033\n\027CONNECTION_TYPE_PRIMARY\020\002" - + "\022\032\n\026CONNECTION_TYPE_READER\020\0032\343\031\n\013Memorys" - + "tore\022\266\001\n\rListInstances\0221.google.cloud.me" - + "morystore.v1.ListInstancesRequest\0322.goog" - + "le.cloud.memorystore.v1.ListInstancesRes" - + "ponse\">\332A\006parent\202\323\344\223\002/\022-/v1/{parent=proj" - + "ects/*/locations/*}/instances\022\243\001\n\013GetIns" - + "tance\022/.google.cloud.memorystore.v1.GetI" - + "nstanceRequest\032%.google.cloud.memorystor" - + "e.v1.Instance\"<\332A\004name\202\323\344\223\002/\022-/v1/{name=" - + "projects/*/locations/*/instances/*}\022\342\001\n\016" - + "CreateInstance\0222.google.cloud.memorystor" - + "e.v1.CreateInstanceRequest\032\035.google.long" - + "running.Operation\"}\312A\035\n\010Instance\022\021Operat" - + "ionMetadata\332A\033parent,instance,instance_i" - + "d\202\323\344\223\0029\"-/v1/{parent=projects/*/location" - + "s/*}/instances:\010instance\022\344\001\n\016UpdateInsta" - + "nce\0222.google.cloud.memorystore.v1.Update" - + "InstanceRequest\032\035.google.longrunning.Ope" - + "ration\"\177\312A\035\n\010Instance\022\021OperationMetadata" - + "\332A\024instance,update_mask\202\323\344\223\002B26/v1/{inst" - + "ance.name=projects/*/locations/*/instanc" - + "es/*}:\010instance\022\316\001\n\016DeleteInstance\0222.goo" - + "gle.cloud.memorystore.v1.DeleteInstanceR" - + "equest\032\035.google.longrunning.Operation\"i\312" - + "A*\n\025google.protobuf.Empty\022\021OperationMeta" - + "data\332A\004name\202\323\344\223\002/*-/v1/{name=projects/*/" - + "locations/*/instances/*}\022\334\001\n\027GetCertific" - + "ateAuthority\022;.google.cloud.memorystore." - + "v1.GetCertificateAuthorityRequest\0321.goog" - + "le.cloud.memorystore.v1.CertificateAutho" - + "rity\"Q\332A\004name\202\323\344\223\002D\022B/v1/{name=projects/" - + "*/locations/*/instances/*}/certificateAu" - + "thority\022\210\002\n%GetSharedRegionalCertificate" - + "Authority\022I.google.cloud.memorystore.v1." - + "GetSharedRegionalCertificateAuthorityReq" - + "uest\032?.google.cloud.memorystore.v1.Share" - + "dRegionalCertificateAuthority\"S\332A\004name\202\323" - + "\344\223\002F\022D/v1/{name=projects/*/locations/*/s" - + "haredRegionalCertificateAuthority}\022\207\002\n\025R" - + "escheduleMaintenance\0229.google.cloud.memo" - + "rystore.v1.RescheduleMaintenanceRequest\032" - + "\035.google.longrunning.Operation\"\223\001\312A\035\n\010In" - + "stance\022\021OperationMetadata\332A\"name,resched" - + "ule_type,schedule_time\202\323\344\223\002H\"C/v1/{name=" - + "projects/*/locations/*/instances/*}:resc" - + "heduleMaintenance:\001*\022\326\001\n\025ListBackupColle" - + "ctions\0229.google.cloud.memorystore.v1.Lis" - + "tBackupCollectionsRequest\032:.google.cloud" - + ".memorystore.v1.ListBackupCollectionsRes" - + "ponse\"F\332A\006parent\202\323\344\223\0027\0225/v1/{parent=proj" - + "ects/*/locations/*}/backupCollections\022\303\001" - + "\n\023GetBackupCollection\0227.google.cloud.mem" - + "orystore.v1.GetBackupCollectionRequest\032-" - + ".google.cloud.memorystore.v1.BackupColle" - + "ction\"D\332A\004name\202\323\344\223\0027\0225/v1/{name=projects" - + "/*/locations/*/backupCollections/*}\022\302\001\n\013" - + "ListBackups\022/.google.cloud.memorystore.v" - + "1.ListBackupsRequest\0320.google.cloud.memo" - + "rystore.v1.ListBackupsResponse\"P\332A\006paren" - + "t\202\323\344\223\002A\022?/v1/{parent=projects/*/location" - + "s/*/backupCollections/*}/backups\022\257\001\n\tGet" - + "Backup\022-.google.cloud.memorystore.v1.Get" - + "BackupRequest\032#.google.cloud.memorystore" - + ".v1.Backup\"N\332A\004name\202\323\344\223\002A\022?/v1/{name=pro" - + "jects/*/locations/*/backupCollections/*/" - + "backups/*}\022\334\001\n\014DeleteBackup\0220.google.clo" - + "ud.memorystore.v1.DeleteBackupRequest\032\035." - + "google.longrunning.Operation\"{\312A*\n\025googl" - + "e.protobuf.Empty\022\021OperationMetadata\332A\004na" - + "me\202\323\344\223\002A*?/v1/{name=projects/*/locations" - + "/*/backupCollections/*/backups/*}\022\320\001\n\014Ex" - + "portBackup\0220.google.cloud.memorystore.v1" - + ".ExportBackupRequest\032\035.google.longrunnin" - + "g.Operation\"o\312A\033\n\006Backup\022\021OperationMetad" - + "ata\202\323\344\223\002K\"F/v1/{name=projects/*/location" - + "s/*/backupCollections/*/backups/*}:expor" - + "t:\001*\022\313\001\n\016BackupInstance\0222.google.cloud.m" - + "emorystore.v1.BackupInstanceRequest\032\035.go" - + "ogle.longrunning.Operation\"f\312A\035\n\010Instanc" - + "e\022\021OperationMetadata\332A\004name\202\323\344\223\0029\"4/v1/{" - + "name=projects/*/locations/*/instances/*}" - + ":backup:\001*\032N\312A\032memorystore.googleapis.co" - + "m\322A.https://www.googleapis.com/auth/clou" - + "d-platformB\220\007\n\037com.google.cloud.memoryst" - + "ore.v1B\013V1mainProtoP\001ZAcloud.google.com/" - + "go/memorystore/apiv1/memorystorepb;memor" - + "ystorepb\252\002\033Google.Cloud.Memorystore.V1\312\002" - + "\033Google\\Cloud\\Memorystore\\V1\352\002\036Google::C" - + "loud::Memorystore::V1\352An\n%compute.google" - + "apis.com/ForwardingRule\022Eprojects/{proje" - + "ct}/regions/{region}/forwardingRules/{fo" - + "rwarding_rule}\352AN\n\036compute.googleapis.co" - + "m/Network\022,projects/{project}/global/net" - + "works/{network}\352Aw\n(compute.googleapis.c" - + "om/ServiceAttachment\022Kprojects/{project}" - + "/regions/{region}/serviceAttachments/{se" - + "rvice_attachment}\352Ax\n!cloudkms.googleapi" - + "s.com/CryptoKey\022Sprojects/{project}/loca" - + "tions/{location}/keyRings/{key_ring}/cry" - + "ptoKeys/{crypto_key}\352A\246\001\n(cloudkms.googl" - + "eapis.com/CryptoKeyVersion\022zprojects/{pr" - + "oject}/locations/{location}/keyRings/{ke" - + "y_ring}/cryptoKeys/{crypto_key}/cryptoKe" - + "yVersions/{crypto_key_version}\352A\\\n\037priva" - + "teca.googleapis.com/CaPool\0229projects/{pr" - + "oject}/locations/{location}/caPools/{ca_" - + "pool}b\006proto3" + + "\025kms_key_primary_state\030\003 \001(\01627.g" + + "oogle.cloud.memorystore.v1.EncryptionInfo.KmsKeyStateB\003\340A\003\0229\n" + + "\020last_update_time\030\004" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\"\\\n" + + "\004Type\022\024\n" + + "\020TYPE_UNSPECIFIED\020\000\022\035\n" + + "\031GOOGLE_DEFAULT_ENCRYPTION\020\001\022\037\n" + + "\033CUSTOMER_MANAGED_ENCRYPTION\020\002\"\321\001\n" + + "\013KmsKeyState\022\035\n" + + "\031KMS_KEY_STATE_UNSPECIFIED\020\000\022\013\n" + + "\007ENABLED\020\001\022\025\n" + + "\021PERMISSION_DENIED\020\002\022\014\n" + + "\010DISABLED\020\003\022\r\n" + + "\tDESTROYED\020\004\022\025\n" + + "\021DESTROY_SCHEDULED\020\005\022 \n" + + "\034EKM_KEY_UNREACHABLE_DETECTED\020\006\022\024\n" + + "\020BILLING_DISABLED\020\007\022\023\n" + + "\017UNKNOWN_FAILURE\020\010*W\n" + + "\023PscConnectionStatus\022%\n" + + "!PSC_CONNECTION_STATUS_UNSPECIFIED\020\000\022\n\n" + + "\006ACTIVE\020\001\022\r\n" + + "\tNOT_FOUND\020\002*\211\001\n" + + "\016ConnectionType\022\037\n" + + "\033CONNECTION_TYPE_UNSPECIFIED\020\000\022\035\n" + + "\031CONNECTION_TYPE_DISCOVERY\020\001\022\033\n" + + "\027CONNECTION_TYPE_PRIMARY\020\002\022\032\n" + + "\026CONNECTION_TYPE_READER\020\0032\200\036\n" + + "\013Memorystore\022\266\001\n\r" + + "ListInstances\0221.google.cloud.memorystore.v1.Lis" + + "tInstancesRequest\0322.google.cloud.memorys" + + "tore.v1.ListInstancesResponse\">\332A\006parent" + + "\202\323\344\223\002/\022-/v1/{parent=projects/*/locations/*}/instances\022\243\001\n" + + "\013GetInstance\022/.google.cloud.memorystore.v1.GetInstanceRequest\032%" + + ".google.cloud.memorystore.v1.Instance\"<\332" + + "A\004name\202\323\344\223\002/\022-/v1/{name=projects/*/locations/*/instances/*}\022\342\001\n" + + "\016CreateInstance\0222.google.cloud.memorystore.v1.CreateInsta" + + "nceRequest\032\035.google.longrunning.Operation\"}\312A\035\n" + + "\010Instance\022\021OperationMetadata\332A\033pa" + + "rent,instance,instance_id\202\323\344\223\0029\"-/v1/{pa" + + "rent=projects/*/locations/*}/instances:\010instance\022\344\001\n" + + "\016UpdateInstance\0222.google.clo" + + "ud.memorystore.v1.UpdateInstanceRequest\032\035.google.longrunning.Operation\"\177\312A\035\n" + + "\010Instance\022\021OperationMetadata\332A\024instance,upda" + + "te_mask\202\323\344\223\002B26/v1/{instance.name=projec" + + "ts/*/locations/*/instances/*}:\010instance\022\316\001\n" + + "\016DeleteInstance\0222.google.cloud.memory" + + "store.v1.DeleteInstanceRequest\032\035.google.longrunning.Operation\"i\312A*\n" + + "\025google.protobuf.Empty\022\021OperationMetadata\332A\004name\202\323\344\223\002" + + "/*-/v1/{name=projects/*/locations/*/instances/*}\022\334\001\n" + + "\027GetCertificateAuthority\022;.google.cloud.memorystore.v1.GetCertificat" + + "eAuthorityRequest\0321.google.cloud.memorys" + + "tore.v1.CertificateAuthority\"Q\332A\004name\202\323\344" + + "\223\002D\022B/v1/{name=projects/*/locations/*/instances/*}/certificateAuthority\022\210\002\n" + + "%GetSharedRegionalCertificateAuthority\022I.goog" + + "le.cloud.memorystore.v1.GetSharedRegionalCertificateAuthorityRequest\032?.google.cl" + + "oud.memorystore.v1.SharedRegionalCertifi" + + "cateAuthority\"S\332A\004name\202\323\344\223\002F\022D/v1/{name=" + + "projects/*/locations/*/sharedRegionalCertificateAuthority}\022\207\002\n" + + "\025RescheduleMaintenance\0229.google.cloud.memorystore.v1.Resch" + + "eduleMaintenanceRequest\032\035.google.longrunning.Operation\"\223\001\312A\035\n" + + "\010Instance\022\021OperationMetadata\332A\"name,reschedule_type,schedul" + + "e_time\202\323\344\223\002H\"C/v1/{name=projects/*/locat" + + "ions/*/instances/*}:rescheduleMaintenance:\001*\022\326\001\n" + + "\025ListBackupCollections\0229.google.cloud.memorystore.v1.ListBackupCollectio" + + "nsRequest\032:.google.cloud.memorystore.v1." + + "ListBackupCollectionsResponse\"F\332A\006parent" + + "\202\323\344\223\0027\0225/v1/{parent=projects/*/locations/*}/backupCollections\022\303\001\n" + + "\023GetBackupCollection\0227.google.cloud.memorystore.v1.GetB" + + "ackupCollectionRequest\032-.google.cloud.me" + + "morystore.v1.BackupCollection\"D\332A\004name\202\323" + + "\344\223\0027\0225/v1/{name=projects/*/locations/*/backupCollections/*}\022\302\001\n" + + "\013ListBackups\022/.google.cloud.memorystore.v1.ListBackupsReq" + + "uest\0320.google.cloud.memorystore.v1.ListB" + + "ackupsResponse\"P\332A\006parent\202\323\344\223\002A\022?/v1/{pa" + + "rent=projects/*/locations/*/backupCollections/*}/backups\022\257\001\n" + + "\tGetBackup\022-.google.cloud.memorystore.v1.GetBackupRequest\032#." + + "google.cloud.memorystore.v1.Backup\"N\332A\004n" + + "ame\202\323\344\223\002A\022?/v1/{name=projects/*/locations/*/backupCollections/*/backups/*}\022\334\001\n" + + "\014DeleteBackup\0220.google.cloud.memorystore.v" + + "1.DeleteBackupRequest\032\035.google.longrunning.Operation\"{\312A*\n" + + "\025google.protobuf.Empty" + + "\022\021OperationMetadata\332A\004name\202\323\344\223\002A*?/v1/{n" + + "ame=projects/*/locations/*/backupCollections/*/backups/*}\022\320\001\n" + + "\014ExportBackup\0220.google.cloud.memorystore.v1.ExportBackupReq" + + "uest\032\035.google.longrunning.Operation\"o\312A\033\n" + + "\006Backup\022\021OperationMetadata\202\323\344\223\002K\"F/v1/{" + + "name=projects/*/locations/*/backupCollections/*/backups/*}:export:\001*\022\313\001\n" + + "\016BackupInstance\0222.google.cloud.memorystore.v1.Ba" + + "ckupInstanceRequest\032\035.google.longrunning.Operation\"f\312A\035\n" + + "\010Instance\022\021OperationMeta" + + "data\332A\004name\202\323\344\223\0029\"4/v1/{name=projects/*/locations/*/instances/*}:backup:\001*\022\314\001\n" + + "\016StartMigration\0222.google.cloud.memorystore" + + ".v1.StartMigrationRequest\032\035.google.longrunning.Operation\"g\312A\035\n" + + "\010Instance\022\021OperationMetadata\202\323\344\223\002A\" future = memorystoreClient.finishMigrationCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END memorystore_v1_generated_Memorystore_FinishMigration_async] diff --git a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/finishmigration/AsyncFinishMigrationLRO.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/finishmigration/AsyncFinishMigrationLRO.java new file mode 100644 index 000000000000..153ff4b92bf0 --- /dev/null +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/finishmigration/AsyncFinishMigrationLRO.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.memorystore.v1.samples; + +// [START memorystore_v1_generated_Memorystore_FinishMigration_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.memorystore.v1.FinishMigrationRequest; +import com.google.cloud.memorystore.v1.Instance; +import com.google.cloud.memorystore.v1.InstanceName; +import com.google.cloud.memorystore.v1.MemorystoreClient; +import com.google.cloud.memorystore.v1.OperationMetadata; + +public class AsyncFinishMigrationLRO { + + public static void main(String[] args) throws Exception { + asyncFinishMigrationLRO(); + } + + public static void asyncFinishMigrationLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { + FinishMigrationRequest request = + FinishMigrationRequest.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setForce(true) + .build(); + OperationFuture future = + memorystoreClient.finishMigrationOperationCallable().futureCall(request); + // Do something. + Instance response = future.get(); + } + } +} +// [END memorystore_v1_generated_Memorystore_FinishMigration_LRO_async] diff --git a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/finishmigration/SyncFinishMigration.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/finishmigration/SyncFinishMigration.java new file mode 100644 index 000000000000..f8f9a5f8be1e --- /dev/null +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/finishmigration/SyncFinishMigration.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.memorystore.v1.samples; + +// [START memorystore_v1_generated_Memorystore_FinishMigration_sync] +import com.google.cloud.memorystore.v1.FinishMigrationRequest; +import com.google.cloud.memorystore.v1.Instance; +import com.google.cloud.memorystore.v1.InstanceName; +import com.google.cloud.memorystore.v1.MemorystoreClient; + +public class SyncFinishMigration { + + public static void main(String[] args) throws Exception { + syncFinishMigration(); + } + + public static void syncFinishMigration() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { + FinishMigrationRequest request = + FinishMigrationRequest.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setForce(true) + .build(); + Instance response = memorystoreClient.finishMigrationAsync(request).get(); + } + } +} +// [END memorystore_v1_generated_Memorystore_FinishMigration_sync] diff --git a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/finishmigration/SyncFinishMigrationInstancenameBoolean.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/finishmigration/SyncFinishMigrationInstancenameBoolean.java new file mode 100644 index 000000000000..724c79a3d298 --- /dev/null +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/finishmigration/SyncFinishMigrationInstancenameBoolean.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.memorystore.v1.samples; + +// [START memorystore_v1_generated_Memorystore_FinishMigration_InstancenameBoolean_sync] +import com.google.cloud.memorystore.v1.Instance; +import com.google.cloud.memorystore.v1.InstanceName; +import com.google.cloud.memorystore.v1.MemorystoreClient; + +public class SyncFinishMigrationInstancenameBoolean { + + public static void main(String[] args) throws Exception { + syncFinishMigrationInstancenameBoolean(); + } + + public static void syncFinishMigrationInstancenameBoolean() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { + InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + boolean force = true; + Instance response = memorystoreClient.finishMigrationAsync(name, force).get(); + } + } +} +// [END memorystore_v1_generated_Memorystore_FinishMigration_InstancenameBoolean_sync] diff --git a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/finishmigration/SyncFinishMigrationStringBoolean.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/finishmigration/SyncFinishMigrationStringBoolean.java new file mode 100644 index 000000000000..81355a06777e --- /dev/null +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/finishmigration/SyncFinishMigrationStringBoolean.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.memorystore.v1.samples; + +// [START memorystore_v1_generated_Memorystore_FinishMigration_StringBoolean_sync] +import com.google.cloud.memorystore.v1.Instance; +import com.google.cloud.memorystore.v1.InstanceName; +import com.google.cloud.memorystore.v1.MemorystoreClient; + +public class SyncFinishMigrationStringBoolean { + + public static void main(String[] args) throws Exception { + syncFinishMigrationStringBoolean(); + } + + public static void syncFinishMigrationStringBoolean() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { + String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); + boolean force = true; + Instance response = memorystoreClient.finishMigrationAsync(name, force).get(); + } + } +} +// [END memorystore_v1_generated_Memorystore_FinishMigration_StringBoolean_sync] diff --git a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/startmigration/AsyncStartMigration.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/startmigration/AsyncStartMigration.java new file mode 100644 index 000000000000..fec91c5dd595 --- /dev/null +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/startmigration/AsyncStartMigration.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.memorystore.v1.samples; + +// [START memorystore_v1_generated_Memorystore_StartMigration_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.memorystore.v1.InstanceName; +import com.google.cloud.memorystore.v1.MemorystoreClient; +import com.google.cloud.memorystore.v1.StartMigrationRequest; +import com.google.longrunning.Operation; + +public class AsyncStartMigration { + + public static void main(String[] args) throws Exception { + asyncStartMigration(); + } + + public static void asyncStartMigration() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { + StartMigrationRequest request = + StartMigrationRequest.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .build(); + ApiFuture future = memorystoreClient.startMigrationCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END memorystore_v1_generated_Memorystore_StartMigration_async] diff --git a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/startmigration/AsyncStartMigrationLRO.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/startmigration/AsyncStartMigrationLRO.java new file mode 100644 index 000000000000..33b6ae361a35 --- /dev/null +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/startmigration/AsyncStartMigrationLRO.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.memorystore.v1.samples; + +// [START memorystore_v1_generated_Memorystore_StartMigration_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.memorystore.v1.Instance; +import com.google.cloud.memorystore.v1.InstanceName; +import com.google.cloud.memorystore.v1.MemorystoreClient; +import com.google.cloud.memorystore.v1.OperationMetadata; +import com.google.cloud.memorystore.v1.StartMigrationRequest; + +public class AsyncStartMigrationLRO { + + public static void main(String[] args) throws Exception { + asyncStartMigrationLRO(); + } + + public static void asyncStartMigrationLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { + StartMigrationRequest request = + StartMigrationRequest.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .build(); + OperationFuture future = + memorystoreClient.startMigrationOperationCallable().futureCall(request); + // Do something. + Instance response = future.get(); + } + } +} +// [END memorystore_v1_generated_Memorystore_StartMigration_LRO_async] diff --git a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/startmigration/SyncStartMigration.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/startmigration/SyncStartMigration.java new file mode 100644 index 000000000000..54e4425f087a --- /dev/null +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/startmigration/SyncStartMigration.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.memorystore.v1.samples; + +// [START memorystore_v1_generated_Memorystore_StartMigration_sync] +import com.google.cloud.memorystore.v1.Instance; +import com.google.cloud.memorystore.v1.InstanceName; +import com.google.cloud.memorystore.v1.MemorystoreClient; +import com.google.cloud.memorystore.v1.StartMigrationRequest; + +public class SyncStartMigration { + + public static void main(String[] args) throws Exception { + syncStartMigration(); + } + + public static void syncStartMigration() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { + StartMigrationRequest request = + StartMigrationRequest.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .build(); + Instance response = memorystoreClient.startMigrationAsync(request).get(); + } + } +} +// [END memorystore_v1_generated_Memorystore_StartMigration_sync]