From 4db9500eb439e102a9a87fb87365593224c40f54 Mon Sep 17 00:00:00 2001 From: cloud-java-bot Date: Fri, 23 Oct 2026 04:18:02 +0000 Subject: [PATCH 1/2] chore: update googleapis commitish to 7ea340f --- librarian.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/librarian.yaml b/librarian.yaml index 6e32d5eb5179..87a0690f3c3a 100644 --- a/librarian.yaml +++ b/librarian.yaml @@ -16,8 +16,8 @@ version: v0.49.0 repo: googleapis/google-cloud-java sources: googleapis: - commit: 14a161a98ef045be80c12ab69d924504a756f109 - sha256: ce3cee2da77fbdff0e269bc520dc61e8b32efcdec7628b39b9e474a02bc951f6 + commit: 7ea340f0592f6599647ec19e26e67acda028fc1d + sha256: b711fa9153f760ea4246256f05e8092955cf693da6e71eeea28d8ee34c3335d2 showcase: commit: 5158967e8a41c751b15776142d190428ddb7e99f sha256: a31271ff2cdeb7cce91e93a4d58a66dcaaac574c51cc14bd74577ab1eafd3ccd From 37972d72f792a3a0d795ad8612ba7a482b6d61a4 Mon Sep 17 00:00:00 2001 From: cloud-java-bot Date: Fri, 23 Oct 2026 04:18:03 +0000 Subject: [PATCH 2/2] chore: generate libraries --- .../cloud/ces/v1beta/AgentServiceClient.java | 109 + .../ces/v1beta/AgentServiceSettings.java | 11 + .../ces/v1beta/AssistantServiceClient.java | 1395 +++++ .../ces/v1beta/AssistantServiceSettings.java | 317 + .../ces/v1beta/SessionServiceClient.java | 210 + .../ces/v1beta/SessionServiceSettings.java | 39 + .../cloud/ces/v1beta/gapic_metadata.json | 45 + .../google/cloud/ces/v1beta/package-info.java | 21 + .../ces/v1beta/stub/AgentServiceStub.java | 5 + .../v1beta/stub/AgentServiceStubSettings.java | 25 + .../ces/v1beta/stub/AssistantServiceStub.java | 101 + .../stub/AssistantServiceStubSettings.java | 712 +++ .../ces/v1beta/stub/GrpcAgentServiceStub.java | 32 + .../GrpcAssistantServiceCallableFactory.java | 117 + .../v1beta/stub/GrpcAssistantServiceStub.java | 443 ++ .../v1beta/stub/GrpcSessionServiceStub.java | 124 + .../v1beta/stub/HttpJsonAgentServiceStub.java | 62 + ...tpJsonAssistantServiceCallableFactory.java | 105 + .../stub/HttpJsonAssistantServiceStub.java | 667 ++ .../stub/HttpJsonSessionServiceStub.java | 210 + .../ces/v1beta/stub/SessionServiceStub.java | 22 + .../stub/SessionServiceStubSettings.java | 99 +- .../reflect-config.json | 2580 +++++--- .../AgentServiceClientHttpJsonTest.java | 116 + .../ces/v1beta/AgentServiceClientTest.java | 82 + .../AssistantServiceClientHttpJsonTest.java | 742 +++ .../v1beta/AssistantServiceClientTest.java | 684 ++ .../EvaluationServiceClientHttpJsonTest.java | 2 + .../v1beta/EvaluationServiceClientTest.java | 2 + .../ces/v1beta/MockAgentServiceImpl.java | 21 + .../ces/v1beta/MockAssistantService.java | 59 + .../ces/v1beta/MockAssistantServiceImpl.java | 191 + .../ces/v1beta/MockSessionServiceImpl.java | 68 + .../SessionServiceClientHttpJsonTest.java | 123 + .../ces/v1beta/SessionServiceClientTest.java | 171 + .../cloud/ces/v1beta/AgentServiceGrpc.java | 141 +- .../ces/v1beta/AssistantServiceGrpc.java | 1111 ++++ .../cloud/ces/v1beta/SessionServiceGrpc.java | 452 +- .../cloud/ces/v1beta/ActiveTurnInfo.java | 1883 ++++++ .../ces/v1beta/ActiveTurnInfoOrBuilder.java | 206 + .../com/google/cloud/ces/v1beta/Agent.java | 2842 ++++++--- .../cloud/ces/v1beta/AgentCardProto.java | 130 +- .../cloud/ces/v1beta/AgentOrBuilder.java | 46 + .../google/cloud/ces/v1beta/AgentProto.java | 76 +- .../ces/v1beta/AgentRegistryDeployment.java | 624 ++ .../AgentRegistryDeploymentOrBuilder.java | 62 + .../cloud/ces/v1beta/AgentServiceProto.java | 743 +-- .../cloud/ces/v1beta/AmbientSoundConfig.java | 18 +- .../v1beta/AmbientSoundConfigOrBuilder.java | 6 +- .../java/com/google/cloud/ces/v1beta/App.java | 322 + .../google/cloud/ces/v1beta/AppOrBuilder.java | 46 + .../com/google/cloud/ces/v1beta/AppProto.java | 309 +- .../google/cloud/ces/v1beta/AppVersion.java | 332 +- .../cloud/ces/v1beta/AppVersionOrBuilder.java | 40 + .../cloud/ces/v1beta/AppVersionProto.java | 25 +- .../cloud/ces/v1beta/ArtifactChunk.java | 1768 ++++++ .../ces/v1beta/ArtifactChunkOrBuilder.java | 188 + .../cloud/ces/v1beta/AssistantChunk.java | 1916 ++++++ .../ces/v1beta/AssistantChunkOrBuilder.java | 231 + .../v1beta/AssistantConfirmationRequest.java | 2514 ++++++++ ...AssistantConfirmationRequestOrBuilder.java | 313 + .../v1beta/AssistantConfirmationResponse.java | 1091 ++++ ...ssistantConfirmationResponseOrBuilder.java | 128 + .../cloud/ces/v1beta/AssistantMessage.java | 1768 ++++++ .../ces/v1beta/AssistantMessageOrBuilder.java | 222 + .../cloud/ces/v1beta/AssistantOutput.java | 1038 ++++ .../ces/v1beta/AssistantOutputOrBuilder.java | 115 + .../ces/v1beta/AssistantServiceProto.java | 487 ++ .../cloud/ces/v1beta/AssistantSession.java | 3919 ++++++++++++ .../ces/v1beta/AssistantSessionArtifact.java | 1600 +++++ .../AssistantSessionArtifactOrBuilder.java | 193 + .../ces/v1beta/AssistantSessionName.java | 272 + .../ces/v1beta/AssistantSessionOrBuilder.java | 502 ++ .../ces/v1beta/AssistantSessionState.java | 221 + .../cloud/ces/v1beta/AssistantSuggestion.java | 3449 +++++++++++ .../v1beta/AssistantSuggestionOrBuilder.java | 310 + .../ces/v1beta/AudioProcessingConfig.java | 579 +- .../AudioProcessingConfigOrBuilder.java | 66 + .../cloud/ces/v1beta/BargeInConfig.java | 8 +- .../ces/v1beta/BargeInConfigOrBuilder.java | 2 +- .../v1beta/CancelAssistantTurnRequest.java | 793 +++ .../CancelAssistantTurnRequestOrBuilder.java | 82 + .../v1beta/CancelAssistantTurnResponse.java | 508 ++ .../CancelAssistantTurnResponseOrBuilder.java | 42 + .../cloud/ces/v1beta/ChannelProfileProto.java | 54 +- .../ces/v1beta/ChatAiAssistantRequest.java | 1552 +++++ .../ChatAiAssistantRequestOrBuilder.java | 214 + .../ces/v1beta/ChatAiAssistantResponse.java | 2064 +++++++ .../ChatAiAssistantResponseOrBuilder.java | 251 + .../google/cloud/ces/v1beta/Citations.java | 1493 +++++ .../cloud/ces/v1beta/CitationsOrBuilder.java | 67 + .../google/cloud/ces/v1beta/CommonProto.java | 113 +- .../google/cloud/ces/v1beta/Conversation.java | 238 +- .../ces/v1beta/ConversationOrBuilder.java | 4 +- .../cloud/ces/v1beta/ConversationProto.java | 19 +- .../v1beta/CreateAssistantSessionRequest.java | 1410 +++++ ...reateAssistantSessionRequestOrBuilder.java | 159 + .../cloud/ces/v1beta/CustomVoiceSample.java | 3422 ++++++++++ .../v1beta/CustomVoiceSampleOrBuilder.java | 279 + .../cloud/ces/v1beta/DashboardSettings.java | 639 ++ .../v1beta/DashboardSettingsOrBuilder.java | 66 + .../cloud/ces/v1beta/DataStoreTool.java | 974 +++ .../cloud/ces/v1beta/DataStoreToolProto.java | 45 +- .../v1beta/DeleteAssistantSessionRequest.java | 627 ++ ...eleteAssistantSessionRequestOrBuilder.java | 62 + .../ces/v1beta/DeleteConversationRequest.java | 14 +- .../DeleteConversationRequestOrBuilder.java | 4 +- .../ces/v1beta/DeployChannelResponse.java | 700 +++ .../DeployChannelResponseOrBuilder.java | 65 + .../google/cloud/ces/v1beta/Deployment.java | 1050 ++++ .../cloud/ces/v1beta/DeploymentOrBuilder.java | 133 + .../cloud/ces/v1beta/EvaluationConfig.java | 86 +- .../ces/v1beta/EvaluationConfigOrBuilder.java | 26 +- .../v1beta/EvaluationMetricsThresholds.java | 14 +- .../EvaluationMetricsThresholdsOrBuilder.java | 4 +- .../cloud/ces/v1beta/EvaluationProto.java | 299 +- .../cloud/ces/v1beta/EvaluationResult.java | 679 +- .../ces/v1beta/EvaluationResultOrBuilder.java | 82 +- .../cloud/ces/v1beta/EvaluationRun.java | 8 +- .../ces/v1beta/EvaluationRunOrBuilder.java | 4 +- .../com/google/cloud/ces/v1beta/Event.java | 286 +- .../cloud/ces/v1beta/EventOrBuilder.java | 37 + .../google/cloud/ces/v1beta/ExampleProto.java | 43 +- .../GenerateOnboardingSuggestionsRequest.java | 729 +++ ...OnboardingSuggestionsRequestOrBuilder.java | 74 + ...GenerateOnboardingSuggestionsResponse.java | 1535 +++++ ...nboardingSuggestionsResponseOrBuilder.java | 146 + .../v1beta/GetAssistantSessionRequest.java | 627 ++ .../GetAssistantSessionRequestOrBuilder.java | 62 + .../ces/v1beta/GetConversationRequest.java | 14 +- .../GetConversationRequestOrBuilder.java | 4 +- .../google/cloud/ces/v1beta/Guardrail.java | 2509 +++++++- .../cloud/ces/v1beta/GuardrailOrBuilder.java | 43 + .../cloud/ces/v1beta/GuardrailProto.java | 98 +- .../com/google/cloud/ces/v1beta/Image.java | 189 + .../cloud/ces/v1beta/ImageOrBuilder.java | 26 + .../cloud/ces/v1beta/ImportAppRequest.java | 752 ++- .../ces/v1beta/ImportAppRequestOrBuilder.java | 83 + .../ces/v1beta/InstagramCredentials.java | 28 +- .../v1beta/InstagramCredentialsOrBuilder.java | 8 +- .../cloud/ces/v1beta/LanguageSettings.java | 30 +- .../ces/v1beta/LanguageSettingsOrBuilder.java | 8 +- .../v1beta/ListAssistantSessionsRequest.java | 1141 ++++ ...ListAssistantSessionsRequestOrBuilder.java | 138 + .../v1beta/ListAssistantSessionsResponse.java | 1148 ++++ ...istAssistantSessionsResponseOrBuilder.java | 116 + .../cloud/ces/v1beta/LoggingSettings.java | 141 + .../ces/v1beta/LoggingSettingsOrBuilder.java | 24 + .../cloud/ces/v1beta/ModelSettings.java | 392 ++ .../ces/v1beta/ModelSettingsOrBuilder.java | 30 + .../ces/v1beta/OperationCompletedEvent.java | 1938 ++++++ .../OperationCompletedEventOrBuilder.java | 241 + .../ces/v1beta/OptionQuestionsChunk.java | 3217 ++++++++++ .../v1beta/OptionQuestionsChunkOrBuilder.java | 90 + .../cloud/ces/v1beta/RedactionConfig.java | 20 +- .../ces/v1beta/RedactionConfigOrBuilder.java | 5 +- .../cloud/ces/v1beta/RemoteA2aConfig.java | 2472 ++++++++ .../ces/v1beta/RemoteA2aConfigOrBuilder.java | 360 ++ .../cloud/ces/v1beta/RemoteAgentTool.java | 1187 ++++ .../ces/v1beta/RemoteAgentToolOrBuilder.java | 215 + .../cloud/ces/v1beta/RunAssistantRequest.java | 1536 +++++ .../v1beta/RunAssistantRequestOrBuilder.java | 169 + .../ces/v1beta/RunAssistantResponse.java | 899 +++ .../v1beta/RunAssistantResponseOrBuilder.java | 101 + .../ces/v1beta/RunEvaluationRequest.java | 28 +- .../v1beta/RunEvaluationRequestOrBuilder.java | 8 +- .../cloud/ces/v1beta/SessionCheckpoint.java | 602 ++ .../v1beta/SessionCheckpointOrBuilder.java | 56 + .../cloud/ces/v1beta/SessionConfig.java | 359 +- .../ces/v1beta/SessionConfigOrBuilder.java | 56 +- .../google/cloud/ces/v1beta/SessionInput.java | 475 +- .../ces/v1beta/SessionInputOrBuilder.java | 64 + .../cloud/ces/v1beta/SessionOutput.java | 598 +- .../ces/v1beta/SessionOutputOrBuilder.java | 76 + .../cloud/ces/v1beta/SessionServiceProto.java | 647 +- .../v1beta/StreamChatAiAssistantRequest.java | 2929 +++++++++ ...StreamChatAiAssistantRequestOrBuilder.java | 406 ++ .../v1beta/StreamChatAiAssistantResponse.java | 5483 +++++++++++++++++ ...treamChatAiAssistantResponseOrBuilder.java | 691 +++ .../com/google/cloud/ces/v1beta/Tool.java | 101 + .../com/google/cloud/ces/v1beta/ToolCall.java | 406 ++ .../cloud/ces/v1beta/ToolCallOrBuilder.java | 60 + .../cloud/ces/v1beta/ToolOrBuilder.java | 14 + .../google/cloud/ces/v1beta/ToolProto.java | 14 +- .../google/cloud/ces/v1beta/ToolResponse.java | 406 ++ .../ces/v1beta/ToolResponseOrBuilder.java | 60 + .../cloud/ces/v1beta/TurnCompletedEvent.java | 1061 ++++ .../v1beta/TurnCompletedEventOrBuilder.java | 96 + .../cloud/ces/v1beta/TurnHandoffEvent.java | 906 +++ .../ces/v1beta/TurnHandoffEventOrBuilder.java | 80 + .../google/cloud/ces/v1beta/TurnMetadata.java | 1102 ++++ .../ces/v1beta/TurnMetadataOrBuilder.java | 107 + .../cloud/ces/v1beta/TurnResumeSnapshot.java | 1562 +++++ .../v1beta/TurnResumeSnapshotOrBuilder.java | 169 + .../google/cloud/ces/v1beta/TypedPayload.java | 1338 ++++ .../ces/v1beta/TypedPayloadOrBuilder.java | 154 + .../com/google/cloud/ces/v1beta/UiEvent.java | 788 +++ .../cloud/ces/v1beta/UiEventOrBuilder.java | 82 + .../ces/v1beta/UpdateAppVersionRequest.java | 1025 +++ .../UpdateAppVersionRequestOrBuilder.java | 114 + .../ces/v1beta/UserResponseSuggestions.java | 710 +++ .../UserResponseSuggestionsOrBuilder.java | 86 + .../cloud/ces/v1beta/WhatsAppCredentials.java | 28 +- .../v1beta/WhatsAppCredentialsOrBuilder.java | 8 +- .../proto/google/cloud/ces/v1beta/agent.proto | 13 + .../google/cloud/ces/v1beta/agent_card.proto | 58 + .../cloud/ces/v1beta/agent_service.proto | 43 + .../proto/google/cloud/ces/v1beta/app.proto | 120 +- .../google/cloud/ces/v1beta/app_version.proto | 4 + .../cloud/ces/v1beta/assistant_service.proto | 524 ++ .../google/cloud/ces/v1beta/common.proto | 38 + .../cloud/ces/v1beta/conversation.proto | 4 + .../cloud/ces/v1beta/data_store_tool.proto | 13 + .../google/cloud/ces/v1beta/deployment.proto | 57 +- .../google/cloud/ces/v1beta/evaluation.proto | 29 +- .../google/cloud/ces/v1beta/example.proto | 23 + .../google/cloud/ces/v1beta/guardrail.proto | 80 +- .../cloud/ces/v1beta/session_service.proto | 711 ++- .../proto/google/cloud/ces/v1beta/tool.proto | 4 + .../AsyncUpdateAppVersion.java | 51 + .../SyncUpdateAppVersion.java | 47 + ...ncUpdateAppVersionAppversionFieldmask.java | 43 + .../chataiassistant/AsyncChatAiAssistant.java | 58 + .../chataiassistant/SyncChatAiAssistant.java | 54 + .../SyncCreateSetCredentialsProvider.java | 45 + .../create/SyncCreateSetEndpoint.java | 42 + .../SyncCreateUseHttpJsonTransport.java | 41 + .../AsyncCreateAssistantSession.java | 54 + .../SyncCreateAssistantSession.java | 50 + ...ncCreateAssistantSessionAppnameString.java | 44 + ...yncCreateAssistantSessionStringString.java | 44 + .../AsyncDeleteAssistantSession.java | 52 + .../SyncDeleteAssistantSession.java | 48 + ...eAssistantSessionAssistantsessionname.java | 43 + .../SyncDeleteAssistantSessionString.java | 44 + .../AsyncGetAssistantSession.java | 52 + .../SyncGetAssistantSession.java | 48 + ...tAssistantSessionAssistantsessionname.java | 43 + .../SyncGetAssistantSessionString.java | 44 + .../getlocation/AsyncGetLocation.java | 45 + .../getlocation/SyncGetLocation.java | 42 + .../AsyncListAssistantSessions.java | 55 + .../AsyncListAssistantSessionsPaged.java | 63 + .../SyncListAssistantSessions.java | 52 + .../SyncListAssistantSessionsAppname.java | 45 + .../SyncListAssistantSessionsString.java | 45 + .../listlocations/AsyncListLocations.java | 54 + .../AsyncListLocationsPaged.java | 62 + .../listlocations/SyncListLocations.java | 50 + .../runassistant/AsyncRunAssistant.java | 56 + .../runassistant/SyncRunAssistant.java | 52 + .../SyncGetAssistantSession.java | 56 + .../AsyncCancelAssistantTurn.java | 50 + .../SyncCancelAssistantTurn.java | 46 + .../AsyncGenerateOnboardingSuggestions.java | 51 + .../SyncGenerateOnboardingSuggestions.java | 48 + .../AsyncStreamChatAiAssistant.java | 65 + .../SyncGetAssistantSession.java | 56 + .../v1/DataAgentServiceClient.java | 17 +- .../v1/stub/DataAgentServiceStubSettings.java | 6 +- .../v1/stub/DataChatServiceStubSettings.java | 6 +- .../reflect-config.json | 36 + .../v1/DataAgentServiceGrpc.java | 15 +- .../v1/BigQueryDatasetReference.java | 793 +++ .../v1/BigQueryDatasetReferenceOrBuilder.java | 80 + .../v1/BigQueryTableReferences.java | 443 +- .../v1/BigQueryTableReferencesOrBuilder.java | 73 + .../geminidataanalytics/v1/ChatRequest.java | 8 +- .../geminidataanalytics/v1/DataAgent.java | 258 +- .../v1/DataAgentOrBuilder.java | 67 +- .../v1/DatasourceProto.java | 111 +- .../geminidataanalytics/v1/SearchScope.java | 1321 ++++ .../v1/SearchScopeOrBuilder.java | 152 + .../geminidataanalytics/v1/data_agent.proto | 24 +- .../v1/data_agent_service.proto | 3 +- .../v1/data_chat_service.proto | 4 +- .../geminidataanalytics/v1/datasource.proto | 42 + 277 files changed, 110217 insertions(+), 3140 deletions(-) create mode 100644 java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/AssistantServiceClient.java create mode 100644 java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/AssistantServiceSettings.java create mode 100644 java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/AssistantServiceStub.java create mode 100644 java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/AssistantServiceStubSettings.java create mode 100644 java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/GrpcAssistantServiceCallableFactory.java create mode 100644 java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/GrpcAssistantServiceStub.java create mode 100644 java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/HttpJsonAssistantServiceCallableFactory.java create mode 100644 java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/HttpJsonAssistantServiceStub.java create mode 100644 java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/AssistantServiceClientHttpJsonTest.java create mode 100644 java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/AssistantServiceClientTest.java create mode 100644 java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/MockAssistantService.java create mode 100644 java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/MockAssistantServiceImpl.java create mode 100644 java-ces/grpc-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantServiceGrpc.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ActiveTurnInfo.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ActiveTurnInfoOrBuilder.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentRegistryDeployment.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentRegistryDeploymentOrBuilder.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ArtifactChunk.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ArtifactChunkOrBuilder.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantChunk.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantChunkOrBuilder.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantConfirmationRequest.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantConfirmationRequestOrBuilder.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantConfirmationResponse.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantConfirmationResponseOrBuilder.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantMessage.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantMessageOrBuilder.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantOutput.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantOutputOrBuilder.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantServiceProto.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantSession.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantSessionArtifact.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantSessionArtifactOrBuilder.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantSessionName.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantSessionOrBuilder.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantSessionState.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantSuggestion.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantSuggestionOrBuilder.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CancelAssistantTurnRequest.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CancelAssistantTurnRequestOrBuilder.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CancelAssistantTurnResponse.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CancelAssistantTurnResponseOrBuilder.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ChatAiAssistantRequest.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ChatAiAssistantRequestOrBuilder.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ChatAiAssistantResponse.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ChatAiAssistantResponseOrBuilder.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CreateAssistantSessionRequest.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CreateAssistantSessionRequestOrBuilder.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CustomVoiceSample.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CustomVoiceSampleOrBuilder.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DashboardSettings.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DashboardSettingsOrBuilder.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DeleteAssistantSessionRequest.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DeleteAssistantSessionRequestOrBuilder.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DeployChannelResponse.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DeployChannelResponseOrBuilder.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GenerateOnboardingSuggestionsRequest.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GenerateOnboardingSuggestionsRequestOrBuilder.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GenerateOnboardingSuggestionsResponse.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GenerateOnboardingSuggestionsResponseOrBuilder.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GetAssistantSessionRequest.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GetAssistantSessionRequestOrBuilder.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ListAssistantSessionsRequest.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ListAssistantSessionsRequestOrBuilder.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ListAssistantSessionsResponse.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ListAssistantSessionsResponseOrBuilder.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/OperationCompletedEvent.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/OperationCompletedEventOrBuilder.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/OptionQuestionsChunk.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/OptionQuestionsChunkOrBuilder.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/RemoteA2aConfig.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/RemoteA2aConfigOrBuilder.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/RunAssistantRequest.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/RunAssistantRequestOrBuilder.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/RunAssistantResponse.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/RunAssistantResponseOrBuilder.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/SessionCheckpoint.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/SessionCheckpointOrBuilder.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/StreamChatAiAssistantRequest.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/StreamChatAiAssistantRequestOrBuilder.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/StreamChatAiAssistantResponse.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/StreamChatAiAssistantResponseOrBuilder.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/TurnCompletedEvent.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/TurnCompletedEventOrBuilder.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/TurnHandoffEvent.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/TurnHandoffEventOrBuilder.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/TurnMetadata.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/TurnMetadataOrBuilder.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/TurnResumeSnapshot.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/TurnResumeSnapshotOrBuilder.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/TypedPayload.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/TypedPayloadOrBuilder.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/UiEvent.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/UiEventOrBuilder.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/UpdateAppVersionRequest.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/UpdateAppVersionRequestOrBuilder.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/UserResponseSuggestions.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/UserResponseSuggestionsOrBuilder.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/assistant_service.proto create mode 100644 java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/agentservice/updateappversion/AsyncUpdateAppVersion.java create mode 100644 java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/agentservice/updateappversion/SyncUpdateAppVersion.java create mode 100644 java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/agentservice/updateappversion/SyncUpdateAppVersionAppversionFieldmask.java create mode 100644 java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/assistantservice/chataiassistant/AsyncChatAiAssistant.java create mode 100644 java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/assistantservice/chataiassistant/SyncChatAiAssistant.java create mode 100644 java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/assistantservice/create/SyncCreateSetCredentialsProvider.java create mode 100644 java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/assistantservice/create/SyncCreateSetEndpoint.java create mode 100644 java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/assistantservice/create/SyncCreateUseHttpJsonTransport.java create mode 100644 java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/assistantservice/createassistantsession/AsyncCreateAssistantSession.java create mode 100644 java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/assistantservice/createassistantsession/SyncCreateAssistantSession.java create mode 100644 java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/assistantservice/createassistantsession/SyncCreateAssistantSessionAppnameString.java create mode 100644 java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/assistantservice/createassistantsession/SyncCreateAssistantSessionStringString.java create mode 100644 java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/assistantservice/deleteassistantsession/AsyncDeleteAssistantSession.java create mode 100644 java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/assistantservice/deleteassistantsession/SyncDeleteAssistantSession.java create mode 100644 java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/assistantservice/deleteassistantsession/SyncDeleteAssistantSessionAssistantsessionname.java create mode 100644 java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/assistantservice/deleteassistantsession/SyncDeleteAssistantSessionString.java create mode 100644 java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/assistantservice/getassistantsession/AsyncGetAssistantSession.java create mode 100644 java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/assistantservice/getassistantsession/SyncGetAssistantSession.java create mode 100644 java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/assistantservice/getassistantsession/SyncGetAssistantSessionAssistantsessionname.java create mode 100644 java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/assistantservice/getassistantsession/SyncGetAssistantSessionString.java create mode 100644 java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/assistantservice/getlocation/AsyncGetLocation.java create mode 100644 java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/assistantservice/getlocation/SyncGetLocation.java create mode 100644 java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/assistantservice/listassistantsessions/AsyncListAssistantSessions.java create mode 100644 java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/assistantservice/listassistantsessions/AsyncListAssistantSessionsPaged.java create mode 100644 java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/assistantservice/listassistantsessions/SyncListAssistantSessions.java create mode 100644 java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/assistantservice/listassistantsessions/SyncListAssistantSessionsAppname.java create mode 100644 java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/assistantservice/listassistantsessions/SyncListAssistantSessionsString.java create mode 100644 java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/assistantservice/listlocations/AsyncListLocations.java create mode 100644 java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/assistantservice/listlocations/AsyncListLocationsPaged.java create mode 100644 java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/assistantservice/listlocations/SyncListLocations.java create mode 100644 java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/assistantservice/runassistant/AsyncRunAssistant.java create mode 100644 java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/assistantservice/runassistant/SyncRunAssistant.java create mode 100644 java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/assistantservicesettings/getassistantsession/SyncGetAssistantSession.java create mode 100644 java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/sessionservice/cancelassistantturn/AsyncCancelAssistantTurn.java create mode 100644 java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/sessionservice/cancelassistantturn/SyncCancelAssistantTurn.java create mode 100644 java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/sessionservice/generateonboardingsuggestions/AsyncGenerateOnboardingSuggestions.java create mode 100644 java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/sessionservice/generateonboardingsuggestions/SyncGenerateOnboardingSuggestions.java create mode 100644 java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/sessionservice/streamchataiassistant/AsyncStreamChatAiAssistant.java create mode 100644 java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/stub/assistantservicestubsettings/getassistantsession/SyncGetAssistantSession.java create mode 100644 java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/BigQueryDatasetReference.java create mode 100644 java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/BigQueryDatasetReferenceOrBuilder.java create mode 100644 java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/SearchScope.java create mode 100644 java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/SearchScopeOrBuilder.java diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/AgentServiceClient.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/AgentServiceClient.java index 800d23198481..0e2b0286e8cd 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/AgentServiceClient.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/AgentServiceClient.java @@ -972,6 +972,24 @@ * * * + *

UpdateAppVersion + *

Updates the specified app version. + * + *

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

+ * + *

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

+ * + *

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

+ * + * + * + * *

DeleteAppVersion *

Deletes the specified app version. * @@ -7574,6 +7592,97 @@ public final UnaryCallable createAppVersion return stub.createAppVersionCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the specified app version. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
+   *   AppVersion appVersion = AppVersion.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   AppVersion response = agentServiceClient.updateAppVersion(appVersion, updateMask);
+   * }
+   * }
+ * + * @param appVersion Required. The app version to update. + * @param updateMask Optional. The list of fields to update. If empty, fields `display_name` and + * `description` will be updated. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AppVersion updateAppVersion(AppVersion appVersion, FieldMask updateMask) { + UpdateAppVersionRequest request = + UpdateAppVersionRequest.newBuilder() + .setAppVersion(appVersion) + .setUpdateMask(updateMask) + .build(); + return updateAppVersion(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the specified app version. + * + *

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
+   *   UpdateAppVersionRequest request =
+   *       UpdateAppVersionRequest.newBuilder()
+   *           .setAppVersion(AppVersion.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       agentServiceClient.updateAppVersionCallable().futureCall(request);
+   *   // Do something.
+   *   AppVersion response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateAppVersionCallable() { + return stub.updateAppVersionCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes the specified app version. diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/AgentServiceSettings.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/AgentServiceSettings.java index a7dbe6f0b0f4..10b8eef338ea 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/AgentServiceSettings.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/AgentServiceSettings.java @@ -411,6 +411,11 @@ public UnaryCallSettings createAppVersionSe return ((AgentServiceStubSettings) getStubSettings()).createAppVersionSettings(); } + /** Returns the object with the settings used for calls to updateAppVersion. */ + public UnaryCallSettings updateAppVersionSettings() { + return ((AgentServiceStubSettings) getStubSettings()).updateAppVersionSettings(); + } + /** Returns the object with the settings used for calls to deleteAppVersion. */ public UnaryCallSettings deleteAppVersionSettings() { return ((AgentServiceStubSettings) getStubSettings()).deleteAppVersionSettings(); @@ -861,6 +866,12 @@ public UnaryCallSettings.Builder getAppVersion return getStubSettingsBuilder().createAppVersionSettings(); } + /** Returns the builder for the settings used for calls to updateAppVersion. */ + public UnaryCallSettings.Builder + updateAppVersionSettings() { + return getStubSettingsBuilder().updateAppVersionSettings(); + } + /** Returns the builder for the settings used for calls to deleteAppVersion. */ public UnaryCallSettings.Builder deleteAppVersionSettings() { return getStubSettingsBuilder().deleteAppVersionSettings(); diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/AssistantServiceClient.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/AssistantServiceClient.java new file mode 100644 index 000000000000..15652d085159 --- /dev/null +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/AssistantServiceClient.java @@ -0,0 +1,1395 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1beta; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.ces.v1beta.stub.AssistantServiceStub; +import com.google.cloud.ces.v1beta.stub.AssistantServiceStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: The service that manages assistant-related resources in Customer Engagement + * Suite (CES). The assistant, Arc, is a conversational agent embedded in CES applications to help + * users with building their agents. + * + *

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 (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+ *   AssistantSessionName name =
+ *       AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]");
+ *   AssistantSession response = assistantServiceClient.getAssistantSession(name);
+ * }
+ * }
+ * + *

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

ListAssistantSessions

Lists all assistant sessions in the given app.

+ *

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

+ *
    + *
  • listAssistantSessions(ListAssistantSessionsRequest request) + *

+ *

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

+ *
    + *
  • listAssistantSessions(AppName parent) + *

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

+ *
    + *
  • listAssistantSessionsPagedCallable() + *

  • listAssistantSessionsCallable() + *

+ *

GetAssistantSession

Gets details of the specified assistant session.

+ *

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

+ *
    + *
  • getAssistantSession(GetAssistantSessionRequest request) + *

+ *

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

+ *
    + *
  • getAssistantSession(AssistantSessionName name) + *

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

+ *
    + *
  • getAssistantSessionCallable() + *

+ *

CreateAssistantSession

Creates a new assistant session in the given app.

+ *

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

+ *
    + *
  • createAssistantSession(CreateAssistantSessionRequest request) + *

+ *

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

+ *
    + *
  • createAssistantSession(AppName parent, String assistantSessionId) + *

  • createAssistantSession(String parent, String assistantSessionId) + *

+ *

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

+ *
    + *
  • createAssistantSessionCallable() + *

+ *

DeleteAssistantSession

Deletes the specified assistant session.

+ *

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

+ *
    + *
  • deleteAssistantSession(DeleteAssistantSessionRequest request) + *

+ *

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

+ *
    + *
  • deleteAssistantSession(AssistantSessionName name) + *

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

+ *
    + *
  • deleteAssistantSessionCallable() + *

+ *

RunAssistant

Runs the assistant agent for the specified assistant session.

+ *

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

+ *
    + *
  • runAssistant(RunAssistantRequest request) + *

+ *

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

+ *
    + *
  • runAssistantCallable() + *

+ *

ChatAiAssistant

Runs Arc, the AI assistant, for the specified assistant session.

+ *

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

+ *
    + *
  • chatAiAssistant(ChatAiAssistantRequest request) + *

+ *

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

+ *
    + *
  • chatAiAssistantCallable() + *

+ *

ListLocations

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

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

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

+ *

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

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

+ *

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

+ *
    + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() + *

+ *

GetLocation

Gets information about a location.

+ *

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

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

+ *

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

+ *
    + *
  • getLocationCallable() + *

+ *
+ * + *

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 AssistantServiceSettings 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
+ * AssistantServiceSettings assistantServiceSettings =
+ *     AssistantServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * AssistantServiceClient assistantServiceClient =
+ *     AssistantServiceClient.create(assistantServiceSettings);
+ * }
+ * + *

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
+ * AssistantServiceSettings assistantServiceSettings =
+ *     AssistantServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * AssistantServiceClient assistantServiceClient =
+ *     AssistantServiceClient.create(assistantServiceSettings);
+ * }
+ * + *

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
+ * AssistantServiceSettings assistantServiceSettings =
+ *     AssistantServiceSettings.newHttpJsonBuilder().build();
+ * AssistantServiceClient assistantServiceClient =
+ *     AssistantServiceClient.create(assistantServiceSettings);
+ * }
+ * + *

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

Sample code: + * + *

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

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+   *   ListAssistantSessionsRequest request =
+   *       ListAssistantSessionsRequest.newBuilder()
+   *           .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   for (AssistantSession element :
+   *       assistantServiceClient.listAssistantSessions(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 ListAssistantSessionsPagedResponse listAssistantSessions( + ListAssistantSessionsRequest request) { + return listAssistantSessionsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all assistant sessions in the given app. + * + *

Sample code: + * + *

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

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+   *   AssistantSessionName name =
+   *       AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]");
+   *   AssistantSession response = assistantServiceClient.getAssistantSession(name);
+   * }
+   * }
+ * + * @param name Required. The name of the assistant session to retrieve. Format: + * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AssistantSession getAssistantSession(@Nullable AssistantSessionName name) { + GetAssistantSessionRequest request = + GetAssistantSessionRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getAssistantSession(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of the specified assistant session. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+   *   String name =
+   *       AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]")
+   *           .toString();
+   *   AssistantSession response = assistantServiceClient.getAssistantSession(name);
+   * }
+   * }
+ * + * @param name Required. The name of the assistant session to retrieve. Format: + * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AssistantSession getAssistantSession(String name) { + GetAssistantSessionRequest request = + GetAssistantSessionRequest.newBuilder().setName(name).build(); + return getAssistantSession(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of the specified assistant session. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+   *   GetAssistantSessionRequest request =
+   *       GetAssistantSessionRequest.newBuilder()
+   *           .setName(
+   *               AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]")
+   *                   .toString())
+   *           .build();
+   *   AssistantSession response = assistantServiceClient.getAssistantSession(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 AssistantSession getAssistantSession(GetAssistantSessionRequest request) { + return getAssistantSessionCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of the specified assistant session. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+   *   GetAssistantSessionRequest request =
+   *       GetAssistantSessionRequest.newBuilder()
+   *           .setName(
+   *               AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       assistantServiceClient.getAssistantSessionCallable().futureCall(request);
+   *   // Do something.
+   *   AssistantSession response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getAssistantSessionCallable() { + return stub.getAssistantSessionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new assistant session in the given app. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+   *   AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]");
+   *   String assistantSessionId = "assistantSessionId-1566358253";
+   *   AssistantSession response =
+   *       assistantServiceClient.createAssistantSession(parent, assistantSessionId);
+   * }
+   * }
+ * + * @param parent Required. The app to create the assistant session in Format: + * `projects/{project}/locations/{location}/apps/{app}` + * @param assistantSessionId Optional. The ID to use for the assistant session, which will become + * the final component of the assistant session's resource name. If not provided, a unique ID + * will be automatically assigned for the assistant session. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AssistantSession createAssistantSession( + @Nullable AppName parent, String assistantSessionId) { + CreateAssistantSessionRequest request = + CreateAssistantSessionRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setAssistantSessionId(assistantSessionId) + .build(); + return createAssistantSession(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new assistant session in the given app. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+   *   String parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString();
+   *   String assistantSessionId = "assistantSessionId-1566358253";
+   *   AssistantSession response =
+   *       assistantServiceClient.createAssistantSession(parent, assistantSessionId);
+   * }
+   * }
+ * + * @param parent Required. The app to create the assistant session in Format: + * `projects/{project}/locations/{location}/apps/{app}` + * @param assistantSessionId Optional. The ID to use for the assistant session, which will become + * the final component of the assistant session's resource name. If not provided, a unique ID + * will be automatically assigned for the assistant session. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AssistantSession createAssistantSession(String parent, String assistantSessionId) { + CreateAssistantSessionRequest request = + CreateAssistantSessionRequest.newBuilder() + .setParent(parent) + .setAssistantSessionId(assistantSessionId) + .build(); + return createAssistantSession(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new assistant session in the given app. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+   *   CreateAssistantSessionRequest request =
+   *       CreateAssistantSessionRequest.newBuilder()
+   *           .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
+   *           .setAssistantSessionId("assistantSessionId-1566358253")
+   *           .addAllAssistantSessionMessages(new ArrayList())
+   *           .build();
+   *   AssistantSession response = assistantServiceClient.createAssistantSession(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 AssistantSession createAssistantSession(CreateAssistantSessionRequest request) { + return createAssistantSessionCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new assistant session in the given app. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+   *   CreateAssistantSessionRequest request =
+   *       CreateAssistantSessionRequest.newBuilder()
+   *           .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
+   *           .setAssistantSessionId("assistantSessionId-1566358253")
+   *           .addAllAssistantSessionMessages(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       assistantServiceClient.createAssistantSessionCallable().futureCall(request);
+   *   // Do something.
+   *   AssistantSession response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + createAssistantSessionCallable() { + return stub.createAssistantSessionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified assistant session. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+   *   AssistantSessionName name =
+   *       AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]");
+   *   assistantServiceClient.deleteAssistantSession(name);
+   * }
+   * }
+ * + * @param name Required. The name of the assistant session to delete. Format: + * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteAssistantSession(@Nullable AssistantSessionName name) { + DeleteAssistantSessionRequest request = + DeleteAssistantSessionRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + deleteAssistantSession(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified assistant session. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+   *   String name =
+   *       AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]")
+   *           .toString();
+   *   assistantServiceClient.deleteAssistantSession(name);
+   * }
+   * }
+ * + * @param name Required. The name of the assistant session to delete. Format: + * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteAssistantSession(String name) { + DeleteAssistantSessionRequest request = + DeleteAssistantSessionRequest.newBuilder().setName(name).build(); + deleteAssistantSession(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified assistant session. + * + *

Sample code: + * + *

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

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+   *   RunAssistantRequest request =
+   *       RunAssistantRequest.newBuilder()
+   *           .setApp(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
+   *           .setAssistantSession(
+   *               AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]")
+   *                   .toString())
+   *           .setMessage(AssistantMessage.newBuilder().build())
+   *           .build();
+   *   RunAssistantResponse response = assistantServiceClient.runAssistant(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 RunAssistantResponse runAssistant(RunAssistantRequest request) { + return runAssistantCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Runs the assistant agent for the specified assistant session. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+   *   RunAssistantRequest request =
+   *       RunAssistantRequest.newBuilder()
+   *           .setApp(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
+   *           .setAssistantSession(
+   *               AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]")
+   *                   .toString())
+   *           .setMessage(AssistantMessage.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       assistantServiceClient.runAssistantCallable().futureCall(request);
+   *   // Do something.
+   *   RunAssistantResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable runAssistantCallable() { + return stub.runAssistantCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Runs Arc, the AI assistant, for the specified assistant session. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+   *   ChatAiAssistantRequest request =
+   *       ChatAiAssistantRequest.newBuilder()
+   *           .setApp(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
+   *           .setAssistantSession(
+   *               AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]")
+   *                   .toString())
+   *           .setMessage("message954925063")
+   *           .addAllAttachedGcsUris(new ArrayList())
+   *           .setContextToken("contextToken1106626954")
+   *           .build();
+   *   ChatAiAssistantResponse response = assistantServiceClient.chatAiAssistant(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 ChatAiAssistantResponse chatAiAssistant(ChatAiAssistantRequest request) { + return chatAiAssistantCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Runs Arc, the AI assistant, for the specified assistant session. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+   *   ChatAiAssistantRequest request =
+   *       ChatAiAssistantRequest.newBuilder()
+   *           .setApp(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
+   *           .setAssistantSession(
+   *               AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]")
+   *                   .toString())
+   *           .setMessage("message954925063")
+   *           .addAllAttachedGcsUris(new ArrayList())
+   *           .setContextToken("contextToken1106626954")
+   *           .build();
+   *   ApiFuture future =
+   *       assistantServiceClient.chatAiAssistantCallable().futureCall(request);
+   *   // Do something.
+   *   ChatAiAssistantResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + chatAiAssistantCallable() { + return stub.chatAiAssistantCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

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

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

Sample code: + * + *

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

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

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

Sample code: + * + *

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

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

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

Sample code: + * + *

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

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future = assistantServiceClient.getLocationCallable().futureCall(request);
+   *   // Do something.
+   *   Location response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + @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 ListAssistantSessionsPagedResponse + extends AbstractPagedListResponse< + ListAssistantSessionsRequest, + ListAssistantSessionsResponse, + AssistantSession, + ListAssistantSessionsPage, + ListAssistantSessionsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListAssistantSessionsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListAssistantSessionsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListAssistantSessionsPagedResponse(ListAssistantSessionsPage page) { + super(page, ListAssistantSessionsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListAssistantSessionsPage + extends AbstractPage< + ListAssistantSessionsRequest, + ListAssistantSessionsResponse, + AssistantSession, + ListAssistantSessionsPage> { + + private ListAssistantSessionsPage( + @Nullable + PageContext< + ListAssistantSessionsRequest, ListAssistantSessionsResponse, AssistantSession> + context, + @Nullable ListAssistantSessionsResponse response) { + super(context, response); + } + + private static ListAssistantSessionsPage createEmptyPage() { + return new ListAssistantSessionsPage(null, null); + } + + @Override + protected ListAssistantSessionsPage createPage( + @Nullable + PageContext< + ListAssistantSessionsRequest, ListAssistantSessionsResponse, AssistantSession> + context, + @Nullable ListAssistantSessionsResponse response) { + return new ListAssistantSessionsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + @Nullable + PageContext< + ListAssistantSessionsRequest, ListAssistantSessionsResponse, AssistantSession> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListAssistantSessionsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListAssistantSessionsRequest, + ListAssistantSessionsResponse, + AssistantSession, + ListAssistantSessionsPage, + ListAssistantSessionsFixedSizeCollection> { + + private ListAssistantSessionsFixedSizeCollection( + @Nullable List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListAssistantSessionsFixedSizeCollection createEmptyCollection() { + return new ListAssistantSessionsFixedSizeCollection(null, 0); + } + + @Override + protected ListAssistantSessionsFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new ListAssistantSessionsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + @Nullable PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/AssistantServiceSettings.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/AssistantServiceSettings.java new file mode 100644 index 000000000000..5fb205f464d8 --- /dev/null +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/AssistantServiceSettings.java @@ -0,0 +1,317 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1beta; + +import static com.google.cloud.ces.v1beta.AssistantServiceClient.ListAssistantSessionsPagedResponse; +import static com.google.cloud.ces.v1beta.AssistantServiceClient.ListLocationsPagedResponse; + +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.ces.v1beta.stub.AssistantServiceStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link AssistantServiceClient}. + * + *

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

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

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * AssistantServiceSettings.Builder assistantServiceSettingsBuilder =
+ *     AssistantServiceSettings.newBuilder();
+ * assistantServiceSettingsBuilder
+ *     .getAssistantSessionSettings()
+ *     .setRetrySettings(
+ *         assistantServiceSettingsBuilder
+ *             .getAssistantSessionSettings()
+ *             .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());
+ * AssistantServiceSettings assistantServiceSettings = assistantServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + */ +@NullMarked +@BetaApi +@Generated("by gapic-generator-java") +public class AssistantServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to listAssistantSessions. */ + public PagedCallSettings< + ListAssistantSessionsRequest, + ListAssistantSessionsResponse, + ListAssistantSessionsPagedResponse> + listAssistantSessionsSettings() { + return ((AssistantServiceStubSettings) getStubSettings()).listAssistantSessionsSettings(); + } + + /** Returns the object with the settings used for calls to getAssistantSession. */ + public UnaryCallSettings + getAssistantSessionSettings() { + return ((AssistantServiceStubSettings) getStubSettings()).getAssistantSessionSettings(); + } + + /** Returns the object with the settings used for calls to createAssistantSession. */ + public UnaryCallSettings + createAssistantSessionSettings() { + return ((AssistantServiceStubSettings) getStubSettings()).createAssistantSessionSettings(); + } + + /** Returns the object with the settings used for calls to deleteAssistantSession. */ + public UnaryCallSettings deleteAssistantSessionSettings() { + return ((AssistantServiceStubSettings) getStubSettings()).deleteAssistantSessionSettings(); + } + + /** Returns the object with the settings used for calls to runAssistant. */ + public UnaryCallSettings runAssistantSettings() { + return ((AssistantServiceStubSettings) getStubSettings()).runAssistantSettings(); + } + + /** Returns the object with the settings used for calls to chatAiAssistant. */ + public UnaryCallSettings + chatAiAssistantSettings() { + return ((AssistantServiceStubSettings) getStubSettings()).chatAiAssistantSettings(); + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return ((AssistantServiceStubSettings) getStubSettings()).listLocationsSettings(); + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return ((AssistantServiceStubSettings) getStubSettings()).getLocationSettings(); + } + + public static final AssistantServiceSettings create(AssistantServiceStubSettings stub) + throws IOException { + return new AssistantServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return AssistantServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return AssistantServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return AssistantServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return AssistantServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return AssistantServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return AssistantServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return AssistantServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return AssistantServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(@Nullable ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected AssistantServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for AssistantServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(@Nullable ClientContext clientContext) { + super(AssistantServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(AssistantServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(AssistantServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(AssistantServiceStubSettings.newBuilder()); + } + + private static Builder createHttpJsonDefault() { + return new Builder(AssistantServiceStubSettings.newHttpJsonBuilder()); + } + + public AssistantServiceStubSettings.Builder getStubSettingsBuilder() { + return ((AssistantServiceStubSettings.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 listAssistantSessions. */ + public PagedCallSettings.Builder< + ListAssistantSessionsRequest, + ListAssistantSessionsResponse, + ListAssistantSessionsPagedResponse> + listAssistantSessionsSettings() { + return getStubSettingsBuilder().listAssistantSessionsSettings(); + } + + /** Returns the builder for the settings used for calls to getAssistantSession. */ + public UnaryCallSettings.Builder + getAssistantSessionSettings() { + return getStubSettingsBuilder().getAssistantSessionSettings(); + } + + /** Returns the builder for the settings used for calls to createAssistantSession. */ + public UnaryCallSettings.Builder + createAssistantSessionSettings() { + return getStubSettingsBuilder().createAssistantSessionSettings(); + } + + /** Returns the builder for the settings used for calls to deleteAssistantSession. */ + public UnaryCallSettings.Builder + deleteAssistantSessionSettings() { + return getStubSettingsBuilder().deleteAssistantSessionSettings(); + } + + /** Returns the builder for the settings used for calls to runAssistant. */ + public UnaryCallSettings.Builder + runAssistantSettings() { + return getStubSettingsBuilder().runAssistantSettings(); + } + + /** Returns the builder for the settings used for calls to chatAiAssistant. */ + public UnaryCallSettings.Builder + chatAiAssistantSettings() { + return getStubSettingsBuilder().chatAiAssistantSettings(); + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return getStubSettingsBuilder().listLocationsSettings(); + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getStubSettingsBuilder().getLocationSettings(); + } + + @Override + public AssistantServiceSettings build() throws IOException { + return new AssistantServiceSettings(this); + } + } +} diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/SessionServiceClient.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/SessionServiceClient.java index af277f8e7382..8591ad1f412b 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/SessionServiceClient.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/SessionServiceClient.java @@ -120,6 +120,44 @@ * * * + *

StreamChatAiAssistant + *

Runs Arc, the AI assistant, for the specified assistant session in a streaming fashion. + * + *

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

+ *
    + *
  • streamChatAiAssistantCallable() + *

+ * + * + * + *

CancelAssistantTurn + *

Cancels the assistant session's in-flight turn, if any: the explicit user stop for a turn running detached from any stream. A cancel landing on a task that does not host the turn preempts it through the session turn epoch instead, ending it within one lease renewal. + * + *

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

+ *
    + *
  • cancelAssistantTurn(CancelAssistantTurnRequest request) + *

+ *

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

+ *
    + *
  • cancelAssistantTurnCallable() + *

+ * + * + * + *

GenerateOnboardingSuggestions + *

Generates personalized onboarding suggestions for the Arc zero state: classifies the requesting user (new / exploring / returning) from their assistant-session history in the app and returns suggestion chips (resume a session, continue work, or start something new) to render before any message is sent. + * + *

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

+ *
    + *
  • generateOnboardingSuggestions(GenerateOnboardingSuggestionsRequest request) + *

+ *

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

+ *
    + *
  • generateOnboardingSuggestionsCallable() + *

+ * + * + * *

ListLocations *

Lists information about the supported locations for this service. *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. @@ -428,6 +466,178 @@ public final UnaryCallable runSessionCall return stub.bidiRunSessionCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Runs Arc, the AI assistant, for the specified assistant session in a streaming fashion. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SessionServiceClient sessionServiceClient = SessionServiceClient.create()) {
+   *   StreamChatAiAssistantRequest request =
+   *       StreamChatAiAssistantRequest.newBuilder()
+   *           .setName(
+   *               AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]")
+   *                   .toString())
+   *           .setMessage("message954925063")
+   *           .addAllAttachedGcsUris(new ArrayList())
+   *           .setContextToken("contextToken1106626954")
+   *           .setConfirmationResponse(AssistantConfirmationResponse.newBuilder().build())
+   *           .addAllClientCapabilities(
+   *               new ArrayList())
+   *           .setOperationCompletedEvent(OperationCompletedEvent.newBuilder().build())
+   *           .setResumeFromSequenceNumber(15486916)
+   *           .setAttachOnly(true)
+   *           .build();
+   *   ServerStream stream =
+   *       sessionServiceClient.streamChatAiAssistantCallable().call(request);
+   *   for (StreamChatAiAssistantResponse response : stream) {
+   *     // Do something when a response is received.
+   *   }
+   * }
+   * }
+ */ + public final ServerStreamingCallable + streamChatAiAssistantCallable() { + return stub.streamChatAiAssistantCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Cancels the assistant session's in-flight turn, if any: the explicit user stop for a turn + * running detached from any stream. A cancel landing on a task that does not host the turn + * preempts it through the session turn epoch instead, ending it within one lease renewal. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SessionServiceClient sessionServiceClient = SessionServiceClient.create()) {
+   *   CancelAssistantTurnRequest request =
+   *       CancelAssistantTurnRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setTurnId("turnId-862429576")
+   *           .build();
+   *   CancelAssistantTurnResponse response = sessionServiceClient.cancelAssistantTurn(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 CancelAssistantTurnResponse cancelAssistantTurn(CancelAssistantTurnRequest request) { + return cancelAssistantTurnCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Cancels the assistant session's in-flight turn, if any: the explicit user stop for a turn + * running detached from any stream. A cancel landing on a task that does not host the turn + * preempts it through the session turn epoch instead, ending it within one lease renewal. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SessionServiceClient sessionServiceClient = SessionServiceClient.create()) {
+   *   CancelAssistantTurnRequest request =
+   *       CancelAssistantTurnRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setTurnId("turnId-862429576")
+   *           .build();
+   *   ApiFuture future =
+   *       sessionServiceClient.cancelAssistantTurnCallable().futureCall(request);
+   *   // Do something.
+   *   CancelAssistantTurnResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + cancelAssistantTurnCallable() { + return stub.cancelAssistantTurnCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Generates personalized onboarding suggestions for the Arc zero state: classifies the requesting + * user (new / exploring / returning) from their assistant-session history in the app and returns + * suggestion chips (resume a session, continue work, or start something new) to render before any + * message is sent. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SessionServiceClient sessionServiceClient = SessionServiceClient.create()) {
+   *   GenerateOnboardingSuggestionsRequest request =
+   *       GenerateOnboardingSuggestionsRequest.newBuilder()
+   *           .setName(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
+   *           .setMaxSuggestions(618824852)
+   *           .build();
+   *   GenerateOnboardingSuggestionsResponse response =
+   *       sessionServiceClient.generateOnboardingSuggestions(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 GenerateOnboardingSuggestionsResponse generateOnboardingSuggestions( + GenerateOnboardingSuggestionsRequest request) { + return generateOnboardingSuggestionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Generates personalized onboarding suggestions for the Arc zero state: classifies the requesting + * user (new / exploring / returning) from their assistant-session history in the app and returns + * suggestion chips (resume a session, continue work, or start something new) to render before any + * message is sent. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SessionServiceClient sessionServiceClient = SessionServiceClient.create()) {
+   *   GenerateOnboardingSuggestionsRequest request =
+   *       GenerateOnboardingSuggestionsRequest.newBuilder()
+   *           .setName(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
+   *           .setMaxSuggestions(618824852)
+   *           .build();
+   *   ApiFuture future =
+   *       sessionServiceClient.generateOnboardingSuggestionsCallable().futureCall(request);
+   *   // Do something.
+   *   GenerateOnboardingSuggestionsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable< + GenerateOnboardingSuggestionsRequest, GenerateOnboardingSuggestionsResponse> + generateOnboardingSuggestionsCallable() { + return stub.generateOnboardingSuggestionsCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists information about the supported locations for this service. diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/SessionServiceSettings.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/SessionServiceSettings.java index 561e295586b5..09ac62b2b202 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/SessionServiceSettings.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/SessionServiceSettings.java @@ -115,6 +115,25 @@ public UnaryCallSettings runSessionSettin return ((SessionServiceStubSettings) getStubSettings()).bidiRunSessionSettings(); } + /** Returns the object with the settings used for calls to streamChatAiAssistant. */ + public ServerStreamingCallSettings + streamChatAiAssistantSettings() { + return ((SessionServiceStubSettings) getStubSettings()).streamChatAiAssistantSettings(); + } + + /** Returns the object with the settings used for calls to cancelAssistantTurn. */ + public UnaryCallSettings + cancelAssistantTurnSettings() { + return ((SessionServiceStubSettings) getStubSettings()).cancelAssistantTurnSettings(); + } + + /** Returns the object with the settings used for calls to generateOnboardingSuggestions. */ + public UnaryCallSettings< + GenerateOnboardingSuggestionsRequest, GenerateOnboardingSuggestionsResponse> + generateOnboardingSuggestionsSettings() { + return ((SessionServiceStubSettings) getStubSettings()).generateOnboardingSuggestionsSettings(); + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -255,6 +274,26 @@ public UnaryCallSettings.Builder runSessi return getStubSettingsBuilder().bidiRunSessionSettings(); } + /** Returns the builder for the settings used for calls to streamChatAiAssistant. */ + public ServerStreamingCallSettings.Builder< + StreamChatAiAssistantRequest, StreamChatAiAssistantResponse> + streamChatAiAssistantSettings() { + return getStubSettingsBuilder().streamChatAiAssistantSettings(); + } + + /** Returns the builder for the settings used for calls to cancelAssistantTurn. */ + public UnaryCallSettings.Builder + cancelAssistantTurnSettings() { + return getStubSettingsBuilder().cancelAssistantTurnSettings(); + } + + /** Returns the builder for the settings used for calls to generateOnboardingSuggestions. */ + public UnaryCallSettings.Builder< + GenerateOnboardingSuggestionsRequest, GenerateOnboardingSuggestionsResponse> + generateOnboardingSuggestionsSettings() { + return getStubSettingsBuilder().generateOnboardingSuggestionsSettings(); + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/gapic_metadata.json b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/gapic_metadata.json index 0ccc259b3886..9d272ba5c686 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/gapic_metadata.json +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/gapic_metadata.json @@ -151,6 +151,9 @@ "UpdateApp": { "methods": ["updateApp", "updateApp", "updateAppCallable"] }, + "UpdateAppVersion": { + "methods": ["updateAppVersion", "updateAppVersion", "updateAppVersionCallable"] + }, "UpdateDeployment": { "methods": ["updateDeployment", "updateDeployment", "updateDeploymentCallable"] }, @@ -173,6 +176,39 @@ } } }, + "AssistantService": { + "clients": { + "grpc": { + "libraryClient": "AssistantServiceClient", + "rpcs": { + "ChatAiAssistant": { + "methods": ["chatAiAssistant", "chatAiAssistantCallable"] + }, + "CreateAssistantSession": { + "methods": ["createAssistantSession", "createAssistantSession", "createAssistantSession", "createAssistantSessionCallable"] + }, + "DeleteAssistantSession": { + "methods": ["deleteAssistantSession", "deleteAssistantSession", "deleteAssistantSession", "deleteAssistantSessionCallable"] + }, + "GetAssistantSession": { + "methods": ["getAssistantSession", "getAssistantSession", "getAssistantSession", "getAssistantSessionCallable"] + }, + "GetLocation": { + "methods": ["getLocation", "getLocationCallable"] + }, + "ListAssistantSessions": { + "methods": ["listAssistantSessions", "listAssistantSessions", "listAssistantSessions", "listAssistantSessionsPagedCallable", "listAssistantSessionsCallable"] + }, + "ListLocations": { + "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] + }, + "RunAssistant": { + "methods": ["runAssistant", "runAssistantCallable"] + } + } + } + } + }, "EvaluationService": { "clients": { "grpc": { @@ -301,6 +337,12 @@ "BidiRunSession": { "methods": ["bidiRunSessionCallable"] }, + "CancelAssistantTurn": { + "methods": ["cancelAssistantTurn", "cancelAssistantTurnCallable"] + }, + "GenerateOnboardingSuggestions": { + "methods": ["generateOnboardingSuggestions", "generateOnboardingSuggestionsCallable"] + }, "GetLocation": { "methods": ["getLocation", "getLocationCallable"] }, @@ -310,6 +352,9 @@ "RunSession": { "methods": ["runSession", "runSessionCallable"] }, + "StreamChatAiAssistant": { + "methods": ["streamChatAiAssistantCallable"] + }, "StreamRunSession": { "methods": ["streamRunSessionCallable"] } diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/package-info.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/package-info.java index bfb92bf06c85..007627d13e4e 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/package-info.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/package-info.java @@ -38,6 +38,27 @@ * } * } * + *

======================= AssistantServiceClient ======================= + * + *

Service Description: The service that manages assistant-related resources in Customer + * Engagement Suite (CES). The assistant, Arc, is a conversational agent embedded in CES + * applications to help users with building their agents. + * + *

Sample for AssistantServiceClient: + * + *

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

======================= EvaluationServiceClient ======================= * *

Service Description: EvaluationService exposes methods to perform evaluation for the CES app. diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/AgentServiceStub.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/AgentServiceStub.java index a3e28884d741..df4a65bd9e3f 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/AgentServiceStub.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/AgentServiceStub.java @@ -105,6 +105,7 @@ import com.google.cloud.ces.v1beta.Toolset; import com.google.cloud.ces.v1beta.UpdateAgentRequest; import com.google.cloud.ces.v1beta.UpdateAppRequest; +import com.google.cloud.ces.v1beta.UpdateAppVersionRequest; import com.google.cloud.ces.v1beta.UpdateDeploymentRequest; import com.google.cloud.ces.v1beta.UpdateExampleRequest; import com.google.cloud.ces.v1beta.UpdateGuardrailRequest; @@ -395,6 +396,10 @@ public UnaryCallable createAppVersionCallab throw new UnsupportedOperationException("Not implemented: createAppVersionCallable()"); } + public UnaryCallable updateAppVersionCallable() { + throw new UnsupportedOperationException("Not implemented: updateAppVersionCallable()"); + } + public UnaryCallable deleteAppVersionCallable() { throw new UnsupportedOperationException("Not implemented: deleteAppVersionCallable()"); } diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/AgentServiceStubSettings.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/AgentServiceStubSettings.java index 57a60ada8bd6..e00393e11516 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/AgentServiceStubSettings.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/AgentServiceStubSettings.java @@ -132,6 +132,7 @@ import com.google.cloud.ces.v1beta.Toolset; import com.google.cloud.ces.v1beta.UpdateAgentRequest; import com.google.cloud.ces.v1beta.UpdateAppRequest; +import com.google.cloud.ces.v1beta.UpdateAppVersionRequest; import com.google.cloud.ces.v1beta.UpdateDeploymentRequest; import com.google.cloud.ces.v1beta.UpdateExampleRequest; import com.google.cloud.ces.v1beta.UpdateGuardrailRequest; @@ -318,6 +319,7 @@ public class AgentServiceStubSettings extends StubSettings getAppVersionSettings; private final UnaryCallSettings createAppVersionSettings; + private final UnaryCallSettings updateAppVersionSettings; private final UnaryCallSettings deleteAppVersionSettings; private final UnaryCallSettings restoreAppVersionSettings; private final OperationCallSettings< @@ -1192,6 +1194,11 @@ public UnaryCallSettings createAppVersionSe return createAppVersionSettings; } + /** Returns the object with the settings used for calls to updateAppVersion. */ + public UnaryCallSettings updateAppVersionSettings() { + return updateAppVersionSettings; + } + /** Returns the object with the settings used for calls to deleteAppVersion. */ public UnaryCallSettings deleteAppVersionSettings() { return deleteAppVersionSettings; @@ -1409,6 +1416,7 @@ protected AgentServiceStubSettings(Builder settingsBuilder) throws IOException { listAppVersionsSettings = settingsBuilder.listAppVersionsSettings().build(); getAppVersionSettings = settingsBuilder.getAppVersionSettings().build(); createAppVersionSettings = settingsBuilder.createAppVersionSettings().build(); + updateAppVersionSettings = settingsBuilder.updateAppVersionSettings().build(); deleteAppVersionSettings = settingsBuilder.deleteAppVersionSettings().build(); restoreAppVersionSettings = settingsBuilder.restoreAppVersionSettings().build(); restoreAppVersionOperationSettings = @@ -1522,6 +1530,8 @@ public static class Builder extends StubSettings.Builder getAppVersionSettings; private final UnaryCallSettings.Builder createAppVersionSettings; + private final UnaryCallSettings.Builder + updateAppVersionSettings; private final UnaryCallSettings.Builder deleteAppVersionSettings; private final UnaryCallSettings.Builder @@ -1635,6 +1645,7 @@ protected Builder(@Nullable ClientContext clientContext) { listAppVersionsSettings = PagedCallSettings.newBuilder(LIST_APP_VERSIONS_PAGE_STR_FACT); getAppVersionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createAppVersionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateAppVersionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteAppVersionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); restoreAppVersionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); restoreAppVersionOperationSettings = OperationCallSettings.newBuilder(); @@ -1693,6 +1704,7 @@ protected Builder(@Nullable ClientContext clientContext) { listAppVersionsSettings, getAppVersionSettings, createAppVersionSettings, + updateAppVersionSettings, deleteAppVersionSettings, restoreAppVersionSettings, generateAppResourceSettings, @@ -1758,6 +1770,7 @@ protected Builder(AgentServiceStubSettings settings) { listAppVersionsSettings = settings.listAppVersionsSettings.toBuilder(); getAppVersionSettings = settings.getAppVersionSettings.toBuilder(); createAppVersionSettings = settings.createAppVersionSettings.toBuilder(); + updateAppVersionSettings = settings.updateAppVersionSettings.toBuilder(); deleteAppVersionSettings = settings.deleteAppVersionSettings.toBuilder(); restoreAppVersionSettings = settings.restoreAppVersionSettings.toBuilder(); restoreAppVersionOperationSettings = settings.restoreAppVersionOperationSettings.toBuilder(); @@ -1817,6 +1830,7 @@ protected Builder(AgentServiceStubSettings settings) { listAppVersionsSettings, getAppVersionSettings, createAppVersionSettings, + updateAppVersionSettings, deleteAppVersionSettings, restoreAppVersionSettings, generateAppResourceSettings, @@ -2081,6 +2095,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder + .updateAppVersionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder .deleteAppVersionSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) @@ -2585,6 +2604,12 @@ public UnaryCallSettings.Builder getAppVersion return createAppVersionSettings; } + /** Returns the builder for the settings used for calls to updateAppVersion. */ + public UnaryCallSettings.Builder + updateAppVersionSettings() { + return updateAppVersionSettings; + } + /** Returns the builder for the settings used for calls to deleteAppVersion. */ public UnaryCallSettings.Builder deleteAppVersionSettings() { return deleteAppVersionSettings; diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/AssistantServiceStub.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/AssistantServiceStub.java new file mode 100644 index 000000000000..f1b908a519b4 --- /dev/null +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/AssistantServiceStub.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.ces.v1beta.stub; + +import static com.google.cloud.ces.v1beta.AssistantServiceClient.ListAssistantSessionsPagedResponse; +import static com.google.cloud.ces.v1beta.AssistantServiceClient.ListLocationsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.ces.v1beta.AssistantSession; +import com.google.cloud.ces.v1beta.ChatAiAssistantRequest; +import com.google.cloud.ces.v1beta.ChatAiAssistantResponse; +import com.google.cloud.ces.v1beta.CreateAssistantSessionRequest; +import com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest; +import com.google.cloud.ces.v1beta.GetAssistantSessionRequest; +import com.google.cloud.ces.v1beta.ListAssistantSessionsRequest; +import com.google.cloud.ces.v1beta.ListAssistantSessionsResponse; +import com.google.cloud.ces.v1beta.RunAssistantRequest; +import com.google.cloud.ces.v1beta.RunAssistantResponse; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.protobuf.Empty; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the AssistantService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@NullMarked +@BetaApi +@Generated("by gapic-generator-java") +public abstract class AssistantServiceStub implements BackgroundResource { + + public UnaryCallable + listAssistantSessionsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listAssistantSessionsPagedCallable()"); + } + + public UnaryCallable + listAssistantSessionsCallable() { + throw new UnsupportedOperationException("Not implemented: listAssistantSessionsCallable()"); + } + + public UnaryCallable getAssistantSessionCallable() { + throw new UnsupportedOperationException("Not implemented: getAssistantSessionCallable()"); + } + + public UnaryCallable + createAssistantSessionCallable() { + throw new UnsupportedOperationException("Not implemented: createAssistantSessionCallable()"); + } + + public UnaryCallable deleteAssistantSessionCallable() { + throw new UnsupportedOperationException("Not implemented: deleteAssistantSessionCallable()"); + } + + public UnaryCallable runAssistantCallable() { + throw new UnsupportedOperationException("Not implemented: runAssistantCallable()"); + } + + public UnaryCallable chatAiAssistantCallable() { + throw new UnsupportedOperationException("Not implemented: chatAiAssistantCallable()"); + } + + public UnaryCallable + listLocationsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); + } + + public UnaryCallable listLocationsCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsCallable()"); + } + + public UnaryCallable getLocationCallable() { + throw new UnsupportedOperationException("Not implemented: getLocationCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/AssistantServiceStubSettings.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/AssistantServiceStubSettings.java new file mode 100644 index 000000000000..e6b9a0790346 --- /dev/null +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/AssistantServiceStubSettings.java @@ -0,0 +1,712 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1beta.stub; + +import static com.google.cloud.ces.v1beta.AssistantServiceClient.ListAssistantSessionsPagedResponse; +import static com.google.cloud.ces.v1beta.AssistantServiceClient.ListLocationsPagedResponse; + +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.ces.v1beta.AssistantSession; +import com.google.cloud.ces.v1beta.ChatAiAssistantRequest; +import com.google.cloud.ces.v1beta.ChatAiAssistantResponse; +import com.google.cloud.ces.v1beta.CreateAssistantSessionRequest; +import com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest; +import com.google.cloud.ces.v1beta.GetAssistantSessionRequest; +import com.google.cloud.ces.v1beta.ListAssistantSessionsRequest; +import com.google.cloud.ces.v1beta.ListAssistantSessionsResponse; +import com.google.cloud.ces.v1beta.RunAssistantRequest; +import com.google.cloud.ces.v1beta.RunAssistantResponse; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.time.Duration; +import java.util.List; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link AssistantServiceStub}. + * + *

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

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

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * AssistantServiceStubSettings.Builder assistantServiceSettingsBuilder =
+ *     AssistantServiceStubSettings.newBuilder();
+ * assistantServiceSettingsBuilder
+ *     .getAssistantSessionSettings()
+ *     .setRetrySettings(
+ *         assistantServiceSettingsBuilder
+ *             .getAssistantSessionSettings()
+ *             .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());
+ * AssistantServiceStubSettings assistantServiceSettings = assistantServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + */ +@NullMarked +@BetaApi +@Generated("by gapic-generator-java") +@SuppressWarnings("CanonicalDuration") +public class AssistantServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder() + .add("https://www.googleapis.com/auth/ces") + .add("https://www.googleapis.com/auth/cloud-platform") + .build(); + + private final PagedCallSettings< + ListAssistantSessionsRequest, + ListAssistantSessionsResponse, + ListAssistantSessionsPagedResponse> + listAssistantSessionsSettings; + private final UnaryCallSettings + getAssistantSessionSettings; + private final UnaryCallSettings + createAssistantSessionSettings; + private final UnaryCallSettings + deleteAssistantSessionSettings; + private final UnaryCallSettings runAssistantSettings; + private final UnaryCallSettings + chatAiAssistantSettings; + private final PagedCallSettings< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings getLocationSettings; + + private static final PagedListDescriptor< + ListAssistantSessionsRequest, ListAssistantSessionsResponse, AssistantSession> + LIST_ASSISTANT_SESSIONS_PAGE_STR_DESC = + new PagedListDescriptor< + ListAssistantSessionsRequest, ListAssistantSessionsResponse, AssistantSession>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListAssistantSessionsRequest injectToken( + ListAssistantSessionsRequest payload, String token) { + return ListAssistantSessionsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListAssistantSessionsRequest injectPageSize( + ListAssistantSessionsRequest payload, int pageSize) { + return ListAssistantSessionsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListAssistantSessionsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListAssistantSessionsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListAssistantSessionsResponse payload) { + return payload.getAssistantSessionsList(); + } + }; + + private static final PagedListDescriptor + LIST_LOCATIONS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) { + return ListLocationsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) { + return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListLocationsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListLocationsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListLocationsResponse payload) { + return payload.getLocationsList(); + } + }; + + private static final PagedListResponseFactory< + ListAssistantSessionsRequest, + ListAssistantSessionsResponse, + ListAssistantSessionsPagedResponse> + LIST_ASSISTANT_SESSIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListAssistantSessionsRequest, + ListAssistantSessionsResponse, + ListAssistantSessionsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListAssistantSessionsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListAssistantSessionsRequest, ListAssistantSessionsResponse, AssistantSession> + pageContext = + PageContext.create( + callable, LIST_ASSISTANT_SESSIONS_PAGE_STR_DESC, request, context); + return ListAssistantSessionsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + LIST_LOCATIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListLocationsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context); + return ListLocationsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to listAssistantSessions. */ + public PagedCallSettings< + ListAssistantSessionsRequest, + ListAssistantSessionsResponse, + ListAssistantSessionsPagedResponse> + listAssistantSessionsSettings() { + return listAssistantSessionsSettings; + } + + /** Returns the object with the settings used for calls to getAssistantSession. */ + public UnaryCallSettings + getAssistantSessionSettings() { + return getAssistantSessionSettings; + } + + /** Returns the object with the settings used for calls to createAssistantSession. */ + public UnaryCallSettings + createAssistantSessionSettings() { + return createAssistantSessionSettings; + } + + /** Returns the object with the settings used for calls to deleteAssistantSession. */ + public UnaryCallSettings deleteAssistantSessionSettings() { + return deleteAssistantSessionSettings; + } + + /** Returns the object with the settings used for calls to runAssistant. */ + public UnaryCallSettings runAssistantSettings() { + return runAssistantSettings; + } + + /** Returns the object with the settings used for calls to chatAiAssistant. */ + public UnaryCallSettings + chatAiAssistantSettings() { + return chatAiAssistantSettings; + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return getLocationSettings; + } + + public AssistantServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcAssistantServiceStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonAssistantServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "ces"; + } + + /** 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 "ces.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "ces.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(AssistantServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(AssistantServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return AssistantServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(@Nullable ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected AssistantServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + listAssistantSessionsSettings = settingsBuilder.listAssistantSessionsSettings().build(); + getAssistantSessionSettings = settingsBuilder.getAssistantSessionSettings().build(); + createAssistantSessionSettings = settingsBuilder.createAssistantSessionSettings().build(); + deleteAssistantSessionSettings = settingsBuilder.deleteAssistantSessionSettings().build(); + runAssistantSettings = settingsBuilder.runAssistantSettings().build(); + chatAiAssistantSettings = settingsBuilder.chatAiAssistantSettings().build(); + listLocationsSettings = settingsBuilder.listLocationsSettings().build(); + getLocationSettings = settingsBuilder.getLocationSettings().build(); + } + + @Override + protected LibraryMetadata getLibraryMetadata() { + return LibraryMetadata.newBuilder() + .setArtifactName("com.google.cloud:google-cloud-ces") + .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) + .build(); + } + + /** Builder for AssistantServiceStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final PagedCallSettings.Builder< + ListAssistantSessionsRequest, + ListAssistantSessionsResponse, + ListAssistantSessionsPagedResponse> + listAssistantSessionsSettings; + private final UnaryCallSettings.Builder + getAssistantSessionSettings; + private final UnaryCallSettings.Builder + createAssistantSessionSettings; + private final UnaryCallSettings.Builder + deleteAssistantSessionSettings; + private final UnaryCallSettings.Builder + runAssistantSettings; + private final UnaryCallSettings.Builder + chatAiAssistantSettings; + private final PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings.Builder getLocationSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "retry_policy_0_codes", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); + definitions.put( + "retry_policy_3_codes", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.DEADLINE_EXCEEDED, 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(100L)) + .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_0_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelayDuration(Duration.ofMillis(60000L)) + .setInitialRpcTimeoutDuration(Duration.ofMillis(300000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(300000L)) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build(); + definitions.put("retry_policy_3_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(@Nullable ClientContext clientContext) { + super(clientContext); + + listAssistantSessionsSettings = + PagedCallSettings.newBuilder(LIST_ASSISTANT_SESSIONS_PAGE_STR_FACT); + getAssistantSessionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createAssistantSessionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteAssistantSessionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + runAssistantSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + chatAiAssistantSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); + getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listAssistantSessionsSettings, + getAssistantSessionSettings, + createAssistantSessionSettings, + deleteAssistantSessionSettings, + runAssistantSettings, + chatAiAssistantSettings, + listLocationsSettings, + getLocationSettings); + initDefaults(this); + } + + protected Builder(AssistantServiceStubSettings settings) { + super(settings); + + listAssistantSessionsSettings = settings.listAssistantSessionsSettings.toBuilder(); + getAssistantSessionSettings = settings.getAssistantSessionSettings.toBuilder(); + createAssistantSessionSettings = settings.createAssistantSessionSettings.toBuilder(); + deleteAssistantSessionSettings = settings.deleteAssistantSessionSettings.toBuilder(); + runAssistantSettings = settings.runAssistantSettings.toBuilder(); + chatAiAssistantSettings = settings.chatAiAssistantSettings.toBuilder(); + listLocationsSettings = settings.listLocationsSettings.toBuilder(); + getLocationSettings = settings.getLocationSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listAssistantSessionsSettings, + getAssistantSessionSettings, + createAssistantSessionSettings, + deleteAssistantSessionSettings, + runAssistantSettings, + chatAiAssistantSettings, + listLocationsSettings, + getLocationSettings); + } + + 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 + .listAssistantSessionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getAssistantSessionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createAssistantSessionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .deleteAssistantSessionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .runAssistantSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .chatAiAssistantSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params")); + + builder + .listLocationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getLocationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + 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 listAssistantSessions. */ + public PagedCallSettings.Builder< + ListAssistantSessionsRequest, + ListAssistantSessionsResponse, + ListAssistantSessionsPagedResponse> + listAssistantSessionsSettings() { + return listAssistantSessionsSettings; + } + + /** Returns the builder for the settings used for calls to getAssistantSession. */ + public UnaryCallSettings.Builder + getAssistantSessionSettings() { + return getAssistantSessionSettings; + } + + /** Returns the builder for the settings used for calls to createAssistantSession. */ + public UnaryCallSettings.Builder + createAssistantSessionSettings() { + return createAssistantSessionSettings; + } + + /** Returns the builder for the settings used for calls to deleteAssistantSession. */ + public UnaryCallSettings.Builder + deleteAssistantSessionSettings() { + return deleteAssistantSessionSettings; + } + + /** Returns the builder for the settings used for calls to runAssistant. */ + public UnaryCallSettings.Builder + runAssistantSettings() { + return runAssistantSettings; + } + + /** Returns the builder for the settings used for calls to chatAiAssistant. */ + public UnaryCallSettings.Builder + chatAiAssistantSettings() { + return chatAiAssistantSettings; + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getLocationSettings; + } + + @Override + public AssistantServiceStubSettings build() throws IOException { + return new AssistantServiceStubSettings(this); + } + } +} diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/GrpcAgentServiceStub.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/GrpcAgentServiceStub.java index f3a01ce1b74b..f934677dabe8 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/GrpcAgentServiceStub.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/GrpcAgentServiceStub.java @@ -110,6 +110,7 @@ import com.google.cloud.ces.v1beta.Toolset; import com.google.cloud.ces.v1beta.UpdateAgentRequest; import com.google.cloud.ces.v1beta.UpdateAppRequest; +import com.google.cloud.ces.v1beta.UpdateAppVersionRequest; import com.google.cloud.ces.v1beta.UpdateDeploymentRequest; import com.google.cloud.ces.v1beta.UpdateExampleRequest; import com.google.cloud.ces.v1beta.UpdateGuardrailRequest; @@ -610,6 +611,17 @@ public class GrpcAgentServiceStub extends AgentServiceStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + updateAppVersionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.ces.v1beta.AgentService/UpdateAppVersion") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateAppVersionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(AppVersion.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor deleteAppVersionMethodDescriptor = MethodDescriptor.newBuilder() @@ -764,6 +776,7 @@ public class GrpcAgentServiceStub extends AgentServiceStub { listAppVersionsPagedCallable; private final UnaryCallable getAppVersionCallable; private final UnaryCallable createAppVersionCallable; + private final UnaryCallable updateAppVersionCallable; private final UnaryCallable deleteAppVersionCallable; private final UnaryCallable restoreAppVersionCallable; private final OperationCallable< @@ -1333,6 +1346,17 @@ protected GrpcAgentServiceStub( }) .setResourceNameExtractor(request -> request.getParent()) .build(); + GrpcCallSettings updateAppVersionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateAppVersionMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "app_version.name", String.valueOf(request.getAppVersion().getName())); + return builder.build(); + }) + .build(); GrpcCallSettings deleteAppVersionTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteAppVersionMethodDescriptor) @@ -1617,6 +1641,9 @@ protected GrpcAgentServiceStub( this.createAppVersionCallable = callableFactory.createUnaryCallable( createAppVersionTransportSettings, settings.createAppVersionSettings(), clientContext); + this.updateAppVersionCallable = + callableFactory.createUnaryCallable( + updateAppVersionTransportSettings, settings.updateAppVersionSettings(), clientContext); this.deleteAppVersionCallable = callableFactory.createUnaryCallable( deleteAppVersionTransportSettings, settings.deleteAppVersionSettings(), clientContext); @@ -1981,6 +2008,11 @@ public UnaryCallable createAppVersionCallab return createAppVersionCallable; } + @Override + public UnaryCallable updateAppVersionCallable() { + return updateAppVersionCallable; + } + @Override public UnaryCallable deleteAppVersionCallable() { return deleteAppVersionCallable; diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/GrpcAssistantServiceCallableFactory.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/GrpcAssistantServiceCallableFactory.java new file mode 100644 index 000000000000..56213f4f7b5c --- /dev/null +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/GrpcAssistantServiceCallableFactory.java @@ -0,0 +1,117 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1beta.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the AssistantService service API. + * + *

This class is for advanced usage. + */ +@NullMarked +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcAssistantServiceCallableFactory 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-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/GrpcAssistantServiceStub.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/GrpcAssistantServiceStub.java new file mode 100644 index 000000000000..5f02fd56f1f2 --- /dev/null +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/GrpcAssistantServiceStub.java @@ -0,0 +1,443 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1beta.stub; + +import static com.google.cloud.ces.v1beta.AssistantServiceClient.ListAssistantSessionsPagedResponse; +import static com.google.cloud.ces.v1beta.AssistantServiceClient.ListLocationsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.ces.v1beta.AssistantSession; +import com.google.cloud.ces.v1beta.ChatAiAssistantRequest; +import com.google.cloud.ces.v1beta.ChatAiAssistantResponse; +import com.google.cloud.ces.v1beta.CreateAssistantSessionRequest; +import com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest; +import com.google.cloud.ces.v1beta.GetAssistantSessionRequest; +import com.google.cloud.ces.v1beta.ListAssistantSessionsRequest; +import com.google.cloud.ces.v1beta.ListAssistantSessionsResponse; +import com.google.cloud.ces.v1beta.RunAssistantRequest; +import com.google.cloud.ces.v1beta.RunAssistantResponse; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.longrunning.stub.GrpcOperationsStub; +import com.google.protobuf.Empty; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the AssistantService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@NullMarked +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcAssistantServiceStub extends AssistantServiceStub { + private static final MethodDescriptor + listAssistantSessionsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.ces.v1beta.AssistantService/ListAssistantSessions") + .setRequestMarshaller( + ProtoUtils.marshaller(ListAssistantSessionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListAssistantSessionsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getAssistantSessionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.ces.v1beta.AssistantService/GetAssistantSession") + .setRequestMarshaller( + ProtoUtils.marshaller(GetAssistantSessionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(AssistantSession.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createAssistantSessionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.ces.v1beta.AssistantService/CreateAssistantSession") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateAssistantSessionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(AssistantSession.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteAssistantSessionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.ces.v1beta.AssistantService/DeleteAssistantSession") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteAssistantSessionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + runAssistantMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.ces.v1beta.AssistantService/RunAssistant") + .setRequestMarshaller(ProtoUtils.marshaller(RunAssistantRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(RunAssistantResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + chatAiAssistantMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.ces.v1beta.AssistantService/ChatAiAssistant") + .setRequestMarshaller( + ProtoUtils.marshaller(ChatAiAssistantRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ChatAiAssistantResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listLocationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setRequestMarshaller( + ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor getLocationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private final UnaryCallable + listAssistantSessionsCallable; + private final UnaryCallable + listAssistantSessionsPagedCallable; + private final UnaryCallable + getAssistantSessionCallable; + private final UnaryCallable + createAssistantSessionCallable; + private final UnaryCallable deleteAssistantSessionCallable; + private final UnaryCallable runAssistantCallable; + private final UnaryCallable + chatAiAssistantCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcAssistantServiceStub create(AssistantServiceStubSettings settings) + throws IOException { + return new GrpcAssistantServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcAssistantServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcAssistantServiceStub( + AssistantServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcAssistantServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcAssistantServiceStub( + AssistantServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcAssistantServiceStub, 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 GrpcAssistantServiceStub( + AssistantServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcAssistantServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcAssistantServiceStub, 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 GrpcAssistantServiceStub( + AssistantServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings + listAssistantSessionsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listAssistantSessionsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + getAssistantSessionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getAssistantSessionMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + createAssistantSessionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createAssistantSessionMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings deleteAssistantSessionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteAssistantSessionMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings runAssistantTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(runAssistantMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("app", String.valueOf(request.getApp())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getApp()) + .build(); + GrpcCallSettings + chatAiAssistantTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(chatAiAssistantMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("app", String.valueOf(request.getApp())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getApp()) + .build(); + GrpcCallSettings listLocationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings getLocationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + + this.listAssistantSessionsCallable = + callableFactory.createUnaryCallable( + listAssistantSessionsTransportSettings, + settings.listAssistantSessionsSettings(), + clientContext); + this.listAssistantSessionsPagedCallable = + callableFactory.createPagedCallable( + listAssistantSessionsTransportSettings, + settings.listAssistantSessionsSettings(), + clientContext); + this.getAssistantSessionCallable = + callableFactory.createUnaryCallable( + getAssistantSessionTransportSettings, + settings.getAssistantSessionSettings(), + clientContext); + this.createAssistantSessionCallable = + callableFactory.createUnaryCallable( + createAssistantSessionTransportSettings, + settings.createAssistantSessionSettings(), + clientContext); + this.deleteAssistantSessionCallable = + callableFactory.createUnaryCallable( + deleteAssistantSessionTransportSettings, + settings.deleteAssistantSessionSettings(), + clientContext); + this.runAssistantCallable = + callableFactory.createUnaryCallable( + runAssistantTransportSettings, settings.runAssistantSettings(), clientContext); + this.chatAiAssistantCallable = + callableFactory.createUnaryCallable( + chatAiAssistantTransportSettings, settings.chatAiAssistantSettings(), clientContext); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable + listAssistantSessionsCallable() { + return listAssistantSessionsCallable; + } + + @Override + public UnaryCallable + listAssistantSessionsPagedCallable() { + return listAssistantSessionsPagedCallable; + } + + @Override + public UnaryCallable getAssistantSessionCallable() { + return getAssistantSessionCallable; + } + + @Override + public UnaryCallable + createAssistantSessionCallable() { + return createAssistantSessionCallable; + } + + @Override + public UnaryCallable deleteAssistantSessionCallable() { + return deleteAssistantSessionCallable; + } + + @Override + public UnaryCallable runAssistantCallable() { + return runAssistantCallable; + } + + @Override + public UnaryCallable chatAiAssistantCallable() { + return chatAiAssistantCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @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-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/GrpcSessionServiceStub.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/GrpcSessionServiceStub.java index 18e530bc749d..83b3b3c0bfa8 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/GrpcSessionServiceStub.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/GrpcSessionServiceStub.java @@ -31,8 +31,14 @@ import com.google.api.pathtemplate.PathTemplate; import com.google.cloud.ces.v1beta.BidiSessionClientMessage; import com.google.cloud.ces.v1beta.BidiSessionServerMessage; +import com.google.cloud.ces.v1beta.CancelAssistantTurnRequest; +import com.google.cloud.ces.v1beta.CancelAssistantTurnResponse; +import com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest; +import com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse; import com.google.cloud.ces.v1beta.RunSessionRequest; import com.google.cloud.ces.v1beta.RunSessionResponse; +import com.google.cloud.ces.v1beta.StreamChatAiAssistantRequest; +import com.google.cloud.ces.v1beta.StreamChatAiAssistantResponse; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; @@ -87,6 +93,46 @@ public class GrpcSessionServiceStub extends SessionServiceStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + streamChatAiAssistantMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.SERVER_STREAMING) + .setFullMethodName("google.cloud.ces.v1beta.SessionService/StreamChatAiAssistant") + .setRequestMarshaller( + ProtoUtils.marshaller(StreamChatAiAssistantRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(StreamChatAiAssistantResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + cancelAssistantTurnMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.ces.v1beta.SessionService/CancelAssistantTurn") + .setRequestMarshaller( + ProtoUtils.marshaller(CancelAssistantTurnRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(CancelAssistantTurnResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + GenerateOnboardingSuggestionsRequest, GenerateOnboardingSuggestionsResponse> + generateOnboardingSuggestionsMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.ces.v1beta.SessionService/GenerateOnboardingSuggestions") + .setRequestMarshaller( + ProtoUtils.marshaller(GenerateOnboardingSuggestionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(GenerateOnboardingSuggestionsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor listLocationsMethodDescriptor = MethodDescriptor.newBuilder() @@ -113,6 +159,13 @@ public class GrpcSessionServiceStub extends SessionServiceStub { streamRunSessionCallable; private final BidiStreamingCallable bidiRunSessionCallable; + private final ServerStreamingCallable + streamChatAiAssistantCallable; + private final UnaryCallable + cancelAssistantTurnCallable; + private final UnaryCallable< + GenerateOnboardingSuggestionsRequest, GenerateOnboardingSuggestionsResponse> + generateOnboardingSuggestionsCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -201,6 +254,44 @@ protected GrpcSessionServiceStub( return builder.build(); }) .build(); + GrpcCallSettings + streamChatAiAssistantTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(streamChatAiAssistantMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + cancelAssistantTurnTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(cancelAssistantTurnMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + generateOnboardingSuggestionsTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(generateOnboardingSuggestionsMethodDescriptor) + .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) @@ -231,6 +322,21 @@ protected GrpcSessionServiceStub( this.bidiRunSessionCallable = callableFactory.createBidiStreamingCallable( bidiRunSessionTransportSettings, settings.bidiRunSessionSettings(), clientContext); + this.streamChatAiAssistantCallable = + callableFactory.createServerStreamingCallable( + streamChatAiAssistantTransportSettings, + settings.streamChatAiAssistantSettings(), + clientContext); + this.cancelAssistantTurnCallable = + callableFactory.createUnaryCallable( + cancelAssistantTurnTransportSettings, + settings.cancelAssistantTurnSettings(), + clientContext); + this.generateOnboardingSuggestionsCallable = + callableFactory.createUnaryCallable( + generateOnboardingSuggestionsTransportSettings, + settings.generateOnboardingSuggestionsSettings(), + clientContext); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -265,6 +371,24 @@ public ServerStreamingCallable streamRunS return bidiRunSessionCallable; } + @Override + public ServerStreamingCallable + streamChatAiAssistantCallable() { + return streamChatAiAssistantCallable; + } + + @Override + public UnaryCallable + cancelAssistantTurnCallable() { + return cancelAssistantTurnCallable; + } + + @Override + public UnaryCallable + generateOnboardingSuggestionsCallable() { + return generateOnboardingSuggestionsCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/HttpJsonAgentServiceStub.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/HttpJsonAgentServiceStub.java index e45237eb31dd..fb2dec0228b8 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/HttpJsonAgentServiceStub.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/HttpJsonAgentServiceStub.java @@ -118,6 +118,7 @@ import com.google.cloud.ces.v1beta.Toolset; import com.google.cloud.ces.v1beta.UpdateAgentRequest; import com.google.cloud.ces.v1beta.UpdateAppRequest; +import com.google.cloud.ces.v1beta.UpdateAppVersionRequest; import com.google.cloud.ces.v1beta.UpdateDeploymentRequest; import com.google.cloud.ces.v1beta.UpdateExampleRequest; import com.google.cloud.ces.v1beta.UpdateGuardrailRequest; @@ -1851,6 +1852,45 @@ public class HttpJsonAgentServiceStub extends AgentServiceStub { .build()) .build(); + private static final ApiMethodDescriptor + updateAppVersionMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.ces.v1beta.AgentService/UpdateAppVersion") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{appVersion.name=projects/*/locations/*/apps/*/versions/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "appVersion.name", request.getAppVersion().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("appVersion", request.getAppVersion(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AppVersion.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor deleteAppVersionMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -2184,6 +2224,7 @@ public class HttpJsonAgentServiceStub extends AgentServiceStub { listAppVersionsPagedCallable; private final UnaryCallable getAppVersionCallable; private final UnaryCallable createAppVersionCallable; + private final UnaryCallable updateAppVersionCallable; private final UnaryCallable deleteAppVersionCallable; private final UnaryCallable restoreAppVersionCallable; private final OperationCallable< @@ -2827,6 +2868,18 @@ protected HttpJsonAgentServiceStub( }) .setResourceNameExtractor(request -> request.getParent()) .build(); + HttpJsonCallSettings updateAppVersionTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateAppVersionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "app_version.name", String.valueOf(request.getAppVersion().getName())); + return builder.build(); + }) + .build(); HttpJsonCallSettings deleteAppVersionTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(deleteAppVersionMethodDescriptor) @@ -3120,6 +3173,9 @@ protected HttpJsonAgentServiceStub( this.createAppVersionCallable = callableFactory.createUnaryCallable( createAppVersionTransportSettings, settings.createAppVersionSettings(), clientContext); + this.updateAppVersionCallable = + callableFactory.createUnaryCallable( + updateAppVersionTransportSettings, settings.updateAppVersionSettings(), clientContext); this.deleteAppVersionCallable = callableFactory.createUnaryCallable( deleteAppVersionTransportSettings, settings.deleteAppVersionSettings(), clientContext); @@ -3217,6 +3273,7 @@ public static List getMethodDescriptors() { methodDescriptors.add(listAppVersionsMethodDescriptor); methodDescriptors.add(getAppVersionMethodDescriptor); methodDescriptors.add(createAppVersionMethodDescriptor); + methodDescriptors.add(updateAppVersionMethodDescriptor); methodDescriptors.add(deleteAppVersionMethodDescriptor); methodDescriptors.add(restoreAppVersionMethodDescriptor); methodDescriptors.add(generateAppResourceMethodDescriptor); @@ -3543,6 +3600,11 @@ public UnaryCallable createAppVersionCallab return createAppVersionCallable; } + @Override + public UnaryCallable updateAppVersionCallable() { + return updateAppVersionCallable; + } + @Override public UnaryCallable deleteAppVersionCallable() { return deleteAppVersionCallable; diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/HttpJsonAssistantServiceCallableFactory.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/HttpJsonAssistantServiceCallableFactory.java new file mode 100644 index 000000000000..ee8bab260b6f --- /dev/null +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/HttpJsonAssistantServiceCallableFactory.java @@ -0,0 +1,105 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1beta.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the AssistantService service API. + * + *

This class is for advanced usage. + */ +@NullMarked +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonAssistantServiceCallableFactory + 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-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/HttpJsonAssistantServiceStub.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/HttpJsonAssistantServiceStub.java new file mode 100644 index 000000000000..0988565e2310 --- /dev/null +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/HttpJsonAssistantServiceStub.java @@ -0,0 +1,667 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1beta.stub; + +import static com.google.cloud.ces.v1beta.AssistantServiceClient.ListAssistantSessionsPagedResponse; +import static com.google.cloud.ces.v1beta.AssistantServiceClient.ListLocationsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.ces.v1beta.AssistantSession; +import com.google.cloud.ces.v1beta.ChatAiAssistantRequest; +import com.google.cloud.ces.v1beta.ChatAiAssistantResponse; +import com.google.cloud.ces.v1beta.CreateAssistantSessionRequest; +import com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest; +import com.google.cloud.ces.v1beta.GetAssistantSessionRequest; +import com.google.cloud.ces.v1beta.ListAssistantSessionsRequest; +import com.google.cloud.ces.v1beta.ListAssistantSessionsResponse; +import com.google.cloud.ces.v1beta.RunAssistantRequest; +import com.google.cloud.ces.v1beta.RunAssistantResponse; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.protobuf.Empty; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the AssistantService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@NullMarked +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonAssistantServiceStub extends AssistantServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor< + ListAssistantSessionsRequest, ListAssistantSessionsResponse> + listAssistantSessionsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName("google.cloud.ces.v1beta.AssistantService/ListAssistantSessions") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{parent=projects/*/locations/*/apps/*}/assistantSessions", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListAssistantSessionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getAssistantSessionMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.ces.v1beta.AssistantService/GetAssistantSession") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{name=projects/*/locations/*/apps/*/assistantSessions/*}", + 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(AssistantSession.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createAssistantSessionMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.ces.v1beta.AssistantService/CreateAssistantSession") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{parent=projects/*/locations/*/apps/*}/assistantSessions", + 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("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AssistantSession.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteAssistantSessionMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.ces.v1beta.AssistantService/DeleteAssistantSession") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{name=projects/*/locations/*/apps/*/assistantSessions/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + runAssistantMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.ces.v1beta.AssistantService/RunAssistant") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{app=projects/*/locations/*/apps/*}:runAssistant", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "app", request.getApp()); + 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().clearApp().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(RunAssistantResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + chatAiAssistantMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.ces.v1beta.AssistantService/ChatAiAssistant") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{app=projects/*/locations/*/apps/*}:chatAiAssistant", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "app", request.getApp()); + 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().clearApp().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ChatAiAssistantResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listLocationsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{name=projects/*}/locations", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListLocationsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getLocationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{name=projects/*/locations/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Location.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable + listAssistantSessionsCallable; + private final UnaryCallable + listAssistantSessionsPagedCallable; + private final UnaryCallable + getAssistantSessionCallable; + private final UnaryCallable + createAssistantSessionCallable; + private final UnaryCallable deleteAssistantSessionCallable; + private final UnaryCallable runAssistantCallable; + private final UnaryCallable + chatAiAssistantCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonAssistantServiceStub create(AssistantServiceStubSettings settings) + throws IOException { + return new HttpJsonAssistantServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonAssistantServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonAssistantServiceStub( + AssistantServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonAssistantServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonAssistantServiceStub( + AssistantServiceStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonAssistantServiceStub, 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 HttpJsonAssistantServiceStub( + AssistantServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonAssistantServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonAssistantServiceStub, 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 HttpJsonAssistantServiceStub( + AssistantServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings + listAssistantSessionsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listAssistantSessionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings + getAssistantSessionTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getAssistantSessionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + createAssistantSessionTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createAssistantSessionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings + deleteAssistantSessionTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteAssistantSessionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings runAssistantTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(runAssistantMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("app", String.valueOf(request.getApp())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getApp()) + .build(); + HttpJsonCallSettings + chatAiAssistantTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(chatAiAssistantMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("app", String.valueOf(request.getApp())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getApp()) + .build(); + HttpJsonCallSettings + listLocationsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getLocationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + + this.listAssistantSessionsCallable = + callableFactory.createUnaryCallable( + listAssistantSessionsTransportSettings, + settings.listAssistantSessionsSettings(), + clientContext); + this.listAssistantSessionsPagedCallable = + callableFactory.createPagedCallable( + listAssistantSessionsTransportSettings, + settings.listAssistantSessionsSettings(), + clientContext); + this.getAssistantSessionCallable = + callableFactory.createUnaryCallable( + getAssistantSessionTransportSettings, + settings.getAssistantSessionSettings(), + clientContext); + this.createAssistantSessionCallable = + callableFactory.createUnaryCallable( + createAssistantSessionTransportSettings, + settings.createAssistantSessionSettings(), + clientContext); + this.deleteAssistantSessionCallable = + callableFactory.createUnaryCallable( + deleteAssistantSessionTransportSettings, + settings.deleteAssistantSessionSettings(), + clientContext); + this.runAssistantCallable = + callableFactory.createUnaryCallable( + runAssistantTransportSettings, settings.runAssistantSettings(), clientContext); + this.chatAiAssistantCallable = + callableFactory.createUnaryCallable( + chatAiAssistantTransportSettings, settings.chatAiAssistantSettings(), clientContext); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(listAssistantSessionsMethodDescriptor); + methodDescriptors.add(getAssistantSessionMethodDescriptor); + methodDescriptors.add(createAssistantSessionMethodDescriptor); + methodDescriptors.add(deleteAssistantSessionMethodDescriptor); + methodDescriptors.add(runAssistantMethodDescriptor); + methodDescriptors.add(chatAiAssistantMethodDescriptor); + methodDescriptors.add(listLocationsMethodDescriptor); + methodDescriptors.add(getLocationMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable + listAssistantSessionsCallable() { + return listAssistantSessionsCallable; + } + + @Override + public UnaryCallable + listAssistantSessionsPagedCallable() { + return listAssistantSessionsPagedCallable; + } + + @Override + public UnaryCallable getAssistantSessionCallable() { + return getAssistantSessionCallable; + } + + @Override + public UnaryCallable + createAssistantSessionCallable() { + return createAssistantSessionCallable; + } + + @Override + public UnaryCallable deleteAssistantSessionCallable() { + return deleteAssistantSessionCallable; + } + + @Override + public UnaryCallable runAssistantCallable() { + return runAssistantCallable; + } + + @Override + public UnaryCallable chatAiAssistantCallable() { + return chatAiAssistantCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @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-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/HttpJsonSessionServiceStub.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/HttpJsonSessionServiceStub.java index be19367ad6f9..47b606e177df 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/HttpJsonSessionServiceStub.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/HttpJsonSessionServiceStub.java @@ -35,8 +35,14 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.ces.v1beta.BidiSessionClientMessage; import com.google.cloud.ces.v1beta.BidiSessionServerMessage; +import com.google.cloud.ces.v1beta.CancelAssistantTurnRequest; +import com.google.cloud.ces.v1beta.CancelAssistantTurnResponse; +import com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest; +import com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse; import com.google.cloud.ces.v1beta.RunSessionRequest; import com.google.cloud.ces.v1beta.RunSessionResponse; +import com.google.cloud.ces.v1beta.StreamChatAiAssistantRequest; +import com.google.cloud.ces.v1beta.StreamChatAiAssistantResponse; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; @@ -139,6 +145,124 @@ public class HttpJsonSessionServiceStub extends SessionServiceStub { .build()) .build(); + private static final ApiMethodDescriptor< + StreamChatAiAssistantRequest, StreamChatAiAssistantResponse> + streamChatAiAssistantMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName("google.cloud.ces.v1beta.SessionService/StreamChatAiAssistant") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.SERVER_STREAMING) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{name=projects/*/locations/*/apps/*/assistantSessions/*}:streamChatAiAssistant", + 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(StreamChatAiAssistantResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + cancelAssistantTurnMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.ces.v1beta.SessionService/CancelAssistantTurn") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{name=projects/*/locations/*/apps/*/assistantSessions/*}:cancelAssistantTurn", + 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(CancelAssistantTurnResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + GenerateOnboardingSuggestionsRequest, GenerateOnboardingSuggestionsResponse> + generateOnboardingSuggestionsMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.cloud.ces.v1beta.SessionService/GenerateOnboardingSuggestions") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{name=projects/*/locations/*/apps/*}:generateOnboardingSuggestions", + 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( + GenerateOnboardingSuggestionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor listLocationsMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -210,6 +334,13 @@ public class HttpJsonSessionServiceStub extends SessionServiceStub { private final UnaryCallable runSessionCallable; private final ServerStreamingCallable streamRunSessionCallable; + private final ServerStreamingCallable + streamChatAiAssistantCallable; + private final UnaryCallable + cancelAssistantTurnCallable; + private final UnaryCallable< + GenerateOnboardingSuggestionsRequest, GenerateOnboardingSuggestionsResponse> + generateOnboardingSuggestionsCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -279,6 +410,49 @@ protected HttpJsonSessionServiceStub( return builder.build(); }) .build(); + HttpJsonCallSettings + streamChatAiAssistantTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(streamChatAiAssistantMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + cancelAssistantTurnTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(cancelAssistantTurnMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings< + GenerateOnboardingSuggestionsRequest, GenerateOnboardingSuggestionsResponse> + generateOnboardingSuggestionsTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(generateOnboardingSuggestionsMethodDescriptor) + .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() @@ -309,6 +483,21 @@ protected HttpJsonSessionServiceStub( this.streamRunSessionCallable = callableFactory.createServerStreamingCallable( streamRunSessionTransportSettings, settings.streamRunSessionSettings(), clientContext); + this.streamChatAiAssistantCallable = + callableFactory.createServerStreamingCallable( + streamChatAiAssistantTransportSettings, + settings.streamChatAiAssistantSettings(), + clientContext); + this.cancelAssistantTurnCallable = + callableFactory.createUnaryCallable( + cancelAssistantTurnTransportSettings, + settings.cancelAssistantTurnSettings(), + clientContext); + this.generateOnboardingSuggestionsCallable = + callableFactory.createUnaryCallable( + generateOnboardingSuggestionsTransportSettings, + settings.generateOnboardingSuggestionsSettings(), + clientContext); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -328,6 +517,9 @@ public static List getMethodDescriptors() { List methodDescriptors = new ArrayList<>(); methodDescriptors.add(runSessionMethodDescriptor); methodDescriptors.add(streamRunSessionMethodDescriptor); + methodDescriptors.add(streamChatAiAssistantMethodDescriptor); + methodDescriptors.add(cancelAssistantTurnMethodDescriptor); + methodDescriptors.add(generateOnboardingSuggestionsMethodDescriptor); methodDescriptors.add(listLocationsMethodDescriptor); methodDescriptors.add(getLocationMethodDescriptor); return methodDescriptors; @@ -343,6 +535,24 @@ public ServerStreamingCallable streamRunS return streamRunSessionCallable; } + @Override + public ServerStreamingCallable + streamChatAiAssistantCallable() { + return streamChatAiAssistantCallable; + } + + @Override + public UnaryCallable + cancelAssistantTurnCallable() { + return cancelAssistantTurnCallable; + } + + @Override + public UnaryCallable + generateOnboardingSuggestionsCallable() { + return generateOnboardingSuggestionsCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/SessionServiceStub.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/SessionServiceStub.java index 4b994d8e838b..15291d7e997d 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/SessionServiceStub.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/SessionServiceStub.java @@ -25,8 +25,14 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.ces.v1beta.BidiSessionClientMessage; import com.google.cloud.ces.v1beta.BidiSessionServerMessage; +import com.google.cloud.ces.v1beta.CancelAssistantTurnRequest; +import com.google.cloud.ces.v1beta.CancelAssistantTurnResponse; +import com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest; +import com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse; import com.google.cloud.ces.v1beta.RunSessionRequest; import com.google.cloud.ces.v1beta.RunSessionResponse; +import com.google.cloud.ces.v1beta.StreamChatAiAssistantRequest; +import com.google.cloud.ces.v1beta.StreamChatAiAssistantResponse; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; @@ -58,6 +64,22 @@ public ServerStreamingCallable streamRunS throw new UnsupportedOperationException("Not implemented: bidiRunSessionCallable()"); } + public ServerStreamingCallable + streamChatAiAssistantCallable() { + throw new UnsupportedOperationException("Not implemented: streamChatAiAssistantCallable()"); + } + + public UnaryCallable + cancelAssistantTurnCallable() { + throw new UnsupportedOperationException("Not implemented: cancelAssistantTurnCallable()"); + } + + public UnaryCallable + generateOnboardingSuggestionsCallable() { + throw new UnsupportedOperationException( + "Not implemented: generateOnboardingSuggestionsCallable()"); + } + public UnaryCallable listLocationsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/SessionServiceStubSettings.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/SessionServiceStubSettings.java index 379dd5d2ea1c..27d5c56ea3e3 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/SessionServiceStubSettings.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/SessionServiceStubSettings.java @@ -49,8 +49,14 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.ces.v1beta.BidiSessionClientMessage; import com.google.cloud.ces.v1beta.BidiSessionServerMessage; +import com.google.cloud.ces.v1beta.CancelAssistantTurnRequest; +import com.google.cloud.ces.v1beta.CancelAssistantTurnResponse; +import com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest; +import com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse; import com.google.cloud.ces.v1beta.RunSessionRequest; import com.google.cloud.ces.v1beta.RunSessionResponse; +import com.google.cloud.ces.v1beta.StreamChatAiAssistantRequest; +import com.google.cloud.ces.v1beta.StreamChatAiAssistantResponse; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; @@ -133,6 +139,14 @@ public class SessionServiceStubSettings extends StubSettings bidiRunSessionSettings; + private final ServerStreamingCallSettings< + StreamChatAiAssistantRequest, StreamChatAiAssistantResponse> + streamChatAiAssistantSettings; + private final UnaryCallSettings + cancelAssistantTurnSettings; + private final UnaryCallSettings< + GenerateOnboardingSuggestionsRequest, GenerateOnboardingSuggestionsResponse> + generateOnboardingSuggestionsSettings; private final PagedCallSettings< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -206,6 +220,25 @@ public UnaryCallSettings runSessionSettin return bidiRunSessionSettings; } + /** Returns the object with the settings used for calls to streamChatAiAssistant. */ + public ServerStreamingCallSettings + streamChatAiAssistantSettings() { + return streamChatAiAssistantSettings; + } + + /** Returns the object with the settings used for calls to cancelAssistantTurn. */ + public UnaryCallSettings + cancelAssistantTurnSettings() { + return cancelAssistantTurnSettings; + } + + /** Returns the object with the settings used for calls to generateOnboardingSuggestions. */ + public UnaryCallSettings< + GenerateOnboardingSuggestionsRequest, GenerateOnboardingSuggestionsResponse> + generateOnboardingSuggestionsSettings() { + return generateOnboardingSuggestionsSettings; + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -331,6 +364,10 @@ protected SessionServiceStubSettings(Builder settingsBuilder) throws IOException runSessionSettings = settingsBuilder.runSessionSettings().build(); streamRunSessionSettings = settingsBuilder.streamRunSessionSettings().build(); bidiRunSessionSettings = settingsBuilder.bidiRunSessionSettings().build(); + streamChatAiAssistantSettings = settingsBuilder.streamChatAiAssistantSettings().build(); + cancelAssistantTurnSettings = settingsBuilder.cancelAssistantTurnSettings().build(); + generateOnboardingSuggestionsSettings = + settingsBuilder.generateOnboardingSuggestionsSettings().build(); listLocationsSettings = settingsBuilder.listLocationsSettings().build(); getLocationSettings = settingsBuilder.getLocationSettings().build(); } @@ -353,6 +390,14 @@ public static class Builder extends StubSettings.Builder bidiRunSessionSettings; + private final ServerStreamingCallSettings.Builder< + StreamChatAiAssistantRequest, StreamChatAiAssistantResponse> + streamChatAiAssistantSettings; + private final UnaryCallSettings.Builder + cancelAssistantTurnSettings; + private final UnaryCallSettings.Builder< + GenerateOnboardingSuggestionsRequest, GenerateOnboardingSuggestionsResponse> + generateOnboardingSuggestionsSettings; private final PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -426,12 +471,19 @@ protected Builder(@Nullable ClientContext clientContext) { runSessionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); streamRunSessionSettings = ServerStreamingCallSettings.newBuilder(); bidiRunSessionSettings = StreamingCallSettings.newBuilder(); + streamChatAiAssistantSettings = ServerStreamingCallSettings.newBuilder(); + cancelAssistantTurnSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + generateOnboardingSuggestionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( - runSessionSettings, listLocationsSettings, getLocationSettings); + runSessionSettings, + cancelAssistantTurnSettings, + generateOnboardingSuggestionsSettings, + listLocationsSettings, + getLocationSettings); initDefaults(this); } @@ -441,12 +493,20 @@ protected Builder(SessionServiceStubSettings settings) { runSessionSettings = settings.runSessionSettings.toBuilder(); streamRunSessionSettings = settings.streamRunSessionSettings.toBuilder(); bidiRunSessionSettings = settings.bidiRunSessionSettings.toBuilder(); + streamChatAiAssistantSettings = settings.streamChatAiAssistantSettings.toBuilder(); + cancelAssistantTurnSettings = settings.cancelAssistantTurnSettings.toBuilder(); + generateOnboardingSuggestionsSettings = + settings.generateOnboardingSuggestionsSettings.toBuilder(); listLocationsSettings = settings.listLocationsSettings.toBuilder(); getLocationSettings = settings.getLocationSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( - runSessionSettings, listLocationsSettings, getLocationSettings); + runSessionSettings, + cancelAssistantTurnSettings, + generateOnboardingSuggestionsSettings, + listLocationsSettings, + getLocationSettings); } private static Builder createDefault() { @@ -484,6 +544,21 @@ 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 + .streamChatAiAssistantSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")); + + builder + .cancelAssistantTurnSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .generateOnboardingSuggestionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder .listLocationsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) @@ -529,6 +604,26 @@ public UnaryCallSettings.Builder runSessi return bidiRunSessionSettings; } + /** Returns the builder for the settings used for calls to streamChatAiAssistant. */ + public ServerStreamingCallSettings.Builder< + StreamChatAiAssistantRequest, StreamChatAiAssistantResponse> + streamChatAiAssistantSettings() { + return streamChatAiAssistantSettings; + } + + /** Returns the builder for the settings used for calls to cancelAssistantTurn. */ + public UnaryCallSettings.Builder + cancelAssistantTurnSettings() { + return cancelAssistantTurnSettings; + } + + /** Returns the builder for the settings used for calls to generateOnboardingSuggestions. */ + public UnaryCallSettings.Builder< + GenerateOnboardingSuggestionsRequest, GenerateOnboardingSuggestionsResponse> + generateOnboardingSuggestionsSettings() { + return generateOnboardingSuggestionsSettings; + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> 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 58c0c3124e51..3e00226ee8d3 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 @@ -170,6 +170,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.FieldInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FieldInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FieldInfo$Format", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.FlowControlLimitExceededBehaviorProto", "queryAllDeclaredConstructors": true, @@ -512,6 +539,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.TypeReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.TypeReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.ces.v1beta.Action", "queryAllDeclaredConstructors": true, @@ -557,6 +602,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.ces.v1beta.ActiveTurnInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.ActiveTurnInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.ActiveTurnInfo$Status", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.ces.v1beta.Agent", "queryAllDeclaredConstructors": true, @@ -611,6 +683,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.ces.v1beta.Agent$RemoteA2aAgent", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.Agent$RemoteA2aAgent$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.ces.v1beta.Agent$RemoteDialogflowAgent", "queryAllDeclaredConstructors": true, @@ -665,6 +755,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.ces.v1beta.AgentRegistryDeployment", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.AgentRegistryDeployment$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.ces.v1beta.AgentSkill", "queryAllDeclaredConstructors": true, @@ -1017,7 +1125,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.AudioEncoding", + "name": "com.google.cloud.ces.v1beta.ArtifactChunk", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1026,7 +1134,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.AudioProcessingConfig", + "name": "com.google.cloud.ces.v1beta.ArtifactChunk$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1035,7 +1143,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.AudioProcessingConfig$Builder", + "name": "com.google.cloud.ces.v1beta.ArtifactChunk$State", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1044,7 +1152,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.AudioRecordingConfig", + "name": "com.google.cloud.ces.v1beta.AssistantChunk", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1053,7 +1161,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.AudioRecordingConfig$Builder", + "name": "com.google.cloud.ces.v1beta.AssistantChunk$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1062,7 +1170,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.BargeInConfig", + "name": "com.google.cloud.ces.v1beta.AssistantConfirmationRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1071,7 +1179,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.BargeInConfig$Builder", + "name": "com.google.cloud.ces.v1beta.AssistantConfirmationRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1080,7 +1188,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.BatchDeleteConversationsRequest", + "name": "com.google.cloud.ces.v1beta.AssistantConfirmationResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1089,7 +1197,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.BatchDeleteConversationsRequest$Builder", + "name": "com.google.cloud.ces.v1beta.AssistantConfirmationResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1098,7 +1206,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.BatchDeleteConversationsResponse", + "name": "com.google.cloud.ces.v1beta.AssistantMessage", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1107,7 +1215,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.BatchDeleteConversationsResponse$Builder", + "name": "com.google.cloud.ces.v1beta.AssistantMessage$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1116,7 +1224,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.BearerTokenConfig", + "name": "com.google.cloud.ces.v1beta.AssistantOutput", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1125,7 +1233,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.BearerTokenConfig$Builder", + "name": "com.google.cloud.ces.v1beta.AssistantOutput$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1134,7 +1242,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.BidiSessionClientMessage", + "name": "com.google.cloud.ces.v1beta.AssistantSession", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1143,7 +1251,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.BidiSessionClientMessage$Builder", + "name": "com.google.cloud.ces.v1beta.AssistantSession$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1152,7 +1260,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.BidiSessionServerMessage", + "name": "com.google.cloud.ces.v1beta.AssistantSessionArtifact", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1161,7 +1269,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.BidiSessionServerMessage$Builder", + "name": "com.google.cloud.ces.v1beta.AssistantSessionArtifact$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1170,7 +1278,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.BigQueryExportSettings", + "name": "com.google.cloud.ces.v1beta.AssistantSessionState", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1179,7 +1287,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.BigQueryExportSettings$Builder", + "name": "com.google.cloud.ces.v1beta.AssistantSuggestion", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1188,7 +1296,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Blob", + "name": "com.google.cloud.ces.v1beta.AssistantSuggestion$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1197,7 +1305,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Blob$Builder", + "name": "com.google.cloud.ces.v1beta.AssistantSuggestion$Icon", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1206,7 +1314,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Callback", + "name": "com.google.cloud.ces.v1beta.AssistantSuggestion$LoadSession", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1215,7 +1323,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Callback$Builder", + "name": "com.google.cloud.ces.v1beta.AssistantSuggestion$LoadSession$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1224,7 +1332,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Changelog", + "name": "com.google.cloud.ces.v1beta.AssistantSuggestion$Source", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1233,7 +1341,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Changelog$Builder", + "name": "com.google.cloud.ces.v1beta.AudioEncoding", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1242,7 +1350,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ChannelProfile", + "name": "com.google.cloud.ces.v1beta.AudioProcessingConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1251,7 +1359,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ChannelProfile$Builder", + "name": "com.google.cloud.ces.v1beta.AudioProcessingConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1260,7 +1368,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ChannelProfile$ChannelType", + "name": "com.google.cloud.ces.v1beta.AudioRecordingConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1269,7 +1377,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ChannelProfile$InstagramConfig", + "name": "com.google.cloud.ces.v1beta.AudioRecordingConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1278,7 +1386,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ChannelProfile$InstagramConfig$Builder", + "name": "com.google.cloud.ces.v1beta.BargeInConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1287,7 +1395,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ChannelProfile$PersonaProperty", + "name": "com.google.cloud.ces.v1beta.BargeInConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1296,7 +1404,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ChannelProfile$PersonaProperty$Builder", + "name": "com.google.cloud.ces.v1beta.BatchDeleteConversationsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1305,7 +1413,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ChannelProfile$PersonaProperty$Persona", + "name": "com.google.cloud.ces.v1beta.BatchDeleteConversationsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1314,7 +1422,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ChannelProfile$WebWidgetConfig", + "name": "com.google.cloud.ces.v1beta.BatchDeleteConversationsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1323,7 +1431,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ChannelProfile$WebWidgetConfig$Builder", + "name": "com.google.cloud.ces.v1beta.BatchDeleteConversationsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1332,7 +1440,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ChannelProfile$WebWidgetConfig$Modality", + "name": "com.google.cloud.ces.v1beta.BearerTokenConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1341,7 +1449,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ChannelProfile$WebWidgetConfig$SecuritySettings", + "name": "com.google.cloud.ces.v1beta.BearerTokenConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1350,7 +1458,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ChannelProfile$WebWidgetConfig$SecuritySettings$Builder", + "name": "com.google.cloud.ces.v1beta.BidiSessionClientMessage", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1359,7 +1467,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ChannelProfile$WebWidgetConfig$Theme", + "name": "com.google.cloud.ces.v1beta.BidiSessionClientMessage$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1368,7 +1476,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ChannelProfile$WhatsAppConfig", + "name": "com.google.cloud.ces.v1beta.BidiSessionServerMessage", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1377,7 +1485,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ChannelProfile$WhatsAppConfig$Builder", + "name": "com.google.cloud.ces.v1beta.BidiSessionServerMessage$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1386,7 +1494,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Chunk", + "name": "com.google.cloud.ces.v1beta.BigQueryExportSettings", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1395,7 +1503,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Chunk$Builder", + "name": "com.google.cloud.ces.v1beta.BigQueryExportSettings$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1404,7 +1512,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Citations", + "name": "com.google.cloud.ces.v1beta.Blob", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1413,7 +1521,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Citations$Builder", + "name": "com.google.cloud.ces.v1beta.Blob$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1422,7 +1530,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Citations$CitedChunk", + "name": "com.google.cloud.ces.v1beta.Callback", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1431,7 +1539,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Citations$CitedChunk$Builder", + "name": "com.google.cloud.ces.v1beta.Callback$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1440,7 +1548,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ClientCertificateSettings", + "name": "com.google.cloud.ces.v1beta.CancelAssistantTurnRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1449,7 +1557,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ClientCertificateSettings$Builder", + "name": "com.google.cloud.ces.v1beta.CancelAssistantTurnRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1458,7 +1566,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ClientFunction", + "name": "com.google.cloud.ces.v1beta.CancelAssistantTurnResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1467,7 +1575,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ClientFunction$Builder", + "name": "com.google.cloud.ces.v1beta.CancelAssistantTurnResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1476,7 +1584,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.CloudLoggingSettings", + "name": "com.google.cloud.ces.v1beta.Changelog", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1485,7 +1593,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.CloudLoggingSettings$Builder", + "name": "com.google.cloud.ces.v1beta.Changelog$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1494,7 +1602,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.CodeBlock", + "name": "com.google.cloud.ces.v1beta.ChannelProfile", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1503,7 +1611,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.CodeBlock$Builder", + "name": "com.google.cloud.ces.v1beta.ChannelProfile$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1512,7 +1620,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ConnectorTool", + "name": "com.google.cloud.ces.v1beta.ChannelProfile$ChannelType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1521,7 +1629,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ConnectorTool$Builder", + "name": "com.google.cloud.ces.v1beta.ChannelProfile$InstagramConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1530,7 +1638,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ConnectorToolset", + "name": "com.google.cloud.ces.v1beta.ChannelProfile$InstagramConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1539,7 +1647,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ConnectorToolset$Builder", + "name": "com.google.cloud.ces.v1beta.ChannelProfile$PersonaProperty", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1548,7 +1656,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Conversation", + "name": "com.google.cloud.ces.v1beta.ChannelProfile$PersonaProperty$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1557,7 +1665,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Conversation$Builder", + "name": "com.google.cloud.ces.v1beta.ChannelProfile$PersonaProperty$Persona", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1566,7 +1674,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Conversation$ChannelType", + "name": "com.google.cloud.ces.v1beta.ChannelProfile$WebWidgetConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1575,7 +1683,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Conversation$InputType", + "name": "com.google.cloud.ces.v1beta.ChannelProfile$WebWidgetConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1584,7 +1692,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Conversation$Source", + "name": "com.google.cloud.ces.v1beta.ChannelProfile$WebWidgetConfig$Modality", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1593,7 +1701,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Conversation$Turn", + "name": "com.google.cloud.ces.v1beta.ChannelProfile$WebWidgetConfig$SecuritySettings", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1602,7 +1710,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Conversation$Turn$Builder", + "name": "com.google.cloud.ces.v1beta.ChannelProfile$WebWidgetConfig$SecuritySettings$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1611,7 +1719,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ConversationLoggingSettings", + "name": "com.google.cloud.ces.v1beta.ChannelProfile$WebWidgetConfig$Theme", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1620,7 +1728,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ConversationLoggingSettings$Builder", + "name": "com.google.cloud.ces.v1beta.ChannelProfile$WhatsAppConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1629,7 +1737,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.CreateAgentRequest", + "name": "com.google.cloud.ces.v1beta.ChannelProfile$WhatsAppConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1638,7 +1746,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.CreateAgentRequest$Builder", + "name": "com.google.cloud.ces.v1beta.ChatAiAssistantRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1647,7 +1755,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.CreateAppRequest", + "name": "com.google.cloud.ces.v1beta.ChatAiAssistantRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1656,7 +1764,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.CreateAppRequest$Builder", + "name": "com.google.cloud.ces.v1beta.ChatAiAssistantResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1665,7 +1773,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.CreateAppVersionRequest", + "name": "com.google.cloud.ces.v1beta.ChatAiAssistantResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1674,7 +1782,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.CreateAppVersionRequest$Builder", + "name": "com.google.cloud.ces.v1beta.Chunk", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1683,7 +1791,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.CreateDeploymentRequest", + "name": "com.google.cloud.ces.v1beta.Chunk$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1692,7 +1800,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.CreateDeploymentRequest$Builder", + "name": "com.google.cloud.ces.v1beta.Citations", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1701,7 +1809,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.CreateEvaluationDatasetRequest", + "name": "com.google.cloud.ces.v1beta.Citations$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1710,7 +1818,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.CreateEvaluationDatasetRequest$Builder", + "name": "com.google.cloud.ces.v1beta.Citations$CitedChunk", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1719,7 +1827,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.CreateEvaluationExpectationRequest", + "name": "com.google.cloud.ces.v1beta.Citations$CitedChunk$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1728,7 +1836,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.CreateEvaluationExpectationRequest$Builder", + "name": "com.google.cloud.ces.v1beta.Citations$InlineCitation", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1737,7 +1845,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.CreateEvaluationRequest", + "name": "com.google.cloud.ces.v1beta.Citations$InlineCitation$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1746,7 +1854,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.CreateEvaluationRequest$Builder", + "name": "com.google.cloud.ces.v1beta.ClientCertificateSettings", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1755,7 +1863,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.CreateExampleRequest", + "name": "com.google.cloud.ces.v1beta.ClientCertificateSettings$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1764,7 +1872,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.CreateExampleRequest$Builder", + "name": "com.google.cloud.ces.v1beta.ClientFunction", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1773,7 +1881,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.CreateGuardrailRequest", + "name": "com.google.cloud.ces.v1beta.ClientFunction$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1782,7 +1890,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.CreateGuardrailRequest$Builder", + "name": "com.google.cloud.ces.v1beta.CloudLoggingSettings", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1791,7 +1899,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.CreateScheduledEvaluationRunRequest", + "name": "com.google.cloud.ces.v1beta.CloudLoggingSettings$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1800,7 +1908,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.CreateScheduledEvaluationRunRequest$Builder", + "name": "com.google.cloud.ces.v1beta.CodeBlock", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1809,7 +1917,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.CreateToolRequest", + "name": "com.google.cloud.ces.v1beta.CodeBlock$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1818,7 +1926,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.CreateToolRequest$Builder", + "name": "com.google.cloud.ces.v1beta.ConnectorTool", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1827,7 +1935,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.CreateToolsetRequest", + "name": "com.google.cloud.ces.v1beta.ConnectorTool$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1836,7 +1944,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.CreateToolsetRequest$Builder", + "name": "com.google.cloud.ces.v1beta.ConnectorToolset", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1845,7 +1953,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStore", + "name": "com.google.cloud.ces.v1beta.ConnectorToolset$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1854,7 +1962,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStore$Builder", + "name": "com.google.cloud.ces.v1beta.Conversation", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1863,7 +1971,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStore$ConnectorConfig", + "name": "com.google.cloud.ces.v1beta.Conversation$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1872,7 +1980,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStore$ConnectorConfig$Builder", + "name": "com.google.cloud.ces.v1beta.Conversation$ChannelType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1881,7 +1989,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStore$DataStoreType", + "name": "com.google.cloud.ces.v1beta.Conversation$InputType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1890,7 +1998,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStore$DocumentProcessingMode", + "name": "com.google.cloud.ces.v1beta.Conversation$Source", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1899,7 +2007,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStoreSettings", + "name": "com.google.cloud.ces.v1beta.Conversation$Turn", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1908,7 +2016,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStoreSettings$Builder", + "name": "com.google.cloud.ces.v1beta.Conversation$Turn$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1917,7 +2025,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStoreSettings$Engine", + "name": "com.google.cloud.ces.v1beta.ConversationLoggingSettings", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1926,7 +2034,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStoreSettings$Engine$Builder", + "name": "com.google.cloud.ces.v1beta.ConversationLoggingSettings$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1935,7 +2043,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStoreSettings$Engine$Type", + "name": "com.google.cloud.ces.v1beta.CreateAgentRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1944,7 +2052,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStoreTool", + "name": "com.google.cloud.ces.v1beta.CreateAgentRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1953,7 +2061,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStoreTool$BoostSpec", + "name": "com.google.cloud.ces.v1beta.CreateAppRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1962,7 +2070,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStoreTool$BoostSpec$Builder", + "name": "com.google.cloud.ces.v1beta.CreateAppRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1971,7 +2079,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStoreTool$BoostSpec$ConditionBoostSpec", + "name": "com.google.cloud.ces.v1beta.CreateAppVersionRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1980,7 +2088,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStoreTool$BoostSpec$ConditionBoostSpec$BoostControlSpec", + "name": "com.google.cloud.ces.v1beta.CreateAppVersionRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1989,7 +2097,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStoreTool$BoostSpec$ConditionBoostSpec$BoostControlSpec$AttributeType", + "name": "com.google.cloud.ces.v1beta.CreateAssistantSessionRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1998,7 +2106,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStoreTool$BoostSpec$ConditionBoostSpec$BoostControlSpec$Builder", + "name": "com.google.cloud.ces.v1beta.CreateAssistantSessionRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2007,7 +2115,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStoreTool$BoostSpec$ConditionBoostSpec$BoostControlSpec$ControlPoint", + "name": "com.google.cloud.ces.v1beta.CreateDeploymentRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2016,7 +2124,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStoreTool$BoostSpec$ConditionBoostSpec$BoostControlSpec$ControlPoint$Builder", + "name": "com.google.cloud.ces.v1beta.CreateDeploymentRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2025,7 +2133,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStoreTool$BoostSpec$ConditionBoostSpec$BoostControlSpec$InterpolationType", + "name": "com.google.cloud.ces.v1beta.CreateEvaluationDatasetRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2034,7 +2142,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStoreTool$BoostSpec$ConditionBoostSpec$Builder", + "name": "com.google.cloud.ces.v1beta.CreateEvaluationDatasetRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2043,7 +2151,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStoreTool$BoostSpecs", + "name": "com.google.cloud.ces.v1beta.CreateEvaluationExpectationRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2052,7 +2160,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStoreTool$BoostSpecs$Builder", + "name": "com.google.cloud.ces.v1beta.CreateEvaluationExpectationRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2061,7 +2169,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStoreTool$Builder", + "name": "com.google.cloud.ces.v1beta.CreateEvaluationRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2070,7 +2178,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStoreTool$DataStoreSource", + "name": "com.google.cloud.ces.v1beta.CreateEvaluationRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2079,7 +2187,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStoreTool$DataStoreSource$Builder", + "name": "com.google.cloud.ces.v1beta.CreateExampleRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2088,7 +2196,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStoreTool$EngineSource", + "name": "com.google.cloud.ces.v1beta.CreateExampleRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2097,7 +2205,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStoreTool$EngineSource$Builder", + "name": "com.google.cloud.ces.v1beta.CreateGuardrailRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2106,7 +2214,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStoreTool$FilterParameterBehavior", + "name": "com.google.cloud.ces.v1beta.CreateGuardrailRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2115,7 +2223,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStoreTool$GroundingConfig", + "name": "com.google.cloud.ces.v1beta.CreateScheduledEvaluationRunRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2124,7 +2232,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStoreTool$GroundingConfig$Builder", + "name": "com.google.cloud.ces.v1beta.CreateScheduledEvaluationRunRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2133,7 +2241,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStoreTool$ModalityConfig", + "name": "com.google.cloud.ces.v1beta.CreateToolRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2142,7 +2250,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStoreTool$ModalityConfig$Builder", + "name": "com.google.cloud.ces.v1beta.CreateToolRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2151,7 +2259,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStoreTool$ModalityConfig$ModalityType", + "name": "com.google.cloud.ces.v1beta.CreateToolsetRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2160,7 +2268,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStoreTool$RewriterConfig", + "name": "com.google.cloud.ces.v1beta.CreateToolsetRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2169,7 +2277,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStoreTool$RewriterConfig$Builder", + "name": "com.google.cloud.ces.v1beta.CustomVoiceSample", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2178,7 +2286,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStoreTool$SummarizationConfig", + "name": "com.google.cloud.ces.v1beta.CustomVoiceSample$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2187,7 +2295,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStoreTool$SummarizationConfig$Builder", + "name": "com.google.cloud.ces.v1beta.CustomVoiceSample$VoiceInstructionMode", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2196,7 +2304,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DeleteAgentRequest", + "name": "com.google.cloud.ces.v1beta.CustomVoiceSample$Warning", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2205,7 +2313,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DeleteAgentRequest$Builder", + "name": "com.google.cloud.ces.v1beta.CustomVoiceSample$Warning$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2214,7 +2322,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DeleteAppRequest", + "name": "com.google.cloud.ces.v1beta.CustomVoiceSample$Warning$WarningType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2223,7 +2331,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DeleteAppRequest$Builder", + "name": "com.google.cloud.ces.v1beta.DashboardSettings", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2232,7 +2340,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DeleteAppVersionRequest", + "name": "com.google.cloud.ces.v1beta.DashboardSettings$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2241,7 +2349,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DeleteAppVersionRequest$Builder", + "name": "com.google.cloud.ces.v1beta.DataStore", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2250,7 +2358,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DeleteConversationRequest", + "name": "com.google.cloud.ces.v1beta.DataStore$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2259,7 +2367,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DeleteConversationRequest$Builder", + "name": "com.google.cloud.ces.v1beta.DataStore$ConnectorConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2268,7 +2376,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DeleteDeploymentRequest", + "name": "com.google.cloud.ces.v1beta.DataStore$ConnectorConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2277,7 +2385,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DeleteDeploymentRequest$Builder", + "name": "com.google.cloud.ces.v1beta.DataStore$DataStoreType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2286,7 +2394,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DeleteEvaluationDatasetRequest", + "name": "com.google.cloud.ces.v1beta.DataStore$DocumentProcessingMode", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2295,7 +2403,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DeleteEvaluationDatasetRequest$Builder", + "name": "com.google.cloud.ces.v1beta.DataStoreSettings", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2304,7 +2412,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DeleteEvaluationExpectationRequest", + "name": "com.google.cloud.ces.v1beta.DataStoreSettings$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2313,7 +2421,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DeleteEvaluationExpectationRequest$Builder", + "name": "com.google.cloud.ces.v1beta.DataStoreSettings$Engine", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2322,7 +2430,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DeleteEvaluationRequest", + "name": "com.google.cloud.ces.v1beta.DataStoreSettings$Engine$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2331,7 +2439,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DeleteEvaluationRequest$Builder", + "name": "com.google.cloud.ces.v1beta.DataStoreSettings$Engine$Type", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2340,7 +2448,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DeleteEvaluationResultRequest", + "name": "com.google.cloud.ces.v1beta.DataStoreTool", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2349,7 +2457,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DeleteEvaluationResultRequest$Builder", + "name": "com.google.cloud.ces.v1beta.DataStoreTool$BoostSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2358,7 +2466,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DeleteEvaluationRunOperationMetadata", + "name": "com.google.cloud.ces.v1beta.DataStoreTool$BoostSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2367,7 +2475,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DeleteEvaluationRunOperationMetadata$Builder", + "name": "com.google.cloud.ces.v1beta.DataStoreTool$BoostSpec$ConditionBoostSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2376,7 +2484,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DeleteEvaluationRunRequest", + "name": "com.google.cloud.ces.v1beta.DataStoreTool$BoostSpec$ConditionBoostSpec$BoostControlSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2385,7 +2493,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DeleteEvaluationRunRequest$Builder", + "name": "com.google.cloud.ces.v1beta.DataStoreTool$BoostSpec$ConditionBoostSpec$BoostControlSpec$AttributeType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2394,7 +2502,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DeleteExampleRequest", + "name": "com.google.cloud.ces.v1beta.DataStoreTool$BoostSpec$ConditionBoostSpec$BoostControlSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2403,7 +2511,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DeleteExampleRequest$Builder", + "name": "com.google.cloud.ces.v1beta.DataStoreTool$BoostSpec$ConditionBoostSpec$BoostControlSpec$ControlPoint", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2412,7 +2520,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DeleteGuardrailRequest", + "name": "com.google.cloud.ces.v1beta.DataStoreTool$BoostSpec$ConditionBoostSpec$BoostControlSpec$ControlPoint$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2421,7 +2529,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DeleteGuardrailRequest$Builder", + "name": "com.google.cloud.ces.v1beta.DataStoreTool$BoostSpec$ConditionBoostSpec$BoostControlSpec$InterpolationType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2430,7 +2538,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DeleteScheduledEvaluationRunRequest", + "name": "com.google.cloud.ces.v1beta.DataStoreTool$BoostSpec$ConditionBoostSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2439,7 +2547,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DeleteScheduledEvaluationRunRequest$Builder", + "name": "com.google.cloud.ces.v1beta.DataStoreTool$BoostSpecs", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2448,7 +2556,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DeleteToolRequest", + "name": "com.google.cloud.ces.v1beta.DataStoreTool$BoostSpecs$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2457,7 +2565,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DeleteToolRequest$Builder", + "name": "com.google.cloud.ces.v1beta.DataStoreTool$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2466,7 +2574,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DeleteToolsetRequest", + "name": "com.google.cloud.ces.v1beta.DataStoreTool$DataStoreSource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2475,7 +2583,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DeleteToolsetRequest$Builder", + "name": "com.google.cloud.ces.v1beta.DataStoreTool$DataStoreSource$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2484,7 +2592,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Deployment", + "name": "com.google.cloud.ces.v1beta.DataStoreTool$EngineSource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2493,7 +2601,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Deployment$Builder", + "name": "com.google.cloud.ces.v1beta.DataStoreTool$EngineSource$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2502,7 +2610,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EndSession", + "name": "com.google.cloud.ces.v1beta.DataStoreTool$FilterParameterBehavior", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2511,7 +2619,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EndSession$Builder", + "name": "com.google.cloud.ces.v1beta.DataStoreTool$GroundingConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2520,7 +2628,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EndUserAuthConfig", + "name": "com.google.cloud.ces.v1beta.DataStoreTool$GroundingConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2529,7 +2637,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EndUserAuthConfig$Builder", + "name": "com.google.cloud.ces.v1beta.DataStoreTool$ModalityConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2538,7 +2646,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EndUserAuthConfig$Oauth2AuthCodeConfig", + "name": "com.google.cloud.ces.v1beta.DataStoreTool$ModalityConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2547,7 +2655,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EndUserAuthConfig$Oauth2AuthCodeConfig$Builder", + "name": "com.google.cloud.ces.v1beta.DataStoreTool$ModalityConfig$ModalityType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2556,7 +2664,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EndUserAuthConfig$Oauth2JwtBearerConfig", + "name": "com.google.cloud.ces.v1beta.DataStoreTool$RewriterConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2565,7 +2673,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EndUserAuthConfig$Oauth2JwtBearerConfig$Builder", + "name": "com.google.cloud.ces.v1beta.DataStoreTool$RewriterConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2574,7 +2682,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EndpointControlPolicy", + "name": "com.google.cloud.ces.v1beta.DataStoreTool$SnippetsConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2583,7 +2691,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EndpointControlPolicy$Builder", + "name": "com.google.cloud.ces.v1beta.DataStoreTool$SnippetsConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2592,7 +2700,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EndpointControlPolicy$EnforcementScope", + "name": "com.google.cloud.ces.v1beta.DataStoreTool$SummarizationConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2601,7 +2709,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ErrorHandlingSettings", + "name": "com.google.cloud.ces.v1beta.DataStoreTool$SummarizationConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2610,7 +2718,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ErrorHandlingSettings$Builder", + "name": "com.google.cloud.ces.v1beta.DeleteAgentRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2619,7 +2727,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ErrorHandlingSettings$EndSessionConfig", + "name": "com.google.cloud.ces.v1beta.DeleteAgentRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2628,7 +2736,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ErrorHandlingSettings$EndSessionConfig$Builder", + "name": "com.google.cloud.ces.v1beta.DeleteAppRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2637,7 +2745,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ErrorHandlingSettings$ErrorHandlingStrategy", + "name": "com.google.cloud.ces.v1beta.DeleteAppRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2646,7 +2754,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ErrorHandlingSettings$FallbackResponseConfig", + "name": "com.google.cloud.ces.v1beta.DeleteAppVersionRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2655,7 +2763,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ErrorHandlingSettings$FallbackResponseConfig$Builder", + "name": "com.google.cloud.ces.v1beta.DeleteAppVersionRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2664,7 +2772,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Evaluation", + "name": "com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2673,7 +2781,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Evaluation$Builder", + "name": "com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2682,7 +2790,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Evaluation$Golden", + "name": "com.google.cloud.ces.v1beta.DeleteConversationRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2691,7 +2799,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Evaluation$Golden$Builder", + "name": "com.google.cloud.ces.v1beta.DeleteConversationRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2700,7 +2808,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Evaluation$GoldenExpectation", + "name": "com.google.cloud.ces.v1beta.DeleteDeploymentRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2709,7 +2817,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Evaluation$GoldenExpectation$Builder", + "name": "com.google.cloud.ces.v1beta.DeleteDeploymentRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2718,7 +2826,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Evaluation$GoldenTurn", + "name": "com.google.cloud.ces.v1beta.DeleteEvaluationDatasetRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2727,7 +2835,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Evaluation$GoldenTurn$Builder", + "name": "com.google.cloud.ces.v1beta.DeleteEvaluationDatasetRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2736,7 +2844,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Evaluation$Scenario", + "name": "com.google.cloud.ces.v1beta.DeleteEvaluationExpectationRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2745,7 +2853,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Evaluation$Scenario$Builder", + "name": "com.google.cloud.ces.v1beta.DeleteEvaluationExpectationRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2754,7 +2862,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Evaluation$Scenario$TaskCompletionBehavior", + "name": "com.google.cloud.ces.v1beta.DeleteEvaluationRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2763,7 +2871,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Evaluation$Scenario$UserFact", + "name": "com.google.cloud.ces.v1beta.DeleteEvaluationRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2772,7 +2880,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Evaluation$Scenario$UserFact$Builder", + "name": "com.google.cloud.ces.v1beta.DeleteEvaluationResultRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2781,7 +2889,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Evaluation$Scenario$UserGoalBehavior", + "name": "com.google.cloud.ces.v1beta.DeleteEvaluationResultRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2790,7 +2898,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Evaluation$ScenarioExpectation", + "name": "com.google.cloud.ces.v1beta.DeleteEvaluationRunOperationMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2799,7 +2907,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Evaluation$ScenarioExpectation$Builder", + "name": "com.google.cloud.ces.v1beta.DeleteEvaluationRunOperationMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2808,7 +2916,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Evaluation$ScenarioExpectation$ToolExpectation", + "name": "com.google.cloud.ces.v1beta.DeleteEvaluationRunRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2817,7 +2925,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Evaluation$ScenarioExpectation$ToolExpectation$Builder", + "name": "com.google.cloud.ces.v1beta.DeleteEvaluationRunRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2826,7 +2934,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Evaluation$Step", + "name": "com.google.cloud.ces.v1beta.DeleteExampleRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2835,7 +2943,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Evaluation$Step$Builder", + "name": "com.google.cloud.ces.v1beta.DeleteExampleRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2844,7 +2952,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationConfig", + "name": "com.google.cloud.ces.v1beta.DeleteGuardrailRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2853,7 +2961,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationConfig$Builder", + "name": "com.google.cloud.ces.v1beta.DeleteGuardrailRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2862,7 +2970,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationConfig$EvaluationChannel", + "name": "com.google.cloud.ces.v1beta.DeleteScheduledEvaluationRunRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2871,7 +2979,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationDataset", + "name": "com.google.cloud.ces.v1beta.DeleteScheduledEvaluationRunRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2880,7 +2988,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationDataset$Builder", + "name": "com.google.cloud.ces.v1beta.DeleteToolRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2889,7 +2997,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationErrorInfo", + "name": "com.google.cloud.ces.v1beta.DeleteToolRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2898,7 +3006,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationErrorInfo$Builder", + "name": "com.google.cloud.ces.v1beta.DeleteToolsetRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2907,7 +3015,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationErrorInfo$ErrorType", + "name": "com.google.cloud.ces.v1beta.DeleteToolsetRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2916,7 +3024,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationExpectation", + "name": "com.google.cloud.ces.v1beta.DeployChannelResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2925,7 +3033,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationExpectation$Builder", + "name": "com.google.cloud.ces.v1beta.DeployChannelResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2934,7 +3042,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationExpectation$LlmCriteria", + "name": "com.google.cloud.ces.v1beta.Deployment", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2943,7 +3051,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationExpectation$LlmCriteria$Builder", + "name": "com.google.cloud.ces.v1beta.Deployment$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2952,7 +3060,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationMetricsConfig", + "name": "com.google.cloud.ces.v1beta.Deployment$Modality", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2961,7 +3069,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationMetricsConfig$Builder", + "name": "com.google.cloud.ces.v1beta.EndSession", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2970,7 +3078,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationMetricsConfig$ComparisonType", + "name": "com.google.cloud.ces.v1beta.EndSession$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2979,7 +3087,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationMetricsConfig$ExpectationsMetMetricsConfig", + "name": "com.google.cloud.ces.v1beta.EndUserAuthConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2988,7 +3096,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationMetricsConfig$ExpectationsMetMetricsConfig$Builder", + "name": "com.google.cloud.ces.v1beta.EndUserAuthConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2997,7 +3105,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationMetricsConfig$GoldenMetricsConfig", + "name": "com.google.cloud.ces.v1beta.EndUserAuthConfig$Oauth2AuthCodeConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3006,7 +3114,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationMetricsConfig$GoldenMetricsConfig$Builder", + "name": "com.google.cloud.ces.v1beta.EndUserAuthConfig$Oauth2AuthCodeConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3015,7 +3123,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationMetricsConfig$HallucinationMetricsConfig", + "name": "com.google.cloud.ces.v1beta.EndUserAuthConfig$Oauth2JwtBearerConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3024,7 +3132,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationMetricsConfig$HallucinationMetricsConfig$Builder", + "name": "com.google.cloud.ces.v1beta.EndUserAuthConfig$Oauth2JwtBearerConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3033,7 +3141,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationMetricsConfig$ScenarioMetricsConfig", + "name": "com.google.cloud.ces.v1beta.EndpointControlPolicy", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3042,7 +3150,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationMetricsConfig$ScenarioMetricsConfig$Builder", + "name": "com.google.cloud.ces.v1beta.EndpointControlPolicy$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3051,7 +3159,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationMetricsConfig$SemanticSimilarityMetricsConfig", + "name": "com.google.cloud.ces.v1beta.EndpointControlPolicy$EnforcementScope", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3060,7 +3168,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationMetricsConfig$SemanticSimilarityMetricsConfig$Builder", + "name": "com.google.cloud.ces.v1beta.ErrorHandlingSettings", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3069,7 +3177,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationMetricsConfig$ToolCorrectnessMetricsConfig", + "name": "com.google.cloud.ces.v1beta.ErrorHandlingSettings$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3078,7 +3186,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationMetricsConfig$ToolCorrectnessMetricsConfig$Builder", + "name": "com.google.cloud.ces.v1beta.ErrorHandlingSettings$EndSessionConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3087,7 +3195,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationMetricsConfig$UserGoalMetMetricsConfig", + "name": "com.google.cloud.ces.v1beta.ErrorHandlingSettings$EndSessionConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3096,7 +3204,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationMetricsConfig$UserGoalMetMetricsConfig$Builder", + "name": "com.google.cloud.ces.v1beta.ErrorHandlingSettings$ErrorHandlingStrategy", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3105,7 +3213,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationMetricsThresholds", + "name": "com.google.cloud.ces.v1beta.ErrorHandlingSettings$FallbackResponseConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3114,7 +3222,934 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationMetricsThresholds$Builder", + "name": "com.google.cloud.ces.v1beta.ErrorHandlingSettings$FallbackResponseConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.Evaluation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.Evaluation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.Evaluation$Golden", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.Evaluation$Golden$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.Evaluation$GoldenExpectation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.Evaluation$GoldenExpectation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.Evaluation$GoldenTurn", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.Evaluation$GoldenTurn$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.Evaluation$Scenario", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.Evaluation$Scenario$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.Evaluation$Scenario$TaskCompletionBehavior", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.Evaluation$Scenario$UserFact", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.Evaluation$Scenario$UserFact$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.Evaluation$Scenario$UserGoalBehavior", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.Evaluation$ScenarioExpectation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.Evaluation$ScenarioExpectation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.Evaluation$ScenarioExpectation$ToolExpectation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.Evaluation$ScenarioExpectation$ToolExpectation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.Evaluation$Step", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.Evaluation$Step$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationConfig$EvaluationChannel", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationDataset", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationDataset$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationErrorInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationErrorInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationErrorInfo$ErrorType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationExpectation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationExpectation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationExpectation$LlmCriteria", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationExpectation$LlmCriteria$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationMetricsConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationMetricsConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationMetricsConfig$ComparisonType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationMetricsConfig$ExpectationsMetMetricsConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationMetricsConfig$ExpectationsMetMetricsConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationMetricsConfig$GoldenMetricsConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationMetricsConfig$GoldenMetricsConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationMetricsConfig$HallucinationMetricsConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationMetricsConfig$HallucinationMetricsConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationMetricsConfig$ScenarioMetricsConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationMetricsConfig$ScenarioMetricsConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationMetricsConfig$SemanticSimilarityMetricsConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationMetricsConfig$SemanticSimilarityMetricsConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationMetricsConfig$ToolCorrectnessMetricsConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationMetricsConfig$ToolCorrectnessMetricsConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationMetricsConfig$UserGoalMetMetricsConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationMetricsConfig$UserGoalMetMetricsConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationMetricsThresholds", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationMetricsThresholds$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationMetricsThresholds$GoldenEvaluationMetricsThresholds", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationMetricsThresholds$GoldenEvaluationMetricsThresholds$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationMetricsThresholds$GoldenEvaluationMetricsThresholds$ExpectationLevelMetricsThresholds", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationMetricsThresholds$GoldenEvaluationMetricsThresholds$ExpectationLevelMetricsThresholds$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationMetricsThresholds$GoldenEvaluationMetricsThresholds$TurnLevelMetricsThresholds", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationMetricsThresholds$GoldenEvaluationMetricsThresholds$TurnLevelMetricsThresholds$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationMetricsThresholds$GoldenEvaluationMetricsThresholds$TurnLevelMetricsThresholds$SemanticSimilarityChannel", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationMetricsThresholds$HallucinationMetricBehavior", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationMetricsThresholds$ToolMatchingSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationMetricsThresholds$ToolMatchingSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationMetricsThresholds$ToolMatchingSettings$ExtraToolCallBehavior", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationPersona", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationPersona$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationPersona$SpeechConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationPersona$SpeechConfig$BackgroundEnvironment", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationPersona$SpeechConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationResult", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationResult$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationResult$EvaluationExpectationResult", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationResult$EvaluationExpectationResult$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationResult$ExecutionState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationResult$GoldenExpectationOutcome", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationResult$GoldenExpectationOutcome$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationResult$GoldenExpectationOutcome$ToolInvocationResult", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationResult$GoldenExpectationOutcome$ToolInvocationResult$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationResult$GoldenResult", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationResult$GoldenResult$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationResult$GoldenResult$TurnReplayResult", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationResult$GoldenResult$TurnReplayResult$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationResult$HallucinationResult", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationResult$HallucinationResult$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationResult$Outcome", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationResult$OutcomeMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationResult$OverallToolInvocationResult", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationResult$OverallToolInvocationResult$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationResult$ScenarioExpectationOutcome", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationResult$ScenarioExpectationOutcome$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationResult$ScenarioExpectationOutcome$ObservedToolCall", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationResult$ScenarioExpectationOutcome$ObservedToolCall$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationResult$ScenarioResult", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationResult$ScenarioResult$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationResult$ScenarioRubricOutcome", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationResult$ScenarioRubricOutcome$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationResult$SemanticSimilarityResult", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationResult$SemanticSimilarityResult$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationResult$SpanLatency", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationResult$SpanLatency$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationResult$SpanLatency$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationResult$TaskCompletionResult", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationResult$TaskCompletionResult$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationResult$ToolCallLatency", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationResult$ToolCallLatency$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3123,7 +4158,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationMetricsThresholds$GoldenEvaluationMetricsThresholds", + "name": "com.google.cloud.ces.v1beta.EvaluationResult$UserGoalSatisfactionResult", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3132,7 +4167,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationMetricsThresholds$GoldenEvaluationMetricsThresholds$Builder", + "name": "com.google.cloud.ces.v1beta.EvaluationResult$UserGoalSatisfactionResult$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3141,7 +4176,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationMetricsThresholds$GoldenEvaluationMetricsThresholds$ExpectationLevelMetricsThresholds", + "name": "com.google.cloud.ces.v1beta.EvaluationRun", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3150,7 +4185,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationMetricsThresholds$GoldenEvaluationMetricsThresholds$ExpectationLevelMetricsThresholds$Builder", + "name": "com.google.cloud.ces.v1beta.EvaluationRun$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3159,7 +4194,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationMetricsThresholds$GoldenEvaluationMetricsThresholds$TurnLevelMetricsThresholds", + "name": "com.google.cloud.ces.v1beta.EvaluationRun$EvaluationRunState", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3168,7 +4203,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationMetricsThresholds$GoldenEvaluationMetricsThresholds$TurnLevelMetricsThresholds$Builder", + "name": "com.google.cloud.ces.v1beta.EvaluationRun$EvaluationRunSummary", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3177,7 +4212,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationMetricsThresholds$GoldenEvaluationMetricsThresholds$TurnLevelMetricsThresholds$SemanticSimilarityChannel", + "name": "com.google.cloud.ces.v1beta.EvaluationRun$EvaluationRunSummary$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3186,7 +4221,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationMetricsThresholds$HallucinationMetricBehavior", + "name": "com.google.cloud.ces.v1beta.EvaluationRun$EvaluationType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3195,7 +4230,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationMetricsThresholds$ToolMatchingSettings", + "name": "com.google.cloud.ces.v1beta.EvaluationRun$Progress", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3204,7 +4239,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationMetricsThresholds$ToolMatchingSettings$Builder", + "name": "com.google.cloud.ces.v1beta.EvaluationRun$Progress$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3213,7 +4248,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationMetricsThresholds$ToolMatchingSettings$ExtraToolCallBehavior", + "name": "com.google.cloud.ces.v1beta.EvaluationRunCachingSettings", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3222,7 +4257,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationPersona", + "name": "com.google.cloud.ces.v1beta.EvaluationRunCachingSettings$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3231,7 +4266,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationPersona$Builder", + "name": "com.google.cloud.ces.v1beta.EvaluationRunCachingSettings$EvaluationRunCachingMode", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3240,7 +4275,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationPersona$SpeechConfig", + "name": "com.google.cloud.ces.v1beta.EvaluationSettings", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3249,7 +4284,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationPersona$SpeechConfig$BackgroundEnvironment", + "name": "com.google.cloud.ces.v1beta.EvaluationSettings$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3258,7 +4293,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationPersona$SpeechConfig$Builder", + "name": "com.google.cloud.ces.v1beta.EvaluationSettings$ScenarioConversationInitiator", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3267,7 +4302,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult", + "name": "com.google.cloud.ces.v1beta.EvaluationSettings$ScenarioExecutionMode", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3276,7 +4311,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult$Builder", + "name": "com.google.cloud.ces.v1beta.EvaluationToolCallBehaviour", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3285,7 +4320,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult$EvaluationExpectationResult", + "name": "com.google.cloud.ces.v1beta.Event", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3294,7 +4329,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult$EvaluationExpectationResult$Builder", + "name": "com.google.cloud.ces.v1beta.Event$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3303,7 +4338,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult$ExecutionState", + "name": "com.google.cloud.ces.v1beta.Example", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3312,7 +4347,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult$GoldenExpectationOutcome", + "name": "com.google.cloud.ces.v1beta.Example$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3321,7 +4356,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult$GoldenExpectationOutcome$Builder", + "name": "com.google.cloud.ces.v1beta.ExecuteToolRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3330,7 +4365,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult$GoldenExpectationOutcome$ToolInvocationResult", + "name": "com.google.cloud.ces.v1beta.ExecuteToolRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3339,7 +4374,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult$GoldenExpectationOutcome$ToolInvocationResult$Builder", + "name": "com.google.cloud.ces.v1beta.ExecuteToolResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3348,7 +4383,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult$GoldenResult", + "name": "com.google.cloud.ces.v1beta.ExecuteToolResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3357,7 +4392,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult$GoldenResult$Builder", + "name": "com.google.cloud.ces.v1beta.ExecutionType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3366,7 +4401,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult$GoldenResult$TurnReplayResult", + "name": "com.google.cloud.ces.v1beta.ExperimentConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3375,7 +4410,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult$GoldenResult$TurnReplayResult$Builder", + "name": "com.google.cloud.ces.v1beta.ExperimentConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3384,7 +4419,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult$HallucinationResult", + "name": "com.google.cloud.ces.v1beta.ExperimentConfig$State", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3393,7 +4428,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult$HallucinationResult$Builder", + "name": "com.google.cloud.ces.v1beta.ExperimentConfig$VersionRelease", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3402,7 +4437,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult$Outcome", + "name": "com.google.cloud.ces.v1beta.ExperimentConfig$VersionRelease$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3411,7 +4446,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult$OverallToolInvocationResult", + "name": "com.google.cloud.ces.v1beta.ExperimentConfig$VersionRelease$TrafficAllocation", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3420,7 +4455,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult$OverallToolInvocationResult$Builder", + "name": "com.google.cloud.ces.v1beta.ExperimentConfig$VersionRelease$TrafficAllocation$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3429,7 +4464,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult$ScenarioExpectationOutcome", + "name": "com.google.cloud.ces.v1beta.ExportAppRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3438,7 +4473,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult$ScenarioExpectationOutcome$Builder", + "name": "com.google.cloud.ces.v1beta.ExportAppRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3447,7 +4482,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult$ScenarioExpectationOutcome$ObservedToolCall", + "name": "com.google.cloud.ces.v1beta.ExportAppRequest$ExportFormat", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3456,7 +4491,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult$ScenarioExpectationOutcome$ObservedToolCall$Builder", + "name": "com.google.cloud.ces.v1beta.ExportAppResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3465,7 +4500,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult$ScenarioResult", + "name": "com.google.cloud.ces.v1beta.ExportAppResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3474,7 +4509,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult$ScenarioResult$Builder", + "name": "com.google.cloud.ces.v1beta.ExportEvaluationResultsOperationMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3483,7 +4518,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult$ScenarioRubricOutcome", + "name": "com.google.cloud.ces.v1beta.ExportEvaluationResultsOperationMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3492,7 +4527,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult$ScenarioRubricOutcome$Builder", + "name": "com.google.cloud.ces.v1beta.ExportEvaluationResultsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3501,7 +4536,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult$SemanticSimilarityResult", + "name": "com.google.cloud.ces.v1beta.ExportEvaluationResultsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3510,7 +4545,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult$SemanticSimilarityResult$Builder", + "name": "com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3519,7 +4554,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult$SpanLatency", + "name": "com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3528,7 +4563,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult$SpanLatency$Builder", + "name": "com.google.cloud.ces.v1beta.ExportEvaluationRunsOperationMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3537,7 +4572,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult$SpanLatency$Type", + "name": "com.google.cloud.ces.v1beta.ExportEvaluationRunsOperationMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3546,7 +4581,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult$TaskCompletionResult", + "name": "com.google.cloud.ces.v1beta.ExportEvaluationRunsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3555,7 +4590,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult$TaskCompletionResult$Builder", + "name": "com.google.cloud.ces.v1beta.ExportEvaluationRunsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3564,7 +4599,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult$ToolCallLatency", + "name": "com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3573,7 +4608,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult$ToolCallLatency$Builder", + "name": "com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3582,7 +4617,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult$UserGoalSatisfactionResult", + "name": "com.google.cloud.ces.v1beta.ExportEvaluationsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3591,7 +4626,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult$UserGoalSatisfactionResult$Builder", + "name": "com.google.cloud.ces.v1beta.ExportEvaluationsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3600,7 +4635,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationRun", + "name": "com.google.cloud.ces.v1beta.ExportEvaluationsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3609,7 +4644,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationRun$Builder", + "name": "com.google.cloud.ces.v1beta.ExportEvaluationsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3618,7 +4653,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationRun$EvaluationRunState", + "name": "com.google.cloud.ces.v1beta.ExportOptions", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3627,7 +4662,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationRun$EvaluationRunSummary", + "name": "com.google.cloud.ces.v1beta.ExportOptions$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3636,7 +4671,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationRun$EvaluationRunSummary$Builder", + "name": "com.google.cloud.ces.v1beta.ExportOptions$ExportFormat", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3645,7 +4680,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationRun$EvaluationType", + "name": "com.google.cloud.ces.v1beta.ExpressionCondition", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3654,7 +4689,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationRun$Progress", + "name": "com.google.cloud.ces.v1beta.ExpressionCondition$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3663,7 +4698,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationRun$Progress$Builder", + "name": "com.google.cloud.ces.v1beta.FileContext", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3672,7 +4707,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationRunCachingSettings", + "name": "com.google.cloud.ces.v1beta.FileContext$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3681,7 +4716,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationRunCachingSettings$Builder", + "name": "com.google.cloud.ces.v1beta.FileContext$FileBytes", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3690,7 +4725,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationRunCachingSettings$EvaluationRunCachingMode", + "name": "com.google.cloud.ces.v1beta.FileContext$FileBytes$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3699,7 +4734,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationSettings", + "name": "com.google.cloud.ces.v1beta.FileSearchTool", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3708,7 +4743,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationSettings$Builder", + "name": "com.google.cloud.ces.v1beta.FileSearchTool$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3717,7 +4752,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationSettings$ScenarioConversationInitiator", + "name": "com.google.cloud.ces.v1beta.FileSearchTool$CorpusType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3726,7 +4761,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationSettings$ScenarioExecutionMode", + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceOperationMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3735,7 +4770,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationToolCallBehaviour", + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceOperationMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3744,7 +4779,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Event", + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceOperationMetadata$GenerationType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3753,7 +4788,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Event$Builder", + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3762,7 +4797,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Example", + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$AppGenerationConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3771,7 +4806,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Example$Builder", + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$AppGenerationConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3780,7 +4815,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExecuteToolRequest", + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$AppVersionContext", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3789,7 +4824,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExecuteToolRequest$Builder", + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$AppVersionContext$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3798,7 +4833,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExecuteToolResponse", + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3807,7 +4842,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExecuteToolResponse$Builder", + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$EvaluationGenerationConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3816,7 +4851,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExecutionType", + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$EvaluationGenerationConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3825,7 +4860,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExperimentConfig", + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$EvaluationPersonasGenerationConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3834,7 +4869,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExperimentConfig$Builder", + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$EvaluationPersonasGenerationConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3843,7 +4878,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExperimentConfig$State", + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$HillClimbingFixConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3852,7 +4887,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExperimentConfig$VersionRelease", + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$HillClimbingFixConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3861,7 +4896,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExperimentConfig$VersionRelease$Builder", + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$QualityReportGenerationConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3870,7 +4905,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExperimentConfig$VersionRelease$TrafficAllocation", + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$QualityReportGenerationConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3879,7 +4914,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExperimentConfig$VersionRelease$TrafficAllocation$Builder", + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$QualityReportGenerationConfig$LossAttributionAlgorithm", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3888,7 +4923,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExportAppRequest", + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$RefineInstructions", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3897,7 +4932,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExportAppRequest$Builder", + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$RefineInstructions$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3906,7 +4941,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExportAppRequest$ExportFormat", + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$ToolGenerationConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3915,7 +4950,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExportAppResponse", + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$ToolGenerationConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3924,7 +4959,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExportAppResponse$Builder", + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$ToolGenerationConfig$OpenApiToolsetGenerationConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3933,7 +4968,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExportEvaluationResultsOperationMetadata", + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$ToolGenerationConfig$OpenApiToolsetGenerationConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3942,7 +4977,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExportEvaluationResultsOperationMetadata$Builder", + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$ToolGenerationConfig$OpenApiToolsetGenerationConfig$OperationGenerationConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3951,7 +4986,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExportEvaluationResultsRequest", + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$ToolGenerationConfig$OpenApiToolsetGenerationConfig$OperationGenerationConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3960,7 +4995,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExportEvaluationResultsRequest$Builder", + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3969,7 +5004,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse", + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceResponse$AppResources", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3978,7 +5013,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse$Builder", + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceResponse$AppResources$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3987,7 +5022,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExportEvaluationRunsOperationMetadata", + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3996,7 +5031,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExportEvaluationRunsOperationMetadata$Builder", + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceResponse$Evaluations", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4005,7 +5040,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExportEvaluationRunsRequest", + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceResponse$Evaluations$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4014,7 +5049,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExportEvaluationRunsRequest$Builder", + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceResponse$GenerateResultInfo", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4023,7 +5058,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse", + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceResponse$GenerateResultInfo$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4032,7 +5067,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse$Builder", + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceResponse$Tools", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4041,7 +5076,52 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExportEvaluationsRequest", + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceResponse$Tools$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.GenerateChatTokenRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.GenerateChatTokenRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.GenerateChatTokenResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.GenerateChatTokenResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.GenerateEvaluationOperationMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4050,7 +5130,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExportEvaluationsRequest$Builder", + "name": "com.google.cloud.ces.v1beta.GenerateEvaluationOperationMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4059,7 +5139,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExportEvaluationsResponse", + "name": "com.google.cloud.ces.v1beta.GenerateEvaluationRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4068,7 +5148,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExportEvaluationsResponse$Builder", + "name": "com.google.cloud.ces.v1beta.GenerateEvaluationRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4077,7 +5157,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExportOptions", + "name": "com.google.cloud.ces.v1beta.GenerateEvaluationRequest$EvaluationType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4086,7 +5166,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExportOptions$Builder", + "name": "com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4095,7 +5175,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExportOptions$ExportFormat", + "name": "com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4104,7 +5184,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExpressionCondition", + "name": "com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4113,7 +5193,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExpressionCondition$Builder", + "name": "com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4122,7 +5202,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.FileContext", + "name": "com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse$UserProfile", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4131,7 +5211,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.FileContext$Builder", + "name": "com.google.cloud.ces.v1beta.GetAgentRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4140,7 +5220,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.FileContext$FileBytes", + "name": "com.google.cloud.ces.v1beta.GetAgentRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4149,7 +5229,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.FileContext$FileBytes$Builder", + "name": "com.google.cloud.ces.v1beta.GetAppRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4158,7 +5238,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.FileSearchTool", + "name": "com.google.cloud.ces.v1beta.GetAppRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4167,7 +5247,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.FileSearchTool$Builder", + "name": "com.google.cloud.ces.v1beta.GetAppVersionRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4176,7 +5256,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.FileSearchTool$CorpusType", + "name": "com.google.cloud.ces.v1beta.GetAppVersionRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4185,7 +5265,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateAppResourceOperationMetadata", + "name": "com.google.cloud.ces.v1beta.GetAssistantSessionRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4194,7 +5274,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateAppResourceOperationMetadata$Builder", + "name": "com.google.cloud.ces.v1beta.GetAssistantSessionRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4203,7 +5283,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateAppResourceOperationMetadata$GenerationType", + "name": "com.google.cloud.ces.v1beta.GetChangelogRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4212,7 +5292,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest", + "name": "com.google.cloud.ces.v1beta.GetChangelogRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4221,7 +5301,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$AppGenerationConfig", + "name": "com.google.cloud.ces.v1beta.GetConversationRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4230,7 +5310,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$AppGenerationConfig$Builder", + "name": "com.google.cloud.ces.v1beta.GetConversationRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4239,7 +5319,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$AppVersionContext", + "name": "com.google.cloud.ces.v1beta.GetDeploymentRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4248,7 +5328,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$AppVersionContext$Builder", + "name": "com.google.cloud.ces.v1beta.GetDeploymentRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4257,7 +5337,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$Builder", + "name": "com.google.cloud.ces.v1beta.GetEvaluationDatasetRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4266,7 +5346,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$EvaluationGenerationConfig", + "name": "com.google.cloud.ces.v1beta.GetEvaluationDatasetRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4275,7 +5355,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$EvaluationGenerationConfig$Builder", + "name": "com.google.cloud.ces.v1beta.GetEvaluationExpectationRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4284,7 +5364,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$EvaluationPersonasGenerationConfig", + "name": "com.google.cloud.ces.v1beta.GetEvaluationExpectationRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4293,7 +5373,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$EvaluationPersonasGenerationConfig$Builder", + "name": "com.google.cloud.ces.v1beta.GetEvaluationRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4302,7 +5382,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$HillClimbingFixConfig", + "name": "com.google.cloud.ces.v1beta.GetEvaluationRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4311,7 +5391,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$HillClimbingFixConfig$Builder", + "name": "com.google.cloud.ces.v1beta.GetEvaluationResultRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4320,7 +5400,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$QualityReportGenerationConfig", + "name": "com.google.cloud.ces.v1beta.GetEvaluationResultRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4329,7 +5409,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$QualityReportGenerationConfig$Builder", + "name": "com.google.cloud.ces.v1beta.GetEvaluationRunRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4338,7 +5418,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$QualityReportGenerationConfig$LossAttributionAlgorithm", + "name": "com.google.cloud.ces.v1beta.GetEvaluationRunRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4347,7 +5427,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$RefineInstructions", + "name": "com.google.cloud.ces.v1beta.GetExampleRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4356,7 +5436,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$RefineInstructions$Builder", + "name": "com.google.cloud.ces.v1beta.GetExampleRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4365,7 +5445,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$ToolGenerationConfig", + "name": "com.google.cloud.ces.v1beta.GetGuardrailRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4374,7 +5454,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$ToolGenerationConfig$Builder", + "name": "com.google.cloud.ces.v1beta.GetGuardrailRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4383,7 +5463,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$ToolGenerationConfig$OpenApiToolsetGenerationConfig", + "name": "com.google.cloud.ces.v1beta.GetScheduledEvaluationRunRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4392,7 +5472,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$ToolGenerationConfig$OpenApiToolsetGenerationConfig$Builder", + "name": "com.google.cloud.ces.v1beta.GetScheduledEvaluationRunRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4401,7 +5481,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$ToolGenerationConfig$OpenApiToolsetGenerationConfig$OperationGenerationConfig", + "name": "com.google.cloud.ces.v1beta.GetSecuritySettingsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4410,7 +5490,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$ToolGenerationConfig$OpenApiToolsetGenerationConfig$OperationGenerationConfig$Builder", + "name": "com.google.cloud.ces.v1beta.GetSecuritySettingsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4419,7 +5499,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateAppResourceResponse", + "name": "com.google.cloud.ces.v1beta.GetToolRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4428,7 +5508,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateAppResourceResponse$AppResources", + "name": "com.google.cloud.ces.v1beta.GetToolRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4437,7 +5517,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateAppResourceResponse$AppResources$Builder", + "name": "com.google.cloud.ces.v1beta.GetToolsetRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4446,7 +5526,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateAppResourceResponse$Builder", + "name": "com.google.cloud.ces.v1beta.GetToolsetRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4455,7 +5535,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateAppResourceResponse$Evaluations", + "name": "com.google.cloud.ces.v1beta.GoAway", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4464,7 +5544,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateAppResourceResponse$Evaluations$Builder", + "name": "com.google.cloud.ces.v1beta.GoAway$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4473,7 +5553,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateAppResourceResponse$GenerateResultInfo", + "name": "com.google.cloud.ces.v1beta.GoldenRunMethod", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4482,7 +5562,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateAppResourceResponse$GenerateResultInfo$Builder", + "name": "com.google.cloud.ces.v1beta.GoogleSearchSuggestions", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4491,7 +5571,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateAppResourceResponse$Tools", + "name": "com.google.cloud.ces.v1beta.GoogleSearchSuggestions$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4500,7 +5580,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateAppResourceResponse$Tools$Builder", + "name": "com.google.cloud.ces.v1beta.GoogleSearchTool", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4509,7 +5589,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateChatTokenRequest", + "name": "com.google.cloud.ces.v1beta.GoogleSearchTool$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4518,7 +5598,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateChatTokenRequest$Builder", + "name": "com.google.cloud.ces.v1beta.GoogleSearchTool$PromptConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4527,7 +5607,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateChatTokenResponse", + "name": "com.google.cloud.ces.v1beta.GoogleSearchTool$PromptConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4536,7 +5616,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateChatTokenResponse$Builder", + "name": "com.google.cloud.ces.v1beta.Guardrail", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4545,7 +5625,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateEvaluationOperationMetadata", + "name": "com.google.cloud.ces.v1beta.Guardrail$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4554,7 +5634,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateEvaluationOperationMetadata$Builder", + "name": "com.google.cloud.ces.v1beta.Guardrail$CodeCallback", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4563,7 +5643,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateEvaluationRequest", + "name": "com.google.cloud.ces.v1beta.Guardrail$CodeCallback$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4572,7 +5652,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateEvaluationRequest$Builder", + "name": "com.google.cloud.ces.v1beta.Guardrail$ContentFilter", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4581,7 +5661,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateEvaluationRequest$EvaluationType", + "name": "com.google.cloud.ces.v1beta.Guardrail$ContentFilter$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4590,7 +5670,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GetAgentRequest", + "name": "com.google.cloud.ces.v1beta.Guardrail$ContentFilter$MatchType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4599,7 +5679,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GetAgentRequest$Builder", + "name": "com.google.cloud.ces.v1beta.Guardrail$LlmPolicy", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4608,7 +5688,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GetAppRequest", + "name": "com.google.cloud.ces.v1beta.Guardrail$LlmPolicy$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4617,7 +5697,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GetAppRequest$Builder", + "name": "com.google.cloud.ces.v1beta.Guardrail$LlmPolicy$PolicyScope", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4626,7 +5706,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GetAppVersionRequest", + "name": "com.google.cloud.ces.v1beta.Guardrail$LlmPromptSecurity", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4635,7 +5715,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GetAppVersionRequest$Builder", + "name": "com.google.cloud.ces.v1beta.Guardrail$LlmPromptSecurity$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4644,7 +5724,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GetChangelogRequest", + "name": "com.google.cloud.ces.v1beta.Guardrail$LlmPromptSecurity$DefaultSecuritySettings", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4653,7 +5733,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GetChangelogRequest$Builder", + "name": "com.google.cloud.ces.v1beta.Guardrail$LlmPromptSecurity$DefaultSecuritySettings$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4662,7 +5742,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GetConversationRequest", + "name": "com.google.cloud.ces.v1beta.Guardrail$ModelSafety", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4671,7 +5751,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GetConversationRequest$Builder", + "name": "com.google.cloud.ces.v1beta.Guardrail$ModelSafety$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4680,7 +5760,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GetDeploymentRequest", + "name": "com.google.cloud.ces.v1beta.Guardrail$ModelSafety$HarmBlockThreshold", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4689,7 +5769,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GetDeploymentRequest$Builder", + "name": "com.google.cloud.ces.v1beta.Guardrail$ModelSafety$HarmCategory", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4698,7 +5778,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GetEvaluationDatasetRequest", + "name": "com.google.cloud.ces.v1beta.Guardrail$ModelSafety$SafetySetting", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4707,7 +5787,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GetEvaluationDatasetRequest$Builder", + "name": "com.google.cloud.ces.v1beta.Guardrail$ModelSafety$SafetySetting$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4716,7 +5796,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GetEvaluationExpectationRequest", + "name": "com.google.cloud.ces.v1beta.Guardrail$Supervisor", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4725,7 +5805,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GetEvaluationExpectationRequest$Builder", + "name": "com.google.cloud.ces.v1beta.Guardrail$Supervisor$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4734,7 +5814,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GetEvaluationRequest", + "name": "com.google.cloud.ces.v1beta.Guardrail$Supervisor$DetectionMode", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4743,7 +5823,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GetEvaluationRequest$Builder", + "name": "com.google.cloud.ces.v1beta.Guardrail$Supervisor$Type", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4752,7 +5832,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GetEvaluationResultRequest", + "name": "com.google.cloud.ces.v1beta.Image", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4761,7 +5841,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GetEvaluationResultRequest$Builder", + "name": "com.google.cloud.ces.v1beta.Image$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4770,7 +5850,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GetEvaluationRunRequest", + "name": "com.google.cloud.ces.v1beta.ImportAppRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4779,7 +5859,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GetEvaluationRunRequest$Builder", + "name": "com.google.cloud.ces.v1beta.ImportAppRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4788,7 +5868,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GetExampleRequest", + "name": "com.google.cloud.ces.v1beta.ImportAppRequest$ImportOptions", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4797,7 +5877,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GetExampleRequest$Builder", + "name": "com.google.cloud.ces.v1beta.ImportAppRequest$ImportOptions$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4806,7 +5886,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GetGuardrailRequest", + "name": "com.google.cloud.ces.v1beta.ImportAppRequest$ImportOptions$ConflictResolutionStrategy", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4815,7 +5895,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GetGuardrailRequest$Builder", + "name": "com.google.cloud.ces.v1beta.ImportAppResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4824,7 +5904,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GetScheduledEvaluationRunRequest", + "name": "com.google.cloud.ces.v1beta.ImportAppResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4833,7 +5913,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GetScheduledEvaluationRunRequest$Builder", + "name": "com.google.cloud.ces.v1beta.ImportEvaluationsOperationMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4842,7 +5922,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GetSecuritySettingsRequest", + "name": "com.google.cloud.ces.v1beta.ImportEvaluationsOperationMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4851,7 +5931,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GetSecuritySettingsRequest$Builder", + "name": "com.google.cloud.ces.v1beta.ImportEvaluationsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4860,7 +5940,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GetToolRequest", + "name": "com.google.cloud.ces.v1beta.ImportEvaluationsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4869,7 +5949,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GetToolRequest$Builder", + "name": "com.google.cloud.ces.v1beta.ImportEvaluationsRequest$ConversationList", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4878,7 +5958,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GetToolsetRequest", + "name": "com.google.cloud.ces.v1beta.ImportEvaluationsRequest$ConversationList$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4887,7 +5967,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GetToolsetRequest$Builder", + "name": "com.google.cloud.ces.v1beta.ImportEvaluationsRequest$ImportOptions", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4896,7 +5976,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GoAway", + "name": "com.google.cloud.ces.v1beta.ImportEvaluationsRequest$ImportOptions$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4905,7 +5985,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GoAway$Builder", + "name": "com.google.cloud.ces.v1beta.ImportEvaluationsRequest$ImportOptions$ConflictResolutionStrategy", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4914,7 +5994,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GoldenRunMethod", + "name": "com.google.cloud.ces.v1beta.ImportEvaluationsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4923,7 +6003,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GoogleSearchSuggestions", + "name": "com.google.cloud.ces.v1beta.ImportEvaluationsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4932,7 +6012,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GoogleSearchSuggestions$Builder", + "name": "com.google.cloud.ces.v1beta.InputAudioConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4941,7 +6021,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GoogleSearchTool", + "name": "com.google.cloud.ces.v1beta.InputAudioConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4950,7 +6030,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GoogleSearchTool$Builder", + "name": "com.google.cloud.ces.v1beta.InstagramCredentials", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4959,7 +6039,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GoogleSearchTool$PromptConfig", + "name": "com.google.cloud.ces.v1beta.InstagramCredentials$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4968,7 +6048,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GoogleSearchTool$PromptConfig$Builder", + "name": "com.google.cloud.ces.v1beta.InterruptionSignal", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4977,7 +6057,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Guardrail", + "name": "com.google.cloud.ces.v1beta.InterruptionSignal$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4986,7 +6066,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Guardrail$Builder", + "name": "com.google.cloud.ces.v1beta.LanguageSettings", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4995,7 +6075,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Guardrail$CodeCallback", + "name": "com.google.cloud.ces.v1beta.LanguageSettings$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5004,7 +6084,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Guardrail$CodeCallback$Builder", + "name": "com.google.cloud.ces.v1beta.LatencyReport", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5013,7 +6093,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Guardrail$ContentFilter", + "name": "com.google.cloud.ces.v1beta.LatencyReport$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5022,7 +6102,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Guardrail$ContentFilter$Builder", + "name": "com.google.cloud.ces.v1beta.LatencyReport$CallbackLatency", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5031,7 +6111,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Guardrail$ContentFilter$MatchType", + "name": "com.google.cloud.ces.v1beta.LatencyReport$CallbackLatency$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5040,7 +6120,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Guardrail$LlmPolicy", + "name": "com.google.cloud.ces.v1beta.LatencyReport$GuardrailLatency", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5049,7 +6129,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Guardrail$LlmPolicy$Builder", + "name": "com.google.cloud.ces.v1beta.LatencyReport$GuardrailLatency$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5058,7 +6138,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Guardrail$LlmPolicy$PolicyScope", + "name": "com.google.cloud.ces.v1beta.LatencyReport$LatencyMetrics", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5067,7 +6147,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Guardrail$LlmPromptSecurity", + "name": "com.google.cloud.ces.v1beta.LatencyReport$LatencyMetrics$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5076,7 +6156,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Guardrail$LlmPromptSecurity$Builder", + "name": "com.google.cloud.ces.v1beta.LatencyReport$LlmCallLatency", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5085,7 +6165,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Guardrail$LlmPromptSecurity$DefaultSecuritySettings", + "name": "com.google.cloud.ces.v1beta.LatencyReport$LlmCallLatency$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5094,7 +6174,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Guardrail$LlmPromptSecurity$DefaultSecuritySettings$Builder", + "name": "com.google.cloud.ces.v1beta.LatencyReport$ToolLatency", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5103,7 +6183,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Guardrail$ModelSafety", + "name": "com.google.cloud.ces.v1beta.LatencyReport$ToolLatency$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5112,7 +6192,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Guardrail$ModelSafety$Builder", + "name": "com.google.cloud.ces.v1beta.ListAgentsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5121,7 +6201,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Guardrail$ModelSafety$HarmBlockThreshold", + "name": "com.google.cloud.ces.v1beta.ListAgentsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5130,7 +6210,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Guardrail$ModelSafety$HarmCategory", + "name": "com.google.cloud.ces.v1beta.ListAgentsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5139,7 +6219,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Guardrail$ModelSafety$SafetySetting", + "name": "com.google.cloud.ces.v1beta.ListAgentsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5148,7 +6228,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Guardrail$ModelSafety$SafetySetting$Builder", + "name": "com.google.cloud.ces.v1beta.ListAppVersionsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5157,7 +6237,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Image", + "name": "com.google.cloud.ces.v1beta.ListAppVersionsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5166,7 +6246,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Image$Builder", + "name": "com.google.cloud.ces.v1beta.ListAppVersionsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5175,7 +6255,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ImportAppRequest", + "name": "com.google.cloud.ces.v1beta.ListAppVersionsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5184,7 +6264,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ImportAppRequest$Builder", + "name": "com.google.cloud.ces.v1beta.ListAppsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5193,7 +6273,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ImportAppRequest$ImportOptions", + "name": "com.google.cloud.ces.v1beta.ListAppsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5202,7 +6282,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ImportAppRequest$ImportOptions$Builder", + "name": "com.google.cloud.ces.v1beta.ListAppsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5211,7 +6291,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ImportAppRequest$ImportOptions$ConflictResolutionStrategy", + "name": "com.google.cloud.ces.v1beta.ListAppsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5220,7 +6300,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ImportAppResponse", + "name": "com.google.cloud.ces.v1beta.ListAssistantSessionsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5229,7 +6309,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ImportAppResponse$Builder", + "name": "com.google.cloud.ces.v1beta.ListAssistantSessionsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5238,7 +6318,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ImportEvaluationsOperationMetadata", + "name": "com.google.cloud.ces.v1beta.ListAssistantSessionsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5247,7 +6327,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ImportEvaluationsOperationMetadata$Builder", + "name": "com.google.cloud.ces.v1beta.ListAssistantSessionsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5256,7 +6336,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ImportEvaluationsRequest", + "name": "com.google.cloud.ces.v1beta.ListChangelogsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5265,7 +6345,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ImportEvaluationsRequest$Builder", + "name": "com.google.cloud.ces.v1beta.ListChangelogsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5274,7 +6354,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ImportEvaluationsRequest$ConversationList", + "name": "com.google.cloud.ces.v1beta.ListChangelogsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5283,7 +6363,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ImportEvaluationsRequest$ConversationList$Builder", + "name": "com.google.cloud.ces.v1beta.ListChangelogsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5292,7 +6372,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ImportEvaluationsRequest$ImportOptions", + "name": "com.google.cloud.ces.v1beta.ListConversationsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5301,7 +6381,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ImportEvaluationsRequest$ImportOptions$Builder", + "name": "com.google.cloud.ces.v1beta.ListConversationsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5310,7 +6390,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ImportEvaluationsRequest$ImportOptions$ConflictResolutionStrategy", + "name": "com.google.cloud.ces.v1beta.ListConversationsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5319,7 +6399,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ImportEvaluationsResponse", + "name": "com.google.cloud.ces.v1beta.ListConversationsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5328,7 +6408,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ImportEvaluationsResponse$Builder", + "name": "com.google.cloud.ces.v1beta.ListDeploymentsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5337,7 +6417,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.InputAudioConfig", + "name": "com.google.cloud.ces.v1beta.ListDeploymentsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5346,7 +6426,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.InputAudioConfig$Builder", + "name": "com.google.cloud.ces.v1beta.ListDeploymentsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5355,7 +6435,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.InstagramCredentials", + "name": "com.google.cloud.ces.v1beta.ListDeploymentsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5364,7 +6444,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.InstagramCredentials$Builder", + "name": "com.google.cloud.ces.v1beta.ListEvaluationDatasetsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5373,7 +6453,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.InterruptionSignal", + "name": "com.google.cloud.ces.v1beta.ListEvaluationDatasetsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5382,7 +6462,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.InterruptionSignal$Builder", + "name": "com.google.cloud.ces.v1beta.ListEvaluationDatasetsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5391,7 +6471,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.LanguageSettings", + "name": "com.google.cloud.ces.v1beta.ListEvaluationDatasetsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5400,7 +6480,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.LanguageSettings$Builder", + "name": "com.google.cloud.ces.v1beta.ListEvaluationExpectationsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5409,7 +6489,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.LatencyReport", + "name": "com.google.cloud.ces.v1beta.ListEvaluationExpectationsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5418,7 +6498,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.LatencyReport$Builder", + "name": "com.google.cloud.ces.v1beta.ListEvaluationExpectationsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5427,7 +6507,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.LatencyReport$CallbackLatency", + "name": "com.google.cloud.ces.v1beta.ListEvaluationExpectationsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5436,7 +6516,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.LatencyReport$CallbackLatency$Builder", + "name": "com.google.cloud.ces.v1beta.ListEvaluationResultsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5445,7 +6525,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.LatencyReport$GuardrailLatency", + "name": "com.google.cloud.ces.v1beta.ListEvaluationResultsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5454,7 +6534,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.LatencyReport$GuardrailLatency$Builder", + "name": "com.google.cloud.ces.v1beta.ListEvaluationResultsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5463,7 +6543,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.LatencyReport$LatencyMetrics", + "name": "com.google.cloud.ces.v1beta.ListEvaluationResultsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5472,7 +6552,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.LatencyReport$LatencyMetrics$Builder", + "name": "com.google.cloud.ces.v1beta.ListEvaluationRunsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5481,7 +6561,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.LatencyReport$LlmCallLatency", + "name": "com.google.cloud.ces.v1beta.ListEvaluationRunsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5490,7 +6570,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.LatencyReport$LlmCallLatency$Builder", + "name": "com.google.cloud.ces.v1beta.ListEvaluationRunsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5499,7 +6579,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.LatencyReport$ToolLatency", + "name": "com.google.cloud.ces.v1beta.ListEvaluationRunsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5508,7 +6588,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.LatencyReport$ToolLatency$Builder", + "name": "com.google.cloud.ces.v1beta.ListEvaluationsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5517,7 +6597,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListAgentsRequest", + "name": "com.google.cloud.ces.v1beta.ListEvaluationsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5526,7 +6606,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListAgentsRequest$Builder", + "name": "com.google.cloud.ces.v1beta.ListEvaluationsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5535,7 +6615,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListAgentsResponse", + "name": "com.google.cloud.ces.v1beta.ListEvaluationsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5544,7 +6624,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListAgentsResponse$Builder", + "name": "com.google.cloud.ces.v1beta.ListExamplesRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5553,7 +6633,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListAppVersionsRequest", + "name": "com.google.cloud.ces.v1beta.ListExamplesRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5562,7 +6642,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListAppVersionsRequest$Builder", + "name": "com.google.cloud.ces.v1beta.ListExamplesResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5571,7 +6651,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListAppVersionsResponse", + "name": "com.google.cloud.ces.v1beta.ListExamplesResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5580,7 +6660,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListAppVersionsResponse$Builder", + "name": "com.google.cloud.ces.v1beta.ListGuardrailsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5589,7 +6669,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListAppsRequest", + "name": "com.google.cloud.ces.v1beta.ListGuardrailsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5598,7 +6678,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListAppsRequest$Builder", + "name": "com.google.cloud.ces.v1beta.ListGuardrailsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5607,7 +6687,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListAppsResponse", + "name": "com.google.cloud.ces.v1beta.ListGuardrailsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5616,7 +6696,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListAppsResponse$Builder", + "name": "com.google.cloud.ces.v1beta.ListScheduledEvaluationRunsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5625,7 +6705,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListChangelogsRequest", + "name": "com.google.cloud.ces.v1beta.ListScheduledEvaluationRunsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5634,7 +6714,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListChangelogsRequest$Builder", + "name": "com.google.cloud.ces.v1beta.ListScheduledEvaluationRunsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5643,7 +6723,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListChangelogsResponse", + "name": "com.google.cloud.ces.v1beta.ListScheduledEvaluationRunsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5652,7 +6732,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListChangelogsResponse$Builder", + "name": "com.google.cloud.ces.v1beta.ListToolsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5661,7 +6741,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListConversationsRequest", + "name": "com.google.cloud.ces.v1beta.ListToolsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5670,7 +6750,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListConversationsRequest$Builder", + "name": "com.google.cloud.ces.v1beta.ListToolsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5679,7 +6759,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListConversationsResponse", + "name": "com.google.cloud.ces.v1beta.ListToolsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5688,7 +6768,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListConversationsResponse$Builder", + "name": "com.google.cloud.ces.v1beta.ListToolsetsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5697,7 +6777,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListDeploymentsRequest", + "name": "com.google.cloud.ces.v1beta.ListToolsetsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5706,7 +6786,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListDeploymentsRequest$Builder", + "name": "com.google.cloud.ces.v1beta.ListToolsetsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5715,7 +6795,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListDeploymentsResponse", + "name": "com.google.cloud.ces.v1beta.ListToolsetsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5724,7 +6804,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListDeploymentsResponse$Builder", + "name": "com.google.cloud.ces.v1beta.LoggingSettings", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5733,7 +6813,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListEvaluationDatasetsRequest", + "name": "com.google.cloud.ces.v1beta.LoggingSettings$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5742,7 +6822,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListEvaluationDatasetsRequest$Builder", + "name": "com.google.cloud.ces.v1beta.McpTool", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5751,7 +6831,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListEvaluationDatasetsResponse", + "name": "com.google.cloud.ces.v1beta.McpTool$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5760,7 +6840,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListEvaluationDatasetsResponse$Builder", + "name": "com.google.cloud.ces.v1beta.McpTool$State", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5769,7 +6849,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListEvaluationExpectationsRequest", + "name": "com.google.cloud.ces.v1beta.McpToolDefinition", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5778,7 +6858,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListEvaluationExpectationsRequest$Builder", + "name": "com.google.cloud.ces.v1beta.McpToolDefinition$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5787,7 +6867,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListEvaluationExpectationsResponse", + "name": "com.google.cloud.ces.v1beta.McpToolOverride", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5796,7 +6876,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListEvaluationExpectationsResponse$Builder", + "name": "com.google.cloud.ces.v1beta.McpToolOverride$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5805,7 +6885,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListEvaluationResultsRequest", + "name": "com.google.cloud.ces.v1beta.McpToolset", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5814,7 +6894,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListEvaluationResultsRequest$Builder", + "name": "com.google.cloud.ces.v1beta.McpToolset$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5823,7 +6903,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListEvaluationResultsResponse", + "name": "com.google.cloud.ces.v1beta.Message", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5832,7 +6912,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListEvaluationResultsResponse$Builder", + "name": "com.google.cloud.ces.v1beta.Message$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5841,7 +6921,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListEvaluationRunsRequest", + "name": "com.google.cloud.ces.v1beta.MetricAnalysisSettings", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5850,7 +6930,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListEvaluationRunsRequest$Builder", + "name": "com.google.cloud.ces.v1beta.MetricAnalysisSettings$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5859,7 +6939,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListEvaluationRunsResponse", + "name": "com.google.cloud.ces.v1beta.MockConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5868,7 +6948,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListEvaluationRunsResponse$Builder", + "name": "com.google.cloud.ces.v1beta.MockConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5877,7 +6957,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListEvaluationsRequest", + "name": "com.google.cloud.ces.v1beta.MockConfig$UnmatchedToolCallBehavior", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5886,7 +6966,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListEvaluationsRequest$Builder", + "name": "com.google.cloud.ces.v1beta.MockedToolCall", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5895,7 +6975,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListEvaluationsResponse", + "name": "com.google.cloud.ces.v1beta.MockedToolCall$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5904,7 +6984,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListEvaluationsResponse$Builder", + "name": "com.google.cloud.ces.v1beta.ModelSettings", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5913,7 +6993,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListExamplesRequest", + "name": "com.google.cloud.ces.v1beta.ModelSettings$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5922,7 +7002,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListExamplesRequest$Builder", + "name": "com.google.cloud.ces.v1beta.ModelSettings$ThinkingLevel", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5931,7 +7011,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListExamplesResponse", + "name": "com.google.cloud.ces.v1beta.OAuthConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5940,7 +7020,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListExamplesResponse$Builder", + "name": "com.google.cloud.ces.v1beta.OAuthConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5949,7 +7029,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListGuardrailsRequest", + "name": "com.google.cloud.ces.v1beta.OAuthConfig$OauthGrantType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5958,7 +7038,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListGuardrailsRequest$Builder", + "name": "com.google.cloud.ces.v1beta.Omnichannel", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5967,7 +7047,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListGuardrailsResponse", + "name": "com.google.cloud.ces.v1beta.Omnichannel$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5976,7 +7056,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListGuardrailsResponse$Builder", + "name": "com.google.cloud.ces.v1beta.OmnichannelIntegrationConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5985,7 +7065,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListScheduledEvaluationRunsRequest", + "name": "com.google.cloud.ces.v1beta.OmnichannelIntegrationConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5994,7 +7074,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListScheduledEvaluationRunsRequest$Builder", + "name": "com.google.cloud.ces.v1beta.OmnichannelIntegrationConfig$CesAppConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6003,7 +7083,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListScheduledEvaluationRunsResponse", + "name": "com.google.cloud.ces.v1beta.OmnichannelIntegrationConfig$CesAppConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6012,7 +7092,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListScheduledEvaluationRunsResponse$Builder", + "name": "com.google.cloud.ces.v1beta.OmnichannelIntegrationConfig$ChannelConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6021,7 +7101,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListToolsRequest", + "name": "com.google.cloud.ces.v1beta.OmnichannelIntegrationConfig$ChannelConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6030,7 +7110,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListToolsRequest$Builder", + "name": "com.google.cloud.ces.v1beta.OmnichannelIntegrationConfig$RoutingConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6039,7 +7119,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListToolsResponse", + "name": "com.google.cloud.ces.v1beta.OmnichannelIntegrationConfig$RoutingConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6048,7 +7128,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListToolsResponse$Builder", + "name": "com.google.cloud.ces.v1beta.OmnichannelIntegrationConfig$SubscriberConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6057,7 +7137,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListToolsetsRequest", + "name": "com.google.cloud.ces.v1beta.OmnichannelIntegrationConfig$SubscriberConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6066,7 +7146,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListToolsetsRequest$Builder", + "name": "com.google.cloud.ces.v1beta.OmnichannelIntegrationConfig$WhatsappConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6075,7 +7155,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListToolsetsResponse", + "name": "com.google.cloud.ces.v1beta.OmnichannelIntegrationConfig$WhatsappConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6084,7 +7164,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListToolsetsResponse$Builder", + "name": "com.google.cloud.ces.v1beta.OmnichannelOperationMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6093,7 +7173,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.LoggingSettings", + "name": "com.google.cloud.ces.v1beta.OmnichannelOperationMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6102,7 +7182,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.LoggingSettings$Builder", + "name": "com.google.cloud.ces.v1beta.OpenApiTool", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6111,7 +7191,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.McpTool", + "name": "com.google.cloud.ces.v1beta.OpenApiTool$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6120,7 +7200,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.McpTool$Builder", + "name": "com.google.cloud.ces.v1beta.OpenApiToolset", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6129,7 +7209,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.McpTool$State", + "name": "com.google.cloud.ces.v1beta.OpenApiToolset$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6138,7 +7218,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.McpToolDefinition", + "name": "com.google.cloud.ces.v1beta.OperationCompletedEvent", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6147,7 +7227,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.McpToolDefinition$Builder", + "name": "com.google.cloud.ces.v1beta.OperationCompletedEvent$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6156,7 +7236,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.McpToolOverride", + "name": "com.google.cloud.ces.v1beta.OperationMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6165,7 +7245,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.McpToolOverride$Builder", + "name": "com.google.cloud.ces.v1beta.OperationMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6174,7 +7254,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.McpToolset", + "name": "com.google.cloud.ces.v1beta.OptimizationConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6183,7 +7263,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.McpToolset$Builder", + "name": "com.google.cloud.ces.v1beta.OptimizationConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6192,7 +7272,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Message", + "name": "com.google.cloud.ces.v1beta.OptimizationConfig$OptimizationStatus", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6201,7 +7281,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Message$Builder", + "name": "com.google.cloud.ces.v1beta.OptionQuestionsChunk", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6210,7 +7290,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.MetricAnalysisSettings", + "name": "com.google.cloud.ces.v1beta.OptionQuestionsChunk$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6219,7 +7299,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.MetricAnalysisSettings$Builder", + "name": "com.google.cloud.ces.v1beta.OptionQuestionsChunk$Option", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6228,7 +7308,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.MockConfig", + "name": "com.google.cloud.ces.v1beta.OptionQuestionsChunk$Option$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6237,7 +7317,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.MockConfig$Builder", + "name": "com.google.cloud.ces.v1beta.OptionQuestionsChunk$Question", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6246,7 +7326,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.MockConfig$UnmatchedToolCallBehavior", + "name": "com.google.cloud.ces.v1beta.OptionQuestionsChunk$Question$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6255,7 +7335,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.MockedToolCall", + "name": "com.google.cloud.ces.v1beta.OutputAudioConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6264,7 +7344,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.MockedToolCall$Builder", + "name": "com.google.cloud.ces.v1beta.OutputAudioConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6273,7 +7353,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ModelSettings", + "name": "com.google.cloud.ces.v1beta.PersonaRunConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6282,7 +7362,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ModelSettings$Builder", + "name": "com.google.cloud.ces.v1beta.PersonaRunConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6291,7 +7371,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.OAuthConfig", + "name": "com.google.cloud.ces.v1beta.PythonCodeCondition", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6300,7 +7380,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.OAuthConfig$Builder", + "name": "com.google.cloud.ces.v1beta.PythonCodeCondition$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6309,7 +7389,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.OAuthConfig$OauthGrantType", + "name": "com.google.cloud.ces.v1beta.PythonFunction", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6318,7 +7398,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Omnichannel", + "name": "com.google.cloud.ces.v1beta.PythonFunction$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6327,7 +7407,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Omnichannel$Builder", + "name": "com.google.cloud.ces.v1beta.QualityReport", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6336,7 +7416,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.OmnichannelIntegrationConfig", + "name": "com.google.cloud.ces.v1beta.QualityReport$AgentIssues", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6345,7 +7425,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.OmnichannelIntegrationConfig$Builder", + "name": "com.google.cloud.ces.v1beta.QualityReport$AgentIssues$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6354,7 +7434,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.OmnichannelIntegrationConfig$CesAppConfig", + "name": "com.google.cloud.ces.v1beta.QualityReport$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6363,7 +7443,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.OmnichannelIntegrationConfig$CesAppConfig$Builder", + "name": "com.google.cloud.ces.v1beta.QualityReport$Issue", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6372,7 +7452,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.OmnichannelIntegrationConfig$ChannelConfig", + "name": "com.google.cloud.ces.v1beta.QualityReport$Issue$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6381,7 +7461,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.OmnichannelIntegrationConfig$ChannelConfig$Builder", + "name": "com.google.cloud.ces.v1beta.RecognitionResult", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6390,7 +7470,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.OmnichannelIntegrationConfig$RoutingConfig", + "name": "com.google.cloud.ces.v1beta.RecognitionResult$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6399,7 +7479,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.OmnichannelIntegrationConfig$RoutingConfig$Builder", + "name": "com.google.cloud.ces.v1beta.RedactionConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6408,7 +7488,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.OmnichannelIntegrationConfig$SubscriberConfig", + "name": "com.google.cloud.ces.v1beta.RedactionConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6417,7 +7497,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.OmnichannelIntegrationConfig$SubscriberConfig$Builder", + "name": "com.google.cloud.ces.v1beta.RemoteA2aConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6426,7 +7506,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.OmnichannelIntegrationConfig$WhatsappConfig", + "name": "com.google.cloud.ces.v1beta.RemoteA2aConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6435,7 +7515,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.OmnichannelIntegrationConfig$WhatsappConfig$Builder", + "name": "com.google.cloud.ces.v1beta.RemoteAgentTool", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6444,7 +7524,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.OmnichannelOperationMetadata", + "name": "com.google.cloud.ces.v1beta.RemoteAgentTool$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6453,7 +7533,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.OmnichannelOperationMetadata$Builder", + "name": "com.google.cloud.ces.v1beta.RestoreAppVersionRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6462,7 +7542,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.OpenApiTool", + "name": "com.google.cloud.ces.v1beta.RestoreAppVersionRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6471,7 +7551,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.OpenApiTool$Builder", + "name": "com.google.cloud.ces.v1beta.RestoreAppVersionResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6480,7 +7560,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.OpenApiToolset", + "name": "com.google.cloud.ces.v1beta.RestoreAppVersionResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6489,7 +7569,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.OpenApiToolset$Builder", + "name": "com.google.cloud.ces.v1beta.RetrieveToolSchemaRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6498,7 +7578,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.OperationMetadata", + "name": "com.google.cloud.ces.v1beta.RetrieveToolSchemaRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6507,7 +7587,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.OperationMetadata$Builder", + "name": "com.google.cloud.ces.v1beta.RetrieveToolSchemaResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6516,7 +7596,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.OptimizationConfig", + "name": "com.google.cloud.ces.v1beta.RetrieveToolSchemaResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6525,7 +7605,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.OptimizationConfig$Builder", + "name": "com.google.cloud.ces.v1beta.RetrieveToolsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6534,7 +7614,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.OptimizationConfig$OptimizationStatus", + "name": "com.google.cloud.ces.v1beta.RetrieveToolsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6543,7 +7623,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.OutputAudioConfig", + "name": "com.google.cloud.ces.v1beta.RetrieveToolsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6552,7 +7632,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.OutputAudioConfig$Builder", + "name": "com.google.cloud.ces.v1beta.RetrieveToolsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6561,7 +7641,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.PersonaRunConfig", + "name": "com.google.cloud.ces.v1beta.RunAssistantRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6570,7 +7650,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.PersonaRunConfig$Builder", + "name": "com.google.cloud.ces.v1beta.RunAssistantRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6579,7 +7659,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.PythonCodeCondition", + "name": "com.google.cloud.ces.v1beta.RunAssistantRequest$InteractionType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6588,7 +7668,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.PythonCodeCondition$Builder", + "name": "com.google.cloud.ces.v1beta.RunAssistantResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6597,7 +7677,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.PythonFunction", + "name": "com.google.cloud.ces.v1beta.RunAssistantResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6606,7 +7686,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.PythonFunction$Builder", + "name": "com.google.cloud.ces.v1beta.RunEvaluationOperationMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6615,7 +7695,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.QualityReport", + "name": "com.google.cloud.ces.v1beta.RunEvaluationOperationMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6624,7 +7704,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.QualityReport$AgentIssues", + "name": "com.google.cloud.ces.v1beta.RunEvaluationRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6633,7 +7713,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.QualityReport$AgentIssues$Builder", + "name": "com.google.cloud.ces.v1beta.RunEvaluationRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6642,7 +7722,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.QualityReport$Builder", + "name": "com.google.cloud.ces.v1beta.RunEvaluationResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6651,7 +7731,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.QualityReport$Issue", + "name": "com.google.cloud.ces.v1beta.RunEvaluationResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6660,7 +7740,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.QualityReport$Issue$Builder", + "name": "com.google.cloud.ces.v1beta.RunEvaluationResultMetricsOperationMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6669,7 +7749,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.RecognitionResult", + "name": "com.google.cloud.ces.v1beta.RunEvaluationResultMetricsOperationMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6678,7 +7758,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.RecognitionResult$Builder", + "name": "com.google.cloud.ces.v1beta.RunEvaluationResultMetricsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6687,7 +7767,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.RedactionConfig", + "name": "com.google.cloud.ces.v1beta.RunEvaluationResultMetricsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6696,7 +7776,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.RedactionConfig$Builder", + "name": "com.google.cloud.ces.v1beta.RunEvaluationResultMetricsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6705,7 +7785,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.RemoteAgentTool", + "name": "com.google.cloud.ces.v1beta.RunEvaluationResultMetricsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6714,7 +7794,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.RemoteAgentTool$Builder", + "name": "com.google.cloud.ces.v1beta.RunSessionRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6723,7 +7803,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.RestoreAppVersionRequest", + "name": "com.google.cloud.ces.v1beta.RunSessionRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6732,7 +7812,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.RestoreAppVersionRequest$Builder", + "name": "com.google.cloud.ces.v1beta.RunSessionResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6741,7 +7821,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.RestoreAppVersionResponse", + "name": "com.google.cloud.ces.v1beta.RunSessionResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6750,7 +7830,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.RestoreAppVersionResponse$Builder", + "name": "com.google.cloud.ces.v1beta.ScheduledEvaluationRun", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6759,7 +7839,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.RetrieveToolSchemaRequest", + "name": "com.google.cloud.ces.v1beta.ScheduledEvaluationRun$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6768,7 +7848,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.RetrieveToolSchemaRequest$Builder", + "name": "com.google.cloud.ces.v1beta.ScheduledEvaluationRun$SchedulingConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6777,7 +7857,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.RetrieveToolSchemaResponse", + "name": "com.google.cloud.ces.v1beta.ScheduledEvaluationRun$SchedulingConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6786,7 +7866,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.RetrieveToolSchemaResponse$Builder", + "name": "com.google.cloud.ces.v1beta.ScheduledEvaluationRun$SchedulingConfig$Frequency", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6795,7 +7875,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.RetrieveToolsRequest", + "name": "com.google.cloud.ces.v1beta.Schema", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6804,7 +7884,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.RetrieveToolsRequest$Builder", + "name": "com.google.cloud.ces.v1beta.Schema$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6813,7 +7893,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.RetrieveToolsResponse", + "name": "com.google.cloud.ces.v1beta.Schema$Type", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6822,7 +7902,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.RetrieveToolsResponse$Builder", + "name": "com.google.cloud.ces.v1beta.SecuritySettings", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6831,7 +7911,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.RunEvaluationOperationMetadata", + "name": "com.google.cloud.ces.v1beta.SecuritySettings$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6840,7 +7920,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.RunEvaluationOperationMetadata$Builder", + "name": "com.google.cloud.ces.v1beta.ServiceAccountAuthConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6849,7 +7929,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.RunEvaluationRequest", + "name": "com.google.cloud.ces.v1beta.ServiceAccountAuthConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6858,7 +7938,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.RunEvaluationRequest$Builder", + "name": "com.google.cloud.ces.v1beta.ServiceAgentIdTokenAuthConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6867,7 +7947,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.RunEvaluationResponse", + "name": "com.google.cloud.ces.v1beta.ServiceAgentIdTokenAuthConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6876,7 +7956,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.RunEvaluationResponse$Builder", + "name": "com.google.cloud.ces.v1beta.ServiceDirectoryConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6885,7 +7965,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.RunEvaluationResultMetricsOperationMetadata", + "name": "com.google.cloud.ces.v1beta.ServiceDirectoryConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6894,7 +7974,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.RunEvaluationResultMetricsOperationMetadata$Builder", + "name": "com.google.cloud.ces.v1beta.SessionCheckpoint", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6903,7 +7983,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.RunEvaluationResultMetricsRequest", + "name": "com.google.cloud.ces.v1beta.SessionCheckpoint$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6912,7 +7992,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.RunEvaluationResultMetricsRequest$Builder", + "name": "com.google.cloud.ces.v1beta.SessionConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6921,7 +8001,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.RunEvaluationResultMetricsResponse", + "name": "com.google.cloud.ces.v1beta.SessionConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6930,7 +8010,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.RunEvaluationResultMetricsResponse$Builder", + "name": "com.google.cloud.ces.v1beta.SessionConfig$RemoteDialogflowQueryParameters", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6939,7 +8019,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.RunSessionRequest", + "name": "com.google.cloud.ces.v1beta.SessionConfig$RemoteDialogflowQueryParameters$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6948,7 +8028,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.RunSessionRequest$Builder", + "name": "com.google.cloud.ces.v1beta.SessionInput", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6957,7 +8037,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.RunSessionResponse", + "name": "com.google.cloud.ces.v1beta.SessionInput$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6966,7 +8046,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.RunSessionResponse$Builder", + "name": "com.google.cloud.ces.v1beta.SessionInput$RecordingControl", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6975,7 +8055,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ScheduledEvaluationRun", + "name": "com.google.cloud.ces.v1beta.SessionOutput", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6984,7 +8064,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ScheduledEvaluationRun$Builder", + "name": "com.google.cloud.ces.v1beta.SessionOutput$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6993,7 +8073,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ScheduledEvaluationRun$SchedulingConfig", + "name": "com.google.cloud.ces.v1beta.SessionOutput$DiagnosticInfo", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7002,7 +8082,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ScheduledEvaluationRun$SchedulingConfig$Builder", + "name": "com.google.cloud.ces.v1beta.SessionOutput$DiagnosticInfo$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7011,7 +8091,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ScheduledEvaluationRun$SchedulingConfig$Frequency", + "name": "com.google.cloud.ces.v1beta.Span", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7020,7 +8100,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Schema", + "name": "com.google.cloud.ces.v1beta.Span$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7029,7 +8109,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Schema$Builder", + "name": "com.google.cloud.ces.v1beta.StreamChatAiAssistantRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7038,7 +8118,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Schema$Type", + "name": "com.google.cloud.ces.v1beta.StreamChatAiAssistantRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7047,7 +8127,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.SecuritySettings", + "name": "com.google.cloud.ces.v1beta.StreamChatAiAssistantRequest$ClientCapability", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7056,7 +8136,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.SecuritySettings$Builder", + "name": "com.google.cloud.ces.v1beta.StreamChatAiAssistantResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7065,7 +8145,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ServiceAccountAuthConfig", + "name": "com.google.cloud.ces.v1beta.StreamChatAiAssistantResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7074,7 +8154,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ServiceAccountAuthConfig$Builder", + "name": "com.google.cloud.ces.v1beta.SynthesizeSpeechConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7083,7 +8163,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ServiceAgentIdTokenAuthConfig", + "name": "com.google.cloud.ces.v1beta.SynthesizeSpeechConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7092,7 +8172,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ServiceAgentIdTokenAuthConfig$Builder", + "name": "com.google.cloud.ces.v1beta.SystemTool", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7101,7 +8181,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ServiceDirectoryConfig", + "name": "com.google.cloud.ces.v1beta.SystemTool$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7110,7 +8190,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ServiceDirectoryConfig$Builder", + "name": "com.google.cloud.ces.v1beta.TestPersonaVoiceRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7119,7 +8199,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.SessionConfig", + "name": "com.google.cloud.ces.v1beta.TestPersonaVoiceRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7128,7 +8208,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.SessionConfig$Builder", + "name": "com.google.cloud.ces.v1beta.TestPersonaVoiceResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7137,7 +8217,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.SessionConfig$RemoteDialogflowQueryParameters", + "name": "com.google.cloud.ces.v1beta.TestPersonaVoiceResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7146,7 +8226,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.SessionConfig$RemoteDialogflowQueryParameters$Builder", + "name": "com.google.cloud.ces.v1beta.TimeZoneSettings", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7155,7 +8235,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.SessionInput", + "name": "com.google.cloud.ces.v1beta.TimeZoneSettings$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7164,7 +8244,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.SessionInput$Builder", + "name": "com.google.cloud.ces.v1beta.TlsConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7173,7 +8253,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.SessionOutput", + "name": "com.google.cloud.ces.v1beta.TlsConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7182,7 +8262,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.SessionOutput$Builder", + "name": "com.google.cloud.ces.v1beta.TlsConfig$CaCert", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7191,7 +8271,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.SessionOutput$DiagnosticInfo", + "name": "com.google.cloud.ces.v1beta.TlsConfig$CaCert$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7200,7 +8280,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.SessionOutput$DiagnosticInfo$Builder", + "name": "com.google.cloud.ces.v1beta.Tool", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7209,7 +8289,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Span", + "name": "com.google.cloud.ces.v1beta.Tool$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7218,7 +8298,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Span$Builder", + "name": "com.google.cloud.ces.v1beta.ToolCall", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7227,7 +8307,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.SynthesizeSpeechConfig", + "name": "com.google.cloud.ces.v1beta.ToolCall$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7236,7 +8316,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.SynthesizeSpeechConfig$Builder", + "name": "com.google.cloud.ces.v1beta.ToolCalls", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7245,7 +8325,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.SystemTool", + "name": "com.google.cloud.ces.v1beta.ToolCalls$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7254,7 +8334,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.SystemTool$Builder", + "name": "com.google.cloud.ces.v1beta.ToolFakeConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7263,7 +8343,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.TestPersonaVoiceRequest", + "name": "com.google.cloud.ces.v1beta.ToolFakeConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7272,7 +8352,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.TestPersonaVoiceRequest$Builder", + "name": "com.google.cloud.ces.v1beta.ToolResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7281,7 +8361,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.TestPersonaVoiceResponse", + "name": "com.google.cloud.ces.v1beta.ToolResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7290,7 +8370,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.TestPersonaVoiceResponse$Builder", + "name": "com.google.cloud.ces.v1beta.ToolResponses", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7299,7 +8379,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.TimeZoneSettings", + "name": "com.google.cloud.ces.v1beta.ToolResponses$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7308,7 +8388,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.TimeZoneSettings$Builder", + "name": "com.google.cloud.ces.v1beta.Toolset", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7317,7 +8397,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.TlsConfig", + "name": "com.google.cloud.ces.v1beta.Toolset$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7326,7 +8406,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.TlsConfig$Builder", + "name": "com.google.cloud.ces.v1beta.ToolsetTool", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7335,7 +8415,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.TlsConfig$CaCert", + "name": "com.google.cloud.ces.v1beta.ToolsetTool$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7344,7 +8424,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.TlsConfig$CaCert$Builder", + "name": "com.google.cloud.ces.v1beta.TransferRule", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7353,7 +8433,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Tool", + "name": "com.google.cloud.ces.v1beta.TransferRule$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7362,7 +8442,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Tool$Builder", + "name": "com.google.cloud.ces.v1beta.TransferRule$DeterministicTransfer", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7371,7 +8451,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ToolCall", + "name": "com.google.cloud.ces.v1beta.TransferRule$DeterministicTransfer$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7380,7 +8460,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ToolCall$Builder", + "name": "com.google.cloud.ces.v1beta.TransferRule$Direction", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7389,7 +8469,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ToolCalls", + "name": "com.google.cloud.ces.v1beta.TransferRule$DisablePlannerTransfer", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7398,7 +8478,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ToolCalls$Builder", + "name": "com.google.cloud.ces.v1beta.TransferRule$DisablePlannerTransfer$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7407,7 +8487,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ToolFakeConfig", + "name": "com.google.cloud.ces.v1beta.TriggerAction", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7416,7 +8496,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ToolFakeConfig$Builder", + "name": "com.google.cloud.ces.v1beta.TriggerAction$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7425,7 +8505,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ToolResponse", + "name": "com.google.cloud.ces.v1beta.TriggerAction$GenerativeAnswer", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7434,7 +8514,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ToolResponse$Builder", + "name": "com.google.cloud.ces.v1beta.TriggerAction$GenerativeAnswer$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7443,7 +8523,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ToolResponses", + "name": "com.google.cloud.ces.v1beta.TriggerAction$RespondImmediately", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7452,7 +8532,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ToolResponses$Builder", + "name": "com.google.cloud.ces.v1beta.TriggerAction$RespondImmediately$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7461,7 +8541,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Toolset", + "name": "com.google.cloud.ces.v1beta.TriggerAction$Response", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7470,7 +8550,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Toolset$Builder", + "name": "com.google.cloud.ces.v1beta.TriggerAction$Response$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7479,7 +8559,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ToolsetTool", + "name": "com.google.cloud.ces.v1beta.TriggerAction$TransferAgent", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7488,7 +8568,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ToolsetTool$Builder", + "name": "com.google.cloud.ces.v1beta.TriggerAction$TransferAgent$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7497,7 +8577,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.TransferRule", + "name": "com.google.cloud.ces.v1beta.TurnCompletedEvent", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7506,7 +8586,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.TransferRule$Builder", + "name": "com.google.cloud.ces.v1beta.TurnCompletedEvent$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7515,7 +8595,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.TransferRule$DeterministicTransfer", + "name": "com.google.cloud.ces.v1beta.TurnCompletedEvent$Reason", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7524,7 +8604,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.TransferRule$DeterministicTransfer$Builder", + "name": "com.google.cloud.ces.v1beta.TurnHandoffEvent", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7533,7 +8613,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.TransferRule$Direction", + "name": "com.google.cloud.ces.v1beta.TurnHandoffEvent$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7542,7 +8622,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.TransferRule$DisablePlannerTransfer", + "name": "com.google.cloud.ces.v1beta.TurnHandoffEvent$Reason", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7551,7 +8631,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.TransferRule$DisablePlannerTransfer$Builder", + "name": "com.google.cloud.ces.v1beta.TurnMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7560,7 +8640,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.TriggerAction", + "name": "com.google.cloud.ces.v1beta.TurnMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7569,7 +8649,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.TriggerAction$Builder", + "name": "com.google.cloud.ces.v1beta.TurnMetadata$ContractStreamingPhase", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7578,7 +8658,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.TriggerAction$GenerativeAnswer", + "name": "com.google.cloud.ces.v1beta.TurnResumeSnapshot", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7587,7 +8667,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.TriggerAction$GenerativeAnswer$Builder", + "name": "com.google.cloud.ces.v1beta.TurnResumeSnapshot$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7596,7 +8676,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.TriggerAction$RespondImmediately", + "name": "com.google.cloud.ces.v1beta.TypedPayload", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7605,7 +8685,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.TriggerAction$RespondImmediately$Builder", + "name": "com.google.cloud.ces.v1beta.TypedPayload$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7614,7 +8694,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.TriggerAction$Response", + "name": "com.google.cloud.ces.v1beta.UiEvent", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7623,7 +8703,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.TriggerAction$Response$Builder", + "name": "com.google.cloud.ces.v1beta.UiEvent$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7632,7 +8712,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.TriggerAction$TransferAgent", + "name": "com.google.cloud.ces.v1beta.UpdateAgentRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7641,7 +8721,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.TriggerAction$TransferAgent$Builder", + "name": "com.google.cloud.ces.v1beta.UpdateAgentRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7650,7 +8730,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.UpdateAgentRequest", + "name": "com.google.cloud.ces.v1beta.UpdateAppRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7659,7 +8739,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.UpdateAgentRequest$Builder", + "name": "com.google.cloud.ces.v1beta.UpdateAppRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7668,7 +8748,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.UpdateAppRequest", + "name": "com.google.cloud.ces.v1beta.UpdateAppVersionRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7677,7 +8757,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.UpdateAppRequest$Builder", + "name": "com.google.cloud.ces.v1beta.UpdateAppVersionRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7901,6 +8981,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.ces.v1beta.UserResponseSuggestions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.UserResponseSuggestions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.ces.v1beta.VpcScSettings", "queryAllDeclaredConstructors": true, diff --git a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/AgentServiceClientHttpJsonTest.java b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/AgentServiceClientHttpJsonTest.java index 7a1b32f636cd..715018ff64f5 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 @@ -232,6 +232,7 @@ public void getAppTest() throws Exception { .addAllEvaluationPersonas(new ArrayList()) .setEvaluationSettings(EvaluationSettings.newBuilder().build()) .addAllValidationErrors(new ArrayList()) + .setDashboardSettings(DashboardSettings.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -304,6 +305,7 @@ public void getAppTest2() throws Exception { .addAllEvaluationPersonas(new ArrayList()) .setEvaluationSettings(EvaluationSettings.newBuilder().build()) .addAllValidationErrors(new ArrayList()) + .setDashboardSettings(DashboardSettings.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -376,6 +378,7 @@ public void createAppTest() throws Exception { .addAllEvaluationPersonas(new ArrayList()) .setEvaluationSettings(EvaluationSettings.newBuilder().build()) .addAllValidationErrors(new ArrayList()) + .setDashboardSettings(DashboardSettings.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -455,6 +458,7 @@ public void createAppTest2() throws Exception { .addAllEvaluationPersonas(new ArrayList()) .setEvaluationSettings(EvaluationSettings.newBuilder().build()) .addAllValidationErrors(new ArrayList()) + .setDashboardSettings(DashboardSettings.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -534,6 +538,7 @@ public void createAppTest3() throws Exception { .addAllEvaluationPersonas(new ArrayList()) .setEvaluationSettings(EvaluationSettings.newBuilder().build()) .addAllValidationErrors(new ArrayList()) + .setDashboardSettings(DashboardSettings.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -615,6 +620,7 @@ public void createAppTest4() throws Exception { .addAllEvaluationPersonas(new ArrayList()) .setEvaluationSettings(EvaluationSettings.newBuilder().build()) .addAllValidationErrors(new ArrayList()) + .setDashboardSettings(DashboardSettings.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -696,6 +702,7 @@ public void updateAppTest() throws Exception { .addAllEvaluationPersonas(new ArrayList()) .setEvaluationSettings(EvaluationSettings.newBuilder().build()) .addAllValidationErrors(new ArrayList()) + .setDashboardSettings(DashboardSettings.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -730,6 +737,7 @@ public void updateAppTest() throws Exception { .addAllEvaluationPersonas(new ArrayList()) .setEvaluationSettings(EvaluationSettings.newBuilder().build()) .addAllValidationErrors(new ArrayList()) + .setDashboardSettings(DashboardSettings.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -790,6 +798,7 @@ public void updateAppExceptionTest() throws Exception { .addAllEvaluationPersonas(new ArrayList()) .setEvaluationSettings(EvaluationSettings.newBuilder().build()) .addAllValidationErrors(new ArrayList()) + .setDashboardSettings(DashboardSettings.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateApp(app, updateMask); @@ -2630,6 +2639,7 @@ public void getToolTest() throws Exception { .setEtag("etag3123477") .setGeneratedSummary("generatedSummary-323053801") .setToolFakeConfig(ToolFakeConfig.newBuilder().build()) + .setReadOnly(true) .build(); mockService.addResponse(expectedResponse); @@ -2682,6 +2692,7 @@ public void getToolTest2() throws Exception { .setEtag("etag3123477") .setGeneratedSummary("generatedSummary-323053801") .setToolFakeConfig(ToolFakeConfig.newBuilder().build()) + .setReadOnly(true) .build(); mockService.addResponse(expectedResponse); @@ -3142,6 +3153,7 @@ public void createToolTest() throws Exception { .setEtag("etag3123477") .setGeneratedSummary("generatedSummary-323053801") .setToolFakeConfig(ToolFakeConfig.newBuilder().build()) + .setReadOnly(true) .build(); mockService.addResponse(expectedResponse); @@ -3196,6 +3208,7 @@ public void createToolTest2() throws Exception { .setEtag("etag3123477") .setGeneratedSummary("generatedSummary-323053801") .setToolFakeConfig(ToolFakeConfig.newBuilder().build()) + .setReadOnly(true) .build(); mockService.addResponse(expectedResponse); @@ -3250,6 +3263,7 @@ public void createToolTest3() throws Exception { .setEtag("etag3123477") .setGeneratedSummary("generatedSummary-323053801") .setToolFakeConfig(ToolFakeConfig.newBuilder().build()) + .setReadOnly(true) .build(); mockService.addResponse(expectedResponse); @@ -3306,6 +3320,7 @@ public void createToolTest4() throws Exception { .setEtag("etag3123477") .setGeneratedSummary("generatedSummary-323053801") .setToolFakeConfig(ToolFakeConfig.newBuilder().build()) + .setReadOnly(true) .build(); mockService.addResponse(expectedResponse); @@ -3362,6 +3377,7 @@ public void updateToolTest() throws Exception { .setEtag("etag3123477") .setGeneratedSummary("generatedSummary-323053801") .setToolFakeConfig(ToolFakeConfig.newBuilder().build()) + .setReadOnly(true) .build(); mockService.addResponse(expectedResponse); @@ -3376,6 +3392,7 @@ public void updateToolTest() throws Exception { .setEtag("etag3123477") .setGeneratedSummary("generatedSummary-323053801") .setToolFakeConfig(ToolFakeConfig.newBuilder().build()) + .setReadOnly(true) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -3416,6 +3433,7 @@ public void updateToolExceptionTest() throws Exception { .setEtag("etag3123477") .setGeneratedSummary("generatedSummary-323053801") .setToolFakeConfig(ToolFakeConfig.newBuilder().build()) + .setReadOnly(true) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateTool(tool, updateMask); @@ -4197,6 +4215,8 @@ public void getDeploymentTest() throws Exception { .setExperimentConfig(ExperimentConfig.newBuilder().build()) .setWhatsappCredentials(WhatsAppCredentials.newBuilder().build()) .setInstagramCredentials(InstagramCredentials.newBuilder().build()) + .setModelSettings(ModelSettings.newBuilder().build()) + .setAgentRegistryDeployment(AgentRegistryDeployment.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -4252,6 +4272,8 @@ public void getDeploymentTest2() throws Exception { .setExperimentConfig(ExperimentConfig.newBuilder().build()) .setWhatsappCredentials(WhatsAppCredentials.newBuilder().build()) .setInstagramCredentials(InstagramCredentials.newBuilder().build()) + .setModelSettings(ModelSettings.newBuilder().build()) + .setAgentRegistryDeployment(AgentRegistryDeployment.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -4309,6 +4331,8 @@ public void createDeploymentTest() throws Exception { .setExperimentConfig(ExperimentConfig.newBuilder().build()) .setWhatsappCredentials(WhatsAppCredentials.newBuilder().build()) .setInstagramCredentials(InstagramCredentials.newBuilder().build()) + .setModelSettings(ModelSettings.newBuilder().build()) + .setAgentRegistryDeployment(AgentRegistryDeployment.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -4366,6 +4390,8 @@ public void createDeploymentTest2() throws Exception { .setExperimentConfig(ExperimentConfig.newBuilder().build()) .setWhatsappCredentials(WhatsAppCredentials.newBuilder().build()) .setInstagramCredentials(InstagramCredentials.newBuilder().build()) + .setModelSettings(ModelSettings.newBuilder().build()) + .setAgentRegistryDeployment(AgentRegistryDeployment.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -4423,6 +4449,8 @@ public void createDeploymentTest3() throws Exception { .setExperimentConfig(ExperimentConfig.newBuilder().build()) .setWhatsappCredentials(WhatsAppCredentials.newBuilder().build()) .setInstagramCredentials(InstagramCredentials.newBuilder().build()) + .setModelSettings(ModelSettings.newBuilder().build()) + .setAgentRegistryDeployment(AgentRegistryDeployment.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -4482,6 +4510,8 @@ public void createDeploymentTest4() throws Exception { .setExperimentConfig(ExperimentConfig.newBuilder().build()) .setWhatsappCredentials(WhatsAppCredentials.newBuilder().build()) .setInstagramCredentials(InstagramCredentials.newBuilder().build()) + .setModelSettings(ModelSettings.newBuilder().build()) + .setAgentRegistryDeployment(AgentRegistryDeployment.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -4541,6 +4571,8 @@ public void updateDeploymentTest() throws Exception { .setExperimentConfig(ExperimentConfig.newBuilder().build()) .setWhatsappCredentials(WhatsAppCredentials.newBuilder().build()) .setInstagramCredentials(InstagramCredentials.newBuilder().build()) + .setModelSettings(ModelSettings.newBuilder().build()) + .setAgentRegistryDeployment(AgentRegistryDeployment.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -4558,6 +4590,8 @@ public void updateDeploymentTest() throws Exception { .setExperimentConfig(ExperimentConfig.newBuilder().build()) .setWhatsappCredentials(WhatsAppCredentials.newBuilder().build()) .setInstagramCredentials(InstagramCredentials.newBuilder().build()) + .setModelSettings(ModelSettings.newBuilder().build()) + .setAgentRegistryDeployment(AgentRegistryDeployment.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -4601,6 +4635,8 @@ public void updateDeploymentExceptionTest() throws Exception { .setExperimentConfig(ExperimentConfig.newBuilder().build()) .setWhatsappCredentials(WhatsAppCredentials.newBuilder().build()) .setInstagramCredentials(InstagramCredentials.newBuilder().build()) + .setModelSettings(ModelSettings.newBuilder().build()) + .setAgentRegistryDeployment(AgentRegistryDeployment.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateDeployment(deployment, updateMask); @@ -5385,6 +5421,7 @@ public void getAppVersionTest() throws Exception { .setDescription("description-1724546052") .setCreator("creator1028554796") .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) .setSnapshot(AppSnapshot.newBuilder().build()) .setEtag("etag3123477") .build(); @@ -5435,6 +5472,7 @@ public void getAppVersionTest2() throws Exception { .setDescription("description-1724546052") .setCreator("creator1028554796") .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) .setSnapshot(AppSnapshot.newBuilder().build()) .setEtag("etag3123477") .build(); @@ -5487,6 +5525,7 @@ public void createAppVersionTest() throws Exception { .setDescription("description-1724546052") .setCreator("creator1028554796") .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) .setSnapshot(AppSnapshot.newBuilder().build()) .setEtag("etag3123477") .build(); @@ -5539,6 +5578,7 @@ public void createAppVersionTest2() throws Exception { .setDescription("description-1724546052") .setCreator("creator1028554796") .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) .setSnapshot(AppSnapshot.newBuilder().build()) .setEtag("etag3123477") .build(); @@ -5591,6 +5631,7 @@ public void createAppVersionTest3() throws Exception { .setDescription("description-1724546052") .setCreator("creator1028554796") .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) .setSnapshot(AppSnapshot.newBuilder().build()) .setEtag("etag3123477") .build(); @@ -5645,6 +5686,7 @@ public void createAppVersionTest4() throws Exception { .setDescription("description-1724546052") .setCreator("creator1028554796") .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) .setSnapshot(AppSnapshot.newBuilder().build()) .setEtag("etag3123477") .build(); @@ -5690,6 +5732,80 @@ public void createAppVersionExceptionTest4() throws Exception { } } + @Test + public void updateAppVersionTest() throws Exception { + AppVersion expectedResponse = + AppVersion.newBuilder() + .setName(AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreator("creator1028554796") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSnapshot(AppSnapshot.newBuilder().build()) + .setEtag("etag3123477") + .build(); + mockService.addResponse(expectedResponse); + + AppVersion appVersion = + AppVersion.newBuilder() + .setName(AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreator("creator1028554796") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSnapshot(AppSnapshot.newBuilder().build()) + .setEtag("etag3123477") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + AppVersion actualResponse = client.updateAppVersion(appVersion, 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 updateAppVersionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AppVersion appVersion = + AppVersion.newBuilder() + .setName( + AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreator("creator1028554796") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSnapshot(AppSnapshot.newBuilder().build()) + .setEtag("etag3123477") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateAppVersion(appVersion, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void deleteAppVersionTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); 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 f70df1db3313..f2f5ed73f301 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 @@ -227,6 +227,7 @@ public void getAppTest() throws Exception { .addAllEvaluationPersonas(new ArrayList()) .setEvaluationSettings(EvaluationSettings.newBuilder().build()) .addAllValidationErrors(new ArrayList()) + .setDashboardSettings(DashboardSettings.newBuilder().build()) .build(); mockAgentService.addResponse(expectedResponse); @@ -293,6 +294,7 @@ public void getAppTest2() throws Exception { .addAllEvaluationPersonas(new ArrayList()) .setEvaluationSettings(EvaluationSettings.newBuilder().build()) .addAllValidationErrors(new ArrayList()) + .setDashboardSettings(DashboardSettings.newBuilder().build()) .build(); mockAgentService.addResponse(expectedResponse); @@ -359,6 +361,7 @@ public void createAppTest() throws Exception { .addAllEvaluationPersonas(new ArrayList()) .setEvaluationSettings(EvaluationSettings.newBuilder().build()) .addAllValidationErrors(new ArrayList()) + .setDashboardSettings(DashboardSettings.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -436,6 +439,7 @@ public void createAppTest2() throws Exception { .addAllEvaluationPersonas(new ArrayList()) .setEvaluationSettings(EvaluationSettings.newBuilder().build()) .addAllValidationErrors(new ArrayList()) + .setDashboardSettings(DashboardSettings.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -513,6 +517,7 @@ public void createAppTest3() throws Exception { .addAllEvaluationPersonas(new ArrayList()) .setEvaluationSettings(EvaluationSettings.newBuilder().build()) .addAllValidationErrors(new ArrayList()) + .setDashboardSettings(DashboardSettings.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -593,6 +598,7 @@ public void createAppTest4() throws Exception { .addAllEvaluationPersonas(new ArrayList()) .setEvaluationSettings(EvaluationSettings.newBuilder().build()) .addAllValidationErrors(new ArrayList()) + .setDashboardSettings(DashboardSettings.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -673,6 +679,7 @@ public void updateAppTest() throws Exception { .addAllEvaluationPersonas(new ArrayList()) .setEvaluationSettings(EvaluationSettings.newBuilder().build()) .addAllValidationErrors(new ArrayList()) + .setDashboardSettings(DashboardSettings.newBuilder().build()) .build(); mockAgentService.addResponse(expectedResponse); @@ -2298,6 +2305,7 @@ public void getToolTest() throws Exception { .setEtag("etag3123477") .setGeneratedSummary("generatedSummary-323053801") .setToolFakeConfig(ToolFakeConfig.newBuilder().build()) + .setReadOnly(true) .build(); mockAgentService.addResponse(expectedResponse); @@ -2344,6 +2352,7 @@ public void getToolTest2() throws Exception { .setEtag("etag3123477") .setGeneratedSummary("generatedSummary-323053801") .setToolFakeConfig(ToolFakeConfig.newBuilder().build()) + .setReadOnly(true) .build(); mockAgentService.addResponse(expectedResponse); @@ -2754,6 +2763,7 @@ public void createToolTest() throws Exception { .setEtag("etag3123477") .setGeneratedSummary("generatedSummary-323053801") .setToolFakeConfig(ToolFakeConfig.newBuilder().build()) + .setReadOnly(true) .build(); mockAgentService.addResponse(expectedResponse); @@ -2803,6 +2813,7 @@ public void createToolTest2() throws Exception { .setEtag("etag3123477") .setGeneratedSummary("generatedSummary-323053801") .setToolFakeConfig(ToolFakeConfig.newBuilder().build()) + .setReadOnly(true) .build(); mockAgentService.addResponse(expectedResponse); @@ -2852,6 +2863,7 @@ public void createToolTest3() throws Exception { .setEtag("etag3123477") .setGeneratedSummary("generatedSummary-323053801") .setToolFakeConfig(ToolFakeConfig.newBuilder().build()) + .setReadOnly(true) .build(); mockAgentService.addResponse(expectedResponse); @@ -2904,6 +2916,7 @@ public void createToolTest4() throws Exception { .setEtag("etag3123477") .setGeneratedSummary("generatedSummary-323053801") .setToolFakeConfig(ToolFakeConfig.newBuilder().build()) + .setReadOnly(true) .build(); mockAgentService.addResponse(expectedResponse); @@ -2956,6 +2969,7 @@ public void updateToolTest() throws Exception { .setEtag("etag3123477") .setGeneratedSummary("generatedSummary-323053801") .setToolFakeConfig(ToolFakeConfig.newBuilder().build()) + .setReadOnly(true) .build(); mockAgentService.addResponse(expectedResponse); @@ -3656,6 +3670,8 @@ public void getDeploymentTest() throws Exception { .setExperimentConfig(ExperimentConfig.newBuilder().build()) .setWhatsappCredentials(WhatsAppCredentials.newBuilder().build()) .setInstagramCredentials(InstagramCredentials.newBuilder().build()) + .setModelSettings(ModelSettings.newBuilder().build()) + .setAgentRegistryDeployment(AgentRegistryDeployment.newBuilder().build()) .build(); mockAgentService.addResponse(expectedResponse); @@ -3705,6 +3721,8 @@ public void getDeploymentTest2() throws Exception { .setExperimentConfig(ExperimentConfig.newBuilder().build()) .setWhatsappCredentials(WhatsAppCredentials.newBuilder().build()) .setInstagramCredentials(InstagramCredentials.newBuilder().build()) + .setModelSettings(ModelSettings.newBuilder().build()) + .setAgentRegistryDeployment(AgentRegistryDeployment.newBuilder().build()) .build(); mockAgentService.addResponse(expectedResponse); @@ -3754,6 +3772,8 @@ public void createDeploymentTest() throws Exception { .setExperimentConfig(ExperimentConfig.newBuilder().build()) .setWhatsappCredentials(WhatsAppCredentials.newBuilder().build()) .setInstagramCredentials(InstagramCredentials.newBuilder().build()) + .setModelSettings(ModelSettings.newBuilder().build()) + .setAgentRegistryDeployment(AgentRegistryDeployment.newBuilder().build()) .build(); mockAgentService.addResponse(expectedResponse); @@ -3806,6 +3826,8 @@ public void createDeploymentTest2() throws Exception { .setExperimentConfig(ExperimentConfig.newBuilder().build()) .setWhatsappCredentials(WhatsAppCredentials.newBuilder().build()) .setInstagramCredentials(InstagramCredentials.newBuilder().build()) + .setModelSettings(ModelSettings.newBuilder().build()) + .setAgentRegistryDeployment(AgentRegistryDeployment.newBuilder().build()) .build(); mockAgentService.addResponse(expectedResponse); @@ -3858,6 +3880,8 @@ public void createDeploymentTest3() throws Exception { .setExperimentConfig(ExperimentConfig.newBuilder().build()) .setWhatsappCredentials(WhatsAppCredentials.newBuilder().build()) .setInstagramCredentials(InstagramCredentials.newBuilder().build()) + .setModelSettings(ModelSettings.newBuilder().build()) + .setAgentRegistryDeployment(AgentRegistryDeployment.newBuilder().build()) .build(); mockAgentService.addResponse(expectedResponse); @@ -3913,6 +3937,8 @@ public void createDeploymentTest4() throws Exception { .setExperimentConfig(ExperimentConfig.newBuilder().build()) .setWhatsappCredentials(WhatsAppCredentials.newBuilder().build()) .setInstagramCredentials(InstagramCredentials.newBuilder().build()) + .setModelSettings(ModelSettings.newBuilder().build()) + .setAgentRegistryDeployment(AgentRegistryDeployment.newBuilder().build()) .build(); mockAgentService.addResponse(expectedResponse); @@ -3968,6 +3994,8 @@ public void updateDeploymentTest() throws Exception { .setExperimentConfig(ExperimentConfig.newBuilder().build()) .setWhatsappCredentials(WhatsAppCredentials.newBuilder().build()) .setInstagramCredentials(InstagramCredentials.newBuilder().build()) + .setModelSettings(ModelSettings.newBuilder().build()) + .setAgentRegistryDeployment(AgentRegistryDeployment.newBuilder().build()) .build(); mockAgentService.addResponse(expectedResponse); @@ -4668,6 +4696,7 @@ public void getAppVersionTest() throws Exception { .setDescription("description-1724546052") .setCreator("creator1028554796") .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) .setSnapshot(AppSnapshot.newBuilder().build()) .setEtag("etag3123477") .build(); @@ -4712,6 +4741,7 @@ public void getAppVersionTest2() throws Exception { .setDescription("description-1724546052") .setCreator("creator1028554796") .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) .setSnapshot(AppSnapshot.newBuilder().build()) .setEtag("etag3123477") .build(); @@ -4756,6 +4786,7 @@ public void createAppVersionTest() throws Exception { .setDescription("description-1724546052") .setCreator("creator1028554796") .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) .setSnapshot(AppSnapshot.newBuilder().build()) .setEtag("etag3123477") .build(); @@ -4803,6 +4834,7 @@ public void createAppVersionTest2() throws Exception { .setDescription("description-1724546052") .setCreator("creator1028554796") .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) .setSnapshot(AppSnapshot.newBuilder().build()) .setEtag("etag3123477") .build(); @@ -4850,6 +4882,7 @@ public void createAppVersionTest3() throws Exception { .setDescription("description-1724546052") .setCreator("creator1028554796") .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) .setSnapshot(AppSnapshot.newBuilder().build()) .setEtag("etag3123477") .build(); @@ -4900,6 +4933,7 @@ public void createAppVersionTest4() throws Exception { .setDescription("description-1724546052") .setCreator("creator1028554796") .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) .setSnapshot(AppSnapshot.newBuilder().build()) .setEtag("etag3123477") .build(); @@ -4941,6 +4975,54 @@ public void createAppVersionExceptionTest4() throws Exception { } } + @Test + public void updateAppVersionTest() throws Exception { + AppVersion expectedResponse = + AppVersion.newBuilder() + .setName(AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreator("creator1028554796") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSnapshot(AppSnapshot.newBuilder().build()) + .setEtag("etag3123477") + .build(); + mockAgentService.addResponse(expectedResponse); + + AppVersion appVersion = AppVersion.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + AppVersion actualResponse = client.updateAppVersion(appVersion, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateAppVersionRequest actualRequest = ((UpdateAppVersionRequest) actualRequests.get(0)); + + Assert.assertEquals(appVersion, actualRequest.getAppVersion()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateAppVersionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + AppVersion appVersion = AppVersion.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateAppVersion(appVersion, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void deleteAppVersionTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); diff --git a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/AssistantServiceClientHttpJsonTest.java b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/AssistantServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..71cbdbfb1c2a --- /dev/null +++ b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/AssistantServiceClientHttpJsonTest.java @@ -0,0 +1,742 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1beta; + +import static com.google.cloud.ces.v1beta.AssistantServiceClient.ListAssistantSessionsPagedResponse; +import static com.google.cloud.ces.v1beta.AssistantServiceClient.ListLocationsPagedResponse; + +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.ces.v1beta.stub.HttpJsonAssistantServiceStub; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.Lists; +import com.google.protobuf.Any; +import com.google.protobuf.Empty; +import com.google.protobuf.Timestamp; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class AssistantServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static AssistantServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonAssistantServiceStub.getMethodDescriptors(), + AssistantServiceSettings.getDefaultEndpoint()); + AssistantServiceSettings settings = + AssistantServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + AssistantServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = AssistantServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void listAssistantSessionsTest() throws Exception { + AssistantSession responsesElement = AssistantSession.newBuilder().build(); + ListAssistantSessionsResponse expectedResponse = + ListAssistantSessionsResponse.newBuilder() + .setNextPageToken("") + .addAllAssistantSessions(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + + ListAssistantSessionsPagedResponse pagedListResponse = client.listAssistantSessions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAssistantSessionsList().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 listAssistantSessionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + client.listAssistantSessions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAssistantSessionsTest2() throws Exception { + AssistantSession responsesElement = AssistantSession.newBuilder().build(); + ListAssistantSessionsResponse expectedResponse = + ListAssistantSessionsResponse.newBuilder() + .setNextPageToken("") + .addAllAssistantSessions(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-8877/locations/location-8877/apps/app-8877"; + + ListAssistantSessionsPagedResponse pagedListResponse = client.listAssistantSessions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAssistantSessionsList().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 listAssistantSessionsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-8877/locations/location-8877/apps/app-8877"; + client.listAssistantSessions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAssistantSessionTest() throws Exception { + AssistantSession expectedResponse = + AssistantSession.newBuilder() + .setName( + AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]") + .toString()) + .setRequestor("requestor693934258") + .addAllMessages(new ArrayList()) + .setState(AssistantSessionState.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setUserResponseSuggestions(UserResponseSuggestions.newBuilder().build()) + .setDisplayName("displayName1714148973") + .addAllArtifacts(new ArrayList()) + .setSessionCheckpoint(SessionCheckpoint.newBuilder().build()) + .setActiveTurn(ActiveTurnInfo.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + AssistantSessionName name = + AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]"); + + AssistantSession actualResponse = client.getAssistantSession(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 getAssistantSessionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AssistantSessionName name = + AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]"); + client.getAssistantSession(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAssistantSessionTest2() throws Exception { + AssistantSession expectedResponse = + AssistantSession.newBuilder() + .setName( + AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]") + .toString()) + .setRequestor("requestor693934258") + .addAllMessages(new ArrayList()) + .setState(AssistantSessionState.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setUserResponseSuggestions(UserResponseSuggestions.newBuilder().build()) + .setDisplayName("displayName1714148973") + .addAllArtifacts(new ArrayList()) + .setSessionCheckpoint(SessionCheckpoint.newBuilder().build()) + .setActiveTurn(ActiveTurnInfo.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-3303/locations/location-3303/apps/app-3303/assistantSessions/assistantSession-3303"; + + AssistantSession actualResponse = client.getAssistantSession(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 getAssistantSessionExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-3303/locations/location-3303/apps/app-3303/assistantSessions/assistantSession-3303"; + client.getAssistantSession(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createAssistantSessionTest() throws Exception { + AssistantSession expectedResponse = + AssistantSession.newBuilder() + .setName( + AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]") + .toString()) + .setRequestor("requestor693934258") + .addAllMessages(new ArrayList()) + .setState(AssistantSessionState.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setUserResponseSuggestions(UserResponseSuggestions.newBuilder().build()) + .setDisplayName("displayName1714148973") + .addAllArtifacts(new ArrayList()) + .setSessionCheckpoint(SessionCheckpoint.newBuilder().build()) + .setActiveTurn(ActiveTurnInfo.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + String assistantSessionId = "assistantSessionId-1566358253"; + + AssistantSession actualResponse = client.createAssistantSession(parent, assistantSessionId); + 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 createAssistantSessionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + String assistantSessionId = "assistantSessionId-1566358253"; + client.createAssistantSession(parent, assistantSessionId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createAssistantSessionTest2() throws Exception { + AssistantSession expectedResponse = + AssistantSession.newBuilder() + .setName( + AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]") + .toString()) + .setRequestor("requestor693934258") + .addAllMessages(new ArrayList()) + .setState(AssistantSessionState.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setUserResponseSuggestions(UserResponseSuggestions.newBuilder().build()) + .setDisplayName("displayName1714148973") + .addAllArtifacts(new ArrayList()) + .setSessionCheckpoint(SessionCheckpoint.newBuilder().build()) + .setActiveTurn(ActiveTurnInfo.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-8877/locations/location-8877/apps/app-8877"; + String assistantSessionId = "assistantSessionId-1566358253"; + + AssistantSession actualResponse = client.createAssistantSession(parent, assistantSessionId); + 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 createAssistantSessionExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-8877/locations/location-8877/apps/app-8877"; + String assistantSessionId = "assistantSessionId-1566358253"; + client.createAssistantSession(parent, assistantSessionId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteAssistantSessionTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + AssistantSessionName name = + AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]"); + + client.deleteAssistantSession(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteAssistantSessionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AssistantSessionName name = + AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]"); + client.deleteAssistantSession(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteAssistantSessionTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-3303/locations/location-3303/apps/app-3303/assistantSessions/assistantSession-3303"; + + client.deleteAssistantSession(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteAssistantSessionExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-3303/locations/location-3303/apps/app-3303/assistantSessions/assistantSession-3303"; + client.deleteAssistantSession(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void runAssistantTest() throws Exception { + RunAssistantResponse expectedResponse = + RunAssistantResponse.newBuilder() + .setOutput(AssistantOutput.newBuilder().build()) + .setState(AssistantSessionState.forNumber(0)) + .build(); + mockService.addResponse(expectedResponse); + + RunAssistantRequest request = + RunAssistantRequest.newBuilder() + .setApp(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setAssistantSession( + AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]") + .toString()) + .setMessage(AssistantMessage.newBuilder().build()) + .build(); + + RunAssistantResponse actualResponse = client.runAssistant(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 runAssistantExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RunAssistantRequest request = + RunAssistantRequest.newBuilder() + .setApp(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setAssistantSession( + AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]") + .toString()) + .setMessage(AssistantMessage.newBuilder().build()) + .build(); + client.runAssistant(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void chatAiAssistantTest() throws Exception { + ChatAiAssistantResponse expectedResponse = + ChatAiAssistantResponse.newBuilder() + .setEventId("eventId-1376502443") + .setEventTime(Timestamp.newBuilder().build()) + .setUiEvent(UiEvent.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + ChatAiAssistantRequest request = + ChatAiAssistantRequest.newBuilder() + .setApp(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setAssistantSession( + AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]") + .toString()) + .setMessage("message954925063") + .addAllAttachedGcsUris(new ArrayList()) + .setContextToken("contextToken1106626954") + .build(); + + ChatAiAssistantResponse actualResponse = client.chatAiAssistant(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 chatAiAssistantExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ChatAiAssistantRequest request = + ChatAiAssistantRequest.newBuilder() + .setApp(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setAssistantSession( + AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]") + .toString()) + .setMessage("message954925063") + .addAllAttachedGcsUris(new ArrayList()) + .setContextToken("contextToken1106626954") + .build(); + client.chatAiAssistant(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-3664") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listLocationsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-3664") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("projects/project-9062/locations/location-9062") + .build(); + + Location actualResponse = client.getLocation(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getLocationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("projects/project-9062/locations/location-9062") + .build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/AssistantServiceClientTest.java b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/AssistantServiceClientTest.java new file mode 100644 index 000000000000..bbe45b530559 --- /dev/null +++ b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/AssistantServiceClientTest.java @@ -0,0 +1,684 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1beta; + +import static com.google.cloud.ces.v1beta.AssistantServiceClient.ListAssistantSessionsPagedResponse; +import static com.google.cloud.ces.v1beta.AssistantServiceClient.ListLocationsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.Lists; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.Empty; +import com.google.protobuf.Timestamp; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.UUID; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class AssistantServiceClientTest { + private static MockAssistantService mockAssistantService; + private static MockLocations mockLocations; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private AssistantServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockAssistantService = new MockAssistantService(); + mockLocations = new MockLocations(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockAssistantService, mockLocations)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + AssistantServiceSettings settings = + AssistantServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = AssistantServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void listAssistantSessionsTest() throws Exception { + AssistantSession responsesElement = AssistantSession.newBuilder().build(); + ListAssistantSessionsResponse expectedResponse = + ListAssistantSessionsResponse.newBuilder() + .setNextPageToken("") + .addAllAssistantSessions(Arrays.asList(responsesElement)) + .build(); + mockAssistantService.addResponse(expectedResponse); + + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + + ListAssistantSessionsPagedResponse pagedListResponse = client.listAssistantSessions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAssistantSessionsList().get(0), resources.get(0)); + + List actualRequests = mockAssistantService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAssistantSessionsRequest actualRequest = + ((ListAssistantSessionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAssistantSessionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAssistantService.addException(exception); + + try { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + client.listAssistantSessions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAssistantSessionsTest2() throws Exception { + AssistantSession responsesElement = AssistantSession.newBuilder().build(); + ListAssistantSessionsResponse expectedResponse = + ListAssistantSessionsResponse.newBuilder() + .setNextPageToken("") + .addAllAssistantSessions(Arrays.asList(responsesElement)) + .build(); + mockAssistantService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListAssistantSessionsPagedResponse pagedListResponse = client.listAssistantSessions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAssistantSessionsList().get(0), resources.get(0)); + + List actualRequests = mockAssistantService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAssistantSessionsRequest actualRequest = + ((ListAssistantSessionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAssistantSessionsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAssistantService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listAssistantSessions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAssistantSessionTest() throws Exception { + AssistantSession expectedResponse = + AssistantSession.newBuilder() + .setName( + AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]") + .toString()) + .setRequestor("requestor693934258") + .addAllMessages(new ArrayList()) + .setState(AssistantSessionState.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setUserResponseSuggestions(UserResponseSuggestions.newBuilder().build()) + .setDisplayName("displayName1714148973") + .addAllArtifacts(new ArrayList()) + .setSessionCheckpoint(SessionCheckpoint.newBuilder().build()) + .setActiveTurn(ActiveTurnInfo.newBuilder().build()) + .build(); + mockAssistantService.addResponse(expectedResponse); + + AssistantSessionName name = + AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]"); + + AssistantSession actualResponse = client.getAssistantSession(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAssistantService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAssistantSessionRequest actualRequest = ((GetAssistantSessionRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAssistantSessionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAssistantService.addException(exception); + + try { + AssistantSessionName name = + AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]"); + client.getAssistantSession(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAssistantSessionTest2() throws Exception { + AssistantSession expectedResponse = + AssistantSession.newBuilder() + .setName( + AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]") + .toString()) + .setRequestor("requestor693934258") + .addAllMessages(new ArrayList()) + .setState(AssistantSessionState.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setUserResponseSuggestions(UserResponseSuggestions.newBuilder().build()) + .setDisplayName("displayName1714148973") + .addAllArtifacts(new ArrayList()) + .setSessionCheckpoint(SessionCheckpoint.newBuilder().build()) + .setActiveTurn(ActiveTurnInfo.newBuilder().build()) + .build(); + mockAssistantService.addResponse(expectedResponse); + + String name = "name3373707"; + + AssistantSession actualResponse = client.getAssistantSession(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAssistantService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAssistantSessionRequest actualRequest = ((GetAssistantSessionRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAssistantSessionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAssistantService.addException(exception); + + try { + String name = "name3373707"; + client.getAssistantSession(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createAssistantSessionTest() throws Exception { + AssistantSession expectedResponse = + AssistantSession.newBuilder() + .setName( + AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]") + .toString()) + .setRequestor("requestor693934258") + .addAllMessages(new ArrayList()) + .setState(AssistantSessionState.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setUserResponseSuggestions(UserResponseSuggestions.newBuilder().build()) + .setDisplayName("displayName1714148973") + .addAllArtifacts(new ArrayList()) + .setSessionCheckpoint(SessionCheckpoint.newBuilder().build()) + .setActiveTurn(ActiveTurnInfo.newBuilder().build()) + .build(); + mockAssistantService.addResponse(expectedResponse); + + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + String assistantSessionId = "assistantSessionId-1566358253"; + + AssistantSession actualResponse = client.createAssistantSession(parent, assistantSessionId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAssistantService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateAssistantSessionRequest actualRequest = + ((CreateAssistantSessionRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(assistantSessionId, actualRequest.getAssistantSessionId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createAssistantSessionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAssistantService.addException(exception); + + try { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + String assistantSessionId = "assistantSessionId-1566358253"; + client.createAssistantSession(parent, assistantSessionId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createAssistantSessionTest2() throws Exception { + AssistantSession expectedResponse = + AssistantSession.newBuilder() + .setName( + AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]") + .toString()) + .setRequestor("requestor693934258") + .addAllMessages(new ArrayList()) + .setState(AssistantSessionState.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setUserResponseSuggestions(UserResponseSuggestions.newBuilder().build()) + .setDisplayName("displayName1714148973") + .addAllArtifacts(new ArrayList()) + .setSessionCheckpoint(SessionCheckpoint.newBuilder().build()) + .setActiveTurn(ActiveTurnInfo.newBuilder().build()) + .build(); + mockAssistantService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + String assistantSessionId = "assistantSessionId-1566358253"; + + AssistantSession actualResponse = client.createAssistantSession(parent, assistantSessionId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAssistantService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateAssistantSessionRequest actualRequest = + ((CreateAssistantSessionRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(assistantSessionId, actualRequest.getAssistantSessionId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createAssistantSessionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAssistantService.addException(exception); + + try { + String parent = "parent-995424086"; + String assistantSessionId = "assistantSessionId-1566358253"; + client.createAssistantSession(parent, assistantSessionId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteAssistantSessionTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAssistantService.addResponse(expectedResponse); + + AssistantSessionName name = + AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]"); + + client.deleteAssistantSession(name); + + List actualRequests = mockAssistantService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteAssistantSessionRequest actualRequest = + ((DeleteAssistantSessionRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteAssistantSessionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAssistantService.addException(exception); + + try { + AssistantSessionName name = + AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]"); + client.deleteAssistantSession(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteAssistantSessionTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAssistantService.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteAssistantSession(name); + + List actualRequests = mockAssistantService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteAssistantSessionRequest actualRequest = + ((DeleteAssistantSessionRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteAssistantSessionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAssistantService.addException(exception); + + try { + String name = "name3373707"; + client.deleteAssistantSession(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void runAssistantTest() throws Exception { + RunAssistantResponse expectedResponse = + RunAssistantResponse.newBuilder() + .setOutput(AssistantOutput.newBuilder().build()) + .setState(AssistantSessionState.forNumber(0)) + .build(); + mockAssistantService.addResponse(expectedResponse); + + RunAssistantRequest request = + RunAssistantRequest.newBuilder() + .setApp(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setAssistantSession( + AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]") + .toString()) + .setMessage(AssistantMessage.newBuilder().build()) + .build(); + + RunAssistantResponse actualResponse = client.runAssistant(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAssistantService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RunAssistantRequest actualRequest = ((RunAssistantRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getApp(), actualRequest.getApp()); + Assert.assertEquals(request.getAssistantSession(), actualRequest.getAssistantSession()); + Assert.assertEquals(request.getMessage(), actualRequest.getMessage()); + Assert.assertEquals(request.getInteractionType(), actualRequest.getInteractionType()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void runAssistantExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAssistantService.addException(exception); + + try { + RunAssistantRequest request = + RunAssistantRequest.newBuilder() + .setApp(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setAssistantSession( + AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]") + .toString()) + .setMessage(AssistantMessage.newBuilder().build()) + .build(); + client.runAssistant(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void chatAiAssistantTest() throws Exception { + ChatAiAssistantResponse expectedResponse = + ChatAiAssistantResponse.newBuilder() + .setEventId("eventId-1376502443") + .setEventTime(Timestamp.newBuilder().build()) + .setUiEvent(UiEvent.newBuilder().build()) + .build(); + mockAssistantService.addResponse(expectedResponse); + + ChatAiAssistantRequest request = + ChatAiAssistantRequest.newBuilder() + .setApp(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setAssistantSession( + AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]") + .toString()) + .setMessage("message954925063") + .addAllAttachedGcsUris(new ArrayList()) + .setContextToken("contextToken1106626954") + .build(); + + ChatAiAssistantResponse actualResponse = client.chatAiAssistant(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAssistantService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ChatAiAssistantRequest actualRequest = ((ChatAiAssistantRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getApp(), actualRequest.getApp()); + Assert.assertEquals(request.getAssistantSession(), actualRequest.getAssistantSession()); + Assert.assertEquals(request.getMessage(), actualRequest.getMessage()); + Assert.assertEquals(request.getAttachedGcsUrisList(), actualRequest.getAttachedGcsUrisList()); + Assert.assertEquals(request.getContextToken(), actualRequest.getContextToken()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void chatAiAssistantExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAssistantService.addException(exception); + + try { + ChatAiAssistantRequest request = + ChatAiAssistantRequest.newBuilder() + .setApp(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setAssistantSession( + AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]") + .toString()) + .setMessage("message954925063") + .addAllAttachedGcsUris(new ArrayList()) + .setContextToken("contextToken1106626954") + .build(); + client.chatAiAssistant(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockLocations.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLocationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockLocations.addResponse(expectedResponse); + + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + + Location actualResponse = client.getLocation(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getLocationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/EvaluationServiceClientHttpJsonTest.java b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/EvaluationServiceClientHttpJsonTest.java index 534dcf87ee80..bfcd3196b7dd 100644 --- a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/EvaluationServiceClientHttpJsonTest.java +++ b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/EvaluationServiceClientHttpJsonTest.java @@ -1712,6 +1712,7 @@ public void getEvaluationResultTest() throws Exception { .setEvaluationMetricsThresholds(EvaluationMetricsThresholds.newBuilder().build()) .setConfig(EvaluationConfig.newBuilder().build()) .setGoldenRunMethod(GoldenRunMethod.forNumber(0)) + .setRootSpan(Span.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -1781,6 +1782,7 @@ public void getEvaluationResultTest2() throws Exception { .setEvaluationMetricsThresholds(EvaluationMetricsThresholds.newBuilder().build()) .setConfig(EvaluationConfig.newBuilder().build()) .setGoldenRunMethod(GoldenRunMethod.forNumber(0)) + .setRootSpan(Span.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); diff --git a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/EvaluationServiceClientTest.java b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/EvaluationServiceClientTest.java index 072eabe2d89f..48624eb53b36 100644 --- a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/EvaluationServiceClientTest.java +++ b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/EvaluationServiceClientTest.java @@ -1520,6 +1520,7 @@ public void getEvaluationResultTest() throws Exception { .setEvaluationMetricsThresholds(EvaluationMetricsThresholds.newBuilder().build()) .setConfig(EvaluationConfig.newBuilder().build()) .setGoldenRunMethod(GoldenRunMethod.forNumber(0)) + .setRootSpan(Span.newBuilder().build()) .build(); mockEvaluationService.addResponse(expectedResponse); @@ -1583,6 +1584,7 @@ public void getEvaluationResultTest2() throws Exception { .setEvaluationMetricsThresholds(EvaluationMetricsThresholds.newBuilder().build()) .setConfig(EvaluationConfig.newBuilder().build()) .setGoldenRunMethod(GoldenRunMethod.forNumber(0)) + .setRootSpan(Span.newBuilder().build()) .build(); mockEvaluationService.addResponse(expectedResponse); diff --git a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/MockAgentServiceImpl.java b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/MockAgentServiceImpl.java index 0898e91939a1..b46c798c9f27 100644 --- a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/MockAgentServiceImpl.java +++ b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/MockAgentServiceImpl.java @@ -1010,6 +1010,27 @@ public void createAppVersion( } } + @Override + public void updateAppVersion( + UpdateAppVersionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof AppVersion) { + requests.add(request); + responseObserver.onNext(((AppVersion) 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 UpdateAppVersion, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + AppVersion.class.getName(), + Exception.class.getName()))); + } + } + @Override public void deleteAppVersion( DeleteAppVersionRequest request, StreamObserver responseObserver) { diff --git a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/MockAssistantService.java b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/MockAssistantService.java new file mode 100644 index 000000000000..468801beafdf --- /dev/null +++ b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/MockAssistantService.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.ces.v1beta; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockAssistantService implements MockGrpcService { + private final MockAssistantServiceImpl serviceImpl; + + public MockAssistantService() { + serviceImpl = new MockAssistantServiceImpl(); + } + + @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-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/MockAssistantServiceImpl.java b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/MockAssistantServiceImpl.java new file mode 100644 index 000000000000..abd86331a7ef --- /dev/null +++ b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/MockAssistantServiceImpl.java @@ -0,0 +1,191 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1beta; + +import com.google.api.core.BetaApi; +import com.google.cloud.ces.v1beta.AssistantServiceGrpc.AssistantServiceImplBase; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Empty; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockAssistantServiceImpl extends AssistantServiceImplBase { + private List requests; + private Queue responses; + + public MockAssistantServiceImpl() { + 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 listAssistantSessions( + ListAssistantSessionsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListAssistantSessionsResponse) { + requests.add(request); + responseObserver.onNext(((ListAssistantSessionsResponse) 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 ListAssistantSessions, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + ListAssistantSessionsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getAssistantSession( + GetAssistantSessionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof AssistantSession) { + requests.add(request); + responseObserver.onNext(((AssistantSession) 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 GetAssistantSession, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + AssistantSession.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createAssistantSession( + CreateAssistantSessionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof AssistantSession) { + requests.add(request); + responseObserver.onNext(((AssistantSession) 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 CreateAssistantSession, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + AssistantSession.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteAssistantSession( + DeleteAssistantSessionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteAssistantSession, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void runAssistant( + RunAssistantRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof RunAssistantResponse) { + requests.add(request); + responseObserver.onNext(((RunAssistantResponse) 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 RunAssistant, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + RunAssistantResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void chatAiAssistant( + ChatAiAssistantRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ChatAiAssistantResponse) { + requests.add(request); + responseObserver.onNext(((ChatAiAssistantResponse) 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 ChatAiAssistant, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ChatAiAssistantResponse.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/MockSessionServiceImpl.java b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/MockSessionServiceImpl.java index 1de577e63165..18a342217943 100644 --- a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/MockSessionServiceImpl.java +++ b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/MockSessionServiceImpl.java @@ -137,4 +137,72 @@ public void onCompleted() { }; return requestObserver; } + + @Override + public void streamChatAiAssistant( + StreamChatAiAssistantRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof StreamChatAiAssistantResponse) { + requests.add(request); + responseObserver.onNext(((StreamChatAiAssistantResponse) 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 StreamChatAiAssistant, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + StreamChatAiAssistantResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void cancelAssistantTurn( + CancelAssistantTurnRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof CancelAssistantTurnResponse) { + requests.add(request); + responseObserver.onNext(((CancelAssistantTurnResponse) 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 CancelAssistantTurn, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + CancelAssistantTurnResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void generateOnboardingSuggestions( + GenerateOnboardingSuggestionsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof GenerateOnboardingSuggestionsResponse) { + requests.add(request); + responseObserver.onNext(((GenerateOnboardingSuggestionsResponse) 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 GenerateOnboardingSuggestions, expected" + + " %s or %s", + response == null ? "null" : response.getClass().getName(), + GenerateOnboardingSuggestionsResponse.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/SessionServiceClientHttpJsonTest.java b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/SessionServiceClientHttpJsonTest.java index b909cd0f26bf..ab144582cfdd 100644 --- a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/SessionServiceClientHttpJsonTest.java +++ b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/SessionServiceClientHttpJsonTest.java @@ -105,6 +105,9 @@ public void runSessionTest() throws Exception { .setRemoteDialogflowQueryParameters( SessionConfig.RemoteDialogflowQueryParameters.newBuilder().build()) .setEnableTextStreaming(true) + .setIncludeLlmThoughtSummary(true) + .setExcludeDiagnosticInfo(true) + .setIncludeProgressUpdate(true) .build()) .addAllInputs(new ArrayList()) .build(); @@ -153,6 +156,9 @@ public void runSessionExceptionTest() throws Exception { .setRemoteDialogflowQueryParameters( SessionConfig.RemoteDialogflowQueryParameters.newBuilder().build()) .setEnableTextStreaming(true) + .setIncludeLlmThoughtSummary(true) + .setExcludeDiagnosticInfo(true) + .setIncludeProgressUpdate(true) .build()) .addAllInputs(new ArrayList()) .build(); @@ -180,6 +186,123 @@ public void bidiRunSessionUnsupportedMethodTest() throws Exception { // This empty test is generated for technical reasons. } + @Test + public void streamChatAiAssistantTest() throws Exception {} + + @Test + public void streamChatAiAssistantExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + } + + @Test + public void cancelAssistantTurnTest() throws Exception { + CancelAssistantTurnResponse expectedResponse = + CancelAssistantTurnResponse.newBuilder().setCancelled(true).build(); + mockService.addResponse(expectedResponse); + + CancelAssistantTurnRequest request = + CancelAssistantTurnRequest.newBuilder() + .setName( + "projects/project-3303/locations/location-3303/apps/app-3303/assistantSessions/assistantSession-3303") + .setTurnId("turnId-862429576") + .build(); + + CancelAssistantTurnResponse actualResponse = client.cancelAssistantTurn(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 cancelAssistantTurnExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CancelAssistantTurnRequest request = + CancelAssistantTurnRequest.newBuilder() + .setName( + "projects/project-3303/locations/location-3303/apps/app-3303/assistantSessions/assistantSession-3303") + .setTurnId("turnId-862429576") + .build(); + client.cancelAssistantTurn(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void generateOnboardingSuggestionsTest() throws Exception { + GenerateOnboardingSuggestionsResponse expectedResponse = + GenerateOnboardingSuggestionsResponse.newBuilder() + .addAllSuggestions(new ArrayList()) + .setContextToken("contextToken1106626954") + .build(); + mockService.addResponse(expectedResponse); + + GenerateOnboardingSuggestionsRequest request = + GenerateOnboardingSuggestionsRequest.newBuilder() + .setName(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setMaxSuggestions(618824852) + .build(); + + GenerateOnboardingSuggestionsResponse actualResponse = + client.generateOnboardingSuggestions(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 generateOnboardingSuggestionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GenerateOnboardingSuggestionsRequest request = + GenerateOnboardingSuggestionsRequest.newBuilder() + .setName(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setMaxSuggestions(618824852) + .build(); + client.generateOnboardingSuggestions(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/SessionServiceClientTest.java b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/SessionServiceClientTest.java index 25dc41228217..747c21fa9cd9 100644 --- a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/SessionServiceClientTest.java +++ b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/SessionServiceClientTest.java @@ -37,6 +37,7 @@ import com.google.common.collect.Lists; import com.google.protobuf.AbstractMessage; import com.google.protobuf.Any; +import com.google.protobuf.Timestamp; import io.grpc.StatusRuntimeException; import java.io.IOException; import java.util.ArrayList; @@ -233,6 +234,176 @@ public void bidiRunSessionExceptionTest() throws Exception { } } + @Test + public void streamChatAiAssistantTest() throws Exception { + StreamChatAiAssistantResponse expectedResponse = + StreamChatAiAssistantResponse.newBuilder() + .setEventId("eventId-1376502443") + .setEventTime(Timestamp.newBuilder().build()) + .setUiEvent(UiEvent.newBuilder().build()) + .setTurnMetadata(TurnMetadata.newBuilder().build()) + .setSequenceNumber(-1309190777) + .setTurnInProgress(true) + .build(); + mockSessionService.addResponse(expectedResponse); + StreamChatAiAssistantRequest request = + StreamChatAiAssistantRequest.newBuilder() + .setName( + AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]") + .toString()) + .setMessage("message954925063") + .addAllAttachedGcsUris(new ArrayList()) + .setContextToken("contextToken1106626954") + .setConfirmationResponse(AssistantConfirmationResponse.newBuilder().build()) + .addAllClientCapabilities( + new ArrayList()) + .setOperationCompletedEvent(OperationCompletedEvent.newBuilder().build()) + .setResumeFromSequenceNumber(15486916) + .setAttachOnly(true) + .build(); + + MockStreamObserver responseObserver = new MockStreamObserver<>(); + + ServerStreamingCallable callable = + client.streamChatAiAssistantCallable(); + callable.serverStreamingCall(request, responseObserver); + + List actualResponses = responseObserver.future().get(); + Assert.assertEquals(1, actualResponses.size()); + Assert.assertEquals(expectedResponse, actualResponses.get(0)); + } + + @Test + public void streamChatAiAssistantExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSessionService.addException(exception); + StreamChatAiAssistantRequest request = + StreamChatAiAssistantRequest.newBuilder() + .setName( + AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]") + .toString()) + .setMessage("message954925063") + .addAllAttachedGcsUris(new ArrayList()) + .setContextToken("contextToken1106626954") + .setConfirmationResponse(AssistantConfirmationResponse.newBuilder().build()) + .addAllClientCapabilities( + new ArrayList()) + .setOperationCompletedEvent(OperationCompletedEvent.newBuilder().build()) + .setResumeFromSequenceNumber(15486916) + .setAttachOnly(true) + .build(); + + MockStreamObserver responseObserver = new MockStreamObserver<>(); + + ServerStreamingCallable callable = + client.streamChatAiAssistantCallable(); + callable.serverStreamingCall(request, responseObserver); + + try { + List actualResponses = responseObserver.future().get(); + Assert.fail("No exception thrown"); + } catch (ExecutionException e) { + Assert.assertTrue(e.getCause() instanceof InvalidArgumentException); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void cancelAssistantTurnTest() throws Exception { + CancelAssistantTurnResponse expectedResponse = + CancelAssistantTurnResponse.newBuilder().setCancelled(true).build(); + mockSessionService.addResponse(expectedResponse); + + CancelAssistantTurnRequest request = + CancelAssistantTurnRequest.newBuilder() + .setName("name3373707") + .setTurnId("turnId-862429576") + .build(); + + CancelAssistantTurnResponse actualResponse = client.cancelAssistantTurn(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSessionService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CancelAssistantTurnRequest actualRequest = ((CancelAssistantTurnRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getTurnId(), actualRequest.getTurnId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void cancelAssistantTurnExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSessionService.addException(exception); + + try { + CancelAssistantTurnRequest request = + CancelAssistantTurnRequest.newBuilder() + .setName("name3373707") + .setTurnId("turnId-862429576") + .build(); + client.cancelAssistantTurn(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void generateOnboardingSuggestionsTest() throws Exception { + GenerateOnboardingSuggestionsResponse expectedResponse = + GenerateOnboardingSuggestionsResponse.newBuilder() + .addAllSuggestions(new ArrayList()) + .setContextToken("contextToken1106626954") + .build(); + mockSessionService.addResponse(expectedResponse); + + GenerateOnboardingSuggestionsRequest request = + GenerateOnboardingSuggestionsRequest.newBuilder() + .setName(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setMaxSuggestions(618824852) + .build(); + + GenerateOnboardingSuggestionsResponse actualResponse = + client.generateOnboardingSuggestions(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSessionService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GenerateOnboardingSuggestionsRequest actualRequest = + ((GenerateOnboardingSuggestionsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getMaxSuggestions(), actualRequest.getMaxSuggestions()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void generateOnboardingSuggestionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSessionService.addException(exception); + + try { + GenerateOnboardingSuggestionsRequest request = + GenerateOnboardingSuggestionsRequest.newBuilder() + .setName(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setMaxSuggestions(618824852) + .build(); + client.generateOnboardingSuggestions(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/java-ces/grpc-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentServiceGrpc.java b/java-ces/grpc-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentServiceGrpc.java index 805a57be01bc..71f0bc0c71a9 100644 --- a/java-ces/grpc-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentServiceGrpc.java +++ b/java-ces/grpc-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentServiceGrpc.java @@ -2026,6 +2026,52 @@ private AgentServiceGrpc() {} return getCreateAppVersionMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1beta.UpdateAppVersionRequest, + com.google.cloud.ces.v1beta.AppVersion> + getUpdateAppVersionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateAppVersion", + requestType = com.google.cloud.ces.v1beta.UpdateAppVersionRequest.class, + responseType = com.google.cloud.ces.v1beta.AppVersion.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1beta.UpdateAppVersionRequest, + com.google.cloud.ces.v1beta.AppVersion> + getUpdateAppVersionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.ces.v1beta.UpdateAppVersionRequest, + com.google.cloud.ces.v1beta.AppVersion> + getUpdateAppVersionMethod; + if ((getUpdateAppVersionMethod = AgentServiceGrpc.getUpdateAppVersionMethod) == null) { + synchronized (AgentServiceGrpc.class) { + if ((getUpdateAppVersionMethod = AgentServiceGrpc.getUpdateAppVersionMethod) == null) { + AgentServiceGrpc.getUpdateAppVersionMethod = + getUpdateAppVersionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateAppVersion")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1beta.UpdateAppVersionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1beta.AppVersion.getDefaultInstance())) + .setSchemaDescriptor( + new AgentServiceMethodDescriptorSupplier("UpdateAppVersion")) + .build(); + } + } + } + return getUpdateAppVersionMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.ces.v1beta.DeleteAppVersionRequest, com.google.protobuf.Empty> getDeleteAppVersionMethod; @@ -2949,6 +2995,20 @@ default void createAppVersion( getCreateAppVersionMethod(), responseObserver); } + /** + * + * + *
+     * Updates the specified app version.
+     * 
+ */ + default void updateAppVersion( + com.google.cloud.ces.v1beta.UpdateAppVersionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateAppVersionMethod(), responseObserver); + } + /** * * @@ -3774,6 +3834,22 @@ public void createAppVersion( responseObserver); } + /** + * + * + *
+     * Updates the specified app version.
+     * 
+ */ + public void updateAppVersion( + com.google.cloud.ces.v1beta.UpdateAppVersionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateAppVersionMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -4485,6 +4561,20 @@ public com.google.cloud.ces.v1beta.AppVersion createAppVersion( getChannel(), getCreateAppVersionMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Updates the specified app version.
+     * 
+ */ + public com.google.cloud.ces.v1beta.AppVersion updateAppVersion( + com.google.cloud.ces.v1beta.UpdateAppVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateAppVersionMethod(), getCallOptions(), request); + } + /** * * @@ -5174,6 +5264,19 @@ public com.google.cloud.ces.v1beta.AppVersion createAppVersion( getChannel(), getCreateAppVersionMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Updates the specified app version.
+     * 
+ */ + public com.google.cloud.ces.v1beta.AppVersion updateAppVersion( + com.google.cloud.ces.v1beta.UpdateAppVersionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateAppVersionMethod(), getCallOptions(), request); + } + /** * * @@ -5878,6 +5981,20 @@ public com.google.common.util.concurrent.ListenableFuture + * Updates the specified app version. + * + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.ces.v1beta.AppVersion> + updateAppVersion(com.google.cloud.ces.v1beta.UpdateAppVersionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateAppVersionMethod(), getCallOptions()), request); + } + /** * * @@ -5993,11 +6110,12 @@ public com.google.common.util.concurrent.ListenableFuture implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -6266,6 +6384,12 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_UPDATE_APP_VERSION: + serviceImpl.updateAppVersion( + (com.google.cloud.ces.v1beta.UpdateAppVersionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; case METHODID_DELETE_APP_VERSION: serviceImpl.deleteAppVersion( (com.google.cloud.ces.v1beta.DeleteAppVersionRequest) request, @@ -6596,6 +6720,12 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.ces.v1beta.CreateAppVersionRequest, com.google.cloud.ces.v1beta.AppVersion>(service, METHODID_CREATE_APP_VERSION))) + .addMethod( + getUpdateAppVersionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1beta.UpdateAppVersionRequest, + com.google.cloud.ces.v1beta.AppVersion>(service, METHODID_UPDATE_APP_VERSION))) .addMethod( getDeleteAppVersionMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -6724,6 +6854,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getListAppVersionsMethod()) .addMethod(getGetAppVersionMethod()) .addMethod(getCreateAppVersionMethod()) + .addMethod(getUpdateAppVersionMethod()) .addMethod(getDeleteAppVersionMethod()) .addMethod(getRestoreAppVersionMethod()) .addMethod(getGenerateAppResourceMethod()) diff --git a/java-ces/grpc-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantServiceGrpc.java b/java-ces/grpc-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantServiceGrpc.java new file mode 100644 index 000000000000..0aa2760858b3 --- /dev/null +++ b/java-ces/grpc-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantServiceGrpc.java @@ -0,0 +1,1111 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.ces.v1beta; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * The service that manages assistant-related resources in Customer Engagement
+ * Suite (CES). The assistant, Arc, is a conversational agent embedded in CES
+ * applications to help users with building their agents.
+ * 
+ */ +@io.grpc.stub.annotations.GrpcGenerated +public final class AssistantServiceGrpc { + + private AssistantServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = "google.cloud.ces.v1beta.AssistantService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1beta.ListAssistantSessionsRequest, + com.google.cloud.ces.v1beta.ListAssistantSessionsResponse> + getListAssistantSessionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListAssistantSessions", + requestType = com.google.cloud.ces.v1beta.ListAssistantSessionsRequest.class, + responseType = com.google.cloud.ces.v1beta.ListAssistantSessionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1beta.ListAssistantSessionsRequest, + com.google.cloud.ces.v1beta.ListAssistantSessionsResponse> + getListAssistantSessionsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.ces.v1beta.ListAssistantSessionsRequest, + com.google.cloud.ces.v1beta.ListAssistantSessionsResponse> + getListAssistantSessionsMethod; + if ((getListAssistantSessionsMethod = AssistantServiceGrpc.getListAssistantSessionsMethod) + == null) { + synchronized (AssistantServiceGrpc.class) { + if ((getListAssistantSessionsMethod = AssistantServiceGrpc.getListAssistantSessionsMethod) + == null) { + AssistantServiceGrpc.getListAssistantSessionsMethod = + getListAssistantSessionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListAssistantSessions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1beta.ListAssistantSessionsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1beta.ListAssistantSessionsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AssistantServiceMethodDescriptorSupplier("ListAssistantSessions")) + .build(); + } + } + } + return getListAssistantSessionsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1beta.GetAssistantSessionRequest, + com.google.cloud.ces.v1beta.AssistantSession> + getGetAssistantSessionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetAssistantSession", + requestType = com.google.cloud.ces.v1beta.GetAssistantSessionRequest.class, + responseType = com.google.cloud.ces.v1beta.AssistantSession.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1beta.GetAssistantSessionRequest, + com.google.cloud.ces.v1beta.AssistantSession> + getGetAssistantSessionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.ces.v1beta.GetAssistantSessionRequest, + com.google.cloud.ces.v1beta.AssistantSession> + getGetAssistantSessionMethod; + if ((getGetAssistantSessionMethod = AssistantServiceGrpc.getGetAssistantSessionMethod) + == null) { + synchronized (AssistantServiceGrpc.class) { + if ((getGetAssistantSessionMethod = AssistantServiceGrpc.getGetAssistantSessionMethod) + == null) { + AssistantServiceGrpc.getGetAssistantSessionMethod = + getGetAssistantSessionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetAssistantSession")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1beta.GetAssistantSessionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1beta.AssistantSession.getDefaultInstance())) + .setSchemaDescriptor( + new AssistantServiceMethodDescriptorSupplier("GetAssistantSession")) + .build(); + } + } + } + return getGetAssistantSessionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1beta.CreateAssistantSessionRequest, + com.google.cloud.ces.v1beta.AssistantSession> + getCreateAssistantSessionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateAssistantSession", + requestType = com.google.cloud.ces.v1beta.CreateAssistantSessionRequest.class, + responseType = com.google.cloud.ces.v1beta.AssistantSession.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1beta.CreateAssistantSessionRequest, + com.google.cloud.ces.v1beta.AssistantSession> + getCreateAssistantSessionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.ces.v1beta.CreateAssistantSessionRequest, + com.google.cloud.ces.v1beta.AssistantSession> + getCreateAssistantSessionMethod; + if ((getCreateAssistantSessionMethod = AssistantServiceGrpc.getCreateAssistantSessionMethod) + == null) { + synchronized (AssistantServiceGrpc.class) { + if ((getCreateAssistantSessionMethod = AssistantServiceGrpc.getCreateAssistantSessionMethod) + == null) { + AssistantServiceGrpc.getCreateAssistantSessionMethod = + getCreateAssistantSessionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateAssistantSession")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1beta.CreateAssistantSessionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1beta.AssistantSession.getDefaultInstance())) + .setSchemaDescriptor( + new AssistantServiceMethodDescriptorSupplier("CreateAssistantSession")) + .build(); + } + } + } + return getCreateAssistantSessionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest, com.google.protobuf.Empty> + getDeleteAssistantSessionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteAssistantSession", + requestType = com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest, com.google.protobuf.Empty> + getDeleteAssistantSessionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest, com.google.protobuf.Empty> + getDeleteAssistantSessionMethod; + if ((getDeleteAssistantSessionMethod = AssistantServiceGrpc.getDeleteAssistantSessionMethod) + == null) { + synchronized (AssistantServiceGrpc.class) { + if ((getDeleteAssistantSessionMethod = AssistantServiceGrpc.getDeleteAssistantSessionMethod) + == null) { + AssistantServiceGrpc.getDeleteAssistantSessionMethod = + getDeleteAssistantSessionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteAssistantSession")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AssistantServiceMethodDescriptorSupplier("DeleteAssistantSession")) + .build(); + } + } + } + return getDeleteAssistantSessionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1beta.RunAssistantRequest, + com.google.cloud.ces.v1beta.RunAssistantResponse> + getRunAssistantMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RunAssistant", + requestType = com.google.cloud.ces.v1beta.RunAssistantRequest.class, + responseType = com.google.cloud.ces.v1beta.RunAssistantResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1beta.RunAssistantRequest, + com.google.cloud.ces.v1beta.RunAssistantResponse> + getRunAssistantMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.ces.v1beta.RunAssistantRequest, + com.google.cloud.ces.v1beta.RunAssistantResponse> + getRunAssistantMethod; + if ((getRunAssistantMethod = AssistantServiceGrpc.getRunAssistantMethod) == null) { + synchronized (AssistantServiceGrpc.class) { + if ((getRunAssistantMethod = AssistantServiceGrpc.getRunAssistantMethod) == null) { + AssistantServiceGrpc.getRunAssistantMethod = + getRunAssistantMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RunAssistant")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1beta.RunAssistantRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1beta.RunAssistantResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AssistantServiceMethodDescriptorSupplier("RunAssistant")) + .build(); + } + } + } + return getRunAssistantMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1beta.ChatAiAssistantRequest, + com.google.cloud.ces.v1beta.ChatAiAssistantResponse> + getChatAiAssistantMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ChatAiAssistant", + requestType = com.google.cloud.ces.v1beta.ChatAiAssistantRequest.class, + responseType = com.google.cloud.ces.v1beta.ChatAiAssistantResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1beta.ChatAiAssistantRequest, + com.google.cloud.ces.v1beta.ChatAiAssistantResponse> + getChatAiAssistantMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.ces.v1beta.ChatAiAssistantRequest, + com.google.cloud.ces.v1beta.ChatAiAssistantResponse> + getChatAiAssistantMethod; + if ((getChatAiAssistantMethod = AssistantServiceGrpc.getChatAiAssistantMethod) == null) { + synchronized (AssistantServiceGrpc.class) { + if ((getChatAiAssistantMethod = AssistantServiceGrpc.getChatAiAssistantMethod) == null) { + AssistantServiceGrpc.getChatAiAssistantMethod = + getChatAiAssistantMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ChatAiAssistant")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1beta.ChatAiAssistantRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1beta.ChatAiAssistantResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AssistantServiceMethodDescriptorSupplier("ChatAiAssistant")) + .build(); + } + } + } + return getChatAiAssistantMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static AssistantServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AssistantServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssistantServiceStub(channel, callOptions); + } + }; + return AssistantServiceStub.newStub(factory, channel); + } + + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static AssistantServiceBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AssistantServiceBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssistantServiceBlockingV2Stub(channel, callOptions); + } + }; + return AssistantServiceBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static AssistantServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AssistantServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssistantServiceBlockingStub(channel, callOptions); + } + }; + return AssistantServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static AssistantServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AssistantServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssistantServiceFutureStub(channel, callOptions); + } + }; + return AssistantServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * The service that manages assistant-related resources in Customer Engagement
+   * Suite (CES). The assistant, Arc, is a conversational agent embedded in CES
+   * applications to help users with building their agents.
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Lists all assistant sessions in the given app.
+     * 
+ */ + default void listAssistantSessions( + com.google.cloud.ces.v1beta.ListAssistantSessionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListAssistantSessionsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of the specified assistant session.
+     * 
+ */ + default void getAssistantSession( + com.google.cloud.ces.v1beta.GetAssistantSessionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetAssistantSessionMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new assistant session in the given app.
+     * 
+ */ + default void createAssistantSession( + com.google.cloud.ces.v1beta.CreateAssistantSessionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateAssistantSessionMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes the specified assistant session.
+     * 
+ */ + default void deleteAssistantSession( + com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteAssistantSessionMethod(), responseObserver); + } + + /** + * + * + *
+     * Runs the assistant agent for the specified assistant session.
+     * 
+ */ + default void runAssistant( + com.google.cloud.ces.v1beta.RunAssistantRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRunAssistantMethod(), responseObserver); + } + + /** + * + * + *
+     * Runs Arc, the AI assistant, for the specified assistant session.
+     * 
+ */ + default void chatAiAssistant( + com.google.cloud.ces.v1beta.ChatAiAssistantRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getChatAiAssistantMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service AssistantService. + * + *
+   * The service that manages assistant-related resources in Customer Engagement
+   * Suite (CES). The assistant, Arc, is a conversational agent embedded in CES
+   * applications to help users with building their agents.
+   * 
+ */ + public abstract static class AssistantServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return AssistantServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service AssistantService. + * + *
+   * The service that manages assistant-related resources in Customer Engagement
+   * Suite (CES). The assistant, Arc, is a conversational agent embedded in CES
+   * applications to help users with building their agents.
+   * 
+ */ + public static final class AssistantServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private AssistantServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AssistantServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssistantServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists all assistant sessions in the given app.
+     * 
+ */ + public void listAssistantSessions( + com.google.cloud.ces.v1beta.ListAssistantSessionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAssistantSessionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details of the specified assistant session.
+     * 
+ */ + public void getAssistantSession( + com.google.cloud.ces.v1beta.GetAssistantSessionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAssistantSessionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a new assistant session in the given app.
+     * 
+ */ + public void createAssistantSession( + com.google.cloud.ces.v1beta.CreateAssistantSessionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateAssistantSessionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes the specified assistant session.
+     * 
+ */ + public void deleteAssistantSession( + com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteAssistantSessionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Runs the assistant agent for the specified assistant session.
+     * 
+ */ + public void runAssistant( + com.google.cloud.ces.v1beta.RunAssistantRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRunAssistantMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Runs Arc, the AI assistant, for the specified assistant session.
+     * 
+ */ + public void chatAiAssistant( + com.google.cloud.ces.v1beta.ChatAiAssistantRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getChatAiAssistantMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service AssistantService. + * + *
+   * The service that manages assistant-related resources in Customer Engagement
+   * Suite (CES). The assistant, Arc, is a conversational agent embedded in CES
+   * applications to help users with building their agents.
+   * 
+ */ + public static final class AssistantServiceBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private AssistantServiceBlockingV2Stub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AssistantServiceBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssistantServiceBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
+     * Lists all assistant sessions in the given app.
+     * 
+ */ + public com.google.cloud.ces.v1beta.ListAssistantSessionsResponse listAssistantSessions( + com.google.cloud.ces.v1beta.ListAssistantSessionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListAssistantSessionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of the specified assistant session.
+     * 
+ */ + public com.google.cloud.ces.v1beta.AssistantSession getAssistantSession( + com.google.cloud.ces.v1beta.GetAssistantSessionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetAssistantSessionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new assistant session in the given app.
+     * 
+ */ + public com.google.cloud.ces.v1beta.AssistantSession createAssistantSession( + com.google.cloud.ces.v1beta.CreateAssistantSessionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateAssistantSessionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes the specified assistant session.
+     * 
+ */ + public com.google.protobuf.Empty deleteAssistantSession( + com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteAssistantSessionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Runs the assistant agent for the specified assistant session.
+     * 
+ */ + public com.google.cloud.ces.v1beta.RunAssistantResponse runAssistant( + com.google.cloud.ces.v1beta.RunAssistantRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getRunAssistantMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Runs Arc, the AI assistant, for the specified assistant session.
+     * 
+ */ + public com.google.cloud.ces.v1beta.ChatAiAssistantResponse chatAiAssistant( + com.google.cloud.ces.v1beta.ChatAiAssistantRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getChatAiAssistantMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service AssistantService. + * + *
+   * The service that manages assistant-related resources in Customer Engagement
+   * Suite (CES). The assistant, Arc, is a conversational agent embedded in CES
+   * applications to help users with building their agents.
+   * 
+ */ + public static final class AssistantServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private AssistantServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AssistantServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssistantServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists all assistant sessions in the given app.
+     * 
+ */ + public com.google.cloud.ces.v1beta.ListAssistantSessionsResponse listAssistantSessions( + com.google.cloud.ces.v1beta.ListAssistantSessionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAssistantSessionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of the specified assistant session.
+     * 
+ */ + public com.google.cloud.ces.v1beta.AssistantSession getAssistantSession( + com.google.cloud.ces.v1beta.GetAssistantSessionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAssistantSessionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new assistant session in the given app.
+     * 
+ */ + public com.google.cloud.ces.v1beta.AssistantSession createAssistantSession( + com.google.cloud.ces.v1beta.CreateAssistantSessionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateAssistantSessionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes the specified assistant session.
+     * 
+ */ + public com.google.protobuf.Empty deleteAssistantSession( + com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteAssistantSessionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Runs the assistant agent for the specified assistant session.
+     * 
+ */ + public com.google.cloud.ces.v1beta.RunAssistantResponse runAssistant( + com.google.cloud.ces.v1beta.RunAssistantRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRunAssistantMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Runs Arc, the AI assistant, for the specified assistant session.
+     * 
+ */ + public com.google.cloud.ces.v1beta.ChatAiAssistantResponse chatAiAssistant( + com.google.cloud.ces.v1beta.ChatAiAssistantRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getChatAiAssistantMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service AssistantService. + * + *
+   * The service that manages assistant-related resources in Customer Engagement
+   * Suite (CES). The assistant, Arc, is a conversational agent embedded in CES
+   * applications to help users with building their agents.
+   * 
+ */ + public static final class AssistantServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private AssistantServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AssistantServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssistantServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists all assistant sessions in the given app.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.ces.v1beta.ListAssistantSessionsResponse> + listAssistantSessions(com.google.cloud.ces.v1beta.ListAssistantSessionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAssistantSessionsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets details of the specified assistant session.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.ces.v1beta.AssistantSession> + getAssistantSession(com.google.cloud.ces.v1beta.GetAssistantSessionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAssistantSessionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new assistant session in the given app.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.ces.v1beta.AssistantSession> + createAssistantSession(com.google.cloud.ces.v1beta.CreateAssistantSessionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateAssistantSessionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes the specified assistant session.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteAssistantSession(com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteAssistantSessionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Runs the assistant agent for the specified assistant session.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.ces.v1beta.RunAssistantResponse> + runAssistant(com.google.cloud.ces.v1beta.RunAssistantRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRunAssistantMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Runs Arc, the AI assistant, for the specified assistant session.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.ces.v1beta.ChatAiAssistantResponse> + chatAiAssistant(com.google.cloud.ces.v1beta.ChatAiAssistantRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getChatAiAssistantMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_ASSISTANT_SESSIONS = 0; + private static final int METHODID_GET_ASSISTANT_SESSION = 1; + private static final int METHODID_CREATE_ASSISTANT_SESSION = 2; + private static final int METHODID_DELETE_ASSISTANT_SESSION = 3; + private static final int METHODID_RUN_ASSISTANT = 4; + private static final int METHODID_CHAT_AI_ASSISTANT = 5; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_LIST_ASSISTANT_SESSIONS: + serviceImpl.listAssistantSessions( + (com.google.cloud.ces.v1beta.ListAssistantSessionsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.ces.v1beta.ListAssistantSessionsResponse>) + responseObserver); + break; + case METHODID_GET_ASSISTANT_SESSION: + serviceImpl.getAssistantSession( + (com.google.cloud.ces.v1beta.GetAssistantSessionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_ASSISTANT_SESSION: + serviceImpl.createAssistantSession( + (com.google.cloud.ces.v1beta.CreateAssistantSessionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_ASSISTANT_SESSION: + serviceImpl.deleteAssistantSession( + (com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_RUN_ASSISTANT: + serviceImpl.runAssistant( + (com.google.cloud.ces.v1beta.RunAssistantRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CHAT_AI_ASSISTANT: + serviceImpl.chatAiAssistant( + (com.google.cloud.ces.v1beta.ChatAiAssistantRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListAssistantSessionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1beta.ListAssistantSessionsRequest, + com.google.cloud.ces.v1beta.ListAssistantSessionsResponse>( + service, METHODID_LIST_ASSISTANT_SESSIONS))) + .addMethod( + getGetAssistantSessionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1beta.GetAssistantSessionRequest, + com.google.cloud.ces.v1beta.AssistantSession>( + service, METHODID_GET_ASSISTANT_SESSION))) + .addMethod( + getCreateAssistantSessionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1beta.CreateAssistantSessionRequest, + com.google.cloud.ces.v1beta.AssistantSession>( + service, METHODID_CREATE_ASSISTANT_SESSION))) + .addMethod( + getDeleteAssistantSessionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_ASSISTANT_SESSION))) + .addMethod( + getRunAssistantMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1beta.RunAssistantRequest, + com.google.cloud.ces.v1beta.RunAssistantResponse>( + service, METHODID_RUN_ASSISTANT))) + .addMethod( + getChatAiAssistantMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1beta.ChatAiAssistantRequest, + com.google.cloud.ces.v1beta.ChatAiAssistantResponse>( + service, METHODID_CHAT_AI_ASSISTANT))) + .build(); + } + + private abstract static class AssistantServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + AssistantServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.ces.v1beta.AssistantServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("AssistantService"); + } + } + + private static final class AssistantServiceFileDescriptorSupplier + extends AssistantServiceBaseDescriptorSupplier { + AssistantServiceFileDescriptorSupplier() {} + } + + private static final class AssistantServiceMethodDescriptorSupplier + extends AssistantServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + AssistantServiceMethodDescriptorSupplier(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 (AssistantServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new AssistantServiceFileDescriptorSupplier()) + .addMethod(getListAssistantSessionsMethod()) + .addMethod(getGetAssistantSessionMethod()) + .addMethod(getCreateAssistantSessionMethod()) + .addMethod(getDeleteAssistantSessionMethod()) + .addMethod(getRunAssistantMethod()) + .addMethod(getChatAiAssistantMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-ces/grpc-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/SessionServiceGrpc.java b/java-ces/grpc-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/SessionServiceGrpc.java index 305fd619c56d..79d0f180e640 100644 --- a/java-ces/grpc-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/SessionServiceGrpc.java +++ b/java-ces/grpc-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/SessionServiceGrpc.java @@ -168,6 +168,158 @@ private SessionServiceGrpc() {} return getBidiRunSessionMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1beta.StreamChatAiAssistantRequest, + com.google.cloud.ces.v1beta.StreamChatAiAssistantResponse> + getStreamChatAiAssistantMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StreamChatAiAssistant", + requestType = com.google.cloud.ces.v1beta.StreamChatAiAssistantRequest.class, + responseType = com.google.cloud.ces.v1beta.StreamChatAiAssistantResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1beta.StreamChatAiAssistantRequest, + com.google.cloud.ces.v1beta.StreamChatAiAssistantResponse> + getStreamChatAiAssistantMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.ces.v1beta.StreamChatAiAssistantRequest, + com.google.cloud.ces.v1beta.StreamChatAiAssistantResponse> + getStreamChatAiAssistantMethod; + if ((getStreamChatAiAssistantMethod = SessionServiceGrpc.getStreamChatAiAssistantMethod) + == null) { + synchronized (SessionServiceGrpc.class) { + if ((getStreamChatAiAssistantMethod = SessionServiceGrpc.getStreamChatAiAssistantMethod) + == null) { + SessionServiceGrpc.getStreamChatAiAssistantMethod = + getStreamChatAiAssistantMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "StreamChatAiAssistant")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1beta.StreamChatAiAssistantRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1beta.StreamChatAiAssistantResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new SessionServiceMethodDescriptorSupplier("StreamChatAiAssistant")) + .build(); + } + } + } + return getStreamChatAiAssistantMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1beta.CancelAssistantTurnRequest, + com.google.cloud.ces.v1beta.CancelAssistantTurnResponse> + getCancelAssistantTurnMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CancelAssistantTurn", + requestType = com.google.cloud.ces.v1beta.CancelAssistantTurnRequest.class, + responseType = com.google.cloud.ces.v1beta.CancelAssistantTurnResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1beta.CancelAssistantTurnRequest, + com.google.cloud.ces.v1beta.CancelAssistantTurnResponse> + getCancelAssistantTurnMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.ces.v1beta.CancelAssistantTurnRequest, + com.google.cloud.ces.v1beta.CancelAssistantTurnResponse> + getCancelAssistantTurnMethod; + if ((getCancelAssistantTurnMethod = SessionServiceGrpc.getCancelAssistantTurnMethod) == null) { + synchronized (SessionServiceGrpc.class) { + if ((getCancelAssistantTurnMethod = SessionServiceGrpc.getCancelAssistantTurnMethod) + == null) { + SessionServiceGrpc.getCancelAssistantTurnMethod = + getCancelAssistantTurnMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CancelAssistantTurn")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1beta.CancelAssistantTurnRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1beta.CancelAssistantTurnResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new SessionServiceMethodDescriptorSupplier("CancelAssistantTurn")) + .build(); + } + } + } + return getCancelAssistantTurnMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest, + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse> + getGenerateOnboardingSuggestionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GenerateOnboardingSuggestions", + requestType = com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest.class, + responseType = com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest, + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse> + getGenerateOnboardingSuggestionsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest, + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse> + getGenerateOnboardingSuggestionsMethod; + if ((getGenerateOnboardingSuggestionsMethod = + SessionServiceGrpc.getGenerateOnboardingSuggestionsMethod) + == null) { + synchronized (SessionServiceGrpc.class) { + if ((getGenerateOnboardingSuggestionsMethod = + SessionServiceGrpc.getGenerateOnboardingSuggestionsMethod) + == null) { + SessionServiceGrpc.getGenerateOnboardingSuggestionsMethod = + getGenerateOnboardingSuggestionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GenerateOnboardingSuggestions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new SessionServiceMethodDescriptorSupplier( + "GenerateOnboardingSuggestions")) + .build(); + } + } + } + return getGenerateOnboardingSuggestionsMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static SessionServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -334,6 +486,60 @@ default void streamRunSession( return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall( getBidiRunSessionMethod(), responseObserver); } + + /** + * + * + *
+     * Runs Arc, the AI assistant, for the specified assistant session in a
+     * streaming fashion.
+     * 
+ */ + default void streamChatAiAssistant( + com.google.cloud.ces.v1beta.StreamChatAiAssistantRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getStreamChatAiAssistantMethod(), responseObserver); + } + + /** + * + * + *
+     * Cancels the assistant session's in-flight turn, if any: the explicit user
+     * stop for a turn running detached from any stream. A cancel landing on a
+     * task that does not host the turn preempts it through the session turn
+     * epoch instead, ending it within one lease renewal.
+     * 
+ */ + default void cancelAssistantTurn( + com.google.cloud.ces.v1beta.CancelAssistantTurnRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCancelAssistantTurnMethod(), responseObserver); + } + + /** + * + * + *
+     * Generates personalized onboarding suggestions for the Arc
+     * zero state: classifies the requesting user (new / exploring / returning)
+     * from their assistant-session history in the app and returns suggestion
+     * chips (resume a session, continue work, or start something new) to render
+     * before any message is sent.
+     * 
+ */ + default void generateOnboardingSuggestions( + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGenerateOnboardingSuggestionsMethod(), responseObserver); + } } /** @@ -476,6 +682,66 @@ public void streamRunSession( return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( getChannel().newCall(getBidiRunSessionMethod(), getCallOptions()), responseObserver); } + + /** + * + * + *
+     * Runs Arc, the AI assistant, for the specified assistant session in a
+     * streaming fashion.
+     * 
+ */ + public void streamChatAiAssistant( + com.google.cloud.ces.v1beta.StreamChatAiAssistantRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncServerStreamingCall( + getChannel().newCall(getStreamChatAiAssistantMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Cancels the assistant session's in-flight turn, if any: the explicit user
+     * stop for a turn running detached from any stream. A cancel landing on a
+     * task that does not host the turn preempts it through the session turn
+     * epoch instead, ending it within one lease renewal.
+     * 
+ */ + public void cancelAssistantTurn( + com.google.cloud.ces.v1beta.CancelAssistantTurnRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCancelAssistantTurnMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Generates personalized onboarding suggestions for the Arc
+     * zero state: classifies the requesting user (new / exploring / returning)
+     * from their assistant-session history in the app and returns suggestion
+     * chips (resume a session, continue work, or start something new) to render
+     * before any message is sent.
+     * 
+ */ + public void generateOnboardingSuggestions( + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGenerateOnboardingSuggestionsMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -599,6 +865,58 @@ public com.google.cloud.ces.v1beta.RunSessionResponse runSession( return io.grpc.stub.ClientCalls.blockingBidiStreamingCall( getChannel(), getBidiRunSessionMethod(), getCallOptions()); } + + /** + * + * + *
+     * Runs Arc, the AI assistant, for the specified assistant session in a
+     * streaming fashion.
+     * 
+ */ + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/10918") + public io.grpc.stub.BlockingClientCall< + ?, com.google.cloud.ces.v1beta.StreamChatAiAssistantResponse> + streamChatAiAssistant(com.google.cloud.ces.v1beta.StreamChatAiAssistantRequest request) { + return io.grpc.stub.ClientCalls.blockingV2ServerStreamingCall( + getChannel(), getStreamChatAiAssistantMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Cancels the assistant session's in-flight turn, if any: the explicit user
+     * stop for a turn running detached from any stream. A cancel landing on a
+     * task that does not host the turn preempts it through the session turn
+     * epoch instead, ending it within one lease renewal.
+     * 
+ */ + public com.google.cloud.ces.v1beta.CancelAssistantTurnResponse cancelAssistantTurn( + com.google.cloud.ces.v1beta.CancelAssistantTurnRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCancelAssistantTurnMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Generates personalized onboarding suggestions for the Arc
+     * zero state: classifies the requesting user (new / exploring / returning)
+     * from their assistant-session history in the app and returns suggestion
+     * chips (resume a session, continue work, or start something new) to render
+     * before any message is sent.
+     * 
+ */ + public com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse + generateOnboardingSuggestions( + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGenerateOnboardingSuggestionsMethod(), getCallOptions(), request); + } } /** @@ -652,6 +970,54 @@ public java.util.Iterator stream return io.grpc.stub.ClientCalls.blockingServerStreamingCall( getChannel(), getStreamRunSessionMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Runs Arc, the AI assistant, for the specified assistant session in a
+     * streaming fashion.
+     * 
+ */ + public java.util.Iterator + streamChatAiAssistant(com.google.cloud.ces.v1beta.StreamChatAiAssistantRequest request) { + return io.grpc.stub.ClientCalls.blockingServerStreamingCall( + getChannel(), getStreamChatAiAssistantMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Cancels the assistant session's in-flight turn, if any: the explicit user
+     * stop for a turn running detached from any stream. A cancel landing on a
+     * task that does not host the turn preempts it through the session turn
+     * epoch instead, ending it within one lease renewal.
+     * 
+ */ + public com.google.cloud.ces.v1beta.CancelAssistantTurnResponse cancelAssistantTurn( + com.google.cloud.ces.v1beta.CancelAssistantTurnRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCancelAssistantTurnMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Generates personalized onboarding suggestions for the Arc
+     * zero state: classifies the requesting user (new / exploring / returning)
+     * from their assistant-session history in the app and returns suggestion
+     * chips (resume a session, continue work, or start something new) to render
+     * before any message is sent.
+     * 
+ */ + public com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse + generateOnboardingSuggestions( + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGenerateOnboardingSuggestionsMethod(), getCallOptions(), request); + } } /** @@ -686,11 +1052,51 @@ protected SessionServiceFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getRunSessionMethod(), getCallOptions()), request); } + + /** + * + * + *
+     * Cancels the assistant session's in-flight turn, if any: the explicit user
+     * stop for a turn running detached from any stream. A cancel landing on a
+     * task that does not host the turn preempts it through the session turn
+     * epoch instead, ending it within one lease renewal.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.ces.v1beta.CancelAssistantTurnResponse> + cancelAssistantTurn(com.google.cloud.ces.v1beta.CancelAssistantTurnRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCancelAssistantTurnMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Generates personalized onboarding suggestions for the Arc
+     * zero state: classifies the requesting user (new / exploring / returning)
+     * from their assistant-session history in the app and returns suggestion
+     * chips (resume a session, continue work, or start something new) to render
+     * before any message is sent.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse> + generateOnboardingSuggestions( + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGenerateOnboardingSuggestionsMethod(), getCallOptions()), + request); + } } private static final int METHODID_RUN_SESSION = 0; private static final int METHODID_STREAM_RUN_SESSION = 1; - private static final int METHODID_BIDI_RUN_SESSION = 2; + private static final int METHODID_STREAM_CHAT_AI_ASSISTANT = 2; + private static final int METHODID_CANCEL_ASSISTANT_TURN = 3; + private static final int METHODID_GENERATE_ONBOARDING_SUGGESTIONS = 4; + private static final int METHODID_BIDI_RUN_SESSION = 5; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -721,6 +1127,26 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_STREAM_CHAT_AI_ASSISTANT: + serviceImpl.streamChatAiAssistant( + (com.google.cloud.ces.v1beta.StreamChatAiAssistantRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.ces.v1beta.StreamChatAiAssistantResponse>) + responseObserver); + break; + case METHODID_CANCEL_ASSISTANT_TURN: + serviceImpl.cancelAssistantTurn( + (com.google.cloud.ces.v1beta.CancelAssistantTurnRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GENERATE_ONBOARDING_SUGGESTIONS: + serviceImpl.generateOnboardingSuggestions( + (com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse>) + responseObserver); + break; default: throw new AssertionError(); } @@ -765,6 +1191,27 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.ces.v1beta.BidiSessionClientMessage, com.google.cloud.ces.v1beta.BidiSessionServerMessage>( service, METHODID_BIDI_RUN_SESSION))) + .addMethod( + getStreamChatAiAssistantMethod(), + io.grpc.stub.ServerCalls.asyncServerStreamingCall( + new MethodHandlers< + com.google.cloud.ces.v1beta.StreamChatAiAssistantRequest, + com.google.cloud.ces.v1beta.StreamChatAiAssistantResponse>( + service, METHODID_STREAM_CHAT_AI_ASSISTANT))) + .addMethod( + getCancelAssistantTurnMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1beta.CancelAssistantTurnRequest, + com.google.cloud.ces.v1beta.CancelAssistantTurnResponse>( + service, METHODID_CANCEL_ASSISTANT_TURN))) + .addMethod( + getGenerateOnboardingSuggestionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest, + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse>( + service, METHODID_GENERATE_ONBOARDING_SUGGESTIONS))) .build(); } @@ -819,6 +1266,9 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getRunSessionMethod()) .addMethod(getStreamRunSessionMethod()) .addMethod(getBidiRunSessionMethod()) + .addMethod(getStreamChatAiAssistantMethod()) + .addMethod(getCancelAssistantTurnMethod()) + .addMethod(getGenerateOnboardingSuggestionsMethod()) .build(); } } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ActiveTurnInfo.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ActiveTurnInfo.java new file mode 100644 index 000000000000..5c4126f47ff3 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ActiveTurnInfo.java @@ -0,0 +1,1883 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language 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/assistant_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +/** + * + * + *
+ * Live-attachment info for a session turn that is currently running,
+ * disconnected from its client, or parked for pickup by another server task.
+ * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.ActiveTurnInfo} + */ +@com.google.protobuf.Generated +public final class ActiveTurnInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.ActiveTurnInfo) + ActiveTurnInfoOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ActiveTurnInfo"); + } + + // Use ActiveTurnInfo.newBuilder() to construct. + private ActiveTurnInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ActiveTurnInfo() { + turnId_ = ""; + status_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_ActiveTurnInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_ActiveTurnInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.ActiveTurnInfo.class, + com.google.cloud.ces.v1beta.ActiveTurnInfo.Builder.class); + } + + /** + * + * + *
+   * How the running turn currently relates to clients and server tasks.
+   * 
+ * + * Protobuf enum {@code google.cloud.ces.v1beta.ActiveTurnInfo.Status} + */ + public enum Status implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified.
+     * 
+ * + * STATUS_UNSPECIFIED = 0; + */ + STATUS_UNSPECIFIED(0), + /** + * + * + *
+     * The turn is executing with at least one client attached.
+     * 
+ * + * RUNNING = 1; + */ + RUNNING(1), + /** + * + * + *
+     * The turn is executing with no client attached.
+     * 
+ * + * DISCONNECTED = 2; + */ + DISCONNECTED(2), + /** + * + * + *
+     * The turn is parked for pickup: the next attach continues it.
+     * 
+ * + * RESUMING = 3; + */ + RESUMING(3), + /** + * + * + *
+     * The turn's server lease has lapsed and no task is driving it; the next
+     * read seals it to a committed partial. Not attachable.
+     * 
+ * + * ABANDONED = 4; + */ + ABANDONED(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Status"); + } + + /** + * + * + *
+     * Unspecified.
+     * 
+ * + * STATUS_UNSPECIFIED = 0; + */ + public static final int STATUS_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * The turn is executing with at least one client attached.
+     * 
+ * + * RUNNING = 1; + */ + public static final int RUNNING_VALUE = 1; + + /** + * + * + *
+     * The turn is executing with no client attached.
+     * 
+ * + * DISCONNECTED = 2; + */ + public static final int DISCONNECTED_VALUE = 2; + + /** + * + * + *
+     * The turn is parked for pickup: the next attach continues it.
+     * 
+ * + * RESUMING = 3; + */ + public static final int RESUMING_VALUE = 3; + + /** + * + * + *
+     * The turn's server lease has lapsed and no task is driving it; the next
+     * read seals it to a committed partial. Not attachable.
+     * 
+ * + * ABANDONED = 4; + */ + public static final int ABANDONED_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 Status 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 Status forNumber(int value) { + switch (value) { + case 0: + return STATUS_UNSPECIFIED; + case 1: + return RUNNING; + case 2: + return DISCONNECTED; + case 3: + return RESUMING; + case 4: + return ABANDONED; + 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 Status findValueByNumber(int number) { + return Status.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.ActiveTurnInfo.getDescriptor().getEnumTypes().get(0); + } + + private static final Status[] VALUES = values(); + + public static Status 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 Status(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1beta.ActiveTurnInfo.Status) + } + + private int bitField0_; + public static final int TURN_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object turnId_ = ""; + + /** + * + * + *
+   * Identifies the turn; echoed by resume snapshots on the streaming API.
+   * 
+ * + * string turn_id = 1; + * + * @return The turnId. + */ + @java.lang.Override + public java.lang.String getTurnId() { + java.lang.Object ref = turnId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + turnId_ = s; + return s; + } + } + + /** + * + * + *
+   * Identifies the turn; echoed by resume snapshots on the streaming API.
+   * 
+ * + * string turn_id = 1; + * + * @return The bytes for turnId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTurnIdBytes() { + java.lang.Object ref = turnId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + turnId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATUS_FIELD_NUMBER = 2; + private int status_ = 0; + + /** + * + * + *
+   * Current attachment status.
+   * 
+ * + * .google.cloud.ces.v1beta.ActiveTurnInfo.Status status = 2; + * + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override + public int getStatusValue() { + return status_; + } + + /** + * + * + *
+   * Current attachment status.
+   * 
+ * + * .google.cloud.ces.v1beta.ActiveTurnInfo.Status status = 2; + * + * @return The status. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.ActiveTurnInfo.Status getStatus() { + com.google.cloud.ces.v1beta.ActiveTurnInfo.Status result = + com.google.cloud.ces.v1beta.ActiveTurnInfo.Status.forNumber(status_); + return result == null ? com.google.cloud.ces.v1beta.ActiveTurnInfo.Status.UNRECOGNIZED : result; + } + + public static final int START_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp startTime_; + + /** + * + * + *
+   * Output only. When the turn started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. When the turn started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + /** + * + * + *
+   * Output only. When the turn started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + public static final int LAST_PROGRESS_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp lastProgressTime_; + + /** + * + * + *
+   * Output only. When the turn last persisted progress.
+   * 
+ * + * + * .google.protobuf.Timestamp last_progress_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the lastProgressTime field is set. + */ + @java.lang.Override + public boolean hasLastProgressTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. When the turn last persisted progress.
+   * 
+ * + * + * .google.protobuf.Timestamp last_progress_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The lastProgressTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getLastProgressTime() { + return lastProgressTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastProgressTime_; + } + + /** + * + * + *
+   * Output only. When the turn last persisted progress.
+   * 
+ * + * + * .google.protobuf.Timestamp last_progress_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getLastProgressTimeOrBuilder() { + return lastProgressTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastProgressTime_; + } + + public static final int ORPHAN_DEADLINE_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp orphanDeadlineTime_; + + /** + * + * + *
+   * Output only. When the turn will be wound down if no client attaches.
+   * 
+ * + * + * .google.protobuf.Timestamp orphan_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the orphanDeadlineTime field is set. + */ + @java.lang.Override + public boolean hasOrphanDeadlineTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Output only. When the turn will be wound down if no client attaches.
+   * 
+ * + * + * .google.protobuf.Timestamp orphan_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The orphanDeadlineTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getOrphanDeadlineTime() { + return orphanDeadlineTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : orphanDeadlineTime_; + } + + /** + * + * + *
+   * Output only. When the turn will be wound down if no client attaches.
+   * 
+ * + * + * .google.protobuf.Timestamp orphan_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getOrphanDeadlineTimeOrBuilder() { + return orphanDeadlineTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : orphanDeadlineTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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(turnId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, turnId_); + } + if (status_ + != com.google.cloud.ces.v1beta.ActiveTurnInfo.Status.STATUS_UNSPECIFIED.getNumber()) { + output.writeEnum(2, status_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getLastProgressTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(5, getOrphanDeadlineTime()); + } + 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(turnId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, turnId_); + } + if (status_ + != com.google.cloud.ces.v1beta.ActiveTurnInfo.Status.STATUS_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, status_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getLastProgressTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getOrphanDeadlineTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.ActiveTurnInfo)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.ActiveTurnInfo other = + (com.google.cloud.ces.v1beta.ActiveTurnInfo) obj; + + if (!getTurnId().equals(other.getTurnId())) return false; + if (status_ != other.status_) return false; + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime().equals(other.getStartTime())) return false; + } + if (hasLastProgressTime() != other.hasLastProgressTime()) return false; + if (hasLastProgressTime()) { + if (!getLastProgressTime().equals(other.getLastProgressTime())) return false; + } + if (hasOrphanDeadlineTime() != other.hasOrphanDeadlineTime()) return false; + if (hasOrphanDeadlineTime()) { + if (!getOrphanDeadlineTime().equals(other.getOrphanDeadlineTime())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TURN_ID_FIELD_NUMBER; + hash = (53 * hash) + getTurnId().hashCode(); + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasLastProgressTime()) { + hash = (37 * hash) + LAST_PROGRESS_TIME_FIELD_NUMBER; + hash = (53 * hash) + getLastProgressTime().hashCode(); + } + if (hasOrphanDeadlineTime()) { + hash = (37 * hash) + ORPHAN_DEADLINE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getOrphanDeadlineTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.ActiveTurnInfo parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ActiveTurnInfo parseFrom( + 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.ActiveTurnInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ActiveTurnInfo parseFrom( + com.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.ActiveTurnInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ActiveTurnInfo 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.ActiveTurnInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ActiveTurnInfo parseFrom( + java.io.InputStream 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.ActiveTurnInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ActiveTurnInfo parseDelimitedFrom( + java.io.InputStream 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.ActiveTurnInfo 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.ActiveTurnInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, 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.ActiveTurnInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Live-attachment info for a session turn that is currently running,
+   * disconnected from its client, or parked for pickup by another server task.
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.ActiveTurnInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.ActiveTurnInfo) + com.google.cloud.ces.v1beta.ActiveTurnInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_ActiveTurnInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_ActiveTurnInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.ActiveTurnInfo.class, + com.google.cloud.ces.v1beta.ActiveTurnInfo.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.ActiveTurnInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetStartTimeFieldBuilder(); + internalGetLastProgressTimeFieldBuilder(); + internalGetOrphanDeadlineTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + turnId_ = ""; + status_ = 0; + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + lastProgressTime_ = null; + if (lastProgressTimeBuilder_ != null) { + lastProgressTimeBuilder_.dispose(); + lastProgressTimeBuilder_ = null; + } + orphanDeadlineTime_ = null; + if (orphanDeadlineTimeBuilder_ != null) { + orphanDeadlineTimeBuilder_.dispose(); + orphanDeadlineTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_ActiveTurnInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ActiveTurnInfo getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.ActiveTurnInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ActiveTurnInfo build() { + com.google.cloud.ces.v1beta.ActiveTurnInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ActiveTurnInfo buildPartial() { + com.google.cloud.ces.v1beta.ActiveTurnInfo result = + new com.google.cloud.ces.v1beta.ActiveTurnInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1beta.ActiveTurnInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.turnId_ = turnId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.status_ = status_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.lastProgressTime_ = + lastProgressTimeBuilder_ == null ? lastProgressTime_ : lastProgressTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orphanDeadlineTime_ = + orphanDeadlineTimeBuilder_ == null + ? orphanDeadlineTime_ + : orphanDeadlineTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.ActiveTurnInfo) { + return mergeFrom((com.google.cloud.ces.v1beta.ActiveTurnInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.ActiveTurnInfo other) { + if (other == com.google.cloud.ces.v1beta.ActiveTurnInfo.getDefaultInstance()) return this; + if (!other.getTurnId().isEmpty()) { + turnId_ = other.turnId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasLastProgressTime()) { + mergeLastProgressTime(other.getLastProgressTime()); + } + if (other.hasOrphanDeadlineTime()) { + mergeOrphanDeadlineTime(other.getOrphanDeadlineTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + turnId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + status_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + input.readMessage( + internalGetStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetLastProgressTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetOrphanDeadlineTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object turnId_ = ""; + + /** + * + * + *
+     * Identifies the turn; echoed by resume snapshots on the streaming API.
+     * 
+ * + * string turn_id = 1; + * + * @return The turnId. + */ + public java.lang.String getTurnId() { + java.lang.Object ref = turnId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + turnId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Identifies the turn; echoed by resume snapshots on the streaming API.
+     * 
+ * + * string turn_id = 1; + * + * @return The bytes for turnId. + */ + public com.google.protobuf.ByteString getTurnIdBytes() { + java.lang.Object ref = turnId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + turnId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Identifies the turn; echoed by resume snapshots on the streaming API.
+     * 
+ * + * string turn_id = 1; + * + * @param value The turnId to set. + * @return This builder for chaining. + */ + public Builder setTurnId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + turnId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifies the turn; echoed by resume snapshots on the streaming API.
+     * 
+ * + * string turn_id = 1; + * + * @return This builder for chaining. + */ + public Builder clearTurnId() { + turnId_ = getDefaultInstance().getTurnId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifies the turn; echoed by resume snapshots on the streaming API.
+     * 
+ * + * string turn_id = 1; + * + * @param value The bytes for turnId to set. + * @return This builder for chaining. + */ + public Builder setTurnIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + turnId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int status_ = 0; + + /** + * + * + *
+     * Current attachment status.
+     * 
+ * + * .google.cloud.ces.v1beta.ActiveTurnInfo.Status status = 2; + * + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override + public int getStatusValue() { + return status_; + } + + /** + * + * + *
+     * Current attachment status.
+     * 
+ * + * .google.cloud.ces.v1beta.ActiveTurnInfo.Status status = 2; + * + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. + */ + public Builder setStatusValue(int value) { + status_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Current attachment status.
+     * 
+ * + * .google.cloud.ces.v1beta.ActiveTurnInfo.Status status = 2; + * + * @return The status. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.ActiveTurnInfo.Status getStatus() { + com.google.cloud.ces.v1beta.ActiveTurnInfo.Status result = + com.google.cloud.ces.v1beta.ActiveTurnInfo.Status.forNumber(status_); + return result == null + ? com.google.cloud.ces.v1beta.ActiveTurnInfo.Status.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Current attachment status.
+     * 
+ * + * .google.cloud.ces.v1beta.ActiveTurnInfo.Status status = 2; + * + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(com.google.cloud.ces.v1beta.ActiveTurnInfo.Status value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + status_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Current attachment status.
+     * 
+ * + * .google.cloud.ces.v1beta.ActiveTurnInfo.Status status = 2; + * + * @return This builder for chaining. + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000002); + status_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + + /** + * + * + *
+     * Output only. When the turn started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Output only. When the turn started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. When the turn started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + } else { + startTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. When the turn started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. When the turn started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); + } else { + startTime_ = value; + } + } else { + startTimeBuilder_.mergeFrom(value); + } + if (startTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. When the turn started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearStartTime() { + bitField0_ = (bitField0_ & ~0x00000004); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. When the turn started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetStartTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. When the turn started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + + /** + * + * + *
+     * Output only. When the turn started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private com.google.protobuf.Timestamp lastProgressTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + lastProgressTimeBuilder_; + + /** + * + * + *
+     * Output only. When the turn last persisted progress.
+     * 
+ * + * + * .google.protobuf.Timestamp last_progress_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the lastProgressTime field is set. + */ + public boolean hasLastProgressTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Output only. When the turn last persisted progress.
+     * 
+ * + * + * .google.protobuf.Timestamp last_progress_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The lastProgressTime. + */ + public com.google.protobuf.Timestamp getLastProgressTime() { + if (lastProgressTimeBuilder_ == null) { + return lastProgressTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastProgressTime_; + } else { + return lastProgressTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. When the turn last persisted progress.
+     * 
+ * + * + * .google.protobuf.Timestamp last_progress_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setLastProgressTime(com.google.protobuf.Timestamp value) { + if (lastProgressTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + lastProgressTime_ = value; + } else { + lastProgressTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. When the turn last persisted progress.
+     * 
+ * + * + * .google.protobuf.Timestamp last_progress_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setLastProgressTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (lastProgressTimeBuilder_ == null) { + lastProgressTime_ = builderForValue.build(); + } else { + lastProgressTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. When the turn last persisted progress.
+     * 
+ * + * + * .google.protobuf.Timestamp last_progress_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeLastProgressTime(com.google.protobuf.Timestamp value) { + if (lastProgressTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && lastProgressTime_ != null + && lastProgressTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getLastProgressTimeBuilder().mergeFrom(value); + } else { + lastProgressTime_ = value; + } + } else { + lastProgressTimeBuilder_.mergeFrom(value); + } + if (lastProgressTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. When the turn last persisted progress.
+     * 
+ * + * + * .google.protobuf.Timestamp last_progress_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearLastProgressTime() { + bitField0_ = (bitField0_ & ~0x00000008); + lastProgressTime_ = null; + if (lastProgressTimeBuilder_ != null) { + lastProgressTimeBuilder_.dispose(); + lastProgressTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. When the turn last persisted progress.
+     * 
+ * + * + * .google.protobuf.Timestamp last_progress_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getLastProgressTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetLastProgressTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. When the turn last persisted progress.
+     * 
+ * + * + * .google.protobuf.Timestamp last_progress_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getLastProgressTimeOrBuilder() { + if (lastProgressTimeBuilder_ != null) { + return lastProgressTimeBuilder_.getMessageOrBuilder(); + } else { + return lastProgressTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastProgressTime_; + } + } + + /** + * + * + *
+     * Output only. When the turn last persisted progress.
+     * 
+ * + * + * .google.protobuf.Timestamp last_progress_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> + internalGetLastProgressTimeFieldBuilder() { + if (lastProgressTimeBuilder_ == null) { + lastProgressTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getLastProgressTime(), getParentForChildren(), isClean()); + lastProgressTime_ = null; + } + return lastProgressTimeBuilder_; + } + + private com.google.protobuf.Timestamp orphanDeadlineTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + orphanDeadlineTimeBuilder_; + + /** + * + * + *
+     * Output only. When the turn will be wound down if no client attaches.
+     * 
+ * + * + * .google.protobuf.Timestamp orphan_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the orphanDeadlineTime field is set. + */ + public boolean hasOrphanDeadlineTime() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Output only. When the turn will be wound down if no client attaches.
+     * 
+ * + * + * .google.protobuf.Timestamp orphan_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The orphanDeadlineTime. + */ + public com.google.protobuf.Timestamp getOrphanDeadlineTime() { + if (orphanDeadlineTimeBuilder_ == null) { + return orphanDeadlineTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : orphanDeadlineTime_; + } else { + return orphanDeadlineTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. When the turn will be wound down if no client attaches.
+     * 
+ * + * + * .google.protobuf.Timestamp orphan_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setOrphanDeadlineTime(com.google.protobuf.Timestamp value) { + if (orphanDeadlineTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + orphanDeadlineTime_ = value; + } else { + orphanDeadlineTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. When the turn will be wound down if no client attaches.
+     * 
+ * + * + * .google.protobuf.Timestamp orphan_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setOrphanDeadlineTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (orphanDeadlineTimeBuilder_ == null) { + orphanDeadlineTime_ = builderForValue.build(); + } else { + orphanDeadlineTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. When the turn will be wound down if no client attaches.
+     * 
+ * + * + * .google.protobuf.Timestamp orphan_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeOrphanDeadlineTime(com.google.protobuf.Timestamp value) { + if (orphanDeadlineTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && orphanDeadlineTime_ != null + && orphanDeadlineTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getOrphanDeadlineTimeBuilder().mergeFrom(value); + } else { + orphanDeadlineTime_ = value; + } + } else { + orphanDeadlineTimeBuilder_.mergeFrom(value); + } + if (orphanDeadlineTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. When the turn will be wound down if no client attaches.
+     * 
+ * + * + * .google.protobuf.Timestamp orphan_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearOrphanDeadlineTime() { + bitField0_ = (bitField0_ & ~0x00000010); + orphanDeadlineTime_ = null; + if (orphanDeadlineTimeBuilder_ != null) { + orphanDeadlineTimeBuilder_.dispose(); + orphanDeadlineTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. When the turn will be wound down if no client attaches.
+     * 
+ * + * + * .google.protobuf.Timestamp orphan_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getOrphanDeadlineTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetOrphanDeadlineTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. When the turn will be wound down if no client attaches.
+     * 
+ * + * + * .google.protobuf.Timestamp orphan_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getOrphanDeadlineTimeOrBuilder() { + if (orphanDeadlineTimeBuilder_ != null) { + return orphanDeadlineTimeBuilder_.getMessageOrBuilder(); + } else { + return orphanDeadlineTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : orphanDeadlineTime_; + } + } + + /** + * + * + *
+     * Output only. When the turn will be wound down if no client attaches.
+     * 
+ * + * + * .google.protobuf.Timestamp orphan_deadline_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> + internalGetOrphanDeadlineTimeFieldBuilder() { + if (orphanDeadlineTimeBuilder_ == null) { + orphanDeadlineTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getOrphanDeadlineTime(), getParentForChildren(), isClean()); + orphanDeadlineTime_ = null; + } + return orphanDeadlineTimeBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.ActiveTurnInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.ActiveTurnInfo) + private static final com.google.cloud.ces.v1beta.ActiveTurnInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.ActiveTurnInfo(); + } + + public static com.google.cloud.ces.v1beta.ActiveTurnInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ActiveTurnInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.ActiveTurnInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ActiveTurnInfoOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ActiveTurnInfoOrBuilder.java new file mode 100644 index 000000000000..28a30b3ab242 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ActiveTurnInfoOrBuilder.java @@ -0,0 +1,206 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language 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/assistant_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public interface ActiveTurnInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.ActiveTurnInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifies the turn; echoed by resume snapshots on the streaming API.
+   * 
+ * + * string turn_id = 1; + * + * @return The turnId. + */ + java.lang.String getTurnId(); + + /** + * + * + *
+   * Identifies the turn; echoed by resume snapshots on the streaming API.
+   * 
+ * + * string turn_id = 1; + * + * @return The bytes for turnId. + */ + com.google.protobuf.ByteString getTurnIdBytes(); + + /** + * + * + *
+   * Current attachment status.
+   * 
+ * + * .google.cloud.ces.v1beta.ActiveTurnInfo.Status status = 2; + * + * @return The enum numeric value on the wire for status. + */ + int getStatusValue(); + + /** + * + * + *
+   * Current attachment status.
+   * 
+ * + * .google.cloud.ces.v1beta.ActiveTurnInfo.Status status = 2; + * + * @return The status. + */ + com.google.cloud.ces.v1beta.ActiveTurnInfo.Status getStatus(); + + /** + * + * + *
+   * Output only. When the turn started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + + /** + * + * + *
+   * Output only. When the turn started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + + /** + * + * + *
+   * Output only. When the turn started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
+   * Output only. When the turn last persisted progress.
+   * 
+ * + * + * .google.protobuf.Timestamp last_progress_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the lastProgressTime field is set. + */ + boolean hasLastProgressTime(); + + /** + * + * + *
+   * Output only. When the turn last persisted progress.
+   * 
+ * + * + * .google.protobuf.Timestamp last_progress_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The lastProgressTime. + */ + com.google.protobuf.Timestamp getLastProgressTime(); + + /** + * + * + *
+   * Output only. When the turn last persisted progress.
+   * 
+ * + * + * .google.protobuf.Timestamp last_progress_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getLastProgressTimeOrBuilder(); + + /** + * + * + *
+   * Output only. When the turn will be wound down if no client attaches.
+   * 
+ * + * + * .google.protobuf.Timestamp orphan_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the orphanDeadlineTime field is set. + */ + boolean hasOrphanDeadlineTime(); + + /** + * + * + *
+   * Output only. When the turn will be wound down if no client attaches.
+   * 
+ * + * + * .google.protobuf.Timestamp orphan_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The orphanDeadlineTime. + */ + com.google.protobuf.Timestamp getOrphanDeadlineTime(); + + /** + * + * + *
+   * Output only. When the turn will be wound down if no client attaches.
+   * 
+ * + * + * .google.protobuf.Timestamp orphan_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getOrphanDeadlineTimeOrBuilder(); +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/Agent.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/Agent.java index d00005b91b87..e99845263e86 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/Agent.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/Agent.java @@ -2915,113 +2915,69 @@ public com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent getDefaultInstanc } } - public interface AgentToolsetOrBuilder + public interface RemoteA2aAgentOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.Agent.AgentToolset) + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.Agent.RemoteA2aAgent) com.google.protobuf.MessageOrBuilder { /** * * *
-     * Required. The resource name of the toolset.
-     * Format:
-     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
+     * Required. The A2A connection configuration.
      * 
* * - * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * .google.cloud.ces.v1beta.RemoteA2aConfig a2a_config = 1 [(.google.api.field_behavior) = REQUIRED]; * * - * @return The toolset. + * @return Whether the a2aConfig field is set. */ - java.lang.String getToolset(); + boolean hasA2AConfig(); /** * * *
-     * Required. The resource name of the toolset.
-     * Format:
-     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
+     * Required. The A2A connection configuration.
      * 
* * - * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * .google.cloud.ces.v1beta.RemoteA2aConfig a2a_config = 1 [(.google.api.field_behavior) = REQUIRED]; * * - * @return The bytes for toolset. - */ - com.google.protobuf.ByteString getToolsetBytes(); - - /** - * - * - *
-     * Optional. The tools IDs to filter the toolset.
-     * 
- * - * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the toolIds. - */ - java.util.List getToolIdsList(); - - /** - * - * - *
-     * Optional. The tools IDs to filter the toolset.
-     * 
- * - * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of toolIds. - */ - int getToolIdsCount(); - - /** - * - * - *
-     * Optional. The tools IDs to filter the toolset.
-     * 
- * - * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The toolIds at the given index. + * @return The a2aConfig. */ - java.lang.String getToolIds(int index); + com.google.cloud.ces.v1beta.RemoteA2aConfig getA2AConfig(); /** * * *
-     * Optional. The tools IDs to filter the toolset.
+     * Required. The A2A connection configuration.
      * 
* - * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the toolIds at the given index. + * + * .google.cloud.ces.v1beta.RemoteA2aConfig a2a_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.protobuf.ByteString getToolIdsBytes(int index); + com.google.cloud.ces.v1beta.RemoteA2aConfigOrBuilder getA2AConfigOrBuilder(); } /** * * *
-   * A toolset with a selection of its tools.
+   * The agent which will transfer execution to a remote
+   * [A2A](https://github.com/a2aproject/A2A) agent.
    * 
* - * Protobuf type {@code google.cloud.ces.v1beta.Agent.AgentToolset} + * Protobuf type {@code google.cloud.ces.v1beta.Agent.RemoteA2aAgent} */ - public static final class AgentToolset extends com.google.protobuf.GeneratedMessage + public static final class RemoteA2aAgent extends com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.Agent.AgentToolset) - AgentToolsetOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.Agent.RemoteA2aAgent) + RemoteA2aAgentOrBuilder { private static final long serialVersionUID = 0L; static { @@ -3031,161 +2987,89 @@ public static final class AgentToolset extends com.google.protobuf.GeneratedMess /* minor= */ 33, /* patch= */ 6, /* suffix= */ "", - "AgentToolset"); + "RemoteA2aAgent"); } - // Use AgentToolset.newBuilder() to construct. - private AgentToolset(com.google.protobuf.GeneratedMessage.Builder builder) { + // Use RemoteA2aAgent.newBuilder() to construct. + private RemoteA2aAgent(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } - private AgentToolset() { - toolset_ = ""; - toolIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); - } + private RemoteA2aAgent() {} public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.ces.v1beta.AgentProto - .internal_static_google_cloud_ces_v1beta_Agent_AgentToolset_descriptor; + .internal_static_google_cloud_ces_v1beta_Agent_RemoteA2aAgent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.ces.v1beta.AgentProto - .internal_static_google_cloud_ces_v1beta_Agent_AgentToolset_fieldAccessorTable + .internal_static_google_cloud_ces_v1beta_Agent_RemoteA2aAgent_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.ces.v1beta.Agent.AgentToolset.class, - com.google.cloud.ces.v1beta.Agent.AgentToolset.Builder.class); + com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent.class, + com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent.Builder.class); } - public static final int TOOLSET_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object toolset_ = ""; + private int bitField0_; + public static final int A2A_CONFIG_FIELD_NUMBER = 1; + private com.google.cloud.ces.v1beta.RemoteA2aConfig a2AConfig_; /** * * *
-     * Required. The resource name of the toolset.
-     * Format:
-     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
+     * Required. The A2A connection configuration.
      * 
* * - * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * .google.cloud.ces.v1beta.RemoteA2aConfig a2a_config = 1 [(.google.api.field_behavior) = REQUIRED]; * * - * @return The toolset. + * @return Whether the a2aConfig field is set. */ @java.lang.Override - public java.lang.String getToolset() { - java.lang.Object ref = toolset_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - toolset_ = s; - return s; - } + public boolean hasA2AConfig() { + return ((bitField0_ & 0x00000001) != 0); } /** * * *
-     * Required. The resource name of the toolset.
-     * Format:
-     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
+     * Required. The A2A connection configuration.
      * 
* * - * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * .google.cloud.ces.v1beta.RemoteA2aConfig a2a_config = 1 [(.google.api.field_behavior) = REQUIRED]; * * - * @return The bytes for toolset. + * @return The a2aConfig. */ @java.lang.Override - public com.google.protobuf.ByteString getToolsetBytes() { - java.lang.Object ref = toolset_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - toolset_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TOOL_IDS_FIELD_NUMBER = 4; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList toolIds_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - /** - * - * - *
-     * Optional. The tools IDs to filter the toolset.
-     * 
- * - * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the toolIds. - */ - public com.google.protobuf.ProtocolStringList getToolIdsList() { - return toolIds_; - } - - /** - * - * - *
-     * Optional. The tools IDs to filter the toolset.
-     * 
- * - * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of toolIds. - */ - public int getToolIdsCount() { - return toolIds_.size(); - } - - /** - * - * - *
-     * Optional. The tools IDs to filter the toolset.
-     * 
- * - * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The toolIds at the given index. - */ - public java.lang.String getToolIds(int index) { - return toolIds_.get(index); + public com.google.cloud.ces.v1beta.RemoteA2aConfig getA2AConfig() { + return a2AConfig_ == null + ? com.google.cloud.ces.v1beta.RemoteA2aConfig.getDefaultInstance() + : a2AConfig_; } /** * * *
-     * Optional. The tools IDs to filter the toolset.
+     * Required. The A2A connection configuration.
      * 
* - * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the toolIds at the given index. + * + * .google.cloud.ces.v1beta.RemoteA2aConfig a2a_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.protobuf.ByteString getToolIdsBytes(int index) { - return toolIds_.getByteString(index); + @java.lang.Override + public com.google.cloud.ces.v1beta.RemoteA2aConfigOrBuilder getA2AConfigOrBuilder() { + return a2AConfig_ == null + ? com.google.cloud.ces.v1beta.RemoteA2aConfig.getDefaultInstance() + : a2AConfig_; } private byte memoizedIsInitialized = -1; @@ -3202,11 +3086,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(toolset_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, toolset_); - } - for (int i = 0; i < toolIds_.size(); i++) { - com.google.protobuf.GeneratedMessage.writeString(output, 4, toolIds_.getRaw(i)); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getA2AConfig()); } getUnknownFields().writeTo(output); } @@ -3217,16 +3098,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(toolset_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, toolset_); - } - { - int dataSize = 0; - for (int i = 0; i < toolIds_.size(); i++) { - dataSize += computeStringSizeNoTag(toolIds_.getRaw(i)); - } - size += dataSize; - size += 1 * getToolIdsList().size(); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getA2AConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -3238,14 +3111,16 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.cloud.ces.v1beta.Agent.AgentToolset)) { + if (!(obj instanceof com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent)) { return super.equals(obj); } - com.google.cloud.ces.v1beta.Agent.AgentToolset other = - (com.google.cloud.ces.v1beta.Agent.AgentToolset) obj; + com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent other = + (com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent) obj; - if (!getToolset().equals(other.getToolset())) return false; - if (!getToolIdsList().equals(other.getToolIdsList())) return false; + if (hasA2AConfig() != other.hasA2AConfig()) return false; + if (hasA2AConfig()) { + if (!getA2AConfig().equals(other.getA2AConfig())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3257,82 +3132,80 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TOOLSET_FIELD_NUMBER; - hash = (53 * hash) + getToolset().hashCode(); - if (getToolIdsCount() > 0) { - hash = (37 * hash) + TOOL_IDS_FIELD_NUMBER; - hash = (53 * hash) + getToolIdsList().hashCode(); + if (hasA2AConfig()) { + hash = (37 * hash) + A2A_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getA2AConfig().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.ces.v1beta.Agent.AgentToolset parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.ces.v1beta.Agent.AgentToolset parseFrom( + public static com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent parseFrom( 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.Agent.AgentToolset parseFrom( + public static com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.ces.v1beta.Agent.AgentToolset parseFrom( + public static com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent parseFrom( com.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.Agent.AgentToolset parseFrom(byte[] data) + public static com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.ces.v1beta.Agent.AgentToolset parseFrom( + public static com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent 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.Agent.AgentToolset parseFrom( + public static com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.cloud.ces.v1beta.Agent.AgentToolset parseFrom( + public static com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent parseFrom( java.io.InputStream 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.Agent.AgentToolset parseDelimitedFrom( + public static com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.ces.v1beta.Agent.AgentToolset parseDelimitedFrom( + public static com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent parseDelimitedFrom( java.io.InputStream 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.Agent.AgentToolset parseFrom( + public static com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent 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.Agent.AgentToolset parseFrom( + public static com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -3349,7 +3222,7 @@ public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.ces.v1beta.Agent.AgentToolset prototype) { + public static Builder newBuilder(com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -3368,60 +3241,73 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
-     * A toolset with a selection of its tools.
+     * The agent which will transfer execution to a remote
+     * [A2A](https://github.com/a2aproject/A2A) agent.
      * 
* - * Protobuf type {@code google.cloud.ces.v1beta.Agent.AgentToolset} + * Protobuf type {@code google.cloud.ces.v1beta.Agent.RemoteA2aAgent} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.Agent.AgentToolset) - com.google.cloud.ces.v1beta.Agent.AgentToolsetOrBuilder { + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.Agent.RemoteA2aAgent) + com.google.cloud.ces.v1beta.Agent.RemoteA2aAgentOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.ces.v1beta.AgentProto - .internal_static_google_cloud_ces_v1beta_Agent_AgentToolset_descriptor; + .internal_static_google_cloud_ces_v1beta_Agent_RemoteA2aAgent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.ces.v1beta.AgentProto - .internal_static_google_cloud_ces_v1beta_Agent_AgentToolset_fieldAccessorTable + .internal_static_google_cloud_ces_v1beta_Agent_RemoteA2aAgent_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.ces.v1beta.Agent.AgentToolset.class, - com.google.cloud.ces.v1beta.Agent.AgentToolset.Builder.class); + com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent.class, + com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent.Builder.class); } - // Construct using com.google.cloud.ces.v1beta.Agent.AgentToolset.newBuilder() - private Builder() {} + // Construct using com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetA2AConfigFieldBuilder(); + } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - toolset_ = ""; - toolIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + a2AConfig_ = null; + if (a2AConfigBuilder_ != null) { + a2AConfigBuilder_.dispose(); + a2AConfigBuilder_ = null; + } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.ces.v1beta.AgentProto - .internal_static_google_cloud_ces_v1beta_Agent_AgentToolset_descriptor; + .internal_static_google_cloud_ces_v1beta_Agent_RemoteA2aAgent_descriptor; } @java.lang.Override - public com.google.cloud.ces.v1beta.Agent.AgentToolset getDefaultInstanceForType() { - return com.google.cloud.ces.v1beta.Agent.AgentToolset.getDefaultInstance(); + public com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.ces.v1beta.Agent.AgentToolset build() { - com.google.cloud.ces.v1beta.Agent.AgentToolset result = buildPartial(); + public com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent build() { + com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -3429,9 +3315,9 @@ public com.google.cloud.ces.v1beta.Agent.AgentToolset build() { } @java.lang.Override - public com.google.cloud.ces.v1beta.Agent.AgentToolset buildPartial() { - com.google.cloud.ces.v1beta.Agent.AgentToolset result = - new com.google.cloud.ces.v1beta.Agent.AgentToolset(this); + public com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent buildPartial() { + com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent result = + new com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent(this); if (bitField0_ != 0) { buildPartial0(result); } @@ -3439,44 +3325,31 @@ public com.google.cloud.ces.v1beta.Agent.AgentToolset buildPartial() { return result; } - private void buildPartial0(com.google.cloud.ces.v1beta.Agent.AgentToolset result) { + private void buildPartial0(com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.toolset_ = toolset_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - toolIds_.makeImmutable(); - result.toolIds_ = toolIds_; + result.a2AConfig_ = a2AConfigBuilder_ == null ? a2AConfig_ : a2AConfigBuilder_.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.v1beta.Agent.AgentToolset) { - return mergeFrom((com.google.cloud.ces.v1beta.Agent.AgentToolset) other); + if (other instanceof com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent) { + return mergeFrom((com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.ces.v1beta.Agent.AgentToolset other) { - if (other == com.google.cloud.ces.v1beta.Agent.AgentToolset.getDefaultInstance()) + public Builder mergeFrom(com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent other) { + if (other == com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent.getDefaultInstance()) return this; - if (!other.getToolset().isEmpty()) { - toolset_ = other.toolset_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.toolIds_.isEmpty()) { - if (toolIds_.isEmpty()) { - toolIds_ = other.toolIds_; - bitField0_ |= 0x00000002; - } else { - ensureToolIdsIsMutable(); - toolIds_.addAll(other.toolIds_); - } - onChanged(); + if (other.hasA2AConfig()) { + mergeA2AConfig(other.getA2AConfig()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -3506,17 +3379,11 @@ public Builder mergeFrom( break; case 10: { - toolset_ = input.readStringRequireUtf8(); + input.readMessage( + internalGetA2AConfigFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureToolIdsIsMutable(); - toolIds_.add(s); - break; - } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3536,59 +3403,50 @@ public Builder mergeFrom( private int bitField0_; - private java.lang.Object toolset_ = ""; + private com.google.cloud.ces.v1beta.RemoteA2aConfig a2AConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.RemoteA2aConfig, + com.google.cloud.ces.v1beta.RemoteA2aConfig.Builder, + com.google.cloud.ces.v1beta.RemoteA2aConfigOrBuilder> + a2AConfigBuilder_; /** * * *
-       * Required. The resource name of the toolset.
-       * Format:
-       * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
+       * Required. The A2A connection configuration.
        * 
* * - * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * .google.cloud.ces.v1beta.RemoteA2aConfig a2a_config = 1 [(.google.api.field_behavior) = REQUIRED]; * * - * @return The toolset. + * @return Whether the a2aConfig field is set. */ - public java.lang.String getToolset() { - java.lang.Object ref = toolset_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - toolset_ = s; - return s; - } else { - return (java.lang.String) ref; - } + public boolean hasA2AConfig() { + return ((bitField0_ & 0x00000001) != 0); } /** * * *
-       * Required. The resource name of the toolset.
-       * Format:
-       * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
+       * Required. The A2A connection configuration.
        * 
* * - * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * .google.cloud.ces.v1beta.RemoteA2aConfig a2a_config = 1 [(.google.api.field_behavior) = REQUIRED]; * * - * @return The bytes for toolset. + * @return The a2aConfig. */ - public com.google.protobuf.ByteString getToolsetBytes() { - java.lang.Object ref = toolset_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - toolset_ = b; - return b; + public com.google.cloud.ces.v1beta.RemoteA2aConfig getA2AConfig() { + if (a2AConfigBuilder_ == null) { + return a2AConfig_ == null + ? com.google.cloud.ces.v1beta.RemoteA2aConfig.getDefaultInstance() + : a2AConfig_; } else { - return (com.google.protobuf.ByteString) ref; + return a2AConfigBuilder_.getMessage(); } } @@ -3596,23 +3454,22 @@ public com.google.protobuf.ByteString getToolsetBytes() { * * *
-       * Required. The resource name of the toolset.
-       * Format:
-       * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
+       * Required. The A2A connection configuration.
        * 
* * - * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * .google.cloud.ces.v1beta.RemoteA2aConfig a2a_config = 1 [(.google.api.field_behavior) = REQUIRED]; * - * - * @param value The toolset to set. - * @return This builder for chaining. */ - public Builder setToolset(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder setA2AConfig(com.google.cloud.ces.v1beta.RemoteA2aConfig value) { + if (a2AConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + a2AConfig_ = value; + } else { + a2AConfigBuilder_.setMessage(value); } - toolset_ = value; bitField0_ |= 0x00000001; onChanged(); return this; @@ -3622,20 +3479,21 @@ public Builder setToolset(java.lang.String value) { * * *
-       * Required. The resource name of the toolset.
-       * Format:
-       * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
+       * Required. The A2A connection configuration.
        * 
* * - * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * .google.cloud.ces.v1beta.RemoteA2aConfig a2a_config = 1 [(.google.api.field_behavior) = REQUIRED]; * - * - * @return This builder for chaining. */ - public Builder clearToolset() { - toolset_ = getDefaultInstance().getToolset(); - bitField0_ = (bitField0_ & ~0x00000001); + public Builder setA2AConfig( + com.google.cloud.ces.v1beta.RemoteA2aConfig.Builder builderForValue) { + if (a2AConfigBuilder_ == null) { + a2AConfig_ = builderForValue.build(); + } else { + a2AConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3644,123 +3502,29 @@ public Builder clearToolset() { * * *
-       * Required. The resource name of the toolset.
-       * Format:
-       * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
+       * Required. The A2A connection configuration.
        * 
* * - * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * .google.cloud.ces.v1beta.RemoteA2aConfig a2a_config = 1 [(.google.api.field_behavior) = REQUIRED]; * - * - * @param value The bytes for toolset to set. - * @return This builder for chaining. */ - public Builder setToolsetBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - toolset_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList toolIds_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureToolIdsIsMutable() { - if (!toolIds_.isModifiable()) { - toolIds_ = new com.google.protobuf.LazyStringArrayList(toolIds_); + public Builder mergeA2AConfig(com.google.cloud.ces.v1beta.RemoteA2aConfig value) { + if (a2AConfigBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && a2AConfig_ != null + && a2AConfig_ != com.google.cloud.ces.v1beta.RemoteA2aConfig.getDefaultInstance()) { + getA2AConfigBuilder().mergeFrom(value); + } else { + a2AConfig_ = value; + } + } else { + a2AConfigBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - } - - /** - * - * - *
-       * Optional. The tools IDs to filter the toolset.
-       * 
- * - * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the toolIds. - */ - public com.google.protobuf.ProtocolStringList getToolIdsList() { - toolIds_.makeImmutable(); - return toolIds_; - } - - /** - * - * - *
-       * Optional. The tools IDs to filter the toolset.
-       * 
- * - * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of toolIds. - */ - public int getToolIdsCount() { - return toolIds_.size(); - } - - /** - * - * - *
-       * Optional. The tools IDs to filter the toolset.
-       * 
- * - * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The toolIds at the given index. - */ - public java.lang.String getToolIds(int index) { - return toolIds_.get(index); - } - - /** - * - * - *
-       * Optional. The tools IDs to filter the toolset.
-       * 
- * - * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the toolIds at the given index. - */ - public com.google.protobuf.ByteString getToolIdsBytes(int index) { - return toolIds_.getByteString(index); - } - - /** - * - * - *
-       * Optional. The tools IDs to filter the toolset.
-       * 
- * - * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The toolIds to set. - * @return This builder for chaining. - */ - public Builder setToolIds(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + if (a2AConfig_ != null) { + bitField0_ |= 0x00000001; + onChanged(); } - ensureToolIdsIsMutable(); - toolIds_.set(index, value); - bitField0_ |= 0x00000002; - onChanged(); return this; } @@ -3768,21 +3532,20 @@ public Builder setToolIds(int index, java.lang.String value) { * * *
-       * Optional. The tools IDs to filter the toolset.
+       * Required. The A2A connection configuration.
        * 
* - * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The toolIds to add. - * @return This builder for chaining. + * + * .google.cloud.ces.v1beta.RemoteA2aConfig a2a_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder addToolIds(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder clearA2AConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + a2AConfig_ = null; + if (a2AConfigBuilder_ != null) { + a2AConfigBuilder_.dispose(); + a2AConfigBuilder_ = null; } - ensureToolIdsIsMutable(); - toolIds_.add(value); - bitField0_ |= 0x00000002; onChanged(); return this; } @@ -3791,83 +3554,86 @@ public Builder addToolIds(java.lang.String value) { * * *
-       * Optional. The tools IDs to filter the toolset.
+       * Required. The A2A connection configuration.
        * 
* - * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The toolIds to add. - * @return This builder for chaining. + * + * .google.cloud.ces.v1beta.RemoteA2aConfig a2a_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder addAllToolIds(java.lang.Iterable values) { - ensureToolIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, toolIds_); - bitField0_ |= 0x00000002; + public com.google.cloud.ces.v1beta.RemoteA2aConfig.Builder getA2AConfigBuilder() { + bitField0_ |= 0x00000001; onChanged(); - return this; + return internalGetA2AConfigFieldBuilder().getBuilder(); } /** * * *
-       * Optional. The tools IDs to filter the toolset.
+       * Required. The A2A connection configuration.
        * 
* - * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. + * + * .google.cloud.ces.v1beta.RemoteA2aConfig a2a_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder clearToolIds() { - toolIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - ; - onChanged(); - return this; + public com.google.cloud.ces.v1beta.RemoteA2aConfigOrBuilder getA2AConfigOrBuilder() { + if (a2AConfigBuilder_ != null) { + return a2AConfigBuilder_.getMessageOrBuilder(); + } else { + return a2AConfig_ == null + ? com.google.cloud.ces.v1beta.RemoteA2aConfig.getDefaultInstance() + : a2AConfig_; + } } /** * * *
-       * Optional. The tools IDs to filter the toolset.
+       * Required. The A2A connection configuration.
        * 
* - * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the toolIds to add. - * @return This builder for chaining. + * + * .google.cloud.ces.v1beta.RemoteA2aConfig a2a_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder addToolIdsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.RemoteA2aConfig, + com.google.cloud.ces.v1beta.RemoteA2aConfig.Builder, + com.google.cloud.ces.v1beta.RemoteA2aConfigOrBuilder> + internalGetA2AConfigFieldBuilder() { + if (a2AConfigBuilder_ == null) { + a2AConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.RemoteA2aConfig, + com.google.cloud.ces.v1beta.RemoteA2aConfig.Builder, + com.google.cloud.ces.v1beta.RemoteA2aConfigOrBuilder>( + getA2AConfig(), getParentForChildren(), isClean()); + a2AConfig_ = null; } - checkByteStringIsUtf8(value); - ensureToolIdsIsMutable(); - toolIds_.add(value); - bitField0_ |= 0x00000002; - onChanged(); - return this; + return a2AConfigBuilder_; } - // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.Agent.AgentToolset) + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.Agent.RemoteA2aAgent) } - // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.Agent.AgentToolset) - private static final com.google.cloud.ces.v1beta.Agent.AgentToolset DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.Agent.RemoteA2aAgent) + private static final com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.Agent.AgentToolset(); + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent(); } - public static com.google.cloud.ces.v1beta.Agent.AgentToolset getDefaultInstance() { + public static com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public AgentToolset parsePartialFrom( + public RemoteA2aAgent parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -3887,17 +3653,1004 @@ public AgentToolset parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.ces.v1beta.Agent.AgentToolset getDefaultInstanceForType() { + public com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface AgentToolsetOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.Agent.AgentToolset) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. The resource name of the toolset.
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
+     * 
+ * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The toolset. + */ + java.lang.String getToolset(); + + /** + * + * + *
+     * Required. The resource name of the toolset.
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
+     * 
+ * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for toolset. + */ + com.google.protobuf.ByteString getToolsetBytes(); + + /** + * + * + *
+     * Optional. The tools IDs to filter the toolset.
+     * 
+ * + * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the toolIds. + */ + java.util.List getToolIdsList(); + + /** + * + * + *
+     * Optional. The tools IDs to filter the toolset.
+     * 
+ * + * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of toolIds. + */ + int getToolIdsCount(); + + /** + * + * + *
+     * Optional. The tools IDs to filter the toolset.
+     * 
+ * + * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The toolIds at the given index. + */ + java.lang.String getToolIds(int index); + + /** + * + * + *
+     * Optional. The tools IDs to filter the toolset.
+     * 
+ * + * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the toolIds at the given index. + */ + com.google.protobuf.ByteString getToolIdsBytes(int index); + } + + /** + * + * + *
+   * A toolset with a selection of its tools.
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.Agent.AgentToolset} + */ + public static final class AgentToolset extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.Agent.AgentToolset) + AgentToolsetOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AgentToolset"); + } + + // Use AgentToolset.newBuilder() to construct. + private AgentToolset(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AgentToolset() { + toolset_ = ""; + toolIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AgentProto + .internal_static_google_cloud_ces_v1beta_Agent_AgentToolset_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AgentProto + .internal_static_google_cloud_ces_v1beta_Agent_AgentToolset_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.Agent.AgentToolset.class, + com.google.cloud.ces.v1beta.Agent.AgentToolset.Builder.class); + } + + public static final int TOOLSET_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object toolset_ = ""; + + /** + * + * + *
+     * Required. The resource name of the toolset.
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
+     * 
+ * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The toolset. + */ + @java.lang.Override + public java.lang.String getToolset() { + java.lang.Object ref = toolset_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + toolset_ = s; + return s; + } + } + + /** + * + * + *
+     * Required. The resource name of the toolset.
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
+     * 
+ * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for toolset. + */ + @java.lang.Override + public com.google.protobuf.ByteString getToolsetBytes() { + java.lang.Object ref = toolset_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + toolset_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOOL_IDS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList toolIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+     * Optional. The tools IDs to filter the toolset.
+     * 
+ * + * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the toolIds. + */ + public com.google.protobuf.ProtocolStringList getToolIdsList() { + return toolIds_; + } + + /** + * + * + *
+     * Optional. The tools IDs to filter the toolset.
+     * 
+ * + * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of toolIds. + */ + public int getToolIdsCount() { + return toolIds_.size(); + } + + /** + * + * + *
+     * Optional. The tools IDs to filter the toolset.
+     * 
+ * + * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The toolIds at the given index. + */ + public java.lang.String getToolIds(int index) { + return toolIds_.get(index); + } + + /** + * + * + *
+     * Optional. The tools IDs to filter the toolset.
+     * 
+ * + * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the toolIds at the given index. + */ + public com.google.protobuf.ByteString getToolIdsBytes(int index) { + return toolIds_.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(toolset_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, toolset_); + } + for (int i = 0; i < toolIds_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, toolIds_.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(toolset_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, toolset_); + } + { + int dataSize = 0; + for (int i = 0; i < toolIds_.size(); i++) { + dataSize += computeStringSizeNoTag(toolIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getToolIdsList().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.v1beta.Agent.AgentToolset)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.Agent.AgentToolset other = + (com.google.cloud.ces.v1beta.Agent.AgentToolset) obj; + + if (!getToolset().equals(other.getToolset())) return false; + if (!getToolIdsList().equals(other.getToolIdsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TOOLSET_FIELD_NUMBER; + hash = (53 * hash) + getToolset().hashCode(); + if (getToolIdsCount() > 0) { + hash = (37 * hash) + TOOL_IDS_FIELD_NUMBER; + hash = (53 * hash) + getToolIdsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.Agent.AgentToolset parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.Agent.AgentToolset parseFrom( + 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.Agent.AgentToolset parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.Agent.AgentToolset parseFrom( + com.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.Agent.AgentToolset parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.Agent.AgentToolset 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.Agent.AgentToolset parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.Agent.AgentToolset parseFrom( + java.io.InputStream 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.Agent.AgentToolset parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.Agent.AgentToolset parseDelimitedFrom( + java.io.InputStream 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.Agent.AgentToolset 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.Agent.AgentToolset parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, 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.Agent.AgentToolset prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 toolset with a selection of its tools.
+     * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.Agent.AgentToolset} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.Agent.AgentToolset) + com.google.cloud.ces.v1beta.Agent.AgentToolsetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AgentProto + .internal_static_google_cloud_ces_v1beta_Agent_AgentToolset_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AgentProto + .internal_static_google_cloud_ces_v1beta_Agent_AgentToolset_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.Agent.AgentToolset.class, + com.google.cloud.ces.v1beta.Agent.AgentToolset.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.Agent.AgentToolset.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + toolset_ = ""; + toolIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.AgentProto + .internal_static_google_cloud_ces_v1beta_Agent_AgentToolset_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.Agent.AgentToolset getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.Agent.AgentToolset.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.Agent.AgentToolset build() { + com.google.cloud.ces.v1beta.Agent.AgentToolset result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.Agent.AgentToolset buildPartial() { + com.google.cloud.ces.v1beta.Agent.AgentToolset result = + new com.google.cloud.ces.v1beta.Agent.AgentToolset(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1beta.Agent.AgentToolset result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.toolset_ = toolset_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + toolIds_.makeImmutable(); + result.toolIds_ = toolIds_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.Agent.AgentToolset) { + return mergeFrom((com.google.cloud.ces.v1beta.Agent.AgentToolset) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.Agent.AgentToolset other) { + if (other == com.google.cloud.ces.v1beta.Agent.AgentToolset.getDefaultInstance()) + return this; + if (!other.getToolset().isEmpty()) { + toolset_ = other.toolset_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.toolIds_.isEmpty()) { + if (toolIds_.isEmpty()) { + toolIds_ = other.toolIds_; + bitField0_ |= 0x00000002; + } else { + ensureToolIdsIsMutable(); + toolIds_.addAll(other.toolIds_); + } + 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: + { + toolset_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureToolIdsIsMutable(); + toolIds_.add(s); + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object toolset_ = ""; + + /** + * + * + *
+       * Required. The resource name of the toolset.
+       * Format:
+       * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
+       * 
+ * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The toolset. + */ + public java.lang.String getToolset() { + java.lang.Object ref = toolset_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + toolset_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Required. The resource name of the toolset.
+       * Format:
+       * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
+       * 
+ * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for toolset. + */ + public com.google.protobuf.ByteString getToolsetBytes() { + java.lang.Object ref = toolset_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + toolset_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Required. The resource name of the toolset.
+       * Format:
+       * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
+       * 
+ * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The toolset to set. + * @return This builder for chaining. + */ + public Builder setToolset(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + toolset_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Required. The resource name of the toolset.
+       * Format:
+       * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
+       * 
+ * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearToolset() { + toolset_ = getDefaultInstance().getToolset(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+       * Required. The resource name of the toolset.
+       * Format:
+       * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
+       * 
+ * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for toolset to set. + * @return This builder for chaining. + */ + public Builder setToolsetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + toolset_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList toolIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureToolIdsIsMutable() { + if (!toolIds_.isModifiable()) { + toolIds_ = new com.google.protobuf.LazyStringArrayList(toolIds_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
+       * Optional. The tools IDs to filter the toolset.
+       * 
+ * + * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the toolIds. + */ + public com.google.protobuf.ProtocolStringList getToolIdsList() { + toolIds_.makeImmutable(); + return toolIds_; + } + + /** + * + * + *
+       * Optional. The tools IDs to filter the toolset.
+       * 
+ * + * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of toolIds. + */ + public int getToolIdsCount() { + return toolIds_.size(); + } + + /** + * + * + *
+       * Optional. The tools IDs to filter the toolset.
+       * 
+ * + * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The toolIds at the given index. + */ + public java.lang.String getToolIds(int index) { + return toolIds_.get(index); + } + + /** + * + * + *
+       * Optional. The tools IDs to filter the toolset.
+       * 
+ * + * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the toolIds at the given index. + */ + public com.google.protobuf.ByteString getToolIdsBytes(int index) { + return toolIds_.getByteString(index); + } + + /** + * + * + *
+       * Optional. The tools IDs to filter the toolset.
+       * 
+ * + * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The toolIds to set. + * @return This builder for chaining. + */ + public Builder setToolIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolIdsIsMutable(); + toolIds_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The tools IDs to filter the toolset.
+       * 
+ * + * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The toolIds to add. + * @return This builder for chaining. + */ + public Builder addToolIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolIdsIsMutable(); + toolIds_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The tools IDs to filter the toolset.
+       * 
+ * + * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The toolIds to add. + * @return This builder for chaining. + */ + public Builder addAllToolIds(java.lang.Iterable values) { + ensureToolIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, toolIds_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The tools IDs to filter the toolset.
+       * 
+ * + * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearToolIds() { + toolIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The tools IDs to filter the toolset.
+       * 
+ * + * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the toolIds to add. + * @return This builder for chaining. + */ + public Builder addToolIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureToolIdsIsMutable(); + toolIds_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.Agent.AgentToolset) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.Agent.AgentToolset) + private static final com.google.cloud.ces.v1beta.Agent.AgentToolset DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.Agent.AgentToolset(); + } + + public static com.google.cloud.ces.v1beta.Agent.AgentToolset getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AgentToolset parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.Agent.AgentToolset getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } @@ -3914,6 +4667,7 @@ public enum AgentTypeCase com.google.protobuf.AbstractMessage.InternalOneOfEnum { LLM_AGENT(26), REMOTE_DIALOGFLOW_AGENT(27), + REMOTE_A2A_AGENT(41), AGENTTYPE_NOT_SET(0); private final int value; @@ -3937,6 +4691,8 @@ public static AgentTypeCase forNumber(int value) { return LLM_AGENT; case 27: return REMOTE_DIALOGFLOW_AGENT; + case 41: + return REMOTE_A2A_AGENT; case 0: return AGENTTYPE_NOT_SET; default: @@ -4095,6 +4851,69 @@ public com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent getRemoteDialogfl return com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent.getDefaultInstance(); } + public static final int REMOTE_A2A_AGENT_FIELD_NUMBER = 41; + + /** + * + * + *
+   * Optional. The remote [A2A](https://github.com/a2aproject/A2A) agent to be
+   * used for the agent execution.
+   * 
+ * + * + * .google.cloud.ces.v1beta.Agent.RemoteA2aAgent remote_a2a_agent = 41 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the remoteA2aAgent field is set. + */ + @java.lang.Override + public boolean hasRemoteA2AAgent() { + return agentTypeCase_ == 41; + } + + /** + * + * + *
+   * Optional. The remote [A2A](https://github.com/a2aproject/A2A) agent to be
+   * used for the agent execution.
+   * 
+ * + * + * .google.cloud.ces.v1beta.Agent.RemoteA2aAgent remote_a2a_agent = 41 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The remoteA2aAgent. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent getRemoteA2AAgent() { + if (agentTypeCase_ == 41) { + return (com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent) agentType_; + } + return com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent.getDefaultInstance(); + } + + /** + * + * + *
+   * Optional. The remote [A2A](https://github.com/a2aproject/A2A) agent to be
+   * used for the agent execution.
+   * 
+ * + * + * .google.cloud.ces.v1beta.Agent.RemoteA2aAgent remote_a2a_agent = 41 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.Agent.RemoteA2aAgentOrBuilder getRemoteA2AAgentOrBuilder() { + if (agentTypeCase_ == 41) { + return (com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent) agentType_; + } + return com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent.getDefaultInstance(); + } + public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -5790,6 +6609,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < validationErrors_.size(); i++) { com.google.protobuf.GeneratedMessage.writeString(output, 32, validationErrors_.getRaw(i)); } + if (agentTypeCase_ == 41) { + output.writeMessage(41, (com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent) agentType_); + } getUnknownFields().writeTo(output); } @@ -5900,6 +6722,11 @@ public int getSerializedSize() { size += dataSize; size += 2 * getValidationErrorsList().size(); } + if (agentTypeCase_ == 41) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 41, (com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent) agentType_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -5953,6 +6780,9 @@ public boolean equals(final java.lang.Object obj) { case 27: if (!getRemoteDialogflowAgent().equals(other.getRemoteDialogflowAgent())) return false; break; + case 41: + if (!getRemoteA2AAgent().equals(other.getRemoteA2AAgent())) return false; + break; case 0: default: } @@ -6048,6 +6878,10 @@ public int hashCode() { hash = (37 * hash) + REMOTE_DIALOGFLOW_AGENT_FIELD_NUMBER; hash = (53 * hash) + getRemoteDialogflowAgent().hashCode(); break; + case 41: + hash = (37 * hash) + REMOTE_A2A_AGENT_FIELD_NUMBER; + hash = (53 * hash) + getRemoteA2AAgent().hashCode(); + break; case 0: default: } @@ -6216,6 +7050,9 @@ public Builder clear() { if (remoteDialogflowAgentBuilder_ != null) { remoteDialogflowAgentBuilder_.clear(); } + if (remoteA2AAgentBuilder_ != null) { + remoteA2AAgentBuilder_.clear(); + } name_ = ""; displayName_ = ""; description_ = ""; @@ -6233,42 +7070,42 @@ public Builder clear() { beforeAgentCallbacks_ = null; beforeAgentCallbacksBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); if (afterAgentCallbacksBuilder_ == null) { afterAgentCallbacks_ = java.util.Collections.emptyList(); } else { afterAgentCallbacks_ = null; afterAgentCallbacksBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); if (beforeModelCallbacksBuilder_ == null) { beforeModelCallbacks_ = java.util.Collections.emptyList(); } else { beforeModelCallbacks_ = null; beforeModelCallbacksBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); if (afterModelCallbacksBuilder_ == null) { afterModelCallbacks_ = java.util.Collections.emptyList(); } else { afterModelCallbacks_ = null; afterModelCallbacksBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); if (beforeToolCallbacksBuilder_ == null) { beforeToolCallbacks_ = java.util.Collections.emptyList(); } else { beforeToolCallbacks_ = null; beforeToolCallbacksBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); if (afterToolCallbacksBuilder_ == null) { afterToolCallbacks_ = java.util.Collections.emptyList(); } else { afterToolCallbacks_ = null; afterToolCallbacksBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); @@ -6287,7 +7124,7 @@ public Builder clear() { toolsets_ = null; toolsetsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00080000); + bitField0_ = (bitField0_ & ~0x00100000); generatedSummary_ = ""; if (transferRulesBuilder_ == null) { transferRules_ = java.util.Collections.emptyList(); @@ -6295,7 +7132,7 @@ public Builder clear() { transferRules_ = null; transferRulesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00200000); + bitField0_ = (bitField0_ & ~0x00400000); validationErrors_ = com.google.protobuf.LazyStringArrayList.emptyList(); agentTypeCase_ = 0; agentType_ = null; @@ -6336,72 +7173,72 @@ public com.google.cloud.ces.v1beta.Agent buildPartial() { private void buildPartialRepeatedFields(com.google.cloud.ces.v1beta.Agent result) { if (beforeAgentCallbacksBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0)) { + if (((bitField0_ & 0x00000400) != 0)) { beforeAgentCallbacks_ = java.util.Collections.unmodifiableList(beforeAgentCallbacks_); - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); } result.beforeAgentCallbacks_ = beforeAgentCallbacks_; } else { result.beforeAgentCallbacks_ = beforeAgentCallbacksBuilder_.build(); } if (afterAgentCallbacksBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0)) { + if (((bitField0_ & 0x00000800) != 0)) { afterAgentCallbacks_ = java.util.Collections.unmodifiableList(afterAgentCallbacks_); - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); } result.afterAgentCallbacks_ = afterAgentCallbacks_; } else { result.afterAgentCallbacks_ = afterAgentCallbacksBuilder_.build(); } if (beforeModelCallbacksBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0)) { + if (((bitField0_ & 0x00001000) != 0)) { beforeModelCallbacks_ = java.util.Collections.unmodifiableList(beforeModelCallbacks_); - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); } result.beforeModelCallbacks_ = beforeModelCallbacks_; } else { result.beforeModelCallbacks_ = beforeModelCallbacksBuilder_.build(); } if (afterModelCallbacksBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0)) { + if (((bitField0_ & 0x00002000) != 0)) { afterModelCallbacks_ = java.util.Collections.unmodifiableList(afterModelCallbacks_); - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); } result.afterModelCallbacks_ = afterModelCallbacks_; } else { result.afterModelCallbacks_ = afterModelCallbacksBuilder_.build(); } if (beforeToolCallbacksBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0)) { + if (((bitField0_ & 0x00004000) != 0)) { beforeToolCallbacks_ = java.util.Collections.unmodifiableList(beforeToolCallbacks_); - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); } result.beforeToolCallbacks_ = beforeToolCallbacks_; } else { result.beforeToolCallbacks_ = beforeToolCallbacksBuilder_.build(); } if (afterToolCallbacksBuilder_ == null) { - if (((bitField0_ & 0x00004000) != 0)) { + if (((bitField0_ & 0x00008000) != 0)) { afterToolCallbacks_ = java.util.Collections.unmodifiableList(afterToolCallbacks_); - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); } result.afterToolCallbacks_ = afterToolCallbacks_; } else { result.afterToolCallbacks_ = afterToolCallbacksBuilder_.build(); } if (toolsetsBuilder_ == null) { - if (((bitField0_ & 0x00080000) != 0)) { + if (((bitField0_ & 0x00100000) != 0)) { toolsets_ = java.util.Collections.unmodifiableList(toolsets_); - bitField0_ = (bitField0_ & ~0x00080000); + bitField0_ = (bitField0_ & ~0x00100000); } result.toolsets_ = toolsets_; } else { result.toolsets_ = toolsetsBuilder_.build(); } if (transferRulesBuilder_ == null) { - if (((bitField0_ & 0x00200000) != 0)) { + if (((bitField0_ & 0x00400000) != 0)) { transferRules_ = java.util.Collections.unmodifiableList(transferRules_); - bitField0_ = (bitField0_ & ~0x00200000); + bitField0_ = (bitField0_ & ~0x00400000); } result.transferRules_ = transferRules_; } else { @@ -6411,51 +7248,51 @@ private void buildPartialRepeatedFields(com.google.cloud.ces.v1beta.Agent result private void buildPartial0(com.google.cloud.ces.v1beta.Agent result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000004) != 0)) { + if (((from_bitField0_ & 0x00000008) != 0)) { result.name_ = name_; } - if (((from_bitField0_ & 0x00000008) != 0)) { + if (((from_bitField0_ & 0x00000010) != 0)) { result.displayName_ = displayName_; } - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000020) != 0)) { result.description_ = description_; } int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.modelSettings_ = modelSettingsBuilder_ == null ? modelSettings_ : modelSettingsBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { result.instruction_ = instruction_; } - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { tools_.makeImmutable(); result.tools_ = tools_; } - if (((from_bitField0_ & 0x00000100) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { childAgents_.makeImmutable(); result.childAgents_ = childAgents_; } - if (((from_bitField0_ & 0x00008000) != 0)) { + 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_ & 0x00020000) != 0)) { + if (((from_bitField0_ & 0x00040000) != 0)) { guardrails_.makeImmutable(); result.guardrails_ = guardrails_; } - if (((from_bitField0_ & 0x00040000) != 0)) { + if (((from_bitField0_ & 0x00080000) != 0)) { result.etag_ = etag_; } - if (((from_bitField0_ & 0x00100000) != 0)) { + if (((from_bitField0_ & 0x00200000) != 0)) { result.generatedSummary_ = generatedSummary_; } - if (((from_bitField0_ & 0x00400000) != 0)) { + if (((from_bitField0_ & 0x00800000) != 0)) { validationErrors_.makeImmutable(); result.validationErrors_ = validationErrors_; } @@ -6471,6 +7308,9 @@ private void buildPartialOneofs(com.google.cloud.ces.v1beta.Agent result) { if (agentTypeCase_ == 27 && remoteDialogflowAgentBuilder_ != null) { result.agentType_ = remoteDialogflowAgentBuilder_.build(); } + if (agentTypeCase_ == 41 && remoteA2AAgentBuilder_ != null) { + result.agentType_ = remoteA2AAgentBuilder_.build(); + } } @java.lang.Override @@ -6487,17 +7327,17 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.Agent other) { if (other == com.google.cloud.ces.v1beta.Agent.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); } if (other.hasModelSettings()) { @@ -6505,13 +7345,13 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.Agent other) { } if (!other.getInstruction().isEmpty()) { instruction_ = other.instruction_; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); } if (!other.tools_.isEmpty()) { if (tools_.isEmpty()) { tools_ = other.tools_; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; } else { ensureToolsIsMutable(); tools_.addAll(other.tools_); @@ -6521,7 +7361,7 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.Agent other) { if (!other.childAgents_.isEmpty()) { if (childAgents_.isEmpty()) { childAgents_ = other.childAgents_; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; } else { ensureChildAgentsIsMutable(); childAgents_.addAll(other.childAgents_); @@ -6532,7 +7372,7 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.Agent other) { if (!other.beforeAgentCallbacks_.isEmpty()) { if (beforeAgentCallbacks_.isEmpty()) { beforeAgentCallbacks_ = other.beforeAgentCallbacks_; - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); } else { ensureBeforeAgentCallbacksIsMutable(); beforeAgentCallbacks_.addAll(other.beforeAgentCallbacks_); @@ -6545,7 +7385,7 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.Agent other) { beforeAgentCallbacksBuilder_.dispose(); beforeAgentCallbacksBuilder_ = null; beforeAgentCallbacks_ = other.beforeAgentCallbacks_; - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); beforeAgentCallbacksBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? internalGetBeforeAgentCallbacksFieldBuilder() @@ -6559,7 +7399,7 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.Agent other) { if (!other.afterAgentCallbacks_.isEmpty()) { if (afterAgentCallbacks_.isEmpty()) { afterAgentCallbacks_ = other.afterAgentCallbacks_; - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); } else { ensureAfterAgentCallbacksIsMutable(); afterAgentCallbacks_.addAll(other.afterAgentCallbacks_); @@ -6572,7 +7412,7 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.Agent other) { afterAgentCallbacksBuilder_.dispose(); afterAgentCallbacksBuilder_ = null; afterAgentCallbacks_ = other.afterAgentCallbacks_; - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); afterAgentCallbacksBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? internalGetAfterAgentCallbacksFieldBuilder() @@ -6586,7 +7426,7 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.Agent other) { if (!other.beforeModelCallbacks_.isEmpty()) { if (beforeModelCallbacks_.isEmpty()) { beforeModelCallbacks_ = other.beforeModelCallbacks_; - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); } else { ensureBeforeModelCallbacksIsMutable(); beforeModelCallbacks_.addAll(other.beforeModelCallbacks_); @@ -6599,7 +7439,7 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.Agent other) { beforeModelCallbacksBuilder_.dispose(); beforeModelCallbacksBuilder_ = null; beforeModelCallbacks_ = other.beforeModelCallbacks_; - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); beforeModelCallbacksBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? internalGetBeforeModelCallbacksFieldBuilder() @@ -6613,7 +7453,7 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.Agent other) { if (!other.afterModelCallbacks_.isEmpty()) { if (afterModelCallbacks_.isEmpty()) { afterModelCallbacks_ = other.afterModelCallbacks_; - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); } else { ensureAfterModelCallbacksIsMutable(); afterModelCallbacks_.addAll(other.afterModelCallbacks_); @@ -6626,7 +7466,7 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.Agent other) { afterModelCallbacksBuilder_.dispose(); afterModelCallbacksBuilder_ = null; afterModelCallbacks_ = other.afterModelCallbacks_; - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); afterModelCallbacksBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? internalGetAfterModelCallbacksFieldBuilder() @@ -6640,7 +7480,7 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.Agent other) { if (!other.beforeToolCallbacks_.isEmpty()) { if (beforeToolCallbacks_.isEmpty()) { beforeToolCallbacks_ = other.beforeToolCallbacks_; - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); } else { ensureBeforeToolCallbacksIsMutable(); beforeToolCallbacks_.addAll(other.beforeToolCallbacks_); @@ -6653,7 +7493,7 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.Agent other) { beforeToolCallbacksBuilder_.dispose(); beforeToolCallbacksBuilder_ = null; beforeToolCallbacks_ = other.beforeToolCallbacks_; - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); beforeToolCallbacksBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? internalGetBeforeToolCallbacksFieldBuilder() @@ -6667,7 +7507,7 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.Agent other) { if (!other.afterToolCallbacks_.isEmpty()) { if (afterToolCallbacks_.isEmpty()) { afterToolCallbacks_ = other.afterToolCallbacks_; - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); } else { ensureAfterToolCallbacksIsMutable(); afterToolCallbacks_.addAll(other.afterToolCallbacks_); @@ -6680,7 +7520,7 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.Agent other) { afterToolCallbacksBuilder_.dispose(); afterToolCallbacksBuilder_ = null; afterToolCallbacks_ = other.afterToolCallbacks_; - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); afterToolCallbacksBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? internalGetAfterToolCallbacksFieldBuilder() @@ -6699,7 +7539,7 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.Agent other) { if (!other.guardrails_.isEmpty()) { if (guardrails_.isEmpty()) { guardrails_ = other.guardrails_; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; } else { ensureGuardrailsIsMutable(); guardrails_.addAll(other.guardrails_); @@ -6708,14 +7548,14 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.Agent other) { } if (!other.getEtag().isEmpty()) { etag_ = other.etag_; - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); } if (toolsetsBuilder_ == null) { if (!other.toolsets_.isEmpty()) { if (toolsets_.isEmpty()) { toolsets_ = other.toolsets_; - bitField0_ = (bitField0_ & ~0x00080000); + bitField0_ = (bitField0_ & ~0x00100000); } else { ensureToolsetsIsMutable(); toolsets_.addAll(other.toolsets_); @@ -6728,7 +7568,7 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.Agent other) { toolsetsBuilder_.dispose(); toolsetsBuilder_ = null; toolsets_ = other.toolsets_; - bitField0_ = (bitField0_ & ~0x00080000); + bitField0_ = (bitField0_ & ~0x00100000); toolsetsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? internalGetToolsetsFieldBuilder() @@ -6740,14 +7580,14 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.Agent other) { } if (!other.getGeneratedSummary().isEmpty()) { generatedSummary_ = other.generatedSummary_; - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); } if (transferRulesBuilder_ == null) { if (!other.transferRules_.isEmpty()) { if (transferRules_.isEmpty()) { transferRules_ = other.transferRules_; - bitField0_ = (bitField0_ & ~0x00200000); + bitField0_ = (bitField0_ & ~0x00400000); } else { ensureTransferRulesIsMutable(); transferRules_.addAll(other.transferRules_); @@ -6760,7 +7600,7 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.Agent other) { transferRulesBuilder_.dispose(); transferRulesBuilder_ = null; transferRules_ = other.transferRules_; - bitField0_ = (bitField0_ & ~0x00200000); + bitField0_ = (bitField0_ & ~0x00400000); transferRulesBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? internalGetTransferRulesFieldBuilder() @@ -6773,7 +7613,7 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.Agent other) { if (!other.validationErrors_.isEmpty()) { if (validationErrors_.isEmpty()) { validationErrors_ = other.validationErrors_; - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; } else { ensureValidationErrorsIsMutable(); validationErrors_.addAll(other.validationErrors_); @@ -6791,6 +7631,11 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.Agent other) { mergeRemoteDialogflowAgent(other.getRemoteDialogflowAgent()); break; } + case REMOTE_A2A_AGENT: + { + mergeRemoteA2AAgent(other.getRemoteA2AAgent()); + break; + } case AGENTTYPE_NOT_SET: { break; @@ -6825,32 +7670,32 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; break; } // case 18 case 26: { description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; break; } // case 26 case 34: { input.readMessage( internalGetModelSettingsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 34 case 50: { instruction_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case 50 case 58: @@ -6871,14 +7716,14 @@ public Builder mergeFrom( { input.readMessage( internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; break; } // case 122 case 130: { input.readMessage( internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; break; } // case 130 case 138: @@ -6969,7 +7814,7 @@ public Builder mergeFrom( case 194: { etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; break; } // case 194 case 210: @@ -7002,7 +7847,7 @@ public Builder mergeFrom( case 234: { generatedSummary_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; break; } // case 234 case 242: @@ -7025,6 +7870,13 @@ public Builder mergeFrom( validationErrors_.add(s); break; } // case 258 + case 330: + { + input.readMessage( + internalGetRemoteA2AAgentFieldBuilder().getBuilder(), extensionRegistry); + agentTypeCase_ = 41; + break; + } // case 330 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -7053,60 +7905,309 @@ public Builder clearAgentType() { agentTypeCase_ = 0; agentType_ = null; onChanged(); - return this; + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.Agent.LlmAgent, + com.google.cloud.ces.v1beta.Agent.LlmAgent.Builder, + com.google.cloud.ces.v1beta.Agent.LlmAgentOrBuilder> + llmAgentBuilder_; + + /** + * + * + *
+     * Optional. The default agent type.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Agent.LlmAgent llm_agent = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the llmAgent field is set. + */ + @java.lang.Override + public boolean hasLlmAgent() { + return agentTypeCase_ == 26; + } + + /** + * + * + *
+     * Optional. The default agent type.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Agent.LlmAgent llm_agent = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The llmAgent. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.Agent.LlmAgent getLlmAgent() { + if (llmAgentBuilder_ == null) { + if (agentTypeCase_ == 26) { + return (com.google.cloud.ces.v1beta.Agent.LlmAgent) agentType_; + } + return com.google.cloud.ces.v1beta.Agent.LlmAgent.getDefaultInstance(); + } else { + if (agentTypeCase_ == 26) { + return llmAgentBuilder_.getMessage(); + } + return com.google.cloud.ces.v1beta.Agent.LlmAgent.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. The default agent type.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Agent.LlmAgent llm_agent = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setLlmAgent(com.google.cloud.ces.v1beta.Agent.LlmAgent value) { + if (llmAgentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + agentType_ = value; + onChanged(); + } else { + llmAgentBuilder_.setMessage(value); + } + agentTypeCase_ = 26; + return this; + } + + /** + * + * + *
+     * Optional. The default agent type.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Agent.LlmAgent llm_agent = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setLlmAgent(com.google.cloud.ces.v1beta.Agent.LlmAgent.Builder builderForValue) { + if (llmAgentBuilder_ == null) { + agentType_ = builderForValue.build(); + onChanged(); + } else { + llmAgentBuilder_.setMessage(builderForValue.build()); + } + agentTypeCase_ = 26; + return this; + } + + /** + * + * + *
+     * Optional. The default agent type.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Agent.LlmAgent llm_agent = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeLlmAgent(com.google.cloud.ces.v1beta.Agent.LlmAgent value) { + if (llmAgentBuilder_ == null) { + if (agentTypeCase_ == 26 + && agentType_ != com.google.cloud.ces.v1beta.Agent.LlmAgent.getDefaultInstance()) { + agentType_ = + com.google.cloud.ces.v1beta.Agent.LlmAgent.newBuilder( + (com.google.cloud.ces.v1beta.Agent.LlmAgent) agentType_) + .mergeFrom(value) + .buildPartial(); + } else { + agentType_ = value; + } + onChanged(); + } else { + if (agentTypeCase_ == 26) { + llmAgentBuilder_.mergeFrom(value); + } else { + llmAgentBuilder_.setMessage(value); + } + } + agentTypeCase_ = 26; + return this; + } + + /** + * + * + *
+     * Optional. The default agent type.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Agent.LlmAgent llm_agent = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearLlmAgent() { + if (llmAgentBuilder_ == null) { + if (agentTypeCase_ == 26) { + agentTypeCase_ = 0; + agentType_ = null; + onChanged(); + } + } else { + if (agentTypeCase_ == 26) { + agentTypeCase_ = 0; + agentType_ = null; + } + llmAgentBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. The default agent type.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Agent.LlmAgent llm_agent = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.Agent.LlmAgent.Builder getLlmAgentBuilder() { + return internalGetLlmAgentFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The default agent type.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Agent.LlmAgent llm_agent = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.Agent.LlmAgentOrBuilder getLlmAgentOrBuilder() { + if ((agentTypeCase_ == 26) && (llmAgentBuilder_ != null)) { + return llmAgentBuilder_.getMessageOrBuilder(); + } else { + if (agentTypeCase_ == 26) { + return (com.google.cloud.ces.v1beta.Agent.LlmAgent) agentType_; + } + return com.google.cloud.ces.v1beta.Agent.LlmAgent.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. The default agent type.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Agent.LlmAgent llm_agent = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.Agent.LlmAgent, + com.google.cloud.ces.v1beta.Agent.LlmAgent.Builder, + com.google.cloud.ces.v1beta.Agent.LlmAgentOrBuilder> + internalGetLlmAgentFieldBuilder() { + if (llmAgentBuilder_ == null) { + if (!(agentTypeCase_ == 26)) { + agentType_ = com.google.cloud.ces.v1beta.Agent.LlmAgent.getDefaultInstance(); + } + llmAgentBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.Agent.LlmAgent, + com.google.cloud.ces.v1beta.Agent.LlmAgent.Builder, + com.google.cloud.ces.v1beta.Agent.LlmAgentOrBuilder>( + (com.google.cloud.ces.v1beta.Agent.LlmAgent) agentType_, + getParentForChildren(), + isClean()); + agentType_ = null; + } + agentTypeCase_ = 26; + onChanged(); + return llmAgentBuilder_; } - private int bitField0_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.ces.v1beta.Agent.LlmAgent, - com.google.cloud.ces.v1beta.Agent.LlmAgent.Builder, - com.google.cloud.ces.v1beta.Agent.LlmAgentOrBuilder> - llmAgentBuilder_; + com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent, + com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent.Builder, + com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgentOrBuilder> + remoteDialogflowAgentBuilder_; /** * * *
-     * Optional. The default agent type.
+     * Optional. The remote
+     * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents)
+     * agent to be used for the agent execution. If this field is set, all other
+     * agent level properties will be ignored.
+     *
+     * Note: If the Dialogflow agent is in a different project from the app, you
+     * should grant `roles/dialogflow.client` to the CES service agent
+     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      * 
* * - * .google.cloud.ces.v1beta.Agent.LlmAgent llm_agent = 26 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent remote_dialogflow_agent = 27 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the llmAgent field is set. + * @return Whether the remoteDialogflowAgent field is set. */ @java.lang.Override - public boolean hasLlmAgent() { - return agentTypeCase_ == 26; + public boolean hasRemoteDialogflowAgent() { + return agentTypeCase_ == 27; } /** * * *
-     * Optional. The default agent type.
+     * Optional. The remote
+     * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents)
+     * agent to be used for the agent execution. If this field is set, all other
+     * agent level properties will be ignored.
+     *
+     * Note: If the Dialogflow agent is in a different project from the app, you
+     * should grant `roles/dialogflow.client` to the CES service agent
+     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      * 
* * - * .google.cloud.ces.v1beta.Agent.LlmAgent llm_agent = 26 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent remote_dialogflow_agent = 27 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The llmAgent. + * @return The remoteDialogflowAgent. */ @java.lang.Override - public com.google.cloud.ces.v1beta.Agent.LlmAgent getLlmAgent() { - if (llmAgentBuilder_ == null) { - if (agentTypeCase_ == 26) { - return (com.google.cloud.ces.v1beta.Agent.LlmAgent) agentType_; + public com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent getRemoteDialogflowAgent() { + if (remoteDialogflowAgentBuilder_ == null) { + if (agentTypeCase_ == 27) { + return (com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent) agentType_; } - return com.google.cloud.ces.v1beta.Agent.LlmAgent.getDefaultInstance(); + return com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent.getDefaultInstance(); } else { - if (agentTypeCase_ == 26) { - return llmAgentBuilder_.getMessage(); + if (agentTypeCase_ == 27) { + return remoteDialogflowAgentBuilder_.getMessage(); } - return com.google.cloud.ces.v1beta.Agent.LlmAgent.getDefaultInstance(); + return com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent.getDefaultInstance(); } } @@ -7114,24 +8215,32 @@ public com.google.cloud.ces.v1beta.Agent.LlmAgent getLlmAgent() { * * *
-     * Optional. The default agent type.
+     * Optional. The remote
+     * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents)
+     * agent to be used for the agent execution. If this field is set, all other
+     * agent level properties will be ignored.
+     *
+     * Note: If the Dialogflow agent is in a different project from the app, you
+     * should grant `roles/dialogflow.client` to the CES service agent
+     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      * 
* * - * .google.cloud.ces.v1beta.Agent.LlmAgent llm_agent = 26 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent remote_dialogflow_agent = 27 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setLlmAgent(com.google.cloud.ces.v1beta.Agent.LlmAgent value) { - if (llmAgentBuilder_ == null) { + public Builder setRemoteDialogflowAgent( + com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent value) { + if (remoteDialogflowAgentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } agentType_ = value; onChanged(); } else { - llmAgentBuilder_.setMessage(value); + remoteDialogflowAgentBuilder_.setMessage(value); } - agentTypeCase_ = 26; + agentTypeCase_ = 27; return this; } @@ -7139,21 +8248,29 @@ public Builder setLlmAgent(com.google.cloud.ces.v1beta.Agent.LlmAgent value) { * * *
-     * Optional. The default agent type.
+     * Optional. The remote
+     * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents)
+     * agent to be used for the agent execution. If this field is set, all other
+     * agent level properties will be ignored.
+     *
+     * Note: If the Dialogflow agent is in a different project from the app, you
+     * should grant `roles/dialogflow.client` to the CES service agent
+     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      * 
* * - * .google.cloud.ces.v1beta.Agent.LlmAgent llm_agent = 26 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent remote_dialogflow_agent = 27 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setLlmAgent(com.google.cloud.ces.v1beta.Agent.LlmAgent.Builder builderForValue) { - if (llmAgentBuilder_ == null) { + public Builder setRemoteDialogflowAgent( + com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent.Builder builderForValue) { + if (remoteDialogflowAgentBuilder_ == null) { agentType_ = builderForValue.build(); onChanged(); } else { - llmAgentBuilder_.setMessage(builderForValue.build()); + remoteDialogflowAgentBuilder_.setMessage(builderForValue.build()); } - agentTypeCase_ = 26; + agentTypeCase_ = 27; return this; } @@ -7161,20 +8278,29 @@ public Builder setLlmAgent(com.google.cloud.ces.v1beta.Agent.LlmAgent.Builder bu * * *
-     * Optional. The default agent type.
+     * Optional. The remote
+     * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents)
+     * agent to be used for the agent execution. If this field is set, all other
+     * agent level properties will be ignored.
+     *
+     * Note: If the Dialogflow agent is in a different project from the app, you
+     * should grant `roles/dialogflow.client` to the CES service agent
+     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      * 
* * - * .google.cloud.ces.v1beta.Agent.LlmAgent llm_agent = 26 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent remote_dialogflow_agent = 27 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeLlmAgent(com.google.cloud.ces.v1beta.Agent.LlmAgent value) { - if (llmAgentBuilder_ == null) { - if (agentTypeCase_ == 26 - && agentType_ != com.google.cloud.ces.v1beta.Agent.LlmAgent.getDefaultInstance()) { + public Builder mergeRemoteDialogflowAgent( + com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent value) { + if (remoteDialogflowAgentBuilder_ == null) { + if (agentTypeCase_ == 27 + && agentType_ + != com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent.getDefaultInstance()) { agentType_ = - com.google.cloud.ces.v1beta.Agent.LlmAgent.newBuilder( - (com.google.cloud.ces.v1beta.Agent.LlmAgent) agentType_) + com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent.newBuilder( + (com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent) agentType_) .mergeFrom(value) .buildPartial(); } else { @@ -7182,13 +8308,13 @@ public Builder mergeLlmAgent(com.google.cloud.ces.v1beta.Agent.LlmAgent value) { } onChanged(); } else { - if (agentTypeCase_ == 26) { - llmAgentBuilder_.mergeFrom(value); + if (agentTypeCase_ == 27) { + remoteDialogflowAgentBuilder_.mergeFrom(value); } else { - llmAgentBuilder_.setMessage(value); + remoteDialogflowAgentBuilder_.setMessage(value); } } - agentTypeCase_ = 26; + agentTypeCase_ = 27; return this; } @@ -7196,26 +8322,33 @@ public Builder mergeLlmAgent(com.google.cloud.ces.v1beta.Agent.LlmAgent value) { * * *
-     * Optional. The default agent type.
+     * Optional. The remote
+     * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents)
+     * agent to be used for the agent execution. If this field is set, all other
+     * agent level properties will be ignored.
+     *
+     * Note: If the Dialogflow agent is in a different project from the app, you
+     * should grant `roles/dialogflow.client` to the CES service agent
+     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      * 
* * - * .google.cloud.ces.v1beta.Agent.LlmAgent llm_agent = 26 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent remote_dialogflow_agent = 27 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearLlmAgent() { - if (llmAgentBuilder_ == null) { - if (agentTypeCase_ == 26) { + public Builder clearRemoteDialogflowAgent() { + if (remoteDialogflowAgentBuilder_ == null) { + if (agentTypeCase_ == 27) { agentTypeCase_ = 0; agentType_ = null; onChanged(); } } else { - if (agentTypeCase_ == 26) { + if (agentTypeCase_ == 27) { agentTypeCase_ = 0; agentType_ = null; } - llmAgentBuilder_.clear(); + remoteDialogflowAgentBuilder_.clear(); } return this; } @@ -7224,37 +8357,53 @@ public Builder clearLlmAgent() { * * *
-     * Optional. The default agent type.
+     * Optional. The remote
+     * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents)
+     * agent to be used for the agent execution. If this field is set, all other
+     * agent level properties will be ignored.
+     *
+     * Note: If the Dialogflow agent is in a different project from the app, you
+     * should grant `roles/dialogflow.client` to the CES service agent
+     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      * 
* * - * .google.cloud.ces.v1beta.Agent.LlmAgent llm_agent = 26 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent remote_dialogflow_agent = 27 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.ces.v1beta.Agent.LlmAgent.Builder getLlmAgentBuilder() { - return internalGetLlmAgentFieldBuilder().getBuilder(); + public com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent.Builder + getRemoteDialogflowAgentBuilder() { + return internalGetRemoteDialogflowAgentFieldBuilder().getBuilder(); } /** * * *
-     * Optional. The default agent type.
+     * Optional. The remote
+     * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents)
+     * agent to be used for the agent execution. If this field is set, all other
+     * agent level properties will be ignored.
+     *
+     * Note: If the Dialogflow agent is in a different project from the app, you
+     * should grant `roles/dialogflow.client` to the CES service agent
+     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      * 
* * - * .google.cloud.ces.v1beta.Agent.LlmAgent llm_agent = 26 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent remote_dialogflow_agent = 27 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public com.google.cloud.ces.v1beta.Agent.LlmAgentOrBuilder getLlmAgentOrBuilder() { - if ((agentTypeCase_ == 26) && (llmAgentBuilder_ != null)) { - return llmAgentBuilder_.getMessageOrBuilder(); + public com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgentOrBuilder + getRemoteDialogflowAgentOrBuilder() { + if ((agentTypeCase_ == 27) && (remoteDialogflowAgentBuilder_ != null)) { + return remoteDialogflowAgentBuilder_.getMessageOrBuilder(); } else { - if (agentTypeCase_ == 26) { - return (com.google.cloud.ces.v1beta.Agent.LlmAgent) agentType_; + if (agentTypeCase_ == 27) { + return (com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent) agentType_; } - return com.google.cloud.ces.v1beta.Agent.LlmAgent.getDefaultInstance(); + return com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent.getDefaultInstance(); } } @@ -7262,100 +8411,95 @@ public com.google.cloud.ces.v1beta.Agent.LlmAgentOrBuilder getLlmAgentOrBuilder( * * *
-     * Optional. The default agent type.
+     * Optional. The remote
+     * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents)
+     * agent to be used for the agent execution. If this field is set, all other
+     * agent level properties will be ignored.
+     *
+     * Note: If the Dialogflow agent is in a different project from the app, you
+     * should grant `roles/dialogflow.client` to the CES service agent
+     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      * 
* * - * .google.cloud.ces.v1beta.Agent.LlmAgent llm_agent = 26 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent remote_dialogflow_agent = 27 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.ces.v1beta.Agent.LlmAgent, - com.google.cloud.ces.v1beta.Agent.LlmAgent.Builder, - com.google.cloud.ces.v1beta.Agent.LlmAgentOrBuilder> - internalGetLlmAgentFieldBuilder() { - if (llmAgentBuilder_ == null) { - if (!(agentTypeCase_ == 26)) { - agentType_ = com.google.cloud.ces.v1beta.Agent.LlmAgent.getDefaultInstance(); + com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent, + com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent.Builder, + com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgentOrBuilder> + internalGetRemoteDialogflowAgentFieldBuilder() { + if (remoteDialogflowAgentBuilder_ == null) { + if (!(agentTypeCase_ == 27)) { + agentType_ = com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent.getDefaultInstance(); } - llmAgentBuilder_ = + remoteDialogflowAgentBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.ces.v1beta.Agent.LlmAgent, - com.google.cloud.ces.v1beta.Agent.LlmAgent.Builder, - com.google.cloud.ces.v1beta.Agent.LlmAgentOrBuilder>( - (com.google.cloud.ces.v1beta.Agent.LlmAgent) agentType_, + com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent, + com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent.Builder, + com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgentOrBuilder>( + (com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent) agentType_, getParentForChildren(), isClean()); agentType_ = null; } - agentTypeCase_ = 26; + agentTypeCase_ = 27; onChanged(); - return llmAgentBuilder_; + return remoteDialogflowAgentBuilder_; } private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent, - com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent.Builder, - com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgentOrBuilder> - remoteDialogflowAgentBuilder_; + com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent, + com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent.Builder, + com.google.cloud.ces.v1beta.Agent.RemoteA2aAgentOrBuilder> + remoteA2AAgentBuilder_; /** * * *
-     * Optional. The remote
-     * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents)
-     * agent to be used for the agent execution. If this field is set, all other
-     * agent level properties will be ignored.
-     *
-     * Note: If the Dialogflow agent is in a different project from the app, you
-     * should grant `roles/dialogflow.client` to the CES service agent
-     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
+     * Optional. The remote [A2A](https://github.com/a2aproject/A2A) agent to be
+     * used for the agent execution.
      * 
* * - * .google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent remote_dialogflow_agent = 27 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.Agent.RemoteA2aAgent remote_a2a_agent = 41 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the remoteDialogflowAgent field is set. + * @return Whether the remoteA2aAgent field is set. */ @java.lang.Override - public boolean hasRemoteDialogflowAgent() { - return agentTypeCase_ == 27; + public boolean hasRemoteA2AAgent() { + return agentTypeCase_ == 41; } /** * * *
-     * Optional. The remote
-     * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents)
-     * agent to be used for the agent execution. If this field is set, all other
-     * agent level properties will be ignored.
-     *
-     * Note: If the Dialogflow agent is in a different project from the app, you
-     * should grant `roles/dialogflow.client` to the CES service agent
-     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
+     * Optional. The remote [A2A](https://github.com/a2aproject/A2A) agent to be
+     * used for the agent execution.
      * 
* * - * .google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent remote_dialogflow_agent = 27 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.Agent.RemoteA2aAgent remote_a2a_agent = 41 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The remoteDialogflowAgent. + * @return The remoteA2aAgent. */ @java.lang.Override - public com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent getRemoteDialogflowAgent() { - if (remoteDialogflowAgentBuilder_ == null) { - if (agentTypeCase_ == 27) { - return (com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent) agentType_; + public com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent getRemoteA2AAgent() { + if (remoteA2AAgentBuilder_ == null) { + if (agentTypeCase_ == 41) { + return (com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent) agentType_; } - return com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent.getDefaultInstance(); + return com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent.getDefaultInstance(); } else { - if (agentTypeCase_ == 27) { - return remoteDialogflowAgentBuilder_.getMessage(); + if (agentTypeCase_ == 41) { + return remoteA2AAgentBuilder_.getMessage(); } - return com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent.getDefaultInstance(); + return com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent.getDefaultInstance(); } } @@ -7363,32 +8507,25 @@ public com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent getRemoteDialogfl * * *
-     * Optional. The remote
-     * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents)
-     * agent to be used for the agent execution. If this field is set, all other
-     * agent level properties will be ignored.
-     *
-     * Note: If the Dialogflow agent is in a different project from the app, you
-     * should grant `roles/dialogflow.client` to the CES service agent
-     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
+     * Optional. The remote [A2A](https://github.com/a2aproject/A2A) agent to be
+     * used for the agent execution.
      * 
* * - * .google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent remote_dialogflow_agent = 27 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.Agent.RemoteA2aAgent remote_a2a_agent = 41 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setRemoteDialogflowAgent( - com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent value) { - if (remoteDialogflowAgentBuilder_ == null) { + public Builder setRemoteA2AAgent(com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent value) { + if (remoteA2AAgentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } agentType_ = value; onChanged(); } else { - remoteDialogflowAgentBuilder_.setMessage(value); + remoteA2AAgentBuilder_.setMessage(value); } - agentTypeCase_ = 27; + agentTypeCase_ = 41; return this; } @@ -7396,29 +8533,23 @@ public Builder setRemoteDialogflowAgent( * * *
-     * Optional. The remote
-     * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents)
-     * agent to be used for the agent execution. If this field is set, all other
-     * agent level properties will be ignored.
-     *
-     * Note: If the Dialogflow agent is in a different project from the app, you
-     * should grant `roles/dialogflow.client` to the CES service agent
-     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
+     * Optional. The remote [A2A](https://github.com/a2aproject/A2A) agent to be
+     * used for the agent execution.
      * 
* * - * .google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent remote_dialogflow_agent = 27 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.Agent.RemoteA2aAgent remote_a2a_agent = 41 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setRemoteDialogflowAgent( - com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent.Builder builderForValue) { - if (remoteDialogflowAgentBuilder_ == null) { + public Builder setRemoteA2AAgent( + com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent.Builder builderForValue) { + if (remoteA2AAgentBuilder_ == null) { agentType_ = builderForValue.build(); onChanged(); } else { - remoteDialogflowAgentBuilder_.setMessage(builderForValue.build()); + remoteA2AAgentBuilder_.setMessage(builderForValue.build()); } - agentTypeCase_ = 27; + agentTypeCase_ = 41; return this; } @@ -7426,29 +8557,22 @@ public Builder setRemoteDialogflowAgent( * * *
-     * Optional. The remote
-     * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents)
-     * agent to be used for the agent execution. If this field is set, all other
-     * agent level properties will be ignored.
-     *
-     * Note: If the Dialogflow agent is in a different project from the app, you
-     * should grant `roles/dialogflow.client` to the CES service agent
-     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
+     * Optional. The remote [A2A](https://github.com/a2aproject/A2A) agent to be
+     * used for the agent execution.
      * 
* * - * .google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent remote_dialogflow_agent = 27 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.Agent.RemoteA2aAgent remote_a2a_agent = 41 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeRemoteDialogflowAgent( - com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent value) { - if (remoteDialogflowAgentBuilder_ == null) { - if (agentTypeCase_ == 27 + public Builder mergeRemoteA2AAgent(com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent value) { + if (remoteA2AAgentBuilder_ == null) { + if (agentTypeCase_ == 41 && agentType_ - != com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent.getDefaultInstance()) { + != com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent.getDefaultInstance()) { agentType_ = - com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent.newBuilder( - (com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent) agentType_) + com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent.newBuilder( + (com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent) agentType_) .mergeFrom(value) .buildPartial(); } else { @@ -7456,13 +8580,13 @@ public Builder mergeRemoteDialogflowAgent( } onChanged(); } else { - if (agentTypeCase_ == 27) { - remoteDialogflowAgentBuilder_.mergeFrom(value); + if (agentTypeCase_ == 41) { + remoteA2AAgentBuilder_.mergeFrom(value); } else { - remoteDialogflowAgentBuilder_.setMessage(value); + remoteA2AAgentBuilder_.setMessage(value); } } - agentTypeCase_ = 27; + agentTypeCase_ = 41; return this; } @@ -7470,33 +8594,27 @@ public Builder mergeRemoteDialogflowAgent( * * *
-     * Optional. The remote
-     * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents)
-     * agent to be used for the agent execution. If this field is set, all other
-     * agent level properties will be ignored.
-     *
-     * Note: If the Dialogflow agent is in a different project from the app, you
-     * should grant `roles/dialogflow.client` to the CES service agent
-     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
+     * Optional. The remote [A2A](https://github.com/a2aproject/A2A) agent to be
+     * used for the agent execution.
      * 
* * - * .google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent remote_dialogflow_agent = 27 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.Agent.RemoteA2aAgent remote_a2a_agent = 41 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearRemoteDialogflowAgent() { - if (remoteDialogflowAgentBuilder_ == null) { - if (agentTypeCase_ == 27) { + public Builder clearRemoteA2AAgent() { + if (remoteA2AAgentBuilder_ == null) { + if (agentTypeCase_ == 41) { agentTypeCase_ = 0; agentType_ = null; onChanged(); } } else { - if (agentTypeCase_ == 27) { + if (agentTypeCase_ == 41) { agentTypeCase_ = 0; agentType_ = null; } - remoteDialogflowAgentBuilder_.clear(); + remoteA2AAgentBuilder_.clear(); } return this; } @@ -7505,53 +8623,39 @@ public Builder clearRemoteDialogflowAgent() { * * *
-     * Optional. The remote
-     * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents)
-     * agent to be used for the agent execution. If this field is set, all other
-     * agent level properties will be ignored.
-     *
-     * Note: If the Dialogflow agent is in a different project from the app, you
-     * should grant `roles/dialogflow.client` to the CES service agent
-     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
+     * Optional. The remote [A2A](https://github.com/a2aproject/A2A) agent to be
+     * used for the agent execution.
      * 
* * - * .google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent remote_dialogflow_agent = 27 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.Agent.RemoteA2aAgent remote_a2a_agent = 41 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent.Builder - getRemoteDialogflowAgentBuilder() { - return internalGetRemoteDialogflowAgentFieldBuilder().getBuilder(); + public com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent.Builder getRemoteA2AAgentBuilder() { + return internalGetRemoteA2AAgentFieldBuilder().getBuilder(); } /** * * *
-     * Optional. The remote
-     * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents)
-     * agent to be used for the agent execution. If this field is set, all other
-     * agent level properties will be ignored.
-     *
-     * Note: If the Dialogflow agent is in a different project from the app, you
-     * should grant `roles/dialogflow.client` to the CES service agent
-     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
+     * Optional. The remote [A2A](https://github.com/a2aproject/A2A) agent to be
+     * used for the agent execution.
      * 
* * - * .google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent remote_dialogflow_agent = 27 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.Agent.RemoteA2aAgent remote_a2a_agent = 41 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgentOrBuilder - getRemoteDialogflowAgentOrBuilder() { - if ((agentTypeCase_ == 27) && (remoteDialogflowAgentBuilder_ != null)) { - return remoteDialogflowAgentBuilder_.getMessageOrBuilder(); + public com.google.cloud.ces.v1beta.Agent.RemoteA2aAgentOrBuilder getRemoteA2AAgentOrBuilder() { + if ((agentTypeCase_ == 41) && (remoteA2AAgentBuilder_ != null)) { + return remoteA2AAgentBuilder_.getMessageOrBuilder(); } else { - if (agentTypeCase_ == 27) { - return (com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent) agentType_; + if (agentTypeCase_ == 41) { + return (com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent) agentType_; } - return com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent.getDefaultInstance(); + return com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent.getDefaultInstance(); } } @@ -7559,42 +8663,36 @@ public Builder clearRemoteDialogflowAgent() { * * *
-     * Optional. The remote
-     * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents)
-     * agent to be used for the agent execution. If this field is set, all other
-     * agent level properties will be ignored.
-     *
-     * Note: If the Dialogflow agent is in a different project from the app, you
-     * should grant `roles/dialogflow.client` to the CES service agent
-     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
+     * Optional. The remote [A2A](https://github.com/a2aproject/A2A) agent to be
+     * used for the agent execution.
      * 
* * - * .google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent remote_dialogflow_agent = 27 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.Agent.RemoteA2aAgent remote_a2a_agent = 41 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent, - com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent.Builder, - com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgentOrBuilder> - internalGetRemoteDialogflowAgentFieldBuilder() { - if (remoteDialogflowAgentBuilder_ == null) { - if (!(agentTypeCase_ == 27)) { - agentType_ = com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent.getDefaultInstance(); - } - remoteDialogflowAgentBuilder_ = + com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent, + com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent.Builder, + com.google.cloud.ces.v1beta.Agent.RemoteA2aAgentOrBuilder> + internalGetRemoteA2AAgentFieldBuilder() { + if (remoteA2AAgentBuilder_ == null) { + if (!(agentTypeCase_ == 41)) { + agentType_ = com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent.getDefaultInstance(); + } + remoteA2AAgentBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent, - com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent.Builder, - com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgentOrBuilder>( - (com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent) agentType_, + com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent, + com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent.Builder, + com.google.cloud.ces.v1beta.Agent.RemoteA2aAgentOrBuilder>( + (com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent) agentType_, getParentForChildren(), isClean()); agentType_ = null; } - agentTypeCase_ = 27; + agentTypeCase_ = 41; onChanged(); - return remoteDialogflowAgentBuilder_; + return remoteA2AAgentBuilder_; } private java.lang.Object name_ = ""; @@ -7665,7 +8763,7 @@ public Builder setName(java.lang.String value) { throw new NullPointerException(); } name_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -7684,7 +8782,7 @@ public Builder setName(java.lang.String value) { */ public Builder clearName() { name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -7708,7 +8806,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); name_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -7778,7 +8876,7 @@ public Builder setDisplayName(java.lang.String value) { throw new NullPointerException(); } displayName_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -7796,7 +8894,7 @@ public Builder setDisplayName(java.lang.String value) { */ public Builder clearDisplayName() { displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -7819,7 +8917,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); displayName_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -7889,7 +8987,7 @@ public Builder setDescription(java.lang.String value) { throw new NullPointerException(); } description_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -7907,7 +9005,7 @@ public Builder setDescription(java.lang.String value) { */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -7930,7 +9028,7 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); description_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -7956,7 +9054,7 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * @return Whether the modelSettings field is set. */ public boolean hasModelSettings() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** @@ -8002,7 +9100,7 @@ public Builder setModelSettings(com.google.cloud.ces.v1beta.ModelSettings value) } else { modelSettingsBuilder_.setMessage(value); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -8025,7 +9123,7 @@ public Builder setModelSettings( } else { modelSettingsBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -8043,7 +9141,7 @@ public Builder setModelSettings( */ public Builder mergeModelSettings(com.google.cloud.ces.v1beta.ModelSettings value) { if (modelSettingsBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) + if (((bitField0_ & 0x00000040) != 0) && modelSettings_ != null && modelSettings_ != com.google.cloud.ces.v1beta.ModelSettings.getDefaultInstance()) { getModelSettingsBuilder().mergeFrom(value); @@ -8054,7 +9152,7 @@ public Builder mergeModelSettings(com.google.cloud.ces.v1beta.ModelSettings valu modelSettingsBuilder_.mergeFrom(value); } if (modelSettings_ != null) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); } return this; @@ -8072,7 +9170,7 @@ public Builder mergeModelSettings(com.google.cloud.ces.v1beta.ModelSettings valu * */ public Builder clearModelSettings() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); modelSettings_ = null; if (modelSettingsBuilder_ != null) { modelSettingsBuilder_.dispose(); @@ -8094,7 +9192,7 @@ public Builder clearModelSettings() { * */ public com.google.cloud.ces.v1beta.ModelSettings.Builder getModelSettingsBuilder() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return internalGetModelSettingsFieldBuilder().getBuilder(); } @@ -8213,7 +9311,7 @@ public Builder setInstruction(java.lang.String value) { throw new NullPointerException(); } instruction_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -8231,7 +9329,7 @@ public Builder setInstruction(java.lang.String value) { */ public Builder clearInstruction() { instruction_ = getDefaultInstance().getInstruction(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } @@ -8254,7 +9352,7 @@ public Builder setInstructionBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); instruction_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -8266,7 +9364,7 @@ private void ensureToolsIsMutable() { if (!tools_.isModifiable()) { tools_ = new com.google.protobuf.LazyStringArrayList(tools_); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; } /** @@ -8366,7 +9464,7 @@ public Builder setTools(int index, java.lang.String value) { } ensureToolsIsMutable(); tools_.set(index, value); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -8392,7 +9490,7 @@ public Builder addTools(java.lang.String value) { } ensureToolsIsMutable(); tools_.add(value); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -8415,7 +9513,7 @@ public Builder addTools(java.lang.String value) { public Builder addAllTools(java.lang.Iterable values) { ensureToolsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tools_); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -8436,7 +9534,7 @@ public Builder addAllTools(java.lang.Iterable values) { */ public Builder clearTools() { tools_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); ; onChanged(); return this; @@ -8464,7 +9562,7 @@ public Builder addToolsBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureToolsIsMutable(); tools_.add(value); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -8476,7 +9574,7 @@ private void ensureChildAgentsIsMutable() { if (!childAgents_.isModifiable()) { childAgents_ = new com.google.protobuf.LazyStringArrayList(childAgents_); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; } /** @@ -8576,7 +9674,7 @@ public Builder setChildAgents(int index, java.lang.String value) { } ensureChildAgentsIsMutable(); childAgents_.set(index, value); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -8602,7 +9700,7 @@ public Builder addChildAgents(java.lang.String value) { } ensureChildAgentsIsMutable(); childAgents_.add(value); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -8625,7 +9723,7 @@ public Builder addChildAgents(java.lang.String value) { public Builder addAllChildAgents(java.lang.Iterable values) { ensureChildAgentsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, childAgents_); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -8646,7 +9744,7 @@ public Builder addAllChildAgents(java.lang.Iterable values) { */ public Builder clearChildAgents() { childAgents_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); ; onChanged(); return this; @@ -8674,7 +9772,7 @@ public Builder addChildAgentsBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureChildAgentsIsMutable(); childAgents_.add(value); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -8683,10 +9781,10 @@ public Builder addChildAgentsBytes(com.google.protobuf.ByteString value) { java.util.Collections.emptyList(); private void ensureBeforeAgentCallbacksIsMutable() { - if (!((bitField0_ & 0x00000200) != 0)) { + if (!((bitField0_ & 0x00000400) != 0)) { beforeAgentCallbacks_ = new java.util.ArrayList(beforeAgentCallbacks_); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; } } @@ -8967,7 +10065,7 @@ public Builder addAllBeforeAgentCallbacks( public Builder clearBeforeAgentCallbacks() { if (beforeAgentCallbacksBuilder_ == null) { beforeAgentCallbacks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); } else { beforeAgentCallbacksBuilder_.clear(); @@ -9133,7 +10231,7 @@ public com.google.cloud.ces.v1beta.Callback.Builder addBeforeAgentCallbacksBuild com.google.cloud.ces.v1beta.Callback.Builder, com.google.cloud.ces.v1beta.CallbackOrBuilder>( beforeAgentCallbacks_, - ((bitField0_ & 0x00000200) != 0), + ((bitField0_ & 0x00000400) != 0), getParentForChildren(), isClean()); beforeAgentCallbacks_ = null; @@ -9145,10 +10243,10 @@ public com.google.cloud.ces.v1beta.Callback.Builder addBeforeAgentCallbacksBuild java.util.Collections.emptyList(); private void ensureAfterAgentCallbacksIsMutable() { - if (!((bitField0_ & 0x00000400) != 0)) { + if (!((bitField0_ & 0x00000800) != 0)) { afterAgentCallbacks_ = new java.util.ArrayList(afterAgentCallbacks_); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; } } @@ -9429,7 +10527,7 @@ public Builder addAllAfterAgentCallbacks( public Builder clearAfterAgentCallbacks() { if (afterAgentCallbacksBuilder_ == null) { afterAgentCallbacks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); onChanged(); } else { afterAgentCallbacksBuilder_.clear(); @@ -9595,7 +10693,7 @@ public com.google.cloud.ces.v1beta.Callback.Builder addAfterAgentCallbacksBuilde com.google.cloud.ces.v1beta.Callback.Builder, com.google.cloud.ces.v1beta.CallbackOrBuilder>( afterAgentCallbacks_, - ((bitField0_ & 0x00000400) != 0), + ((bitField0_ & 0x00000800) != 0), getParentForChildren(), isClean()); afterAgentCallbacks_ = null; @@ -9607,10 +10705,10 @@ public com.google.cloud.ces.v1beta.Callback.Builder addAfterAgentCallbacksBuilde java.util.Collections.emptyList(); private void ensureBeforeModelCallbacksIsMutable() { - if (!((bitField0_ & 0x00000800) != 0)) { + if (!((bitField0_ & 0x00001000) != 0)) { beforeModelCallbacks_ = new java.util.ArrayList(beforeModelCallbacks_); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; } } @@ -9902,7 +11000,7 @@ public Builder addAllBeforeModelCallbacks( public Builder clearBeforeModelCallbacks() { if (beforeModelCallbacksBuilder_ == null) { beforeModelCallbacks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); onChanged(); } else { beforeModelCallbacksBuilder_.clear(); @@ -10075,7 +11173,7 @@ public com.google.cloud.ces.v1beta.Callback.Builder addBeforeModelCallbacksBuild com.google.cloud.ces.v1beta.Callback.Builder, com.google.cloud.ces.v1beta.CallbackOrBuilder>( beforeModelCallbacks_, - ((bitField0_ & 0x00000800) != 0), + ((bitField0_ & 0x00001000) != 0), getParentForChildren(), isClean()); beforeModelCallbacks_ = null; @@ -10087,10 +11185,10 @@ public com.google.cloud.ces.v1beta.Callback.Builder addBeforeModelCallbacksBuild java.util.Collections.emptyList(); private void ensureAfterModelCallbacksIsMutable() { - if (!((bitField0_ & 0x00001000) != 0)) { + if (!((bitField0_ & 0x00002000) != 0)) { afterModelCallbacks_ = new java.util.ArrayList(afterModelCallbacks_); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; } } @@ -10382,7 +11480,7 @@ public Builder addAllAfterModelCallbacks( public Builder clearAfterModelCallbacks() { if (afterModelCallbacksBuilder_ == null) { afterModelCallbacks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); onChanged(); } else { afterModelCallbacksBuilder_.clear(); @@ -10555,7 +11653,7 @@ public com.google.cloud.ces.v1beta.Callback.Builder addAfterModelCallbacksBuilde com.google.cloud.ces.v1beta.Callback.Builder, com.google.cloud.ces.v1beta.CallbackOrBuilder>( afterModelCallbacks_, - ((bitField0_ & 0x00001000) != 0), + ((bitField0_ & 0x00002000) != 0), getParentForChildren(), isClean()); afterModelCallbacks_ = null; @@ -10567,10 +11665,10 @@ public com.google.cloud.ces.v1beta.Callback.Builder addAfterModelCallbacksBuilde java.util.Collections.emptyList(); private void ensureBeforeToolCallbacksIsMutable() { - if (!((bitField0_ & 0x00002000) != 0)) { + if (!((bitField0_ & 0x00004000) != 0)) { beforeToolCallbacks_ = new java.util.ArrayList(beforeToolCallbacks_); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; } } @@ -10862,7 +11960,7 @@ public Builder addAllBeforeToolCallbacks( public Builder clearBeforeToolCallbacks() { if (beforeToolCallbacksBuilder_ == null) { beforeToolCallbacks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); onChanged(); } else { beforeToolCallbacksBuilder_.clear(); @@ -11035,7 +12133,7 @@ public com.google.cloud.ces.v1beta.Callback.Builder addBeforeToolCallbacksBuilde com.google.cloud.ces.v1beta.Callback.Builder, com.google.cloud.ces.v1beta.CallbackOrBuilder>( beforeToolCallbacks_, - ((bitField0_ & 0x00002000) != 0), + ((bitField0_ & 0x00004000) != 0), getParentForChildren(), isClean()); beforeToolCallbacks_ = null; @@ -11047,10 +12145,10 @@ public com.google.cloud.ces.v1beta.Callback.Builder addBeforeToolCallbacksBuilde java.util.Collections.emptyList(); private void ensureAfterToolCallbacksIsMutable() { - if (!((bitField0_ & 0x00004000) != 0)) { + if (!((bitField0_ & 0x00008000) != 0)) { afterToolCallbacks_ = new java.util.ArrayList(afterToolCallbacks_); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; } } @@ -11342,7 +12440,7 @@ public Builder addAllAfterToolCallbacks( public Builder clearAfterToolCallbacks() { if (afterToolCallbacksBuilder_ == null) { afterToolCallbacks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); onChanged(); } else { afterToolCallbacksBuilder_.clear(); @@ -11514,7 +12612,7 @@ public com.google.cloud.ces.v1beta.Callback.Builder addAfterToolCallbacksBuilder com.google.cloud.ces.v1beta.Callback.Builder, com.google.cloud.ces.v1beta.CallbackOrBuilder>( afterToolCallbacks_, - ((bitField0_ & 0x00004000) != 0), + ((bitField0_ & 0x00008000) != 0), getParentForChildren(), isClean()); afterToolCallbacks_ = null; @@ -11543,7 +12641,7 @@ public com.google.cloud.ces.v1beta.Callback.Builder addAfterToolCallbacksBuilder * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return ((bitField0_ & 0x00008000) != 0); + return ((bitField0_ & 0x00010000) != 0); } /** @@ -11589,7 +12687,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -11611,7 +12709,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { createTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -11629,7 +12727,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00008000) != 0) + if (((bitField0_ & 0x00010000) != 0) && createTime_ != null && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); @@ -11640,7 +12738,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { createTimeBuilder_.mergeFrom(value); } if (createTime_ != null) { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); } return this; @@ -11658,7 +12756,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00010000); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); @@ -11680,7 +12778,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return internalGetCreateTimeFieldBuilder().getBuilder(); } @@ -11755,7 +12853,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return ((bitField0_ & 0x00010000) != 0); + return ((bitField0_ & 0x00020000) != 0); } /** @@ -11801,7 +12899,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { } else { updateTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -11823,7 +12921,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -11841,7 +12939,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00010000) != 0) + if (((bitField0_ & 0x00020000) != 0) && updateTime_ != null && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); @@ -11852,7 +12950,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { updateTimeBuilder_.mergeFrom(value); } if (updateTime_ != null) { - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); } return this; @@ -11870,7 +12968,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00020000); updateTime_ = null; if (updateTimeBuilder_ != null) { updateTimeBuilder_.dispose(); @@ -11892,7 +12990,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return internalGetUpdateTimeFieldBuilder().getBuilder(); } @@ -11953,7 +13051,7 @@ private void ensureGuardrailsIsMutable() { if (!guardrails_.isModifiable()) { guardrails_ = new com.google.protobuf.LazyStringArrayList(guardrails_); } - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; } /** @@ -12058,7 +13156,7 @@ public Builder setGuardrails(int index, java.lang.String value) { } ensureGuardrailsIsMutable(); guardrails_.set(index, value); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -12085,7 +13183,7 @@ public Builder addGuardrails(java.lang.String value) { } ensureGuardrailsIsMutable(); guardrails_.add(value); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -12109,7 +13207,7 @@ public Builder addGuardrails(java.lang.String value) { public Builder addAllGuardrails(java.lang.Iterable values) { ensureGuardrailsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, guardrails_); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -12131,7 +13229,7 @@ public Builder addAllGuardrails(java.lang.Iterable values) { */ public Builder clearGuardrails() { guardrails_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00040000); ; onChanged(); return this; @@ -12160,7 +13258,7 @@ public Builder addGuardrailsBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureGuardrailsIsMutable(); guardrails_.add(value); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -12236,7 +13334,7 @@ public Builder setEtag(java.lang.String value) { throw new NullPointerException(); } etag_ = value; - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -12256,7 +13354,7 @@ public Builder setEtag(java.lang.String value) { */ public Builder clearEtag() { etag_ = getDefaultInstance().getEtag(); - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00080000); onChanged(); return this; } @@ -12281,7 +13379,7 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); etag_ = value; - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -12290,10 +13388,10 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { java.util.Collections.emptyList(); private void ensureToolsetsIsMutable() { - if (!((bitField0_ & 0x00080000) != 0)) { + if (!((bitField0_ & 0x00100000) != 0)) { toolsets_ = new java.util.ArrayList(toolsets_); - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; } } @@ -12541,7 +13639,7 @@ public Builder addAllToolsets( public Builder clearToolsets() { if (toolsetsBuilder_ == null) { toolsets_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00080000); + bitField0_ = (bitField0_ & ~0x00100000); onChanged(); } else { toolsetsBuilder_.clear(); @@ -12684,7 +13782,7 @@ public com.google.cloud.ces.v1beta.Agent.AgentToolset.Builder addToolsetsBuilder com.google.cloud.ces.v1beta.Agent.AgentToolset, com.google.cloud.ces.v1beta.Agent.AgentToolset.Builder, com.google.cloud.ces.v1beta.Agent.AgentToolsetOrBuilder>( - toolsets_, ((bitField0_ & 0x00080000) != 0), getParentForChildren(), isClean()); + toolsets_, ((bitField0_ & 0x00100000) != 0), getParentForChildren(), isClean()); toolsets_ = null; } return toolsetsBuilder_; @@ -12758,7 +13856,7 @@ public Builder setGeneratedSummary(java.lang.String value) { throw new NullPointerException(); } generatedSummary_ = value; - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); return this; } @@ -12777,7 +13875,7 @@ public Builder setGeneratedSummary(java.lang.String value) { */ public Builder clearGeneratedSummary() { generatedSummary_ = getDefaultInstance().getGeneratedSummary(); - bitField0_ = (bitField0_ & ~0x00100000); + bitField0_ = (bitField0_ & ~0x00200000); onChanged(); return this; } @@ -12801,7 +13899,7 @@ public Builder setGeneratedSummaryBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); generatedSummary_ = value; - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); return this; } @@ -12810,10 +13908,10 @@ public Builder setGeneratedSummaryBytes(com.google.protobuf.ByteString value) { java.util.Collections.emptyList(); private void ensureTransferRulesIsMutable() { - if (!((bitField0_ & 0x00200000) != 0)) { + if (!((bitField0_ & 0x00400000) != 0)) { transferRules_ = new java.util.ArrayList(transferRules_); - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; } } @@ -13072,7 +14170,7 @@ public Builder addAllTransferRules( public Builder clearTransferRules() { if (transferRulesBuilder_ == null) { transferRules_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00200000); + bitField0_ = (bitField0_ & ~0x00400000); onChanged(); } else { transferRulesBuilder_.clear(); @@ -13223,7 +14321,7 @@ public com.google.cloud.ces.v1beta.TransferRule.Builder addTransferRulesBuilder( com.google.cloud.ces.v1beta.TransferRule.Builder, com.google.cloud.ces.v1beta.TransferRuleOrBuilder>( transferRules_, - ((bitField0_ & 0x00200000) != 0), + ((bitField0_ & 0x00400000) != 0), getParentForChildren(), isClean()); transferRules_ = null; @@ -13238,7 +14336,7 @@ private void ensureValidationErrorsIsMutable() { if (!validationErrors_.isModifiable()) { validationErrors_ = new com.google.protobuf.LazyStringArrayList(validationErrors_); } - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; } /** @@ -13333,7 +14431,7 @@ public Builder setValidationErrors(int index, java.lang.String value) { } ensureValidationErrorsIsMutable(); validationErrors_.set(index, value); - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -13358,7 +14456,7 @@ public Builder addValidationErrors(java.lang.String value) { } ensureValidationErrorsIsMutable(); validationErrors_.add(value); - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -13380,7 +14478,7 @@ public Builder addValidationErrors(java.lang.String value) { public Builder addAllValidationErrors(java.lang.Iterable values) { ensureValidationErrorsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, validationErrors_); - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -13400,7 +14498,7 @@ public Builder addAllValidationErrors(java.lang.Iterable value */ public Builder clearValidationErrors() { validationErrors_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00400000); + bitField0_ = (bitField0_ & ~0x00800000); ; onChanged(); return this; @@ -13427,7 +14525,7 @@ public Builder addValidationErrorsBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureValidationErrorsIsMutable(); validationErrors_.add(value); - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); return this; } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentCardProto.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentCardProto.java index b1d6182faca2..d8041dca673a 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentCardProto.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentCardProto.java @@ -52,10 +52,30 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_ces_v1beta_AgentSkill_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_ces_v1beta_AgentSkill_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_RemoteA2aConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_RemoteA2aConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_RemoteA2aConfig_InputVariableMappingEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_RemoteA2aConfig_InputVariableMappingEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_RemoteA2aConfig_OutputVariableMappingEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_RemoteA2aConfig_OutputVariableMappingEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_ces_v1beta_RemoteAgentTool_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_ces_v1beta_RemoteAgentTool_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_RemoteAgentTool_InputVariableMappingEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_RemoteAgentTool_InputVariableMappingEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_RemoteAgentTool_OutputVariableMappingEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_RemoteAgentTool_OutputVariableMappingEntry_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -67,15 +87,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n" + "(google/cloud/ces/v1beta/agent_card.pro" - + "to\022\027google.cloud.ces.v1beta\032\037google/api/field_behavior.proto\"\331\001\n" + + "to\022\027google.cloud.ces.v1beta\032\037google/api/" + + "field_behavior.proto\032\"google/cloud/ces/v1beta/auth.proto\"\331\001\n" + "\tAgentCard\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\002\022\031\n" + "\013description\030\002 \001(\tB\004\342A\001\002\022K\n" - + "\024supported_interfaces\030\003 \003(\0132\'.google" - + ".cloud.ces.v1beta.AgentInterfaceB\004\342A\001\002\022\025\n" + + "\024supported_interfaces\030\003" + + " \003(\0132\'.google.cloud.ces.v1beta.AgentInterfaceB\004\342A\001\002\022\025\n" + "\007version\030\005 \001(\tB\004\342A\001\002\0229\n" - + "\006skills\030\006 \003(\0132#." - + "google.cloud.ces.v1beta.AgentSkillB\004\342A\001\002\"s\n" + + "\006skills\030\006" + + " \003(\0132#.google.cloud.ces.v1beta.AgentSkillB\004\342A\001\002\"s\n" + "\016AgentInterface\022\021\n" + "\003url\030\001 \001(\tB\004\342A\001\002\022\036\n" + "\020protocol_binding\030\002 \001(\tB\004\342A\001\002\022\016\n" @@ -88,20 +109,53 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004tags\030\004 \003(\tB\004\342A\001\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\"~\n" + + "\014output_modes\030\007 \003(\t\"\331\004\n" + + "\017RemoteA2aConfig\022>\n\n" + + "agent_card\030\001 \001(\0132\".goo" + + "gle.cloud.ces.v1beta.AgentCardB\004\342A\001\001H\000\022\036\n" + + "\016agent_registry\030\002 \001(\tB\004\342A\001\001H\000\022L\n" + + "\022api_authentication\030\003" + + " \001(\0132*.google.cloud.ces.v1beta.ApiAuthenticationB\004\342A\001\001\022h\n" + + "\026input_variable_mapping\030\004 \003(\0132B.google.cloud.ces." + + "v1beta.RemoteA2aConfig.InputVariableMappingEntryB\004\342A\001\001\022j\n" + + "\027output_variable_mapping\030\005 \003(\0132C.google.cloud.ces.v1beta.Remote" + + "A2aConfig.OutputVariableMappingEntryB\004\342A\001\001\022\037\n" + + "\021streaming_enabled\030\006 \001(\010B\004\342A\001\001\022\030\n\n" + + "context_id\030\007 \001(\tB\004\342A\001\001\032;\n" + + "\031InputVariableMappingEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\032<\n" + + "\032OutputVariableMappingEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001B\014\n\n" + + "agent_spec\"\273\004\n" + "\017RemoteAgentTool\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\002\022\031\n" + "\013description\030\002 \001(\tB\004\342A\001\002\022<\n\n" + "agent_card\030\003" - + " \001(\0132\".google.cloud.ces.v1beta.AgentCardB\004\342A\001\002B^\n" - + "\033com.google.cloud.ces.v1betaB\016AgentCardProtoP\001Z-cloud.google.com/go/ces" - + "/apiv1beta/cespb;cespbb\006proto3" + + " \001(\0132\".google.cloud.ces.v1beta.AgentCardB\004\342A\001\002\022L\n" + + "\022api_authentication\030\004 \001(\0132*.go" + + "ogle.cloud.ces.v1beta.ApiAuthenticationB\004\342A\001\001\022\034\n" + + "\016stateful_agent\030\005 \001(\010B\004\342A\001\001\022h\n" + + "\026input_variable_mapping\030\006 \003(\0132B.google.clo" + + "ud.ces.v1beta.RemoteAgentTool.InputVariableMappingEntryB\004\342A\001\001\022j\n" + + "\027output_variable_mapping\030\007 \003(\0132C.google.cloud.ces.v1beta" + + ".RemoteAgentTool.OutputVariableMappingEntryB\004\342A\001\001\032;\n" + + "\031InputVariableMappingEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\032<\n" + + "\032OutputVariableMappingEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001B^\n" + + "\033com.google.cloud.ces.v1betaB\016AgentCardProtoP\001Z-cloud.google.com/" + + "go/ces/apiv1beta/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.v1beta.AuthProto.getDescriptor(), }); internal_static_google_cloud_ces_v1beta_AgentCard_descriptor = getDescriptor().getMessageType(0); @@ -127,16 +181,70 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Id", "Name", "Description", "Tags", "Examples", "InputModes", "OutputModes", }); - internal_static_google_cloud_ces_v1beta_RemoteAgentTool_descriptor = + internal_static_google_cloud_ces_v1beta_RemoteA2aConfig_descriptor = getDescriptor().getMessageType(3); + internal_static_google_cloud_ces_v1beta_RemoteA2aConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_RemoteA2aConfig_descriptor, + new java.lang.String[] { + "AgentCard", + "AgentRegistry", + "ApiAuthentication", + "InputVariableMapping", + "OutputVariableMapping", + "StreamingEnabled", + "ContextId", + "AgentSpec", + }); + internal_static_google_cloud_ces_v1beta_RemoteA2aConfig_InputVariableMappingEntry_descriptor = + internal_static_google_cloud_ces_v1beta_RemoteA2aConfig_descriptor.getNestedType(0); + internal_static_google_cloud_ces_v1beta_RemoteA2aConfig_InputVariableMappingEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_RemoteA2aConfig_InputVariableMappingEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_ces_v1beta_RemoteA2aConfig_OutputVariableMappingEntry_descriptor = + internal_static_google_cloud_ces_v1beta_RemoteA2aConfig_descriptor.getNestedType(1); + internal_static_google_cloud_ces_v1beta_RemoteA2aConfig_OutputVariableMappingEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_RemoteA2aConfig_OutputVariableMappingEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_ces_v1beta_RemoteAgentTool_descriptor = + getDescriptor().getMessageType(4); internal_static_google_cloud_ces_v1beta_RemoteAgentTool_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_RemoteAgentTool_descriptor, new java.lang.String[] { - "Name", "Description", "AgentCard", + "Name", + "Description", + "AgentCard", + "ApiAuthentication", + "StatefulAgent", + "InputVariableMapping", + "OutputVariableMapping", + }); + internal_static_google_cloud_ces_v1beta_RemoteAgentTool_InputVariableMappingEntry_descriptor = + internal_static_google_cloud_ces_v1beta_RemoteAgentTool_descriptor.getNestedType(0); + internal_static_google_cloud_ces_v1beta_RemoteAgentTool_InputVariableMappingEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_RemoteAgentTool_InputVariableMappingEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_ces_v1beta_RemoteAgentTool_OutputVariableMappingEntry_descriptor = + internal_static_google_cloud_ces_v1beta_RemoteAgentTool_descriptor.getNestedType(1); + internal_static_google_cloud_ces_v1beta_RemoteAgentTool_OutputVariableMappingEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_RemoteAgentTool_OutputVariableMappingEntry_descriptor, + new java.lang.String[] { + "Key", "Value", }); descriptor.resolveAllFeaturesImmutable(); com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.cloud.ces.v1beta.AuthProto.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-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentOrBuilder.java index b425dfae3b7c..8892a9698567 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentOrBuilder.java @@ -134,6 +134,52 @@ public interface AgentOrBuilder com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgentOrBuilder getRemoteDialogflowAgentOrBuilder(); + /** + * + * + *
+   * Optional. The remote [A2A](https://github.com/a2aproject/A2A) agent to be
+   * used for the agent execution.
+   * 
+ * + * + * .google.cloud.ces.v1beta.Agent.RemoteA2aAgent remote_a2a_agent = 41 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the remoteA2aAgent field is set. + */ + boolean hasRemoteA2AAgent(); + + /** + * + * + *
+   * Optional. The remote [A2A](https://github.com/a2aproject/A2A) agent to be
+   * used for the agent execution.
+   * 
+ * + * + * .google.cloud.ces.v1beta.Agent.RemoteA2aAgent remote_a2a_agent = 41 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The remoteA2aAgent. + */ + com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent getRemoteA2AAgent(); + + /** + * + * + *
+   * Optional. The remote [A2A](https://github.com/a2aproject/A2A) agent to be
+   * used for the agent execution.
+   * 
+ * + * + * .google.cloud.ces.v1beta.Agent.RemoteA2aAgent remote_a2a_agent = 41 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1beta.Agent.RemoteA2aAgentOrBuilder getRemoteA2AAgentOrBuilder(); + /** * * diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentProto.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentProto.java index ed42c6291520..2aa68d7998f0 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentProto.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentProto.java @@ -60,6 +60,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_ces_v1beta_Agent_RemoteDialogflowAgent_OutputVariableMappingEntry_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_ces_v1beta_Agent_RemoteDialogflowAgent_OutputVariableMappingEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_Agent_RemoteA2aAgent_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_Agent_RemoteA2aAgent_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_ces_v1beta_Agent_AgentToolset_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -77,47 +81,51 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "#google/cloud/ces/v1beta/agent.proto\022\027g" + "oogle.cloud.ces.v1beta\032\037google/api/field" + "_behavior.proto\032\031google/api/resource.pro" - + "to\032-google/cloud/ces/v1beta/agent_transfers.proto\032$google/cloud/ces/v1beta/commo" - + "n.proto\032\037google/protobuf/timestamp.proto\"\264\020\n" + + "to\032(google/cloud/ces/v1beta/agent_card.proto\032-google/cloud/ces/v1beta/agent_tran" + + "sfers.proto\032$google/cloud/ces/v1beta/com" + + "mon.proto\032\037google/protobuf/timestamp.proto\"\333\021\n" + "\005Agent\022B\n" - + "\tllm_agent\030\032 \001(\0132\'.google.c" - + "loud.ces.v1beta.Agent.LlmAgentB\004\342A\001\001H\000\022]\n" - + "\027remote_dialogflow_agent\030\033 \001(\01324.google" - + ".cloud.ces.v1beta.Agent.RemoteDialogflowAgentB\004\342A\001\001H\000\022\022\n" + + "\tllm_agent\030\032 \001(\0132\'.google" + + ".cloud.ces.v1beta.Agent.LlmAgentB\004\342A\001\001H\000\022]\n" + + "\027remote_dialogflow_agent\030\033 \001(\01324.goog" + + "le.cloud.ces.v1beta.Agent.RemoteDialogflowAgentB\004\342A\001\001H\000\022O\n" + + "\020remote_a2a_agent\030) \001(" + + "\0132-.google.cloud.ces.v1beta.Agent.RemoteA2aAgentB\004\342A\001\001H\000\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\010\022\032\n" + "\014display_name\030\002 \001(\tB\004\342A\001\002\022\031\n" + "\013description\030\003 \001(\tB\004\342A\001\001\022D\n" - + "\016model_settings\030\004 \001(\0132&.googl" - + "e.cloud.ces.v1beta.ModelSettingsB\004\342A\001\001\022\031\n" + + "\016model_settings\030\004 \001(\0132&.go" + + "ogle.cloud.ces.v1beta.ModelSettingsB\004\342A\001\001\022\031\n" + "\013instruction\030\006 \001(\tB\004\342A\001\001\022/\n" + "\005tools\030\007 \003(\tB \342A\001\001\372A\031\n" + "\027ces.googleapis.com/Tool\0227\n" + "\014child_agents\030\010 \003(\tB!\342A\001\001\372A\032\n" + "\030ces.googleapis.com/Agent\022G\n" - + "\026before_agent_callbacks\030\022 " - + "\003(\0132!.google.cloud.ces.v1beta.CallbackB\004\342A\001\001\022F\n" - + "\025after_agent_callbacks\030\023" - + " \003(\0132!.google.cloud.ces.v1beta.CallbackB\004\342A\001\001\022G\n" + + "\026before_agent_callbacks\030\022" + + " \003(\0132!.google.cloud.ces.v1beta.CallbackB\004\342A\001\001\022F\n" + + "\025after_agent_callbacks\030\023 \003(\0132!" + + ".google.cloud.ces.v1beta.CallbackB\004\342A\001\001\022G\n" + "\026before_model_callbacks\030\024" + " \003(\0132!.google.cloud.ces.v1beta.CallbackB\004\342A\001\001\022F\n" + "\025after_model_callbacks\030\025" + " \003(\0132!.google.cloud.ces.v1beta.CallbackB\004\342A\001\001\022F\n" + "\025before_tool_callbacks\030\026" + " \003(\0132!.google.cloud.ces.v1beta.CallbackB\004\342A\001\001\022E\n" - + "\024after_tool_callbacks\030\027 " - + "\003(\0132!.google.cloud.ces.v1beta.CallbackB\004\342A\001\001\0225\n" + + "\024after_tool_callbacks\030\027" + + " \003(\0132!.google.cloud.ces.v1beta.CallbackB\004\342A\001\001\0225\n" + "\013create_time\030\017" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225\n" + "\013update_time\030\020" - + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0229\n\n" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0229\n" + + "\n" + "guardrails\030\021 \003(\tB%\342A\001\001\372A\036\n" + "\034ces.googleapis.com/Guardrail\022\014\n" + "\004etag\030\030 \001(\t\022C\n" + "\010toolsets\030\034" + " \003(\0132+.google.cloud.ces.v1beta.Agent.AgentToolsetB\004\342A\001\001\022\037\n" + "\021generated_summary\030\035 \001(\tB\004\342A\001\003\022C\n" - + "\016transfer_rules\030\036 \003(\0132%.goog" - + "le.cloud.ces.v1beta.TransferRuleB\004\342A\001\001\022\037\n" + + "\016transfer_rules\030\036 \003(\0132%.g" + + "oogle.cloud.ces.v1beta.TransferRuleB\004\342A\001\001\022\037\n" + "\021validation_errors\030 \003(\tB\004\342A\001\003\032\n\n" + "\010LlmAgent\032\324\004\n" + "\025RemoteDialogflowAgent\022A\n" @@ -125,10 +133,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ")dialogflow.googleapis.com/DialogflowAgent\022\025\n" + "\007flow_id\030\002 \001(\tB\004\342A\001\001\022\034\n" + "\016environment_id\030\003 \001(\tB\004\342A\001\001\022t\n" - + "\026input_variable_mapping\030\004 \003(\0132N.google.cloud.ces" - + ".v1beta.Agent.RemoteDialogflowAgent.InputVariableMappingEntryB\004\342A\001\001\022v\n" - + "\027output_variable_mapping\030\005 \003(\0132O.google.cloud.ces." - + "v1beta.Agent.RemoteDialogflowAgent.OutputVariableMappingEntryB\004\342A\001\001\0224\n" + + "\026input_variable_mapping\030\004 \003(\0132N.google.cloud." + + "ces.v1beta.Agent.RemoteDialogflowAgent.InputVariableMappingEntryB\004\342A\001\001\022v\n" + + "\027output_variable_mapping\030\005 \003(\0132O.google.cloud.c" + + "es.v1beta.Agent.RemoteDialogflowAgent.OutputVariableMappingEntryB\004\342A\001\001\0224\n" + "&respect_response_interruption_settings\030\006 \001(\010B\004\342A\001\001\022$\n" + "\026language_code_variable\030\007 \001(\tB\004\342A\001\001\032;\n" + "\031InputVariableMappingEntry\022\013\n" @@ -136,18 +144,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005value\030\002 \001(\t:\0028\001\032<\n" + "\032OutputVariableMappingEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001\032\\\n" + + "\005value\030\002 \001(\t:\0028\001\032T\n" + + "\016RemoteA2aAgent\022B\n\n" + + "a2a_config\030\001 " + + "\001(\0132(.google.cloud.ces.v1beta.RemoteA2aConfigB\004\342A\001\002\032\\\n" + "\014AgentToolset\0224\n" + "\007toolset\030\001 \001(\tB#\342A\001\002\372A\034\n" + "\032ces.googleapis.com/Toolset\022\026\n" + "\010tool_ids\030\004 \003(\tB\004\342A\001\001:o\352Al\n" - + "\030ces.googleapis.com/Agent\022Aprojects/{project}/locations/{l" - + "ocation}/apps/{app}/agents/{agent}*\006agents2\005agentB\014\n\n" + + "\030ces.googleapis.com/Agent\022Aprojects/{project}/loc" + + "ations/{location}/apps/{app}/agents/{agent}*\006agents2\005agentB\014\n\n" + "agent_typeB\300\001\n" + "\033com.google.cloud.ces.v1betaB\n" + "AgentProtoP\001Z-cloud.google.com/go/ces/apiv1beta/cespb;cespb\352Ac\n" - + ")dialogflow.googleapis.com/DialogflowAgent\0226projects/{project}/locations/{locati" - + "on}/agents/{agent}b\006proto3" + + ")dialogflow.googleapis.com/DialogflowAgent\0226projects/{project}/location" + + "s/{location}/agents/{agent}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -155,6 +166,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.v1beta.AgentCardProto.getDescriptor(), com.google.cloud.ces.v1beta.AgentTransfersProto.getDescriptor(), com.google.cloud.ces.v1beta.CommonProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), @@ -166,6 +178,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "LlmAgent", "RemoteDialogflowAgent", + "RemoteA2AAgent", "Name", "DisplayName", "Description", @@ -227,8 +240,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_ces_v1beta_Agent_AgentToolset_descriptor = + internal_static_google_cloud_ces_v1beta_Agent_RemoteA2aAgent_descriptor = internal_static_google_cloud_ces_v1beta_Agent_descriptor.getNestedType(2); + internal_static_google_cloud_ces_v1beta_Agent_RemoteA2aAgent_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_Agent_RemoteA2aAgent_descriptor, + new java.lang.String[] { + "A2AConfig", + }); + internal_static_google_cloud_ces_v1beta_Agent_AgentToolset_descriptor = + internal_static_google_cloud_ces_v1beta_Agent_descriptor.getNestedType(3); internal_static_google_cloud_ces_v1beta_Agent_AgentToolset_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_Agent_AgentToolset_descriptor, @@ -238,6 +259,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.v1beta.AgentCardProto.getDescriptor(); com.google.cloud.ces.v1beta.AgentTransfersProto.getDescriptor(); com.google.cloud.ces.v1beta.CommonProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentRegistryDeployment.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentRegistryDeployment.java new file mode 100644 index 000000000000..9830b11c260d --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentRegistryDeployment.java @@ -0,0 +1,624 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/deployment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +/** + * + * + *
+ * Configuration and status for Agent Registry deployment.
+ * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.AgentRegistryDeployment} + */ +@com.google.protobuf.Generated +public final class AgentRegistryDeployment extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.AgentRegistryDeployment) + AgentRegistryDeploymentOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AgentRegistryDeployment"); + } + + // Use AgentRegistryDeployment.newBuilder() to construct. + private AgentRegistryDeployment(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AgentRegistryDeployment() { + agentRegistryServiceName_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.ChannelProfileProto + .internal_static_google_cloud_ces_v1beta_AgentRegistryDeployment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.ChannelProfileProto + .internal_static_google_cloud_ces_v1beta_AgentRegistryDeployment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.AgentRegistryDeployment.class, + com.google.cloud.ces.v1beta.AgentRegistryDeployment.Builder.class); + } + + public static final int AGENT_REGISTRY_SERVICE_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object agentRegistryServiceName_ = ""; + + /** + * + * + *
+   * Optional. Output only. The resource name of the deployed Agent Registry
+   * service. Format:
+   * `projects/{project}/locations/{location}/services/{service}`
+   * 
+ * + * + * string agent_registry_service_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The agentRegistryServiceName. + */ + @java.lang.Override + public java.lang.String getAgentRegistryServiceName() { + java.lang.Object ref = agentRegistryServiceName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + agentRegistryServiceName_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Output only. The resource name of the deployed Agent Registry
+   * service. Format:
+   * `projects/{project}/locations/{location}/services/{service}`
+   * 
+ * + * + * string agent_registry_service_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for agentRegistryServiceName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAgentRegistryServiceNameBytes() { + java.lang.Object ref = agentRegistryServiceName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + agentRegistryServiceName_ = 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(agentRegistryServiceName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, agentRegistryServiceName_); + } + 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(agentRegistryServiceName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, agentRegistryServiceName_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.AgentRegistryDeployment)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.AgentRegistryDeployment other = + (com.google.cloud.ces.v1beta.AgentRegistryDeployment) obj; + + if (!getAgentRegistryServiceName().equals(other.getAgentRegistryServiceName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + AGENT_REGISTRY_SERVICE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getAgentRegistryServiceName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.AgentRegistryDeployment parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.AgentRegistryDeployment parseFrom( + 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.AgentRegistryDeployment parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.AgentRegistryDeployment parseFrom( + com.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.AgentRegistryDeployment parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.AgentRegistryDeployment 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.AgentRegistryDeployment parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.AgentRegistryDeployment parseFrom( + java.io.InputStream 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.AgentRegistryDeployment parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.AgentRegistryDeployment parseDelimitedFrom( + java.io.InputStream 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.AgentRegistryDeployment 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.AgentRegistryDeployment parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, 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.AgentRegistryDeployment prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 and status for Agent Registry deployment.
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.AgentRegistryDeployment} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.AgentRegistryDeployment) + com.google.cloud.ces.v1beta.AgentRegistryDeploymentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.ChannelProfileProto + .internal_static_google_cloud_ces_v1beta_AgentRegistryDeployment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.ChannelProfileProto + .internal_static_google_cloud_ces_v1beta_AgentRegistryDeployment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.AgentRegistryDeployment.class, + com.google.cloud.ces.v1beta.AgentRegistryDeployment.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.AgentRegistryDeployment.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + agentRegistryServiceName_ = ""; + 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_AgentRegistryDeployment_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.AgentRegistryDeployment getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.AgentRegistryDeployment.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.AgentRegistryDeployment build() { + com.google.cloud.ces.v1beta.AgentRegistryDeployment result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.AgentRegistryDeployment buildPartial() { + com.google.cloud.ces.v1beta.AgentRegistryDeployment result = + new com.google.cloud.ces.v1beta.AgentRegistryDeployment(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1beta.AgentRegistryDeployment result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.agentRegistryServiceName_ = agentRegistryServiceName_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.AgentRegistryDeployment) { + return mergeFrom((com.google.cloud.ces.v1beta.AgentRegistryDeployment) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.AgentRegistryDeployment other) { + if (other == com.google.cloud.ces.v1beta.AgentRegistryDeployment.getDefaultInstance()) + return this; + if (!other.getAgentRegistryServiceName().isEmpty()) { + agentRegistryServiceName_ = other.agentRegistryServiceName_; + 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: + { + agentRegistryServiceName_ = 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 agentRegistryServiceName_ = ""; + + /** + * + * + *
+     * Optional. Output only. The resource name of the deployed Agent Registry
+     * service. Format:
+     * `projects/{project}/locations/{location}/services/{service}`
+     * 
+ * + * + * string agent_registry_service_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The agentRegistryServiceName. + */ + public java.lang.String getAgentRegistryServiceName() { + java.lang.Object ref = agentRegistryServiceName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + agentRegistryServiceName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Output only. The resource name of the deployed Agent Registry
+     * service. Format:
+     * `projects/{project}/locations/{location}/services/{service}`
+     * 
+ * + * + * string agent_registry_service_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for agentRegistryServiceName. + */ + public com.google.protobuf.ByteString getAgentRegistryServiceNameBytes() { + java.lang.Object ref = agentRegistryServiceName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + agentRegistryServiceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Output only. The resource name of the deployed Agent Registry
+     * service. Format:
+     * `projects/{project}/locations/{location}/services/{service}`
+     * 
+ * + * + * string agent_registry_service_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The agentRegistryServiceName to set. + * @return This builder for chaining. + */ + public Builder setAgentRegistryServiceName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + agentRegistryServiceName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Output only. The resource name of the deployed Agent Registry
+     * service. Format:
+     * `projects/{project}/locations/{location}/services/{service}`
+     * 
+ * + * + * string agent_registry_service_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearAgentRegistryServiceName() { + agentRegistryServiceName_ = getDefaultInstance().getAgentRegistryServiceName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Output only. The resource name of the deployed Agent Registry
+     * service. Format:
+     * `projects/{project}/locations/{location}/services/{service}`
+     * 
+ * + * + * string agent_registry_service_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for agentRegistryServiceName to set. + * @return This builder for chaining. + */ + public Builder setAgentRegistryServiceNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + agentRegistryServiceName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.AgentRegistryDeployment) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.AgentRegistryDeployment) + private static final com.google.cloud.ces.v1beta.AgentRegistryDeployment DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.AgentRegistryDeployment(); + } + + public static com.google.cloud.ces.v1beta.AgentRegistryDeployment getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AgentRegistryDeployment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.AgentRegistryDeployment getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentRegistryDeploymentOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentRegistryDeploymentOrBuilder.java new file mode 100644 index 000000000000..84ea4fff8551 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentRegistryDeploymentOrBuilder.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/ces/v1beta/deployment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public interface AgentRegistryDeploymentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.AgentRegistryDeployment) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Output only. The resource name of the deployed Agent Registry
+   * service. Format:
+   * `projects/{project}/locations/{location}/services/{service}`
+   * 
+ * + * + * string agent_registry_service_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The agentRegistryServiceName. + */ + java.lang.String getAgentRegistryServiceName(); + + /** + * + * + *
+   * Optional. Output only. The resource name of the deployed Agent Registry
+   * service. Format:
+   * `projects/{project}/locations/{location}/services/{service}`
+   * 
+ * + * + * string agent_registry_service_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for agentRegistryServiceName. + */ + com.google.protobuf.ByteString getAgentRegistryServiceNameBytes(); +} 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 8af0155ae4c6..4b67d74ab6c6 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 @@ -224,6 +224,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_ces_v1beta_CreateDeploymentRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_ces_v1beta_CreateDeploymentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_DeployChannelResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_DeployChannelResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_ces_v1beta_UpdateDeploymentRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -276,6 +280,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_ces_v1beta_CreateAppVersionRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_ces_v1beta_CreateAppVersionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_UpdateAppVersionRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_UpdateAppVersionRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_ces_v1beta_RestoreAppVersionRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -454,26 +462,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021ExportAppResponse\022\025\n" + "\013app_content\030\001 \001(\014H\000\022\021\n" + "\007app_uri\030\002 \001(\tH\000B\005\n" - + "\003app\"\226\004\n" + + "\003app\"\211\005\n" + "\020ImportAppRequest\022\021\n" + "\007gcs_uri\030\004 \001(\tH\000\022\025\n" - + "\013app_content\030\005 \001(\014H\000\022/\n" + + "\013app_content\030\005 \001(\014H\000\022\"\n" + + "\022json_patch_content\030\t \001(\tB\004\342A\001\001H\001\022\"\n" + + "\022json_patch_gcs_uri\030\n" + + " \001(\tB\004\342A\001\001H\001\022/\n" + "\006parent\030\001 \001(" + "\tB\037\342A\001\002\372A\030\022\026ces.googleapis.com/App\022\032\n" + "\014display_name\030\002 \001(\tB\004\342A\001\001\022\024\n" + "\006app_id\030\003 \001(\tB\004\342A\001\001\022U\n" + "\016import_options\030\006" + " \001(\01327.google.cloud.ces.v1beta.ImportAppRequest.ImportOptionsB\004\342A\001\001\022\035\n" - + "\017ignore_app_lock\030\007 \001(\010B\004\342A\001\001\032\367\001\n\r" + + "\017ignore_app_lock\030\007 \001(\010B\004\342A\001\001\032\224\002\n\r" + "ImportOptions\022~\n" - + "\034conflict_resolution_strategy\030\001 " - + "\001(\0162R.google.cloud.ces.v1beta.ImportAppR" - + "equest.ImportOptions.ConflictResolutionStrategyB\004\342A\001\001\"f\n" + + "\034conflict_resolution_strategy\030\001 \001(\0162R.go" + + "ogle.cloud.ces.v1beta.ImportAppRequest.I" + + "mportOptions.ConflictResolutionStrategyB\004\342A\001\001\022\033\n\r" + + "validate_only\030\002 \001(\010B\004\342A\001\001\"f\n" + "\032ConflictResolutionStrategy\022,\n" + "(CONFLICT_RESOLUTION_STRATEGY_UNSPECIFIED\020\000\022\013\n" + "\007REPLACE\020\001\022\r\n" + "\tOVERWRITE\020\002B\005\n" - + "\003app\"P\n" + + "\003appB\014\n\n" + + "json_patch\"P\n" + "\021ImportAppResponse\022)\n" + "\004name\030\001 \001(\tB\033\372A\030\n" + "\026ces.googleapis.com/App\022\020\n" @@ -498,8 +511,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005agent\030\003" + " \001(\0132\036.google.cloud.ces.v1beta.AgentB\004\342A\001\002\"\200\001\n" + "\022UpdateAgentRequest\0223\n" - + "\005agent\030\001" - + " \001(\0132\036.google.cloud.ces.v1beta.AgentB\004\342A\001\002\0225\n" + + "\005agent\030\001 " + + "\001(\0132\036.google.cloud.ces.v1beta.AgentB\004\342A\001\002\0225\n" + "\013update_mask\030\002" + " \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\001\"n\n" + "\022DeleteAgentRequest\022/\n" @@ -531,8 +544,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006parent\030\001 \001(" + "\tB#\342A\001\002\372A\034\022\032ces.googleapis.com/Example\022\030\n\n" + "example_id\030\002 \001(\tB\004\342A\001\001\0227\n" - + "\007example\030\003 \001(\0132 " - + ".google.cloud.ces.v1beta.ExampleB\004\342A\001\002\"\206\001\n" + + "\007example\030\003 \001(\0132" + + " .google.cloud.ces.v1beta.ExampleB\004\342A\001\002\"\206\001\n" + "\024UpdateExampleRequest\0227\n" + "\007example\030\001 \001(\0132" + " .google.cloud.ces.v1beta.ExampleB\004\342A\001\002\0225\n" @@ -575,8 +588,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + "page_token\030\003 \001(\tB\004\342A\001\001\022\024\n" + "\006filter\030\004 \001(\tB\004\342A\001\001\022B\n" - + "\006source\030\005 \001(\0162,.go" - + "ogle.cloud.ces.v1beta.Conversation.SourceB\004\342A\001\001\022C\n" + + "\006source\030\005 \001(\0162,.google." + + "cloud.ces.v1beta.Conversation.SourceB\004\342A\001\001\022C\n" + "\007sources\030\006" + " \003(\0162,.google.cloud.ces.v1beta.Conversation.SourceB\004\342A\001\001\"r\n" + "\031ListConversationsResponse\022<\n\r" @@ -590,8 +603,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031DeleteConversationRequest\0226\n" + "\004name\030\001 \001(\tB(\342A\001\002\372A!\n" + "\037ces.googleapis.com/Conversation\022D\n" - + "\006source\030\002" - + " \001(\0162,.google.cloud.ces.v1beta.Conversation.SourceB\006\030\001\342A\001\001\"\234\001\n" + + "\006source\030\002 \001" + + "(\0162,.google.cloud.ces.v1beta.Conversation.SourceB\006\030\001\342A\001\001\"\234\001\n" + "\037BatchDeleteConversationsRequest\0228\n" + "\006parent\030\001 \001(" + "\tB(\342A\001\002\372A!\022\037ces.googleapis.com/Conversation\022?\n\r" @@ -618,11 +631,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006parent\030\001 \001(" + "\tB%\342A\001\002\372A\036\022\034ces.googleapis.com/Guardrail\022\032\n" + "\014guardrail_id\030\002 \001(\tB\004\342A\001\001\022;\n" - + "\tguardrail\030\003 \001(\0132\"." - + "google.cloud.ces.v1beta.GuardrailB\004\342A\001\002\"\214\001\n" + + "\tguardrail\030\003" + + " \001(\0132\".google.cloud.ces.v1beta.GuardrailB\004\342A\001\002\"\214\001\n" + "\026UpdateGuardrailRequest\022;\n" - + "\tguardrail\030\001" - + " \001(\0132\".google.cloud.ces.v1beta.GuardrailB\004\342A\001\002\0225\n" + + "\tguardrail\030\001 \001(\013" + + "2\".google.cloud.ces.v1beta.GuardrailB\004\342A\001\002\0225\n" + "\013update_mask\030\002" + " \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\001\"v\n" + "\026DeleteGuardrailRequest\0223\n" @@ -647,7 +660,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tB&\342A\001\002\372A\037\022\035ces.googleapis.com/Deployment\022\033\n\r" + "deployment_id\030\003 \001(\tB\004\342A\001\001\022=\n\n" + "deployment\030\002" - + " \001(\0132#.google.cloud.ces.v1beta.DeploymentB\004\342A\001\002\"\217\001\n" + + " \001(\0132#.google.cloud.ces.v1beta.DeploymentB\004\342A\001\002\"P\n" + + "\025DeployChannelResponse\0227\n\n" + + "deployment\030\001 \001(\0132#.google.cloud.ces.v1beta.Deployment\"\217\001\n" + "\027UpdateDeploymentRequest\022=\n\n" + "deployment\030\001" + " \001(\0132#.google.cloud.ces.v1beta.DeploymentB\004\342A\001\002\0225\n" @@ -707,8 +722,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006parent\030\001 \001(" + "\tB&\342A\001\002\372A\037\022\035ces.googleapis.com/AppVersion\022\034\n" + "\016app_version_id\030\002 \001(\tB\004\342A\001\001\022>\n" - + "\013app_version\030\003 \001(\0132#." - + "google.cloud.ces.v1beta.AppVersionB\004\342A\001\002\"P\n" + + "\013app_version\030\003 \001(\0132#.goo" + + "gle.cloud.ces.v1beta.AppVersionB\004\342A\001\002\"\220\001\n" + + "\027UpdateAppVersionRequest\022>\n" + + "\013app_version\030\001" + + " \001(\0132#.google.cloud.ces.v1beta.AppVersionB\004\342A\001\002\0225\n" + + "\013update_mask\030\002" + + " \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\001\"P\n" + "\030RestoreAppVersionRequest\0224\n" + "\004name\030\001 \001(\tB&\342A\001\002\372A\037\n" + "\035ces.googleapis.com/AppVersion\"\033\n" @@ -717,26 +737,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\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" + "\007toolset\030\006 \001(\0132 .google.cloud.ces.v1beta.ToolsetH\000\022d\n" - + "\023app_version_context\030\014 \001(\013" - + "2E.google.cloud.ces.v1beta.GenerateAppResourceRequest.AppVersionContextH\000\022/\n" + + "\023app_version_context\030\014 \001(\0132E.google.cloud." + + "ces.v1beta.GenerateAppResourceRequest.AppVersionContextH\000\022/\n" + "\006parent\030\001 \001(\tB\037\342A\001\002\372A\030\n" + "\026ces.googleapis.com/App\022i\n" - + "\023refine_instructions\030\003 \003(\0132F.google" - + ".cloud.ces.v1beta.GenerateAppResourceRequest.RefineInstructionsB\004\342A\001\001\022n\n" - + "\026tool_generation_config\030\005 \001(\0132H.google.cloud.ces" - + ".v1beta.GenerateAppResourceRequest.ToolGenerationConfigB\004\342A\001\001\022l\n" - + "\025app_generation_config\030\007 \001(\0132G.google.cloud.ces.v1beta.G" - + "enerateAppResourceRequest.AppGenerationConfigB\004\342A\001\001\022z\n" - + "\034evaluation_generation_config\030\010 \001(\0132N.google.cloud.ces.v1beta.Gene" - + "rateAppResourceRequest.EvaluationGenerationConfigB\004\342A\001\001\022\213\001\n" - + "%evaluation_personas_generation_config\030\t \001(\0132V.google.cloud.c" - + "es.v1beta.GenerateAppResourceRequest.Eva" - + "luationPersonasGenerationConfigB\004\342A\001\001\022\201\001\n" + + "\023refine_instructions\030\003 \003(\0132F.google.cloud.ces.v1bet" + + "a.GenerateAppResourceRequest.RefineInstructionsB\004\342A\001\001\022n\n" + + "\026tool_generation_config\030\005 \001(\0132H.google.cloud.ces.v1beta.Generate" + + "AppResourceRequest.ToolGenerationConfigB\004\342A\001\001\022l\n" + + "\025app_generation_config\030\007 \001(\0132G.g" + + "oogle.cloud.ces.v1beta.GenerateAppResourceRequest.AppGenerationConfigB\004\342A\001\001\022z\n" + + "\034evaluation_generation_config\030\010 \001(\0132N.goog" + + "le.cloud.ces.v1beta.GenerateAppResourceR" + + "equest.EvaluationGenerationConfigB\004\342A\001\001\022\213\001\n" + + "%evaluation_personas_generation_config\030\t" + + " \001(\0132V.google.cloud.ces.v1beta.Genera" + + "teAppResourceRequest.EvaluationPersonasGenerationConfigB\004\342A\001\001\022\201\001\n" + " quality_report_generation_config\030\n" - + " \001(\0132Q.google.cloud.ces.v1beta.GenerateAppRe" - + "sourceRequest.QualityReportGenerationConfigB\004\342A\001\001\022q\n" - + "\030hill_climbing_fix_config\030\013 \001(\0132I.google.cloud.ces.v1beta.GenerateAp" - + "pResourceRequest.HillClimbingFixConfigB\004\342A\001\001\032\210\001\n" + + " \001(\0132Q.google.cloud." + + "ces.v1beta.GenerateAppResourceRequest.QualityReportGenerationConfigB\004\342A\001\001\022q\n" + + "\030hill_climbing_fix_config\030\013 \001(\0132I.google.clo" + + "ud.ces.v1beta.GenerateAppResourceRequest.HillClimbingFixConfigB\004\342A\001\001\032\210\001\n" + "\021AppVersionContext\0227\n" + "\013app_version\030\001 \001(\tB\"\372A\037\n" + "\035ces.googleapis.com/AppVersion\022:\n" @@ -750,16 +771,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014instructions\030\004 \001(\tB\004\342A\001\002\032\363\004\n" + "\024ToolGenerationConfig\022\025\n" + "\007context\030\001 \001(\tB\004\342A\001\001\022A\n\r" - + "file_contexts\030\003" - + " \003(\0132$.google.cloud.ces.v1beta.FileContextB\004\342A\001\001\022\231\001\n" - + "\"open_api_toolset_generation_config\030\002 \001(\0132g.google.cloud.ces." - + "v1beta.GenerateAppResourceRequest.ToolGe" - + "nerationConfig.OpenApiToolsetGenerationConfigB\004\342A\001\001\032\344\002\n" + + "file_contexts\030\003 \003(\0132$.go" + + "ogle.cloud.ces.v1beta.FileContextB\004\342A\001\001\022\231\001\n" + + "\"open_api_toolset_generation_config\030\002" + + " \001(\0132g.google.cloud.ces.v1beta.GenerateA" + + "ppResourceRequest.ToolGenerationConfig.OpenApiToolsetGenerationConfigB\004\342A\001\001\032\344\002\n" + "\036OpenApiToolsetGenerationConfig\022\021\n" + "\003uri\030\001 \001(\tB\004\342A\001\002\022\256\001\n" - + "\034operation_generation_configs\030\002 \003(\0132\201\001.google.cloud" - + ".ces.v1beta.GenerateAppResourceRequest.ToolGenerationConfig.OpenApiToolsetGenera" - + "tionConfig.OperationGenerationConfigB\004\342A\001\002\032~\n" + + "\034operation_generation_configs\030\002" + + " \003(\0132\201\001.google.cloud.ces.v1beta.Gene" + + "rateAppResourceRequest.ToolGenerationCon" + + "fig.OpenApiToolsetGenerationConfig.OperationGenerationConfigB\004\342A\001\002\032~\n" + "\031OperationGenerationConfig\022\024\n" + "\006method\030\001 \001(\tB\004\342A\001\002\022\022\n" + "\004path\030\002 \001(\tB\004\342A\001\002\022\032\n" @@ -767,44 +789,44 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "response_json\030\004 \001(\tB\004\342A\001\002\032\372\001\n" + "\023AppGenerationConfig\022\025\n" + "\007context\030\001 \001(\tB\004\342A\001\001\022A\n\r" - + "file_contexts\030\002 \003(\013" - + "2$.google.cloud.ces.v1beta.FileContextB\004\342A\001\001\022I\n\n" + + "file_contexts\030\002" + + " \003(\0132$.google.cloud.ces.v1beta.FileContextB\004\342A\001\001\022I\n\n" + "dataset_id\030\003 \001(\tB5\342A\001\001\372A.\n" + ",contactcenterinsights.googleapis.com/Dataset\022\"\n" + "\024generate_evaluations\030\004 \001(\010B\004\342A\001\001\022\032\n" + "\014gcs_location\030\005 \001(\tB\004\342A\001\001\032g\n" - + "\032EvaluationGenerationConfig\022I\n\n" + + "\032EvaluationGenerationConfig\022I\n" + + "\n" + "dataset_id\030\001 \001(\tB5\342A\001\001\372A.\n" + ",contactcenterinsights.googleapis.com/Dataset\032$\n" + "\"EvaluationPersonasGenerationConfig\032\324\002\n" + "\035QualityReportGenerationConfig\022A\n" + "\016evaluation_run\030\001 \001(\tB)\342A\001\002\372A\"\n" + " ces.googleapis.com/EvaluationRun\022\203\001\n" - + "\talgorithm\030\002 \001(\0162j.google.cloud.ces.v1beta.Genera" - + "teAppResourceRequest.QualityReportGenera" - + "tionConfig.LossAttributionAlgorithmB\004\342A\001\001\"j\n" + + "\talgorithm\030\002 \001(\0162j.google.cloud.ces.v1beta.GenerateAppResourceReq" + + "uest.QualityReportGenerationConfig.LossAttributionAlgorithmB\004\342A\001\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\022D\n" - + "\016quality_report\030\001 \001(\0132&" - + ".google.cloud.ces.v1beta.QualityReportB\004\342A\001\002B\n\n" + + "\016quality_report\030\001" + + " \001(\0132&.google.cloud.ces.v1beta.QualityReportB\004\342A\001\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.clo" - + "ud.ces.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.google.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(\0132G.google.cloud.ces.v1beta.Generat" - + "eAppResourceResponse.GenerateResultInfo\032G\n" + + "\005tools\030\005" + + " \001(\0132:.google.cloud.ces.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.google.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(\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" @@ -816,22 +838,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013explanation\030\001 \001(\tB\024\n" + "\022generated_resource\"\221\003\n\r" + "QualityReport\022H\n" - + "\006issues\030\001 \003(" - + "\01322.google.cloud.ces.v1beta.QualityReport.AgentIssuesB\004\342A\001\001\022\035\n" + + "\006issues\030\001 \003(\01322.google.cloud" + + ".ces.v1beta.QualityReport.AgentIssuesB\004\342A\001\001\022\035\n" + "\017evaluation_runs\030\002 \003(\tB\004\342A\001\001\022J\n" - + "\016general_issues\030\003 \003(\0132,.goo" - + "gle.cloud.ces.v1beta.QualityReport.IssueB\004\342A\001\001\032c\n" + + "\016general_issues\030\003" + + " \003(\0132,.google.cloud.ces.v1beta.QualityReport.IssueB\004\342A\001\001\032c\n" + "\005Issue\022\031\n" + "\013description\030\001 \001(\tB\004\342A\001\001\022\036\n" + "\020occurrence_count\030\002 \001(\005B\004\342A\001\001\022\037\n" + "\021proposed_solution\030\003 \001(\tB\004\342A\001\001\032f\n" + "\013AgentIssues\022\023\n" + "\005agent\030\001 \001(\tB\004\342A\001\001\022B\n" - + "\006issues\030\002 \003(\0132" - + ",.google.cloud.ces.v1beta.QualityReport.IssueB\004\342A\001\001\"\361\004\n" + + "\006issues\030\002" + + " \003(\0132,.google.cloud.ces.v1beta.QualityReport.IssueB\004\342A\001\001\"\361\004\n" + "$GenerateAppResourceOperationMetadata\022k\n" - + "\017generation_type\030\001 \001(\0162L.google.cloud.ces.v1beta.GenerateAppResou" - + "rceOperationMetadata.GenerationTypeB\004\342A\001\003\022\025\n" + + "\017generation_type\030\001 \001(\0162L.google.cloud.ces" + + ".v1beta.GenerateAppResourceOperationMetadata.GenerationTypeB\004\342A\001\003\022\025\n" + "\007message\030\002 \001(\tB\004\342A\001\003\0225\n" + "\013create_time\030\003" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0222\n" @@ -868,259 +890,267 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB,\342A\001\002\372A%\n" + "#ces.googleapis.com/SecuritySettings\"\242\001\n" + "\035UpdateSecuritySettingsRequest\022J\n" - + "\021security_settings\030\001 \001(\0132).google" - + ".cloud.ces.v1beta.SecuritySettingsB\004\342A\001\002\0225\n" + + "\021security_settings\030\001" + + " \001(\0132).google.cloud.ces.v1beta.SecuritySettingsB\004\342A\001\002\0225\n" + "\013update_mask\030\002" - + " \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\0012\326M\n" + + " \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\0012\266O\n" + "\014AgentService\022\236\001\n" - + "\010ListApps\022(.google.cloud.ces.v1beta.ListApps" - + "Request\032).google.cloud.ces.v1beta.ListAp" - + "psResponse\"=\332A\006parent\202\323\344\223\002.\022,/v1beta/{parent=projects/*/locations/*}/apps\022\213\001\n" - + "\006GetApp\022&.google.cloud.ces.v1beta.GetAppReq" - + "uest\032\034.google.cloud.ces.v1beta.App\";\332A\004n" - + "ame\202\323\344\223\002.\022,/v1beta/{name=projects/*/locations/*/apps/*}\022\314\001\n" - + "\tCreateApp\022).google.c" - + "loud.ces.v1beta.CreateAppRequest\032\035.google.longrunning.Operation\"u\312A\030\n" + + "\010ListApps\022(.google.cloud.ces.v1beta.ListAppsRequest\032).google" + + ".cloud.ces.v1beta.ListAppsResponse\"=\332A\006p" + + "arent\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.cl" + + "oud.ces.v1beta.App\";\332A\004name\202\323\344\223\002.\022,/v1be" + + "ta/{name=projects/*/locations/*/apps/*}\022\314\001\n" + + "\tCreateApp\022).google.cloud.ces.v1beta." + + "CreateAppRequest\032\035.google.longrunning.Operation\"u\312A\030\n" + "\003App\022\021OperationMetadata\332A\021parent,app,app_id\332A\n" - + "paren" - + "t,app\202\323\344\223\0023\",/v1beta/{parent=projects/*/locations/*}/apps:\003app\022\245\001\n" - + "\tUpdateApp\022).google.cloud.ces.v1beta.UpdateAppRequest\032" - + "\034.google.cloud.ces.v1beta.App\"O\332A\017app,up" - + "date_mask\202\323\344\223\002720/v1beta/{app.name=projects/*/locations/*/apps/*}:\003app\022\277\001\n" - + "\tDeleteApp\022).google.cloud.ces.v1beta.DeleteApp" - + "Request\032\035.google.longrunning.Operation\"h\312A*\n" - + "\025google.protobuf.Empty\022\021OperationMet" - + "adata\332A\004name\202\323\344\223\002.*,/v1beta/{name=projects/*/locations/*/apps/*}\022\310\001\n" - + "\tExportApp\022)" - + ".google.cloud.ces.v1beta.ExportAppRequest\032\035.google.longrunning.Operation\"q\312A&\n" - + "\021ExportAppResponse\022\021OperationMetadata\332A\004na" - + "me\202\323\344\223\002;\"6/v1beta/{name=projects/*/locations/*/apps/*}:exportApp:\001*\022\337\001\n" - + "\tImportApp\022).google.cloud.ces.v1beta.ImportAppReq" - + "uest\032\035.google.longrunning.Operation\"\207\001\312A&\n" - + "\021ImportAppResponse\022\021OperationMetadata\332" - + "A\032parent,display_name,app_id\202\323\344\223\002;\"6/v1b" - + "eta/{parent=projects/*/locations/*}/apps:importApp:\001*\022\274\001\n" - + "\023GetSecuritySettings\0223.google.cloud.ces.v1beta.GetSecuritySetti" - + "ngsRequest\032).google.cloud.ces.v1beta.Sec", - "uritySettings\"E\332A\004name\202\323\344\223\0028\0226/v1beta/{n" - + "ame=projects/*/locations/*/securitySetti" - + "ngs}\022\201\002\n\026UpdateSecuritySettings\0226.google" - + ".cloud.ces.v1beta.UpdateSecuritySettings" - + "Request\032).google.cloud.ces.v1beta.Securi" - + "tySettings\"\203\001\332A\035security_settings,update" - + "_mask\202\323\344\223\002]2H/v1beta/{security_settings." - + "name=projects/*/locations/*/securitySett" - + "ings}:\021security_settings\022\255\001\n\nListAgents\022" - + "*.google.cloud.ces.v1beta.ListAgentsRequ" - + "est\032+.google.cloud.ces.v1beta.ListAgents" - + "Response\"F\332A\006parent\202\323\344\223\0027\0225/v1beta/{pare" - + "nt=projects/*/locations/*/apps/*}/agents" - + "\022\232\001\n\010GetAgent\022(.google.cloud.ces.v1beta." - + "GetAgentRequest\032\036.google.cloud.ces.v1bet" - + "a.Agent\"D\332A\004name\202\323\344\223\0027\0225/v1beta/{name=pr" - + "ojects/*/locations/*/apps/*/agents/*}\022\307\001" - + "\n\013CreateAgent\022+.google.cloud.ces.v1beta." - + "CreateAgentRequest\032\036.google.cloud.ces.v1" - + "beta.Agent\"k\332A\025parent,agent,agent_id\332A\014p" - + "arent,agent\202\323\344\223\002>\"5/v1beta/{parent=proje" - + "cts/*/locations/*/apps/*}/agents:\005agent\022" - + "\272\001\n\013UpdateAgent\022+.google.cloud.ces.v1bet" - + "a.UpdateAgentRequest\032\036.google.cloud.ces." - + "v1beta.Agent\"^\332A\021agent,update_mask\202\323\344\223\002D" - + "2;/v1beta/{agent.name=projects/*/locatio" - + "ns/*/apps/*/agents/*}:\005agent\022\230\001\n\013DeleteA" - + "gent\022+.google.cloud.ces.v1beta.DeleteAge" - + "ntRequest\032\026.google.protobuf.Empty\"D\332A\004na" - + "me\202\323\344\223\0027*5/v1beta/{name=projects/*/locat" - + "ions/*/apps/*/agents/*}\022\265\001\n\014ListExamples" - + "\022,.google.cloud.ces.v1beta.ListExamplesR" - + "equest\032-.google.cloud.ces.v1beta.ListExa" - + "mplesResponse\"H\332A\006parent\202\323\344\223\0029\0227/v1beta/" - + "{parent=projects/*/locations/*/apps/*}/e" - + "xamples\022\242\001\n\nGetExample\022*.google.cloud.ce" - + "s.v1beta.GetExampleRequest\032 .google.clou" - + "d.ces.v1beta.Example\"F\332A\004name\202\323\344\223\0029\0227/v1" - + "beta/{name=projects/*/locations/*/apps/*" - + "/examples/*}\022\327\001\n\rCreateExample\022-.google." - + "cloud.ces.v1beta.CreateExampleRequest\032 ." - + "google.cloud.ces.v1beta.Example\"u\332A\031pare" - + "nt,example,example_id\332A\016parent,example\202\323" - + "\344\223\002B\"7/v1beta/{parent=projects/*/locatio" - + "ns/*/apps/*}/examples:\007example\022\310\001\n\rUpdat" - + "eExample\022-.google.cloud.ces.v1beta.Updat" - + "eExampleRequest\032 .google.cloud.ces.v1bet" - + "a.Example\"f\332A\023example,update_mask\202\323\344\223\002J2" - + "?/v1beta/{example.name=projects/*/locati" - + "ons/*/apps/*/examples/*}:\007example\022\236\001\n\rDe" - + "leteExample\022-.google.cloud.ces.v1beta.De" - + "leteExampleRequest\032\026.google.protobuf.Emp" - + "ty\"F\332A\004name\202\323\344\223\0029*7/v1beta/{name=project" - + "s/*/locations/*/apps/*/examples/*}\022\251\001\n\tL" - + "istTools\022).google.cloud.ces.v1beta.ListT" - + "oolsRequest\032*.google.cloud.ces.v1beta.Li" - + "stToolsResponse\"E\332A\006parent\202\323\344\223\0026\0224/v1bet" + + "parent,app\202\323\344\223\0023\",/v1" + + "beta/{parent=projects/*/locations/*}/apps:\003app\022\245\001\n" + + "\tUpdateApp\022).google.cloud.ces.v1beta.UpdateAppRequest\032\034.google.cloud.c" + + "es.v1beta.App\"O\332A\017app,update_mask\202\323\344\223\00272" + + "0/v1beta/{app.name=projects/*/locations/*/apps/*}:\003app\022\277\001\n" + + "\tDeleteApp\022).google.cl" + + "oud.ces.v1beta.DeleteAppRequest\032\035.google.longrunning.Operation\"h\312A*\n" + + "\025google.protobuf.Empty\022\021OperationMetadata\332A\004name\202\323\344\223" + + "\002.*,/v1beta/{name=projects/*/locations/*/apps/*}\022\310\001\n" + + "\tExportApp\022).google.cloud.ce" + + "s.v1beta.ExportAppRequest\032\035.google.longrunning.Operation\"q\312A&\n" + + "\021ExportAppResponse" + + "\022\021OperationMetadata\332A\004name\202\323\344\223\002;\"6/v1bet" + + "a/{name=projects/*/locations/*/apps/*}:e", + "xportApp:\001*\022\337\001\n\tImportApp\022).google.cloud" + + ".ces.v1beta.ImportAppRequest\032\035.google.lo" + + "ngrunning.Operation\"\207\001\312A&\n\021ImportAppResp" + + "onse\022\021OperationMetadata\332A\032parent,display" + + "_name,app_id\202\323\344\223\002;\"6/v1beta/{parent=proj" + + "ects/*/locations/*}/apps:importApp:\001*\022\274\001" + + "\n\023GetSecuritySettings\0223.google.cloud.ces" + + ".v1beta.GetSecuritySettingsRequest\032).goo" + + "gle.cloud.ces.v1beta.SecuritySettings\"E\332" + + "A\004name\202\323\344\223\0028\0226/v1beta/{name=projects/*/l" + + "ocations/*/securitySettings}\022\201\002\n\026UpdateS" + + "ecuritySettings\0226.google.cloud.ces.v1bet" + + "a.UpdateSecuritySettingsRequest\032).google" + + ".cloud.ces.v1beta.SecuritySettings\"\203\001\332A\035" + + "security_settings,update_mask\202\323\344\223\002]2H/v1" + + "beta/{security_settings.name=projects/*/" + + "locations/*/securitySettings}:\021security_" + + "settings\022\255\001\n\nListAgents\022*.google.cloud.c" + + "es.v1beta.ListAgentsRequest\032+.google.clo" + + "ud.ces.v1beta.ListAgentsResponse\"F\332A\006par" + + "ent\202\323\344\223\0027\0225/v1beta/{parent=projects/*/lo" + + "cations/*/apps/*}/agents\022\232\001\n\010GetAgent\022(." + + "google.cloud.ces.v1beta.GetAgentRequest\032" + + "\036.google.cloud.ces.v1beta.Agent\"D\332A\004name" + + "\202\323\344\223\0027\0225/v1beta/{name=projects/*/locatio" + + "ns/*/apps/*/agents/*}\022\307\001\n\013CreateAgent\022+." + + "google.cloud.ces.v1beta.CreateAgentReque" + + "st\032\036.google.cloud.ces.v1beta.Agent\"k\332A\025p" + + "arent,agent,agent_id\332A\014parent,agent\202\323\344\223\002" + + ">\"5/v1beta/{parent=projects/*/locations/" + + "*/apps/*}/agents:\005agent\022\272\001\n\013UpdateAgent\022" + + "+.google.cloud.ces.v1beta.UpdateAgentReq" + + "uest\032\036.google.cloud.ces.v1beta.Agent\"^\332A" + + "\021agent,update_mask\202\323\344\223\002D2;/v1beta/{agent" + + ".name=projects/*/locations/*/apps/*/agen" + + "ts/*}:\005agent\022\230\001\n\013DeleteAgent\022+.google.cl" + + "oud.ces.v1beta.DeleteAgentRequest\032\026.goog" + + "le.protobuf.Empty\"D\332A\004name\202\323\344\223\0027*5/v1bet" + + "a/{name=projects/*/locations/*/apps/*/ag" + + "ents/*}\022\265\001\n\014ListExamples\022,.google.cloud." + + "ces.v1beta.ListExamplesRequest\032-.google." + + "cloud.ces.v1beta.ListExamplesResponse\"H\332" + + "A\006parent\202\323\344\223\0029\0227/v1beta/{parent=projects" + + "/*/locations/*/apps/*}/examples\022\242\001\n\nGetE" + + "xample\022*.google.cloud.ces.v1beta.GetExam" + + "pleRequest\032 .google.cloud.ces.v1beta.Exa" + + "mple\"F\332A\004name\202\323\344\223\0029\0227/v1beta/{name=proje" + + "cts/*/locations/*/apps/*/examples/*}\022\327\001\n" + + "\rCreateExample\022-.google.cloud.ces.v1beta" + + ".CreateExampleRequest\032 .google.cloud.ces" + + ".v1beta.Example\"u\332A\031parent,example,examp" + + "le_id\332A\016parent,example\202\323\344\223\002B\"7/v1beta/{p" + + "arent=projects/*/locations/*/apps/*}/exa" + + "mples:\007example\022\310\001\n\rUpdateExample\022-.googl" + + "e.cloud.ces.v1beta.UpdateExampleRequest\032" + + " .google.cloud.ces.v1beta.Example\"f\332A\023ex" + + "ample,update_mask\202\323\344\223\002J2?/v1beta/{exampl" + + "e.name=projects/*/locations/*/apps/*/exa" + + "mples/*}:\007example\022\236\001\n\rDeleteExample\022-.go" + + "ogle.cloud.ces.v1beta.DeleteExampleReque" + + "st\032\026.google.protobuf.Empty\"F\332A\004name\202\323\344\223\002" + + "9*7/v1beta/{name=projects/*/locations/*/" + + "apps/*/examples/*}\022\251\001\n\tListTools\022).googl" + + "e.cloud.ces.v1beta.ListToolsRequest\032*.go" + + "ogle.cloud.ces.v1beta.ListToolsResponse\"" + + "E\332A\006parent\202\323\344\223\0026\0224/v1beta/{parent=projec" + + "ts/*/locations/*/apps/*}/tools\022\226\001\n\007GetTo" + + "ol\022\'.google.cloud.ces.v1beta.GetToolRequ" + + "est\032\035.google.cloud.ces.v1beta.Tool\"C\332A\004n" + + "ame\202\323\344\223\0026\0224/v1beta/{name=projects/*/loca" + + "tions/*/apps/*/tools/*}\022\311\001\n\021ListConversa" + + "tions\0221.google.cloud.ces.v1beta.ListConv" + + "ersationsRequest\0322.google.cloud.ces.v1be" + + "ta.ListConversationsResponse\"M\332A\006parent\202" + + "\323\344\223\002>\022\022*\022\022* * * @deprecated google.cloud.ces.v1beta.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. - * See google/cloud/ces/v1beta/app.proto;l=313 + * See google/cloud/ces/v1beta/app.proto;l=410 * @return Whether the prebuiltAmbientNoise field is set. */ @java.lang.Deprecated @@ -354,7 +354,7 @@ public boolean hasPrebuiltAmbientNoise() { * * * @deprecated google.cloud.ces.v1beta.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. - * See google/cloud/ces/v1beta/app.proto;l=313 + * See google/cloud/ces/v1beta/app.proto;l=410 * @return The enum numeric value on the wire for prebuiltAmbientNoise. */ @java.lang.Deprecated @@ -378,7 +378,7 @@ public int getPrebuiltAmbientNoiseValue() { * * * @deprecated google.cloud.ces.v1beta.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. - * See google/cloud/ces/v1beta/app.proto;l=313 + * See google/cloud/ces/v1beta/app.proto;l=410 * @return The prebuiltAmbientNoise. */ @java.lang.Deprecated @@ -1067,7 +1067,7 @@ public Builder clearSource() { * * * @deprecated google.cloud.ces.v1beta.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. - * See google/cloud/ces/v1beta/app.proto;l=313 + * See google/cloud/ces/v1beta/app.proto;l=410 * @return Whether the prebuiltAmbientNoise field is set. */ @java.lang.Override @@ -1089,7 +1089,7 @@ public boolean hasPrebuiltAmbientNoise() { * * * @deprecated google.cloud.ces.v1beta.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. - * See google/cloud/ces/v1beta/app.proto;l=313 + * See google/cloud/ces/v1beta/app.proto;l=410 * @return The enum numeric value on the wire for prebuiltAmbientNoise. */ @java.lang.Override @@ -1114,7 +1114,7 @@ public int getPrebuiltAmbientNoiseValue() { * * * @deprecated google.cloud.ces.v1beta.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. - * See google/cloud/ces/v1beta/app.proto;l=313 + * See google/cloud/ces/v1beta/app.proto;l=410 * @param value The enum numeric value on the wire for prebuiltAmbientNoise to set. * @return This builder for chaining. */ @@ -1139,7 +1139,7 @@ public Builder setPrebuiltAmbientNoiseValue(int value) { * * * @deprecated google.cloud.ces.v1beta.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. - * See google/cloud/ces/v1beta/app.proto;l=313 + * See google/cloud/ces/v1beta/app.proto;l=410 * @return The prebuiltAmbientNoise. */ @java.lang.Override @@ -1171,7 +1171,7 @@ public Builder setPrebuiltAmbientNoiseValue(int value) { * * * @deprecated google.cloud.ces.v1beta.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. - * See google/cloud/ces/v1beta/app.proto;l=313 + * See google/cloud/ces/v1beta/app.proto;l=410 * @param value The prebuiltAmbientNoise to set. * @return This builder for chaining. */ @@ -1200,7 +1200,7 @@ public Builder setPrebuiltAmbientNoise( * * * @deprecated google.cloud.ces.v1beta.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. - * See google/cloud/ces/v1beta/app.proto;l=313 + * See google/cloud/ces/v1beta/app.proto;l=410 * @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/AmbientSoundConfigOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AmbientSoundConfigOrBuilder.java index 3bc3be3c7aff..eb2e635e0552 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AmbientSoundConfigOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AmbientSoundConfigOrBuilder.java @@ -39,7 +39,7 @@ public interface AmbientSoundConfigOrBuilder * * * @deprecated google.cloud.ces.v1beta.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. - * See google/cloud/ces/v1beta/app.proto;l=313 + * See google/cloud/ces/v1beta/app.proto;l=410 * @return Whether the prebuiltAmbientNoise field is set. */ @java.lang.Deprecated @@ -58,7 +58,7 @@ public interface AmbientSoundConfigOrBuilder * * * @deprecated google.cloud.ces.v1beta.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. - * See google/cloud/ces/v1beta/app.proto;l=313 + * See google/cloud/ces/v1beta/app.proto;l=410 * @return The enum numeric value on the wire for prebuiltAmbientNoise. */ @java.lang.Deprecated @@ -77,7 +77,7 @@ public interface AmbientSoundConfigOrBuilder * * * @deprecated google.cloud.ces.v1beta.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. - * See google/cloud/ces/v1beta/app.proto;l=313 + * See google/cloud/ces/v1beta/app.proto;l=410 * @return The prebuiltAmbientNoise. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/App.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/App.java index c378c0b663aa..3b08c78806bb 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/App.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/App.java @@ -3252,6 +3252,68 @@ public com.google.protobuf.ByteString getValidationErrorsBytes(int index) { return validationErrors_.getByteString(index); } + public static final int DASHBOARD_SETTINGS_FIELD_NUMBER = 43; + private com.google.cloud.ces.v1beta.DashboardSettings dashboardSettings_; + + /** + * + * + *
+   * Optional. App-specific dashboard settings for linking and configuring
+   * Contact Center Insights dashboards.
+   * 
+ * + * + * .google.cloud.ces.v1beta.DashboardSettings dashboard_settings = 43 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dashboardSettings field is set. + */ + @java.lang.Override + public boolean hasDashboardSettings() { + return ((bitField0_ & 0x00004000) != 0); + } + + /** + * + * + *
+   * Optional. App-specific dashboard settings for linking and configuring
+   * Contact Center Insights dashboards.
+   * 
+ * + * + * .google.cloud.ces.v1beta.DashboardSettings dashboard_settings = 43 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dashboardSettings. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.DashboardSettings getDashboardSettings() { + return dashboardSettings_ == null + ? com.google.cloud.ces.v1beta.DashboardSettings.getDefaultInstance() + : dashboardSettings_; + } + + /** + * + * + *
+   * Optional. App-specific dashboard settings for linking and configuring
+   * Contact Center Insights dashboards.
+   * 
+ * + * + * .google.cloud.ces.v1beta.DashboardSettings dashboard_settings = 43 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.DashboardSettingsOrBuilder getDashboardSettingsOrBuilder() { + return dashboardSettings_ == null + ? com.google.cloud.ces.v1beta.DashboardSettings.getDefaultInstance() + : dashboardSettings_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -3357,6 +3419,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < validationErrors_.size(); i++) { com.google.protobuf.GeneratedMessage.writeString(output, 39, validationErrors_.getRaw(i)); } + if (((bitField0_ & 0x00004000) != 0)) { + output.writeMessage(43, getDashboardSettings()); + } getUnknownFields().writeTo(output); } @@ -3487,6 +3552,9 @@ public int getSerializedSize() { size += dataSize; size += 2 * getValidationErrorsList().size(); } + if (((bitField0_ & 0x00004000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(43, getDashboardSettings()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -3577,6 +3645,10 @@ public boolean equals(final java.lang.Object obj) { if (!getEvaluationSettings().equals(other.getEvaluationSettings())) return false; } if (!getValidationErrorsList().equals(other.getValidationErrorsList())) return false; + if (hasDashboardSettings() != other.hasDashboardSettings()) return false; + if (hasDashboardSettings()) { + if (!getDashboardSettings().equals(other.getDashboardSettings())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3688,6 +3760,10 @@ public int hashCode() { hash = (37 * hash) + VALIDATION_ERRORS_FIELD_NUMBER; hash = (53 * hash) + getValidationErrorsList().hashCode(); } + if (hasDashboardSettings()) { + hash = (37 * hash) + DASHBOARD_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getDashboardSettings().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -3869,6 +3945,7 @@ private void maybeForceBuilderInitialization() { internalGetVpcScSettingsFieldBuilder(); internalGetEvaluationPersonasFieldBuilder(); internalGetEvaluationSettingsFieldBuilder(); + internalGetDashboardSettingsFieldBuilder(); } } @@ -3980,6 +4057,11 @@ public Builder clear() { evaluationSettingsBuilder_ = null; } validationErrors_ = com.google.protobuf.LazyStringArrayList.emptyList(); + dashboardSettings_ = null; + if (dashboardSettingsBuilder_ != null) { + dashboardSettingsBuilder_.dispose(); + dashboardSettingsBuilder_ = null; + } return this; } @@ -4172,6 +4254,13 @@ private void buildPartial0(com.google.cloud.ces.v1beta.App result) { validationErrors_.makeImmutable(); result.validationErrors_ = validationErrors_; } + if (((from_bitField0_ & 0x40000000) != 0)) { + result.dashboardSettings_ = + dashboardSettingsBuilder_ == null + ? dashboardSettings_ + : dashboardSettingsBuilder_.build(); + to_bitField0_ |= 0x00004000; + } result.bitField0_ |= to_bitField0_; } @@ -4375,6 +4464,9 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.App other) { } onChanged(); } + if (other.hasDashboardSettings()) { + mergeDashboardSettings(other.getDashboardSettings()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -4628,6 +4720,13 @@ public Builder mergeFrom( validationErrors_.add(s); break; } // case 314 + case 346: + { + input.readMessage( + internalGetDashboardSettingsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x40000000; + break; + } // case 346 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -10546,6 +10645,229 @@ public Builder addValidationErrorsBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.cloud.ces.v1beta.DashboardSettings dashboardSettings_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.DashboardSettings, + com.google.cloud.ces.v1beta.DashboardSettings.Builder, + com.google.cloud.ces.v1beta.DashboardSettingsOrBuilder> + dashboardSettingsBuilder_; + + /** + * + * + *
+     * Optional. App-specific dashboard settings for linking and configuring
+     * Contact Center Insights dashboards.
+     * 
+ * + * + * .google.cloud.ces.v1beta.DashboardSettings dashboard_settings = 43 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dashboardSettings field is set. + */ + public boolean hasDashboardSettings() { + return ((bitField0_ & 0x40000000) != 0); + } + + /** + * + * + *
+     * Optional. App-specific dashboard settings for linking and configuring
+     * Contact Center Insights dashboards.
+     * 
+ * + * + * .google.cloud.ces.v1beta.DashboardSettings dashboard_settings = 43 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dashboardSettings. + */ + public com.google.cloud.ces.v1beta.DashboardSettings getDashboardSettings() { + if (dashboardSettingsBuilder_ == null) { + return dashboardSettings_ == null + ? com.google.cloud.ces.v1beta.DashboardSettings.getDefaultInstance() + : dashboardSettings_; + } else { + return dashboardSettingsBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. App-specific dashboard settings for linking and configuring
+     * Contact Center Insights dashboards.
+     * 
+ * + * + * .google.cloud.ces.v1beta.DashboardSettings dashboard_settings = 43 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDashboardSettings(com.google.cloud.ces.v1beta.DashboardSettings value) { + if (dashboardSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dashboardSettings_ = value; + } else { + dashboardSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x40000000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. App-specific dashboard settings for linking and configuring
+     * Contact Center Insights dashboards.
+     * 
+ * + * + * .google.cloud.ces.v1beta.DashboardSettings dashboard_settings = 43 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDashboardSettings( + com.google.cloud.ces.v1beta.DashboardSettings.Builder builderForValue) { + if (dashboardSettingsBuilder_ == null) { + dashboardSettings_ = builderForValue.build(); + } else { + dashboardSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x40000000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. App-specific dashboard settings for linking and configuring
+     * Contact Center Insights dashboards.
+     * 
+ * + * + * .google.cloud.ces.v1beta.DashboardSettings dashboard_settings = 43 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDashboardSettings(com.google.cloud.ces.v1beta.DashboardSettings value) { + if (dashboardSettingsBuilder_ == null) { + if (((bitField0_ & 0x40000000) != 0) + && dashboardSettings_ != null + && dashboardSettings_ + != com.google.cloud.ces.v1beta.DashboardSettings.getDefaultInstance()) { + getDashboardSettingsBuilder().mergeFrom(value); + } else { + dashboardSettings_ = value; + } + } else { + dashboardSettingsBuilder_.mergeFrom(value); + } + if (dashboardSettings_ != null) { + bitField0_ |= 0x40000000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. App-specific dashboard settings for linking and configuring
+     * Contact Center Insights dashboards.
+     * 
+ * + * + * .google.cloud.ces.v1beta.DashboardSettings dashboard_settings = 43 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDashboardSettings() { + bitField0_ = (bitField0_ & ~0x40000000); + dashboardSettings_ = null; + if (dashboardSettingsBuilder_ != null) { + dashboardSettingsBuilder_.dispose(); + dashboardSettingsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. App-specific dashboard settings for linking and configuring
+     * Contact Center Insights dashboards.
+     * 
+ * + * + * .google.cloud.ces.v1beta.DashboardSettings dashboard_settings = 43 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.DashboardSettings.Builder getDashboardSettingsBuilder() { + bitField0_ |= 0x40000000; + onChanged(); + return internalGetDashboardSettingsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. App-specific dashboard settings for linking and configuring
+     * Contact Center Insights dashboards.
+     * 
+ * + * + * .google.cloud.ces.v1beta.DashboardSettings dashboard_settings = 43 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.DashboardSettingsOrBuilder getDashboardSettingsOrBuilder() { + if (dashboardSettingsBuilder_ != null) { + return dashboardSettingsBuilder_.getMessageOrBuilder(); + } else { + return dashboardSettings_ == null + ? com.google.cloud.ces.v1beta.DashboardSettings.getDefaultInstance() + : dashboardSettings_; + } + } + + /** + * + * + *
+     * Optional. App-specific dashboard settings for linking and configuring
+     * Contact Center Insights dashboards.
+     * 
+ * + * + * .google.cloud.ces.v1beta.DashboardSettings dashboard_settings = 43 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.DashboardSettings, + com.google.cloud.ces.v1beta.DashboardSettings.Builder, + com.google.cloud.ces.v1beta.DashboardSettingsOrBuilder> + internalGetDashboardSettingsFieldBuilder() { + if (dashboardSettingsBuilder_ == null) { + dashboardSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.DashboardSettings, + com.google.cloud.ces.v1beta.DashboardSettings.Builder, + com.google.cloud.ces.v1beta.DashboardSettingsOrBuilder>( + getDashboardSettings(), getParentForChildren(), isClean()); + dashboardSettings_ = null; + } + return dashboardSettingsBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.App) } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AppOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AppOrBuilder.java index 77af5f966e96..00a74fd7eb34 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AppOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AppOrBuilder.java @@ -1280,4 +1280,50 @@ java.lang.String getMetadataOrDefault( * @return The bytes of the validationErrors at the given index. */ com.google.protobuf.ByteString getValidationErrorsBytes(int index); + + /** + * + * + *
+   * Optional. App-specific dashboard settings for linking and configuring
+   * Contact Center Insights dashboards.
+   * 
+ * + * + * .google.cloud.ces.v1beta.DashboardSettings dashboard_settings = 43 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dashboardSettings field is set. + */ + boolean hasDashboardSettings(); + + /** + * + * + *
+   * Optional. App-specific dashboard settings for linking and configuring
+   * Contact Center Insights dashboards.
+   * 
+ * + * + * .google.cloud.ces.v1beta.DashboardSettings dashboard_settings = 43 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dashboardSettings. + */ + com.google.cloud.ces.v1beta.DashboardSettings getDashboardSettings(); + + /** + * + * + *
+   * Optional. App-specific dashboard settings for linking and configuring
+   * Contact Center Insights dashboards.
+   * 
+ * + * + * .google.cloud.ces.v1beta.DashboardSettings dashboard_settings = 43 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1beta.DashboardSettingsOrBuilder getDashboardSettingsOrBuilder(); } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AppProto.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AppProto.java index ba64dc486cd0..adb5b2df3cf1 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AppProto.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AppProto.java @@ -52,6 +52,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_ces_v1beta_App_MetadataEntry_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_ces_v1beta_App_MetadataEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_DashboardSettings_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_DashboardSettings_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_ces_v1beta_TimeZoneSettings_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -60,6 +64,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_ces_v1beta_LanguageSettings_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_ces_v1beta_LanguageSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_CustomVoiceSample_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_CustomVoiceSample_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_CustomVoiceSample_Warning_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_CustomVoiceSample_Warning_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_ces_v1beta_AudioProcessingConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -185,7 +197,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "proto\0327google/cloud/ces/v1beta/evaluation_metrics_config.proto\032#google/cloud/ces" + "/v1beta/fakes.proto\032(google/cloud/ces/v1beta/golden_run.proto\032$google/cloud/ces/" + "v1beta/schema.proto\032\036google/protobuf/dur" - + "ation.proto\032\037google/protobuf/timestamp.proto\"\243\021\n" + + "ation.proto\032\037google/protobuf/timestamp.proto\"\361\021\n" + "\003App\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\010\022\032\n" + "\014display_name\030\002 \001(\tB\004\342A\001\002\022\031\n" @@ -238,7 +250,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\0132*.google.cloud.ces.v1beta.EvaluationPersonaB\004\342A\001\001\022N\n" + "\023evaluation_settings\030!" + " \001(\0132+.google.cloud.ces.v1beta.EvaluationSettingsB\004\342A\001\001\022\037\n" - + "\021validation_errors\030\' \003(\tB\004\342A\001\003\032{\n" + + "\021validation_errors\030\' \003(\tB\004\342A\001\003\022L\n" + + "\022dashboard_settings\030+" + + " \001(\0132*.google.cloud.ces.v1beta.DashboardSettingsB\004\342A\001\001\032{\n" + "\023VariableDeclaration\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\002\022\031\n" + "\013description\030\002 \001(\tB\004\342A\001\002\0225\n" @@ -251,31 +265,59 @@ 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\0222pro" - + "jects/{project}/locations/{location}/apps/{app}*\004apps2\003app\"+\n" + + "\026ces.googleapis.com/App\0222proje" + + "cts/{project}/locations/{location}/apps/{app}*\004apps2\003app\"g\n" + + "\021DashboardSettings\022R\n" + + "\021default_dashboard\030\001 \001(\tB7\342A\001\001\372A0\n" + + ".contactcenterinsights.googleapis.com/Dashboard\"+\n" + "\020TimeZoneSettings\022\027\n" + "\ttime_zone\030\001 \001(\tB\004\342A\001\001\"\253\001\n" + "\020LanguageSettings\022#\n" + "\025default_language_code\030\001 \001(\tB\004\342A\001\001\022&\n" + "\030supported_language_codes\030\002 \003(\tB\004\342A\001\001\022)\n" + "\033enable_multilingual_support\030\003 \001(\010B\004\342A\001\001\022\037\n" - + "\017fallback_action\030\004 \001(\tB\006\030\001\342A\001\001\"\323\003\n" + + "\017fallback_action\030\004 \001(\tB\006\030\001\342A\001\001\"\305\005\n" + + "\021CustomVoiceSample\022\022\n" + + "\004name\030\001 \001(\tB\004\342A\001\001\022\"\n" + + "\024voice_sample_gcs_uri\030\002 \001(\tB\004\342A\001\001\022#\n" + + "\025consent_audio_gcs_uri\030\003 \001(\tB\004\342A\001\001\022\037\n" + + "\021voice_instruction\030\004 \001(\tB\004\342A\001\001\022#\n" + + "\025preview_audio_content\030\005 \001(\014B\004\342A\001\003\022\032\n" + + "\014preview_text\030\006 \001(\tB\004\342A\001\001\022J\n" + + "\010warnings\030\007" + + " \003(\01322.google.cloud.ces.v1beta.CustomVoiceSample.WarningB\004\342A\001\003\022e\n" + + "\026voice_instruction_mode\030\010 \001(\0162?.google.cloud.ces" + + ".v1beta.CustomVoiceSample.VoiceInstructionModeB\004\342A\001\001\032\266\001\n" + + "\007Warning\022\025\n" + + "\007message\030\001 \001(\tB\004\342A\001\003\022R\n" + + "\004type\030\002 \001(\0162>.google.cloud.ces" + + ".v1beta.CustomVoiceSample.Warning.WarningTypeB\004\342A\001\003\"@\n" + + "\013WarningType\022\034\n" + + "\030WARNING_TYPE_UNSPECIFIED\020\000\022\023\n" + + "\017LOW_AUDIO_LEVEL\020\001\"\204\001\n" + + "\024VoiceInstructionMode\022&\n" + + "\"VOICE_INSTRUCTION_MODE_UNSPECIFIED\020\000\022\022\n" + + "\016NO_INSTRUCTION\020\001\022\030\n" + + "\024GENERATE_INSTRUCTION\020\002\022\026\n" + + "\022CUSTOM_INSTRUCTION\020\003\"\243\004\n" + "\025AudioProcessingConfig\022t\n" - + "\031synthesize_speech_configs\030\001 \003(\0132K.google.cloud.ces.v1" - + "beta.AudioProcessingConfig.SynthesizeSpeechConfigsEntryB\004\342A\001\001\022E\n" + + "\031synthesize_speech_configs\030\001 \003(\0132K.goog" + + "le.cloud.ces.v1beta.AudioProcessingConfig.SynthesizeSpeechConfigsEntryB\004\342A\001\001\022E\n" + "\017barge_in_config\030\003" + " \001(\0132&.google.cloud.ces.v1beta.BargeInConfigB\004\342A\001\001\022;\n" + "\022inactivity_timeout\030\004" + " \001(\0132\031.google.protobuf.DurationB\004\342A\001\001\022O\n" - + "\024ambient_sound_config\030\005" - + " \001(\0132+.google.cloud.ces.v1beta.AmbientSoundConfigB\004\342A\001\001\032o\n" + + "\024ambient_sound_config\030\005 \001(\0132+" + + ".google.cloud.ces.v1beta.AmbientSoundConfigB\004\342A\001\001\022N\n" + + "\024custom_voice_samples\030\n" + + " \003(\0132*.google.cloud.ces.v1beta.CustomVoiceSampleB\004\342A\001\001\032o\n" + "\034SynthesizeSpeechConfigsEntry\022\013\n" + "\003key\030\001 \001(\t\022>\n" - + "\005value\030\002" - + " \001(\0132/.google.cloud.ces.v1beta.SynthesizeSpeechConfig:\0028\001\"\335\002\n" + + "\005value\030\002 \001(\0132/.google.c" + + "loud.ces.v1beta.SynthesizeSpeechConfig:\0028\001\"\335\002\n" + "\022AmbientSoundConfig\022j\n" - + "\026prebuilt_ambient_noise\030\001 \001(\0162@.google.cloud.ces.v1beta.AmbientSoun" - + "dConfig.PrebuiltAmbientNoiseB\006\030\001\342A\001\001H\000\022\027\n" + + "\026prebuilt_ambient_noise\030\001 \001(\0162@.google.cloud.ces.v1b" + + "eta.AmbientSoundConfig.PrebuiltAmbientNoiseB\006\030\001\342A\001\001H\000\022\027\n" + "\007gcs_uri\030\002 \001(\tB\004\342A\001\001H\000\022&\n" + "\026prebuilt_ambient_sound\030\004 \001(\tB\004\342A\001\001H\000\022\034\n" + "\016volume_gain_db\030\003 \001(\001B\004\342A\001\001\"r\n" @@ -295,36 +337,39 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005model\030\004 \001(\tB\004\342A\001\001\022\031\n" + "\013instruction\030\005 \001(\tB\004\342A\001\001\"=\n" + "\026MetricAnalysisSettings\022#\n" - + "\025llm_metrics_opted_out\030\001 \001(\010B\004\342A\001\001\"\276\006\n" + + "\025llm_metrics_opted_out\030\001 \001(\010B\004\342A\001\001\"\350\006\n" + "\017LoggingSettings\022H\n" + "\020redaction_config\030\001" + " \001(\0132(.google.cloud.ces.v1beta.RedactionConfigB\004\342A\001\001\022S\n" - + "\026audio_recording_config\030\002" - + " \001(\0132-.google.cloud.ces.v1beta.AudioRecordingConfigB\004\342A\001\001\022^\n" - + "!unredacted_audio_recording_config\030\010 \001(\0132-.google." - + "cloud.ces.v1beta.AudioRecordingConfigB\004\342A\001\001\022W\n" - + "\030bigquery_export_settings\030\003 \001(\0132/." - + "google.cloud.ces.v1beta.BigQueryExportSettingsB\004\342A\001\001\022b\n" - + "#unredacted_bigquery_export_settings\030\t" - + " \001(\0132/.google.cloud.ces.v1beta.BigQueryExportSettingsB\004\342A\001\001\022S\n" - + "\026cloud_logging_settings\030\004" - + " \001(\0132-.google.cloud.ces.v1beta.CloudLoggingSettingsB\004\342A\001\001\022a\n" - + "\035conversation_logging_settings\030\005 \001(\01324.g" - + "oogle.cloud.ces.v1beta.ConversationLoggingSettingsB\004\342A\001\001\022^\n" - + "!evaluation_audio_recording_config\030\006" + + "\026audio_recording_config\030\002 \001(\0132-.google.c" + + "loud.ces.v1beta.AudioRecordingConfigB\004\342A\001\001\022^\n" + + "!unredacted_audio_recording_config\030\010" + " \001(\0132-.google.cloud.ces.v1beta.AudioRecordingConfigB\004\342A\001\001\022W\n" - + "\030metric_analysis_settings\030\007 \001(\0132/.google.clou" - + "d.ces.v1beta.MetricAnalysisSettingsB\004\342A\001\001\"\243\006\n" + + "\030bigquery_export_settings\030\003" + + " \001(\0132/.google.cloud.ces.v1beta.BigQueryExportSettingsB\004\342A\001\001\022b\n" + + "#unredacted_bigquery_export_settings\030\t \001(\0132/.googl" + + "e.cloud.ces.v1beta.BigQueryExportSettingsB\004\342A\001\001\022S\n" + + "\026cloud_logging_settings\030\004 \001(\0132" + + "-.google.cloud.ces.v1beta.CloudLoggingSettingsB\004\342A\001\001\022a\n" + + "\035conversation_logging_settings\030\005" + + " \001(\01324.google.cloud.ces.v1beta.ConversationLoggingSettingsB\004\342A\001\001\022^\n" + + "!evaluation_audio_recording_config\030\006 \001(\0132-.goo" + + "gle.cloud.ces.v1beta.AudioRecordingConfigB\004\342A\001\001\022W\n" + + "\030metric_analysis_settings\030\007 \001(" + + "\0132/.google.cloud.ces.v1beta.MetricAnalysisSettingsB\004\342A\001\001\022(\n" + + "\032required_recording_consent\030\n" + + " \001(\010B\004\342A\001\001\"\243\006\n" + "\025ErrorHandlingSettings\022k\n" - + "\027error_handling_strategy\030\001 \001(\0162D.google.cloud.ces." - + "v1beta.ErrorHandlingSettings.ErrorHandlingStrategyB\004\342A\001\001\022m\n" - + "\030fallback_response_config\030\002 \001(\0132E.google.cloud.ces.v1beta.Err" - + "orHandlingSettings.FallbackResponseConfigB\004\342A\001\001\022a\n" - + "\022end_session_config\030\003 \001(\0132?.go" - + "ogle.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfigB\004\342A\001\001\032\210\002\n" + + "\027error_handling_strategy\030\001 \001(\0162D." + + "google.cloud.ces.v1beta.ErrorHandlingSettings.ErrorHandlingStrategyB\004\342A\001\001\022m\n" + + "\030fallback_response_config\030\002 \001(\0132E.google.clo" + + "ud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfigB\004\342A\001\001\022a\n" + + "\022end_session_config\030\003 \001(\0132?.google.cloud.ces.v1beta.E" + + "rrorHandlingSettings.EndSessionConfigB\004\342A\001\001\032\210\002\n" + "\026FallbackResponseConfig\022\211\001\n" - + "\030custom_fallback_messages\030\001 \003(\0132a.google.cloud.ces.v1beta.Error" - + "HandlingSettings.FallbackResponseConfig.CustomFallbackMessagesEntryB\004\342A\001\001\022#\n" + + "\030custom_fallback_messages\030\001 \003(\0132a.google.cloud" + + ".ces.v1beta.ErrorHandlingSettings.Fallba" + + "ckResponseConfig.CustomFallbackMessagesEntryB\004\342A\001\001\022#\n" + "\025max_fallback_attempts\030\002 \001(\005B\004\342A\001\001\032=\n" + "\033CustomFallbackMessagesEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -338,33 +383,33 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021FALLBACK_RESPONSE\020\002\022\017\n" + "\013END_SESSION\020\003\"\264\020\n" + "\033EvaluationMetricsThresholds\022\212\001\n" - + "$golden_evaluation_metrics_thresholds\030\001" - + " \001(\0132V.google.cloud.ces.v1beta.Evaluat" - + "ionMetricsThresholds.GoldenEvaluationMetricsThresholdsB\004\342A\001\001\022\177\n" - + "\035hallucination_metric_behavior\030\003 \001(\0162P.google.cloud.ces.v" - + "1beta.EvaluationMetricsThresholds.HallucinationMetricBehaviorB\006\030\001\342A\001\001\022\204\001\n" - + "$golden_hallucination_metric_behavior\030\005 \001(\0162P.g" + + "$golden_evaluation_metrics_thresholds\030\001 \001(\0132V.google.cloud.c" + + "es.v1beta.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholdsB\004\342A\001\001\022\177\n" + + "\035hallucination_metric_behavior\030\003 \001(\0162P.g" + "oogle.cloud.ces.v1beta.EvaluationMetrics" - + "Thresholds.HallucinationMetricBehaviorB\004\342A\001\001\022\206\001\n" - + "&scenario_hallucination_metric_behavior\030\004 \001(\0162P.google.cloud.ces.v1beta." - + "EvaluationMetricsThresholds.HallucinationMetricBehaviorB\004\342A\001\001\032\222\t\n" + + "Thresholds.HallucinationMetricBehaviorB\006\030\001\342A\001\001\022\204\001\n" + + "$golden_hallucination_metric_behavior\030\005 \001(\0162P.google.cloud.ces.v1beta." + + "EvaluationMetricsThresholds.HallucinationMetricBehaviorB\004\342A\001\001\022\206\001\n" + + "&scenario_hallucination_metric_behavior\030\004 \001(\0162P.google." + + "cloud.ces.v1beta.EvaluationMetricsThresh" + + "olds.HallucinationMetricBehaviorB\004\342A\001\001\032\222\t\n" + "!GoldenEvaluationMetricsThresholds\022\236\001\n" - + "\035turn_level_metrics_thresholds\030\001 \001(\0132q.google.cloud.ces.v" - + "1beta.EvaluationMetricsThresholds.Golden" - + "EvaluationMetricsThresholds.TurnLevelMetricsThresholdsB\004\342A\001\001\022\254\001\n" - + "$expectation_level_metrics_thresholds\030\002 \001(\0132x.google.clo" - + "ud.ces.v1beta.EvaluationMetricsThreshold" - + "s.GoldenEvaluationMetricsThresholds.ExpectationLevelMetricsThresholdsB\004\342A\001\001\022o\n" - + "\026tool_matching_settings\030\003 \001(\0132I.google.clo" - + "ud.ces.v1beta.EvaluationMetricsThresholds.ToolMatchingSettingsB\004\342A\001\001\032\215\004\n" + + "\035turn_level_metrics_thresholds\030\001 \001(\0132q.g" + + "oogle.cloud.ces.v1beta.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresh" + + "olds.TurnLevelMetricsThresholdsB\004\342A\001\001\022\254\001\n" + + "$expectation_level_metrics_thresholds\030\002" + + " \001(\0132x.google.cloud.ces.v1beta.EvaluationMetricsThresholds.GoldenEvaluationMetri" + + "csThresholds.ExpectationLevelMetricsThresholdsB\004\342A\001\001\022o\n" + + "\026tool_matching_settings\030\003 \001(\0132I.google.cloud.ces.v1beta.Evaluatio" + + "nMetricsThresholds.ToolMatchingSettingsB\004\342A\001\001\032\215\004\n" + "\032TurnLevelMetricsThresholds\0228\n" + "%semantic_similarity_success_threshold\030\001" + " \001(\005B\004\342A\001\001H\000\210\001\001\022@\n" + "-overall_tool_invocation_correctness_threshold\030\002" + " \001(\002B\004\342A\001\001H\001\210\001\001\022\267\001\n" - + "\033semantic_similarity_channel\030\003 \001(\0162\213\001.google.cloud.ce" - + "s.v1beta.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.TurnLevel" - + "MetricsThresholds.SemanticSimilarityChannelB\004\342A\001\001\"]\n" + + "\033semantic_similarity_channel\030\003 \001(\0162\213" + + "\001.google.cloud.ces.v1beta.EvaluationMetricsThresholds.GoldenEvaluationMetricsThr" + + "esholds.TurnLevelMetricsThresholds.SemanticSimilarityChannelB\004\342A\001\001\"]\n" + "\031SemanticSimilarityChannel\022+\n" + "\'SEMANTIC_SIMILARITY_CHANNEL_UNSPECIFIED\020\000\022\010\n" + "\004TEXT\020\001\022\t\n" @@ -376,8 +421,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\002B\004\342A\001\001H\000\210\001\001B2\n" + "0_tool_invocation_parameter_correctness_threshold\032\370\001\n" + "\024ToolMatchingSettings\022\207\001\n" - + "\030extra_tool_call_behavior\030\001 \001(\0162_.google.cloud.ces.v1beta" - + ".EvaluationMetricsThresholds.ToolMatchingSettings.ExtraToolCallBehaviorB\004\342A\001\001\"V\n" + + "\030extra_tool_call_behavior\030\001 \001(\0162_.google" + + ".cloud.ces.v1beta.EvaluationMetricsThres" + + "holds.ToolMatchingSettings.ExtraToolCallBehaviorB\004\342A\001\001\"V\n" + "\025ExtraToolCallBehavior\022(\n" + "$EXTRA_TOOL_CALL_BEHAVIOR_UNSPECIFIED\020\000\022\010\n" + "\004FAIL\020\001\022\t\n" @@ -387,20 +433,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010DISABLED\020\001\022\013\n" + "\007ENABLED\020\002\"\246\007\n" + "\022EvaluationSettings\022x\n" - + "\037scenario_conversation_initiator\030\001 \001(\0162I.google.cloud.ces.v1beta" - + ".EvaluationSettings.ScenarioConversationInitiatorB\004\342A\001\001\022I\n" - + "\021golden_run_method\030\004 \001" - + "(\0162(.google.cloud.ces.v1beta.GoldenRunMethodB\004\342A\001\001\022i\n" - + "%golden_evaluation_tool_call_behaviour\030\002" - + " \001(\01624.google.cloud.ces.v1beta.EvaluationToolCallBehaviourB\004\342A\001\001\022k\n" - + "\'scenario_evaluation_tool_call_behaviour\030\003" - + " \001(\01624.google.cloud.ces.v1beta.EvaluationToolCallBehaviourB\004\342A\001\001\022N\n" - + "\016metrics_config\030\005" - + " \001(\01320.google.cloud.ces.v1beta.EvaluationMetricsConfigB\004\342A\001\001\022h\n" - + "\027scenario_execution_mode\030\006 \001(\0162A.google.cloud.ces.v" - + "1beta.EvaluationSettings.ScenarioExecutionModeB\004\342A\001\001\022d\n" - + "\037evaluation_run_caching_settings\030\007" - + " \001(\01325.google.cloud.ces.v1beta.EvaluationRunCachingSettingsB\004\342A\001\001\"e\n" + + "\037scenario_conversation_initiator\030\001 \001(\0162I.google" + + ".cloud.ces.v1beta.EvaluationSettings.ScenarioConversationInitiatorB\004\342A\001\001\022I\n" + + "\021golden_run_method\030\004" + + " \001(\0162(.google.cloud.ces.v1beta.GoldenRunMethodB\004\342A\001\001\022i\n" + + "%golden_evaluation_tool_call_behaviour\030\002 \001(\01624.goo" + + "gle.cloud.ces.v1beta.EvaluationToolCallBehaviourB\004\342A\001\001\022k\n" + + "\'scenario_evaluation_tool_call_behaviour\030\003 \001(\01624.google.cloud.c" + + "es.v1beta.EvaluationToolCallBehaviourB\004\342A\001\001\022N\n" + + "\016metrics_config\030\005 \001(\01320.google.clo" + + "ud.ces.v1beta.EvaluationMetricsConfigB\004\342A\001\001\022h\n" + + "\027scenario_execution_mode\030\006 \001(\0162A.g" + + "oogle.cloud.ces.v1beta.EvaluationSettings.ScenarioExecutionModeB\004\342A\001\001\022d\n" + + "\037evaluation_run_caching_settings\030\007 \001(\01325.google." + + "cloud.ces.v1beta.EvaluationRunCachingSettingsB\004\342A\001\001\"e\n" + "\035ScenarioConversationInitiator\022/\n" + "+SCENARIO_CONVERSATION_INITIATOR_UNSPECIFIED\020\000\022\010\n" + "\004USER\020\001\022\t\n" @@ -432,13 +478,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023deidentify_template\030\003 \001(\tB.\342A\001\001\372A\'\n" + "%dlp.googleapis.com/DeidentifyTemplate\"\276\002\n" + "\021DataStoreSettings\022H\n" - + "\007engines\030\003" - + " \003(\01321.google.cloud.ces.v1beta.DataStoreSettings.EngineB\004\342A\001\003\032\336\001\n" + + "\007engines\030\003 \003(\01321.google.cl" + + "oud.ces.v1beta.DataStoreSettings.EngineB\004\342A\001\003\032\336\001\n" + "\006Engine\022<\n" + "\004name\030\001 \001(\tB.\342A\001\003\372A\'\n" + "%discoveryengine.googleapis.com/Engine\022J\n" - + "\004type\030\002 \001(\01626.go" - + "ogle.cloud.ces.v1beta.DataStoreSettings.Engine.TypeB\004\342A\001\003\"J\n" + + "\004type\030\002" + + " \001(\01626.google.cloud.ces.v1beta.DataStoreSettings.Engine.TypeB\004\342A\001\003\"J\n" + "\004Type\022\024\n" + "\020TYPE_UNSPECIFIED\020\000\022\026\n" + "\022ENGINE_TYPE_SEARCH\020\001\022\024\n" @@ -448,29 +494,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013description\030\002 \001(\tB\004\342A\001\001\022\032\n" + "\014display_name\030\003 \001(\tB\004\342A\001\002\022\031\n" + "\013personality\030\004 \001(\tB\004\342A\001\002\022T\n\r" - + "speech_config\030\005 \001(\013" - + "27.google.cloud.ces.v1beta.EvaluationPersona.SpeechConfigB\004\342A\001\001\032\246\002\n" + + "speech_config\030\005 \001(\01327.google.cloud.ces.v1b" + + "eta.EvaluationPersona.SpeechConfigB\004\342A\001\001\032\246\002\n" + "\014SpeechConfig\022\033\n\r" + "speaking_rate\030\001 \001(\001B\004\342A\001\001\022h\n" - + "\013environment\030\002 \001(\0162M.google.cloud.ces.v1beta.Eva" - + "luationPersona.SpeechConfig.BackgroundEnvironmentB\004\342A\001\001\022\026\n" + + "\013environment\030\002 \001(\0162M.google.clo" + + "ud.ces.v1beta.EvaluationPersona.SpeechConfig.BackgroundEnvironmentB\004\342A\001\001\022\026\n" + "\010voice_id\030\003 \001(\tB\004\342A\001\001\"w\n" + "\025BackgroundEnvironment\022&\n" + "\"BACKGROUND_ENVIRONMENT_UNSPECIFIED\020\000\022\017\n" + "\013CALL_CENTER\020\003\022\013\n" + "\007TRAFFIC\020\004\022\016\n\n" + "KIDS_NOISE\020\005\022\010\n" - + "\004CAFE\020\006B\374\004\n" - + "\033com.google.cloud.ces.v1betaB\010AppPro" - + "toP\001Z-cloud.google.com/go/ces/apiv1beta/cespb;cespb\352A\310\001\n" - + "\"dlp.googleapis.com/InspectTemplate\022Uorganizations/{organization" - + "}/locations/{location}/inspectTemplates/{inspect_template}\022Kprojects/{project}/l" - + "ocations/{location}/inspectTemplates/{inspect_template}\352A\327\001\n" - + "%dlp.googleapis.com/DeidentifyTemplate\022[organizations/{organ" - + "ization}/locations/{location}/deidentifyTemplates/{deidentify_template}\022Qproject" - + "s/{project}/locations/{location}/deidentifyTemplates/{deidentify_template}\352Az\n" - + "%discoveryengine.googleapis.com/Engine\022Qprojects/{project}/locations/{location}/co" - + "llections/{collection}/engines/{engine}b\006proto3" + + "\004CAFE\020\006B\357\005\n" + + "\033com.google.cloud.c" + + "es.v1betaB\010AppProtoP\001Z-cloud.google.com/go/ces/apiv1beta/cespb;cespb\352A\310\001\n" + + "\"dlp.googleapis.com/InspectTemplate\022Uorganizati" + + "ons/{organization}/locations/{location}/inspectTemplates/{inspect_template}\022Kpro" + + "jects/{project}/locations/{location}/inspectTemplates/{inspect_template}\352A\327\001\n" + + "%dlp.googleapis.com/DeidentifyTemplate\022[organizations/{organization}/locations/{loc" + + "ation}/deidentifyTemplates/{deidentify_template}\022Qprojects/{project}/locations/{" + + "location}/deidentifyTemplates/{deidentify_template}\352Az\n" + + "%discoveryengine.googleapis.com/Engine\022Qprojects/{project}/locati" + + "ons/{location}/collections/{collection}/engines/{engine}\352Ap\n" + + ".contactcenterinsights.googleapis.com/Dashboard\022>projects/{p" + + "roject}/locations/{location}/dashboards/{dashboard}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -522,6 +570,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EvaluationPersonas", "EvaluationSettings", "ValidationErrors", + "DashboardSettings", }); internal_static_google_cloud_ces_v1beta_App_VariableDeclaration_descriptor = internal_static_google_cloud_ces_v1beta_App_descriptor.getNestedType(0); @@ -539,8 +588,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_ces_v1beta_TimeZoneSettings_descriptor = + internal_static_google_cloud_ces_v1beta_DashboardSettings_descriptor = getDescriptor().getMessageType(1); + internal_static_google_cloud_ces_v1beta_DashboardSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_DashboardSettings_descriptor, + new java.lang.String[] { + "DefaultDashboard", + }); + internal_static_google_cloud_ces_v1beta_TimeZoneSettings_descriptor = + getDescriptor().getMessageType(2); internal_static_google_cloud_ces_v1beta_TimeZoneSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_TimeZoneSettings_descriptor, @@ -548,7 +605,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TimeZone", }); internal_static_google_cloud_ces_v1beta_LanguageSettings_descriptor = - getDescriptor().getMessageType(2); + getDescriptor().getMessageType(3); internal_static_google_cloud_ces_v1beta_LanguageSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_LanguageSettings_descriptor, @@ -558,13 +615,40 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EnableMultilingualSupport", "FallbackAction", }); + internal_static_google_cloud_ces_v1beta_CustomVoiceSample_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_ces_v1beta_CustomVoiceSample_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_CustomVoiceSample_descriptor, + new java.lang.String[] { + "Name", + "VoiceSampleGcsUri", + "ConsentAudioGcsUri", + "VoiceInstruction", + "PreviewAudioContent", + "PreviewText", + "Warnings", + "VoiceInstructionMode", + }); + internal_static_google_cloud_ces_v1beta_CustomVoiceSample_Warning_descriptor = + internal_static_google_cloud_ces_v1beta_CustomVoiceSample_descriptor.getNestedType(0); + internal_static_google_cloud_ces_v1beta_CustomVoiceSample_Warning_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_CustomVoiceSample_Warning_descriptor, + new java.lang.String[] { + "Message", "Type", + }); internal_static_google_cloud_ces_v1beta_AudioProcessingConfig_descriptor = - getDescriptor().getMessageType(3); + getDescriptor().getMessageType(5); internal_static_google_cloud_ces_v1beta_AudioProcessingConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_AudioProcessingConfig_descriptor, new java.lang.String[] { - "SynthesizeSpeechConfigs", "BargeInConfig", "InactivityTimeout", "AmbientSoundConfig", + "SynthesizeSpeechConfigs", + "BargeInConfig", + "InactivityTimeout", + "AmbientSoundConfig", + "CustomVoiceSamples", }); internal_static_google_cloud_ces_v1beta_AudioProcessingConfig_SynthesizeSpeechConfigsEntry_descriptor = internal_static_google_cloud_ces_v1beta_AudioProcessingConfig_descriptor.getNestedType(0); @@ -575,7 +659,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_ces_v1beta_AmbientSoundConfig_descriptor = - getDescriptor().getMessageType(4); + getDescriptor().getMessageType(6); internal_static_google_cloud_ces_v1beta_AmbientSoundConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_AmbientSoundConfig_descriptor, @@ -583,7 +667,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PrebuiltAmbientNoise", "GcsUri", "PrebuiltAmbientSound", "VolumeGainDb", "Source", }); internal_static_google_cloud_ces_v1beta_BargeInConfig_descriptor = - getDescriptor().getMessageType(5); + getDescriptor().getMessageType(7); internal_static_google_cloud_ces_v1beta_BargeInConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_BargeInConfig_descriptor, @@ -591,7 +675,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DisableBargeIn", "BargeInAwareness", }); internal_static_google_cloud_ces_v1beta_SynthesizeSpeechConfig_descriptor = - getDescriptor().getMessageType(6); + getDescriptor().getMessageType(8); internal_static_google_cloud_ces_v1beta_SynthesizeSpeechConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_SynthesizeSpeechConfig_descriptor, @@ -599,7 +683,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Voice", "VoiceSampleGcsUri", "SpeakingRate", "Model", "Instruction", }); internal_static_google_cloud_ces_v1beta_MetricAnalysisSettings_descriptor = - getDescriptor().getMessageType(7); + getDescriptor().getMessageType(9); internal_static_google_cloud_ces_v1beta_MetricAnalysisSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_MetricAnalysisSettings_descriptor, @@ -607,7 +691,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "LlmMetricsOptedOut", }); internal_static_google_cloud_ces_v1beta_LoggingSettings_descriptor = - getDescriptor().getMessageType(8); + getDescriptor().getMessageType(10); internal_static_google_cloud_ces_v1beta_LoggingSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_LoggingSettings_descriptor, @@ -621,9 +705,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ConversationLoggingSettings", "EvaluationAudioRecordingConfig", "MetricAnalysisSettings", + "RequiredRecordingConsent", }); internal_static_google_cloud_ces_v1beta_ErrorHandlingSettings_descriptor = - getDescriptor().getMessageType(9); + getDescriptor().getMessageType(11); internal_static_google_cloud_ces_v1beta_ErrorHandlingSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_ErrorHandlingSettings_descriptor, @@ -656,7 +741,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EscalateSession", }); internal_static_google_cloud_ces_v1beta_EvaluationMetricsThresholds_descriptor = - getDescriptor().getMessageType(10); + getDescriptor().getMessageType(12); internal_static_google_cloud_ces_v1beta_EvaluationMetricsThresholds_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_EvaluationMetricsThresholds_descriptor, @@ -707,7 +792,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExtraToolCallBehavior", }); internal_static_google_cloud_ces_v1beta_EvaluationSettings_descriptor = - getDescriptor().getMessageType(11); + getDescriptor().getMessageType(13); internal_static_google_cloud_ces_v1beta_EvaluationSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_EvaluationSettings_descriptor, @@ -721,7 +806,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EvaluationRunCachingSettings", }); internal_static_google_cloud_ces_v1beta_ClientCertificateSettings_descriptor = - getDescriptor().getMessageType(12); + getDescriptor().getMessageType(14); internal_static_google_cloud_ces_v1beta_ClientCertificateSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_ClientCertificateSettings_descriptor, @@ -729,7 +814,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TlsCertificate", "PrivateKey", "Passphrase", }); internal_static_google_cloud_ces_v1beta_VpcScSettings_descriptor = - getDescriptor().getMessageType(13); + getDescriptor().getMessageType(15); internal_static_google_cloud_ces_v1beta_VpcScSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_VpcScSettings_descriptor, @@ -737,7 +822,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AllowedOrigins", }); internal_static_google_cloud_ces_v1beta_ConversationLoggingSettings_descriptor = - getDescriptor().getMessageType(14); + getDescriptor().getMessageType(16); internal_static_google_cloud_ces_v1beta_ConversationLoggingSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_ConversationLoggingSettings_descriptor, @@ -745,7 +830,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DisableConversationLogging", "RetentionWindow", }); internal_static_google_cloud_ces_v1beta_CloudLoggingSettings_descriptor = - getDescriptor().getMessageType(15); + getDescriptor().getMessageType(17); internal_static_google_cloud_ces_v1beta_CloudLoggingSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_CloudLoggingSettings_descriptor, @@ -753,7 +838,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EnableCloudLogging", }); internal_static_google_cloud_ces_v1beta_AudioRecordingConfig_descriptor = - getDescriptor().getMessageType(16); + getDescriptor().getMessageType(18); internal_static_google_cloud_ces_v1beta_AudioRecordingConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_AudioRecordingConfig_descriptor, @@ -761,7 +846,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GcsBucket", "GcsPathPrefix", }); internal_static_google_cloud_ces_v1beta_RedactionConfig_descriptor = - getDescriptor().getMessageType(17); + getDescriptor().getMessageType(19); internal_static_google_cloud_ces_v1beta_RedactionConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_RedactionConfig_descriptor, @@ -769,7 +854,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EnableRedaction", "InspectTemplate", "DeidentifyTemplate", }); internal_static_google_cloud_ces_v1beta_DataStoreSettings_descriptor = - getDescriptor().getMessageType(18); + getDescriptor().getMessageType(20); internal_static_google_cloud_ces_v1beta_DataStoreSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_DataStoreSettings_descriptor, @@ -785,7 +870,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Type", }); internal_static_google_cloud_ces_v1beta_EvaluationPersona_descriptor = - getDescriptor().getMessageType(19); + getDescriptor().getMessageType(21); internal_static_google_cloud_ces_v1beta_EvaluationPersona_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_EvaluationPersona_descriptor, diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AppVersion.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AppVersion.java index d71ca3ec99c3..3c07aa042fd1 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AppVersion.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AppVersion.java @@ -345,6 +345,58 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } + public static final int UPDATE_TIME_FIELD_NUMBER = 9; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
+   * Output only. Timestamp when the app version was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. Timestamp when the app version was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
+   * Output only. Timestamp when the app version was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + public static final int SNAPSHOT_FIELD_NUMBER = 8; private com.google.cloud.ces.v1beta.AppSnapshot snapshot_; @@ -363,7 +415,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { */ @java.lang.Override public boolean hasSnapshot() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** @@ -493,9 +545,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { com.google.protobuf.GeneratedMessage.writeString(output, 7, etag_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(8, getSnapshot()); } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(9, getUpdateTime()); + } getUnknownFields().writeTo(output); } @@ -523,9 +578,12 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(7, etag_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getSnapshot()); } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getUpdateTime()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -549,6 +607,10 @@ public boolean equals(final java.lang.Object obj) { 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 (hasSnapshot() != other.hasSnapshot()) return false; if (hasSnapshot()) { if (!getSnapshot().equals(other.getSnapshot())) return false; @@ -577,6 +639,10 @@ public int hashCode() { hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getCreateTime().hashCode(); } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } if (hasSnapshot()) { hash = (37 * hash) + SNAPSHOT_FIELD_NUMBER; hash = (53 * hash) + getSnapshot().hashCode(); @@ -727,6 +793,7 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); internalGetSnapshotFieldBuilder(); } } @@ -744,6 +811,11 @@ public Builder clear() { createTimeBuilder_.dispose(); createTimeBuilder_ = null; } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } snapshot_ = null; if (snapshotBuilder_ != null) { snapshotBuilder_.dispose(); @@ -804,10 +876,14 @@ private void buildPartial0(com.google.cloud.ces.v1beta.AppVersion result) { to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000020) != 0)) { - result.snapshot_ = snapshotBuilder_ == null ? snapshot_ : snapshotBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000040) != 0)) { + result.snapshot_ = snapshotBuilder_ == null ? snapshot_ : snapshotBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000080) != 0)) { result.etag_ = etag_; } result.bitField0_ |= to_bitField0_; @@ -848,12 +924,15 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.AppVersion other) { if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } if (other.hasSnapshot()) { mergeSnapshot(other.getSnapshot()); } if (!other.getEtag().isEmpty()) { etag_ = other.etag_; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -916,16 +995,23 @@ public Builder mergeFrom( case 58: { etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case 58 case 66: { input.readMessage( internalGetSnapshotFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 66 + case 74: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 74 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1611,6 +1697,218 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { return createTimeBuilder_; } + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
+     * Output only. Timestamp when the app version was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * Output only. Timestamp when the app version was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Timestamp when the app version was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Timestamp when the app version was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Timestamp when the app version was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Timestamp when the app version was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000020); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Timestamp when the app version was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Timestamp when the app version was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
+     * Output only. Timestamp when the app version was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + private com.google.cloud.ces.v1beta.AppSnapshot snapshot_; private com.google.protobuf.SingleFieldBuilder< com.google.cloud.ces.v1beta.AppSnapshot, @@ -1632,7 +1930,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the snapshot field is set. */ public boolean hasSnapshot() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** @@ -1678,7 +1976,7 @@ public Builder setSnapshot(com.google.cloud.ces.v1beta.AppSnapshot value) { } else { snapshotBuilder_.setMessage(value); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -1700,7 +1998,7 @@ public Builder setSnapshot(com.google.cloud.ces.v1beta.AppSnapshot.Builder build } else { snapshotBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -1718,7 +2016,7 @@ public Builder setSnapshot(com.google.cloud.ces.v1beta.AppSnapshot.Builder build */ public Builder mergeSnapshot(com.google.cloud.ces.v1beta.AppSnapshot value) { if (snapshotBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) + if (((bitField0_ & 0x00000040) != 0) && snapshot_ != null && snapshot_ != com.google.cloud.ces.v1beta.AppSnapshot.getDefaultInstance()) { getSnapshotBuilder().mergeFrom(value); @@ -1729,7 +2027,7 @@ public Builder mergeSnapshot(com.google.cloud.ces.v1beta.AppSnapshot value) { snapshotBuilder_.mergeFrom(value); } if (snapshot_ != null) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); } return this; @@ -1747,7 +2045,7 @@ public Builder mergeSnapshot(com.google.cloud.ces.v1beta.AppSnapshot value) { * */ public Builder clearSnapshot() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); snapshot_ = null; if (snapshotBuilder_ != null) { snapshotBuilder_.dispose(); @@ -1769,7 +2067,7 @@ public Builder clearSnapshot() { * */ public com.google.cloud.ces.v1beta.AppSnapshot.Builder getSnapshotBuilder() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return internalGetSnapshotFieldBuilder().getBuilder(); } @@ -1894,7 +2192,7 @@ public Builder setEtag(java.lang.String value) { throw new NullPointerException(); } etag_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -1914,7 +2212,7 @@ public Builder setEtag(java.lang.String value) { */ public Builder clearEtag() { etag_ = getDefaultInstance().getEtag(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } @@ -1939,7 +2237,7 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); etag_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AppVersionOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AppVersionOrBuilder.java index ffce256470e1..75346e939f54 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AppVersionOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AppVersionOrBuilder.java @@ -174,6 +174,46 @@ public interface AppVersionOrBuilder */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + /** + * + * + *
+   * Output only. Timestamp when the app version was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
+   * Output only. Timestamp when the app version was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
+   * Output only. Timestamp when the app version was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + /** * * diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AppVersionProto.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AppVersionProto.java index 91bf6752dc4a..e3678b41f0b5 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AppVersionProto.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AppVersionProto.java @@ -76,22 +76,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "guardrails\030\005 \003(\0132\"." + "google.cloud.ces.v1beta.GuardrailB\004\342A\001\001\0228\n" + "\010toolsets\030\006 \003(\0132" - + " .google.cloud.ces.v1beta.ToolsetB\004\342A\001\001\"\374\002\n\n" + + " .google.cloud.ces.v1beta.ToolsetB\004\342A\001\001\"\263\003\n\n" + "AppVersion\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\010\022\032\n" + "\014display_name\030\002 \001(\tB\004\342A\001\001\022\031\n" + "\013description\030\003 \001(\tB\004\342A\001\001\022\025\n" + "\007creator\030\004 \001(\tB\004\342A\001\003\0225\n" + "\013create_time\030\005" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225\n" + + "\013update_time\030\t" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022<\n" - + "\010snapshot\030\010 " - + "\001(\0132$.google.cloud.ces.v1beta.AppSnapshotB\004\342A\001\003\022\022\n" + + "\010snapshot\030\010" + + " \001(\0132$.google.cloud.ces.v1beta.AppSnapshotB\004\342A\001\003\022\022\n" + "\004etag\030\007 \001(\tB\004\342A\001\003:\202\001\352A\177\n" - + "\035ces.googleapis.com/AppVersion\022Eprojects/{proj" - + "ect}/locations/{location}/apps/{app}/versions/{version}*\013appVersions2\n" + + "\035ces.googleapis.com/AppVersion\022Eprojects/{project}/locations/{location}" + + "/apps/{app}/versions/{version}*\013appVersions2\n" + "appVersionB_\n" - + "\033com.google.cloud.ces.v1betaB\017AppVersionProtoP\001Z-cloud.google.com/go/ces/apiv" - + "1beta/cespb;cespbb\006proto3" + + "\033com.google.cloud.ces.v1betaB\017AppVersionProtoP\001Z-cloud.google." + + "com/go/ces/apiv1beta/cespb;cespbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -121,7 +123,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_AppVersion_descriptor, new java.lang.String[] { - "Name", "DisplayName", "Description", "Creator", "CreateTime", "Snapshot", "Etag", + "Name", + "DisplayName", + "Description", + "Creator", + "CreateTime", + "UpdateTime", + "Snapshot", + "Etag", }); 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/ArtifactChunk.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ArtifactChunk.java new file mode 100644 index 000000000000..434b4e45a9b0 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ArtifactChunk.java @@ -0,0 +1,1768 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language 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/session_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +/** + * + * + *
+ * A streamed fragment of a document artifact (e.g. a markdown TDD) that the
+ * assistant is generating. Content deltas stream while the document is being
+ * written so clients can render a live preview; the FINALIZED chunk carries
+ * the GCS URI once the file has been persisted.
+ * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.ArtifactChunk} + */ +@com.google.protobuf.Generated +public final class ArtifactChunk extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.ArtifactChunk) + ArtifactChunkOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ArtifactChunk"); + } + + // Use ArtifactChunk.newBuilder() to construct. + private ArtifactChunk(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ArtifactChunk() { + artifactId_ = ""; + displayName_ = ""; + mimeType_ = ""; + contentDelta_ = ""; + gcsUri_ = ""; + state_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_ArtifactChunk_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_ArtifactChunk_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.ArtifactChunk.class, + com.google.cloud.ces.v1beta.ArtifactChunk.Builder.class); + } + + /** + * + * + *
+   * Lifecycle position of this chunk within the artifact's stream.
+   * 
+ * + * Protobuf enum {@code google.cloud.ces.v1beta.ArtifactChunk.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unused default.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * The assistant started generating the artifact.
+     * 
+ * + * STARTED = 1; + */ + STARTED(1), + /** + * + * + *
+     * A content increment; content_delta is set.
+     * 
+ * + * DELTA = 2; + */ + DELTA(2), + /** + * + * + *
+     * The artifact was persisted; gcs_uri is set.
+     * 
+ * + * FINALIZED = 3; + */ + FINALIZED(3), + /** + * + * + *
+     * Generation or persistence failed; the artifact was not saved.
+     * 
+ * + * FAILED = 4; + */ + FAILED(4), + /** + * + * + *
+     * The document finished streaming: its content was fully delivered via
+     * content_delta chunks. Persistence may still follow; a FINALIZED chunk
+     * with a gcs_uri is sent if and when the artifact is saved.
+     * 
+ * + * CLOSED = 5; + */ + CLOSED(5), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
+     * Unused default.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * The assistant started generating the artifact.
+     * 
+ * + * STARTED = 1; + */ + public static final int STARTED_VALUE = 1; + + /** + * + * + *
+     * A content increment; content_delta is set.
+     * 
+ * + * DELTA = 2; + */ + public static final int DELTA_VALUE = 2; + + /** + * + * + *
+     * The artifact was persisted; gcs_uri is set.
+     * 
+ * + * FINALIZED = 3; + */ + public static final int FINALIZED_VALUE = 3; + + /** + * + * + *
+     * Generation or persistence failed; the artifact was not saved.
+     * 
+ * + * FAILED = 4; + */ + public static final int FAILED_VALUE = 4; + + /** + * + * + *
+     * The document finished streaming: its content was fully delivered via
+     * content_delta chunks. Persistence may still follow; a FINALIZED chunk
+     * with a gcs_uri is sent if and when the artifact is saved.
+     * 
+ * + * CLOSED = 5; + */ + public static final int CLOSED_VALUE = 5; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return STARTED; + case 2: + return DELTA; + case 3: + return FINALIZED; + case 4: + return FAILED; + case 5: + return CLOSED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.ces.v1beta.ArtifactChunk.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.v1beta.ArtifactChunk.State) + } + + public static final int ARTIFACT_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object artifactId_ = ""; + + /** + * + * + *
+   * Identifier of the artifact, stable across all chunks of one artifact
+   * within the stream.
+   * 
+ * + * string artifact_id = 1; + * + * @return The artifactId. + */ + @java.lang.Override + public java.lang.String getArtifactId() { + java.lang.Object ref = artifactId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + artifactId_ = s; + return s; + } + } + + /** + * + * + *
+   * Identifier of the artifact, stable across all chunks of one artifact
+   * within the stream.
+   * 
+ * + * string artifact_id = 1; + * + * @return The bytes for artifactId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getArtifactIdBytes() { + java.lang.Object ref = artifactId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + artifactId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
+   * The file name shown to the user, e.g. "hotel_booking_tdd.md". Set on
+   * STARTED (and repeated on FINALIZED).
+   * 
+ * + * string display_name = 2; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
+   * The file name shown to the user, e.g. "hotel_booking_tdd.md". Set on
+   * STARTED (and repeated on FINALIZED).
+   * 
+ * + * 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 MIME_TYPE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object mimeType_ = ""; + + /** + * + * + *
+   * The IANA media type of the artifact content, e.g. "text/markdown".
+   * 
+ * + * string mime_type = 3; + * + * @return The mimeType. + */ + @java.lang.Override + public java.lang.String getMimeType() { + java.lang.Object ref = mimeType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mimeType_ = s; + return s; + } + } + + /** + * + * + *
+   * The IANA media type of the artifact content, e.g. "text/markdown".
+   * 
+ * + * string mime_type = 3; + * + * @return The bytes for mimeType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMimeTypeBytes() { + java.lang.Object ref = mimeType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mimeType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONTENT_DELTA_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object contentDelta_ = ""; + + /** + * + * + *
+   * Incremental artifact content. Set on DELTA chunks.
+   * 
+ * + * string content_delta = 4; + * + * @return The contentDelta. + */ + @java.lang.Override + public java.lang.String getContentDelta() { + java.lang.Object ref = contentDelta_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + contentDelta_ = s; + return s; + } + } + + /** + * + * + *
+   * Incremental artifact content. Set on DELTA chunks.
+   * 
+ * + * string content_delta = 4; + * + * @return The bytes for contentDelta. + */ + @java.lang.Override + public com.google.protobuf.ByteString getContentDeltaBytes() { + java.lang.Object ref = contentDelta_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + contentDelta_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GCS_URI_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object gcsUri_ = ""; + + /** + * + * + *
+   * The GCS object the artifact was persisted to. Set on FINALIZED chunks.
+   * 
+ * + * string gcs_uri = 5; + * + * @return The gcsUri. + */ + @java.lang.Override + public java.lang.String getGcsUri() { + java.lang.Object ref = gcsUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gcsUri_ = s; + return s; + } + } + + /** + * + * + *
+   * The GCS object the artifact was persisted to. Set on FINALIZED chunks.
+   * 
+ * + * string gcs_uri = 5; + * + * @return The bytes for gcsUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGcsUriBytes() { + java.lang.Object ref = gcsUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 6; + private int state_ = 0; + + /** + * + * + *
+   * Lifecycle position of this chunk.
+   * 
+ * + * .google.cloud.ces.v1beta.ArtifactChunk.State state = 6; + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+   * Lifecycle position of this chunk.
+   * 
+ * + * .google.cloud.ces.v1beta.ArtifactChunk.State state = 6; + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.ArtifactChunk.State getState() { + com.google.cloud.ces.v1beta.ArtifactChunk.State result = + com.google.cloud.ces.v1beta.ArtifactChunk.State.forNumber(state_); + return result == null ? com.google.cloud.ces.v1beta.ArtifactChunk.State.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(artifactId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, artifactId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(mimeType_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, mimeType_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(contentDelta_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, contentDelta_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gcsUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, gcsUri_); + } + if (state_ != com.google.cloud.ces.v1beta.ArtifactChunk.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(6, state_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(artifactId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, artifactId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(mimeType_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, mimeType_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(contentDelta_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, contentDelta_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gcsUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, gcsUri_); + } + if (state_ != com.google.cloud.ces.v1beta.ArtifactChunk.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, state_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1beta.ArtifactChunk)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.ArtifactChunk other = + (com.google.cloud.ces.v1beta.ArtifactChunk) obj; + + if (!getArtifactId().equals(other.getArtifactId())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getMimeType().equals(other.getMimeType())) return false; + if (!getContentDelta().equals(other.getContentDelta())) return false; + if (!getGcsUri().equals(other.getGcsUri())) return false; + if (state_ != other.state_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ARTIFACT_ID_FIELD_NUMBER; + hash = (53 * hash) + getArtifactId().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + MIME_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getMimeType().hashCode(); + hash = (37 * hash) + CONTENT_DELTA_FIELD_NUMBER; + hash = (53 * hash) + getContentDelta().hashCode(); + hash = (37 * hash) + GCS_URI_FIELD_NUMBER; + hash = (53 * hash) + getGcsUri().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.ArtifactChunk parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ArtifactChunk parseFrom( + 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.ArtifactChunk parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ArtifactChunk parseFrom( + com.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.ArtifactChunk parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ArtifactChunk 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.ArtifactChunk parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ArtifactChunk parseFrom( + java.io.InputStream 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.ArtifactChunk parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ArtifactChunk parseDelimitedFrom( + java.io.InputStream 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.ArtifactChunk 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.ArtifactChunk parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, 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.ArtifactChunk prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 streamed fragment of a document artifact (e.g. a markdown TDD) that the
+   * assistant is generating. Content deltas stream while the document is being
+   * written so clients can render a live preview; the FINALIZED chunk carries
+   * the GCS URI once the file has been persisted.
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.ArtifactChunk} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.ArtifactChunk) + com.google.cloud.ces.v1beta.ArtifactChunkOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_ArtifactChunk_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_ArtifactChunk_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.ArtifactChunk.class, + com.google.cloud.ces.v1beta.ArtifactChunk.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.ArtifactChunk.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + artifactId_ = ""; + displayName_ = ""; + mimeType_ = ""; + contentDelta_ = ""; + gcsUri_ = ""; + state_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_ArtifactChunk_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ArtifactChunk getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.ArtifactChunk.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ArtifactChunk build() { + com.google.cloud.ces.v1beta.ArtifactChunk result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ArtifactChunk buildPartial() { + com.google.cloud.ces.v1beta.ArtifactChunk result = + new com.google.cloud.ces.v1beta.ArtifactChunk(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1beta.ArtifactChunk result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.artifactId_ = artifactId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.mimeType_ = mimeType_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.contentDelta_ = contentDelta_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.gcsUri_ = gcsUri_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.state_ = state_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.ArtifactChunk) { + return mergeFrom((com.google.cloud.ces.v1beta.ArtifactChunk) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.ArtifactChunk other) { + if (other == com.google.cloud.ces.v1beta.ArtifactChunk.getDefaultInstance()) return this; + if (!other.getArtifactId().isEmpty()) { + artifactId_ = other.artifactId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getMimeType().isEmpty()) { + mimeType_ = other.mimeType_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getContentDelta().isEmpty()) { + contentDelta_ = other.contentDelta_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getGcsUri().isEmpty()) { + gcsUri_ = other.gcsUri_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + artifactId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + mimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + contentDelta_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + gcsUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 48 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object artifactId_ = ""; + + /** + * + * + *
+     * Identifier of the artifact, stable across all chunks of one artifact
+     * within the stream.
+     * 
+ * + * string artifact_id = 1; + * + * @return The artifactId. + */ + public java.lang.String getArtifactId() { + java.lang.Object ref = artifactId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + artifactId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Identifier of the artifact, stable across all chunks of one artifact
+     * within the stream.
+     * 
+ * + * string artifact_id = 1; + * + * @return The bytes for artifactId. + */ + public com.google.protobuf.ByteString getArtifactIdBytes() { + java.lang.Object ref = artifactId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + artifactId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Identifier of the artifact, stable across all chunks of one artifact
+     * within the stream.
+     * 
+ * + * string artifact_id = 1; + * + * @param value The artifactId to set. + * @return This builder for chaining. + */ + public Builder setArtifactId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + artifactId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier of the artifact, stable across all chunks of one artifact
+     * within the stream.
+     * 
+ * + * string artifact_id = 1; + * + * @return This builder for chaining. + */ + public Builder clearArtifactId() { + artifactId_ = getDefaultInstance().getArtifactId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier of the artifact, stable across all chunks of one artifact
+     * within the stream.
+     * 
+ * + * string artifact_id = 1; + * + * @param value The bytes for artifactId to set. + * @return This builder for chaining. + */ + public Builder setArtifactIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + artifactId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
+     * The file name shown to the user, e.g. "hotel_booking_tdd.md". Set on
+     * STARTED (and repeated on FINALIZED).
+     * 
+ * + * string display_name = 2; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The file name shown to the user, e.g. "hotel_booking_tdd.md". Set on
+     * STARTED (and repeated on FINALIZED).
+     * 
+ * + * string display_name = 2; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The file name shown to the user, e.g. "hotel_booking_tdd.md". Set on
+     * STARTED (and repeated on FINALIZED).
+     * 
+ * + * string display_name = 2; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The file name shown to the user, e.g. "hotel_booking_tdd.md". Set on
+     * STARTED (and repeated on FINALIZED).
+     * 
+ * + * string display_name = 2; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * The file name shown to the user, e.g. "hotel_booking_tdd.md". Set on
+     * STARTED (and repeated on FINALIZED).
+     * 
+ * + * string display_name = 2; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object mimeType_ = ""; + + /** + * + * + *
+     * The IANA media type of the artifact content, e.g. "text/markdown".
+     * 
+ * + * string mime_type = 3; + * + * @return The mimeType. + */ + public java.lang.String getMimeType() { + java.lang.Object ref = mimeType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mimeType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The IANA media type of the artifact content, e.g. "text/markdown".
+     * 
+ * + * string mime_type = 3; + * + * @return The bytes for mimeType. + */ + public com.google.protobuf.ByteString getMimeTypeBytes() { + java.lang.Object ref = mimeType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mimeType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The IANA media type of the artifact content, e.g. "text/markdown".
+     * 
+ * + * string mime_type = 3; + * + * @param value The mimeType to set. + * @return This builder for chaining. + */ + public Builder setMimeType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + mimeType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * The IANA media type of the artifact content, e.g. "text/markdown".
+     * 
+ * + * string mime_type = 3; + * + * @return This builder for chaining. + */ + public Builder clearMimeType() { + mimeType_ = getDefaultInstance().getMimeType(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * The IANA media type of the artifact content, e.g. "text/markdown".
+     * 
+ * + * string mime_type = 3; + * + * @param value The bytes for mimeType to set. + * @return This builder for chaining. + */ + public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mimeType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object contentDelta_ = ""; + + /** + * + * + *
+     * Incremental artifact content. Set on DELTA chunks.
+     * 
+ * + * string content_delta = 4; + * + * @return The contentDelta. + */ + public java.lang.String getContentDelta() { + java.lang.Object ref = contentDelta_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + contentDelta_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Incremental artifact content. Set on DELTA chunks.
+     * 
+ * + * string content_delta = 4; + * + * @return The bytes for contentDelta. + */ + public com.google.protobuf.ByteString getContentDeltaBytes() { + java.lang.Object ref = contentDelta_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + contentDelta_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Incremental artifact content. Set on DELTA chunks.
+     * 
+ * + * string content_delta = 4; + * + * @param value The contentDelta to set. + * @return This builder for chaining. + */ + public Builder setContentDelta(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + contentDelta_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Incremental artifact content. Set on DELTA chunks.
+     * 
+ * + * string content_delta = 4; + * + * @return This builder for chaining. + */ + public Builder clearContentDelta() { + contentDelta_ = getDefaultInstance().getContentDelta(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Incremental artifact content. Set on DELTA chunks.
+     * 
+ * + * string content_delta = 4; + * + * @param value The bytes for contentDelta to set. + * @return This builder for chaining. + */ + public Builder setContentDeltaBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + contentDelta_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object gcsUri_ = ""; + + /** + * + * + *
+     * The GCS object the artifact was persisted to. Set on FINALIZED chunks.
+     * 
+ * + * string gcs_uri = 5; + * + * @return The gcsUri. + */ + public java.lang.String getGcsUri() { + java.lang.Object ref = gcsUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gcsUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The GCS object the artifact was persisted to. Set on FINALIZED chunks.
+     * 
+ * + * string gcs_uri = 5; + * + * @return The bytes for gcsUri. + */ + public com.google.protobuf.ByteString getGcsUriBytes() { + java.lang.Object ref = gcsUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The GCS object the artifact was persisted to. Set on FINALIZED chunks.
+     * 
+ * + * string gcs_uri = 5; + * + * @param value The gcsUri to set. + * @return This builder for chaining. + */ + public Builder setGcsUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + gcsUri_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * The GCS object the artifact was persisted to. Set on FINALIZED chunks.
+     * 
+ * + * string gcs_uri = 5; + * + * @return This builder for chaining. + */ + public Builder clearGcsUri() { + gcsUri_ = getDefaultInstance().getGcsUri(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * The GCS object the artifact was persisted to. Set on FINALIZED chunks.
+     * 
+ * + * string gcs_uri = 5; + * + * @param value The bytes for gcsUri to set. + * @return This builder for chaining. + */ + public Builder setGcsUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gcsUri_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private int state_ = 0; + + /** + * + * + *
+     * Lifecycle position of this chunk.
+     * 
+ * + * .google.cloud.ces.v1beta.ArtifactChunk.State state = 6; + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+     * Lifecycle position of this chunk.
+     * 
+ * + * .google.cloud.ces.v1beta.ArtifactChunk.State state = 6; + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Lifecycle position of this chunk.
+     * 
+ * + * .google.cloud.ces.v1beta.ArtifactChunk.State state = 6; + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.ArtifactChunk.State getState() { + com.google.cloud.ces.v1beta.ArtifactChunk.State result = + com.google.cloud.ces.v1beta.ArtifactChunk.State.forNumber(state_); + return result == null ? com.google.cloud.ces.v1beta.ArtifactChunk.State.UNRECOGNIZED : result; + } + + /** + * + * + *
+     * Lifecycle position of this chunk.
+     * 
+ * + * .google.cloud.ces.v1beta.ArtifactChunk.State state = 6; + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.ces.v1beta.ArtifactChunk.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Lifecycle position of this chunk.
+     * 
+ * + * .google.cloud.ces.v1beta.ArtifactChunk.State state = 6; + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000020); + state_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.ArtifactChunk) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.ArtifactChunk) + private static final com.google.cloud.ces.v1beta.ArtifactChunk DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.ArtifactChunk(); + } + + public static com.google.cloud.ces.v1beta.ArtifactChunk getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ArtifactChunk parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.ArtifactChunk getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ArtifactChunkOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ArtifactChunkOrBuilder.java new file mode 100644 index 000000000000..e0a3de5e549c --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ArtifactChunkOrBuilder.java @@ -0,0 +1,188 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language 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/session_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public interface ArtifactChunkOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.ArtifactChunk) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier of the artifact, stable across all chunks of one artifact
+   * within the stream.
+   * 
+ * + * string artifact_id = 1; + * + * @return The artifactId. + */ + java.lang.String getArtifactId(); + + /** + * + * + *
+   * Identifier of the artifact, stable across all chunks of one artifact
+   * within the stream.
+   * 
+ * + * string artifact_id = 1; + * + * @return The bytes for artifactId. + */ + com.google.protobuf.ByteString getArtifactIdBytes(); + + /** + * + * + *
+   * The file name shown to the user, e.g. "hotel_booking_tdd.md". Set on
+   * STARTED (and repeated on FINALIZED).
+   * 
+ * + * string display_name = 2; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
+   * The file name shown to the user, e.g. "hotel_booking_tdd.md". Set on
+   * STARTED (and repeated on FINALIZED).
+   * 
+ * + * string display_name = 2; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * The IANA media type of the artifact content, e.g. "text/markdown".
+   * 
+ * + * string mime_type = 3; + * + * @return The mimeType. + */ + java.lang.String getMimeType(); + + /** + * + * + *
+   * The IANA media type of the artifact content, e.g. "text/markdown".
+   * 
+ * + * string mime_type = 3; + * + * @return The bytes for mimeType. + */ + com.google.protobuf.ByteString getMimeTypeBytes(); + + /** + * + * + *
+   * Incremental artifact content. Set on DELTA chunks.
+   * 
+ * + * string content_delta = 4; + * + * @return The contentDelta. + */ + java.lang.String getContentDelta(); + + /** + * + * + *
+   * Incremental artifact content. Set on DELTA chunks.
+   * 
+ * + * string content_delta = 4; + * + * @return The bytes for contentDelta. + */ + com.google.protobuf.ByteString getContentDeltaBytes(); + + /** + * + * + *
+   * The GCS object the artifact was persisted to. Set on FINALIZED chunks.
+   * 
+ * + * string gcs_uri = 5; + * + * @return The gcsUri. + */ + java.lang.String getGcsUri(); + + /** + * + * + *
+   * The GCS object the artifact was persisted to. Set on FINALIZED chunks.
+   * 
+ * + * string gcs_uri = 5; + * + * @return The bytes for gcsUri. + */ + com.google.protobuf.ByteString getGcsUriBytes(); + + /** + * + * + *
+   * Lifecycle position of this chunk.
+   * 
+ * + * .google.cloud.ces.v1beta.ArtifactChunk.State state = 6; + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
+   * Lifecycle position of this chunk.
+   * 
+ * + * .google.cloud.ces.v1beta.ArtifactChunk.State state = 6; + * + * @return The state. + */ + com.google.cloud.ces.v1beta.ArtifactChunk.State getState(); +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantChunk.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantChunk.java new file mode 100644 index 000000000000..504903b8d6dc --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantChunk.java @@ -0,0 +1,1916 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language 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/assistant_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +/** + * + * + *
+ * A chunk of data in an assistant message.
+ * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.AssistantChunk} + */ +@com.google.protobuf.Generated +public final class AssistantChunk extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.AssistantChunk) + AssistantChunkOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AssistantChunk"); + } + + // Use AssistantChunk.newBuilder() to construct. + private AssistantChunk(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AssistantChunk() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantChunk_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantChunk_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.AssistantChunk.class, + com.google.cloud.ces.v1beta.AssistantChunk.Builder.class); + } + + private int bitField0_; + private int dataCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object data_; + + public enum DataCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + TEXT(1), + THOUGHT(2), + PAYLOAD(3), + TYPED_PAYLOAD(4), + DATA_NOT_SET(0); + private final int value; + + private DataCase(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 DataCase valueOf(int value) { + return forNumber(value); + } + + public static DataCase forNumber(int value) { + switch (value) { + case 1: + return TEXT; + case 2: + return THOUGHT; + case 3: + return PAYLOAD; + case 4: + return TYPED_PAYLOAD; + case 0: + return DATA_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public DataCase getDataCase() { + return DataCase.forNumber(dataCase_); + } + + public static final int TEXT_FIELD_NUMBER = 1; + + /** + * + * + *
+   * Optional. Text data.
+   * 
+ * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the text field is set. + */ + public boolean hasText() { + return dataCase_ == 1; + } + + /** + * + * + *
+   * Optional. Text data.
+   * 
+ * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The text. + */ + public java.lang.String getText() { + java.lang.Object ref = ""; + if (dataCase_ == 1) { + ref = data_; + } + if (ref instanceof java.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 (dataCase_ == 1) { + data_ = s; + } + return s; + } + } + + /** + * + * + *
+   * Optional. Text data.
+   * 
+ * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for text. + */ + public com.google.protobuf.ByteString getTextBytes() { + java.lang.Object ref = ""; + if (dataCase_ == 1) { + ref = data_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (dataCase_ == 1) { + data_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int THOUGHT_FIELD_NUMBER = 2; + + /** + * + * + *
+   * Optional. Thought generated by the model.
+   * 
+ * + * string thought = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the thought field is set. + */ + public boolean hasThought() { + return dataCase_ == 2; + } + + /** + * + * + *
+   * Optional. Thought generated by the model.
+   * 
+ * + * string thought = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The thought. + */ + public java.lang.String getThought() { + java.lang.Object ref = ""; + if (dataCase_ == 2) { + ref = data_; + } + if (ref instanceof java.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 (dataCase_ == 2) { + data_ = s; + } + return s; + } + } + + /** + * + * + *
+   * Optional. Thought generated by the model.
+   * 
+ * + * string thought = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for thought. + */ + public com.google.protobuf.ByteString getThoughtBytes() { + java.lang.Object ref = ""; + if (dataCase_ == 2) { + ref = data_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (dataCase_ == 2) { + data_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAYLOAD_FIELD_NUMBER = 3; + + /** + * + * + *
+   * Optional. Payload which contains structured responses like the quality
+   * report, agent version name, suggested responses etc.
+   * 
+ * + * .google.protobuf.Struct payload = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the payload field is set. + */ + @java.lang.Override + public boolean hasPayload() { + return dataCase_ == 3; + } + + /** + * + * + *
+   * Optional. Payload which contains structured responses like the quality
+   * report, agent version name, suggested responses etc.
+   * 
+ * + * .google.protobuf.Struct payload = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The payload. + */ + @java.lang.Override + public com.google.protobuf.Struct getPayload() { + if (dataCase_ == 3) { + return (com.google.protobuf.Struct) data_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + + /** + * + * + *
+   * Optional. Payload which contains structured responses like the quality
+   * report, agent version name, suggested responses etc.
+   * 
+ * + * .google.protobuf.Struct payload = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getPayloadOrBuilder() { + if (dataCase_ == 3) { + return (com.google.protobuf.Struct) data_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + + public static final int TYPED_PAYLOAD_FIELD_NUMBER = 4; + + /** + * + * + *
+   * Optional. Typed payload which contains structured responses.
+   * 
+ * + * + * .google.cloud.ces.v1beta.TypedPayload typed_payload = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the typedPayload field is set. + */ + @java.lang.Override + public boolean hasTypedPayload() { + return dataCase_ == 4; + } + + /** + * + * + *
+   * Optional. Typed payload which contains structured responses.
+   * 
+ * + * + * .google.cloud.ces.v1beta.TypedPayload typed_payload = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The typedPayload. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.TypedPayload getTypedPayload() { + if (dataCase_ == 4) { + return (com.google.cloud.ces.v1beta.TypedPayload) data_; + } + return com.google.cloud.ces.v1beta.TypedPayload.getDefaultInstance(); + } + + /** + * + * + *
+   * Optional. Typed payload which contains structured responses.
+   * 
+ * + * + * .google.cloud.ces.v1beta.TypedPayload typed_payload = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.TypedPayloadOrBuilder getTypedPayloadOrBuilder() { + if (dataCase_ == 4) { + return (com.google.cloud.ces.v1beta.TypedPayload) data_; + } + return com.google.cloud.ces.v1beta.TypedPayload.getDefaultInstance(); + } + + public static final int CREATE_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Optional. Timestamp when the chunk was created or emitted.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. Timestamp when the chunk was created or emitted.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
+   * Optional. Timestamp when the chunk was created or emitted.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (dataCase_ == 1) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, data_); + } + if (dataCase_ == 2) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, data_); + } + if (dataCase_ == 3) { + output.writeMessage(3, (com.google.protobuf.Struct) data_); + } + if (dataCase_ == 4) { + output.writeMessage(4, (com.google.cloud.ces.v1beta.TypedPayload) data_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getCreateTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (dataCase_ == 1) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, data_); + } + if (dataCase_ == 2) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, data_); + } + if (dataCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.protobuf.Struct) data_); + } + if (dataCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.ces.v1beta.TypedPayload) data_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1beta.AssistantChunk)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.AssistantChunk other = + (com.google.cloud.ces.v1beta.AssistantChunk) obj; + + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (!getDataCase().equals(other.getDataCase())) return false; + switch (dataCase_) { + case 1: + if (!getText().equals(other.getText())) return false; + break; + case 2: + if (!getThought().equals(other.getThought())) return false; + break; + case 3: + if (!getPayload().equals(other.getPayload())) return false; + break; + case 4: + if (!getTypedPayload().equals(other.getTypedPayload())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + switch (dataCase_) { + case 1: + hash = (37 * hash) + TEXT_FIELD_NUMBER; + hash = (53 * hash) + getText().hashCode(); + break; + case 2: + hash = (37 * hash) + THOUGHT_FIELD_NUMBER; + hash = (53 * hash) + getThought().hashCode(); + break; + case 3: + hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; + hash = (53 * hash) + getPayload().hashCode(); + break; + case 4: + hash = (37 * hash) + TYPED_PAYLOAD_FIELD_NUMBER; + hash = (53 * hash) + getTypedPayload().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.AssistantChunk parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.AssistantChunk parseFrom( + 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.AssistantChunk parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.AssistantChunk parseFrom( + com.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.AssistantChunk parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.AssistantChunk 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.AssistantChunk parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.AssistantChunk parseFrom( + java.io.InputStream 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.AssistantChunk parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.AssistantChunk parseDelimitedFrom( + java.io.InputStream 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.AssistantChunk 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.AssistantChunk parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, 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.AssistantChunk prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 chunk of data in an assistant message.
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.AssistantChunk} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.AssistantChunk) + com.google.cloud.ces.v1beta.AssistantChunkOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantChunk_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantChunk_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.AssistantChunk.class, + com.google.cloud.ces.v1beta.AssistantChunk.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.AssistantChunk.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (payloadBuilder_ != null) { + payloadBuilder_.clear(); + } + if (typedPayloadBuilder_ != null) { + typedPayloadBuilder_.clear(); + } + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + dataCase_ = 0; + data_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantChunk_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantChunk getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.AssistantChunk.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantChunk build() { + com.google.cloud.ces.v1beta.AssistantChunk result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantChunk buildPartial() { + com.google.cloud.ces.v1beta.AssistantChunk result = + new com.google.cloud.ces.v1beta.AssistantChunk(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1beta.AssistantChunk result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.ces.v1beta.AssistantChunk result) { + result.dataCase_ = dataCase_; + result.data_ = this.data_; + if (dataCase_ == 3 && payloadBuilder_ != null) { + result.data_ = payloadBuilder_.build(); + } + if (dataCase_ == 4 && typedPayloadBuilder_ != null) { + result.data_ = typedPayloadBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.AssistantChunk) { + return mergeFrom((com.google.cloud.ces.v1beta.AssistantChunk) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.AssistantChunk other) { + if (other == com.google.cloud.ces.v1beta.AssistantChunk.getDefaultInstance()) return this; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + switch (other.getDataCase()) { + case TEXT: + { + dataCase_ = 1; + data_ = other.data_; + onChanged(); + break; + } + case THOUGHT: + { + dataCase_ = 2; + data_ = other.data_; + onChanged(); + break; + } + case PAYLOAD: + { + mergePayload(other.getPayload()); + break; + } + case TYPED_PAYLOAD: + { + mergeTypedPayload(other.getTypedPayload()); + break; + } + case DATA_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(); + dataCase_ = 1; + data_ = s; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + dataCase_ = 2; + data_ = s; + break; + } // case 18 + case 26: + { + input.readMessage(internalGetPayloadFieldBuilder().getBuilder(), extensionRegistry); + dataCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetTypedPayloadFieldBuilder().getBuilder(), extensionRegistry); + dataCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int dataCase_ = 0; + private java.lang.Object data_; + + public DataCase getDataCase() { + return DataCase.forNumber(dataCase_); + } + + public Builder clearData() { + dataCase_ = 0; + data_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
+     * Optional. Text data.
+     * 
+ * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the text field is set. + */ + @java.lang.Override + public boolean hasText() { + return dataCase_ == 1; + } + + /** + * + * + *
+     * Optional. Text data.
+     * 
+ * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The text. + */ + @java.lang.Override + public java.lang.String getText() { + java.lang.Object ref = ""; + if (dataCase_ == 1) { + ref = data_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (dataCase_ == 1) { + data_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Text data.
+     * 
+ * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for text. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTextBytes() { + java.lang.Object ref = ""; + if (dataCase_ == 1) { + ref = data_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (dataCase_ == 1) { + data_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Text data.
+     * 
+ * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The text to set. + * @return This builder for chaining. + */ + public Builder setText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dataCase_ = 1; + data_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Text data.
+     * 
+ * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearText() { + if (dataCase_ == 1) { + dataCase_ = 0; + data_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Text data.
+     * 
+ * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for text to set. + * @return This builder for chaining. + */ + public Builder setTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataCase_ = 1; + data_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Thought generated by the model.
+     * 
+ * + * string thought = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the thought field is set. + */ + @java.lang.Override + public boolean hasThought() { + return dataCase_ == 2; + } + + /** + * + * + *
+     * Optional. Thought generated by the model.
+     * 
+ * + * string thought = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The thought. + */ + @java.lang.Override + public java.lang.String getThought() { + java.lang.Object ref = ""; + if (dataCase_ == 2) { + ref = data_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (dataCase_ == 2) { + data_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Thought generated by the model.
+     * 
+ * + * string thought = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for thought. + */ + @java.lang.Override + public com.google.protobuf.ByteString getThoughtBytes() { + java.lang.Object ref = ""; + if (dataCase_ == 2) { + ref = data_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (dataCase_ == 2) { + data_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Thought generated by the model.
+     * 
+ * + * string thought = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The thought to set. + * @return This builder for chaining. + */ + public Builder setThought(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dataCase_ = 2; + data_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Thought generated by the model.
+     * 
+ * + * string thought = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearThought() { + if (dataCase_ == 2) { + dataCase_ = 0; + data_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Thought generated by the model.
+     * 
+ * + * string thought = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for thought to set. + * @return This builder for chaining. + */ + public Builder setThoughtBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataCase_ = 2; + data_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + payloadBuilder_; + + /** + * + * + *
+     * Optional. Payload which contains structured responses like the quality
+     * report, agent version name, suggested responses etc.
+     * 
+ * + * .google.protobuf.Struct payload = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the payload field is set. + */ + @java.lang.Override + public boolean hasPayload() { + return dataCase_ == 3; + } + + /** + * + * + *
+     * Optional. Payload which contains structured responses like the quality
+     * report, agent version name, suggested responses etc.
+     * 
+ * + * .google.protobuf.Struct payload = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The payload. + */ + @java.lang.Override + public com.google.protobuf.Struct getPayload() { + if (payloadBuilder_ == null) { + if (dataCase_ == 3) { + return (com.google.protobuf.Struct) data_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } else { + if (dataCase_ == 3) { + return payloadBuilder_.getMessage(); + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. Payload which contains structured responses like the quality
+     * report, agent version name, suggested responses etc.
+     * 
+ * + * .google.protobuf.Struct payload = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setPayload(com.google.protobuf.Struct value) { + if (payloadBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + data_ = value; + onChanged(); + } else { + payloadBuilder_.setMessage(value); + } + dataCase_ = 3; + return this; + } + + /** + * + * + *
+     * Optional. Payload which contains structured responses like the quality
+     * report, agent version name, suggested responses etc.
+     * 
+ * + * .google.protobuf.Struct payload = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setPayload(com.google.protobuf.Struct.Builder builderForValue) { + if (payloadBuilder_ == null) { + data_ = builderForValue.build(); + onChanged(); + } else { + payloadBuilder_.setMessage(builderForValue.build()); + } + dataCase_ = 3; + return this; + } + + /** + * + * + *
+     * Optional. Payload which contains structured responses like the quality
+     * report, agent version name, suggested responses etc.
+     * 
+ * + * .google.protobuf.Struct payload = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergePayload(com.google.protobuf.Struct value) { + if (payloadBuilder_ == null) { + if (dataCase_ == 3 && data_ != com.google.protobuf.Struct.getDefaultInstance()) { + data_ = + com.google.protobuf.Struct.newBuilder((com.google.protobuf.Struct) data_) + .mergeFrom(value) + .buildPartial(); + } else { + data_ = value; + } + onChanged(); + } else { + if (dataCase_ == 3) { + payloadBuilder_.mergeFrom(value); + } else { + payloadBuilder_.setMessage(value); + } + } + dataCase_ = 3; + return this; + } + + /** + * + * + *
+     * Optional. Payload which contains structured responses like the quality
+     * report, agent version name, suggested responses etc.
+     * 
+ * + * .google.protobuf.Struct payload = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearPayload() { + if (payloadBuilder_ == null) { + if (dataCase_ == 3) { + dataCase_ = 0; + data_ = null; + onChanged(); + } + } else { + if (dataCase_ == 3) { + dataCase_ = 0; + data_ = null; + } + payloadBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Payload which contains structured responses like the quality
+     * report, agent version name, suggested responses etc.
+     * 
+ * + * .google.protobuf.Struct payload = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.protobuf.Struct.Builder getPayloadBuilder() { + return internalGetPayloadFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Payload which contains structured responses like the quality
+     * report, agent version name, suggested responses etc.
+     * 
+ * + * .google.protobuf.Struct payload = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getPayloadOrBuilder() { + if ((dataCase_ == 3) && (payloadBuilder_ != null)) { + return payloadBuilder_.getMessageOrBuilder(); + } else { + if (dataCase_ == 3) { + return (com.google.protobuf.Struct) data_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. Payload which contains structured responses like the quality
+     * report, agent version name, suggested responses etc.
+     * 
+ * + * .google.protobuf.Struct payload = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetPayloadFieldBuilder() { + if (payloadBuilder_ == null) { + if (!(dataCase_ == 3)) { + data_ = com.google.protobuf.Struct.getDefaultInstance(); + } + payloadBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + (com.google.protobuf.Struct) data_, getParentForChildren(), isClean()); + data_ = null; + } + dataCase_ = 3; + onChanged(); + return payloadBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.TypedPayload, + com.google.cloud.ces.v1beta.TypedPayload.Builder, + com.google.cloud.ces.v1beta.TypedPayloadOrBuilder> + typedPayloadBuilder_; + + /** + * + * + *
+     * Optional. Typed payload which contains structured responses.
+     * 
+ * + * + * .google.cloud.ces.v1beta.TypedPayload typed_payload = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the typedPayload field is set. + */ + @java.lang.Override + public boolean hasTypedPayload() { + return dataCase_ == 4; + } + + /** + * + * + *
+     * Optional. Typed payload which contains structured responses.
+     * 
+ * + * + * .google.cloud.ces.v1beta.TypedPayload typed_payload = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The typedPayload. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.TypedPayload getTypedPayload() { + if (typedPayloadBuilder_ == null) { + if (dataCase_ == 4) { + return (com.google.cloud.ces.v1beta.TypedPayload) data_; + } + return com.google.cloud.ces.v1beta.TypedPayload.getDefaultInstance(); + } else { + if (dataCase_ == 4) { + return typedPayloadBuilder_.getMessage(); + } + return com.google.cloud.ces.v1beta.TypedPayload.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. Typed payload which contains structured responses.
+     * 
+ * + * + * .google.cloud.ces.v1beta.TypedPayload typed_payload = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTypedPayload(com.google.cloud.ces.v1beta.TypedPayload value) { + if (typedPayloadBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + data_ = value; + onChanged(); + } else { + typedPayloadBuilder_.setMessage(value); + } + dataCase_ = 4; + return this; + } + + /** + * + * + *
+     * Optional. Typed payload which contains structured responses.
+     * 
+ * + * + * .google.cloud.ces.v1beta.TypedPayload typed_payload = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTypedPayload( + com.google.cloud.ces.v1beta.TypedPayload.Builder builderForValue) { + if (typedPayloadBuilder_ == null) { + data_ = builderForValue.build(); + onChanged(); + } else { + typedPayloadBuilder_.setMessage(builderForValue.build()); + } + dataCase_ = 4; + return this; + } + + /** + * + * + *
+     * Optional. Typed payload which contains structured responses.
+     * 
+ * + * + * .google.cloud.ces.v1beta.TypedPayload typed_payload = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeTypedPayload(com.google.cloud.ces.v1beta.TypedPayload value) { + if (typedPayloadBuilder_ == null) { + if (dataCase_ == 4 + && data_ != com.google.cloud.ces.v1beta.TypedPayload.getDefaultInstance()) { + data_ = + com.google.cloud.ces.v1beta.TypedPayload.newBuilder( + (com.google.cloud.ces.v1beta.TypedPayload) data_) + .mergeFrom(value) + .buildPartial(); + } else { + data_ = value; + } + onChanged(); + } else { + if (dataCase_ == 4) { + typedPayloadBuilder_.mergeFrom(value); + } else { + typedPayloadBuilder_.setMessage(value); + } + } + dataCase_ = 4; + return this; + } + + /** + * + * + *
+     * Optional. Typed payload which contains structured responses.
+     * 
+ * + * + * .google.cloud.ces.v1beta.TypedPayload typed_payload = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearTypedPayload() { + if (typedPayloadBuilder_ == null) { + if (dataCase_ == 4) { + dataCase_ = 0; + data_ = null; + onChanged(); + } + } else { + if (dataCase_ == 4) { + dataCase_ = 0; + data_ = null; + } + typedPayloadBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Typed payload which contains structured responses.
+     * 
+ * + * + * .google.cloud.ces.v1beta.TypedPayload typed_payload = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.TypedPayload.Builder getTypedPayloadBuilder() { + return internalGetTypedPayloadFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Typed payload which contains structured responses.
+     * 
+ * + * + * .google.cloud.ces.v1beta.TypedPayload typed_payload = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.TypedPayloadOrBuilder getTypedPayloadOrBuilder() { + if ((dataCase_ == 4) && (typedPayloadBuilder_ != null)) { + return typedPayloadBuilder_.getMessageOrBuilder(); + } else { + if (dataCase_ == 4) { + return (com.google.cloud.ces.v1beta.TypedPayload) data_; + } + return com.google.cloud.ces.v1beta.TypedPayload.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. Typed payload which contains structured responses.
+     * 
+ * + * + * .google.cloud.ces.v1beta.TypedPayload typed_payload = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.TypedPayload, + com.google.cloud.ces.v1beta.TypedPayload.Builder, + com.google.cloud.ces.v1beta.TypedPayloadOrBuilder> + internalGetTypedPayloadFieldBuilder() { + if (typedPayloadBuilder_ == null) { + if (!(dataCase_ == 4)) { + data_ = com.google.cloud.ces.v1beta.TypedPayload.getDefaultInstance(); + } + typedPayloadBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.TypedPayload, + com.google.cloud.ces.v1beta.TypedPayload.Builder, + com.google.cloud.ces.v1beta.TypedPayloadOrBuilder>( + (com.google.cloud.ces.v1beta.TypedPayload) data_, + getParentForChildren(), + isClean()); + data_ = null; + } + dataCase_ = 4; + onChanged(); + return typedPayloadBuilder_; + } + + 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_; + + /** + * + * + *
+     * Optional. Timestamp when the chunk was created or emitted.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Optional. Timestamp when the chunk was created or emitted.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Timestamp when the chunk was created or emitted.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Timestamp when the chunk was created or emitted.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Timestamp when the chunk was created or emitted.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Timestamp when the chunk was created or emitted.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000010); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Timestamp when the chunk was created or emitted.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Timestamp when the chunk was created or emitted.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
+     * Optional. Timestamp when the chunk was created or emitted.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.AssistantChunk) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.AssistantChunk) + private static final com.google.cloud.ces.v1beta.AssistantChunk DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.AssistantChunk(); + } + + public static com.google.cloud.ces.v1beta.AssistantChunk getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AssistantChunk parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.AssistantChunk getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantChunkOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantChunkOrBuilder.java new file mode 100644 index 000000000000..7187bfeed24d --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantChunkOrBuilder.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/cloud/ces/v1beta/assistant_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public interface AssistantChunkOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.AssistantChunk) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Text data.
+   * 
+ * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the text field is set. + */ + boolean hasText(); + + /** + * + * + *
+   * Optional. Text data.
+   * 
+ * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The text. + */ + java.lang.String getText(); + + /** + * + * + *
+   * Optional. Text data.
+   * 
+ * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for text. + */ + com.google.protobuf.ByteString getTextBytes(); + + /** + * + * + *
+   * Optional. Thought generated by the model.
+   * 
+ * + * string thought = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the thought field is set. + */ + boolean hasThought(); + + /** + * + * + *
+   * Optional. Thought generated by the model.
+   * 
+ * + * string thought = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The thought. + */ + java.lang.String getThought(); + + /** + * + * + *
+   * Optional. Thought generated by the model.
+   * 
+ * + * string thought = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for thought. + */ + com.google.protobuf.ByteString getThoughtBytes(); + + /** + * + * + *
+   * Optional. Payload which contains structured responses like the quality
+   * report, agent version name, suggested responses etc.
+   * 
+ * + * .google.protobuf.Struct payload = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the payload field is set. + */ + boolean hasPayload(); + + /** + * + * + *
+   * Optional. Payload which contains structured responses like the quality
+   * report, agent version name, suggested responses etc.
+   * 
+ * + * .google.protobuf.Struct payload = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The payload. + */ + com.google.protobuf.Struct getPayload(); + + /** + * + * + *
+   * Optional. Payload which contains structured responses like the quality
+   * report, agent version name, suggested responses etc.
+   * 
+ * + * .google.protobuf.Struct payload = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.protobuf.StructOrBuilder getPayloadOrBuilder(); + + /** + * + * + *
+   * Optional. Typed payload which contains structured responses.
+   * 
+ * + * + * .google.cloud.ces.v1beta.TypedPayload typed_payload = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the typedPayload field is set. + */ + boolean hasTypedPayload(); + + /** + * + * + *
+   * Optional. Typed payload which contains structured responses.
+   * 
+ * + * + * .google.cloud.ces.v1beta.TypedPayload typed_payload = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The typedPayload. + */ + com.google.cloud.ces.v1beta.TypedPayload getTypedPayload(); + + /** + * + * + *
+   * Optional. Typed payload which contains structured responses.
+   * 
+ * + * + * .google.cloud.ces.v1beta.TypedPayload typed_payload = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1beta.TypedPayloadOrBuilder getTypedPayloadOrBuilder(); + + /** + * + * + *
+   * Optional. Timestamp when the chunk was created or emitted.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Optional. Timestamp when the chunk was created or emitted.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Optional. Timestamp when the chunk was created or emitted.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + com.google.cloud.ces.v1beta.AssistantChunk.DataCase getDataCase(); +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantConfirmationRequest.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantConfirmationRequest.java new file mode 100644 index 000000000000..f8f3275cff6c --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantConfirmationRequest.java @@ -0,0 +1,2514 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language 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/session_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +/** + * + * + *
+ * A blocking question or confirmation the assistant needs answered before an
+ * agent action can proceed. The requesting agent is paused and resumes only
+ * when the answer arrives on a later
+ * [StreamChatAiAssistantRequest.confirmation_response][google.cloud.ces.v1beta.StreamChatAiAssistantRequest.confirmation_response].
+ * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.AssistantConfirmationRequest} + */ +@com.google.protobuf.Generated +public final class AssistantConfirmationRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.AssistantConfirmationRequest) + AssistantConfirmationRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AssistantConfirmationRequest"); + } + + // Use AssistantConfirmationRequest.newBuilder() to construct. + private AssistantConfirmationRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AssistantConfirmationRequest() { + confirmationId_ = ""; + context_ = ""; + positiveLabel_ = ""; + negativeLabel_ = ""; + questions_ = java.util.Collections.emptyList(); + tool_ = ""; + agentName_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantConfirmationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantConfirmationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.AssistantConfirmationRequest.class, + com.google.cloud.ces.v1beta.AssistantConfirmationRequest.Builder.class); + } + + private int bitField0_; + public static final int CONFIRMATION_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object confirmationId_ = ""; + + /** + * + * + *
+   * Identifier correlating this request with its response. Opaque to
+   * clients; must be echoed verbatim on the answering request.
+   * 
+ * + * string confirmation_id = 1; + * + * @return The confirmationId. + */ + @java.lang.Override + public java.lang.String getConfirmationId() { + java.lang.Object ref = confirmationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + confirmationId_ = s; + return s; + } + } + + /** + * + * + *
+   * Identifier correlating this request with its response. Opaque to
+   * clients; must be echoed verbatim on the answering request.
+   * 
+ * + * string confirmation_id = 1; + * + * @return The bytes for confirmationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getConfirmationIdBytes() { + java.lang.Object ref = confirmationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + confirmationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONTEXT_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object context_ = ""; + + /** + * + * + *
+   * Context describing what is being confirmed (e.g. the action the agent
+   * wants to take, or the question it needs answered). Rendered as plain
+   * text, not Markdown.
+   * 
+ * + * string context = 2; + * + * @return The context. + */ + @java.lang.Override + public java.lang.String getContext() { + java.lang.Object ref = context_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + context_ = s; + return s; + } + } + + /** + * + * + *
+   * Context describing what is being confirmed (e.g. the action the agent
+   * wants to take, or the question it needs answered). Rendered as plain
+   * text, not Markdown.
+   * 
+ * + * string context = 2; + * + * @return The bytes for context. + */ + @java.lang.Override + public com.google.protobuf.ByteString getContextBytes() { + java.lang.Object ref = context_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + context_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int POSITIVE_LABEL_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object positiveLabel_ = ""; + + /** + * + * + *
+   * Label for the approving action of a binary confirmation (e.g. "Publish").
+   * Unset when `questions` is populated.
+   * 
+ * + * string positive_label = 3; + * + * @return The positiveLabel. + */ + @java.lang.Override + public java.lang.String getPositiveLabel() { + java.lang.Object ref = positiveLabel_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + positiveLabel_ = s; + return s; + } + } + + /** + * + * + *
+   * Label for the approving action of a binary confirmation (e.g. "Publish").
+   * Unset when `questions` is populated.
+   * 
+ * + * string positive_label = 3; + * + * @return The bytes for positiveLabel. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPositiveLabelBytes() { + java.lang.Object ref = positiveLabel_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + positiveLabel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NEGATIVE_LABEL_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object negativeLabel_ = ""; + + /** + * + * + *
+   * Label for the declining action of a binary confirmation (e.g. "Not yet").
+   * Unset when `questions` is populated.
+   * 
+ * + * string negative_label = 4; + * + * @return The negativeLabel. + */ + @java.lang.Override + public java.lang.String getNegativeLabel() { + java.lang.Object ref = negativeLabel_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + negativeLabel_ = s; + return s; + } + } + + /** + * + * + *
+   * Label for the declining action of a binary confirmation (e.g. "Not yet").
+   * Unset when `questions` is populated.
+   * 
+ * + * string negative_label = 4; + * + * @return The bytes for negativeLabel. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNegativeLabelBytes() { + java.lang.Object ref = negativeLabel_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + negativeLabel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int QUESTIONS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private java.util.List questions_; + + /** + * + * + *
+   * Multi-choice form of the confirmation. When populated, the card renders
+   * a selectable option list and the chosen option's submit_text (or
+   * free-form user text) is returned as
+   * [AssistantConfirmationResponse.answer_text][google.cloud.ces.v1beta.AssistantConfirmationResponse.answer_text].
+   * 
+ * + * repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 5; + */ + @java.lang.Override + public java.util.List + getQuestionsList() { + return questions_; + } + + /** + * + * + *
+   * Multi-choice form of the confirmation. When populated, the card renders
+   * a selectable option list and the chosen option's submit_text (or
+   * free-form user text) is returned as
+   * [AssistantConfirmationResponse.answer_text][google.cloud.ces.v1beta.AssistantConfirmationResponse.answer_text].
+   * 
+ * + * repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 5; + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.ces.v1beta.OptionQuestionsChunk.QuestionOrBuilder> + getQuestionsOrBuilderList() { + return questions_; + } + + /** + * + * + *
+   * Multi-choice form of the confirmation. When populated, the card renders
+   * a selectable option list and the chosen option's submit_text (or
+   * free-form user text) is returned as
+   * [AssistantConfirmationResponse.answer_text][google.cloud.ces.v1beta.AssistantConfirmationResponse.answer_text].
+   * 
+ * + * repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 5; + */ + @java.lang.Override + public int getQuestionsCount() { + return questions_.size(); + } + + /** + * + * + *
+   * Multi-choice form of the confirmation. When populated, the card renders
+   * a selectable option list and the chosen option's submit_text (or
+   * free-form user text) is returned as
+   * [AssistantConfirmationResponse.answer_text][google.cloud.ces.v1beta.AssistantConfirmationResponse.answer_text].
+   * 
+ * + * repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 5; + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.OptionQuestionsChunk.Question getQuestions(int index) { + return questions_.get(index); + } + + /** + * + * + *
+   * Multi-choice form of the confirmation. When populated, the card renders
+   * a selectable option list and the chosen option's submit_text (or
+   * free-form user text) is returned as
+   * [AssistantConfirmationResponse.answer_text][google.cloud.ces.v1beta.AssistantConfirmationResponse.answer_text].
+   * 
+ * + * repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 5; + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.OptionQuestionsChunk.QuestionOrBuilder getQuestionsOrBuilder( + int index) { + return questions_.get(index); + } + + public static final int TOOL_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object tool_ = ""; + + /** + * + * + *
+   * Name of the tool call the agent paused on (e.g. "update_app"), for the
+   * card header. Unset for pure questions.
+   * 
+ * + * string tool = 6; + * + * @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; + } + } + + /** + * + * + *
+   * Name of the tool call the agent paused on (e.g. "update_app"), for the
+   * card header. Unset for pure questions.
+   * 
+ * + * string tool = 6; + * + * @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 AGENT_NAME_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object agentName_ = ""; + + /** + * + * + *
+   * Display label of the agent that raised the confirmation (e.g.
+   * `"Contract Architect"`), for the card header.
+   * 
+ * + * string agent_name = 7; + * + * @return The agentName. + */ + @java.lang.Override + public java.lang.String getAgentName() { + java.lang.Object ref = agentName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + agentName_ = s; + return s; + } + } + + /** + * + * + *
+   * Display label of the agent that raised the confirmation (e.g.
+   * `"Contract Architect"`), for the card header.
+   * 
+ * + * string agent_name = 7; + * + * @return The bytes for agentName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAgentNameBytes() { + java.lang.Object ref = agentName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + agentName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXPIRE_TIME_FIELD_NUMBER = 8; + private com.google.protobuf.Timestamp expireTime_; + + /** + * + * + *
+   * Time after which this confirmation can no longer be answered. An expired
+   * card renders as inactive, and the server declines the confirmation on the
+   * next turn so the paused agent does not wait indefinitely.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 8; + * + * @return Whether the expireTime field is set. + */ + @java.lang.Override + public boolean hasExpireTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Time after which this confirmation can no longer be answered. An expired
+   * card renders as inactive, and the server declines the confirmation on the
+   * next turn so the paused agent does not wait indefinitely.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 8; + * + * @return The expireTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getExpireTime() { + return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + } + + /** + * + * + *
+   * Time after which this confirmation can no longer be answered. An expired
+   * card renders as inactive, and the server declines the confirmation on the
+   * next turn so the paused agent does not wait indefinitely.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 8; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { + return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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(confirmationId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, confirmationId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(context_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, context_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(positiveLabel_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, positiveLabel_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(negativeLabel_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, negativeLabel_); + } + for (int i = 0; i < questions_.size(); i++) { + output.writeMessage(5, questions_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tool_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, tool_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(agentName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, agentName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(8, getExpireTime()); + } + 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(confirmationId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, confirmationId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(context_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, context_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(positiveLabel_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, positiveLabel_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(negativeLabel_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, negativeLabel_); + } + for (int i = 0; i < questions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, questions_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tool_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, tool_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(agentName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, agentName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getExpireTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.AssistantConfirmationRequest)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.AssistantConfirmationRequest other = + (com.google.cloud.ces.v1beta.AssistantConfirmationRequest) obj; + + if (!getConfirmationId().equals(other.getConfirmationId())) return false; + if (!getContext().equals(other.getContext())) return false; + if (!getPositiveLabel().equals(other.getPositiveLabel())) return false; + if (!getNegativeLabel().equals(other.getNegativeLabel())) return false; + if (!getQuestionsList().equals(other.getQuestionsList())) return false; + if (!getTool().equals(other.getTool())) return false; + if (!getAgentName().equals(other.getAgentName())) return false; + if (hasExpireTime() != other.hasExpireTime()) return false; + if (hasExpireTime()) { + if (!getExpireTime().equals(other.getExpireTime())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CONFIRMATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getConfirmationId().hashCode(); + hash = (37 * hash) + CONTEXT_FIELD_NUMBER; + hash = (53 * hash) + getContext().hashCode(); + hash = (37 * hash) + POSITIVE_LABEL_FIELD_NUMBER; + hash = (53 * hash) + getPositiveLabel().hashCode(); + hash = (37 * hash) + NEGATIVE_LABEL_FIELD_NUMBER; + hash = (53 * hash) + getNegativeLabel().hashCode(); + if (getQuestionsCount() > 0) { + hash = (37 * hash) + QUESTIONS_FIELD_NUMBER; + hash = (53 * hash) + getQuestionsList().hashCode(); + } + hash = (37 * hash) + TOOL_FIELD_NUMBER; + hash = (53 * hash) + getTool().hashCode(); + hash = (37 * hash) + AGENT_NAME_FIELD_NUMBER; + hash = (53 * hash) + getAgentName().hashCode(); + if (hasExpireTime()) { + hash = (37 * hash) + EXPIRE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getExpireTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.AssistantConfirmationRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.AssistantConfirmationRequest parseFrom( + 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.AssistantConfirmationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.AssistantConfirmationRequest parseFrom( + com.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.AssistantConfirmationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.AssistantConfirmationRequest 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.AssistantConfirmationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.AssistantConfirmationRequest parseFrom( + java.io.InputStream 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.AssistantConfirmationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.AssistantConfirmationRequest parseDelimitedFrom( + java.io.InputStream 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.AssistantConfirmationRequest 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.AssistantConfirmationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, 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.AssistantConfirmationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 blocking question or confirmation the assistant needs answered before an
+   * agent action can proceed. The requesting agent is paused and resumes only
+   * when the answer arrives on a later
+   * [StreamChatAiAssistantRequest.confirmation_response][google.cloud.ces.v1beta.StreamChatAiAssistantRequest.confirmation_response].
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.AssistantConfirmationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.AssistantConfirmationRequest) + com.google.cloud.ces.v1beta.AssistantConfirmationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantConfirmationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantConfirmationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.AssistantConfirmationRequest.class, + com.google.cloud.ces.v1beta.AssistantConfirmationRequest.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.AssistantConfirmationRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetQuestionsFieldBuilder(); + internalGetExpireTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + confirmationId_ = ""; + context_ = ""; + positiveLabel_ = ""; + negativeLabel_ = ""; + if (questionsBuilder_ == null) { + questions_ = java.util.Collections.emptyList(); + } else { + questions_ = null; + questionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + tool_ = ""; + agentName_ = ""; + expireTime_ = null; + if (expireTimeBuilder_ != null) { + expireTimeBuilder_.dispose(); + expireTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantConfirmationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantConfirmationRequest getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.AssistantConfirmationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantConfirmationRequest build() { + com.google.cloud.ces.v1beta.AssistantConfirmationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantConfirmationRequest buildPartial() { + com.google.cloud.ces.v1beta.AssistantConfirmationRequest result = + new com.google.cloud.ces.v1beta.AssistantConfirmationRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.ces.v1beta.AssistantConfirmationRequest result) { + if (questionsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + questions_ = java.util.Collections.unmodifiableList(questions_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.questions_ = questions_; + } else { + result.questions_ = questionsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.ces.v1beta.AssistantConfirmationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.confirmationId_ = confirmationId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.context_ = context_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.positiveLabel_ = positiveLabel_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.negativeLabel_ = negativeLabel_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.tool_ = tool_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.agentName_ = agentName_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000080) != 0)) { + result.expireTime_ = expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.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.v1beta.AssistantConfirmationRequest) { + return mergeFrom((com.google.cloud.ces.v1beta.AssistantConfirmationRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.AssistantConfirmationRequest other) { + if (other == com.google.cloud.ces.v1beta.AssistantConfirmationRequest.getDefaultInstance()) + return this; + if (!other.getConfirmationId().isEmpty()) { + confirmationId_ = other.confirmationId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getContext().isEmpty()) { + context_ = other.context_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getPositiveLabel().isEmpty()) { + positiveLabel_ = other.positiveLabel_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getNegativeLabel().isEmpty()) { + negativeLabel_ = other.negativeLabel_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (questionsBuilder_ == null) { + if (!other.questions_.isEmpty()) { + if (questions_.isEmpty()) { + questions_ = other.questions_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureQuestionsIsMutable(); + questions_.addAll(other.questions_); + } + onChanged(); + } + } else { + if (!other.questions_.isEmpty()) { + if (questionsBuilder_.isEmpty()) { + questionsBuilder_.dispose(); + questionsBuilder_ = null; + questions_ = other.questions_; + bitField0_ = (bitField0_ & ~0x00000010); + questionsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetQuestionsFieldBuilder() + : null; + } else { + questionsBuilder_.addAllMessages(other.questions_); + } + } + } + if (!other.getTool().isEmpty()) { + tool_ = other.tool_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getAgentName().isEmpty()) { + agentName_ = other.agentName_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (other.hasExpireTime()) { + mergeExpireTime(other.getExpireTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + confirmationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + context_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + positiveLabel_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + negativeLabel_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + com.google.cloud.ces.v1beta.OptionQuestionsChunk.Question m = + input.readMessage( + com.google.cloud.ces.v1beta.OptionQuestionsChunk.Question.parser(), + extensionRegistry); + if (questionsBuilder_ == null) { + ensureQuestionsIsMutable(); + questions_.add(m); + } else { + questionsBuilder_.addMessage(m); + } + break; + } // case 42 + case 50: + { + tool_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + agentName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + input.readMessage( + internalGetExpireTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object confirmationId_ = ""; + + /** + * + * + *
+     * Identifier correlating this request with its response. Opaque to
+     * clients; must be echoed verbatim on the answering request.
+     * 
+ * + * string confirmation_id = 1; + * + * @return The confirmationId. + */ + public java.lang.String getConfirmationId() { + java.lang.Object ref = confirmationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + confirmationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Identifier correlating this request with its response. Opaque to
+     * clients; must be echoed verbatim on the answering request.
+     * 
+ * + * string confirmation_id = 1; + * + * @return The bytes for confirmationId. + */ + public com.google.protobuf.ByteString getConfirmationIdBytes() { + java.lang.Object ref = confirmationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + confirmationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Identifier correlating this request with its response. Opaque to
+     * clients; must be echoed verbatim on the answering request.
+     * 
+ * + * string confirmation_id = 1; + * + * @param value The confirmationId to set. + * @return This builder for chaining. + */ + public Builder setConfirmationId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + confirmationId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier correlating this request with its response. Opaque to
+     * clients; must be echoed verbatim on the answering request.
+     * 
+ * + * string confirmation_id = 1; + * + * @return This builder for chaining. + */ + public Builder clearConfirmationId() { + confirmationId_ = getDefaultInstance().getConfirmationId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier correlating this request with its response. Opaque to
+     * clients; must be echoed verbatim on the answering request.
+     * 
+ * + * string confirmation_id = 1; + * + * @param value The bytes for confirmationId to set. + * @return This builder for chaining. + */ + public Builder setConfirmationIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + confirmationId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object context_ = ""; + + /** + * + * + *
+     * Context describing what is being confirmed (e.g. the action the agent
+     * wants to take, or the question it needs answered). Rendered as plain
+     * text, not Markdown.
+     * 
+ * + * string context = 2; + * + * @return The context. + */ + public java.lang.String getContext() { + java.lang.Object ref = context_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + context_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Context describing what is being confirmed (e.g. the action the agent
+     * wants to take, or the question it needs answered). Rendered as plain
+     * text, not Markdown.
+     * 
+ * + * string context = 2; + * + * @return The bytes for context. + */ + public com.google.protobuf.ByteString getContextBytes() { + java.lang.Object ref = context_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + context_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Context describing what is being confirmed (e.g. the action the agent
+     * wants to take, or the question it needs answered). Rendered as plain
+     * text, not Markdown.
+     * 
+ * + * string context = 2; + * + * @param value The context to set. + * @return This builder for chaining. + */ + public Builder setContext(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + context_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Context describing what is being confirmed (e.g. the action the agent
+     * wants to take, or the question it needs answered). Rendered as plain
+     * text, not Markdown.
+     * 
+ * + * string context = 2; + * + * @return This builder for chaining. + */ + public Builder clearContext() { + context_ = getDefaultInstance().getContext(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Context describing what is being confirmed (e.g. the action the agent
+     * wants to take, or the question it needs answered). Rendered as plain
+     * text, not Markdown.
+     * 
+ * + * string context = 2; + * + * @param value The bytes for context to set. + * @return This builder for chaining. + */ + public Builder setContextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + context_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object positiveLabel_ = ""; + + /** + * + * + *
+     * Label for the approving action of a binary confirmation (e.g. "Publish").
+     * Unset when `questions` is populated.
+     * 
+ * + * string positive_label = 3; + * + * @return The positiveLabel. + */ + public java.lang.String getPositiveLabel() { + java.lang.Object ref = positiveLabel_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + positiveLabel_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Label for the approving action of a binary confirmation (e.g. "Publish").
+     * Unset when `questions` is populated.
+     * 
+ * + * string positive_label = 3; + * + * @return The bytes for positiveLabel. + */ + public com.google.protobuf.ByteString getPositiveLabelBytes() { + java.lang.Object ref = positiveLabel_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + positiveLabel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Label for the approving action of a binary confirmation (e.g. "Publish").
+     * Unset when `questions` is populated.
+     * 
+ * + * string positive_label = 3; + * + * @param value The positiveLabel to set. + * @return This builder for chaining. + */ + public Builder setPositiveLabel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + positiveLabel_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Label for the approving action of a binary confirmation (e.g. "Publish").
+     * Unset when `questions` is populated.
+     * 
+ * + * string positive_label = 3; + * + * @return This builder for chaining. + */ + public Builder clearPositiveLabel() { + positiveLabel_ = getDefaultInstance().getPositiveLabel(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Label for the approving action of a binary confirmation (e.g. "Publish").
+     * Unset when `questions` is populated.
+     * 
+ * + * string positive_label = 3; + * + * @param value The bytes for positiveLabel to set. + * @return This builder for chaining. + */ + public Builder setPositiveLabelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + positiveLabel_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object negativeLabel_ = ""; + + /** + * + * + *
+     * Label for the declining action of a binary confirmation (e.g. "Not yet").
+     * Unset when `questions` is populated.
+     * 
+ * + * string negative_label = 4; + * + * @return The negativeLabel. + */ + public java.lang.String getNegativeLabel() { + java.lang.Object ref = negativeLabel_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + negativeLabel_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Label for the declining action of a binary confirmation (e.g. "Not yet").
+     * Unset when `questions` is populated.
+     * 
+ * + * string negative_label = 4; + * + * @return The bytes for negativeLabel. + */ + public com.google.protobuf.ByteString getNegativeLabelBytes() { + java.lang.Object ref = negativeLabel_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + negativeLabel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Label for the declining action of a binary confirmation (e.g. "Not yet").
+     * Unset when `questions` is populated.
+     * 
+ * + * string negative_label = 4; + * + * @param value The negativeLabel to set. + * @return This builder for chaining. + */ + public Builder setNegativeLabel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + negativeLabel_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Label for the declining action of a binary confirmation (e.g. "Not yet").
+     * Unset when `questions` is populated.
+     * 
+ * + * string negative_label = 4; + * + * @return This builder for chaining. + */ + public Builder clearNegativeLabel() { + negativeLabel_ = getDefaultInstance().getNegativeLabel(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Label for the declining action of a binary confirmation (e.g. "Not yet").
+     * Unset when `questions` is populated.
+     * 
+ * + * string negative_label = 4; + * + * @param value The bytes for negativeLabel to set. + * @return This builder for chaining. + */ + public Builder setNegativeLabelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + negativeLabel_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.util.List questions_ = + java.util.Collections.emptyList(); + + private void ensureQuestionsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + questions_ = + new java.util.ArrayList( + questions_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.OptionQuestionsChunk.Question, + com.google.cloud.ces.v1beta.OptionQuestionsChunk.Question.Builder, + com.google.cloud.ces.v1beta.OptionQuestionsChunk.QuestionOrBuilder> + questionsBuilder_; + + /** + * + * + *
+     * Multi-choice form of the confirmation. When populated, the card renders
+     * a selectable option list and the chosen option's submit_text (or
+     * free-form user text) is returned as
+     * [AssistantConfirmationResponse.answer_text][google.cloud.ces.v1beta.AssistantConfirmationResponse.answer_text].
+     * 
+ * + * repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 5; + */ + public java.util.List + getQuestionsList() { + if (questionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(questions_); + } else { + return questionsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Multi-choice form of the confirmation. When populated, the card renders
+     * a selectable option list and the chosen option's submit_text (or
+     * free-form user text) is returned as
+     * [AssistantConfirmationResponse.answer_text][google.cloud.ces.v1beta.AssistantConfirmationResponse.answer_text].
+     * 
+ * + * repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 5; + */ + public int getQuestionsCount() { + if (questionsBuilder_ == null) { + return questions_.size(); + } else { + return questionsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Multi-choice form of the confirmation. When populated, the card renders
+     * a selectable option list and the chosen option's submit_text (or
+     * free-form user text) is returned as
+     * [AssistantConfirmationResponse.answer_text][google.cloud.ces.v1beta.AssistantConfirmationResponse.answer_text].
+     * 
+ * + * repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 5; + */ + public com.google.cloud.ces.v1beta.OptionQuestionsChunk.Question getQuestions(int index) { + if (questionsBuilder_ == null) { + return questions_.get(index); + } else { + return questionsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Multi-choice form of the confirmation. When populated, the card renders
+     * a selectable option list and the chosen option's submit_text (or
+     * free-form user text) is returned as
+     * [AssistantConfirmationResponse.answer_text][google.cloud.ces.v1beta.AssistantConfirmationResponse.answer_text].
+     * 
+ * + * repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 5; + */ + public Builder setQuestions( + int index, com.google.cloud.ces.v1beta.OptionQuestionsChunk.Question value) { + if (questionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureQuestionsIsMutable(); + questions_.set(index, value); + onChanged(); + } else { + questionsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Multi-choice form of the confirmation. When populated, the card renders
+     * a selectable option list and the chosen option's submit_text (or
+     * free-form user text) is returned as
+     * [AssistantConfirmationResponse.answer_text][google.cloud.ces.v1beta.AssistantConfirmationResponse.answer_text].
+     * 
+ * + * repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 5; + */ + public Builder setQuestions( + int index, + com.google.cloud.ces.v1beta.OptionQuestionsChunk.Question.Builder builderForValue) { + if (questionsBuilder_ == null) { + ensureQuestionsIsMutable(); + questions_.set(index, builderForValue.build()); + onChanged(); + } else { + questionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Multi-choice form of the confirmation. When populated, the card renders
+     * a selectable option list and the chosen option's submit_text (or
+     * free-form user text) is returned as
+     * [AssistantConfirmationResponse.answer_text][google.cloud.ces.v1beta.AssistantConfirmationResponse.answer_text].
+     * 
+ * + * repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 5; + */ + public Builder addQuestions(com.google.cloud.ces.v1beta.OptionQuestionsChunk.Question value) { + if (questionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureQuestionsIsMutable(); + questions_.add(value); + onChanged(); + } else { + questionsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Multi-choice form of the confirmation. When populated, the card renders
+     * a selectable option list and the chosen option's submit_text (or
+     * free-form user text) is returned as
+     * [AssistantConfirmationResponse.answer_text][google.cloud.ces.v1beta.AssistantConfirmationResponse.answer_text].
+     * 
+ * + * repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 5; + */ + public Builder addQuestions( + int index, com.google.cloud.ces.v1beta.OptionQuestionsChunk.Question value) { + if (questionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureQuestionsIsMutable(); + questions_.add(index, value); + onChanged(); + } else { + questionsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Multi-choice form of the confirmation. When populated, the card renders
+     * a selectable option list and the chosen option's submit_text (or
+     * free-form user text) is returned as
+     * [AssistantConfirmationResponse.answer_text][google.cloud.ces.v1beta.AssistantConfirmationResponse.answer_text].
+     * 
+ * + * repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 5; + */ + public Builder addQuestions( + com.google.cloud.ces.v1beta.OptionQuestionsChunk.Question.Builder builderForValue) { + if (questionsBuilder_ == null) { + ensureQuestionsIsMutable(); + questions_.add(builderForValue.build()); + onChanged(); + } else { + questionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Multi-choice form of the confirmation. When populated, the card renders
+     * a selectable option list and the chosen option's submit_text (or
+     * free-form user text) is returned as
+     * [AssistantConfirmationResponse.answer_text][google.cloud.ces.v1beta.AssistantConfirmationResponse.answer_text].
+     * 
+ * + * repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 5; + */ + public Builder addQuestions( + int index, + com.google.cloud.ces.v1beta.OptionQuestionsChunk.Question.Builder builderForValue) { + if (questionsBuilder_ == null) { + ensureQuestionsIsMutable(); + questions_.add(index, builderForValue.build()); + onChanged(); + } else { + questionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Multi-choice form of the confirmation. When populated, the card renders
+     * a selectable option list and the chosen option's submit_text (or
+     * free-form user text) is returned as
+     * [AssistantConfirmationResponse.answer_text][google.cloud.ces.v1beta.AssistantConfirmationResponse.answer_text].
+     * 
+ * + * repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 5; + */ + public Builder addAllQuestions( + java.lang.Iterable + values) { + if (questionsBuilder_ == null) { + ensureQuestionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, questions_); + onChanged(); + } else { + questionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Multi-choice form of the confirmation. When populated, the card renders
+     * a selectable option list and the chosen option's submit_text (or
+     * free-form user text) is returned as
+     * [AssistantConfirmationResponse.answer_text][google.cloud.ces.v1beta.AssistantConfirmationResponse.answer_text].
+     * 
+ * + * repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 5; + */ + public Builder clearQuestions() { + if (questionsBuilder_ == null) { + questions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + questionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Multi-choice form of the confirmation. When populated, the card renders
+     * a selectable option list and the chosen option's submit_text (or
+     * free-form user text) is returned as
+     * [AssistantConfirmationResponse.answer_text][google.cloud.ces.v1beta.AssistantConfirmationResponse.answer_text].
+     * 
+ * + * repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 5; + */ + public Builder removeQuestions(int index) { + if (questionsBuilder_ == null) { + ensureQuestionsIsMutable(); + questions_.remove(index); + onChanged(); + } else { + questionsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Multi-choice form of the confirmation. When populated, the card renders
+     * a selectable option list and the chosen option's submit_text (or
+     * free-form user text) is returned as
+     * [AssistantConfirmationResponse.answer_text][google.cloud.ces.v1beta.AssistantConfirmationResponse.answer_text].
+     * 
+ * + * repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 5; + */ + public com.google.cloud.ces.v1beta.OptionQuestionsChunk.Question.Builder getQuestionsBuilder( + int index) { + return internalGetQuestionsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Multi-choice form of the confirmation. When populated, the card renders
+     * a selectable option list and the chosen option's submit_text (or
+     * free-form user text) is returned as
+     * [AssistantConfirmationResponse.answer_text][google.cloud.ces.v1beta.AssistantConfirmationResponse.answer_text].
+     * 
+ * + * repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 5; + */ + public com.google.cloud.ces.v1beta.OptionQuestionsChunk.QuestionOrBuilder getQuestionsOrBuilder( + int index) { + if (questionsBuilder_ == null) { + return questions_.get(index); + } else { + return questionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Multi-choice form of the confirmation. When populated, the card renders
+     * a selectable option list and the chosen option's submit_text (or
+     * free-form user text) is returned as
+     * [AssistantConfirmationResponse.answer_text][google.cloud.ces.v1beta.AssistantConfirmationResponse.answer_text].
+     * 
+ * + * repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 5; + */ + public java.util.List< + ? extends com.google.cloud.ces.v1beta.OptionQuestionsChunk.QuestionOrBuilder> + getQuestionsOrBuilderList() { + if (questionsBuilder_ != null) { + return questionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(questions_); + } + } + + /** + * + * + *
+     * Multi-choice form of the confirmation. When populated, the card renders
+     * a selectable option list and the chosen option's submit_text (or
+     * free-form user text) is returned as
+     * [AssistantConfirmationResponse.answer_text][google.cloud.ces.v1beta.AssistantConfirmationResponse.answer_text].
+     * 
+ * + * repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 5; + */ + public com.google.cloud.ces.v1beta.OptionQuestionsChunk.Question.Builder addQuestionsBuilder() { + return internalGetQuestionsFieldBuilder() + .addBuilder( + com.google.cloud.ces.v1beta.OptionQuestionsChunk.Question.getDefaultInstance()); + } + + /** + * + * + *
+     * Multi-choice form of the confirmation. When populated, the card renders
+     * a selectable option list and the chosen option's submit_text (or
+     * free-form user text) is returned as
+     * [AssistantConfirmationResponse.answer_text][google.cloud.ces.v1beta.AssistantConfirmationResponse.answer_text].
+     * 
+ * + * repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 5; + */ + public com.google.cloud.ces.v1beta.OptionQuestionsChunk.Question.Builder addQuestionsBuilder( + int index) { + return internalGetQuestionsFieldBuilder() + .addBuilder( + index, + com.google.cloud.ces.v1beta.OptionQuestionsChunk.Question.getDefaultInstance()); + } + + /** + * + * + *
+     * Multi-choice form of the confirmation. When populated, the card renders
+     * a selectable option list and the chosen option's submit_text (or
+     * free-form user text) is returned as
+     * [AssistantConfirmationResponse.answer_text][google.cloud.ces.v1beta.AssistantConfirmationResponse.answer_text].
+     * 
+ * + * repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 5; + */ + public java.util.List + getQuestionsBuilderList() { + return internalGetQuestionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.OptionQuestionsChunk.Question, + com.google.cloud.ces.v1beta.OptionQuestionsChunk.Question.Builder, + com.google.cloud.ces.v1beta.OptionQuestionsChunk.QuestionOrBuilder> + internalGetQuestionsFieldBuilder() { + if (questionsBuilder_ == null) { + questionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.OptionQuestionsChunk.Question, + com.google.cloud.ces.v1beta.OptionQuestionsChunk.Question.Builder, + com.google.cloud.ces.v1beta.OptionQuestionsChunk.QuestionOrBuilder>( + questions_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); + questions_ = null; + } + return questionsBuilder_; + } + + private java.lang.Object tool_ = ""; + + /** + * + * + *
+     * Name of the tool call the agent paused on (e.g. "update_app"), for the
+     * card header. Unset for pure questions.
+     * 
+ * + * string tool = 6; + * + * @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; + } + } + + /** + * + * + *
+     * Name of the tool call the agent paused on (e.g. "update_app"), for the
+     * card header. Unset for pure questions.
+     * 
+ * + * string tool = 6; + * + * @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; + } + } + + /** + * + * + *
+     * Name of the tool call the agent paused on (e.g. "update_app"), for the
+     * card header. Unset for pure questions.
+     * 
+ * + * string tool = 6; + * + * @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_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the tool call the agent paused on (e.g. "update_app"), for the
+     * card header. Unset for pure questions.
+     * 
+ * + * string tool = 6; + * + * @return This builder for chaining. + */ + public Builder clearTool() { + tool_ = getDefaultInstance().getTool(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the tool call the agent paused on (e.g. "update_app"), for the
+     * card header. Unset for pure questions.
+     * 
+ * + * string tool = 6; + * + * @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_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object agentName_ = ""; + + /** + * + * + *
+     * Display label of the agent that raised the confirmation (e.g.
+     * `"Contract Architect"`), for the card header.
+     * 
+ * + * string agent_name = 7; + * + * @return The agentName. + */ + public java.lang.String getAgentName() { + java.lang.Object ref = agentName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + agentName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Display label of the agent that raised the confirmation (e.g.
+     * `"Contract Architect"`), for the card header.
+     * 
+ * + * string agent_name = 7; + * + * @return The bytes for agentName. + */ + public com.google.protobuf.ByteString getAgentNameBytes() { + java.lang.Object ref = agentName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + agentName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Display label of the agent that raised the confirmation (e.g.
+     * `"Contract Architect"`), for the card header.
+     * 
+ * + * string agent_name = 7; + * + * @param value The agentName to set. + * @return This builder for chaining. + */ + public Builder setAgentName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + agentName_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Display label of the agent that raised the confirmation (e.g.
+     * `"Contract Architect"`), for the card header.
+     * 
+ * + * string agent_name = 7; + * + * @return This builder for chaining. + */ + public Builder clearAgentName() { + agentName_ = getDefaultInstance().getAgentName(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
+     * Display label of the agent that raised the confirmation (e.g.
+     * `"Contract Architect"`), for the card header.
+     * 
+ * + * string agent_name = 7; + * + * @param value The bytes for agentName to set. + * @return This builder for chaining. + */ + public Builder setAgentNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + agentName_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp expireTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + expireTimeBuilder_; + + /** + * + * + *
+     * Time after which this confirmation can no longer be answered. An expired
+     * card renders as inactive, and the server declines the confirmation on the
+     * next turn so the paused agent does not wait indefinitely.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 8; + * + * @return Whether the expireTime field is set. + */ + public boolean hasExpireTime() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+     * Time after which this confirmation can no longer be answered. An expired
+     * card renders as inactive, and the server declines the confirmation on the
+     * next turn so the paused agent does not wait indefinitely.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 8; + * + * @return The expireTime. + */ + public com.google.protobuf.Timestamp getExpireTime() { + if (expireTimeBuilder_ == null) { + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; + } else { + return expireTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Time after which this confirmation can no longer be answered. An expired
+     * card renders as inactive, and the server declines the confirmation on the
+     * next turn so the paused agent does not wait indefinitely.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 8; + */ + public Builder setExpireTime(com.google.protobuf.Timestamp value) { + if (expireTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expireTime_ = value; + } else { + expireTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Time after which this confirmation can no longer be answered. An expired
+     * card renders as inactive, and the server declines the confirmation on the
+     * next turn so the paused agent does not wait indefinitely.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 8; + */ + public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (expireTimeBuilder_ == null) { + expireTime_ = builderForValue.build(); + } else { + expireTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Time after which this confirmation can no longer be answered. An expired
+     * card renders as inactive, and the server declines the confirmation on the
+     * next turn so the paused agent does not wait indefinitely.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 8; + */ + public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { + if (expireTimeBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && expireTime_ != null + && expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getExpireTimeBuilder().mergeFrom(value); + } else { + expireTime_ = value; + } + } else { + expireTimeBuilder_.mergeFrom(value); + } + if (expireTime_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Time after which this confirmation can no longer be answered. An expired
+     * card renders as inactive, and the server declines the confirmation on the
+     * next turn so the paused agent does not wait indefinitely.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 8; + */ + public Builder clearExpireTime() { + bitField0_ = (bitField0_ & ~0x00000080); + expireTime_ = null; + if (expireTimeBuilder_ != null) { + expireTimeBuilder_.dispose(); + expireTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Time after which this confirmation can no longer be answered. An expired
+     * card renders as inactive, and the server declines the confirmation on the
+     * next turn so the paused agent does not wait indefinitely.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 8; + */ + public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return internalGetExpireTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Time after which this confirmation can no longer be answered. An expired
+     * card renders as inactive, and the server declines the confirmation on the
+     * next turn so the paused agent does not wait indefinitely.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 8; + */ + public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { + if (expireTimeBuilder_ != null) { + return expireTimeBuilder_.getMessageOrBuilder(); + } else { + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; + } + } + + /** + * + * + *
+     * Time after which this confirmation can no longer be answered. An expired
+     * card renders as inactive, and the server declines the confirmation on the
+     * next turn so the paused agent does not wait indefinitely.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 8; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetExpireTimeFieldBuilder() { + if (expireTimeBuilder_ == null) { + expireTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getExpireTime(), getParentForChildren(), isClean()); + expireTime_ = null; + } + return expireTimeBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.AssistantConfirmationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.AssistantConfirmationRequest) + private static final com.google.cloud.ces.v1beta.AssistantConfirmationRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.AssistantConfirmationRequest(); + } + + public static com.google.cloud.ces.v1beta.AssistantConfirmationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AssistantConfirmationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.AssistantConfirmationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantConfirmationRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantConfirmationRequestOrBuilder.java new file mode 100644 index 000000000000..229c2e16dd91 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantConfirmationRequestOrBuilder.java @@ -0,0 +1,313 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language 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/session_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public interface AssistantConfirmationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.AssistantConfirmationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier correlating this request with its response. Opaque to
+   * clients; must be echoed verbatim on the answering request.
+   * 
+ * + * string confirmation_id = 1; + * + * @return The confirmationId. + */ + java.lang.String getConfirmationId(); + + /** + * + * + *
+   * Identifier correlating this request with its response. Opaque to
+   * clients; must be echoed verbatim on the answering request.
+   * 
+ * + * string confirmation_id = 1; + * + * @return The bytes for confirmationId. + */ + com.google.protobuf.ByteString getConfirmationIdBytes(); + + /** + * + * + *
+   * Context describing what is being confirmed (e.g. the action the agent
+   * wants to take, or the question it needs answered). Rendered as plain
+   * text, not Markdown.
+   * 
+ * + * string context = 2; + * + * @return The context. + */ + java.lang.String getContext(); + + /** + * + * + *
+   * Context describing what is being confirmed (e.g. the action the agent
+   * wants to take, or the question it needs answered). Rendered as plain
+   * text, not Markdown.
+   * 
+ * + * string context = 2; + * + * @return The bytes for context. + */ + com.google.protobuf.ByteString getContextBytes(); + + /** + * + * + *
+   * Label for the approving action of a binary confirmation (e.g. "Publish").
+   * Unset when `questions` is populated.
+   * 
+ * + * string positive_label = 3; + * + * @return The positiveLabel. + */ + java.lang.String getPositiveLabel(); + + /** + * + * + *
+   * Label for the approving action of a binary confirmation (e.g. "Publish").
+   * Unset when `questions` is populated.
+   * 
+ * + * string positive_label = 3; + * + * @return The bytes for positiveLabel. + */ + com.google.protobuf.ByteString getPositiveLabelBytes(); + + /** + * + * + *
+   * Label for the declining action of a binary confirmation (e.g. "Not yet").
+   * Unset when `questions` is populated.
+   * 
+ * + * string negative_label = 4; + * + * @return The negativeLabel. + */ + java.lang.String getNegativeLabel(); + + /** + * + * + *
+   * Label for the declining action of a binary confirmation (e.g. "Not yet").
+   * Unset when `questions` is populated.
+   * 
+ * + * string negative_label = 4; + * + * @return The bytes for negativeLabel. + */ + com.google.protobuf.ByteString getNegativeLabelBytes(); + + /** + * + * + *
+   * Multi-choice form of the confirmation. When populated, the card renders
+   * a selectable option list and the chosen option's submit_text (or
+   * free-form user text) is returned as
+   * [AssistantConfirmationResponse.answer_text][google.cloud.ces.v1beta.AssistantConfirmationResponse.answer_text].
+   * 
+ * + * repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 5; + */ + java.util.List getQuestionsList(); + + /** + * + * + *
+   * Multi-choice form of the confirmation. When populated, the card renders
+   * a selectable option list and the chosen option's submit_text (or
+   * free-form user text) is returned as
+   * [AssistantConfirmationResponse.answer_text][google.cloud.ces.v1beta.AssistantConfirmationResponse.answer_text].
+   * 
+ * + * repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 5; + */ + com.google.cloud.ces.v1beta.OptionQuestionsChunk.Question getQuestions(int index); + + /** + * + * + *
+   * Multi-choice form of the confirmation. When populated, the card renders
+   * a selectable option list and the chosen option's submit_text (or
+   * free-form user text) is returned as
+   * [AssistantConfirmationResponse.answer_text][google.cloud.ces.v1beta.AssistantConfirmationResponse.answer_text].
+   * 
+ * + * repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 5; + */ + int getQuestionsCount(); + + /** + * + * + *
+   * Multi-choice form of the confirmation. When populated, the card renders
+   * a selectable option list and the chosen option's submit_text (or
+   * free-form user text) is returned as
+   * [AssistantConfirmationResponse.answer_text][google.cloud.ces.v1beta.AssistantConfirmationResponse.answer_text].
+   * 
+ * + * repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 5; + */ + java.util.List + getQuestionsOrBuilderList(); + + /** + * + * + *
+   * Multi-choice form of the confirmation. When populated, the card renders
+   * a selectable option list and the chosen option's submit_text (or
+   * free-form user text) is returned as
+   * [AssistantConfirmationResponse.answer_text][google.cloud.ces.v1beta.AssistantConfirmationResponse.answer_text].
+   * 
+ * + * repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 5; + */ + com.google.cloud.ces.v1beta.OptionQuestionsChunk.QuestionOrBuilder getQuestionsOrBuilder( + int index); + + /** + * + * + *
+   * Name of the tool call the agent paused on (e.g. "update_app"), for the
+   * card header. Unset for pure questions.
+   * 
+ * + * string tool = 6; + * + * @return The tool. + */ + java.lang.String getTool(); + + /** + * + * + *
+   * Name of the tool call the agent paused on (e.g. "update_app"), for the
+   * card header. Unset for pure questions.
+   * 
+ * + * string tool = 6; + * + * @return The bytes for tool. + */ + com.google.protobuf.ByteString getToolBytes(); + + /** + * + * + *
+   * Display label of the agent that raised the confirmation (e.g.
+   * `"Contract Architect"`), for the card header.
+   * 
+ * + * string agent_name = 7; + * + * @return The agentName. + */ + java.lang.String getAgentName(); + + /** + * + * + *
+   * Display label of the agent that raised the confirmation (e.g.
+   * `"Contract Architect"`), for the card header.
+   * 
+ * + * string agent_name = 7; + * + * @return The bytes for agentName. + */ + com.google.protobuf.ByteString getAgentNameBytes(); + + /** + * + * + *
+   * Time after which this confirmation can no longer be answered. An expired
+   * card renders as inactive, and the server declines the confirmation on the
+   * next turn so the paused agent does not wait indefinitely.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 8; + * + * @return Whether the expireTime field is set. + */ + boolean hasExpireTime(); + + /** + * + * + *
+   * Time after which this confirmation can no longer be answered. An expired
+   * card renders as inactive, and the server declines the confirmation on the
+   * next turn so the paused agent does not wait indefinitely.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 8; + * + * @return The expireTime. + */ + com.google.protobuf.Timestamp getExpireTime(); + + /** + * + * + *
+   * Time after which this confirmation can no longer be answered. An expired
+   * card renders as inactive, and the server declines the confirmation on the
+   * next turn so the paused agent does not wait indefinitely.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 8; + */ + com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantConfirmationResponse.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantConfirmationResponse.java new file mode 100644 index 000000000000..c5d440a6a812 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantConfirmationResponse.java @@ -0,0 +1,1091 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language 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/session_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +/** + * + * + *
+ * The user's answer to an
+ * [AssistantConfirmationRequest][google.cloud.ces.v1beta.AssistantConfirmationRequest],
+ * sent on the next
+ * [SessionService.StreamChatAiAssistant][google.cloud.ces.v1beta.SessionService.StreamChatAiAssistant]
+ * call to resume the paused agent.
+ * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.AssistantConfirmationResponse} + */ +@com.google.protobuf.Generated +public final class AssistantConfirmationResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.AssistantConfirmationResponse) + AssistantConfirmationResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AssistantConfirmationResponse"); + } + + // Use AssistantConfirmationResponse.newBuilder() to construct. + private AssistantConfirmationResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AssistantConfirmationResponse() { + confirmationId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantConfirmationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantConfirmationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.AssistantConfirmationResponse.class, + com.google.cloud.ces.v1beta.AssistantConfirmationResponse.Builder.class); + } + + private int responseCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object response_; + + public enum ResponseCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + CONFIRMED(2), + ANSWER_TEXT(3), + RESPONSE_NOT_SET(0); + private final int value; + + private ResponseCase(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 ResponseCase valueOf(int value) { + return forNumber(value); + } + + public static ResponseCase forNumber(int value) { + switch (value) { + case 2: + return CONFIRMED; + case 3: + return ANSWER_TEXT; + case 0: + return RESPONSE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ResponseCase getResponseCase() { + return ResponseCase.forNumber(responseCase_); + } + + public static final int CONFIRMED_FIELD_NUMBER = 2; + + /** + * + * + *
+   * Binary answer: true approves the paused action, false declines it.
+   * 
+ * + * bool confirmed = 2; + * + * @return Whether the confirmed field is set. + */ + @java.lang.Override + public boolean hasConfirmed() { + return responseCase_ == 2; + } + + /** + * + * + *
+   * Binary answer: true approves the paused action, false declines it.
+   * 
+ * + * bool confirmed = 2; + * + * @return The confirmed. + */ + @java.lang.Override + public boolean getConfirmed() { + if (responseCase_ == 2) { + return (java.lang.Boolean) response_; + } + return false; + } + + public static final int ANSWER_TEXT_FIELD_NUMBER = 3; + + /** + * + * + *
+   * The chosen option's submit_text, or free-form user text. The paused
+   * action is cancelled and the text is handed to the agent to act on.
+   * 
+ * + * string answer_text = 3; + * + * @return Whether the answerText field is set. + */ + public boolean hasAnswerText() { + return responseCase_ == 3; + } + + /** + * + * + *
+   * The chosen option's submit_text, or free-form user text. The paused
+   * action is cancelled and the text is handed to the agent to act on.
+   * 
+ * + * string answer_text = 3; + * + * @return The answerText. + */ + public java.lang.String getAnswerText() { + java.lang.Object ref = ""; + if (responseCase_ == 3) { + ref = response_; + } + if (ref instanceof java.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 (responseCase_ == 3) { + response_ = s; + } + return s; + } + } + + /** + * + * + *
+   * The chosen option's submit_text, or free-form user text. The paused
+   * action is cancelled and the text is handed to the agent to act on.
+   * 
+ * + * string answer_text = 3; + * + * @return The bytes for answerText. + */ + public com.google.protobuf.ByteString getAnswerTextBytes() { + java.lang.Object ref = ""; + if (responseCase_ == 3) { + ref = response_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (responseCase_ == 3) { + response_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONFIRMATION_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object confirmationId_ = ""; + + /** + * + * + *
+   * The
+   * [AssistantConfirmationRequest.confirmation_id][google.cloud.ces.v1beta.AssistantConfirmationRequest.confirmation_id]
+   * being answered.
+   * 
+ * + * string confirmation_id = 1; + * + * @return The confirmationId. + */ + @java.lang.Override + public java.lang.String getConfirmationId() { + java.lang.Object ref = confirmationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + confirmationId_ = s; + return s; + } + } + + /** + * + * + *
+   * The
+   * [AssistantConfirmationRequest.confirmation_id][google.cloud.ces.v1beta.AssistantConfirmationRequest.confirmation_id]
+   * being answered.
+   * 
+ * + * string confirmation_id = 1; + * + * @return The bytes for confirmationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getConfirmationIdBytes() { + java.lang.Object ref = confirmationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + confirmationId_ = 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(confirmationId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, confirmationId_); + } + if (responseCase_ == 2) { + output.writeBool(2, (boolean) ((java.lang.Boolean) response_)); + } + if (responseCase_ == 3) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, response_); + } + 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(confirmationId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, confirmationId_); + } + if (responseCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 2, (boolean) ((java.lang.Boolean) response_)); + } + if (responseCase_ == 3) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, response_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.AssistantConfirmationResponse)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.AssistantConfirmationResponse other = + (com.google.cloud.ces.v1beta.AssistantConfirmationResponse) obj; + + if (!getConfirmationId().equals(other.getConfirmationId())) return false; + if (!getResponseCase().equals(other.getResponseCase())) return false; + switch (responseCase_) { + case 2: + if (getConfirmed() != other.getConfirmed()) return false; + break; + case 3: + if (!getAnswerText().equals(other.getAnswerText())) 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) + CONFIRMATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getConfirmationId().hashCode(); + switch (responseCase_) { + case 2: + hash = (37 * hash) + CONFIRMED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getConfirmed()); + break; + case 3: + hash = (37 * hash) + ANSWER_TEXT_FIELD_NUMBER; + hash = (53 * hash) + getAnswerText().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.AssistantConfirmationResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.AssistantConfirmationResponse parseFrom( + 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.AssistantConfirmationResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.AssistantConfirmationResponse parseFrom( + com.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.AssistantConfirmationResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.AssistantConfirmationResponse 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.AssistantConfirmationResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.AssistantConfirmationResponse parseFrom( + java.io.InputStream 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.AssistantConfirmationResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.AssistantConfirmationResponse parseDelimitedFrom( + java.io.InputStream 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.AssistantConfirmationResponse 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.AssistantConfirmationResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, 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.AssistantConfirmationResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 user's answer to an
+   * [AssistantConfirmationRequest][google.cloud.ces.v1beta.AssistantConfirmationRequest],
+   * sent on the next
+   * [SessionService.StreamChatAiAssistant][google.cloud.ces.v1beta.SessionService.StreamChatAiAssistant]
+   * call to resume the paused agent.
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.AssistantConfirmationResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.AssistantConfirmationResponse) + com.google.cloud.ces.v1beta.AssistantConfirmationResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantConfirmationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantConfirmationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.AssistantConfirmationResponse.class, + com.google.cloud.ces.v1beta.AssistantConfirmationResponse.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.AssistantConfirmationResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + confirmationId_ = ""; + responseCase_ = 0; + response_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantConfirmationResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantConfirmationResponse getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.AssistantConfirmationResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantConfirmationResponse build() { + com.google.cloud.ces.v1beta.AssistantConfirmationResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantConfirmationResponse buildPartial() { + com.google.cloud.ces.v1beta.AssistantConfirmationResponse result = + new com.google.cloud.ces.v1beta.AssistantConfirmationResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1beta.AssistantConfirmationResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.confirmationId_ = confirmationId_; + } + } + + private void buildPartialOneofs( + com.google.cloud.ces.v1beta.AssistantConfirmationResponse result) { + result.responseCase_ = responseCase_; + result.response_ = this.response_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.AssistantConfirmationResponse) { + return mergeFrom((com.google.cloud.ces.v1beta.AssistantConfirmationResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.AssistantConfirmationResponse other) { + if (other == com.google.cloud.ces.v1beta.AssistantConfirmationResponse.getDefaultInstance()) + return this; + if (!other.getConfirmationId().isEmpty()) { + confirmationId_ = other.confirmationId_; + bitField0_ |= 0x00000004; + onChanged(); + } + switch (other.getResponseCase()) { + case CONFIRMED: + { + setConfirmed(other.getConfirmed()); + break; + } + case ANSWER_TEXT: + { + responseCase_ = 3; + response_ = other.response_; + onChanged(); + break; + } + case RESPONSE_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: + { + confirmationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 10 + case 16: + { + response_ = input.readBool(); + responseCase_ = 2; + break; + } // case 16 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + responseCase_ = 3; + response_ = s; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int responseCase_ = 0; + private java.lang.Object response_; + + public ResponseCase getResponseCase() { + return ResponseCase.forNumber(responseCase_); + } + + public Builder clearResponse() { + responseCase_ = 0; + response_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
+     * Binary answer: true approves the paused action, false declines it.
+     * 
+ * + * bool confirmed = 2; + * + * @return Whether the confirmed field is set. + */ + public boolean hasConfirmed() { + return responseCase_ == 2; + } + + /** + * + * + *
+     * Binary answer: true approves the paused action, false declines it.
+     * 
+ * + * bool confirmed = 2; + * + * @return The confirmed. + */ + public boolean getConfirmed() { + if (responseCase_ == 2) { + return (java.lang.Boolean) response_; + } + return false; + } + + /** + * + * + *
+     * Binary answer: true approves the paused action, false declines it.
+     * 
+ * + * bool confirmed = 2; + * + * @param value The confirmed to set. + * @return This builder for chaining. + */ + public Builder setConfirmed(boolean value) { + + responseCase_ = 2; + response_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Binary answer: true approves the paused action, false declines it.
+     * 
+ * + * bool confirmed = 2; + * + * @return This builder for chaining. + */ + public Builder clearConfirmed() { + if (responseCase_ == 2) { + responseCase_ = 0; + response_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The chosen option's submit_text, or free-form user text. The paused
+     * action is cancelled and the text is handed to the agent to act on.
+     * 
+ * + * string answer_text = 3; + * + * @return Whether the answerText field is set. + */ + @java.lang.Override + public boolean hasAnswerText() { + return responseCase_ == 3; + } + + /** + * + * + *
+     * The chosen option's submit_text, or free-form user text. The paused
+     * action is cancelled and the text is handed to the agent to act on.
+     * 
+ * + * string answer_text = 3; + * + * @return The answerText. + */ + @java.lang.Override + public java.lang.String getAnswerText() { + java.lang.Object ref = ""; + if (responseCase_ == 3) { + ref = response_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (responseCase_ == 3) { + response_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The chosen option's submit_text, or free-form user text. The paused
+     * action is cancelled and the text is handed to the agent to act on.
+     * 
+ * + * string answer_text = 3; + * + * @return The bytes for answerText. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAnswerTextBytes() { + java.lang.Object ref = ""; + if (responseCase_ == 3) { + ref = response_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (responseCase_ == 3) { + response_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The chosen option's submit_text, or free-form user text. The paused
+     * action is cancelled and the text is handed to the agent to act on.
+     * 
+ * + * string answer_text = 3; + * + * @param value The answerText to set. + * @return This builder for chaining. + */ + public Builder setAnswerText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + responseCase_ = 3; + response_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * The chosen option's submit_text, or free-form user text. The paused
+     * action is cancelled and the text is handed to the agent to act on.
+     * 
+ * + * string answer_text = 3; + * + * @return This builder for chaining. + */ + public Builder clearAnswerText() { + if (responseCase_ == 3) { + responseCase_ = 0; + response_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The chosen option's submit_text, or free-form user text. The paused
+     * action is cancelled and the text is handed to the agent to act on.
+     * 
+ * + * string answer_text = 3; + * + * @param value The bytes for answerText to set. + * @return This builder for chaining. + */ + public Builder setAnswerTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + responseCase_ = 3; + response_ = value; + onChanged(); + return this; + } + + private java.lang.Object confirmationId_ = ""; + + /** + * + * + *
+     * The
+     * [AssistantConfirmationRequest.confirmation_id][google.cloud.ces.v1beta.AssistantConfirmationRequest.confirmation_id]
+     * being answered.
+     * 
+ * + * string confirmation_id = 1; + * + * @return The confirmationId. + */ + public java.lang.String getConfirmationId() { + java.lang.Object ref = confirmationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + confirmationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The
+     * [AssistantConfirmationRequest.confirmation_id][google.cloud.ces.v1beta.AssistantConfirmationRequest.confirmation_id]
+     * being answered.
+     * 
+ * + * string confirmation_id = 1; + * + * @return The bytes for confirmationId. + */ + public com.google.protobuf.ByteString getConfirmationIdBytes() { + java.lang.Object ref = confirmationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + confirmationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The
+     * [AssistantConfirmationRequest.confirmation_id][google.cloud.ces.v1beta.AssistantConfirmationRequest.confirmation_id]
+     * being answered.
+     * 
+ * + * string confirmation_id = 1; + * + * @param value The confirmationId to set. + * @return This builder for chaining. + */ + public Builder setConfirmationId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + confirmationId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * The
+     * [AssistantConfirmationRequest.confirmation_id][google.cloud.ces.v1beta.AssistantConfirmationRequest.confirmation_id]
+     * being answered.
+     * 
+ * + * string confirmation_id = 1; + * + * @return This builder for chaining. + */ + public Builder clearConfirmationId() { + confirmationId_ = getDefaultInstance().getConfirmationId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * The
+     * [AssistantConfirmationRequest.confirmation_id][google.cloud.ces.v1beta.AssistantConfirmationRequest.confirmation_id]
+     * being answered.
+     * 
+ * + * string confirmation_id = 1; + * + * @param value The bytes for confirmationId to set. + * @return This builder for chaining. + */ + public Builder setConfirmationIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + confirmationId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.AssistantConfirmationResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.AssistantConfirmationResponse) + private static final com.google.cloud.ces.v1beta.AssistantConfirmationResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.AssistantConfirmationResponse(); + } + + public static com.google.cloud.ces.v1beta.AssistantConfirmationResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AssistantConfirmationResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.AssistantConfirmationResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantConfirmationResponseOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantConfirmationResponseOrBuilder.java new file mode 100644 index 000000000000..55d5355b3d44 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantConfirmationResponseOrBuilder.java @@ -0,0 +1,128 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language 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/session_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public interface AssistantConfirmationResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.AssistantConfirmationResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Binary answer: true approves the paused action, false declines it.
+   * 
+ * + * bool confirmed = 2; + * + * @return Whether the confirmed field is set. + */ + boolean hasConfirmed(); + + /** + * + * + *
+   * Binary answer: true approves the paused action, false declines it.
+   * 
+ * + * bool confirmed = 2; + * + * @return The confirmed. + */ + boolean getConfirmed(); + + /** + * + * + *
+   * The chosen option's submit_text, or free-form user text. The paused
+   * action is cancelled and the text is handed to the agent to act on.
+   * 
+ * + * string answer_text = 3; + * + * @return Whether the answerText field is set. + */ + boolean hasAnswerText(); + + /** + * + * + *
+   * The chosen option's submit_text, or free-form user text. The paused
+   * action is cancelled and the text is handed to the agent to act on.
+   * 
+ * + * string answer_text = 3; + * + * @return The answerText. + */ + java.lang.String getAnswerText(); + + /** + * + * + *
+   * The chosen option's submit_text, or free-form user text. The paused
+   * action is cancelled and the text is handed to the agent to act on.
+   * 
+ * + * string answer_text = 3; + * + * @return The bytes for answerText. + */ + com.google.protobuf.ByteString getAnswerTextBytes(); + + /** + * + * + *
+   * The
+   * [AssistantConfirmationRequest.confirmation_id][google.cloud.ces.v1beta.AssistantConfirmationRequest.confirmation_id]
+   * being answered.
+   * 
+ * + * string confirmation_id = 1; + * + * @return The confirmationId. + */ + java.lang.String getConfirmationId(); + + /** + * + * + *
+   * The
+   * [AssistantConfirmationRequest.confirmation_id][google.cloud.ces.v1beta.AssistantConfirmationRequest.confirmation_id]
+   * being answered.
+   * 
+ * + * string confirmation_id = 1; + * + * @return The bytes for confirmationId. + */ + com.google.protobuf.ByteString getConfirmationIdBytes(); + + com.google.cloud.ces.v1beta.AssistantConfirmationResponse.ResponseCase getResponseCase(); +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantMessage.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantMessage.java new file mode 100644 index 000000000000..67f24c9b3e6d --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantMessage.java @@ -0,0 +1,1768 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language 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/assistant_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +/** + * + * + *
+ * A message in an assistant session.
+ * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.AssistantMessage} + */ +@com.google.protobuf.Generated +public final class AssistantMessage extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.AssistantMessage) + AssistantMessageOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AssistantMessage"); + } + + // Use AssistantMessage.newBuilder() to construct. + private AssistantMessage(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AssistantMessage() { + role_ = ""; + chunks_ = java.util.Collections.emptyList(); + attachedGcsUris_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantMessage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.AssistantMessage.class, + com.google.cloud.ces.v1beta.AssistantMessage.Builder.class); + } + + private int bitField0_; + public static final int ROLE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object role_ = ""; + + /** + * + * + *
+   * Required. Role within the conversation "user" or  "model".
+   * 
+ * + * string role = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The role. + */ + @java.lang.Override + public java.lang.String getRole() { + java.lang.Object ref = role_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + role_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Role within the conversation "user" or  "model".
+   * 
+ * + * string role = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for role. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRoleBytes() { + java.lang.Object ref = role_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + role_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CHUNKS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List chunks_; + + /** + * + * + *
+   * Optional. Content of the message as chunks.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantChunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getChunksList() { + return chunks_; + } + + /** + * + * + *
+   * Optional. Content of the message as chunks.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantChunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getChunksOrBuilderList() { + return chunks_; + } + + /** + * + * + *
+   * Optional. Content of the message as chunks.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantChunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getChunksCount() { + return chunks_.size(); + } + + /** + * + * + *
+   * Optional. Content of the message as chunks.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantChunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantChunk getChunks(int index) { + return chunks_.get(index); + } + + /** + * + * + *
+   * Optional. Content of the message as chunks.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantChunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantChunkOrBuilder getChunksOrBuilder(int index) { + return chunks_.get(index); + } + + public static final int EVENT_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp eventTime_; + + /** + * + * + *
+   * Required. Timestamp when the message was sent or received.
+   * 
+ * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the eventTime field is set. + */ + @java.lang.Override + public boolean hasEventTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. Timestamp when the message was sent or received.
+   * 
+ * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The eventTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEventTime() { + return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; + } + + /** + * + * + *
+   * Required. Timestamp when the message was sent or received.
+   * 
+ * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { + return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; + } + + public static final int ATTACHED_GCS_URIS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList attachedGcsUris_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Optional. Cloud Storage URIs for files uploaded by the user during this
+   * turn. This allows attachments to be persisted and rendered in the session
+   * history UI. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
+   * 
+ * + * repeated string attached_gcs_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the attachedGcsUris. + */ + public com.google.protobuf.ProtocolStringList getAttachedGcsUrisList() { + return attachedGcsUris_; + } + + /** + * + * + *
+   * Optional. Cloud Storage URIs for files uploaded by the user during this
+   * turn. This allows attachments to be persisted and rendered in the session
+   * history UI. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
+   * 
+ * + * repeated string attached_gcs_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of attachedGcsUris. + */ + public int getAttachedGcsUrisCount() { + return attachedGcsUris_.size(); + } + + /** + * + * + *
+   * Optional. Cloud Storage URIs for files uploaded by the user during this
+   * turn. This allows attachments to be persisted and rendered in the session
+   * history UI. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
+   * 
+ * + * repeated string attached_gcs_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The attachedGcsUris at the given index. + */ + public java.lang.String getAttachedGcsUris(int index) { + return attachedGcsUris_.get(index); + } + + /** + * + * + *
+   * Optional. Cloud Storage URIs for files uploaded by the user during this
+   * turn. This allows attachments to be persisted and rendered in the session
+   * history UI. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
+   * 
+ * + * repeated string attached_gcs_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the attachedGcsUris at the given index. + */ + public com.google.protobuf.ByteString getAttachedGcsUrisBytes(int index) { + return attachedGcsUris_.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(role_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, role_); + } + for (int i = 0; i < chunks_.size(); i++) { + output.writeMessage(2, chunks_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getEventTime()); + } + for (int i = 0; i < attachedGcsUris_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, attachedGcsUris_.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(role_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, role_); + } + for (int i = 0; i < chunks_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, chunks_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEventTime()); + } + { + int dataSize = 0; + for (int i = 0; i < attachedGcsUris_.size(); i++) { + dataSize += computeStringSizeNoTag(attachedGcsUris_.getRaw(i)); + } + size += dataSize; + size += 1 * getAttachedGcsUrisList().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.v1beta.AssistantMessage)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.AssistantMessage other = + (com.google.cloud.ces.v1beta.AssistantMessage) obj; + + if (!getRole().equals(other.getRole())) return false; + if (!getChunksList().equals(other.getChunksList())) return false; + if (hasEventTime() != other.hasEventTime()) return false; + if (hasEventTime()) { + if (!getEventTime().equals(other.getEventTime())) return false; + } + if (!getAttachedGcsUrisList().equals(other.getAttachedGcsUrisList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ROLE_FIELD_NUMBER; + hash = (53 * hash) + getRole().hashCode(); + if (getChunksCount() > 0) { + hash = (37 * hash) + CHUNKS_FIELD_NUMBER; + hash = (53 * hash) + getChunksList().hashCode(); + } + if (hasEventTime()) { + hash = (37 * hash) + EVENT_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEventTime().hashCode(); + } + if (getAttachedGcsUrisCount() > 0) { + hash = (37 * hash) + ATTACHED_GCS_URIS_FIELD_NUMBER; + hash = (53 * hash) + getAttachedGcsUrisList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.AssistantMessage parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.AssistantMessage parseFrom( + 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.AssistantMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.AssistantMessage parseFrom( + com.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.AssistantMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.AssistantMessage 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.AssistantMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.AssistantMessage parseFrom( + java.io.InputStream 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.AssistantMessage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.AssistantMessage parseDelimitedFrom( + java.io.InputStream 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.AssistantMessage 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.AssistantMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, 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.AssistantMessage prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 message in an assistant session.
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.AssistantMessage} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.AssistantMessage) + com.google.cloud.ces.v1beta.AssistantMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantMessage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.AssistantMessage.class, + com.google.cloud.ces.v1beta.AssistantMessage.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.AssistantMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetChunksFieldBuilder(); + internalGetEventTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + role_ = ""; + if (chunksBuilder_ == null) { + chunks_ = java.util.Collections.emptyList(); + } else { + chunks_ = null; + chunksBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + eventTime_ = null; + if (eventTimeBuilder_ != null) { + eventTimeBuilder_.dispose(); + eventTimeBuilder_ = null; + } + attachedGcsUris_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantMessage_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantMessage getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.AssistantMessage.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantMessage build() { + com.google.cloud.ces.v1beta.AssistantMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantMessage buildPartial() { + com.google.cloud.ces.v1beta.AssistantMessage result = + new com.google.cloud.ces.v1beta.AssistantMessage(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.ces.v1beta.AssistantMessage result) { + if (chunksBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + chunks_ = java.util.Collections.unmodifiableList(chunks_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.chunks_ = chunks_; + } else { + result.chunks_ = chunksBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.ces.v1beta.AssistantMessage result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.role_ = role_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.eventTime_ = eventTimeBuilder_ == null ? eventTime_ : eventTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + attachedGcsUris_.makeImmutable(); + result.attachedGcsUris_ = attachedGcsUris_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.AssistantMessage) { + return mergeFrom((com.google.cloud.ces.v1beta.AssistantMessage) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.AssistantMessage other) { + if (other == com.google.cloud.ces.v1beta.AssistantMessage.getDefaultInstance()) return this; + if (!other.getRole().isEmpty()) { + role_ = other.role_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (chunksBuilder_ == null) { + if (!other.chunks_.isEmpty()) { + if (chunks_.isEmpty()) { + chunks_ = other.chunks_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureChunksIsMutable(); + chunks_.addAll(other.chunks_); + } + onChanged(); + } + } else { + if (!other.chunks_.isEmpty()) { + if (chunksBuilder_.isEmpty()) { + chunksBuilder_.dispose(); + chunksBuilder_ = null; + chunks_ = other.chunks_; + bitField0_ = (bitField0_ & ~0x00000002); + chunksBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetChunksFieldBuilder() + : null; + } else { + chunksBuilder_.addAllMessages(other.chunks_); + } + } + } + if (other.hasEventTime()) { + mergeEventTime(other.getEventTime()); + } + if (!other.attachedGcsUris_.isEmpty()) { + if (attachedGcsUris_.isEmpty()) { + attachedGcsUris_ = other.attachedGcsUris_; + bitField0_ |= 0x00000008; + } else { + ensureAttachedGcsUrisIsMutable(); + attachedGcsUris_.addAll(other.attachedGcsUris_); + } + 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: + { + role_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.ces.v1beta.AssistantChunk m = + input.readMessage( + com.google.cloud.ces.v1beta.AssistantChunk.parser(), extensionRegistry); + if (chunksBuilder_ == null) { + ensureChunksIsMutable(); + chunks_.add(m); + } else { + chunksBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetEventTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAttachedGcsUrisIsMutable(); + attachedGcsUris_.add(s); + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object role_ = ""; + + /** + * + * + *
+     * Required. Role within the conversation "user" or  "model".
+     * 
+ * + * string role = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The role. + */ + public java.lang.String getRole() { + java.lang.Object ref = role_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + role_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Role within the conversation "user" or  "model".
+     * 
+ * + * string role = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for role. + */ + public com.google.protobuf.ByteString getRoleBytes() { + java.lang.Object ref = role_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + role_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Role within the conversation "user" or  "model".
+     * 
+ * + * string role = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The role to set. + * @return This builder for chaining. + */ + public Builder setRole(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + role_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Role within the conversation "user" or  "model".
+     * 
+ * + * string role = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearRole() { + role_ = getDefaultInstance().getRole(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Role within the conversation "user" or  "model".
+     * 
+ * + * string role = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for role to set. + * @return This builder for chaining. + */ + public Builder setRoleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + role_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List chunks_ = + java.util.Collections.emptyList(); + + private void ensureChunksIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + chunks_ = new java.util.ArrayList(chunks_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.AssistantChunk, + com.google.cloud.ces.v1beta.AssistantChunk.Builder, + com.google.cloud.ces.v1beta.AssistantChunkOrBuilder> + chunksBuilder_; + + /** + * + * + *
+     * Optional. Content of the message as chunks.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantChunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getChunksList() { + if (chunksBuilder_ == null) { + return java.util.Collections.unmodifiableList(chunks_); + } else { + return chunksBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. Content of the message as chunks.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantChunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getChunksCount() { + if (chunksBuilder_ == null) { + return chunks_.size(); + } else { + return chunksBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. Content of the message as chunks.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantChunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.AssistantChunk getChunks(int index) { + if (chunksBuilder_ == null) { + return chunks_.get(index); + } else { + return chunksBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. Content of the message as chunks.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantChunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setChunks(int index, com.google.cloud.ces.v1beta.AssistantChunk value) { + if (chunksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChunksIsMutable(); + chunks_.set(index, value); + onChanged(); + } else { + chunksBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Content of the message as chunks.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantChunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setChunks( + int index, com.google.cloud.ces.v1beta.AssistantChunk.Builder builderForValue) { + if (chunksBuilder_ == null) { + ensureChunksIsMutable(); + chunks_.set(index, builderForValue.build()); + onChanged(); + } else { + chunksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Content of the message as chunks.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantChunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addChunks(com.google.cloud.ces.v1beta.AssistantChunk value) { + if (chunksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChunksIsMutable(); + chunks_.add(value); + onChanged(); + } else { + chunksBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. Content of the message as chunks.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantChunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addChunks(int index, com.google.cloud.ces.v1beta.AssistantChunk value) { + if (chunksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChunksIsMutable(); + chunks_.add(index, value); + onChanged(); + } else { + chunksBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Content of the message as chunks.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantChunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addChunks(com.google.cloud.ces.v1beta.AssistantChunk.Builder builderForValue) { + if (chunksBuilder_ == null) { + ensureChunksIsMutable(); + chunks_.add(builderForValue.build()); + onChanged(); + } else { + chunksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Content of the message as chunks.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantChunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addChunks( + int index, com.google.cloud.ces.v1beta.AssistantChunk.Builder builderForValue) { + if (chunksBuilder_ == null) { + ensureChunksIsMutable(); + chunks_.add(index, builderForValue.build()); + onChanged(); + } else { + chunksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Content of the message as chunks.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantChunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllChunks( + java.lang.Iterable values) { + if (chunksBuilder_ == null) { + ensureChunksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, chunks_); + onChanged(); + } else { + chunksBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. Content of the message as chunks.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantChunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearChunks() { + if (chunksBuilder_ == null) { + chunks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + chunksBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Content of the message as chunks.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantChunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeChunks(int index) { + if (chunksBuilder_ == null) { + ensureChunksIsMutable(); + chunks_.remove(index); + onChanged(); + } else { + chunksBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. Content of the message as chunks.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantChunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.AssistantChunk.Builder getChunksBuilder(int index) { + return internalGetChunksFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. Content of the message as chunks.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantChunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.AssistantChunkOrBuilder getChunksOrBuilder(int index) { + if (chunksBuilder_ == null) { + return chunks_.get(index); + } else { + return chunksBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. Content of the message as chunks.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantChunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getChunksOrBuilderList() { + if (chunksBuilder_ != null) { + return chunksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(chunks_); + } + } + + /** + * + * + *
+     * Optional. Content of the message as chunks.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantChunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.AssistantChunk.Builder addChunksBuilder() { + return internalGetChunksFieldBuilder() + .addBuilder(com.google.cloud.ces.v1beta.AssistantChunk.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Content of the message as chunks.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantChunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.AssistantChunk.Builder addChunksBuilder(int index) { + return internalGetChunksFieldBuilder() + .addBuilder(index, com.google.cloud.ces.v1beta.AssistantChunk.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Content of the message as chunks.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantChunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getChunksBuilderList() { + return internalGetChunksFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.AssistantChunk, + com.google.cloud.ces.v1beta.AssistantChunk.Builder, + com.google.cloud.ces.v1beta.AssistantChunkOrBuilder> + internalGetChunksFieldBuilder() { + if (chunksBuilder_ == null) { + chunksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.AssistantChunk, + com.google.cloud.ces.v1beta.AssistantChunk.Builder, + com.google.cloud.ces.v1beta.AssistantChunkOrBuilder>( + chunks_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + chunks_ = null; + } + return chunksBuilder_; + } + + private com.google.protobuf.Timestamp eventTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + eventTimeBuilder_; + + /** + * + * + *
+     * Required. Timestamp when the message was sent or received.
+     * 
+ * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the eventTime field is set. + */ + public boolean hasEventTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Required. Timestamp when the message was sent or received.
+     * 
+ * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The eventTime. + */ + public com.google.protobuf.Timestamp getEventTime() { + if (eventTimeBuilder_ == null) { + return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; + } else { + return eventTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. Timestamp when the message was sent or received.
+     * 
+ * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setEventTime(com.google.protobuf.Timestamp value) { + if (eventTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + eventTime_ = value; + } else { + eventTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Timestamp when the message was sent or received.
+     * 
+ * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setEventTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (eventTimeBuilder_ == null) { + eventTime_ = builderForValue.build(); + } else { + eventTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Timestamp when the message was sent or received.
+     * 
+ * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeEventTime(com.google.protobuf.Timestamp value) { + if (eventTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && eventTime_ != null + && eventTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEventTimeBuilder().mergeFrom(value); + } else { + eventTime_ = value; + } + } else { + eventTimeBuilder_.mergeFrom(value); + } + if (eventTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. Timestamp when the message was sent or received.
+     * 
+ * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearEventTime() { + bitField0_ = (bitField0_ & ~0x00000004); + eventTime_ = null; + if (eventTimeBuilder_ != null) { + eventTimeBuilder_.dispose(); + eventTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Timestamp when the message was sent or received.
+     * 
+ * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.Timestamp.Builder getEventTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetEventTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. Timestamp when the message was sent or received.
+     * 
+ * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { + if (eventTimeBuilder_ != null) { + return eventTimeBuilder_.getMessageOrBuilder(); + } else { + return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; + } + } + + /** + * + * + *
+     * Required. Timestamp when the message was sent or received.
+     * 
+ * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetEventTimeFieldBuilder() { + if (eventTimeBuilder_ == null) { + eventTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEventTime(), getParentForChildren(), isClean()); + eventTime_ = null; + } + return eventTimeBuilder_; + } + + private com.google.protobuf.LazyStringArrayList attachedGcsUris_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureAttachedGcsUrisIsMutable() { + if (!attachedGcsUris_.isModifiable()) { + attachedGcsUris_ = new com.google.protobuf.LazyStringArrayList(attachedGcsUris_); + } + bitField0_ |= 0x00000008; + } + + /** + * + * + *
+     * Optional. Cloud Storage URIs for files uploaded by the user during this
+     * turn. This allows attachments to be persisted and rendered in the session
+     * history UI. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
+     * 
+ * + * repeated string attached_gcs_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the attachedGcsUris. + */ + public com.google.protobuf.ProtocolStringList getAttachedGcsUrisList() { + attachedGcsUris_.makeImmutable(); + return attachedGcsUris_; + } + + /** + * + * + *
+     * Optional. Cloud Storage URIs for files uploaded by the user during this
+     * turn. This allows attachments to be persisted and rendered in the session
+     * history UI. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
+     * 
+ * + * repeated string attached_gcs_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of attachedGcsUris. + */ + public int getAttachedGcsUrisCount() { + return attachedGcsUris_.size(); + } + + /** + * + * + *
+     * Optional. Cloud Storage URIs for files uploaded by the user during this
+     * turn. This allows attachments to be persisted and rendered in the session
+     * history UI. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
+     * 
+ * + * repeated string attached_gcs_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The attachedGcsUris at the given index. + */ + public java.lang.String getAttachedGcsUris(int index) { + return attachedGcsUris_.get(index); + } + + /** + * + * + *
+     * Optional. Cloud Storage URIs for files uploaded by the user during this
+     * turn. This allows attachments to be persisted and rendered in the session
+     * history UI. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
+     * 
+ * + * repeated string attached_gcs_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the attachedGcsUris at the given index. + */ + public com.google.protobuf.ByteString getAttachedGcsUrisBytes(int index) { + return attachedGcsUris_.getByteString(index); + } + + /** + * + * + *
+     * Optional. Cloud Storage URIs for files uploaded by the user during this
+     * turn. This allows attachments to be persisted and rendered in the session
+     * history UI. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
+     * 
+ * + * repeated string attached_gcs_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The attachedGcsUris to set. + * @return This builder for chaining. + */ + public Builder setAttachedGcsUris(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttachedGcsUrisIsMutable(); + attachedGcsUris_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Cloud Storage URIs for files uploaded by the user during this
+     * turn. This allows attachments to be persisted and rendered in the session
+     * history UI. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
+     * 
+ * + * repeated string attached_gcs_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The attachedGcsUris to add. + * @return This builder for chaining. + */ + public Builder addAttachedGcsUris(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttachedGcsUrisIsMutable(); + attachedGcsUris_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Cloud Storage URIs for files uploaded by the user during this
+     * turn. This allows attachments to be persisted and rendered in the session
+     * history UI. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
+     * 
+ * + * repeated string attached_gcs_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The attachedGcsUris to add. + * @return This builder for chaining. + */ + public Builder addAllAttachedGcsUris(java.lang.Iterable values) { + ensureAttachedGcsUrisIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, attachedGcsUris_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Cloud Storage URIs for files uploaded by the user during this
+     * turn. This allows attachments to be persisted and rendered in the session
+     * history UI. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
+     * 
+ * + * repeated string attached_gcs_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAttachedGcsUris() { + attachedGcsUris_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Cloud Storage URIs for files uploaded by the user during this
+     * turn. This allows attachments to be persisted and rendered in the session
+     * history UI. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
+     * 
+ * + * repeated string attached_gcs_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the attachedGcsUris to add. + * @return This builder for chaining. + */ + public Builder addAttachedGcsUrisBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAttachedGcsUrisIsMutable(); + attachedGcsUris_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.AssistantMessage) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.AssistantMessage) + private static final com.google.cloud.ces.v1beta.AssistantMessage DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.AssistantMessage(); + } + + public static com.google.cloud.ces.v1beta.AssistantMessage getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AssistantMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.AssistantMessage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantMessageOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantMessageOrBuilder.java new file mode 100644 index 000000000000..15af152b3763 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantMessageOrBuilder.java @@ -0,0 +1,222 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/assistant_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public interface AssistantMessageOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.AssistantMessage) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Role within the conversation "user" or  "model".
+   * 
+ * + * string role = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The role. + */ + java.lang.String getRole(); + + /** + * + * + *
+   * Required. Role within the conversation "user" or  "model".
+   * 
+ * + * string role = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for role. + */ + com.google.protobuf.ByteString getRoleBytes(); + + /** + * + * + *
+   * Optional. Content of the message as chunks.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantChunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getChunksList(); + + /** + * + * + *
+   * Optional. Content of the message as chunks.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantChunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1beta.AssistantChunk getChunks(int index); + + /** + * + * + *
+   * Optional. Content of the message as chunks.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantChunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getChunksCount(); + + /** + * + * + *
+   * Optional. Content of the message as chunks.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantChunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getChunksOrBuilderList(); + + /** + * + * + *
+   * Optional. Content of the message as chunks.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantChunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1beta.AssistantChunkOrBuilder getChunksOrBuilder(int index); + + /** + * + * + *
+   * Required. Timestamp when the message was sent or received.
+   * 
+ * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the eventTime field is set. + */ + boolean hasEventTime(); + + /** + * + * + *
+   * Required. Timestamp when the message was sent or received.
+   * 
+ * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The eventTime. + */ + com.google.protobuf.Timestamp getEventTime(); + + /** + * + * + *
+   * Required. Timestamp when the message was sent or received.
+   * 
+ * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder(); + + /** + * + * + *
+   * Optional. Cloud Storage URIs for files uploaded by the user during this
+   * turn. This allows attachments to be persisted and rendered in the session
+   * history UI. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
+   * 
+ * + * repeated string attached_gcs_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the attachedGcsUris. + */ + java.util.List getAttachedGcsUrisList(); + + /** + * + * + *
+   * Optional. Cloud Storage URIs for files uploaded by the user during this
+   * turn. This allows attachments to be persisted and rendered in the session
+   * history UI. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
+   * 
+ * + * repeated string attached_gcs_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of attachedGcsUris. + */ + int getAttachedGcsUrisCount(); + + /** + * + * + *
+   * Optional. Cloud Storage URIs for files uploaded by the user during this
+   * turn. This allows attachments to be persisted and rendered in the session
+   * history UI. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
+   * 
+ * + * repeated string attached_gcs_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The attachedGcsUris at the given index. + */ + java.lang.String getAttachedGcsUris(int index); + + /** + * + * + *
+   * Optional. Cloud Storage URIs for files uploaded by the user during this
+   * turn. This allows attachments to be persisted and rendered in the session
+   * history UI. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
+   * 
+ * + * repeated string attached_gcs_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the attachedGcsUris at the given index. + */ + com.google.protobuf.ByteString getAttachedGcsUrisBytes(int index); +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantOutput.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantOutput.java new file mode 100644 index 000000000000..b52636bd661b --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantOutput.java @@ -0,0 +1,1038 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language 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/assistant_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +/** + * + * + *
+ * The output from the assistant agent.
+ * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.AssistantOutput} + */ +@com.google.protobuf.Generated +public final class AssistantOutput extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.AssistantOutput) + AssistantOutputOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AssistantOutput"); + } + + // Use AssistantOutput.newBuilder() to construct. + private AssistantOutput(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AssistantOutput() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantOutput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantOutput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.AssistantOutput.class, + com.google.cloud.ces.v1beta.AssistantOutput.Builder.class); + } + + private int bitField0_; + public static final int MESSAGE_FIELD_NUMBER = 1; + private com.google.cloud.ces.v1beta.AssistantMessage message_; + + /** + * + * + *
+   * Required. The response from the assistant agent.
+   * 
+ * + * + * .google.cloud.ces.v1beta.AssistantMessage message = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the message field is set. + */ + @java.lang.Override + public boolean hasMessage() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The response from the assistant agent.
+   * 
+ * + * + * .google.cloud.ces.v1beta.AssistantMessage message = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The message. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantMessage getMessage() { + return message_ == null + ? com.google.cloud.ces.v1beta.AssistantMessage.getDefaultInstance() + : message_; + } + + /** + * + * + *
+   * Required. The response from the assistant agent.
+   * 
+ * + * + * .google.cloud.ces.v1beta.AssistantMessage message = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantMessageOrBuilder getMessageOrBuilder() { + return message_ == null + ? com.google.cloud.ces.v1beta.AssistantMessage.getDefaultInstance() + : message_; + } + + public static final int USER_RESPONSE_SUGGESTIONS_FIELD_NUMBER = 2; + private com.google.cloud.ces.v1beta.UserResponseSuggestions userResponseSuggestions_; + + /** + * + * + *
+   * Output only. Suggested user responses from the assistant agent.
+   * 
+ * + * + * .google.cloud.ces.v1beta.UserResponseSuggestions user_response_suggestions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the userResponseSuggestions field is set. + */ + @java.lang.Override + public boolean hasUserResponseSuggestions() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. Suggested user responses from the assistant agent.
+   * 
+ * + * + * .google.cloud.ces.v1beta.UserResponseSuggestions user_response_suggestions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The userResponseSuggestions. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.UserResponseSuggestions getUserResponseSuggestions() { + return userResponseSuggestions_ == null + ? com.google.cloud.ces.v1beta.UserResponseSuggestions.getDefaultInstance() + : userResponseSuggestions_; + } + + /** + * + * + *
+   * Output only. Suggested user responses from the assistant agent.
+   * 
+ * + * + * .google.cloud.ces.v1beta.UserResponseSuggestions user_response_suggestions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.UserResponseSuggestionsOrBuilder + getUserResponseSuggestionsOrBuilder() { + return userResponseSuggestions_ == null + ? com.google.cloud.ces.v1beta.UserResponseSuggestions.getDefaultInstance() + : userResponseSuggestions_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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, getMessage()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUserResponseSuggestions()); + } + 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, getMessage()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUserResponseSuggestions()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.AssistantOutput)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.AssistantOutput other = + (com.google.cloud.ces.v1beta.AssistantOutput) obj; + + if (hasMessage() != other.hasMessage()) return false; + if (hasMessage()) { + if (!getMessage().equals(other.getMessage())) return false; + } + if (hasUserResponseSuggestions() != other.hasUserResponseSuggestions()) return false; + if (hasUserResponseSuggestions()) { + if (!getUserResponseSuggestions().equals(other.getUserResponseSuggestions())) return false; + } + if (!getUnknownFields().equals(other.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 (hasMessage()) { + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + } + if (hasUserResponseSuggestions()) { + hash = (37 * hash) + USER_RESPONSE_SUGGESTIONS_FIELD_NUMBER; + hash = (53 * hash) + getUserResponseSuggestions().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.AssistantOutput parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.AssistantOutput parseFrom( + 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.AssistantOutput parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.AssistantOutput parseFrom( + com.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.AssistantOutput parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.AssistantOutput 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.AssistantOutput parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.AssistantOutput parseFrom( + java.io.InputStream 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.AssistantOutput parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.AssistantOutput parseDelimitedFrom( + java.io.InputStream 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.AssistantOutput 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.AssistantOutput parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, 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.AssistantOutput prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 output from the assistant agent.
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.AssistantOutput} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.AssistantOutput) + com.google.cloud.ces.v1beta.AssistantOutputOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantOutput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantOutput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.AssistantOutput.class, + com.google.cloud.ces.v1beta.AssistantOutput.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.AssistantOutput.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetMessageFieldBuilder(); + internalGetUserResponseSuggestionsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + message_ = null; + if (messageBuilder_ != null) { + messageBuilder_.dispose(); + messageBuilder_ = null; + } + userResponseSuggestions_ = null; + if (userResponseSuggestionsBuilder_ != null) { + userResponseSuggestionsBuilder_.dispose(); + userResponseSuggestionsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantOutput_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantOutput getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.AssistantOutput.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantOutput build() { + com.google.cloud.ces.v1beta.AssistantOutput result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantOutput buildPartial() { + com.google.cloud.ces.v1beta.AssistantOutput result = + new com.google.cloud.ces.v1beta.AssistantOutput(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1beta.AssistantOutput result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.message_ = messageBuilder_ == null ? message_ : messageBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.userResponseSuggestions_ = + userResponseSuggestionsBuilder_ == null + ? userResponseSuggestions_ + : userResponseSuggestionsBuilder_.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.v1beta.AssistantOutput) { + return mergeFrom((com.google.cloud.ces.v1beta.AssistantOutput) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.AssistantOutput other) { + if (other == com.google.cloud.ces.v1beta.AssistantOutput.getDefaultInstance()) return this; + if (other.hasMessage()) { + mergeMessage(other.getMessage()); + } + if (other.hasUserResponseSuggestions()) { + mergeUserResponseSuggestions(other.getUserResponseSuggestions()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(internalGetMessageFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetUserResponseSuggestionsFieldBuilder().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.ces.v1beta.AssistantMessage message_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.AssistantMessage, + com.google.cloud.ces.v1beta.AssistantMessage.Builder, + com.google.cloud.ces.v1beta.AssistantMessageOrBuilder> + messageBuilder_; + + /** + * + * + *
+     * Required. The response from the assistant agent.
+     * 
+ * + * + * .google.cloud.ces.v1beta.AssistantMessage message = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the message field is set. + */ + public boolean hasMessage() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Required. The response from the assistant agent.
+     * 
+ * + * + * .google.cloud.ces.v1beta.AssistantMessage message = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The message. + */ + public com.google.cloud.ces.v1beta.AssistantMessage getMessage() { + if (messageBuilder_ == null) { + return message_ == null + ? com.google.cloud.ces.v1beta.AssistantMessage.getDefaultInstance() + : message_; + } else { + return messageBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The response from the assistant agent.
+     * 
+ * + * + * .google.cloud.ces.v1beta.AssistantMessage message = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMessage(com.google.cloud.ces.v1beta.AssistantMessage value) { + if (messageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + message_ = value; + } else { + messageBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The response from the assistant agent.
+     * 
+ * + * + * .google.cloud.ces.v1beta.AssistantMessage message = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMessage( + com.google.cloud.ces.v1beta.AssistantMessage.Builder builderForValue) { + if (messageBuilder_ == null) { + message_ = builderForValue.build(); + } else { + messageBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The response from the assistant agent.
+     * 
+ * + * + * .google.cloud.ces.v1beta.AssistantMessage message = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeMessage(com.google.cloud.ces.v1beta.AssistantMessage value) { + if (messageBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && message_ != null + && message_ != com.google.cloud.ces.v1beta.AssistantMessage.getDefaultInstance()) { + getMessageBuilder().mergeFrom(value); + } else { + message_ = value; + } + } else { + messageBuilder_.mergeFrom(value); + } + if (message_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The response from the assistant agent.
+     * 
+ * + * + * .google.cloud.ces.v1beta.AssistantMessage message = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearMessage() { + bitField0_ = (bitField0_ & ~0x00000001); + message_ = null; + if (messageBuilder_ != null) { + messageBuilder_.dispose(); + messageBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The response from the assistant agent.
+     * 
+ * + * + * .google.cloud.ces.v1beta.AssistantMessage message = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1beta.AssistantMessage.Builder getMessageBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetMessageFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The response from the assistant agent.
+     * 
+ * + * + * .google.cloud.ces.v1beta.AssistantMessage message = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1beta.AssistantMessageOrBuilder getMessageOrBuilder() { + if (messageBuilder_ != null) { + return messageBuilder_.getMessageOrBuilder(); + } else { + return message_ == null + ? com.google.cloud.ces.v1beta.AssistantMessage.getDefaultInstance() + : message_; + } + } + + /** + * + * + *
+     * Required. The response from the assistant agent.
+     * 
+ * + * + * .google.cloud.ces.v1beta.AssistantMessage message = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.AssistantMessage, + com.google.cloud.ces.v1beta.AssistantMessage.Builder, + com.google.cloud.ces.v1beta.AssistantMessageOrBuilder> + internalGetMessageFieldBuilder() { + if (messageBuilder_ == null) { + messageBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.AssistantMessage, + com.google.cloud.ces.v1beta.AssistantMessage.Builder, + com.google.cloud.ces.v1beta.AssistantMessageOrBuilder>( + getMessage(), getParentForChildren(), isClean()); + message_ = null; + } + return messageBuilder_; + } + + private com.google.cloud.ces.v1beta.UserResponseSuggestions userResponseSuggestions_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.UserResponseSuggestions, + com.google.cloud.ces.v1beta.UserResponseSuggestions.Builder, + com.google.cloud.ces.v1beta.UserResponseSuggestionsOrBuilder> + userResponseSuggestionsBuilder_; + + /** + * + * + *
+     * Output only. Suggested user responses from the assistant agent.
+     * 
+ * + * + * .google.cloud.ces.v1beta.UserResponseSuggestions user_response_suggestions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the userResponseSuggestions field is set. + */ + public boolean hasUserResponseSuggestions() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Output only. Suggested user responses from the assistant agent.
+     * 
+ * + * + * .google.cloud.ces.v1beta.UserResponseSuggestions user_response_suggestions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The userResponseSuggestions. + */ + public com.google.cloud.ces.v1beta.UserResponseSuggestions getUserResponseSuggestions() { + if (userResponseSuggestionsBuilder_ == null) { + return userResponseSuggestions_ == null + ? com.google.cloud.ces.v1beta.UserResponseSuggestions.getDefaultInstance() + : userResponseSuggestions_; + } else { + return userResponseSuggestionsBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Suggested user responses from the assistant agent.
+     * 
+ * + * + * .google.cloud.ces.v1beta.UserResponseSuggestions user_response_suggestions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUserResponseSuggestions( + com.google.cloud.ces.v1beta.UserResponseSuggestions value) { + if (userResponseSuggestionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + userResponseSuggestions_ = value; + } else { + userResponseSuggestionsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Suggested user responses from the assistant agent.
+     * 
+ * + * + * .google.cloud.ces.v1beta.UserResponseSuggestions user_response_suggestions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUserResponseSuggestions( + com.google.cloud.ces.v1beta.UserResponseSuggestions.Builder builderForValue) { + if (userResponseSuggestionsBuilder_ == null) { + userResponseSuggestions_ = builderForValue.build(); + } else { + userResponseSuggestionsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Suggested user responses from the assistant agent.
+     * 
+ * + * + * .google.cloud.ces.v1beta.UserResponseSuggestions user_response_suggestions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUserResponseSuggestions( + com.google.cloud.ces.v1beta.UserResponseSuggestions value) { + if (userResponseSuggestionsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && userResponseSuggestions_ != null + && userResponseSuggestions_ + != com.google.cloud.ces.v1beta.UserResponseSuggestions.getDefaultInstance()) { + getUserResponseSuggestionsBuilder().mergeFrom(value); + } else { + userResponseSuggestions_ = value; + } + } else { + userResponseSuggestionsBuilder_.mergeFrom(value); + } + if (userResponseSuggestions_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Suggested user responses from the assistant agent.
+     * 
+ * + * + * .google.cloud.ces.v1beta.UserResponseSuggestions user_response_suggestions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUserResponseSuggestions() { + bitField0_ = (bitField0_ & ~0x00000002); + userResponseSuggestions_ = null; + if (userResponseSuggestionsBuilder_ != null) { + userResponseSuggestionsBuilder_.dispose(); + userResponseSuggestionsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Suggested user responses from the assistant agent.
+     * 
+ * + * + * .google.cloud.ces.v1beta.UserResponseSuggestions user_response_suggestions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1beta.UserResponseSuggestions.Builder + getUserResponseSuggestionsBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetUserResponseSuggestionsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Suggested user responses from the assistant agent.
+     * 
+ * + * + * .google.cloud.ces.v1beta.UserResponseSuggestions user_response_suggestions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1beta.UserResponseSuggestionsOrBuilder + getUserResponseSuggestionsOrBuilder() { + if (userResponseSuggestionsBuilder_ != null) { + return userResponseSuggestionsBuilder_.getMessageOrBuilder(); + } else { + return userResponseSuggestions_ == null + ? com.google.cloud.ces.v1beta.UserResponseSuggestions.getDefaultInstance() + : userResponseSuggestions_; + } + } + + /** + * + * + *
+     * Output only. Suggested user responses from the assistant agent.
+     * 
+ * + * + * .google.cloud.ces.v1beta.UserResponseSuggestions user_response_suggestions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.UserResponseSuggestions, + com.google.cloud.ces.v1beta.UserResponseSuggestions.Builder, + com.google.cloud.ces.v1beta.UserResponseSuggestionsOrBuilder> + internalGetUserResponseSuggestionsFieldBuilder() { + if (userResponseSuggestionsBuilder_ == null) { + userResponseSuggestionsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.UserResponseSuggestions, + com.google.cloud.ces.v1beta.UserResponseSuggestions.Builder, + com.google.cloud.ces.v1beta.UserResponseSuggestionsOrBuilder>( + getUserResponseSuggestions(), getParentForChildren(), isClean()); + userResponseSuggestions_ = null; + } + return userResponseSuggestionsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.AssistantOutput) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.AssistantOutput) + private static final com.google.cloud.ces.v1beta.AssistantOutput DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.AssistantOutput(); + } + + public static com.google.cloud.ces.v1beta.AssistantOutput getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AssistantOutput parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.AssistantOutput getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantOutputOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantOutputOrBuilder.java new file mode 100644 index 000000000000..15008611d707 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantOutputOrBuilder.java @@ -0,0 +1,115 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/assistant_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public interface AssistantOutputOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.AssistantOutput) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The response from the assistant agent.
+   * 
+ * + * + * .google.cloud.ces.v1beta.AssistantMessage message = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the message field is set. + */ + boolean hasMessage(); + + /** + * + * + *
+   * Required. The response from the assistant agent.
+   * 
+ * + * + * .google.cloud.ces.v1beta.AssistantMessage message = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The message. + */ + com.google.cloud.ces.v1beta.AssistantMessage getMessage(); + + /** + * + * + *
+   * Required. The response from the assistant agent.
+   * 
+ * + * + * .google.cloud.ces.v1beta.AssistantMessage message = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.ces.v1beta.AssistantMessageOrBuilder getMessageOrBuilder(); + + /** + * + * + *
+   * Output only. Suggested user responses from the assistant agent.
+   * 
+ * + * + * .google.cloud.ces.v1beta.UserResponseSuggestions user_response_suggestions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the userResponseSuggestions field is set. + */ + boolean hasUserResponseSuggestions(); + + /** + * + * + *
+   * Output only. Suggested user responses from the assistant agent.
+   * 
+ * + * + * .google.cloud.ces.v1beta.UserResponseSuggestions user_response_suggestions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The userResponseSuggestions. + */ + com.google.cloud.ces.v1beta.UserResponseSuggestions getUserResponseSuggestions(); + + /** + * + * + *
+   * Output only. Suggested user responses from the assistant agent.
+   * 
+ * + * + * .google.cloud.ces.v1beta.UserResponseSuggestions user_response_suggestions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.ces.v1beta.UserResponseSuggestionsOrBuilder + getUserResponseSuggestionsOrBuilder(); +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantServiceProto.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantServiceProto.java new file mode 100644 index 000000000000..462b44fd669a --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantServiceProto.java @@ -0,0 +1,487 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/assistant_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public final class AssistantServiceProto extends com.google.protobuf.GeneratedFile { + private AssistantServiceProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AssistantServiceProto"); + } + + 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_v1beta_ListAssistantSessionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_ListAssistantSessionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_ListAssistantSessionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_ListAssistantSessionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_GetAssistantSessionRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_GetAssistantSessionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_CreateAssistantSessionRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_CreateAssistantSessionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_DeleteAssistantSessionRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_DeleteAssistantSessionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_RunAssistantRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_RunAssistantRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_RunAssistantResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_RunAssistantResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_AssistantSession_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_AssistantSession_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_ActiveTurnInfo_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_ActiveTurnInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_AssistantSessionArtifact_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_AssistantSessionArtifact_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_AssistantChunk_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_AssistantChunk_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_AssistantOutput_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_AssistantOutput_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_AssistantMessage_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_AssistantMessage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_TypedPayload_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_TypedPayload_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_UserResponseSuggestions_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_UserResponseSuggestions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_ChatAiAssistantRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_ChatAiAssistantRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_ChatAiAssistantResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_ChatAiAssistantResponse_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/v1beta/assistant_serv" + + "ice.proto\022\027google.cloud.ces.v1beta\032\034goog" + + "le/api/annotations.proto\032\027google/api/cli" + + "ent.proto\032\037google/api/field_behavior.pro" + + "to\032\031google/api/resource.proto\032$google/cl" + + "oud/ces/v1beta/common.proto\032\033google/prot" + + "obuf/empty.proto\032\034google/protobuf/struct" + + ".proto\032\037google/protobuf/timestamp.proto\"\245\001\n" + + "\034ListAssistantSessionsRequest\022<\n" + + "\006parent\030\001 \001(" + + "\tB,\342A\001\002\372A%\022#ces.googleapis.com/AssistantSession\022\027\n" + + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + + "page_token\030\003 \001(\tB\004\342A\001\001\022\024\n" + + "\006filter\030\004 \001(\tB\004\342A\001\001\"\205\001\n" + + "\035ListAssistantSessionsResponse\022E\n" + + "\022assistant_sessions\030\001" + + " \003(\0132).google.cloud.ces.v1beta.AssistantSession\022\035\n" + + "\017next_page_token\030\002 \001(\tB\004\342A\001\001\"X\n" + + "\032GetAssistantSessionRequest\022:\n" + + "\004name\030\001 \001(\tB,\342A\001\002\372A%\n" + + "#ces.googleapis.com/AssistantSession\"\326\001\n" + + "\035CreateAssistantSessionRequest\022<\n" + + "\006parent\030\001 \001(" + + "\tB,\342A\001\002\372A%\022#ces.googleapis.com/AssistantSession\022\"\n" + + "\024assistant_session_id\030\002 \001(\tB\004\342A\001\001\022S\n" + + "\032assistant_session_messages\030\003 \003(" + + "\0132).google.cloud.ces.v1beta.AssistantMessageB\004\342A\001\001\"[\n" + + "\035DeleteAssistantSessionRequest\022:\n" + + "\004name\030\001 \001(\tB,\342A\001\002\372A%\n" + + "#ces.googleapis.com/AssistantSession\"\211\003\n" + + "\023RunAssistantRequest\022,\n" + + "\003app\030\001 \001(\tB\037\342A\001\002\372A\030\n" + + "\026ces.googleapis.com/App\022G\n" + + "\021assistant_session\030\002 \001(\tB,\342A\001\002\372A%\n" + + "#ces.googleapis.com/AssistantSession\022@\n" + + "\007message\030\003" + + " \001(\0132).google.cloud.ces.v1beta.AssistantMessageB\004\342A\001\002\022\\\n" + + "\020interaction_type\030\004 \001(\0162<.google.cloud.ces.v1" + + "beta.RunAssistantRequest.InteractionTypeB\004\342A\001\001\"[\n" + + "\017InteractionType\022 \n" + + "\034INTERACTION_TYPE_UNSPECIFIED\020\000\022\017\n" + + "\013NEW_MESSAGE\020\001\022\010\n" + + "\004POLL\020\002\022\013\n" + + "\007DISMISS\020\003\"\233\001\n" + + "\024RunAssistantResponse\022>\n" + + "\006output\030\001" + + " \001(\0132(.google.cloud.ces.v1beta.AssistantOutputB\004\342A\001\002\022C\n" + + "\005state\030\003 " + + "\001(\0162..google.cloud.ces.v1beta.AssistantSessionStateB\004\342A\001\003\"\266\006\n" + + "\020AssistantSession\022\023\n" + + "\004name\030\001 \001(\tB\005\342A\002\010\002\022\027\n" + + "\trequestor\030\002 \001(\tB\004\342A\001\003\022A\n" + + "\010messages\030\003" + + " \003(\0132).google.cloud.ces.v1beta.AssistantMessageB\004\342A\001\001\022C\n" + + "\005state\030\004" + + " \001(\0162..google.cloud.ces.v1beta.AssistantSessionStateB\004\342A\001\003\0225\n" + + "\013create_time\030\005" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225\n" + + "\013update_time\030\006" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022Y\n" + + "\031user_response_suggestions\030\007" + + " \001(\01320.google.cloud.ces.v1beta.UserResponseSuggestionsB\004\342A\001\003\022\032\n" + + "\014display_name\030\010 \001(\tB\004\342A\001\001\022J\n" + + "\tartifacts\030\t \003(\01321.google.cl" + + "oud.ces.v1beta.AssistantSessionArtifactB\004\342A\001\003\022L\n" + + "\022session_checkpoint\030\n" + + " \001(\0132*.google.cloud.ces.v1beta.SessionCheckpointB\004\342A\001\003\022B\n" + + "\013active_turn\030\013" + + " \001(\0132\'.google.cloud.ces.v1beta.ActiveTurnInfoB\004\342A\001\003:\250\001\352A\244\001\n" + + "#ces.googleapis.com/AssistantSession\022Xprojects/{project}/locations/{location}/app" + + "s/{app}/assistantSessions/{assistant_ses" + + "sion}*\021assistantSessions2\020assistantSession\"\363\002\n" + + "\016ActiveTurnInfo\022\017\n" + + "\007turn_id\030\001 \001(\t\022>\n" + + "\006status\030\002 \001(\0162..google.cloud.ces.v1beta.ActiveTurnInfo.Status\0224\n\n" + + "start_time\030\003 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022<\n" + + "\022last_progress_time\030\004" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022>\n" + + "\024orphan_deadline_time\030\005" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\"\\\n" + + "\006Status\022\026\n" + + "\022STATUS_UNSPECIFIED\020\000\022\013\n" + + "\007RUNNING\020\001\022\020\n" + + "\014DISCONNECTED\020\002\022\014\n" + + "\010RESUMING\020\003\022\r\n" + + "\tABANDONED\020\004\"\311\001\n" + + "\030AssistantSessionArtifact\022\020\n" + + "\002id\030\001 \001(\tB\004\342A\001\003\022\032\n" + + "\014display_name\030\002 \001(\tB\004\342A\001\003\022\025\n" + + "\007gcs_uri\030\003 \001(\tB\004\342A\001\003\022\027\n" + + "\tmime_type\030\004 \001(\tB\004\342A\001\003\0225\n" + + "\013create_time\030\005" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022\030\n\n" + + "turn_index\030\006 \001(\005B\004\342A\001\003\"\366\001\n" + + "\016AssistantChunk\022\024\n" + + "\004text\030\001 \001(\tB\004\342A\001\001H\000\022\027\n" + + "\007thought\030\002 \001(\tB\004\342A\001\001H\000\0220\n" + + "\007payload\030\003" + + " \001(\0132\027.google.protobuf.StructB\004\342A\001\001H\000\022D\n\r" + + "typed_payload\030\004 \001(\0132" + + "%.google.cloud.ces.v1beta.TypedPayloadB\004\342A\001\001H\000\0225\n" + + "\013create_time\030\005" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\001B\006\n" + + "\004data\"\256\001\n" + + "\017AssistantOutput\022@\n" + + "\007message\030\001" + + " \001(\0132).google.cloud.ces.v1beta.AssistantMessageB\004\342A\001\002\022Y\n" + + "\031user_response_suggestions\030\002 \001(\01320.google." + + "cloud.ces.v1beta.UserResponseSuggestionsB\004\342A\001\003\"\274\001\n" + + "\020AssistantMessage\022\022\n" + + "\004role\030\001 \001(\tB\004\342A\001\002\022=\n" + + "\006chunks\030\002" + + " \003(\0132\'.google.cloud.ces.v1beta.AssistantChunkB\004\342A\001\001\0224\n\n" + + "event_time\030\003" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\002\022\037\n" + + "\021attached_gcs_uris\030\004 \003(\tB\004\342A\001\001\"\235\001\n" + + "\014TypedPayload\022\032\n" + + "\014display_name\030\001 \001(\tB\004\342A\001\002\022\022\n" + + "\004type\030\002 \001(\tB\004\342A\001\002\022,\n" + + "\005value\030\003 \001(\0132\027.google.protobuf.StructB\004\342A\001\002\022/\n" + + "\010metadata\030\004 \001(\0132\027.google.protobuf.StructB\004\342A\001\001\"4\n" + + "\027UserResponseSuggestions\022\031\n" + + "\013suggestions\030\001 \003(\tB\004\342A\001\002\"\344\001\n" + + "\026ChatAiAssistantRequest\022,\n" + + "\003app\030\001 \001(\tB\037\342A\001\002\372A\030\n" + + "\026ces.googleapis.com/App\022G\n" + + "\021assistant_session\030\002 \001(\tB,\342A\001\002\372A%\n" + + "#ces.googleapis.com/AssistantSession\022\025\n" + + "\007message\030\003 \001(\tB\004\342A\001\002\022\037\n" + + "\021attached_gcs_uris\030\005 \003(\tB\004\342A\001\001\022\033\n\r" + + "context_token\030\006 \001(\tB\004\342A\001\001\"\230\002\n" + + "\027ChatAiAssistantResponse\022\024\n\n" + + "text_chunk\030\003 \001(\tH\000\022\030\n" + + "\016status_message\030\004 \001(\tH\000\022H\n" + + "\022session_checkpoint\030\r" + + " \001(\0132*.google.cloud.ces.v1beta.SessionCheckpointH\000\022\020\n" + + "\010event_id\030\001 \001(\t\022.\n\n" + + "event_time\030\002 \001(\0132\032.google.protobuf.Timestamp\0228\n" + + "\010ui_event\030\005 \001(\0132" + + " .google.cloud.ces.v1beta.UiEventB\004\342A\001\001B\007\n" + + "\005event*n\n" + + "\025AssistantSessionState\022\'\n" + + "#ASSISTANT_SESSION_STATE_UNSPECIFIED\020\000\022\016\n\n" + + "PROCESSING\020\001\022\010\n" + + "\004IDLE\020\002\022\022\n" + + "\016PENDING_REVIEW\020\0032\272\n" + + "\n" + + "\020AssistantService\022\331\001\n" + + "\025ListAssistantSessions\0225.google.cloud.ces.v1beta.ListAssis" + + "tantSessionsRequest\0326.google.cloud.ces.v" + + "1beta.ListAssistantSessionsResponse\"Q\332A\006" + + "parent\202\323\344\223\002B\022@/v1beta/{parent=projects/*" + + "/locations/*/apps/*}/assistantSessions\022\306\001\n" + + "\023GetAssistantSession\0223.google.cloud.ce" + + "s.v1beta.GetAssistantSessionRequest\032).google.cloud.ces.v1beta.AssistantSession\"O" + + "\332A\004name\202\323\344\223\002B\022@/v1beta/{name=projects/*/" + + "locations/*/apps/*/assistantSessions/*}\022\346\001\n" + + "\026CreateAssistantSession\0226.google.cloud.ces.v1beta.CreateAssistantSessionReque" + + "st\032).google.cloud.ces.v1beta.AssistantSe" + + "ssion\"i\332A\033parent,assistant_session_id\202\323\344" + + "\223\002E\"@/v1beta/{parent=projects/*/locations/*/apps/*}/assistantSessions:\001*\022\271\001\n" + + "\026DeleteAssistantSession\0226.google.cloud.ces.v" + + "1beta.DeleteAssistantSessionRequest\032\026.go" + + "ogle.protobuf.Empty\"O\332A\004name\202\323\344\223\002B*@/v1b" + + "eta/{name=projects/*/locations/*/apps/*/assistantSessions/*}\022\260\001\n" + + "\014RunAssistant\022,.google.cloud.ces.v1beta.RunAssistantRequ" + + "est\032-.google.cloud.ces.v1beta.RunAssista" + + "ntResponse\"C\202\323\344\223\002=\"8/v1beta/{app=project" + + "s/*/locations/*/apps/*}:runAssistant:\001*\022\274\001\n" + + "\017ChatAiAssistant\022/.google.cloud.ces.v1beta.ChatAiAssistantRequest\0320.google.cl" + + "oud.ces.v1beta.ChatAiAssistantResponse\"F" + + "\202\323\344\223\002@\";/v1beta/{app=projects/*/location" + + "s/*/apps/*}:chatAiAssistant:\001*\032j\312A\022ces.g" + + "oogleapis.com\322ARhttps://www.googleapis.c" + + "om/auth/ces,https://www.googleapis.com/auth/cloud-platformBe\n" + + "\033com.google.cloud.ces.v1betaB\025AssistantServiceProtoP\001Z-clou" + + "d.google.com/go/ces/apiv1beta/cespb;cespbb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.ces.v1beta.CommonProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_ces_v1beta_ListAssistantSessionsRequest_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_ces_v1beta_ListAssistantSessionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_ListAssistantSessionsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", + }); + internal_static_google_cloud_ces_v1beta_ListAssistantSessionsResponse_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_ces_v1beta_ListAssistantSessionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_ListAssistantSessionsResponse_descriptor, + new java.lang.String[] { + "AssistantSessions", "NextPageToken", + }); + internal_static_google_cloud_ces_v1beta_GetAssistantSessionRequest_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_ces_v1beta_GetAssistantSessionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_GetAssistantSessionRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_ces_v1beta_CreateAssistantSessionRequest_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_ces_v1beta_CreateAssistantSessionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_CreateAssistantSessionRequest_descriptor, + new java.lang.String[] { + "Parent", "AssistantSessionId", "AssistantSessionMessages", + }); + internal_static_google_cloud_ces_v1beta_DeleteAssistantSessionRequest_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_ces_v1beta_DeleteAssistantSessionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_DeleteAssistantSessionRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_ces_v1beta_RunAssistantRequest_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_cloud_ces_v1beta_RunAssistantRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_RunAssistantRequest_descriptor, + new java.lang.String[] { + "App", "AssistantSession", "Message", "InteractionType", + }); + internal_static_google_cloud_ces_v1beta_RunAssistantResponse_descriptor = + getDescriptor().getMessageType(6); + internal_static_google_cloud_ces_v1beta_RunAssistantResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_RunAssistantResponse_descriptor, + new java.lang.String[] { + "Output", "State", + }); + internal_static_google_cloud_ces_v1beta_AssistantSession_descriptor = + getDescriptor().getMessageType(7); + internal_static_google_cloud_ces_v1beta_AssistantSession_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_AssistantSession_descriptor, + new java.lang.String[] { + "Name", + "Requestor", + "Messages", + "State", + "CreateTime", + "UpdateTime", + "UserResponseSuggestions", + "DisplayName", + "Artifacts", + "SessionCheckpoint", + "ActiveTurn", + }); + internal_static_google_cloud_ces_v1beta_ActiveTurnInfo_descriptor = + getDescriptor().getMessageType(8); + internal_static_google_cloud_ces_v1beta_ActiveTurnInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_ActiveTurnInfo_descriptor, + new java.lang.String[] { + "TurnId", "Status", "StartTime", "LastProgressTime", "OrphanDeadlineTime", + }); + internal_static_google_cloud_ces_v1beta_AssistantSessionArtifact_descriptor = + getDescriptor().getMessageType(9); + internal_static_google_cloud_ces_v1beta_AssistantSessionArtifact_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_AssistantSessionArtifact_descriptor, + new java.lang.String[] { + "Id", "DisplayName", "GcsUri", "MimeType", "CreateTime", "TurnIndex", + }); + internal_static_google_cloud_ces_v1beta_AssistantChunk_descriptor = + getDescriptor().getMessageType(10); + internal_static_google_cloud_ces_v1beta_AssistantChunk_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_AssistantChunk_descriptor, + new java.lang.String[] { + "Text", "Thought", "Payload", "TypedPayload", "CreateTime", "Data", + }); + internal_static_google_cloud_ces_v1beta_AssistantOutput_descriptor = + getDescriptor().getMessageType(11); + internal_static_google_cloud_ces_v1beta_AssistantOutput_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_AssistantOutput_descriptor, + new java.lang.String[] { + "Message", "UserResponseSuggestions", + }); + internal_static_google_cloud_ces_v1beta_AssistantMessage_descriptor = + getDescriptor().getMessageType(12); + internal_static_google_cloud_ces_v1beta_AssistantMessage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_AssistantMessage_descriptor, + new java.lang.String[] { + "Role", "Chunks", "EventTime", "AttachedGcsUris", + }); + internal_static_google_cloud_ces_v1beta_TypedPayload_descriptor = + getDescriptor().getMessageType(13); + internal_static_google_cloud_ces_v1beta_TypedPayload_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_TypedPayload_descriptor, + new java.lang.String[] { + "DisplayName", "Type", "Value", "Metadata", + }); + internal_static_google_cloud_ces_v1beta_UserResponseSuggestions_descriptor = + getDescriptor().getMessageType(14); + internal_static_google_cloud_ces_v1beta_UserResponseSuggestions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_UserResponseSuggestions_descriptor, + new java.lang.String[] { + "Suggestions", + }); + internal_static_google_cloud_ces_v1beta_ChatAiAssistantRequest_descriptor = + getDescriptor().getMessageType(15); + internal_static_google_cloud_ces_v1beta_ChatAiAssistantRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_ChatAiAssistantRequest_descriptor, + new java.lang.String[] { + "App", "AssistantSession", "Message", "AttachedGcsUris", "ContextToken", + }); + internal_static_google_cloud_ces_v1beta_ChatAiAssistantResponse_descriptor = + getDescriptor().getMessageType(16); + internal_static_google_cloud_ces_v1beta_ChatAiAssistantResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_ChatAiAssistantResponse_descriptor, + new java.lang.String[] { + "TextChunk", + "StatusMessage", + "SessionCheckpoint", + "EventId", + "EventTime", + "UiEvent", + "Event", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.ces.v1beta.CommonProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.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.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantSession.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantSession.java new file mode 100644 index 000000000000..f442f0058ebf --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantSession.java @@ -0,0 +1,3919 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language 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/assistant_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +/** + * + * + *
+ * An assistant session represents a conversation between a user and the
+ * assistant agent.
+ * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.AssistantSession} + */ +@com.google.protobuf.Generated +public final class AssistantSession extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.AssistantSession) + AssistantSessionOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AssistantSession"); + } + + // Use AssistantSession.newBuilder() to construct. + private AssistantSession(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AssistantSession() { + name_ = ""; + requestor_ = ""; + messages_ = java.util.Collections.emptyList(); + state_ = 0; + displayName_ = ""; + artifacts_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantSession_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantSession_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.AssistantSession.class, + com.google.cloud.ces.v1beta.AssistantSession.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. Identifier. The unique identifier of the session.
+   * Format:
+   * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{session}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.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. Identifier. The unique identifier of the session.
+   * Format:
+   * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{session}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.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 REQUESTOR_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestor_ = ""; + + /** + * + * + *
+   * Output only. The user who initiated the session.
+   * 
+ * + * string requestor = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The requestor. + */ + @java.lang.Override + public java.lang.String getRequestor() { + java.lang.Object ref = requestor_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestor_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The user who initiated the session.
+   * 
+ * + * string requestor = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for requestor. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestorBytes() { + java.lang.Object ref = requestor_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestor_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MESSAGES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List messages_; + + /** + * + * + *
+   * Optional. History of messages in the session.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getMessagesList() { + return messages_; + } + + /** + * + * + *
+   * Optional. History of messages in the session.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getMessagesOrBuilderList() { + return messages_; + } + + /** + * + * + *
+   * Optional. History of messages in the session.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getMessagesCount() { + return messages_.size(); + } + + /** + * + * + *
+   * Optional. History of messages in the session.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantMessage getMessages(int index) { + return messages_.get(index); + } + + /** + * + * + *
+   * Optional. History of messages in the session.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantMessageOrBuilder getMessagesOrBuilder(int index) { + return messages_.get(index); + } + + public static final int STATE_FIELD_NUMBER = 4; + private int state_ = 0; + + /** + * + * + *
+   * Output only. The status of the assistant session.
+   * 
+ * + * + * .google.cloud.ces.v1beta.AssistantSessionState state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+   * Output only. The status of the assistant session.
+   * 
+ * + * + * .google.cloud.ces.v1beta.AssistantSessionState state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantSessionState getState() { + com.google.cloud.ces.v1beta.AssistantSessionState result = + com.google.cloud.ces.v1beta.AssistantSessionState.forNumber(state_); + return result == null ? com.google.cloud.ces.v1beta.AssistantSessionState.UNRECOGNIZED : result; + } + + public static final int CREATE_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. The time the assistant session was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.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 time the assistant session was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.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 time the assistant session was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.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 = 6; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
+   * Output only. The time the assistant session was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 6 [(.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 time the assistant session was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 6 [(.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 time the assistant session was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 6 [(.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 USER_RESPONSE_SUGGESTIONS_FIELD_NUMBER = 7; + private com.google.cloud.ces.v1beta.UserResponseSuggestions userResponseSuggestions_; + + /** + * + * + *
+   * Output only. Suggested user responses from the assistant agent.
+   * 
+ * + * + * .google.cloud.ces.v1beta.UserResponseSuggestions user_response_suggestions = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the userResponseSuggestions field is set. + */ + @java.lang.Override + public boolean hasUserResponseSuggestions() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Output only. Suggested user responses from the assistant agent.
+   * 
+ * + * + * .google.cloud.ces.v1beta.UserResponseSuggestions user_response_suggestions = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The userResponseSuggestions. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.UserResponseSuggestions getUserResponseSuggestions() { + return userResponseSuggestions_ == null + ? com.google.cloud.ces.v1beta.UserResponseSuggestions.getDefaultInstance() + : userResponseSuggestions_; + } + + /** + * + * + *
+   * Output only. Suggested user responses from the assistant agent.
+   * 
+ * + * + * .google.cloud.ces.v1beta.UserResponseSuggestions user_response_suggestions = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.UserResponseSuggestionsOrBuilder + getUserResponseSuggestionsOrBuilder() { + return userResponseSuggestions_ == null + ? com.google.cloud.ces.v1beta.UserResponseSuggestions.getDefaultInstance() + : userResponseSuggestions_; + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
+   * Optional. The display name of the assistant session.
+   * 
+ * + * string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The display name of the assistant session.
+   * 
+ * + * string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ARTIFACTS_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private java.util.List artifacts_; + + /** + * + * + *
+   * Output only. Document artifacts (e.g. generated TDDs in markdown) produced
+   * by the assistant in this session. Pointers only; the file content lives in
+   * the customer's Cloud Storage bucket.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getArtifactsList() { + return artifacts_; + } + + /** + * + * + *
+   * Output only. Document artifacts (e.g. generated TDDs in markdown) produced
+   * by the assistant in this session. Pointers only; the file content lives in
+   * the customer's Cloud Storage bucket.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getArtifactsOrBuilderList() { + return artifacts_; + } + + /** + * + * + *
+   * Output only. Document artifacts (e.g. generated TDDs in markdown) produced
+   * by the assistant in this session. Pointers only; the file content lives in
+   * the customer's Cloud Storage bucket.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getArtifactsCount() { + return artifacts_.size(); + } + + /** + * + * + *
+   * Output only. Document artifacts (e.g. generated TDDs in markdown) produced
+   * by the assistant in this session. Pointers only; the file content lives in
+   * the customer's Cloud Storage bucket.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantSessionArtifact getArtifacts(int index) { + return artifacts_.get(index); + } + + /** + * + * + *
+   * Output only. Document artifacts (e.g. generated TDDs in markdown) produced
+   * by the assistant in this session. Pointers only; the file content lives in
+   * the customer's Cloud Storage bucket.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantSessionArtifactOrBuilder getArtifactsOrBuilder( + int index) { + return artifacts_.get(index); + } + + public static final int SESSION_CHECKPOINT_FIELD_NUMBER = 10; + private com.google.cloud.ces.v1beta.SessionCheckpoint sessionCheckpoint_; + + /** + * + * + *
+   * Output only. Session checkpoint containing user intent and rolling history
+   * summary.
+   * 
+ * + * + * .google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the sessionCheckpoint field is set. + */ + @java.lang.Override + public boolean hasSessionCheckpoint() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Output only. Session checkpoint containing user intent and rolling history
+   * summary.
+   * 
+ * + * + * .google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The sessionCheckpoint. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.SessionCheckpoint getSessionCheckpoint() { + return sessionCheckpoint_ == null + ? com.google.cloud.ces.v1beta.SessionCheckpoint.getDefaultInstance() + : sessionCheckpoint_; + } + + /** + * + * + *
+   * Output only. Session checkpoint containing user intent and rolling history
+   * summary.
+   * 
+ * + * + * .google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.SessionCheckpointOrBuilder getSessionCheckpointOrBuilder() { + return sessionCheckpoint_ == null + ? com.google.cloud.ces.v1beta.SessionCheckpoint.getDefaultInstance() + : sessionCheckpoint_; + } + + public static final int ACTIVE_TURN_FIELD_NUMBER = 11; + private com.google.cloud.ces.v1beta.ActiveTurnInfo activeTurn_; + + /** + * + * + *
+   * Output only. Attachment info for this session's currently running turn.
+   * Unset when no turn is running.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ActiveTurnInfo active_turn = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the activeTurn field is set. + */ + @java.lang.Override + public boolean hasActiveTurn() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+   * Output only. Attachment info for this session's currently running turn.
+   * Unset when no turn is running.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ActiveTurnInfo active_turn = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The activeTurn. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.ActiveTurnInfo getActiveTurn() { + return activeTurn_ == null + ? com.google.cloud.ces.v1beta.ActiveTurnInfo.getDefaultInstance() + : activeTurn_; + } + + /** + * + * + *
+   * Output only. Attachment info for this session's currently running turn.
+   * Unset when no turn is running.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ActiveTurnInfo active_turn = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.ActiveTurnInfoOrBuilder getActiveTurnOrBuilder() { + return activeTurn_ == null + ? com.google.cloud.ces.v1beta.ActiveTurnInfo.getDefaultInstance() + : activeTurn_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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(requestor_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, requestor_); + } + for (int i = 0; i < messages_.size(); i++) { + output.writeMessage(3, messages_.get(i)); + } + if (state_ + != com.google.cloud.ces.v1beta.AssistantSessionState.ASSISTANT_SESSION_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, state_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(6, getUpdateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(7, getUserResponseSuggestions()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 8, displayName_); + } + for (int i = 0; i < artifacts_.size(); i++) { + output.writeMessage(9, artifacts_.get(i)); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(10, getSessionCheckpoint()); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(11, getActiveTurn()); + } + 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(requestor_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, requestor_); + } + for (int i = 0; i < messages_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, messages_.get(i)); + } + if (state_ + != com.google.cloud.ces.v1beta.AssistantSessionState.ASSISTANT_SESSION_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, state_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getUpdateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUserResponseSuggestions()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(8, displayName_); + } + for (int i = 0; i < artifacts_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, artifacts_.get(i)); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getSessionCheckpoint()); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getActiveTurn()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.AssistantSession)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.AssistantSession other = + (com.google.cloud.ces.v1beta.AssistantSession) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRequestor().equals(other.getRequestor())) return false; + if (!getMessagesList().equals(other.getMessagesList())) return false; + if (state_ != other.state_) 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 (hasUserResponseSuggestions() != other.hasUserResponseSuggestions()) return false; + if (hasUserResponseSuggestions()) { + if (!getUserResponseSuggestions().equals(other.getUserResponseSuggestions())) return false; + } + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getArtifactsList().equals(other.getArtifactsList())) return false; + if (hasSessionCheckpoint() != other.hasSessionCheckpoint()) return false; + if (hasSessionCheckpoint()) { + if (!getSessionCheckpoint().equals(other.getSessionCheckpoint())) return false; + } + if (hasActiveTurn() != other.hasActiveTurn()) return false; + if (hasActiveTurn()) { + if (!getActiveTurn().equals(other.getActiveTurn())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + 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) + REQUESTOR_FIELD_NUMBER; + hash = (53 * hash) + getRequestor().hashCode(); + if (getMessagesCount() > 0) { + hash = (37 * hash) + MESSAGES_FIELD_NUMBER; + hash = (53 * hash) + getMessagesList().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (hasUserResponseSuggestions()) { + hash = (37 * hash) + USER_RESPONSE_SUGGESTIONS_FIELD_NUMBER; + hash = (53 * hash) + getUserResponseSuggestions().hashCode(); + } + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + if (getArtifactsCount() > 0) { + hash = (37 * hash) + ARTIFACTS_FIELD_NUMBER; + hash = (53 * hash) + getArtifactsList().hashCode(); + } + if (hasSessionCheckpoint()) { + hash = (37 * hash) + SESSION_CHECKPOINT_FIELD_NUMBER; + hash = (53 * hash) + getSessionCheckpoint().hashCode(); + } + if (hasActiveTurn()) { + hash = (37 * hash) + ACTIVE_TURN_FIELD_NUMBER; + hash = (53 * hash) + getActiveTurn().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.AssistantSession parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.AssistantSession parseFrom( + 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.AssistantSession parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.AssistantSession parseFrom( + com.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.AssistantSession parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.AssistantSession 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.AssistantSession parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.AssistantSession parseFrom( + java.io.InputStream 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.AssistantSession parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.AssistantSession parseDelimitedFrom( + java.io.InputStream 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.AssistantSession 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.AssistantSession parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, 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.AssistantSession prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * An assistant session represents a conversation between a user and the
+   * assistant agent.
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.AssistantSession} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.AssistantSession) + com.google.cloud.ces.v1beta.AssistantSessionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantSession_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantSession_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.AssistantSession.class, + com.google.cloud.ces.v1beta.AssistantSession.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.AssistantSession.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetMessagesFieldBuilder(); + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + internalGetUserResponseSuggestionsFieldBuilder(); + internalGetArtifactsFieldBuilder(); + internalGetSessionCheckpointFieldBuilder(); + internalGetActiveTurnFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + requestor_ = ""; + if (messagesBuilder_ == null) { + messages_ = java.util.Collections.emptyList(); + } else { + messages_ = null; + messagesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + state_ = 0; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + userResponseSuggestions_ = null; + if (userResponseSuggestionsBuilder_ != null) { + userResponseSuggestionsBuilder_.dispose(); + userResponseSuggestionsBuilder_ = null; + } + displayName_ = ""; + if (artifactsBuilder_ == null) { + artifacts_ = java.util.Collections.emptyList(); + } else { + artifacts_ = null; + artifactsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000100); + sessionCheckpoint_ = null; + if (sessionCheckpointBuilder_ != null) { + sessionCheckpointBuilder_.dispose(); + sessionCheckpointBuilder_ = null; + } + activeTurn_ = null; + if (activeTurnBuilder_ != null) { + activeTurnBuilder_.dispose(); + activeTurnBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantSession_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantSession getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.AssistantSession.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantSession build() { + com.google.cloud.ces.v1beta.AssistantSession result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantSession buildPartial() { + com.google.cloud.ces.v1beta.AssistantSession result = + new com.google.cloud.ces.v1beta.AssistantSession(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.ces.v1beta.AssistantSession result) { + if (messagesBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + messages_ = java.util.Collections.unmodifiableList(messages_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.messages_ = messages_; + } else { + result.messages_ = messagesBuilder_.build(); + } + if (artifactsBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0)) { + artifacts_ = java.util.Collections.unmodifiableList(artifacts_); + bitField0_ = (bitField0_ & ~0x00000100); + } + result.artifacts_ = artifacts_; + } else { + result.artifacts_ = artifactsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.ces.v1beta.AssistantSession result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestor_ = requestor_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.state_ = state_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.userResponseSuggestions_ = + userResponseSuggestionsBuilder_ == null + ? userResponseSuggestions_ + : userResponseSuggestionsBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.sessionCheckpoint_ = + sessionCheckpointBuilder_ == null + ? sessionCheckpoint_ + : sessionCheckpointBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.activeTurn_ = activeTurnBuilder_ == null ? activeTurn_ : activeTurnBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.AssistantSession) { + return mergeFrom((com.google.cloud.ces.v1beta.AssistantSession) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.AssistantSession other) { + if (other == com.google.cloud.ces.v1beta.AssistantSession.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRequestor().isEmpty()) { + requestor_ = other.requestor_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (messagesBuilder_ == null) { + if (!other.messages_.isEmpty()) { + if (messages_.isEmpty()) { + messages_ = other.messages_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureMessagesIsMutable(); + messages_.addAll(other.messages_); + } + onChanged(); + } + } else { + if (!other.messages_.isEmpty()) { + if (messagesBuilder_.isEmpty()) { + messagesBuilder_.dispose(); + messagesBuilder_ = null; + messages_ = other.messages_; + bitField0_ = (bitField0_ & ~0x00000004); + messagesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetMessagesFieldBuilder() + : null; + } else { + messagesBuilder_.addAllMessages(other.messages_); + } + } + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.hasUserResponseSuggestions()) { + mergeUserResponseSuggestions(other.getUserResponseSuggestions()); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (artifactsBuilder_ == null) { + if (!other.artifacts_.isEmpty()) { + if (artifacts_.isEmpty()) { + artifacts_ = other.artifacts_; + bitField0_ = (bitField0_ & ~0x00000100); + } else { + ensureArtifactsIsMutable(); + artifacts_.addAll(other.artifacts_); + } + onChanged(); + } + } else { + if (!other.artifacts_.isEmpty()) { + if (artifactsBuilder_.isEmpty()) { + artifactsBuilder_.dispose(); + artifactsBuilder_ = null; + artifacts_ = other.artifacts_; + bitField0_ = (bitField0_ & ~0x00000100); + artifactsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetArtifactsFieldBuilder() + : null; + } else { + artifactsBuilder_.addAllMessages(other.artifacts_); + } + } + } + if (other.hasSessionCheckpoint()) { + mergeSessionCheckpoint(other.getSessionCheckpoint()); + } + if (other.hasActiveTurn()) { + mergeActiveTurn(other.getActiveTurn()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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: + { + requestor_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + com.google.cloud.ces.v1beta.AssistantMessage m = + input.readMessage( + com.google.cloud.ces.v1beta.AssistantMessage.parser(), extensionRegistry); + if (messagesBuilder_ == null) { + ensureMessagesIsMutable(); + messages_.add(m); + } else { + messagesBuilder_.addMessage(m); + } + break; + } // case 26 + case 32: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + input.readMessage( + internalGetUserResponseSuggestionsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: + { + com.google.cloud.ces.v1beta.AssistantSessionArtifact m = + input.readMessage( + com.google.cloud.ces.v1beta.AssistantSessionArtifact.parser(), + extensionRegistry); + if (artifactsBuilder_ == null) { + ensureArtifactsIsMutable(); + artifacts_.add(m); + } else { + artifactsBuilder_.addMessage(m); + } + break; + } // case 74 + case 82: + { + input.readMessage( + internalGetSessionCheckpointFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 90: + { + input.readMessage( + internalGetActiveTurnFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 90 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. Identifier. The unique identifier of the session.
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{session}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.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. Identifier. The unique identifier of the session.
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{session}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.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. Identifier. The unique identifier of the session.
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{session}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.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. Identifier. The unique identifier of the session.
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{session}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Identifier. The unique identifier of the session.
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{session}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.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 requestor_ = ""; + + /** + * + * + *
+     * Output only. The user who initiated the session.
+     * 
+ * + * string requestor = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The requestor. + */ + public java.lang.String getRequestor() { + java.lang.Object ref = requestor_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestor_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The user who initiated the session.
+     * 
+ * + * string requestor = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for requestor. + */ + public com.google.protobuf.ByteString getRequestorBytes() { + java.lang.Object ref = requestor_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestor_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The user who initiated the session.
+     * 
+ * + * string requestor = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The requestor to set. + * @return This builder for chaining. + */ + public Builder setRequestor(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestor_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The user who initiated the session.
+     * 
+ * + * string requestor = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearRequestor() { + requestor_ = getDefaultInstance().getRequestor(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The user who initiated the session.
+     * 
+ * + * string requestor = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for requestor to set. + * @return This builder for chaining. + */ + public Builder setRequestorBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestor_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.util.List messages_ = + java.util.Collections.emptyList(); + + private void ensureMessagesIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + messages_ = + new java.util.ArrayList(messages_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.AssistantMessage, + com.google.cloud.ces.v1beta.AssistantMessage.Builder, + com.google.cloud.ces.v1beta.AssistantMessageOrBuilder> + messagesBuilder_; + + /** + * + * + *
+     * Optional. History of messages in the session.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getMessagesList() { + if (messagesBuilder_ == null) { + return java.util.Collections.unmodifiableList(messages_); + } else { + return messagesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. History of messages in the session.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getMessagesCount() { + if (messagesBuilder_ == null) { + return messages_.size(); + } else { + return messagesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. History of messages in the session.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.AssistantMessage getMessages(int index) { + if (messagesBuilder_ == null) { + return messages_.get(index); + } else { + return messagesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. History of messages in the session.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMessages(int index, com.google.cloud.ces.v1beta.AssistantMessage value) { + if (messagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMessagesIsMutable(); + messages_.set(index, value); + onChanged(); + } else { + messagesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. History of messages in the session.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMessages( + int index, com.google.cloud.ces.v1beta.AssistantMessage.Builder builderForValue) { + if (messagesBuilder_ == null) { + ensureMessagesIsMutable(); + messages_.set(index, builderForValue.build()); + onChanged(); + } else { + messagesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. History of messages in the session.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addMessages(com.google.cloud.ces.v1beta.AssistantMessage value) { + if (messagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMessagesIsMutable(); + messages_.add(value); + onChanged(); + } else { + messagesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. History of messages in the session.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addMessages(int index, com.google.cloud.ces.v1beta.AssistantMessage value) { + if (messagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMessagesIsMutable(); + messages_.add(index, value); + onChanged(); + } else { + messagesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. History of messages in the session.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addMessages( + com.google.cloud.ces.v1beta.AssistantMessage.Builder builderForValue) { + if (messagesBuilder_ == null) { + ensureMessagesIsMutable(); + messages_.add(builderForValue.build()); + onChanged(); + } else { + messagesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. History of messages in the session.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addMessages( + int index, com.google.cloud.ces.v1beta.AssistantMessage.Builder builderForValue) { + if (messagesBuilder_ == null) { + ensureMessagesIsMutable(); + messages_.add(index, builderForValue.build()); + onChanged(); + } else { + messagesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. History of messages in the session.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllMessages( + java.lang.Iterable values) { + if (messagesBuilder_ == null) { + ensureMessagesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, messages_); + onChanged(); + } else { + messagesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. History of messages in the session.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMessages() { + if (messagesBuilder_ == null) { + messages_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + messagesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. History of messages in the session.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeMessages(int index) { + if (messagesBuilder_ == null) { + ensureMessagesIsMutable(); + messages_.remove(index); + onChanged(); + } else { + messagesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. History of messages in the session.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.AssistantMessage.Builder getMessagesBuilder(int index) { + return internalGetMessagesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. History of messages in the session.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.AssistantMessageOrBuilder getMessagesOrBuilder(int index) { + if (messagesBuilder_ == null) { + return messages_.get(index); + } else { + return messagesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. History of messages in the session.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getMessagesOrBuilderList() { + if (messagesBuilder_ != null) { + return messagesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(messages_); + } + } + + /** + * + * + *
+     * Optional. History of messages in the session.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.AssistantMessage.Builder addMessagesBuilder() { + return internalGetMessagesFieldBuilder() + .addBuilder(com.google.cloud.ces.v1beta.AssistantMessage.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. History of messages in the session.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.AssistantMessage.Builder addMessagesBuilder(int index) { + return internalGetMessagesFieldBuilder() + .addBuilder(index, com.google.cloud.ces.v1beta.AssistantMessage.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. History of messages in the session.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getMessagesBuilderList() { + return internalGetMessagesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.AssistantMessage, + com.google.cloud.ces.v1beta.AssistantMessage.Builder, + com.google.cloud.ces.v1beta.AssistantMessageOrBuilder> + internalGetMessagesFieldBuilder() { + if (messagesBuilder_ == null) { + messagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.AssistantMessage, + com.google.cloud.ces.v1beta.AssistantMessage.Builder, + com.google.cloud.ces.v1beta.AssistantMessageOrBuilder>( + messages_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + messages_ = null; + } + return messagesBuilder_; + } + + private int state_ = 0; + + /** + * + * + *
+     * Output only. The status of the assistant session.
+     * 
+ * + * + * .google.cloud.ces.v1beta.AssistantSessionState state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+     * Output only. The status of the assistant session.
+     * 
+ * + * + * .google.cloud.ces.v1beta.AssistantSessionState state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The status of the assistant session.
+     * 
+ * + * + * .google.cloud.ces.v1beta.AssistantSessionState state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantSessionState getState() { + com.google.cloud.ces.v1beta.AssistantSessionState result = + com.google.cloud.ces.v1beta.AssistantSessionState.forNumber(state_); + return result == null + ? com.google.cloud.ces.v1beta.AssistantSessionState.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Output only. The status of the assistant session.
+     * 
+ * + * + * .google.cloud.ces.v1beta.AssistantSessionState state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.ces.v1beta.AssistantSessionState value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The status of the assistant session.
+     * 
+ * + * + * .google.cloud.ces.v1beta.AssistantSessionState state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000008); + state_ = 0; + onChanged(); + return this; + } + + private 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 time the assistant session was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Output only. The time the assistant session was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 5 [(.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 time the assistant session was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 5 [(.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_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The time the assistant session was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 5 [(.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_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The time the assistant session was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The time the assistant session was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000010); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The time the assistant session was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The time the assistant session was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 5 [(.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 time the assistant session was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_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> + 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 time the assistant session was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * Output only. The time the assistant session was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 6 [(.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 time the assistant session was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 6 [(.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_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The time the assistant session was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 6 [(.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_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The time the assistant session was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The time the assistant session was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000020); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The time the assistant session was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The time the assistant session was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 6 [(.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 time the assistant session was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.cloud.ces.v1beta.UserResponseSuggestions userResponseSuggestions_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.UserResponseSuggestions, + com.google.cloud.ces.v1beta.UserResponseSuggestions.Builder, + com.google.cloud.ces.v1beta.UserResponseSuggestionsOrBuilder> + userResponseSuggestionsBuilder_; + + /** + * + * + *
+     * Output only. Suggested user responses from the assistant agent.
+     * 
+ * + * + * .google.cloud.ces.v1beta.UserResponseSuggestions user_response_suggestions = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the userResponseSuggestions field is set. + */ + public boolean hasUserResponseSuggestions() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+     * Output only. Suggested user responses from the assistant agent.
+     * 
+ * + * + * .google.cloud.ces.v1beta.UserResponseSuggestions user_response_suggestions = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The userResponseSuggestions. + */ + public com.google.cloud.ces.v1beta.UserResponseSuggestions getUserResponseSuggestions() { + if (userResponseSuggestionsBuilder_ == null) { + return userResponseSuggestions_ == null + ? com.google.cloud.ces.v1beta.UserResponseSuggestions.getDefaultInstance() + : userResponseSuggestions_; + } else { + return userResponseSuggestionsBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Suggested user responses from the assistant agent.
+     * 
+ * + * + * .google.cloud.ces.v1beta.UserResponseSuggestions user_response_suggestions = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUserResponseSuggestions( + com.google.cloud.ces.v1beta.UserResponseSuggestions value) { + if (userResponseSuggestionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + userResponseSuggestions_ = value; + } else { + userResponseSuggestionsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Suggested user responses from the assistant agent.
+     * 
+ * + * + * .google.cloud.ces.v1beta.UserResponseSuggestions user_response_suggestions = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUserResponseSuggestions( + com.google.cloud.ces.v1beta.UserResponseSuggestions.Builder builderForValue) { + if (userResponseSuggestionsBuilder_ == null) { + userResponseSuggestions_ = builderForValue.build(); + } else { + userResponseSuggestionsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Suggested user responses from the assistant agent.
+     * 
+ * + * + * .google.cloud.ces.v1beta.UserResponseSuggestions user_response_suggestions = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUserResponseSuggestions( + com.google.cloud.ces.v1beta.UserResponseSuggestions value) { + if (userResponseSuggestionsBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && userResponseSuggestions_ != null + && userResponseSuggestions_ + != com.google.cloud.ces.v1beta.UserResponseSuggestions.getDefaultInstance()) { + getUserResponseSuggestionsBuilder().mergeFrom(value); + } else { + userResponseSuggestions_ = value; + } + } else { + userResponseSuggestionsBuilder_.mergeFrom(value); + } + if (userResponseSuggestions_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Suggested user responses from the assistant agent.
+     * 
+ * + * + * .google.cloud.ces.v1beta.UserResponseSuggestions user_response_suggestions = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUserResponseSuggestions() { + bitField0_ = (bitField0_ & ~0x00000040); + userResponseSuggestions_ = null; + if (userResponseSuggestionsBuilder_ != null) { + userResponseSuggestionsBuilder_.dispose(); + userResponseSuggestionsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Suggested user responses from the assistant agent.
+     * 
+ * + * + * .google.cloud.ces.v1beta.UserResponseSuggestions user_response_suggestions = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1beta.UserResponseSuggestions.Builder + getUserResponseSuggestionsBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetUserResponseSuggestionsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Suggested user responses from the assistant agent.
+     * 
+ * + * + * .google.cloud.ces.v1beta.UserResponseSuggestions user_response_suggestions = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1beta.UserResponseSuggestionsOrBuilder + getUserResponseSuggestionsOrBuilder() { + if (userResponseSuggestionsBuilder_ != null) { + return userResponseSuggestionsBuilder_.getMessageOrBuilder(); + } else { + return userResponseSuggestions_ == null + ? com.google.cloud.ces.v1beta.UserResponseSuggestions.getDefaultInstance() + : userResponseSuggestions_; + } + } + + /** + * + * + *
+     * Output only. Suggested user responses from the assistant agent.
+     * 
+ * + * + * .google.cloud.ces.v1beta.UserResponseSuggestions user_response_suggestions = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.UserResponseSuggestions, + com.google.cloud.ces.v1beta.UserResponseSuggestions.Builder, + com.google.cloud.ces.v1beta.UserResponseSuggestionsOrBuilder> + internalGetUserResponseSuggestionsFieldBuilder() { + if (userResponseSuggestionsBuilder_ == null) { + userResponseSuggestionsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.UserResponseSuggestions, + com.google.cloud.ces.v1beta.UserResponseSuggestions.Builder, + com.google.cloud.ces.v1beta.UserResponseSuggestionsOrBuilder>( + getUserResponseSuggestions(), getParentForChildren(), isClean()); + userResponseSuggestions_ = null; + } + return userResponseSuggestionsBuilder_; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
+     * Optional. The display name of the assistant session.
+     * 
+ * + * string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The display name of the assistant session.
+     * 
+ * + * string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The display name of the assistant session.
+     * 
+ * + * string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The display name of the assistant session.
+     * 
+ * + * string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The display name of the assistant session.
+     * 
+ * + * string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private java.util.List artifacts_ = + java.util.Collections.emptyList(); + + private void ensureArtifactsIsMutable() { + if (!((bitField0_ & 0x00000100) != 0)) { + artifacts_ = + new java.util.ArrayList( + artifacts_); + bitField0_ |= 0x00000100; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.AssistantSessionArtifact, + com.google.cloud.ces.v1beta.AssistantSessionArtifact.Builder, + com.google.cloud.ces.v1beta.AssistantSessionArtifactOrBuilder> + artifactsBuilder_; + + /** + * + * + *
+     * Output only. Document artifacts (e.g. generated TDDs in markdown) produced
+     * by the assistant in this session. Pointers only; the file content lives in
+     * the customer's Cloud Storage bucket.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getArtifactsList() { + if (artifactsBuilder_ == null) { + return java.util.Collections.unmodifiableList(artifacts_); + } else { + return artifactsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Output only. Document artifacts (e.g. generated TDDs in markdown) produced
+     * by the assistant in this session. Pointers only; the file content lives in
+     * the customer's Cloud Storage bucket.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getArtifactsCount() { + if (artifactsBuilder_ == null) { + return artifacts_.size(); + } else { + return artifactsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Output only. Document artifacts (e.g. generated TDDs in markdown) produced
+     * by the assistant in this session. Pointers only; the file content lives in
+     * the customer's Cloud Storage bucket.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1beta.AssistantSessionArtifact getArtifacts(int index) { + if (artifactsBuilder_ == null) { + return artifacts_.get(index); + } else { + return artifactsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Output only. Document artifacts (e.g. generated TDDs in markdown) produced
+     * by the assistant in this session. Pointers only; the file content lives in
+     * the customer's Cloud Storage bucket.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setArtifacts( + int index, com.google.cloud.ces.v1beta.AssistantSessionArtifact value) { + if (artifactsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureArtifactsIsMutable(); + artifacts_.set(index, value); + onChanged(); + } else { + artifactsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. Document artifacts (e.g. generated TDDs in markdown) produced
+     * by the assistant in this session. Pointers only; the file content lives in
+     * the customer's Cloud Storage bucket.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setArtifacts( + int index, com.google.cloud.ces.v1beta.AssistantSessionArtifact.Builder builderForValue) { + if (artifactsBuilder_ == null) { + ensureArtifactsIsMutable(); + artifacts_.set(index, builderForValue.build()); + onChanged(); + } else { + artifactsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Document artifacts (e.g. generated TDDs in markdown) produced
+     * by the assistant in this session. Pointers only; the file content lives in
+     * the customer's Cloud Storage bucket.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addArtifacts(com.google.cloud.ces.v1beta.AssistantSessionArtifact value) { + if (artifactsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureArtifactsIsMutable(); + artifacts_.add(value); + onChanged(); + } else { + artifactsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Output only. Document artifacts (e.g. generated TDDs in markdown) produced
+     * by the assistant in this session. Pointers only; the file content lives in
+     * the customer's Cloud Storage bucket.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addArtifacts( + int index, com.google.cloud.ces.v1beta.AssistantSessionArtifact value) { + if (artifactsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureArtifactsIsMutable(); + artifacts_.add(index, value); + onChanged(); + } else { + artifactsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. Document artifacts (e.g. generated TDDs in markdown) produced
+     * by the assistant in this session. Pointers only; the file content lives in
+     * the customer's Cloud Storage bucket.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addArtifacts( + com.google.cloud.ces.v1beta.AssistantSessionArtifact.Builder builderForValue) { + if (artifactsBuilder_ == null) { + ensureArtifactsIsMutable(); + artifacts_.add(builderForValue.build()); + onChanged(); + } else { + artifactsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Document artifacts (e.g. generated TDDs in markdown) produced
+     * by the assistant in this session. Pointers only; the file content lives in
+     * the customer's Cloud Storage bucket.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addArtifacts( + int index, com.google.cloud.ces.v1beta.AssistantSessionArtifact.Builder builderForValue) { + if (artifactsBuilder_ == null) { + ensureArtifactsIsMutable(); + artifacts_.add(index, builderForValue.build()); + onChanged(); + } else { + artifactsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Document artifacts (e.g. generated TDDs in markdown) produced
+     * by the assistant in this session. Pointers only; the file content lives in
+     * the customer's Cloud Storage bucket.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllArtifacts( + java.lang.Iterable values) { + if (artifactsBuilder_ == null) { + ensureArtifactsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, artifacts_); + onChanged(); + } else { + artifactsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Output only. Document artifacts (e.g. generated TDDs in markdown) produced
+     * by the assistant in this session. Pointers only; the file content lives in
+     * the customer's Cloud Storage bucket.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearArtifacts() { + if (artifactsBuilder_ == null) { + artifacts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + } else { + artifactsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. Document artifacts (e.g. generated TDDs in markdown) produced
+     * by the assistant in this session. Pointers only; the file content lives in
+     * the customer's Cloud Storage bucket.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeArtifacts(int index) { + if (artifactsBuilder_ == null) { + ensureArtifactsIsMutable(); + artifacts_.remove(index); + onChanged(); + } else { + artifactsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Output only. Document artifacts (e.g. generated TDDs in markdown) produced
+     * by the assistant in this session. Pointers only; the file content lives in
+     * the customer's Cloud Storage bucket.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1beta.AssistantSessionArtifact.Builder getArtifactsBuilder( + int index) { + return internalGetArtifactsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Output only. Document artifacts (e.g. generated TDDs in markdown) produced
+     * by the assistant in this session. Pointers only; the file content lives in
+     * the customer's Cloud Storage bucket.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1beta.AssistantSessionArtifactOrBuilder getArtifactsOrBuilder( + int index) { + if (artifactsBuilder_ == null) { + return artifacts_.get(index); + } else { + return artifactsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Output only. Document artifacts (e.g. generated TDDs in markdown) produced
+     * by the assistant in this session. Pointers only; the file content lives in
+     * the customer's Cloud Storage bucket.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getArtifactsOrBuilderList() { + if (artifactsBuilder_ != null) { + return artifactsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(artifacts_); + } + } + + /** + * + * + *
+     * Output only. Document artifacts (e.g. generated TDDs in markdown) produced
+     * by the assistant in this session. Pointers only; the file content lives in
+     * the customer's Cloud Storage bucket.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1beta.AssistantSessionArtifact.Builder addArtifactsBuilder() { + return internalGetArtifactsFieldBuilder() + .addBuilder(com.google.cloud.ces.v1beta.AssistantSessionArtifact.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. Document artifacts (e.g. generated TDDs in markdown) produced
+     * by the assistant in this session. Pointers only; the file content lives in
+     * the customer's Cloud Storage bucket.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1beta.AssistantSessionArtifact.Builder addArtifactsBuilder( + int index) { + return internalGetArtifactsFieldBuilder() + .addBuilder( + index, com.google.cloud.ces.v1beta.AssistantSessionArtifact.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. Document artifacts (e.g. generated TDDs in markdown) produced
+     * by the assistant in this session. Pointers only; the file content lives in
+     * the customer's Cloud Storage bucket.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getArtifactsBuilderList() { + return internalGetArtifactsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.AssistantSessionArtifact, + com.google.cloud.ces.v1beta.AssistantSessionArtifact.Builder, + com.google.cloud.ces.v1beta.AssistantSessionArtifactOrBuilder> + internalGetArtifactsFieldBuilder() { + if (artifactsBuilder_ == null) { + artifactsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.AssistantSessionArtifact, + com.google.cloud.ces.v1beta.AssistantSessionArtifact.Builder, + com.google.cloud.ces.v1beta.AssistantSessionArtifactOrBuilder>( + artifacts_, ((bitField0_ & 0x00000100) != 0), getParentForChildren(), isClean()); + artifacts_ = null; + } + return artifactsBuilder_; + } + + private com.google.cloud.ces.v1beta.SessionCheckpoint sessionCheckpoint_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.SessionCheckpoint, + com.google.cloud.ces.v1beta.SessionCheckpoint.Builder, + com.google.cloud.ces.v1beta.SessionCheckpointOrBuilder> + sessionCheckpointBuilder_; + + /** + * + * + *
+     * Output only. Session checkpoint containing user intent and rolling history
+     * summary.
+     * 
+ * + * + * .google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the sessionCheckpoint field is set. + */ + public boolean hasSessionCheckpoint() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
+     * Output only. Session checkpoint containing user intent and rolling history
+     * summary.
+     * 
+ * + * + * .google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The sessionCheckpoint. + */ + public com.google.cloud.ces.v1beta.SessionCheckpoint getSessionCheckpoint() { + if (sessionCheckpointBuilder_ == null) { + return sessionCheckpoint_ == null + ? com.google.cloud.ces.v1beta.SessionCheckpoint.getDefaultInstance() + : sessionCheckpoint_; + } else { + return sessionCheckpointBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Session checkpoint containing user intent and rolling history
+     * summary.
+     * 
+ * + * + * .google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSessionCheckpoint(com.google.cloud.ces.v1beta.SessionCheckpoint value) { + if (sessionCheckpointBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sessionCheckpoint_ = value; + } else { + sessionCheckpointBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Session checkpoint containing user intent and rolling history
+     * summary.
+     * 
+ * + * + * .google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSessionCheckpoint( + com.google.cloud.ces.v1beta.SessionCheckpoint.Builder builderForValue) { + if (sessionCheckpointBuilder_ == null) { + sessionCheckpoint_ = builderForValue.build(); + } else { + sessionCheckpointBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Session checkpoint containing user intent and rolling history
+     * summary.
+     * 
+ * + * + * .google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeSessionCheckpoint(com.google.cloud.ces.v1beta.SessionCheckpoint value) { + if (sessionCheckpointBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && sessionCheckpoint_ != null + && sessionCheckpoint_ + != com.google.cloud.ces.v1beta.SessionCheckpoint.getDefaultInstance()) { + getSessionCheckpointBuilder().mergeFrom(value); + } else { + sessionCheckpoint_ = value; + } + } else { + sessionCheckpointBuilder_.mergeFrom(value); + } + if (sessionCheckpoint_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Session checkpoint containing user intent and rolling history
+     * summary.
+     * 
+ * + * + * .google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearSessionCheckpoint() { + bitField0_ = (bitField0_ & ~0x00000200); + sessionCheckpoint_ = null; + if (sessionCheckpointBuilder_ != null) { + sessionCheckpointBuilder_.dispose(); + sessionCheckpointBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Session checkpoint containing user intent and rolling history
+     * summary.
+     * 
+ * + * + * .google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1beta.SessionCheckpoint.Builder getSessionCheckpointBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return internalGetSessionCheckpointFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Session checkpoint containing user intent and rolling history
+     * summary.
+     * 
+ * + * + * .google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1beta.SessionCheckpointOrBuilder getSessionCheckpointOrBuilder() { + if (sessionCheckpointBuilder_ != null) { + return sessionCheckpointBuilder_.getMessageOrBuilder(); + } else { + return sessionCheckpoint_ == null + ? com.google.cloud.ces.v1beta.SessionCheckpoint.getDefaultInstance() + : sessionCheckpoint_; + } + } + + /** + * + * + *
+     * Output only. Session checkpoint containing user intent and rolling history
+     * summary.
+     * 
+ * + * + * .google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.SessionCheckpoint, + com.google.cloud.ces.v1beta.SessionCheckpoint.Builder, + com.google.cloud.ces.v1beta.SessionCheckpointOrBuilder> + internalGetSessionCheckpointFieldBuilder() { + if (sessionCheckpointBuilder_ == null) { + sessionCheckpointBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.SessionCheckpoint, + com.google.cloud.ces.v1beta.SessionCheckpoint.Builder, + com.google.cloud.ces.v1beta.SessionCheckpointOrBuilder>( + getSessionCheckpoint(), getParentForChildren(), isClean()); + sessionCheckpoint_ = null; + } + return sessionCheckpointBuilder_; + } + + private com.google.cloud.ces.v1beta.ActiveTurnInfo activeTurn_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.ActiveTurnInfo, + com.google.cloud.ces.v1beta.ActiveTurnInfo.Builder, + com.google.cloud.ces.v1beta.ActiveTurnInfoOrBuilder> + activeTurnBuilder_; + + /** + * + * + *
+     * Output only. Attachment info for this session's currently running turn.
+     * Unset when no turn is running.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ActiveTurnInfo active_turn = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the activeTurn field is set. + */ + public boolean hasActiveTurn() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
+     * Output only. Attachment info for this session's currently running turn.
+     * Unset when no turn is running.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ActiveTurnInfo active_turn = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The activeTurn. + */ + public com.google.cloud.ces.v1beta.ActiveTurnInfo getActiveTurn() { + if (activeTurnBuilder_ == null) { + return activeTurn_ == null + ? com.google.cloud.ces.v1beta.ActiveTurnInfo.getDefaultInstance() + : activeTurn_; + } else { + return activeTurnBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Attachment info for this session's currently running turn.
+     * Unset when no turn is running.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ActiveTurnInfo active_turn = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setActiveTurn(com.google.cloud.ces.v1beta.ActiveTurnInfo value) { + if (activeTurnBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + activeTurn_ = value; + } else { + activeTurnBuilder_.setMessage(value); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Attachment info for this session's currently running turn.
+     * Unset when no turn is running.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ActiveTurnInfo active_turn = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setActiveTurn( + com.google.cloud.ces.v1beta.ActiveTurnInfo.Builder builderForValue) { + if (activeTurnBuilder_ == null) { + activeTurn_ = builderForValue.build(); + } else { + activeTurnBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Attachment info for this session's currently running turn.
+     * Unset when no turn is running.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ActiveTurnInfo active_turn = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeActiveTurn(com.google.cloud.ces.v1beta.ActiveTurnInfo value) { + if (activeTurnBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0) + && activeTurn_ != null + && activeTurn_ != com.google.cloud.ces.v1beta.ActiveTurnInfo.getDefaultInstance()) { + getActiveTurnBuilder().mergeFrom(value); + } else { + activeTurn_ = value; + } + } else { + activeTurnBuilder_.mergeFrom(value); + } + if (activeTurn_ != null) { + bitField0_ |= 0x00000400; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Attachment info for this session's currently running turn.
+     * Unset when no turn is running.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ActiveTurnInfo active_turn = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearActiveTurn() { + bitField0_ = (bitField0_ & ~0x00000400); + activeTurn_ = null; + if (activeTurnBuilder_ != null) { + activeTurnBuilder_.dispose(); + activeTurnBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Attachment info for this session's currently running turn.
+     * Unset when no turn is running.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ActiveTurnInfo active_turn = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1beta.ActiveTurnInfo.Builder getActiveTurnBuilder() { + bitField0_ |= 0x00000400; + onChanged(); + return internalGetActiveTurnFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Attachment info for this session's currently running turn.
+     * Unset when no turn is running.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ActiveTurnInfo active_turn = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1beta.ActiveTurnInfoOrBuilder getActiveTurnOrBuilder() { + if (activeTurnBuilder_ != null) { + return activeTurnBuilder_.getMessageOrBuilder(); + } else { + return activeTurn_ == null + ? com.google.cloud.ces.v1beta.ActiveTurnInfo.getDefaultInstance() + : activeTurn_; + } + } + + /** + * + * + *
+     * Output only. Attachment info for this session's currently running turn.
+     * Unset when no turn is running.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ActiveTurnInfo active_turn = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.ActiveTurnInfo, + com.google.cloud.ces.v1beta.ActiveTurnInfo.Builder, + com.google.cloud.ces.v1beta.ActiveTurnInfoOrBuilder> + internalGetActiveTurnFieldBuilder() { + if (activeTurnBuilder_ == null) { + activeTurnBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.ActiveTurnInfo, + com.google.cloud.ces.v1beta.ActiveTurnInfo.Builder, + com.google.cloud.ces.v1beta.ActiveTurnInfoOrBuilder>( + getActiveTurn(), getParentForChildren(), isClean()); + activeTurn_ = null; + } + return activeTurnBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.AssistantSession) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.AssistantSession) + private static final com.google.cloud.ces.v1beta.AssistantSession DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.AssistantSession(); + } + + public static com.google.cloud.ces.v1beta.AssistantSession getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AssistantSession parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.AssistantSession getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantSessionArtifact.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantSessionArtifact.java new file mode 100644 index 000000000000..07838c53fcb4 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantSessionArtifact.java @@ -0,0 +1,1600 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language 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/assistant_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +/** + * + * + *
+ * A document artifact generated by the assistant within a session, stored as
+ * a file in the customer's Cloud Storage bucket.
+ * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.AssistantSessionArtifact} + */ +@com.google.protobuf.Generated +public final class AssistantSessionArtifact extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.AssistantSessionArtifact) + AssistantSessionArtifactOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AssistantSessionArtifact"); + } + + // Use AssistantSessionArtifact.newBuilder() to construct. + private AssistantSessionArtifact(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AssistantSessionArtifact() { + id_ = ""; + displayName_ = ""; + gcsUri_ = ""; + mimeType_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantSessionArtifact_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantSessionArtifact_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.AssistantSessionArtifact.class, + com.google.cloud.ces.v1beta.AssistantSessionArtifact.Builder.class); + } + + private int bitField0_; + public static final int ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + + /** + * + * + *
+   * Output only. The unique identifier of the artifact within the session.
+   * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The unique identifier of the artifact within the session.
+   * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
+   * Output only. The file name shown to the user, e.g. "hotel_booking_tdd.md".
+   * 
+ * + * 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 file name shown to the user, e.g. "hotel_booking_tdd.md".
+   * 
+ * + * 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 GCS_URI_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object gcsUri_ = ""; + + /** + * + * + *
+   * Output only. The Cloud Storage object holding the artifact content.
+   * Example:
+   * "gs://{project}-agent-assist-artifacts/agent-assist-generated/1_tdd.md"
+   * 
+ * + * string gcs_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The gcsUri. + */ + @java.lang.Override + public java.lang.String getGcsUri() { + java.lang.Object ref = gcsUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gcsUri_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The Cloud Storage object holding the artifact content.
+   * Example:
+   * "gs://{project}-agent-assist-artifacts/agent-assist-generated/1_tdd.md"
+   * 
+ * + * string gcs_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for gcsUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGcsUriBytes() { + java.lang.Object ref = gcsUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MIME_TYPE_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object mimeType_ = ""; + + /** + * + * + *
+   * Output only. The IANA media type of the artifact content, e.g.
+   * "text/markdown".
+   * 
+ * + * string mime_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The mimeType. + */ + @java.lang.Override + public java.lang.String getMimeType() { + java.lang.Object ref = mimeType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mimeType_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The IANA media type of the artifact content, e.g.
+   * "text/markdown".
+   * 
+ * + * string mime_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for mimeType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMimeTypeBytes() { + java.lang.Object ref = mimeType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mimeType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. When the artifact was persisted.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. When the artifact was persisted.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
+   * Output only. When the artifact was persisted.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.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 TURN_INDEX_FIELD_NUMBER = 6; + private int turnIndex_ = 0; + + /** + * + * + *
+   * Output only. Index of the message in [AssistantSession.messages] whose turn
+   * produced the artifact, for placing the artifact chip when history is
+   * restored.
+   * 
+ * + * int32 turn_index = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The turnIndex. + */ + @java.lang.Override + public int getTurnIndex() { + return turnIndex_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gcsUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, gcsUri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(mimeType_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, mimeType_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getCreateTime()); + } + if (turnIndex_ != 0) { + output.writeInt32(6, turnIndex_); + } + 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(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gcsUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, gcsUri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(mimeType_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, mimeType_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime()); + } + if (turnIndex_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, turnIndex_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.AssistantSessionArtifact)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.AssistantSessionArtifact other = + (com.google.cloud.ces.v1beta.AssistantSessionArtifact) obj; + + if (!getId().equals(other.getId())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getGcsUri().equals(other.getGcsUri())) return false; + if (!getMimeType().equals(other.getMimeType())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (getTurnIndex() != other.getTurnIndex()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + 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) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + GCS_URI_FIELD_NUMBER; + hash = (53 * hash) + getGcsUri().hashCode(); + hash = (37 * hash) + MIME_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getMimeType().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + hash = (37 * hash) + TURN_INDEX_FIELD_NUMBER; + hash = (53 * hash) + getTurnIndex(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.AssistantSessionArtifact parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.AssistantSessionArtifact parseFrom( + 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.AssistantSessionArtifact parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.AssistantSessionArtifact parseFrom( + com.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.AssistantSessionArtifact parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.AssistantSessionArtifact 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.AssistantSessionArtifact parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.AssistantSessionArtifact parseFrom( + java.io.InputStream 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.AssistantSessionArtifact parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.AssistantSessionArtifact parseDelimitedFrom( + java.io.InputStream 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.AssistantSessionArtifact 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.AssistantSessionArtifact parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, 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.AssistantSessionArtifact prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 document artifact generated by the assistant within a session, stored as
+   * a file in the customer's Cloud Storage bucket.
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.AssistantSessionArtifact} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.AssistantSessionArtifact) + com.google.cloud.ces.v1beta.AssistantSessionArtifactOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantSessionArtifact_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantSessionArtifact_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.AssistantSessionArtifact.class, + com.google.cloud.ces.v1beta.AssistantSessionArtifact.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.AssistantSessionArtifact.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + displayName_ = ""; + gcsUri_ = ""; + mimeType_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + turnIndex_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantSessionArtifact_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantSessionArtifact getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.AssistantSessionArtifact.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantSessionArtifact build() { + com.google.cloud.ces.v1beta.AssistantSessionArtifact result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantSessionArtifact buildPartial() { + com.google.cloud.ces.v1beta.AssistantSessionArtifact result = + new com.google.cloud.ces.v1beta.AssistantSessionArtifact(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1beta.AssistantSessionArtifact result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.gcsUri_ = gcsUri_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.mimeType_ = mimeType_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.turnIndex_ = turnIndex_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.AssistantSessionArtifact) { + return mergeFrom((com.google.cloud.ces.v1beta.AssistantSessionArtifact) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.AssistantSessionArtifact other) { + if (other == com.google.cloud.ces.v1beta.AssistantSessionArtifact.getDefaultInstance()) + return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getGcsUri().isEmpty()) { + gcsUri_ = other.gcsUri_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getMimeType().isEmpty()) { + mimeType_ = other.mimeType_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.getTurnIndex() != 0) { + setTurnIndex(other.getTurnIndex()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + gcsUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + mimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + turnIndex_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 48 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object id_ = ""; + + /** + * + * + *
+     * Output only. The unique identifier of the artifact within the session.
+     * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The unique identifier of the artifact within the session.
+     * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for id. + */ + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The unique identifier of the artifact within the session.
+     * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The unique identifier of the artifact within the session.
+     * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The unique identifier of the artifact within the session.
+     * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
+     * Output only. The file name shown to the user, e.g. "hotel_booking_tdd.md".
+     * 
+ * + * 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 file name shown to the user, e.g. "hotel_booking_tdd.md".
+     * 
+ * + * 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 file name shown to the user, e.g. "hotel_booking_tdd.md".
+     * 
+ * + * 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 file name shown to the user, e.g. "hotel_booking_tdd.md".
+     * 
+ * + * 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 file name shown to the user, e.g. "hotel_booking_tdd.md".
+     * 
+ * + * 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 gcsUri_ = ""; + + /** + * + * + *
+     * Output only. The Cloud Storage object holding the artifact content.
+     * Example:
+     * "gs://{project}-agent-assist-artifacts/agent-assist-generated/1_tdd.md"
+     * 
+ * + * string gcs_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The gcsUri. + */ + public java.lang.String getGcsUri() { + java.lang.Object ref = gcsUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gcsUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The Cloud Storage object holding the artifact content.
+     * Example:
+     * "gs://{project}-agent-assist-artifacts/agent-assist-generated/1_tdd.md"
+     * 
+ * + * string gcs_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for gcsUri. + */ + public com.google.protobuf.ByteString getGcsUriBytes() { + java.lang.Object ref = gcsUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The Cloud Storage object holding the artifact content.
+     * Example:
+     * "gs://{project}-agent-assist-artifacts/agent-assist-generated/1_tdd.md"
+     * 
+ * + * string gcs_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The gcsUri to set. + * @return This builder for chaining. + */ + public Builder setGcsUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + gcsUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The Cloud Storage object holding the artifact content.
+     * Example:
+     * "gs://{project}-agent-assist-artifacts/agent-assist-generated/1_tdd.md"
+     * 
+ * + * string gcs_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearGcsUri() { + gcsUri_ = getDefaultInstance().getGcsUri(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The Cloud Storage object holding the artifact content.
+     * Example:
+     * "gs://{project}-agent-assist-artifacts/agent-assist-generated/1_tdd.md"
+     * 
+ * + * string gcs_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for gcsUri to set. + * @return This builder for chaining. + */ + public Builder setGcsUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gcsUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object mimeType_ = ""; + + /** + * + * + *
+     * Output only. The IANA media type of the artifact content, e.g.
+     * "text/markdown".
+     * 
+ * + * string mime_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The mimeType. + */ + public java.lang.String getMimeType() { + java.lang.Object ref = mimeType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mimeType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The IANA media type of the artifact content, e.g.
+     * "text/markdown".
+     * 
+ * + * string mime_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for mimeType. + */ + public com.google.protobuf.ByteString getMimeTypeBytes() { + java.lang.Object ref = mimeType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mimeType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The IANA media type of the artifact content, e.g.
+     * "text/markdown".
+     * 
+ * + * string mime_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The mimeType to set. + * @return This builder for chaining. + */ + public Builder setMimeType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + mimeType_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The IANA media type of the artifact content, e.g.
+     * "text/markdown".
+     * 
+ * + * string mime_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearMimeType() { + mimeType_ = getDefaultInstance().getMimeType(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The IANA media type of the artifact content, e.g.
+     * "text/markdown".
+     * 
+ * + * string mime_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for mimeType to set. + * @return This builder for chaining. + */ + public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mimeType_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
+     * Output only. When the artifact was persisted.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Output only. When the artifact was persisted.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. When the artifact was persisted.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 5 [(.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_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. When the artifact was persisted.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 5 [(.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_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. When the artifact was persisted.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. When the artifact was persisted.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000010); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. When the artifact was persisted.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. When the artifact was persisted.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
+     * Output only. When the artifact was persisted.
+     * 
+ * + * + * .google.protobuf.Timestamp create_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> + 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 int turnIndex_; + + /** + * + * + *
+     * Output only. Index of the message in [AssistantSession.messages] whose turn
+     * produced the artifact, for placing the artifact chip when history is
+     * restored.
+     * 
+ * + * int32 turn_index = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The turnIndex. + */ + @java.lang.Override + public int getTurnIndex() { + return turnIndex_; + } + + /** + * + * + *
+     * Output only. Index of the message in [AssistantSession.messages] whose turn
+     * produced the artifact, for placing the artifact chip when history is
+     * restored.
+     * 
+ * + * int32 turn_index = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The turnIndex to set. + * @return This builder for chaining. + */ + public Builder setTurnIndex(int value) { + + turnIndex_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Index of the message in [AssistantSession.messages] whose turn
+     * produced the artifact, for placing the artifact chip when history is
+     * restored.
+     * 
+ * + * int32 turn_index = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearTurnIndex() { + bitField0_ = (bitField0_ & ~0x00000020); + turnIndex_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.AssistantSessionArtifact) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.AssistantSessionArtifact) + private static final com.google.cloud.ces.v1beta.AssistantSessionArtifact DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.AssistantSessionArtifact(); + } + + public static com.google.cloud.ces.v1beta.AssistantSessionArtifact getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AssistantSessionArtifact parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.AssistantSessionArtifact getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantSessionArtifactOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantSessionArtifactOrBuilder.java new file mode 100644 index 000000000000..a02d0823de7b --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantSessionArtifactOrBuilder.java @@ -0,0 +1,193 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/assistant_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public interface AssistantSessionArtifactOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.AssistantSessionArtifact) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The unique identifier of the artifact within the session.
+   * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The id. + */ + java.lang.String getId(); + + /** + * + * + *
+   * Output only. The unique identifier of the artifact within the session.
+   * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for id. + */ + com.google.protobuf.ByteString getIdBytes(); + + /** + * + * + *
+   * Output only. The file name shown to the user, e.g. "hotel_booking_tdd.md".
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
+   * Output only. The file name shown to the user, e.g. "hotel_booking_tdd.md".
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Output only. The Cloud Storage object holding the artifact content.
+   * Example:
+   * "gs://{project}-agent-assist-artifacts/agent-assist-generated/1_tdd.md"
+   * 
+ * + * string gcs_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The gcsUri. + */ + java.lang.String getGcsUri(); + + /** + * + * + *
+   * Output only. The Cloud Storage object holding the artifact content.
+   * Example:
+   * "gs://{project}-agent-assist-artifacts/agent-assist-generated/1_tdd.md"
+   * 
+ * + * string gcs_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for gcsUri. + */ + com.google.protobuf.ByteString getGcsUriBytes(); + + /** + * + * + *
+   * Output only. The IANA media type of the artifact content, e.g.
+   * "text/markdown".
+   * 
+ * + * string mime_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The mimeType. + */ + java.lang.String getMimeType(); + + /** + * + * + *
+   * Output only. The IANA media type of the artifact content, e.g.
+   * "text/markdown".
+   * 
+ * + * string mime_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for mimeType. + */ + com.google.protobuf.ByteString getMimeTypeBytes(); + + /** + * + * + *
+   * Output only. When the artifact was persisted.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Output only. When the artifact was persisted.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Output only. When the artifact was persisted.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Index of the message in [AssistantSession.messages] whose turn
+   * produced the artifact, for placing the artifact chip when history is
+   * restored.
+   * 
+ * + * int32 turn_index = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The turnIndex. + */ + int getTurnIndex(); +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantSessionName.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantSessionName.java new file mode 100644 index 000000000000..b1c8c9165bbd --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantSessionName.java @@ -0,0 +1,272 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1beta; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked +@Generated("by gapic-generator-java") +public class AssistantSessionName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_APP_ASSISTANT_SESSION = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String app; + private final String assistantSession; + + @Deprecated + protected AssistantSessionName() { + project = null; + location = null; + app = null; + assistantSession = null; + } + + private AssistantSessionName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + app = Preconditions.checkNotNull(builder.getApp()); + assistantSession = Preconditions.checkNotNull(builder.getAssistantSession()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getApp() { + return app; + } + + public String getAssistantSession() { + return assistantSession; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static AssistantSessionName of( + String project, String location, String app, String assistantSession) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setApp(app) + .setAssistantSession(assistantSession) + .build(); + } + + public static String format( + String project, String location, String app, String assistantSession) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setApp(app) + .setAssistantSession(assistantSession) + .build() + .toString(); + } + + public static @Nullable AssistantSessionName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_APP_ASSISTANT_SESSION.validatedMatch( + formattedString, "AssistantSessionName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("app"), + matchMap.get("assistant_session")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List<@Nullable AssistantSessionName> values) { + List list = new ArrayList<>(values.size()); + for (AssistantSessionName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_APP_ASSISTANT_SESSION.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 (app != null) { + fieldMapBuilder.put("app", app); + } + if (assistantSession != null) { + fieldMapBuilder.put("assistant_session", assistantSession); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_APP_ASSISTANT_SESSION.instantiate( + "project", + project, + "location", + location, + "app", + app, + "assistant_session", + assistantSession); + } + + @Override + public boolean equals(@Nullable Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + AssistantSessionName that = ((AssistantSessionName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.app, that.app) + && Objects.equals(this.assistantSession, that.assistantSession); + } + 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(app); + h *= 1000003; + h ^= Objects.hashCode(assistantSession); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}. + */ + public static class Builder { + private String project; + private String location; + private String app; + private String assistantSession; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getApp() { + return app; + } + + public String getAssistantSession() { + return assistantSession; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setApp(String app) { + this.app = app; + return this; + } + + public Builder setAssistantSession(String assistantSession) { + this.assistantSession = assistantSession; + return this; + } + + private Builder(AssistantSessionName assistantSessionName) { + this.project = assistantSessionName.project; + this.location = assistantSessionName.location; + this.app = assistantSessionName.app; + this.assistantSession = assistantSessionName.assistantSession; + } + + public AssistantSessionName build() { + return new AssistantSessionName(this); + } + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantSessionOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantSessionOrBuilder.java new file mode 100644 index 000000000000..040fb5a95600 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantSessionOrBuilder.java @@ -0,0 +1,502 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language 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/assistant_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public interface AssistantSessionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.AssistantSession) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Identifier. The unique identifier of the session.
+   * Format:
+   * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{session}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. Identifier. The unique identifier of the session.
+   * Format:
+   * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{session}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. The user who initiated the session.
+   * 
+ * + * string requestor = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The requestor. + */ + java.lang.String getRequestor(); + + /** + * + * + *
+   * Output only. The user who initiated the session.
+   * 
+ * + * string requestor = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for requestor. + */ + com.google.protobuf.ByteString getRequestorBytes(); + + /** + * + * + *
+   * Optional. History of messages in the session.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getMessagesList(); + + /** + * + * + *
+   * Optional. History of messages in the session.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1beta.AssistantMessage getMessages(int index); + + /** + * + * + *
+   * Optional. History of messages in the session.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getMessagesCount(); + + /** + * + * + *
+   * Optional. History of messages in the session.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getMessagesOrBuilderList(); + + /** + * + * + *
+   * Optional. History of messages in the session.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1beta.AssistantMessageOrBuilder getMessagesOrBuilder(int index); + + /** + * + * + *
+   * Output only. The status of the assistant session.
+   * 
+ * + * + * .google.cloud.ces.v1beta.AssistantSessionState state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
+   * Output only. The status of the assistant session.
+   * 
+ * + * + * .google.cloud.ces.v1beta.AssistantSessionState state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.ces.v1beta.AssistantSessionState getState(); + + /** + * + * + *
+   * Output only. The time the assistant session was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Output only. The time the assistant session was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Output only. The time the assistant session was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The time the assistant session was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
+   * Output only. The time the assistant session was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
+   * Output only. The time the assistant session was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Suggested user responses from the assistant agent.
+   * 
+ * + * + * .google.cloud.ces.v1beta.UserResponseSuggestions user_response_suggestions = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the userResponseSuggestions field is set. + */ + boolean hasUserResponseSuggestions(); + + /** + * + * + *
+   * Output only. Suggested user responses from the assistant agent.
+   * 
+ * + * + * .google.cloud.ces.v1beta.UserResponseSuggestions user_response_suggestions = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The userResponseSuggestions. + */ + com.google.cloud.ces.v1beta.UserResponseSuggestions getUserResponseSuggestions(); + + /** + * + * + *
+   * Output only. Suggested user responses from the assistant agent.
+   * 
+ * + * + * .google.cloud.ces.v1beta.UserResponseSuggestions user_response_suggestions = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.ces.v1beta.UserResponseSuggestionsOrBuilder + getUserResponseSuggestionsOrBuilder(); + + /** + * + * + *
+   * Optional. The display name of the assistant session.
+   * 
+ * + * string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
+   * Optional. The display name of the assistant session.
+   * 
+ * + * string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Output only. Document artifacts (e.g. generated TDDs in markdown) produced
+   * by the assistant in this session. Pointers only; the file content lives in
+   * the customer's Cloud Storage bucket.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getArtifactsList(); + + /** + * + * + *
+   * Output only. Document artifacts (e.g. generated TDDs in markdown) produced
+   * by the assistant in this session. Pointers only; the file content lives in
+   * the customer's Cloud Storage bucket.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.ces.v1beta.AssistantSessionArtifact getArtifacts(int index); + + /** + * + * + *
+   * Output only. Document artifacts (e.g. generated TDDs in markdown) produced
+   * by the assistant in this session. Pointers only; the file content lives in
+   * the customer's Cloud Storage bucket.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getArtifactsCount(); + + /** + * + * + *
+   * Output only. Document artifacts (e.g. generated TDDs in markdown) produced
+   * by the assistant in this session. Pointers only; the file content lives in
+   * the customer's Cloud Storage bucket.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getArtifactsOrBuilderList(); + + /** + * + * + *
+   * Output only. Document artifacts (e.g. generated TDDs in markdown) produced
+   * by the assistant in this session. Pointers only; the file content lives in
+   * the customer's Cloud Storage bucket.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.ces.v1beta.AssistantSessionArtifactOrBuilder getArtifactsOrBuilder(int index); + + /** + * + * + *
+   * Output only. Session checkpoint containing user intent and rolling history
+   * summary.
+   * 
+ * + * + * .google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the sessionCheckpoint field is set. + */ + boolean hasSessionCheckpoint(); + + /** + * + * + *
+   * Output only. Session checkpoint containing user intent and rolling history
+   * summary.
+   * 
+ * + * + * .google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The sessionCheckpoint. + */ + com.google.cloud.ces.v1beta.SessionCheckpoint getSessionCheckpoint(); + + /** + * + * + *
+   * Output only. Session checkpoint containing user intent and rolling history
+   * summary.
+   * 
+ * + * + * .google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.ces.v1beta.SessionCheckpointOrBuilder getSessionCheckpointOrBuilder(); + + /** + * + * + *
+   * Output only. Attachment info for this session's currently running turn.
+   * Unset when no turn is running.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ActiveTurnInfo active_turn = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the activeTurn field is set. + */ + boolean hasActiveTurn(); + + /** + * + * + *
+   * Output only. Attachment info for this session's currently running turn.
+   * Unset when no turn is running.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ActiveTurnInfo active_turn = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The activeTurn. + */ + com.google.cloud.ces.v1beta.ActiveTurnInfo getActiveTurn(); + + /** + * + * + *
+   * Output only. Attachment info for this session's currently running turn.
+   * Unset when no turn is running.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ActiveTurnInfo active_turn = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.ces.v1beta.ActiveTurnInfoOrBuilder getActiveTurnOrBuilder(); +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantSessionState.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantSessionState.java new file mode 100644 index 000000000000..9b05120680d0 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantSessionState.java @@ -0,0 +1,221 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language 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/assistant_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +/** + * + * + *
+ * The status of the assistant session.
+ * 
+ * + * Protobuf enum {@code google.cloud.ces.v1beta.AssistantSessionState} + */ +@com.google.protobuf.Generated +public enum AssistantSessionState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * The default value. This value is used if the status is not specified.
+   * 
+ * + * ASSISTANT_SESSION_STATE_UNSPECIFIED = 0; + */ + ASSISTANT_SESSION_STATE_UNSPECIFIED(0), + /** + * + * + *
+   * The assistant agent is processing the request as a long running task.
+   * 
+ * + * PROCESSING = 1; + */ + PROCESSING(1), + /** + * + * + *
+   * The assistant agent is idle and does not have any pending requests or
+   * response.
+   * 
+ * + * IDLE = 2; + */ + IDLE(2), + /** + * + * + *
+   * The assistant agent is done processing a long running task and has a
+   * response ready for the user.
+   * 
+ * + * PENDING_REVIEW = 3; + */ + PENDING_REVIEW(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AssistantSessionState"); + } + + /** + * + * + *
+   * The default value. This value is used if the status is not specified.
+   * 
+ * + * ASSISTANT_SESSION_STATE_UNSPECIFIED = 0; + */ + public static final int ASSISTANT_SESSION_STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+   * The assistant agent is processing the request as a long running task.
+   * 
+ * + * PROCESSING = 1; + */ + public static final int PROCESSING_VALUE = 1; + + /** + * + * + *
+   * The assistant agent is idle and does not have any pending requests or
+   * response.
+   * 
+ * + * IDLE = 2; + */ + public static final int IDLE_VALUE = 2; + + /** + * + * + *
+   * The assistant agent is done processing a long running task and has a
+   * response ready for the user.
+   * 
+ * + * PENDING_REVIEW = 3; + */ + public static final int PENDING_REVIEW_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 AssistantSessionState 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 AssistantSessionState forNumber(int value) { + switch (value) { + case 0: + return ASSISTANT_SESSION_STATE_UNSPECIFIED; + case 1: + return PROCESSING; + case 2: + return IDLE; + case 3: + return PENDING_REVIEW; + 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 AssistantSessionState findValueByNumber(int number) { + return AssistantSessionState.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.AssistantServiceProto.getDescriptor().getEnumTypes().get(0); + } + + private static final AssistantSessionState[] VALUES = values(); + + public static AssistantSessionState 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 AssistantSessionState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1beta.AssistantSessionState) +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantSuggestion.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantSuggestion.java new file mode 100644 index 000000000000..3e393cc10bf2 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantSuggestion.java @@ -0,0 +1,3449 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language 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/session_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +/** + * + * + *
+ * A single personalized onboarding suggestion chip for Arc's
+ * zero state.
+ * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.AssistantSuggestion} + */ +@com.google.protobuf.Generated +public final class AssistantSuggestion extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.AssistantSuggestion) + AssistantSuggestionOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AssistantSuggestion"); + } + + // Use AssistantSuggestion.newBuilder() to construct. + private AssistantSuggestion(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AssistantSuggestion() { + suggestionId_ = ""; + label_ = ""; + rationale_ = ""; + icon_ = 0; + source_ = 0; + candidateType_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantSuggestion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantSuggestion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.AssistantSuggestion.class, + com.google.cloud.ces.v1beta.AssistantSuggestion.Builder.class); + } + + /** + * + * + *
+   * Icon hint for the chip.
+   * 
+ * + * Protobuf enum {@code google.cloud.ces.v1beta.AssistantSuggestion.Icon} + */ + public enum Icon implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified icon.
+     * 
+ * + * ICON_UNSPECIFIED = 0; + */ + ICON_UNSPECIFIED(0), + /** + * + * + *
+     * Resume a previous session.
+     * 
+ * + * RESUME = 1; + */ + RESUME(1), + /** + * + * + *
+     * Build something new.
+     * 
+ * + * BUILD = 2; + */ + BUILD(2), + /** + * + * + *
+     * Evaluation-related suggestion.
+     * 
+ * + * EVALUATE = 3; + */ + EVALUATE(3), + /** + * + * + *
+     * Deployment-related suggestion.
+     * 
+ * + * DEPLOY = 4; + */ + DEPLOY(4), + /** + * + * + *
+     * Exploration / discovery suggestion.
+     * 
+ * + * EXPLORE = 5; + */ + EXPLORE(5), + /** + * + * + *
+     * Fix an error or failing state.
+     * 
+ * + * FIX = 6; + */ + FIX(6), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Icon"); + } + + /** + * + * + *
+     * Unspecified icon.
+     * 
+ * + * ICON_UNSPECIFIED = 0; + */ + public static final int ICON_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Resume a previous session.
+     * 
+ * + * RESUME = 1; + */ + public static final int RESUME_VALUE = 1; + + /** + * + * + *
+     * Build something new.
+     * 
+ * + * BUILD = 2; + */ + public static final int BUILD_VALUE = 2; + + /** + * + * + *
+     * Evaluation-related suggestion.
+     * 
+ * + * EVALUATE = 3; + */ + public static final int EVALUATE_VALUE = 3; + + /** + * + * + *
+     * Deployment-related suggestion.
+     * 
+ * + * DEPLOY = 4; + */ + public static final int DEPLOY_VALUE = 4; + + /** + * + * + *
+     * Exploration / discovery suggestion.
+     * 
+ * + * EXPLORE = 5; + */ + public static final int EXPLORE_VALUE = 5; + + /** + * + * + *
+     * Fix an error or failing state.
+     * 
+ * + * FIX = 6; + */ + public static final int FIX_VALUE = 6; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Icon 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 Icon forNumber(int value) { + switch (value) { + case 0: + return ICON_UNSPECIFIED; + case 1: + return RESUME; + case 2: + return BUILD; + case 3: + return EVALUATE; + case 4: + return DEPLOY; + case 5: + return EXPLORE; + case 6: + return FIX; + 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 Icon findValueByNumber(int number) { + return Icon.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.AssistantSuggestion.getDescriptor().getEnumTypes().get(0); + } + + private static final Icon[] VALUES = values(); + + public static Icon 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 Icon(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1beta.AssistantSuggestion.Icon) + } + + /** + * + * + *
+   * How this suggestion was produced.
+   * 
+ * + * Protobuf enum {@code google.cloud.ces.v1beta.AssistantSuggestion.Source} + */ + public enum Source implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified source.
+     * 
+ * + * SOURCE_UNSPECIFIED = 0; + */ + SOURCE_UNSPECIFIED(0), + /** + * + * + *
+     * Deterministic rule-table candidate with template phrasing.
+     * 
+ * + * RULE = 1; + */ + RULE(1), + /** + * + * + *
+     * Rule-table candidate re-ranked and phrased by the LLM phrasing step.
+     * 
+ * + * LLM_RANKED = 2; + */ + LLM_RANKED(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Source"); + } + + /** + * + * + *
+     * Unspecified source.
+     * 
+ * + * SOURCE_UNSPECIFIED = 0; + */ + public static final int SOURCE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Deterministic rule-table candidate with template phrasing.
+     * 
+ * + * RULE = 1; + */ + public static final int RULE_VALUE = 1; + + /** + * + * + *
+     * Rule-table candidate re-ranked and phrased by the LLM phrasing step.
+     * 
+ * + * LLM_RANKED = 2; + */ + public static final int LLM_RANKED_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 Source 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 Source forNumber(int value) { + switch (value) { + case 0: + return SOURCE_UNSPECIFIED; + case 1: + return RULE; + case 2: + return LLM_RANKED; + 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 Source findValueByNumber(int number) { + return Source.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.AssistantSuggestion.getDescriptor().getEnumTypes().get(1); + } + + private static final Source[] VALUES = values(); + + public static Source 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 Source(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1beta.AssistantSuggestion.Source) + } + + public interface LoadSessionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.AssistantSuggestion.LoadSession) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Identifier of the assistant session to open (the final segment of the
+     * AssistantSession resource name).
+     * 
+ * + * string assistant_session_id = 1; + * + * @return The assistantSessionId. + */ + java.lang.String getAssistantSessionId(); + + /** + * + * + *
+     * Identifier of the assistant session to open (the final segment of the
+     * AssistantSession resource name).
+     * 
+ * + * string assistant_session_id = 1; + * + * @return The bytes for assistantSessionId. + */ + com.google.protobuf.ByteString getAssistantSessionIdBytes(); + } + + /** + * + * + *
+   * Parameters for the load_session action.
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.AssistantSuggestion.LoadSession} + */ + public static final class LoadSession extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.AssistantSuggestion.LoadSession) + LoadSessionOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "LoadSession"); + } + + // Use LoadSession.newBuilder() to construct. + private LoadSession(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private LoadSession() { + assistantSessionId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantSuggestion_LoadSession_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantSuggestion_LoadSession_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession.class, + com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession.Builder.class); + } + + public static final int ASSISTANT_SESSION_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object assistantSessionId_ = ""; + + /** + * + * + *
+     * Identifier of the assistant session to open (the final segment of the
+     * AssistantSession resource name).
+     * 
+ * + * string assistant_session_id = 1; + * + * @return The assistantSessionId. + */ + @java.lang.Override + public java.lang.String getAssistantSessionId() { + java.lang.Object ref = assistantSessionId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + assistantSessionId_ = s; + return s; + } + } + + /** + * + * + *
+     * Identifier of the assistant session to open (the final segment of the
+     * AssistantSession resource name).
+     * 
+ * + * string assistant_session_id = 1; + * + * @return The bytes for assistantSessionId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAssistantSessionIdBytes() { + java.lang.Object ref = assistantSessionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + assistantSessionId_ = 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(assistantSessionId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, assistantSessionId_); + } + 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(assistantSessionId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, assistantSessionId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.AssistantSuggestion.LoadSession)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession other = + (com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession) obj; + + if (!getAssistantSessionId().equals(other.getAssistantSessionId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ASSISTANT_SESSION_ID_FIELD_NUMBER; + hash = (53 * hash) + getAssistantSessionId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession parseFrom( + 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.AssistantSuggestion.LoadSession parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession parseFrom( + com.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.AssistantSuggestion.LoadSession parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession 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.AssistantSuggestion.LoadSession parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession parseFrom( + java.io.InputStream 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.AssistantSuggestion.LoadSession parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession parseDelimitedFrom( + java.io.InputStream 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.AssistantSuggestion.LoadSession 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.AssistantSuggestion.LoadSession parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, 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.AssistantSuggestion.LoadSession prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Parameters for the load_session action.
+     * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.AssistantSuggestion.LoadSession} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.AssistantSuggestion.LoadSession) + com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSessionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantSuggestion_LoadSession_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantSuggestion_LoadSession_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession.class, + com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + assistantSessionId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantSuggestion_LoadSession_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession + getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession build() { + com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession buildPartial() { + com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession result = + new com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.assistantSessionId_ = assistantSessionId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession) { + return mergeFrom((com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession other) { + if (other + == com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession.getDefaultInstance()) + return this; + if (!other.getAssistantSessionId().isEmpty()) { + assistantSessionId_ = other.assistantSessionId_; + 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: + { + assistantSessionId_ = 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 assistantSessionId_ = ""; + + /** + * + * + *
+       * Identifier of the assistant session to open (the final segment of the
+       * AssistantSession resource name).
+       * 
+ * + * string assistant_session_id = 1; + * + * @return The assistantSessionId. + */ + public java.lang.String getAssistantSessionId() { + java.lang.Object ref = assistantSessionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + assistantSessionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Identifier of the assistant session to open (the final segment of the
+       * AssistantSession resource name).
+       * 
+ * + * string assistant_session_id = 1; + * + * @return The bytes for assistantSessionId. + */ + public com.google.protobuf.ByteString getAssistantSessionIdBytes() { + java.lang.Object ref = assistantSessionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + assistantSessionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Identifier of the assistant session to open (the final segment of the
+       * AssistantSession resource name).
+       * 
+ * + * string assistant_session_id = 1; + * + * @param value The assistantSessionId to set. + * @return This builder for chaining. + */ + public Builder setAssistantSessionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + assistantSessionId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Identifier of the assistant session to open (the final segment of the
+       * AssistantSession resource name).
+       * 
+ * + * string assistant_session_id = 1; + * + * @return This builder for chaining. + */ + public Builder clearAssistantSessionId() { + assistantSessionId_ = getDefaultInstance().getAssistantSessionId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+       * Identifier of the assistant session to open (the final segment of the
+       * AssistantSession resource name).
+       * 
+ * + * string assistant_session_id = 1; + * + * @param value The bytes for assistantSessionId to set. + * @return This builder for chaining. + */ + public Builder setAssistantSessionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + assistantSessionId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.AssistantSuggestion.LoadSession) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.AssistantSuggestion.LoadSession) + private static final com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession(); + } + + public static com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LoadSession parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.AssistantSuggestion.LoadSession getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int actionCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object action_; + + public enum ActionCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + SEED_PROMPT(5), + LOAD_SESSION(6), + SEND_MESSAGE(7), + ACTION_NOT_SET(0); + private final int value; + + private ActionCase(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 ActionCase valueOf(int value) { + return forNumber(value); + } + + public static ActionCase forNumber(int value) { + switch (value) { + case 5: + return SEED_PROMPT; + case 6: + return LOAD_SESSION; + case 7: + return SEND_MESSAGE; + case 0: + return ACTION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ActionCase getActionCase() { + return ActionCase.forNumber(actionCase_); + } + + public static final int SEED_PROMPT_FIELD_NUMBER = 5; + + /** + * + * + *
+   * Prefill the composer with this text; the user reviews and sends.
+   * 
+ * + * string seed_prompt = 5; + * + * @return Whether the seedPrompt field is set. + */ + public boolean hasSeedPrompt() { + return actionCase_ == 5; + } + + /** + * + * + *
+   * Prefill the composer with this text; the user reviews and sends.
+   * 
+ * + * string seed_prompt = 5; + * + * @return The seedPrompt. + */ + public java.lang.String getSeedPrompt() { + java.lang.Object ref = ""; + if (actionCase_ == 5) { + ref = action_; + } + if (ref instanceof java.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 (actionCase_ == 5) { + action_ = s; + } + return s; + } + } + + /** + * + * + *
+   * Prefill the composer with this text; the user reviews and sends.
+   * 
+ * + * string seed_prompt = 5; + * + * @return The bytes for seedPrompt. + */ + public com.google.protobuf.ByteString getSeedPromptBytes() { + java.lang.Object ref = ""; + if (actionCase_ == 5) { + ref = action_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (actionCase_ == 5) { + action_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOAD_SESSION_FIELD_NUMBER = 6; + + /** + * + * + *
+   * Open an existing assistant session.
+   * 
+ * + * .google.cloud.ces.v1beta.AssistantSuggestion.LoadSession load_session = 6; + * + * @return Whether the loadSession field is set. + */ + @java.lang.Override + public boolean hasLoadSession() { + return actionCase_ == 6; + } + + /** + * + * + *
+   * Open an existing assistant session.
+   * 
+ * + * .google.cloud.ces.v1beta.AssistantSuggestion.LoadSession load_session = 6; + * + * @return The loadSession. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession getLoadSession() { + if (actionCase_ == 6) { + return (com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession) action_; + } + return com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession.getDefaultInstance(); + } + + /** + * + * + *
+   * Open an existing assistant session.
+   * 
+ * + * .google.cloud.ces.v1beta.AssistantSuggestion.LoadSession load_session = 6; + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSessionOrBuilder + getLoadSessionOrBuilder() { + if (actionCase_ == 6) { + return (com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession) action_; + } + return com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession.getDefaultInstance(); + } + + public static final int SEND_MESSAGE_FIELD_NUMBER = 7; + + /** + * + * + *
+   * Prefill the composer with this text and submit immediately. Only used
+   * for quick-reply chips inside an active onboarding conversation.
+   * 
+ * + * string send_message = 7; + * + * @return Whether the sendMessage field is set. + */ + public boolean hasSendMessage() { + return actionCase_ == 7; + } + + /** + * + * + *
+   * Prefill the composer with this text and submit immediately. Only used
+   * for quick-reply chips inside an active onboarding conversation.
+   * 
+ * + * string send_message = 7; + * + * @return The sendMessage. + */ + public java.lang.String getSendMessage() { + java.lang.Object ref = ""; + if (actionCase_ == 7) { + ref = action_; + } + if (ref instanceof java.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 (actionCase_ == 7) { + action_ = s; + } + return s; + } + } + + /** + * + * + *
+   * Prefill the composer with this text and submit immediately. Only used
+   * for quick-reply chips inside an active onboarding conversation.
+   * 
+ * + * string send_message = 7; + * + * @return The bytes for sendMessage. + */ + public com.google.protobuf.ByteString getSendMessageBytes() { + java.lang.Object ref = ""; + if (actionCase_ == 7) { + ref = action_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (actionCase_ == 7) { + action_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUGGESTION_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object suggestionId_ = ""; + + /** + * + * + *
+   * Stable identifier for this suggestion, round-tripped by clients in
+   * interaction logging.
+   * 
+ * + * string suggestion_id = 1; + * + * @return The suggestionId. + */ + @java.lang.Override + public java.lang.String getSuggestionId() { + java.lang.Object ref = suggestionId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + suggestionId_ = s; + return s; + } + } + + /** + * + * + *
+   * Stable identifier for this suggestion, round-tripped by clients in
+   * interaction logging.
+   * 
+ * + * string suggestion_id = 1; + * + * @return The bytes for suggestionId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSuggestionIdBytes() { + java.lang.Object ref = suggestionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + suggestionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LABEL_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object label_ = ""; + + /** + * + * + *
+   * Chip label shown to the user (at most 60 characters).
+   * 
+ * + * string label = 2; + * + * @return The label. + */ + @java.lang.Override + public java.lang.String getLabel() { + java.lang.Object ref = label_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + label_ = s; + return s; + } + } + + /** + * + * + *
+   * Chip label shown to the user (at most 60 characters).
+   * 
+ * + * string label = 2; + * + * @return The bytes for label. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLabelBytes() { + java.lang.Object ref = label_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + label_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RATIONALE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object rationale_ = ""; + + /** + * + * + *
+   * Optional short explanation of why this suggestion is shown (tooltip /
+   * rationale popover).
+   * 
+ * + * string rationale = 3; + * + * @return The rationale. + */ + @java.lang.Override + public java.lang.String getRationale() { + java.lang.Object ref = rationale_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rationale_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional short explanation of why this suggestion is shown (tooltip /
+   * rationale popover).
+   * 
+ * + * string rationale = 3; + * + * @return The bytes for rationale. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRationaleBytes() { + java.lang.Object ref = rationale_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rationale_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ICON_FIELD_NUMBER = 4; + private int icon_ = 0; + + /** + * + * + *
+   * Icon hint for the chip.
+   * 
+ * + * .google.cloud.ces.v1beta.AssistantSuggestion.Icon icon = 4; + * + * @return The enum numeric value on the wire for icon. + */ + @java.lang.Override + public int getIconValue() { + return icon_; + } + + /** + * + * + *
+   * Icon hint for the chip.
+   * 
+ * + * .google.cloud.ces.v1beta.AssistantSuggestion.Icon icon = 4; + * + * @return The icon. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantSuggestion.Icon getIcon() { + com.google.cloud.ces.v1beta.AssistantSuggestion.Icon result = + com.google.cloud.ces.v1beta.AssistantSuggestion.Icon.forNumber(icon_); + return result == null + ? com.google.cloud.ces.v1beta.AssistantSuggestion.Icon.UNRECOGNIZED + : result; + } + + public static final int SOURCE_FIELD_NUMBER = 8; + private int source_ = 0; + + /** + * + * + *
+   * How this suggestion was produced.
+   * 
+ * + * .google.cloud.ces.v1beta.AssistantSuggestion.Source source = 8; + * + * @return The enum numeric value on the wire for source. + */ + @java.lang.Override + public int getSourceValue() { + return source_; + } + + /** + * + * + *
+   * How this suggestion was produced.
+   * 
+ * + * .google.cloud.ces.v1beta.AssistantSuggestion.Source source = 8; + * + * @return The source. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantSuggestion.Source getSource() { + com.google.cloud.ces.v1beta.AssistantSuggestion.Source result = + com.google.cloud.ces.v1beta.AssistantSuggestion.Source.forNumber(source_); + return result == null + ? com.google.cloud.ces.v1beta.AssistantSuggestion.Source.UNRECOGNIZED + : result; + } + + public static final int CANDIDATE_TYPE_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object candidateType_ = ""; + + /** + * + * + *
+   * Rule-table candidate type in kebab-case (e.g. "resume-pending-review"),
+   * for metrics.
+   * 
+ * + * string candidate_type = 9; + * + * @return The candidateType. + */ + @java.lang.Override + public java.lang.String getCandidateType() { + java.lang.Object ref = candidateType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + candidateType_ = s; + return s; + } + } + + /** + * + * + *
+   * Rule-table candidate type in kebab-case (e.g. "resume-pending-review"),
+   * for metrics.
+   * 
+ * + * string candidate_type = 9; + * + * @return The bytes for candidateType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCandidateTypeBytes() { + java.lang.Object ref = candidateType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + candidateType_ = 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(suggestionId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, suggestionId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(label_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, label_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(rationale_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, rationale_); + } + if (icon_ + != com.google.cloud.ces.v1beta.AssistantSuggestion.Icon.ICON_UNSPECIFIED.getNumber()) { + output.writeEnum(4, icon_); + } + if (actionCase_ == 5) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, action_); + } + if (actionCase_ == 6) { + output.writeMessage(6, (com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession) action_); + } + if (actionCase_ == 7) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, action_); + } + if (source_ + != com.google.cloud.ces.v1beta.AssistantSuggestion.Source.SOURCE_UNSPECIFIED.getNumber()) { + output.writeEnum(8, source_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(candidateType_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 9, candidateType_); + } + 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(suggestionId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, suggestionId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(label_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, label_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(rationale_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, rationale_); + } + if (icon_ + != com.google.cloud.ces.v1beta.AssistantSuggestion.Icon.ICON_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, icon_); + } + if (actionCase_ == 5) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, action_); + } + if (actionCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession) action_); + } + if (actionCase_ == 7) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, action_); + } + if (source_ + != com.google.cloud.ces.v1beta.AssistantSuggestion.Source.SOURCE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, source_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(candidateType_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(9, candidateType_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.AssistantSuggestion)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.AssistantSuggestion other = + (com.google.cloud.ces.v1beta.AssistantSuggestion) obj; + + if (!getSuggestionId().equals(other.getSuggestionId())) return false; + if (!getLabel().equals(other.getLabel())) return false; + if (!getRationale().equals(other.getRationale())) return false; + if (icon_ != other.icon_) return false; + if (source_ != other.source_) return false; + if (!getCandidateType().equals(other.getCandidateType())) return false; + if (!getActionCase().equals(other.getActionCase())) return false; + switch (actionCase_) { + case 5: + if (!getSeedPrompt().equals(other.getSeedPrompt())) return false; + break; + case 6: + if (!getLoadSession().equals(other.getLoadSession())) return false; + break; + case 7: + if (!getSendMessage().equals(other.getSendMessage())) 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) + SUGGESTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getSuggestionId().hashCode(); + hash = (37 * hash) + LABEL_FIELD_NUMBER; + hash = (53 * hash) + getLabel().hashCode(); + hash = (37 * hash) + RATIONALE_FIELD_NUMBER; + hash = (53 * hash) + getRationale().hashCode(); + hash = (37 * hash) + ICON_FIELD_NUMBER; + hash = (53 * hash) + icon_; + hash = (37 * hash) + SOURCE_FIELD_NUMBER; + hash = (53 * hash) + source_; + hash = (37 * hash) + CANDIDATE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getCandidateType().hashCode(); + switch (actionCase_) { + case 5: + hash = (37 * hash) + SEED_PROMPT_FIELD_NUMBER; + hash = (53 * hash) + getSeedPrompt().hashCode(); + break; + case 6: + hash = (37 * hash) + LOAD_SESSION_FIELD_NUMBER; + hash = (53 * hash) + getLoadSession().hashCode(); + break; + case 7: + hash = (37 * hash) + SEND_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getSendMessage().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.AssistantSuggestion parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.AssistantSuggestion parseFrom( + 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.AssistantSuggestion parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.AssistantSuggestion parseFrom( + com.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.AssistantSuggestion parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.AssistantSuggestion 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.AssistantSuggestion parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.AssistantSuggestion parseFrom( + java.io.InputStream 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.AssistantSuggestion parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.AssistantSuggestion parseDelimitedFrom( + java.io.InputStream 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.AssistantSuggestion 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.AssistantSuggestion parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, 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.AssistantSuggestion prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A single personalized onboarding suggestion chip for Arc's
+   * zero state.
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.AssistantSuggestion} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.AssistantSuggestion) + com.google.cloud.ces.v1beta.AssistantSuggestionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantSuggestion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantSuggestion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.AssistantSuggestion.class, + com.google.cloud.ces.v1beta.AssistantSuggestion.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.AssistantSuggestion.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (loadSessionBuilder_ != null) { + loadSessionBuilder_.clear(); + } + suggestionId_ = ""; + label_ = ""; + rationale_ = ""; + icon_ = 0; + source_ = 0; + candidateType_ = ""; + actionCase_ = 0; + action_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantSuggestion_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantSuggestion getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.AssistantSuggestion.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantSuggestion build() { + com.google.cloud.ces.v1beta.AssistantSuggestion result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantSuggestion buildPartial() { + com.google.cloud.ces.v1beta.AssistantSuggestion result = + new com.google.cloud.ces.v1beta.AssistantSuggestion(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1beta.AssistantSuggestion result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.suggestionId_ = suggestionId_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.label_ = label_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.rationale_ = rationale_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.icon_ = icon_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.source_ = source_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.candidateType_ = candidateType_; + } + } + + private void buildPartialOneofs(com.google.cloud.ces.v1beta.AssistantSuggestion result) { + result.actionCase_ = actionCase_; + result.action_ = this.action_; + if (actionCase_ == 6 && loadSessionBuilder_ != null) { + result.action_ = loadSessionBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.AssistantSuggestion) { + return mergeFrom((com.google.cloud.ces.v1beta.AssistantSuggestion) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.AssistantSuggestion other) { + if (other == com.google.cloud.ces.v1beta.AssistantSuggestion.getDefaultInstance()) + return this; + if (!other.getSuggestionId().isEmpty()) { + suggestionId_ = other.suggestionId_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getLabel().isEmpty()) { + label_ = other.label_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getRationale().isEmpty()) { + rationale_ = other.rationale_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.icon_ != 0) { + setIconValue(other.getIconValue()); + } + if (other.source_ != 0) { + setSourceValue(other.getSourceValue()); + } + if (!other.getCandidateType().isEmpty()) { + candidateType_ = other.candidateType_; + bitField0_ |= 0x00000100; + onChanged(); + } + switch (other.getActionCase()) { + case SEED_PROMPT: + { + actionCase_ = 5; + action_ = other.action_; + onChanged(); + break; + } + case LOAD_SESSION: + { + mergeLoadSession(other.getLoadSession()); + break; + } + case SEND_MESSAGE: + { + actionCase_ = 7; + action_ = other.action_; + onChanged(); + break; + } + case ACTION_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: + { + suggestionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 10 + case 18: + { + label_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 18 + case 26: + { + rationale_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 26 + case 32: + { + icon_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 32 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + actionCase_ = 5; + action_ = s; + break; + } // case 42 + case 50: + { + input.readMessage( + internalGetLoadSessionFieldBuilder().getBuilder(), extensionRegistry); + actionCase_ = 6; + break; + } // case 50 + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + actionCase_ = 7; + action_ = s; + break; + } // case 58 + case 64: + { + source_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 74: + { + candidateType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int actionCase_ = 0; + private java.lang.Object action_; + + public ActionCase getActionCase() { + return ActionCase.forNumber(actionCase_); + } + + public Builder clearAction() { + actionCase_ = 0; + action_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
+     * Prefill the composer with this text; the user reviews and sends.
+     * 
+ * + * string seed_prompt = 5; + * + * @return Whether the seedPrompt field is set. + */ + @java.lang.Override + public boolean hasSeedPrompt() { + return actionCase_ == 5; + } + + /** + * + * + *
+     * Prefill the composer with this text; the user reviews and sends.
+     * 
+ * + * string seed_prompt = 5; + * + * @return The seedPrompt. + */ + @java.lang.Override + public java.lang.String getSeedPrompt() { + java.lang.Object ref = ""; + if (actionCase_ == 5) { + ref = action_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (actionCase_ == 5) { + action_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Prefill the composer with this text; the user reviews and sends.
+     * 
+ * + * string seed_prompt = 5; + * + * @return The bytes for seedPrompt. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSeedPromptBytes() { + java.lang.Object ref = ""; + if (actionCase_ == 5) { + ref = action_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (actionCase_ == 5) { + action_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Prefill the composer with this text; the user reviews and sends.
+     * 
+ * + * string seed_prompt = 5; + * + * @param value The seedPrompt to set. + * @return This builder for chaining. + */ + public Builder setSeedPrompt(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + actionCase_ = 5; + action_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Prefill the composer with this text; the user reviews and sends.
+     * 
+ * + * string seed_prompt = 5; + * + * @return This builder for chaining. + */ + public Builder clearSeedPrompt() { + if (actionCase_ == 5) { + actionCase_ = 0; + action_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Prefill the composer with this text; the user reviews and sends.
+     * 
+ * + * string seed_prompt = 5; + * + * @param value The bytes for seedPrompt to set. + * @return This builder for chaining. + */ + public Builder setSeedPromptBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + actionCase_ = 5; + action_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession, + com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession.Builder, + com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSessionOrBuilder> + loadSessionBuilder_; + + /** + * + * + *
+     * Open an existing assistant session.
+     * 
+ * + * .google.cloud.ces.v1beta.AssistantSuggestion.LoadSession load_session = 6; + * + * @return Whether the loadSession field is set. + */ + @java.lang.Override + public boolean hasLoadSession() { + return actionCase_ == 6; + } + + /** + * + * + *
+     * Open an existing assistant session.
+     * 
+ * + * .google.cloud.ces.v1beta.AssistantSuggestion.LoadSession load_session = 6; + * + * @return The loadSession. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession getLoadSession() { + if (loadSessionBuilder_ == null) { + if (actionCase_ == 6) { + return (com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession) action_; + } + return com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession.getDefaultInstance(); + } else { + if (actionCase_ == 6) { + return loadSessionBuilder_.getMessage(); + } + return com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Open an existing assistant session.
+     * 
+ * + * .google.cloud.ces.v1beta.AssistantSuggestion.LoadSession load_session = 6; + */ + public Builder setLoadSession( + com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession value) { + if (loadSessionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + action_ = value; + onChanged(); + } else { + loadSessionBuilder_.setMessage(value); + } + actionCase_ = 6; + return this; + } + + /** + * + * + *
+     * Open an existing assistant session.
+     * 
+ * + * .google.cloud.ces.v1beta.AssistantSuggestion.LoadSession load_session = 6; + */ + public Builder setLoadSession( + com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession.Builder builderForValue) { + if (loadSessionBuilder_ == null) { + action_ = builderForValue.build(); + onChanged(); + } else { + loadSessionBuilder_.setMessage(builderForValue.build()); + } + actionCase_ = 6; + return this; + } + + /** + * + * + *
+     * Open an existing assistant session.
+     * 
+ * + * .google.cloud.ces.v1beta.AssistantSuggestion.LoadSession load_session = 6; + */ + public Builder mergeLoadSession( + com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession value) { + if (loadSessionBuilder_ == null) { + if (actionCase_ == 6 + && action_ + != com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession + .getDefaultInstance()) { + action_ = + com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession.newBuilder( + (com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession) action_) + .mergeFrom(value) + .buildPartial(); + } else { + action_ = value; + } + onChanged(); + } else { + if (actionCase_ == 6) { + loadSessionBuilder_.mergeFrom(value); + } else { + loadSessionBuilder_.setMessage(value); + } + } + actionCase_ = 6; + return this; + } + + /** + * + * + *
+     * Open an existing assistant session.
+     * 
+ * + * .google.cloud.ces.v1beta.AssistantSuggestion.LoadSession load_session = 6; + */ + public Builder clearLoadSession() { + if (loadSessionBuilder_ == null) { + if (actionCase_ == 6) { + actionCase_ = 0; + action_ = null; + onChanged(); + } + } else { + if (actionCase_ == 6) { + actionCase_ = 0; + action_ = null; + } + loadSessionBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Open an existing assistant session.
+     * 
+ * + * .google.cloud.ces.v1beta.AssistantSuggestion.LoadSession load_session = 6; + */ + public com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession.Builder + getLoadSessionBuilder() { + return internalGetLoadSessionFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Open an existing assistant session.
+     * 
+ * + * .google.cloud.ces.v1beta.AssistantSuggestion.LoadSession load_session = 6; + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSessionOrBuilder + getLoadSessionOrBuilder() { + if ((actionCase_ == 6) && (loadSessionBuilder_ != null)) { + return loadSessionBuilder_.getMessageOrBuilder(); + } else { + if (actionCase_ == 6) { + return (com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession) action_; + } + return com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Open an existing assistant session.
+     * 
+ * + * .google.cloud.ces.v1beta.AssistantSuggestion.LoadSession load_session = 6; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession, + com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession.Builder, + com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSessionOrBuilder> + internalGetLoadSessionFieldBuilder() { + if (loadSessionBuilder_ == null) { + if (!(actionCase_ == 6)) { + action_ = + com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession.getDefaultInstance(); + } + loadSessionBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession, + com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession.Builder, + com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSessionOrBuilder>( + (com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession) action_, + getParentForChildren(), + isClean()); + action_ = null; + } + actionCase_ = 6; + onChanged(); + return loadSessionBuilder_; + } + + /** + * + * + *
+     * Prefill the composer with this text and submit immediately. Only used
+     * for quick-reply chips inside an active onboarding conversation.
+     * 
+ * + * string send_message = 7; + * + * @return Whether the sendMessage field is set. + */ + @java.lang.Override + public boolean hasSendMessage() { + return actionCase_ == 7; + } + + /** + * + * + *
+     * Prefill the composer with this text and submit immediately. Only used
+     * for quick-reply chips inside an active onboarding conversation.
+     * 
+ * + * string send_message = 7; + * + * @return The sendMessage. + */ + @java.lang.Override + public java.lang.String getSendMessage() { + java.lang.Object ref = ""; + if (actionCase_ == 7) { + ref = action_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (actionCase_ == 7) { + action_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Prefill the composer with this text and submit immediately. Only used
+     * for quick-reply chips inside an active onboarding conversation.
+     * 
+ * + * string send_message = 7; + * + * @return The bytes for sendMessage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSendMessageBytes() { + java.lang.Object ref = ""; + if (actionCase_ == 7) { + ref = action_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (actionCase_ == 7) { + action_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Prefill the composer with this text and submit immediately. Only used
+     * for quick-reply chips inside an active onboarding conversation.
+     * 
+ * + * string send_message = 7; + * + * @param value The sendMessage to set. + * @return This builder for chaining. + */ + public Builder setSendMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + actionCase_ = 7; + action_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Prefill the composer with this text and submit immediately. Only used
+     * for quick-reply chips inside an active onboarding conversation.
+     * 
+ * + * string send_message = 7; + * + * @return This builder for chaining. + */ + public Builder clearSendMessage() { + if (actionCase_ == 7) { + actionCase_ = 0; + action_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Prefill the composer with this text and submit immediately. Only used
+     * for quick-reply chips inside an active onboarding conversation.
+     * 
+ * + * string send_message = 7; + * + * @param value The bytes for sendMessage to set. + * @return This builder for chaining. + */ + public Builder setSendMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + actionCase_ = 7; + action_ = value; + onChanged(); + return this; + } + + private java.lang.Object suggestionId_ = ""; + + /** + * + * + *
+     * Stable identifier for this suggestion, round-tripped by clients in
+     * interaction logging.
+     * 
+ * + * string suggestion_id = 1; + * + * @return The suggestionId. + */ + public java.lang.String getSuggestionId() { + java.lang.Object ref = suggestionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + suggestionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Stable identifier for this suggestion, round-tripped by clients in
+     * interaction logging.
+     * 
+ * + * string suggestion_id = 1; + * + * @return The bytes for suggestionId. + */ + public com.google.protobuf.ByteString getSuggestionIdBytes() { + java.lang.Object ref = suggestionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + suggestionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Stable identifier for this suggestion, round-tripped by clients in
+     * interaction logging.
+     * 
+ * + * string suggestion_id = 1; + * + * @param value The suggestionId to set. + * @return This builder for chaining. + */ + public Builder setSuggestionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + suggestionId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Stable identifier for this suggestion, round-tripped by clients in
+     * interaction logging.
+     * 
+ * + * string suggestion_id = 1; + * + * @return This builder for chaining. + */ + public Builder clearSuggestionId() { + suggestionId_ = getDefaultInstance().getSuggestionId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Stable identifier for this suggestion, round-tripped by clients in
+     * interaction logging.
+     * 
+ * + * string suggestion_id = 1; + * + * @param value The bytes for suggestionId to set. + * @return This builder for chaining. + */ + public Builder setSuggestionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + suggestionId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object label_ = ""; + + /** + * + * + *
+     * Chip label shown to the user (at most 60 characters).
+     * 
+ * + * string label = 2; + * + * @return The label. + */ + public java.lang.String getLabel() { + java.lang.Object ref = label_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + label_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Chip label shown to the user (at most 60 characters).
+     * 
+ * + * string label = 2; + * + * @return The bytes for label. + */ + public com.google.protobuf.ByteString getLabelBytes() { + java.lang.Object ref = label_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + label_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Chip label shown to the user (at most 60 characters).
+     * 
+ * + * string label = 2; + * + * @param value The label to set. + * @return This builder for chaining. + */ + public Builder setLabel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + label_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Chip label shown to the user (at most 60 characters).
+     * 
+ * + * string label = 2; + * + * @return This builder for chaining. + */ + public Builder clearLabel() { + label_ = getDefaultInstance().getLabel(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Chip label shown to the user (at most 60 characters).
+     * 
+ * + * string label = 2; + * + * @param value The bytes for label to set. + * @return This builder for chaining. + */ + public Builder setLabelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + label_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object rationale_ = ""; + + /** + * + * + *
+     * Optional short explanation of why this suggestion is shown (tooltip /
+     * rationale popover).
+     * 
+ * + * string rationale = 3; + * + * @return The rationale. + */ + public java.lang.String getRationale() { + java.lang.Object ref = rationale_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rationale_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional short explanation of why this suggestion is shown (tooltip /
+     * rationale popover).
+     * 
+ * + * string rationale = 3; + * + * @return The bytes for rationale. + */ + public com.google.protobuf.ByteString getRationaleBytes() { + java.lang.Object ref = rationale_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rationale_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional short explanation of why this suggestion is shown (tooltip /
+     * rationale popover).
+     * 
+ * + * string rationale = 3; + * + * @param value The rationale to set. + * @return This builder for chaining. + */ + public Builder setRationale(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + rationale_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional short explanation of why this suggestion is shown (tooltip /
+     * rationale popover).
+     * 
+ * + * string rationale = 3; + * + * @return This builder for chaining. + */ + public Builder clearRationale() { + rationale_ = getDefaultInstance().getRationale(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional short explanation of why this suggestion is shown (tooltip /
+     * rationale popover).
+     * 
+ * + * string rationale = 3; + * + * @param value The bytes for rationale to set. + * @return This builder for chaining. + */ + public Builder setRationaleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + rationale_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private int icon_ = 0; + + /** + * + * + *
+     * Icon hint for the chip.
+     * 
+ * + * .google.cloud.ces.v1beta.AssistantSuggestion.Icon icon = 4; + * + * @return The enum numeric value on the wire for icon. + */ + @java.lang.Override + public int getIconValue() { + return icon_; + } + + /** + * + * + *
+     * Icon hint for the chip.
+     * 
+ * + * .google.cloud.ces.v1beta.AssistantSuggestion.Icon icon = 4; + * + * @param value The enum numeric value on the wire for icon to set. + * @return This builder for chaining. + */ + public Builder setIconValue(int value) { + icon_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Icon hint for the chip.
+     * 
+ * + * .google.cloud.ces.v1beta.AssistantSuggestion.Icon icon = 4; + * + * @return The icon. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantSuggestion.Icon getIcon() { + com.google.cloud.ces.v1beta.AssistantSuggestion.Icon result = + com.google.cloud.ces.v1beta.AssistantSuggestion.Icon.forNumber(icon_); + return result == null + ? com.google.cloud.ces.v1beta.AssistantSuggestion.Icon.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Icon hint for the chip.
+     * 
+ * + * .google.cloud.ces.v1beta.AssistantSuggestion.Icon icon = 4; + * + * @param value The icon to set. + * @return This builder for chaining. + */ + public Builder setIcon(com.google.cloud.ces.v1beta.AssistantSuggestion.Icon value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + icon_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Icon hint for the chip.
+     * 
+ * + * .google.cloud.ces.v1beta.AssistantSuggestion.Icon icon = 4; + * + * @return This builder for chaining. + */ + public Builder clearIcon() { + bitField0_ = (bitField0_ & ~0x00000040); + icon_ = 0; + onChanged(); + return this; + } + + private int source_ = 0; + + /** + * + * + *
+     * How this suggestion was produced.
+     * 
+ * + * .google.cloud.ces.v1beta.AssistantSuggestion.Source source = 8; + * + * @return The enum numeric value on the wire for source. + */ + @java.lang.Override + public int getSourceValue() { + return source_; + } + + /** + * + * + *
+     * How this suggestion was produced.
+     * 
+ * + * .google.cloud.ces.v1beta.AssistantSuggestion.Source source = 8; + * + * @param value The enum numeric value on the wire for source to set. + * @return This builder for chaining. + */ + public Builder setSourceValue(int value) { + source_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * How this suggestion was produced.
+     * 
+ * + * .google.cloud.ces.v1beta.AssistantSuggestion.Source source = 8; + * + * @return The source. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantSuggestion.Source getSource() { + com.google.cloud.ces.v1beta.AssistantSuggestion.Source result = + com.google.cloud.ces.v1beta.AssistantSuggestion.Source.forNumber(source_); + return result == null + ? com.google.cloud.ces.v1beta.AssistantSuggestion.Source.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * How this suggestion was produced.
+     * 
+ * + * .google.cloud.ces.v1beta.AssistantSuggestion.Source source = 8; + * + * @param value The source to set. + * @return This builder for chaining. + */ + public Builder setSource(com.google.cloud.ces.v1beta.AssistantSuggestion.Source value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + source_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * How this suggestion was produced.
+     * 
+ * + * .google.cloud.ces.v1beta.AssistantSuggestion.Source source = 8; + * + * @return This builder for chaining. + */ + public Builder clearSource() { + bitField0_ = (bitField0_ & ~0x00000080); + source_ = 0; + onChanged(); + return this; + } + + private java.lang.Object candidateType_ = ""; + + /** + * + * + *
+     * Rule-table candidate type in kebab-case (e.g. "resume-pending-review"),
+     * for metrics.
+     * 
+ * + * string candidate_type = 9; + * + * @return The candidateType. + */ + public java.lang.String getCandidateType() { + java.lang.Object ref = candidateType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + candidateType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Rule-table candidate type in kebab-case (e.g. "resume-pending-review"),
+     * for metrics.
+     * 
+ * + * string candidate_type = 9; + * + * @return The bytes for candidateType. + */ + public com.google.protobuf.ByteString getCandidateTypeBytes() { + java.lang.Object ref = candidateType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + candidateType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Rule-table candidate type in kebab-case (e.g. "resume-pending-review"),
+     * for metrics.
+     * 
+ * + * string candidate_type = 9; + * + * @param value The candidateType to set. + * @return This builder for chaining. + */ + public Builder setCandidateType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + candidateType_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Rule-table candidate type in kebab-case (e.g. "resume-pending-review"),
+     * for metrics.
+     * 
+ * + * string candidate_type = 9; + * + * @return This builder for chaining. + */ + public Builder clearCandidateType() { + candidateType_ = getDefaultInstance().getCandidateType(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + + /** + * + * + *
+     * Rule-table candidate type in kebab-case (e.g. "resume-pending-review"),
+     * for metrics.
+     * 
+ * + * string candidate_type = 9; + * + * @param value The bytes for candidateType to set. + * @return This builder for chaining. + */ + public Builder setCandidateTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + candidateType_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.AssistantSuggestion) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.AssistantSuggestion) + private static final com.google.cloud.ces.v1beta.AssistantSuggestion DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.AssistantSuggestion(); + } + + public static com.google.cloud.ces.v1beta.AssistantSuggestion getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AssistantSuggestion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.AssistantSuggestion getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantSuggestionOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantSuggestionOrBuilder.java new file mode 100644 index 000000000000..0a98e8982dbd --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantSuggestionOrBuilder.java @@ -0,0 +1,310 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language 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/session_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public interface AssistantSuggestionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.AssistantSuggestion) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Prefill the composer with this text; the user reviews and sends.
+   * 
+ * + * string seed_prompt = 5; + * + * @return Whether the seedPrompt field is set. + */ + boolean hasSeedPrompt(); + + /** + * + * + *
+   * Prefill the composer with this text; the user reviews and sends.
+   * 
+ * + * string seed_prompt = 5; + * + * @return The seedPrompt. + */ + java.lang.String getSeedPrompt(); + + /** + * + * + *
+   * Prefill the composer with this text; the user reviews and sends.
+   * 
+ * + * string seed_prompt = 5; + * + * @return The bytes for seedPrompt. + */ + com.google.protobuf.ByteString getSeedPromptBytes(); + + /** + * + * + *
+   * Open an existing assistant session.
+   * 
+ * + * .google.cloud.ces.v1beta.AssistantSuggestion.LoadSession load_session = 6; + * + * @return Whether the loadSession field is set. + */ + boolean hasLoadSession(); + + /** + * + * + *
+   * Open an existing assistant session.
+   * 
+ * + * .google.cloud.ces.v1beta.AssistantSuggestion.LoadSession load_session = 6; + * + * @return The loadSession. + */ + com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession getLoadSession(); + + /** + * + * + *
+   * Open an existing assistant session.
+   * 
+ * + * .google.cloud.ces.v1beta.AssistantSuggestion.LoadSession load_session = 6; + */ + com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSessionOrBuilder getLoadSessionOrBuilder(); + + /** + * + * + *
+   * Prefill the composer with this text and submit immediately. Only used
+   * for quick-reply chips inside an active onboarding conversation.
+   * 
+ * + * string send_message = 7; + * + * @return Whether the sendMessage field is set. + */ + boolean hasSendMessage(); + + /** + * + * + *
+   * Prefill the composer with this text and submit immediately. Only used
+   * for quick-reply chips inside an active onboarding conversation.
+   * 
+ * + * string send_message = 7; + * + * @return The sendMessage. + */ + java.lang.String getSendMessage(); + + /** + * + * + *
+   * Prefill the composer with this text and submit immediately. Only used
+   * for quick-reply chips inside an active onboarding conversation.
+   * 
+ * + * string send_message = 7; + * + * @return The bytes for sendMessage. + */ + com.google.protobuf.ByteString getSendMessageBytes(); + + /** + * + * + *
+   * Stable identifier for this suggestion, round-tripped by clients in
+   * interaction logging.
+   * 
+ * + * string suggestion_id = 1; + * + * @return The suggestionId. + */ + java.lang.String getSuggestionId(); + + /** + * + * + *
+   * Stable identifier for this suggestion, round-tripped by clients in
+   * interaction logging.
+   * 
+ * + * string suggestion_id = 1; + * + * @return The bytes for suggestionId. + */ + com.google.protobuf.ByteString getSuggestionIdBytes(); + + /** + * + * + *
+   * Chip label shown to the user (at most 60 characters).
+   * 
+ * + * string label = 2; + * + * @return The label. + */ + java.lang.String getLabel(); + + /** + * + * + *
+   * Chip label shown to the user (at most 60 characters).
+   * 
+ * + * string label = 2; + * + * @return The bytes for label. + */ + com.google.protobuf.ByteString getLabelBytes(); + + /** + * + * + *
+   * Optional short explanation of why this suggestion is shown (tooltip /
+   * rationale popover).
+   * 
+ * + * string rationale = 3; + * + * @return The rationale. + */ + java.lang.String getRationale(); + + /** + * + * + *
+   * Optional short explanation of why this suggestion is shown (tooltip /
+   * rationale popover).
+   * 
+ * + * string rationale = 3; + * + * @return The bytes for rationale. + */ + com.google.protobuf.ByteString getRationaleBytes(); + + /** + * + * + *
+   * Icon hint for the chip.
+   * 
+ * + * .google.cloud.ces.v1beta.AssistantSuggestion.Icon icon = 4; + * + * @return The enum numeric value on the wire for icon. + */ + int getIconValue(); + + /** + * + * + *
+   * Icon hint for the chip.
+   * 
+ * + * .google.cloud.ces.v1beta.AssistantSuggestion.Icon icon = 4; + * + * @return The icon. + */ + com.google.cloud.ces.v1beta.AssistantSuggestion.Icon getIcon(); + + /** + * + * + *
+   * How this suggestion was produced.
+   * 
+ * + * .google.cloud.ces.v1beta.AssistantSuggestion.Source source = 8; + * + * @return The enum numeric value on the wire for source. + */ + int getSourceValue(); + + /** + * + * + *
+   * How this suggestion was produced.
+   * 
+ * + * .google.cloud.ces.v1beta.AssistantSuggestion.Source source = 8; + * + * @return The source. + */ + com.google.cloud.ces.v1beta.AssistantSuggestion.Source getSource(); + + /** + * + * + *
+   * Rule-table candidate type in kebab-case (e.g. "resume-pending-review"),
+   * for metrics.
+   * 
+ * + * string candidate_type = 9; + * + * @return The candidateType. + */ + java.lang.String getCandidateType(); + + /** + * + * + *
+   * Rule-table candidate type in kebab-case (e.g. "resume-pending-review"),
+   * for metrics.
+   * 
+ * + * string candidate_type = 9; + * + * @return The bytes for candidateType. + */ + com.google.protobuf.ByteString getCandidateTypeBytes(); + + com.google.cloud.ces.v1beta.AssistantSuggestion.ActionCase getActionCase(); +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AudioProcessingConfig.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AudioProcessingConfig.java index f1019f57006b..c27499cfa657 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AudioProcessingConfig.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AudioProcessingConfig.java @@ -52,7 +52,9 @@ private AudioProcessingConfig(com.google.protobuf.GeneratedMessage.Builder bu super(builder); } - private AudioProcessingConfig() {} + private AudioProcessingConfig() { + customVoiceSamples_ = java.util.Collections.emptyList(); + } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.ces.v1beta.AppProto @@ -434,6 +436,93 @@ public com.google.cloud.ces.v1beta.AmbientSoundConfigOrBuilder getAmbientSoundCo : ambientSoundConfig_; } + public static final int CUSTOM_VOICE_SAMPLES_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private java.util.List customVoiceSamples_; + + /** + * + * + *
+   * Optional. Configures custom voice samples for voice cloning.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample custom_voice_samples = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getCustomVoiceSamplesList() { + return customVoiceSamples_; + } + + /** + * + * + *
+   * Optional. Configures custom voice samples for voice cloning.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample custom_voice_samples = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getCustomVoiceSamplesOrBuilderList() { + return customVoiceSamples_; + } + + /** + * + * + *
+   * Optional. Configures custom voice samples for voice cloning.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample custom_voice_samples = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getCustomVoiceSamplesCount() { + return customVoiceSamples_.size(); + } + + /** + * + * + *
+   * Optional. Configures custom voice samples for voice cloning.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample custom_voice_samples = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.CustomVoiceSample getCustomVoiceSamples(int index) { + return customVoiceSamples_.get(index); + } + + /** + * + * + *
+   * Optional. Configures custom voice samples for voice cloning.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample custom_voice_samples = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.CustomVoiceSampleOrBuilder getCustomVoiceSamplesOrBuilder( + int index) { + return customVoiceSamples_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -462,6 +551,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(5, getAmbientSoundConfig()); } + for (int i = 0; i < customVoiceSamples_.size(); i++) { + output.writeMessage(10, customVoiceSamples_.get(i)); + } getUnknownFields().writeTo(output); } @@ -493,6 +585,10 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getAmbientSoundConfig()); } + for (int i = 0; i < customVoiceSamples_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(10, customVoiceSamples_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -523,6 +619,7 @@ public boolean equals(final java.lang.Object obj) { if (hasAmbientSoundConfig()) { if (!getAmbientSoundConfig().equals(other.getAmbientSoundConfig())) return false; } + if (!getCustomVoiceSamplesList().equals(other.getCustomVoiceSamplesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -550,6 +647,10 @@ public int hashCode() { hash = (37 * hash) + AMBIENT_SOUND_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getAmbientSoundConfig().hashCode(); } + if (getCustomVoiceSamplesCount() > 0) { + hash = (37 * hash) + CUSTOM_VOICE_SAMPLES_FIELD_NUMBER; + hash = (53 * hash) + getCustomVoiceSamplesList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -717,6 +818,7 @@ private void maybeForceBuilderInitialization() { internalGetBargeInConfigFieldBuilder(); internalGetInactivityTimeoutFieldBuilder(); internalGetAmbientSoundConfigFieldBuilder(); + internalGetCustomVoiceSamplesFieldBuilder(); } } @@ -740,6 +842,13 @@ public Builder clear() { ambientSoundConfigBuilder_.dispose(); ambientSoundConfigBuilder_ = null; } + if (customVoiceSamplesBuilder_ == null) { + customVoiceSamples_ = java.util.Collections.emptyList(); + } else { + customVoiceSamples_ = null; + customVoiceSamplesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); return this; } @@ -767,6 +876,7 @@ public com.google.cloud.ces.v1beta.AudioProcessingConfig build() { public com.google.cloud.ces.v1beta.AudioProcessingConfig buildPartial() { com.google.cloud.ces.v1beta.AudioProcessingConfig result = new com.google.cloud.ces.v1beta.AudioProcessingConfig(this); + buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -774,6 +884,19 @@ public com.google.cloud.ces.v1beta.AudioProcessingConfig buildPartial() { return result; } + private void buildPartialRepeatedFields( + com.google.cloud.ces.v1beta.AudioProcessingConfig result) { + if (customVoiceSamplesBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + customVoiceSamples_ = java.util.Collections.unmodifiableList(customVoiceSamples_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.customVoiceSamples_ = customVoiceSamples_; + } else { + result.customVoiceSamples_ = customVoiceSamplesBuilder_.build(); + } + } + private void buildPartial0(com.google.cloud.ces.v1beta.AudioProcessingConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { @@ -829,6 +952,33 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.AudioProcessingConfig other if (other.hasAmbientSoundConfig()) { mergeAmbientSoundConfig(other.getAmbientSoundConfig()); } + if (customVoiceSamplesBuilder_ == null) { + if (!other.customVoiceSamples_.isEmpty()) { + if (customVoiceSamples_.isEmpty()) { + customVoiceSamples_ = other.customVoiceSamples_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureCustomVoiceSamplesIsMutable(); + customVoiceSamples_.addAll(other.customVoiceSamples_); + } + onChanged(); + } + } else { + if (!other.customVoiceSamples_.isEmpty()) { + if (customVoiceSamplesBuilder_.isEmpty()) { + customVoiceSamplesBuilder_.dispose(); + customVoiceSamplesBuilder_ = null; + customVoiceSamples_ = other.customVoiceSamples_; + bitField0_ = (bitField0_ & ~0x00000010); + customVoiceSamplesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetCustomVoiceSamplesFieldBuilder() + : null; + } else { + customVoiceSamplesBuilder_.addAllMessages(other.customVoiceSamples_); + } + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -891,6 +1041,19 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 42 + case 82: + { + com.google.cloud.ces.v1beta.CustomVoiceSample m = + input.readMessage( + com.google.cloud.ces.v1beta.CustomVoiceSample.parser(), extensionRegistry); + if (customVoiceSamplesBuilder_ == null) { + ensureCustomVoiceSamplesIsMutable(); + customVoiceSamples_.add(m); + } else { + customVoiceSamplesBuilder_.addMessage(m); + } + break; + } // case 82 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1918,6 +2081,420 @@ public com.google.cloud.ces.v1beta.AmbientSoundConfig.Builder getAmbientSoundCon return ambientSoundConfigBuilder_; } + private java.util.List customVoiceSamples_ = + java.util.Collections.emptyList(); + + private void ensureCustomVoiceSamplesIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + customVoiceSamples_ = + new java.util.ArrayList( + customVoiceSamples_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.CustomVoiceSample, + com.google.cloud.ces.v1beta.CustomVoiceSample.Builder, + com.google.cloud.ces.v1beta.CustomVoiceSampleOrBuilder> + customVoiceSamplesBuilder_; + + /** + * + * + *
+     * Optional. Configures custom voice samples for voice cloning.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample custom_voice_samples = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getCustomVoiceSamplesList() { + if (customVoiceSamplesBuilder_ == null) { + return java.util.Collections.unmodifiableList(customVoiceSamples_); + } else { + return customVoiceSamplesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. Configures custom voice samples for voice cloning.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample custom_voice_samples = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getCustomVoiceSamplesCount() { + if (customVoiceSamplesBuilder_ == null) { + return customVoiceSamples_.size(); + } else { + return customVoiceSamplesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. Configures custom voice samples for voice cloning.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample custom_voice_samples = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.CustomVoiceSample getCustomVoiceSamples(int index) { + if (customVoiceSamplesBuilder_ == null) { + return customVoiceSamples_.get(index); + } else { + return customVoiceSamplesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. Configures custom voice samples for voice cloning.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample custom_voice_samples = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCustomVoiceSamples( + int index, com.google.cloud.ces.v1beta.CustomVoiceSample value) { + if (customVoiceSamplesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomVoiceSamplesIsMutable(); + customVoiceSamples_.set(index, value); + onChanged(); + } else { + customVoiceSamplesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Configures custom voice samples for voice cloning.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample custom_voice_samples = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCustomVoiceSamples( + int index, com.google.cloud.ces.v1beta.CustomVoiceSample.Builder builderForValue) { + if (customVoiceSamplesBuilder_ == null) { + ensureCustomVoiceSamplesIsMutable(); + customVoiceSamples_.set(index, builderForValue.build()); + onChanged(); + } else { + customVoiceSamplesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Configures custom voice samples for voice cloning.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample custom_voice_samples = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCustomVoiceSamples(com.google.cloud.ces.v1beta.CustomVoiceSample value) { + if (customVoiceSamplesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomVoiceSamplesIsMutable(); + customVoiceSamples_.add(value); + onChanged(); + } else { + customVoiceSamplesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. Configures custom voice samples for voice cloning.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample custom_voice_samples = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCustomVoiceSamples( + int index, com.google.cloud.ces.v1beta.CustomVoiceSample value) { + if (customVoiceSamplesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomVoiceSamplesIsMutable(); + customVoiceSamples_.add(index, value); + onChanged(); + } else { + customVoiceSamplesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Configures custom voice samples for voice cloning.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample custom_voice_samples = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCustomVoiceSamples( + com.google.cloud.ces.v1beta.CustomVoiceSample.Builder builderForValue) { + if (customVoiceSamplesBuilder_ == null) { + ensureCustomVoiceSamplesIsMutable(); + customVoiceSamples_.add(builderForValue.build()); + onChanged(); + } else { + customVoiceSamplesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Configures custom voice samples for voice cloning.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample custom_voice_samples = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCustomVoiceSamples( + int index, com.google.cloud.ces.v1beta.CustomVoiceSample.Builder builderForValue) { + if (customVoiceSamplesBuilder_ == null) { + ensureCustomVoiceSamplesIsMutable(); + customVoiceSamples_.add(index, builderForValue.build()); + onChanged(); + } else { + customVoiceSamplesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Configures custom voice samples for voice cloning.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample custom_voice_samples = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllCustomVoiceSamples( + java.lang.Iterable values) { + if (customVoiceSamplesBuilder_ == null) { + ensureCustomVoiceSamplesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, customVoiceSamples_); + onChanged(); + } else { + customVoiceSamplesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. Configures custom voice samples for voice cloning.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample custom_voice_samples = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCustomVoiceSamples() { + if (customVoiceSamplesBuilder_ == null) { + customVoiceSamples_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + customVoiceSamplesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Configures custom voice samples for voice cloning.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample custom_voice_samples = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeCustomVoiceSamples(int index) { + if (customVoiceSamplesBuilder_ == null) { + ensureCustomVoiceSamplesIsMutable(); + customVoiceSamples_.remove(index); + onChanged(); + } else { + customVoiceSamplesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. Configures custom voice samples for voice cloning.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample custom_voice_samples = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.CustomVoiceSample.Builder getCustomVoiceSamplesBuilder( + int index) { + return internalGetCustomVoiceSamplesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. Configures custom voice samples for voice cloning.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample custom_voice_samples = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.CustomVoiceSampleOrBuilder getCustomVoiceSamplesOrBuilder( + int index) { + if (customVoiceSamplesBuilder_ == null) { + return customVoiceSamples_.get(index); + } else { + return customVoiceSamplesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. Configures custom voice samples for voice cloning.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample custom_voice_samples = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getCustomVoiceSamplesOrBuilderList() { + if (customVoiceSamplesBuilder_ != null) { + return customVoiceSamplesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(customVoiceSamples_); + } + } + + /** + * + * + *
+     * Optional. Configures custom voice samples for voice cloning.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample custom_voice_samples = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.CustomVoiceSample.Builder addCustomVoiceSamplesBuilder() { + return internalGetCustomVoiceSamplesFieldBuilder() + .addBuilder(com.google.cloud.ces.v1beta.CustomVoiceSample.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Configures custom voice samples for voice cloning.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample custom_voice_samples = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.CustomVoiceSample.Builder addCustomVoiceSamplesBuilder( + int index) { + return internalGetCustomVoiceSamplesFieldBuilder() + .addBuilder(index, com.google.cloud.ces.v1beta.CustomVoiceSample.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Configures custom voice samples for voice cloning.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample custom_voice_samples = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getCustomVoiceSamplesBuilderList() { + return internalGetCustomVoiceSamplesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.CustomVoiceSample, + com.google.cloud.ces.v1beta.CustomVoiceSample.Builder, + com.google.cloud.ces.v1beta.CustomVoiceSampleOrBuilder> + internalGetCustomVoiceSamplesFieldBuilder() { + if (customVoiceSamplesBuilder_ == null) { + customVoiceSamplesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.CustomVoiceSample, + com.google.cloud.ces.v1beta.CustomVoiceSample.Builder, + com.google.cloud.ces.v1beta.CustomVoiceSampleOrBuilder>( + customVoiceSamples_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + customVoiceSamples_ = null; + } + return customVoiceSamplesBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.AudioProcessingConfig) } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AudioProcessingConfigOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AudioProcessingConfigOrBuilder.java index 07262e068887..d3e39f944386 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AudioProcessingConfigOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AudioProcessingConfigOrBuilder.java @@ -284,4 +284,70 @@ com.google.cloud.ces.v1beta.SynthesizeSpeechConfig getSynthesizeSpeechConfigsOrT * */ com.google.cloud.ces.v1beta.AmbientSoundConfigOrBuilder getAmbientSoundConfigOrBuilder(); + + /** + * + * + *
+   * Optional. Configures custom voice samples for voice cloning.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample custom_voice_samples = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getCustomVoiceSamplesList(); + + /** + * + * + *
+   * Optional. Configures custom voice samples for voice cloning.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample custom_voice_samples = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1beta.CustomVoiceSample getCustomVoiceSamples(int index); + + /** + * + * + *
+   * Optional. Configures custom voice samples for voice cloning.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample custom_voice_samples = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getCustomVoiceSamplesCount(); + + /** + * + * + *
+   * Optional. Configures custom voice samples for voice cloning.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample custom_voice_samples = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getCustomVoiceSamplesOrBuilderList(); + + /** + * + * + *
+   * Optional. Configures custom voice samples for voice cloning.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample custom_voice_samples = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1beta.CustomVoiceSampleOrBuilder getCustomVoiceSamplesOrBuilder(int index); } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/BargeInConfig.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/BargeInConfig.java index ce1348264bf0..bf4b90938d46 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/BargeInConfig.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/BargeInConfig.java @@ -87,7 +87,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * @deprecated google.cloud.ces.v1beta.BargeInConfig.disable_barge_in is deprecated. See - * google/cloud/ces/v1beta/app.proto;l=361 + * google/cloud/ces/v1beta/app.proto;l=458 * @return The disableBargeIn. */ @java.lang.Override @@ -465,7 +465,7 @@ public Builder mergeFrom( * * * @deprecated google.cloud.ces.v1beta.BargeInConfig.disable_barge_in is deprecated. See - * google/cloud/ces/v1beta/app.proto;l=361 + * google/cloud/ces/v1beta/app.proto;l=458 * @return The disableBargeIn. */ @java.lang.Override @@ -490,7 +490,7 @@ public boolean getDisableBargeIn() { * * * @deprecated google.cloud.ces.v1beta.BargeInConfig.disable_barge_in is deprecated. See - * google/cloud/ces/v1beta/app.proto;l=361 + * google/cloud/ces/v1beta/app.proto;l=458 * @param value The disableBargeIn to set. * @return This builder for chaining. */ @@ -519,7 +519,7 @@ public Builder setDisableBargeIn(boolean value) { * * * @deprecated google.cloud.ces.v1beta.BargeInConfig.disable_barge_in is deprecated. See - * google/cloud/ces/v1beta/app.proto;l=361 + * google/cloud/ces/v1beta/app.proto;l=458 * @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/BargeInConfigOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/BargeInConfigOrBuilder.java index 4bf7d5d18380..9cd6a0e740ee 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 @@ -42,7 +42,7 @@ public interface BargeInConfigOrBuilder * * * @deprecated google.cloud.ces.v1beta.BargeInConfig.disable_barge_in is deprecated. See - * google/cloud/ces/v1beta/app.proto;l=361 + * google/cloud/ces/v1beta/app.proto;l=458 * @return The disableBargeIn. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CancelAssistantTurnRequest.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CancelAssistantTurnRequest.java new file mode 100644 index 000000000000..fed9eb7b1afc --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CancelAssistantTurnRequest.java @@ -0,0 +1,793 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language 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/session_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +/** + * + * + *
+ * Request to cancel an assistant session's in-flight turn.
+ * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.CancelAssistantTurnRequest} + */ +@com.google.protobuf.Generated +public final class CancelAssistantTurnRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.CancelAssistantTurnRequest) + CancelAssistantTurnRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "CancelAssistantTurnRequest"); + } + + // Use CancelAssistantTurnRequest.newBuilder() to construct. + private CancelAssistantTurnRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CancelAssistantTurnRequest() { + name_ = ""; + turnId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_CancelAssistantTurnRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_CancelAssistantTurnRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.CancelAssistantTurnRequest.class, + com.google.cloud.ces.v1beta.CancelAssistantTurnRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The assistant session whose in-flight turn to cancel.
+   * 
+ * + * 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 assistant session whose in-flight turn to cancel.
+   * 
+ * + * 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 TURN_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object turnId_ = ""; + + /** + * + * + *
+   * Optional. The turn to cancel; empty cancels whichever turn is running. A
+   * cancel naming a turn that is no longer the running one is a no-op.
+   * 
+ * + * string turn_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The turnId. + */ + @java.lang.Override + public java.lang.String getTurnId() { + java.lang.Object ref = turnId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + turnId_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The turn to cancel; empty cancels whichever turn is running. A
+   * cancel naming a turn that is no longer the running one is a no-op.
+   * 
+ * + * string turn_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for turnId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTurnIdBytes() { + java.lang.Object ref = turnId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + turnId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(turnId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, turnId_); + } + 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(turnId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, turnId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.CancelAssistantTurnRequest)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.CancelAssistantTurnRequest other = + (com.google.cloud.ces.v1beta.CancelAssistantTurnRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getTurnId().equals(other.getTurnId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + 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) + TURN_ID_FIELD_NUMBER; + hash = (53 * hash) + getTurnId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.CancelAssistantTurnRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.CancelAssistantTurnRequest parseFrom( + 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.CancelAssistantTurnRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.CancelAssistantTurnRequest parseFrom( + com.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.CancelAssistantTurnRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.CancelAssistantTurnRequest 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.CancelAssistantTurnRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.CancelAssistantTurnRequest parseFrom( + java.io.InputStream 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.CancelAssistantTurnRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.CancelAssistantTurnRequest parseDelimitedFrom( + java.io.InputStream 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.CancelAssistantTurnRequest 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.CancelAssistantTurnRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, 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.CancelAssistantTurnRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 to cancel an assistant session's in-flight turn.
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.CancelAssistantTurnRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.CancelAssistantTurnRequest) + com.google.cloud.ces.v1beta.CancelAssistantTurnRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_CancelAssistantTurnRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_CancelAssistantTurnRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.CancelAssistantTurnRequest.class, + com.google.cloud.ces.v1beta.CancelAssistantTurnRequest.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.CancelAssistantTurnRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + turnId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_CancelAssistantTurnRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.CancelAssistantTurnRequest getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.CancelAssistantTurnRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.CancelAssistantTurnRequest build() { + com.google.cloud.ces.v1beta.CancelAssistantTurnRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.CancelAssistantTurnRequest buildPartial() { + com.google.cloud.ces.v1beta.CancelAssistantTurnRequest result = + new com.google.cloud.ces.v1beta.CancelAssistantTurnRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1beta.CancelAssistantTurnRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.turnId_ = turnId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.CancelAssistantTurnRequest) { + return mergeFrom((com.google.cloud.ces.v1beta.CancelAssistantTurnRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.CancelAssistantTurnRequest other) { + if (other == com.google.cloud.ces.v1beta.CancelAssistantTurnRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getTurnId().isEmpty()) { + turnId_ = other.turnId_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + turnId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The assistant session whose in-flight turn to cancel.
+     * 
+ * + * 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 assistant session whose in-flight turn to cancel.
+     * 
+ * + * 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 assistant session whose in-flight turn to cancel.
+     * 
+ * + * 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 assistant session whose in-flight turn to cancel.
+     * 
+ * + * 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 assistant session whose in-flight turn to cancel.
+     * 
+ * + * 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 turnId_ = ""; + + /** + * + * + *
+     * Optional. The turn to cancel; empty cancels whichever turn is running. A
+     * cancel naming a turn that is no longer the running one is a no-op.
+     * 
+ * + * string turn_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The turnId. + */ + public java.lang.String getTurnId() { + java.lang.Object ref = turnId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + turnId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The turn to cancel; empty cancels whichever turn is running. A
+     * cancel naming a turn that is no longer the running one is a no-op.
+     * 
+ * + * string turn_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for turnId. + */ + public com.google.protobuf.ByteString getTurnIdBytes() { + java.lang.Object ref = turnId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + turnId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The turn to cancel; empty cancels whichever turn is running. A
+     * cancel naming a turn that is no longer the running one is a no-op.
+     * 
+ * + * string turn_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The turnId to set. + * @return This builder for chaining. + */ + public Builder setTurnId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + turnId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The turn to cancel; empty cancels whichever turn is running. A
+     * cancel naming a turn that is no longer the running one is a no-op.
+     * 
+ * + * string turn_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearTurnId() { + turnId_ = getDefaultInstance().getTurnId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The turn to cancel; empty cancels whichever turn is running. A
+     * cancel naming a turn that is no longer the running one is a no-op.
+     * 
+ * + * string turn_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for turnId to set. + * @return This builder for chaining. + */ + public Builder setTurnIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + turnId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.CancelAssistantTurnRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.CancelAssistantTurnRequest) + private static final com.google.cloud.ces.v1beta.CancelAssistantTurnRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.CancelAssistantTurnRequest(); + } + + public static com.google.cloud.ces.v1beta.CancelAssistantTurnRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CancelAssistantTurnRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.CancelAssistantTurnRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CancelAssistantTurnRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CancelAssistantTurnRequestOrBuilder.java new file mode 100644 index 000000000000..6a4d78c44754 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CancelAssistantTurnRequestOrBuilder.java @@ -0,0 +1,82 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/session_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public interface CancelAssistantTurnRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.CancelAssistantTurnRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The assistant session whose in-flight turn to cancel.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The assistant session whose in-flight turn to cancel.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. The turn to cancel; empty cancels whichever turn is running. A
+   * cancel naming a turn that is no longer the running one is a no-op.
+   * 
+ * + * string turn_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The turnId. + */ + java.lang.String getTurnId(); + + /** + * + * + *
+   * Optional. The turn to cancel; empty cancels whichever turn is running. A
+   * cancel naming a turn that is no longer the running one is a no-op.
+   * 
+ * + * string turn_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for turnId. + */ + com.google.protobuf.ByteString getTurnIdBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CancelAssistantTurnResponse.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CancelAssistantTurnResponse.java new file mode 100644 index 000000000000..92f535660438 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CancelAssistantTurnResponse.java @@ -0,0 +1,508 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language 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/session_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +/** + * + * + *
+ * Response for CancelAssistantTurn.
+ * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.CancelAssistantTurnResponse} + */ +@com.google.protobuf.Generated +public final class CancelAssistantTurnResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.CancelAssistantTurnResponse) + CancelAssistantTurnResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "CancelAssistantTurnResponse"); + } + + // Use CancelAssistantTurnResponse.newBuilder() to construct. + private CancelAssistantTurnResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CancelAssistantTurnResponse() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_CancelAssistantTurnResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_CancelAssistantTurnResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.CancelAssistantTurnResponse.class, + com.google.cloud.ces.v1beta.CancelAssistantTurnResponse.Builder.class); + } + + public static final int CANCELLED_FIELD_NUMBER = 1; + private boolean cancelled_ = false; + + /** + * + * + *
+   * Whether an in-flight turn was found and asked to stop (directly on this
+   * task, or through an epoch preemption for a turn hosted elsewhere).
+   * 
+ * + * bool cancelled = 1; + * + * @return The cancelled. + */ + @java.lang.Override + public boolean getCancelled() { + return cancelled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (cancelled_ != false) { + output.writeBool(1, cancelled_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (cancelled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, cancelled_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.CancelAssistantTurnResponse)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.CancelAssistantTurnResponse other = + (com.google.cloud.ces.v1beta.CancelAssistantTurnResponse) obj; + + if (getCancelled() != other.getCancelled()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CANCELLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCancelled()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.CancelAssistantTurnResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.CancelAssistantTurnResponse parseFrom( + 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.CancelAssistantTurnResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.CancelAssistantTurnResponse parseFrom( + com.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.CancelAssistantTurnResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.CancelAssistantTurnResponse 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.CancelAssistantTurnResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.CancelAssistantTurnResponse parseFrom( + java.io.InputStream 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.CancelAssistantTurnResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.CancelAssistantTurnResponse parseDelimitedFrom( + java.io.InputStream 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.CancelAssistantTurnResponse 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.CancelAssistantTurnResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, 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.CancelAssistantTurnResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response for CancelAssistantTurn.
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.CancelAssistantTurnResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.CancelAssistantTurnResponse) + com.google.cloud.ces.v1beta.CancelAssistantTurnResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_CancelAssistantTurnResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_CancelAssistantTurnResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.CancelAssistantTurnResponse.class, + com.google.cloud.ces.v1beta.CancelAssistantTurnResponse.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.CancelAssistantTurnResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + cancelled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_CancelAssistantTurnResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.CancelAssistantTurnResponse getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.CancelAssistantTurnResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.CancelAssistantTurnResponse build() { + com.google.cloud.ces.v1beta.CancelAssistantTurnResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.CancelAssistantTurnResponse buildPartial() { + com.google.cloud.ces.v1beta.CancelAssistantTurnResponse result = + new com.google.cloud.ces.v1beta.CancelAssistantTurnResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1beta.CancelAssistantTurnResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.cancelled_ = cancelled_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.CancelAssistantTurnResponse) { + return mergeFrom((com.google.cloud.ces.v1beta.CancelAssistantTurnResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.CancelAssistantTurnResponse other) { + if (other == com.google.cloud.ces.v1beta.CancelAssistantTurnResponse.getDefaultInstance()) + return this; + if (other.getCancelled() != false) { + setCancelled(other.getCancelled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + cancelled_ = 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 cancelled_; + + /** + * + * + *
+     * Whether an in-flight turn was found and asked to stop (directly on this
+     * task, or through an epoch preemption for a turn hosted elsewhere).
+     * 
+ * + * bool cancelled = 1; + * + * @return The cancelled. + */ + @java.lang.Override + public boolean getCancelled() { + return cancelled_; + } + + /** + * + * + *
+     * Whether an in-flight turn was found and asked to stop (directly on this
+     * task, or through an epoch preemption for a turn hosted elsewhere).
+     * 
+ * + * bool cancelled = 1; + * + * @param value The cancelled to set. + * @return This builder for chaining. + */ + public Builder setCancelled(boolean value) { + + cancelled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Whether an in-flight turn was found and asked to stop (directly on this
+     * task, or through an epoch preemption for a turn hosted elsewhere).
+     * 
+ * + * bool cancelled = 1; + * + * @return This builder for chaining. + */ + public Builder clearCancelled() { + bitField0_ = (bitField0_ & ~0x00000001); + cancelled_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.CancelAssistantTurnResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.CancelAssistantTurnResponse) + private static final com.google.cloud.ces.v1beta.CancelAssistantTurnResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.CancelAssistantTurnResponse(); + } + + public static com.google.cloud.ces.v1beta.CancelAssistantTurnResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CancelAssistantTurnResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.CancelAssistantTurnResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CancelAssistantTurnResponseOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CancelAssistantTurnResponseOrBuilder.java new file mode 100644 index 000000000000..77a73aa81680 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CancelAssistantTurnResponseOrBuilder.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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/session_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public interface CancelAssistantTurnResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.CancelAssistantTurnResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether an in-flight turn was found and asked to stop (directly on this
+   * task, or through an epoch preemption for a turn hosted elsewhere).
+   * 
+ * + * bool cancelled = 1; + * + * @return The cancelled. + */ + boolean getCancelled(); +} 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 583bb8ebbc06..06c3c72e5ed2 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,10 @@ 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_AgentRegistryDeployment_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_AgentRegistryDeployment_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_ces_v1beta_WhatsAppCredentials_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -97,7 +101,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\"\303\005\n\n" + + "\007EXPIRED\020\004\"\213\010\n\n" + "Deployment\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\010\022\032\n" + "\014display_name\030\010 \001(\tB\004\342A\001\002\022;\n" @@ -115,22 +119,38 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024whatsapp_credentials\030\n" + " \001(\0132,.google.cloud.ces.v1beta.WhatsAppCredentialsB\005\342A\002\001\004\022S\n" + "\025instagram_credentials\030\013 \001(\013" - + "2-.google.cloud.ces.v1beta.InstagramCredentialsB\005\342A\002\001\004:\211\001\352A\205\001\n" - + "\035ces.googleapis.com/Deployment\022Kprojects/{project}/locatio" - + "ns/{location}/apps/{app}/deployments/{deployment}*\013deployments2\n" - + "deployment\"\276\001\n" + + "2-.google.cloud.ces.v1beta.InstagramCredentialsB\005\342A\002\001\004\022D\n" + + "\016model_settings\030\014 \001(\0132&" + + ".google.cloud.ces.v1beta.ModelSettingsB\004\342A\001\001\022D\n" + + "\010modality\030\r" + + " \001(\0162,.google.cloud.ces.v1beta.Deployment.ModalityB\004\342A\001\001\022Y\n" + + "\031agent_registry_deployment\030\016 \001(\01320.google.c" + + "loud.ces.v1beta.AgentRegistryDeploymentB\004\342A\001\001\"_\n" + + "\010Modality\022\030\n" + + "\024MODALITY_UNSPECIFIED\020\000\022\021\n\r" + + "MODALITY_TEXT\020\001\022\022\n" + + "\016MODALITY_VOICE\020\002\022\022\n" + + "\016MODALITY_VIDEO\020\003:\211\001\352A\205\001\n" + + "\035ces.googleapis.com/Deployment\022Kprojects/{project}" + + "/locations/{location}/apps/{app}/deployments/{deployment}*\013deployments2\n" + + "deployment\"n\n" + + "\027AgentRegistryDeployment\022S\n" + + "\033agent_registry_service_name\030\001 \001(\tB.\342A\002\001\003\372A&\n" + + "$agentregistry.googleapis.com/Service\"\276\001\n" + "\023WhatsAppCredentials\022\027\n" + "\tauth_code\030\001 \001(\tB\004\342A\001\002\022\021\n" + "\003pin\030\002 \001(\tB\004\342A\001\002\022\032\n" + "\014phone_number\030\003 \001(\tB\004\342A\001\002\022!\n" + "\023business_account_id\030\004 \001(\tB\004\342A\001\002\022\025\n" + "\007waba_id\030\005 \001(\tB\004\342A\001\002\022%\n" - + "\027conversation_profile_id\030\006 \001(\tB\004\342A\001\002\"V\n" + + "\027conversation_profile_id\030\006 \001(\tB\004\342A\001\001\"V\n" + "\024InstagramCredentials\022\027\n" + "\tauth_code\030\001 \001(\tB\004\342A\001\002\022%\n" - + "\027conversation_profile_id\030\002 \001(\tB\004\342A\001\002Bc\n" - + "\033com.google.cloud.ces.v1betaB\023ChannelProfi" - + "leProtoP\001Z-cloud.google.com/go/ces/apiv1beta/cespb;cespbb\006proto3" + + "\027conversation_profile_id\030\002 \001(\tB\004\342A\001\001B\310\001\n" + + "\033com.google.cloud.ces.v1betaB\023ChannelProf" + + "ileProtoP\001Z-cloud.google.com/go/ces/apiv1beta/cespb;cespb\352Ab\n" + + "$agentregistry.googleapis.com/Service\022:projects/{project}/l" + + "ocations/{location}/services/{service}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -182,9 +202,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExperimentConfig", "WhatsappCredentials", "InstagramCredentials", + "ModelSettings", + "Modality", + "AgentRegistryDeployment", }); - internal_static_google_cloud_ces_v1beta_WhatsAppCredentials_descriptor = + internal_static_google_cloud_ces_v1beta_AgentRegistryDeployment_descriptor = getDescriptor().getMessageType(2); + internal_static_google_cloud_ces_v1beta_AgentRegistryDeployment_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_AgentRegistryDeployment_descriptor, + new java.lang.String[] { + "AgentRegistryServiceName", + }); + internal_static_google_cloud_ces_v1beta_WhatsAppCredentials_descriptor = + getDescriptor().getMessageType(3); internal_static_google_cloud_ces_v1beta_WhatsAppCredentials_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_WhatsAppCredentials_descriptor, @@ -197,7 +228,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ConversationProfileId", }); internal_static_google_cloud_ces_v1beta_InstagramCredentials_descriptor = - getDescriptor().getMessageType(3); + getDescriptor().getMessageType(4); internal_static_google_cloud_ces_v1beta_InstagramCredentials_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_InstagramCredentials_descriptor, @@ -213,6 +244,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { 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.resourceDefinition); registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ChatAiAssistantRequest.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ChatAiAssistantRequest.java new file mode 100644 index 000000000000..0886dfe4a287 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ChatAiAssistantRequest.java @@ -0,0 +1,1552 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language 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/assistant_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +/** + * + * + *
+ * Request message for
+ * [AssistantService.ChatAiAssistant][google.cloud.ces.v1beta.AssistantService.ChatAiAssistant].
+ * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.ChatAiAssistantRequest} + */ +@com.google.protobuf.Generated +public final class ChatAiAssistantRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.ChatAiAssistantRequest) + ChatAiAssistantRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ChatAiAssistantRequest"); + } + + // Use ChatAiAssistantRequest.newBuilder() to construct. + private ChatAiAssistantRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ChatAiAssistantRequest() { + app_ = ""; + assistantSession_ = ""; + message_ = ""; + attachedGcsUris_ = com.google.protobuf.LazyStringArrayList.emptyList(); + contextToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_ChatAiAssistantRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_ChatAiAssistantRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.ChatAiAssistantRequest.class, + com.google.cloud.ces.v1beta.ChatAiAssistantRequest.Builder.class); + } + + public static final int APP_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object app_ = ""; + + /** + * + * + *
+   * Required. The app to run assistant for.
+   * Format:
+   * `projects/{project}/locations/{location}/apps/{app}`
+   * 
+ * + * + * string app = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The app. + */ + @java.lang.Override + public java.lang.String getApp() { + java.lang.Object ref = app_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + app_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The app to run assistant for.
+   * Format:
+   * `projects/{project}/locations/{location}/apps/{app}`
+   * 
+ * + * + * string app = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for app. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAppBytes() { + java.lang.Object ref = app_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + app_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ASSISTANT_SESSION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object assistantSession_ = ""; + + /** + * + * + *
+   * Required. The assistant session to be used to run the assistant.
+   * Format:
+   * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}`
+   * 
+ * + * + * string assistant_session = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The assistantSession. + */ + @java.lang.Override + public java.lang.String getAssistantSession() { + java.lang.Object ref = assistantSession_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + assistantSession_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The assistant session to be used to run the assistant.
+   * Format:
+   * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}`
+   * 
+ * + * + * string assistant_session = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for assistantSession. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAssistantSessionBytes() { + java.lang.Object ref = assistantSession_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + assistantSession_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MESSAGE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object message_ = ""; + + /** + * + * + *
+   * Required. The message to send to the assistant agent.
+   * 
+ * + * string message = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The message. + */ + @java.lang.Override + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The message to send to the assistant agent.
+   * 
+ * + * string message = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for message. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ATTACHED_GCS_URIS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList attachedGcsUris_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Optional. Cloud Storage URIs for files uploaded by the user during this
+   * turn. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
+   * 
+ * + * repeated string attached_gcs_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the attachedGcsUris. + */ + public com.google.protobuf.ProtocolStringList getAttachedGcsUrisList() { + return attachedGcsUris_; + } + + /** + * + * + *
+   * Optional. Cloud Storage URIs for files uploaded by the user during this
+   * turn. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
+   * 
+ * + * repeated string attached_gcs_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of attachedGcsUris. + */ + public int getAttachedGcsUrisCount() { + return attachedGcsUris_.size(); + } + + /** + * + * + *
+   * Optional. Cloud Storage URIs for files uploaded by the user during this
+   * turn. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
+   * 
+ * + * repeated string attached_gcs_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The attachedGcsUris at the given index. + */ + public java.lang.String getAttachedGcsUris(int index) { + return attachedGcsUris_.get(index); + } + + /** + * + * + *
+   * Optional. Cloud Storage URIs for files uploaded by the user during this
+   * turn. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
+   * 
+ * + * repeated string attached_gcs_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the attachedGcsUris at the given index. + */ + public com.google.protobuf.ByteString getAttachedGcsUrisBytes(int index) { + return attachedGcsUris_.getByteString(index); + } + + public static final int CONTEXT_TOKEN_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object contextToken_ = ""; + + /** + * + * + *
+   * Optional. Opaque onboarding context token returned by
+   * [SessionService.GenerateOnboardingSuggestions][google.cloud.ces.v1beta.SessionService.GenerateOnboardingSuggestions].
+   * When set and still fresh, the server reuses the onboarding snapshot
+   * computed for the zero state instead of recomputing it for the first
+   * conversation turn.
+   * 
+ * + * string context_token = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The contextToken. + */ + @java.lang.Override + public java.lang.String getContextToken() { + java.lang.Object ref = contextToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + contextToken_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Opaque onboarding context token returned by
+   * [SessionService.GenerateOnboardingSuggestions][google.cloud.ces.v1beta.SessionService.GenerateOnboardingSuggestions].
+   * When set and still fresh, the server reuses the onboarding snapshot
+   * computed for the zero state instead of recomputing it for the first
+   * conversation turn.
+   * 
+ * + * string context_token = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for contextToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getContextTokenBytes() { + java.lang.Object ref = contextToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + contextToken_ = 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(app_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, app_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(assistantSession_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, assistantSession_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(message_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, message_); + } + for (int i = 0; i < attachedGcsUris_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, attachedGcsUris_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(contextToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, contextToken_); + } + 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(app_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, app_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(assistantSession_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, assistantSession_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(message_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, message_); + } + { + int dataSize = 0; + for (int i = 0; i < attachedGcsUris_.size(); i++) { + dataSize += computeStringSizeNoTag(attachedGcsUris_.getRaw(i)); + } + size += dataSize; + size += 1 * getAttachedGcsUrisList().size(); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(contextToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, contextToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.ChatAiAssistantRequest)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.ChatAiAssistantRequest other = + (com.google.cloud.ces.v1beta.ChatAiAssistantRequest) obj; + + if (!getApp().equals(other.getApp())) return false; + if (!getAssistantSession().equals(other.getAssistantSession())) return false; + if (!getMessage().equals(other.getMessage())) return false; + if (!getAttachedGcsUrisList().equals(other.getAttachedGcsUrisList())) return false; + if (!getContextToken().equals(other.getContextToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + APP_FIELD_NUMBER; + hash = (53 * hash) + getApp().hashCode(); + hash = (37 * hash) + ASSISTANT_SESSION_FIELD_NUMBER; + hash = (53 * hash) + getAssistantSession().hashCode(); + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + if (getAttachedGcsUrisCount() > 0) { + hash = (37 * hash) + ATTACHED_GCS_URIS_FIELD_NUMBER; + hash = (53 * hash) + getAttachedGcsUrisList().hashCode(); + } + hash = (37 * hash) + CONTEXT_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getContextToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.ChatAiAssistantRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ChatAiAssistantRequest parseFrom( + 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.ChatAiAssistantRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ChatAiAssistantRequest parseFrom( + com.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.ChatAiAssistantRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ChatAiAssistantRequest 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.ChatAiAssistantRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ChatAiAssistantRequest parseFrom( + java.io.InputStream 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.ChatAiAssistantRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ChatAiAssistantRequest parseDelimitedFrom( + java.io.InputStream 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.ChatAiAssistantRequest 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.ChatAiAssistantRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, 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.ChatAiAssistantRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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
+   * [AssistantService.ChatAiAssistant][google.cloud.ces.v1beta.AssistantService.ChatAiAssistant].
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.ChatAiAssistantRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.ChatAiAssistantRequest) + com.google.cloud.ces.v1beta.ChatAiAssistantRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_ChatAiAssistantRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_ChatAiAssistantRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.ChatAiAssistantRequest.class, + com.google.cloud.ces.v1beta.ChatAiAssistantRequest.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.ChatAiAssistantRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + app_ = ""; + assistantSession_ = ""; + message_ = ""; + attachedGcsUris_ = com.google.protobuf.LazyStringArrayList.emptyList(); + contextToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_ChatAiAssistantRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ChatAiAssistantRequest getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.ChatAiAssistantRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ChatAiAssistantRequest build() { + com.google.cloud.ces.v1beta.ChatAiAssistantRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ChatAiAssistantRequest buildPartial() { + com.google.cloud.ces.v1beta.ChatAiAssistantRequest result = + new com.google.cloud.ces.v1beta.ChatAiAssistantRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1beta.ChatAiAssistantRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.app_ = app_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.assistantSession_ = assistantSession_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.message_ = message_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + attachedGcsUris_.makeImmutable(); + result.attachedGcsUris_ = attachedGcsUris_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.contextToken_ = contextToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.ChatAiAssistantRequest) { + return mergeFrom((com.google.cloud.ces.v1beta.ChatAiAssistantRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.ChatAiAssistantRequest other) { + if (other == com.google.cloud.ces.v1beta.ChatAiAssistantRequest.getDefaultInstance()) + return this; + if (!other.getApp().isEmpty()) { + app_ = other.app_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAssistantSession().isEmpty()) { + assistantSession_ = other.assistantSession_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.attachedGcsUris_.isEmpty()) { + if (attachedGcsUris_.isEmpty()) { + attachedGcsUris_ = other.attachedGcsUris_; + bitField0_ |= 0x00000008; + } else { + ensureAttachedGcsUrisIsMutable(); + attachedGcsUris_.addAll(other.attachedGcsUris_); + } + onChanged(); + } + if (!other.getContextToken().isEmpty()) { + contextToken_ = other.contextToken_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + app_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + assistantSession_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + message_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAttachedGcsUrisIsMutable(); + attachedGcsUris_.add(s); + break; + } // case 42 + case 50: + { + contextToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object app_ = ""; + + /** + * + * + *
+     * Required. The app to run assistant for.
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}`
+     * 
+ * + * + * string app = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The app. + */ + public java.lang.String getApp() { + java.lang.Object ref = app_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + app_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The app to run assistant for.
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}`
+     * 
+ * + * + * string app = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for app. + */ + public com.google.protobuf.ByteString getAppBytes() { + java.lang.Object ref = app_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + app_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The app to run assistant for.
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}`
+     * 
+ * + * + * string app = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The app to set. + * @return This builder for chaining. + */ + public Builder setApp(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + app_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The app to run assistant for.
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}`
+     * 
+ * + * + * string app = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearApp() { + app_ = getDefaultInstance().getApp(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The app to run assistant for.
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}`
+     * 
+ * + * + * string app = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for app to set. + * @return This builder for chaining. + */ + public Builder setAppBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + app_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object assistantSession_ = ""; + + /** + * + * + *
+     * Required. The assistant session to be used to run the assistant.
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}`
+     * 
+ * + * + * string assistant_session = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The assistantSession. + */ + public java.lang.String getAssistantSession() { + java.lang.Object ref = assistantSession_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + assistantSession_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The assistant session to be used to run the assistant.
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}`
+     * 
+ * + * + * string assistant_session = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for assistantSession. + */ + public com.google.protobuf.ByteString getAssistantSessionBytes() { + java.lang.Object ref = assistantSession_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + assistantSession_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The assistant session to be used to run the assistant.
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}`
+     * 
+ * + * + * string assistant_session = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The assistantSession to set. + * @return This builder for chaining. + */ + public Builder setAssistantSession(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + assistantSession_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The assistant session to be used to run the assistant.
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}`
+     * 
+ * + * + * string assistant_session = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearAssistantSession() { + assistantSession_ = getDefaultInstance().getAssistantSession(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The assistant session to be used to run the assistant.
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}`
+     * 
+ * + * + * string assistant_session = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for assistantSession to set. + * @return This builder for chaining. + */ + public Builder setAssistantSessionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + assistantSession_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object message_ = ""; + + /** + * + * + *
+     * Required. The message to send to the assistant agent.
+     * 
+ * + * string message = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The message. + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The message to send to the assistant agent.
+     * 
+ * + * string message = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for message. + */ + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The message to send to the assistant agent.
+     * 
+ * + * string message = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The message to set. + * @return This builder for chaining. + */ + public Builder setMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + message_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The message to send to the assistant agent.
+     * 
+ * + * string message = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearMessage() { + message_ = getDefaultInstance().getMessage(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The message to send to the assistant agent.
+     * 
+ * + * string message = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for message to set. + * @return This builder for chaining. + */ + public Builder setMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + message_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList attachedGcsUris_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureAttachedGcsUrisIsMutable() { + if (!attachedGcsUris_.isModifiable()) { + attachedGcsUris_ = new com.google.protobuf.LazyStringArrayList(attachedGcsUris_); + } + bitField0_ |= 0x00000008; + } + + /** + * + * + *
+     * Optional. Cloud Storage URIs for files uploaded by the user during this
+     * turn. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
+     * 
+ * + * repeated string attached_gcs_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the attachedGcsUris. + */ + public com.google.protobuf.ProtocolStringList getAttachedGcsUrisList() { + attachedGcsUris_.makeImmutable(); + return attachedGcsUris_; + } + + /** + * + * + *
+     * Optional. Cloud Storage URIs for files uploaded by the user during this
+     * turn. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
+     * 
+ * + * repeated string attached_gcs_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of attachedGcsUris. + */ + public int getAttachedGcsUrisCount() { + return attachedGcsUris_.size(); + } + + /** + * + * + *
+     * Optional. Cloud Storage URIs for files uploaded by the user during this
+     * turn. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
+     * 
+ * + * repeated string attached_gcs_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The attachedGcsUris at the given index. + */ + public java.lang.String getAttachedGcsUris(int index) { + return attachedGcsUris_.get(index); + } + + /** + * + * + *
+     * Optional. Cloud Storage URIs for files uploaded by the user during this
+     * turn. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
+     * 
+ * + * repeated string attached_gcs_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the attachedGcsUris at the given index. + */ + public com.google.protobuf.ByteString getAttachedGcsUrisBytes(int index) { + return attachedGcsUris_.getByteString(index); + } + + /** + * + * + *
+     * Optional. Cloud Storage URIs for files uploaded by the user during this
+     * turn. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
+     * 
+ * + * repeated string attached_gcs_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The attachedGcsUris to set. + * @return This builder for chaining. + */ + public Builder setAttachedGcsUris(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttachedGcsUrisIsMutable(); + attachedGcsUris_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Cloud Storage URIs for files uploaded by the user during this
+     * turn. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
+     * 
+ * + * repeated string attached_gcs_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The attachedGcsUris to add. + * @return This builder for chaining. + */ + public Builder addAttachedGcsUris(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttachedGcsUrisIsMutable(); + attachedGcsUris_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Cloud Storage URIs for files uploaded by the user during this
+     * turn. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
+     * 
+ * + * repeated string attached_gcs_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The attachedGcsUris to add. + * @return This builder for chaining. + */ + public Builder addAllAttachedGcsUris(java.lang.Iterable values) { + ensureAttachedGcsUrisIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, attachedGcsUris_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Cloud Storage URIs for files uploaded by the user during this
+     * turn. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
+     * 
+ * + * repeated string attached_gcs_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAttachedGcsUris() { + attachedGcsUris_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Cloud Storage URIs for files uploaded by the user during this
+     * turn. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
+     * 
+ * + * repeated string attached_gcs_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the attachedGcsUris to add. + * @return This builder for chaining. + */ + public Builder addAttachedGcsUrisBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAttachedGcsUrisIsMutable(); + attachedGcsUris_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object contextToken_ = ""; + + /** + * + * + *
+     * Optional. Opaque onboarding context token returned by
+     * [SessionService.GenerateOnboardingSuggestions][google.cloud.ces.v1beta.SessionService.GenerateOnboardingSuggestions].
+     * When set and still fresh, the server reuses the onboarding snapshot
+     * computed for the zero state instead of recomputing it for the first
+     * conversation turn.
+     * 
+ * + * string context_token = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The contextToken. + */ + public java.lang.String getContextToken() { + java.lang.Object ref = contextToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + contextToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Opaque onboarding context token returned by
+     * [SessionService.GenerateOnboardingSuggestions][google.cloud.ces.v1beta.SessionService.GenerateOnboardingSuggestions].
+     * When set and still fresh, the server reuses the onboarding snapshot
+     * computed for the zero state instead of recomputing it for the first
+     * conversation turn.
+     * 
+ * + * string context_token = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for contextToken. + */ + public com.google.protobuf.ByteString getContextTokenBytes() { + java.lang.Object ref = contextToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + contextToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Opaque onboarding context token returned by
+     * [SessionService.GenerateOnboardingSuggestions][google.cloud.ces.v1beta.SessionService.GenerateOnboardingSuggestions].
+     * When set and still fresh, the server reuses the onboarding snapshot
+     * computed for the zero state instead of recomputing it for the first
+     * conversation turn.
+     * 
+ * + * string context_token = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The contextToken to set. + * @return This builder for chaining. + */ + public Builder setContextToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + contextToken_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Opaque onboarding context token returned by
+     * [SessionService.GenerateOnboardingSuggestions][google.cloud.ces.v1beta.SessionService.GenerateOnboardingSuggestions].
+     * When set and still fresh, the server reuses the onboarding snapshot
+     * computed for the zero state instead of recomputing it for the first
+     * conversation turn.
+     * 
+ * + * string context_token = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearContextToken() { + contextToken_ = getDefaultInstance().getContextToken(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Opaque onboarding context token returned by
+     * [SessionService.GenerateOnboardingSuggestions][google.cloud.ces.v1beta.SessionService.GenerateOnboardingSuggestions].
+     * When set and still fresh, the server reuses the onboarding snapshot
+     * computed for the zero state instead of recomputing it for the first
+     * conversation turn.
+     * 
+ * + * string context_token = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for contextToken to set. + * @return This builder for chaining. + */ + public Builder setContextTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + contextToken_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.ChatAiAssistantRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.ChatAiAssistantRequest) + private static final com.google.cloud.ces.v1beta.ChatAiAssistantRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.ChatAiAssistantRequest(); + } + + public static com.google.cloud.ces.v1beta.ChatAiAssistantRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChatAiAssistantRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.ChatAiAssistantRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ChatAiAssistantRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ChatAiAssistantRequestOrBuilder.java new file mode 100644 index 000000000000..0ab865cc1d90 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ChatAiAssistantRequestOrBuilder.java @@ -0,0 +1,214 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/assistant_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public interface ChatAiAssistantRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.ChatAiAssistantRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The app to run assistant for.
+   * Format:
+   * `projects/{project}/locations/{location}/apps/{app}`
+   * 
+ * + * + * string app = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The app. + */ + java.lang.String getApp(); + + /** + * + * + *
+   * Required. The app to run assistant for.
+   * Format:
+   * `projects/{project}/locations/{location}/apps/{app}`
+   * 
+ * + * + * string app = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for app. + */ + com.google.protobuf.ByteString getAppBytes(); + + /** + * + * + *
+   * Required. The assistant session to be used to run the assistant.
+   * Format:
+   * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}`
+   * 
+ * + * + * string assistant_session = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The assistantSession. + */ + java.lang.String getAssistantSession(); + + /** + * + * + *
+   * Required. The assistant session to be used to run the assistant.
+   * Format:
+   * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}`
+   * 
+ * + * + * string assistant_session = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for assistantSession. + */ + com.google.protobuf.ByteString getAssistantSessionBytes(); + + /** + * + * + *
+   * Required. The message to send to the assistant agent.
+   * 
+ * + * string message = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The message. + */ + java.lang.String getMessage(); + + /** + * + * + *
+   * Required. The message to send to the assistant agent.
+   * 
+ * + * string message = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for message. + */ + com.google.protobuf.ByteString getMessageBytes(); + + /** + * + * + *
+   * Optional. Cloud Storage URIs for files uploaded by the user during this
+   * turn. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
+   * 
+ * + * repeated string attached_gcs_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the attachedGcsUris. + */ + java.util.List getAttachedGcsUrisList(); + + /** + * + * + *
+   * Optional. Cloud Storage URIs for files uploaded by the user during this
+   * turn. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
+   * 
+ * + * repeated string attached_gcs_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of attachedGcsUris. + */ + int getAttachedGcsUrisCount(); + + /** + * + * + *
+   * Optional. Cloud Storage URIs for files uploaded by the user during this
+   * turn. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
+   * 
+ * + * repeated string attached_gcs_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The attachedGcsUris at the given index. + */ + java.lang.String getAttachedGcsUris(int index); + + /** + * + * + *
+   * Optional. Cloud Storage URIs for files uploaded by the user during this
+   * turn. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
+   * 
+ * + * repeated string attached_gcs_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the attachedGcsUris at the given index. + */ + com.google.protobuf.ByteString getAttachedGcsUrisBytes(int index); + + /** + * + * + *
+   * Optional. Opaque onboarding context token returned by
+   * [SessionService.GenerateOnboardingSuggestions][google.cloud.ces.v1beta.SessionService.GenerateOnboardingSuggestions].
+   * When set and still fresh, the server reuses the onboarding snapshot
+   * computed for the zero state instead of recomputing it for the first
+   * conversation turn.
+   * 
+ * + * string context_token = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The contextToken. + */ + java.lang.String getContextToken(); + + /** + * + * + *
+   * Optional. Opaque onboarding context token returned by
+   * [SessionService.GenerateOnboardingSuggestions][google.cloud.ces.v1beta.SessionService.GenerateOnboardingSuggestions].
+   * When set and still fresh, the server reuses the onboarding snapshot
+   * computed for the zero state instead of recomputing it for the first
+   * conversation turn.
+   * 
+ * + * string context_token = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for contextToken. + */ + com.google.protobuf.ByteString getContextTokenBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ChatAiAssistantResponse.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ChatAiAssistantResponse.java new file mode 100644 index 000000000000..3c69586958aa --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ChatAiAssistantResponse.java @@ -0,0 +1,2064 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language 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/assistant_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +/** + * + * + *
+ * Response message for
+ * [AssistantService.ChatAiAssistant][google.cloud.ces.v1beta.AssistantService.ChatAiAssistant].
+ * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.ChatAiAssistantResponse} + */ +@com.google.protobuf.Generated +public final class ChatAiAssistantResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.ChatAiAssistantResponse) + ChatAiAssistantResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ChatAiAssistantResponse"); + } + + // Use ChatAiAssistantResponse.newBuilder() to construct. + private ChatAiAssistantResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ChatAiAssistantResponse() { + eventId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_ChatAiAssistantResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_ChatAiAssistantResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.ChatAiAssistantResponse.class, + com.google.cloud.ces.v1beta.ChatAiAssistantResponse.Builder.class); + } + + private int bitField0_; + private int eventCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object event_; + + public enum EventCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + TEXT_CHUNK(3), + STATUS_MESSAGE(4), + SESSION_CHECKPOINT(13), + EVENT_NOT_SET(0); + private final int value; + + private EventCase(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 EventCase valueOf(int value) { + return forNumber(value); + } + + public static EventCase forNumber(int value) { + switch (value) { + case 3: + return TEXT_CHUNK; + case 4: + return STATUS_MESSAGE; + case 13: + return SESSION_CHECKPOINT; + case 0: + return EVENT_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public EventCase getEventCase() { + return EventCase.forNumber(eventCase_); + } + + public static final int TEXT_CHUNK_FIELD_NUMBER = 3; + + /** + * + * + *
+   * Text Token (for streaming Gemini responses word-by-word)
+   * 
+ * + * string text_chunk = 3; + * + * @return Whether the textChunk field is set. + */ + public boolean hasTextChunk() { + return eventCase_ == 3; + } + + /** + * + * + *
+   * Text Token (for streaming Gemini responses word-by-word)
+   * 
+ * + * string text_chunk = 3; + * + * @return The textChunk. + */ + public java.lang.String getTextChunk() { + java.lang.Object ref = ""; + if (eventCase_ == 3) { + ref = event_; + } + if (ref instanceof java.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 (eventCase_ == 3) { + event_ = s; + } + return s; + } + } + + /** + * + * + *
+   * Text Token (for streaming Gemini responses word-by-word)
+   * 
+ * + * string text_chunk = 3; + * + * @return The bytes for textChunk. + */ + public com.google.protobuf.ByteString getTextChunkBytes() { + java.lang.Object ref = ""; + if (eventCase_ == 3) { + ref = event_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (eventCase_ == 3) { + event_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATUS_MESSAGE_FIELD_NUMBER = 4; + + /** + * + * + *
+   * Simple status update
+   * 
+ * + * string status_message = 4; + * + * @return Whether the statusMessage field is set. + */ + public boolean hasStatusMessage() { + return eventCase_ == 4; + } + + /** + * + * + *
+   * Simple status update
+   * 
+ * + * string status_message = 4; + * + * @return The statusMessage. + */ + public java.lang.String getStatusMessage() { + java.lang.Object ref = ""; + if (eventCase_ == 4) { + ref = event_; + } + if (ref instanceof java.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 (eventCase_ == 4) { + event_ = s; + } + return s; + } + } + + /** + * + * + *
+   * Simple status update
+   * 
+ * + * string status_message = 4; + * + * @return The bytes for statusMessage. + */ + public com.google.protobuf.ByteString getStatusMessageBytes() { + java.lang.Object ref = ""; + if (eventCase_ == 4) { + ref = event_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (eventCase_ == 4) { + event_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SESSION_CHECKPOINT_FIELD_NUMBER = 13; + + /** + * + * + *
+   * Session checkpoint/compaction recap event containing user intent and
+   * rolling summary.
+   * 
+ * + * .google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 13; + * + * @return Whether the sessionCheckpoint field is set. + */ + @java.lang.Override + public boolean hasSessionCheckpoint() { + return eventCase_ == 13; + } + + /** + * + * + *
+   * Session checkpoint/compaction recap event containing user intent and
+   * rolling summary.
+   * 
+ * + * .google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 13; + * + * @return The sessionCheckpoint. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.SessionCheckpoint getSessionCheckpoint() { + if (eventCase_ == 13) { + return (com.google.cloud.ces.v1beta.SessionCheckpoint) event_; + } + return com.google.cloud.ces.v1beta.SessionCheckpoint.getDefaultInstance(); + } + + /** + * + * + *
+   * Session checkpoint/compaction recap event containing user intent and
+   * rolling summary.
+   * 
+ * + * .google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 13; + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.SessionCheckpointOrBuilder getSessionCheckpointOrBuilder() { + if (eventCase_ == 13) { + return (com.google.cloud.ces.v1beta.SessionCheckpoint) event_; + } + return com.google.cloud.ces.v1beta.SessionCheckpoint.getDefaultInstance(); + } + + public static final int EVENT_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object eventId_ = ""; + + /** + * + * + *
+   * Unique identifier for the event.
+   * 
+ * + * string event_id = 1; + * + * @return The eventId. + */ + @java.lang.Override + public java.lang.String getEventId() { + java.lang.Object ref = eventId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + eventId_ = s; + return s; + } + } + + /** + * + * + *
+   * Unique identifier for the event.
+   * 
+ * + * string event_id = 1; + * + * @return The bytes for eventId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEventIdBytes() { + java.lang.Object ref = eventId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + eventId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EVENT_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp eventTime_; + + /** + * + * + *
+   * Timestamp when the event occurred.
+   * 
+ * + * .google.protobuf.Timestamp event_time = 2; + * + * @return Whether the eventTime field is set. + */ + @java.lang.Override + public boolean hasEventTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Timestamp when the event occurred.
+   * 
+ * + * .google.protobuf.Timestamp event_time = 2; + * + * @return The eventTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEventTime() { + return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; + } + + /** + * + * + *
+   * Timestamp when the event occurred.
+   * 
+ * + * .google.protobuf.Timestamp event_time = 2; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { + return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; + } + + public static final int UI_EVENT_FIELD_NUMBER = 5; + private com.google.cloud.ces.v1beta.UiEvent uiEvent_; + + /** + * + * + *
+   * Optional. UI event payload.
+   * 
+ * + * .google.cloud.ces.v1beta.UiEvent ui_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the uiEvent field is set. + */ + @java.lang.Override + public boolean hasUiEvent() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. UI event payload.
+   * 
+ * + * .google.cloud.ces.v1beta.UiEvent ui_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The uiEvent. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.UiEvent getUiEvent() { + return uiEvent_ == null ? com.google.cloud.ces.v1beta.UiEvent.getDefaultInstance() : uiEvent_; + } + + /** + * + * + *
+   * Optional. UI event payload.
+   * 
+ * + * .google.cloud.ces.v1beta.UiEvent ui_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.UiEventOrBuilder getUiEventOrBuilder() { + return uiEvent_ == null ? com.google.cloud.ces.v1beta.UiEvent.getDefaultInstance() : uiEvent_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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(eventId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, eventId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getEventTime()); + } + if (eventCase_ == 3) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, event_); + } + if (eventCase_ == 4) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, event_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getUiEvent()); + } + if (eventCase_ == 13) { + output.writeMessage(13, (com.google.cloud.ces.v1beta.SessionCheckpoint) event_); + } + 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(eventId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, eventId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEventTime()); + } + if (eventCase_ == 3) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, event_); + } + if (eventCase_ == 4) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, event_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUiEvent()); + } + if (eventCase_ == 13) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 13, (com.google.cloud.ces.v1beta.SessionCheckpoint) event_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.ChatAiAssistantResponse)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.ChatAiAssistantResponse other = + (com.google.cloud.ces.v1beta.ChatAiAssistantResponse) obj; + + if (!getEventId().equals(other.getEventId())) return false; + if (hasEventTime() != other.hasEventTime()) return false; + if (hasEventTime()) { + if (!getEventTime().equals(other.getEventTime())) return false; + } + if (hasUiEvent() != other.hasUiEvent()) return false; + if (hasUiEvent()) { + if (!getUiEvent().equals(other.getUiEvent())) return false; + } + if (!getEventCase().equals(other.getEventCase())) return false; + switch (eventCase_) { + case 3: + if (!getTextChunk().equals(other.getTextChunk())) return false; + break; + case 4: + if (!getStatusMessage().equals(other.getStatusMessage())) return false; + break; + case 13: + if (!getSessionCheckpoint().equals(other.getSessionCheckpoint())) 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) + EVENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getEventId().hashCode(); + if (hasEventTime()) { + hash = (37 * hash) + EVENT_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEventTime().hashCode(); + } + if (hasUiEvent()) { + hash = (37 * hash) + UI_EVENT_FIELD_NUMBER; + hash = (53 * hash) + getUiEvent().hashCode(); + } + switch (eventCase_) { + case 3: + hash = (37 * hash) + TEXT_CHUNK_FIELD_NUMBER; + hash = (53 * hash) + getTextChunk().hashCode(); + break; + case 4: + hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getStatusMessage().hashCode(); + break; + case 13: + hash = (37 * hash) + SESSION_CHECKPOINT_FIELD_NUMBER; + hash = (53 * hash) + getSessionCheckpoint().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.ChatAiAssistantResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ChatAiAssistantResponse parseFrom( + 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.ChatAiAssistantResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ChatAiAssistantResponse parseFrom( + com.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.ChatAiAssistantResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ChatAiAssistantResponse 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.ChatAiAssistantResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ChatAiAssistantResponse parseFrom( + java.io.InputStream 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.ChatAiAssistantResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ChatAiAssistantResponse parseDelimitedFrom( + java.io.InputStream 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.ChatAiAssistantResponse 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.ChatAiAssistantResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, 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.ChatAiAssistantResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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
+   * [AssistantService.ChatAiAssistant][google.cloud.ces.v1beta.AssistantService.ChatAiAssistant].
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.ChatAiAssistantResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.ChatAiAssistantResponse) + com.google.cloud.ces.v1beta.ChatAiAssistantResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_ChatAiAssistantResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_ChatAiAssistantResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.ChatAiAssistantResponse.class, + com.google.cloud.ces.v1beta.ChatAiAssistantResponse.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.ChatAiAssistantResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetEventTimeFieldBuilder(); + internalGetUiEventFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (sessionCheckpointBuilder_ != null) { + sessionCheckpointBuilder_.clear(); + } + eventId_ = ""; + eventTime_ = null; + if (eventTimeBuilder_ != null) { + eventTimeBuilder_.dispose(); + eventTimeBuilder_ = null; + } + uiEvent_ = null; + if (uiEventBuilder_ != null) { + uiEventBuilder_.dispose(); + uiEventBuilder_ = null; + } + eventCase_ = 0; + event_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_ChatAiAssistantResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ChatAiAssistantResponse getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.ChatAiAssistantResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ChatAiAssistantResponse build() { + com.google.cloud.ces.v1beta.ChatAiAssistantResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ChatAiAssistantResponse buildPartial() { + com.google.cloud.ces.v1beta.ChatAiAssistantResponse result = + new com.google.cloud.ces.v1beta.ChatAiAssistantResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1beta.ChatAiAssistantResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.eventId_ = eventId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.eventTime_ = eventTimeBuilder_ == null ? eventTime_ : eventTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.uiEvent_ = uiEventBuilder_ == null ? uiEvent_ : uiEventBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.ces.v1beta.ChatAiAssistantResponse result) { + result.eventCase_ = eventCase_; + result.event_ = this.event_; + if (eventCase_ == 13 && sessionCheckpointBuilder_ != null) { + result.event_ = sessionCheckpointBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.ChatAiAssistantResponse) { + return mergeFrom((com.google.cloud.ces.v1beta.ChatAiAssistantResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.ChatAiAssistantResponse other) { + if (other == com.google.cloud.ces.v1beta.ChatAiAssistantResponse.getDefaultInstance()) + return this; + if (!other.getEventId().isEmpty()) { + eventId_ = other.eventId_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasEventTime()) { + mergeEventTime(other.getEventTime()); + } + if (other.hasUiEvent()) { + mergeUiEvent(other.getUiEvent()); + } + switch (other.getEventCase()) { + case TEXT_CHUNK: + { + eventCase_ = 3; + event_ = other.event_; + onChanged(); + break; + } + case STATUS_MESSAGE: + { + eventCase_ = 4; + event_ = other.event_; + onChanged(); + break; + } + case SESSION_CHECKPOINT: + { + mergeSessionCheckpoint(other.getSessionCheckpoint()); + break; + } + case EVENT_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: + { + eventId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetEventTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + eventCase_ = 3; + event_ = s; + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + eventCase_ = 4; + event_ = s; + break; + } // case 34 + case 42: + { + input.readMessage(internalGetUiEventFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 42 + case 106: + { + input.readMessage( + internalGetSessionCheckpointFieldBuilder().getBuilder(), extensionRegistry); + eventCase_ = 13; + break; + } // case 106 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int eventCase_ = 0; + private java.lang.Object event_; + + public EventCase getEventCase() { + return EventCase.forNumber(eventCase_); + } + + public Builder clearEvent() { + eventCase_ = 0; + event_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
+     * Text Token (for streaming Gemini responses word-by-word)
+     * 
+ * + * string text_chunk = 3; + * + * @return Whether the textChunk field is set. + */ + @java.lang.Override + public boolean hasTextChunk() { + return eventCase_ == 3; + } + + /** + * + * + *
+     * Text Token (for streaming Gemini responses word-by-word)
+     * 
+ * + * string text_chunk = 3; + * + * @return The textChunk. + */ + @java.lang.Override + public java.lang.String getTextChunk() { + java.lang.Object ref = ""; + if (eventCase_ == 3) { + ref = event_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (eventCase_ == 3) { + event_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Text Token (for streaming Gemini responses word-by-word)
+     * 
+ * + * string text_chunk = 3; + * + * @return The bytes for textChunk. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTextChunkBytes() { + java.lang.Object ref = ""; + if (eventCase_ == 3) { + ref = event_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (eventCase_ == 3) { + event_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Text Token (for streaming Gemini responses word-by-word)
+     * 
+ * + * string text_chunk = 3; + * + * @param value The textChunk to set. + * @return This builder for chaining. + */ + public Builder setTextChunk(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + eventCase_ = 3; + event_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Text Token (for streaming Gemini responses word-by-word)
+     * 
+ * + * string text_chunk = 3; + * + * @return This builder for chaining. + */ + public Builder clearTextChunk() { + if (eventCase_ == 3) { + eventCase_ = 0; + event_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Text Token (for streaming Gemini responses word-by-word)
+     * 
+ * + * string text_chunk = 3; + * + * @param value The bytes for textChunk to set. + * @return This builder for chaining. + */ + public Builder setTextChunkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + eventCase_ = 3; + event_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Simple status update
+     * 
+ * + * string status_message = 4; + * + * @return Whether the statusMessage field is set. + */ + @java.lang.Override + public boolean hasStatusMessage() { + return eventCase_ == 4; + } + + /** + * + * + *
+     * Simple status update
+     * 
+ * + * string status_message = 4; + * + * @return The statusMessage. + */ + @java.lang.Override + public java.lang.String getStatusMessage() { + java.lang.Object ref = ""; + if (eventCase_ == 4) { + ref = event_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (eventCase_ == 4) { + event_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Simple status update
+     * 
+ * + * string status_message = 4; + * + * @return The bytes for statusMessage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStatusMessageBytes() { + java.lang.Object ref = ""; + if (eventCase_ == 4) { + ref = event_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (eventCase_ == 4) { + event_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Simple status update
+     * 
+ * + * string status_message = 4; + * + * @param value The statusMessage to set. + * @return This builder for chaining. + */ + public Builder setStatusMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + eventCase_ = 4; + event_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Simple status update
+     * 
+ * + * string status_message = 4; + * + * @return This builder for chaining. + */ + public Builder clearStatusMessage() { + if (eventCase_ == 4) { + eventCase_ = 0; + event_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Simple status update
+     * 
+ * + * string status_message = 4; + * + * @param value The bytes for statusMessage to set. + * @return This builder for chaining. + */ + public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + eventCase_ = 4; + event_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.SessionCheckpoint, + com.google.cloud.ces.v1beta.SessionCheckpoint.Builder, + com.google.cloud.ces.v1beta.SessionCheckpointOrBuilder> + sessionCheckpointBuilder_; + + /** + * + * + *
+     * Session checkpoint/compaction recap event containing user intent and
+     * rolling summary.
+     * 
+ * + * .google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 13; + * + * @return Whether the sessionCheckpoint field is set. + */ + @java.lang.Override + public boolean hasSessionCheckpoint() { + return eventCase_ == 13; + } + + /** + * + * + *
+     * Session checkpoint/compaction recap event containing user intent and
+     * rolling summary.
+     * 
+ * + * .google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 13; + * + * @return The sessionCheckpoint. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.SessionCheckpoint getSessionCheckpoint() { + if (sessionCheckpointBuilder_ == null) { + if (eventCase_ == 13) { + return (com.google.cloud.ces.v1beta.SessionCheckpoint) event_; + } + return com.google.cloud.ces.v1beta.SessionCheckpoint.getDefaultInstance(); + } else { + if (eventCase_ == 13) { + return sessionCheckpointBuilder_.getMessage(); + } + return com.google.cloud.ces.v1beta.SessionCheckpoint.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Session checkpoint/compaction recap event containing user intent and
+     * rolling summary.
+     * 
+ * + * .google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 13; + */ + public Builder setSessionCheckpoint(com.google.cloud.ces.v1beta.SessionCheckpoint value) { + if (sessionCheckpointBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + event_ = value; + onChanged(); + } else { + sessionCheckpointBuilder_.setMessage(value); + } + eventCase_ = 13; + return this; + } + + /** + * + * + *
+     * Session checkpoint/compaction recap event containing user intent and
+     * rolling summary.
+     * 
+ * + * .google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 13; + */ + public Builder setSessionCheckpoint( + com.google.cloud.ces.v1beta.SessionCheckpoint.Builder builderForValue) { + if (sessionCheckpointBuilder_ == null) { + event_ = builderForValue.build(); + onChanged(); + } else { + sessionCheckpointBuilder_.setMessage(builderForValue.build()); + } + eventCase_ = 13; + return this; + } + + /** + * + * + *
+     * Session checkpoint/compaction recap event containing user intent and
+     * rolling summary.
+     * 
+ * + * .google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 13; + */ + public Builder mergeSessionCheckpoint(com.google.cloud.ces.v1beta.SessionCheckpoint value) { + if (sessionCheckpointBuilder_ == null) { + if (eventCase_ == 13 + && event_ != com.google.cloud.ces.v1beta.SessionCheckpoint.getDefaultInstance()) { + event_ = + com.google.cloud.ces.v1beta.SessionCheckpoint.newBuilder( + (com.google.cloud.ces.v1beta.SessionCheckpoint) event_) + .mergeFrom(value) + .buildPartial(); + } else { + event_ = value; + } + onChanged(); + } else { + if (eventCase_ == 13) { + sessionCheckpointBuilder_.mergeFrom(value); + } else { + sessionCheckpointBuilder_.setMessage(value); + } + } + eventCase_ = 13; + return this; + } + + /** + * + * + *
+     * Session checkpoint/compaction recap event containing user intent and
+     * rolling summary.
+     * 
+ * + * .google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 13; + */ + public Builder clearSessionCheckpoint() { + if (sessionCheckpointBuilder_ == null) { + if (eventCase_ == 13) { + eventCase_ = 0; + event_ = null; + onChanged(); + } + } else { + if (eventCase_ == 13) { + eventCase_ = 0; + event_ = null; + } + sessionCheckpointBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Session checkpoint/compaction recap event containing user intent and
+     * rolling summary.
+     * 
+ * + * .google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 13; + */ + public com.google.cloud.ces.v1beta.SessionCheckpoint.Builder getSessionCheckpointBuilder() { + return internalGetSessionCheckpointFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Session checkpoint/compaction recap event containing user intent and
+     * rolling summary.
+     * 
+ * + * .google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 13; + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.SessionCheckpointOrBuilder getSessionCheckpointOrBuilder() { + if ((eventCase_ == 13) && (sessionCheckpointBuilder_ != null)) { + return sessionCheckpointBuilder_.getMessageOrBuilder(); + } else { + if (eventCase_ == 13) { + return (com.google.cloud.ces.v1beta.SessionCheckpoint) event_; + } + return com.google.cloud.ces.v1beta.SessionCheckpoint.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Session checkpoint/compaction recap event containing user intent and
+     * rolling summary.
+     * 
+ * + * .google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 13; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.SessionCheckpoint, + com.google.cloud.ces.v1beta.SessionCheckpoint.Builder, + com.google.cloud.ces.v1beta.SessionCheckpointOrBuilder> + internalGetSessionCheckpointFieldBuilder() { + if (sessionCheckpointBuilder_ == null) { + if (!(eventCase_ == 13)) { + event_ = com.google.cloud.ces.v1beta.SessionCheckpoint.getDefaultInstance(); + } + sessionCheckpointBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.SessionCheckpoint, + com.google.cloud.ces.v1beta.SessionCheckpoint.Builder, + com.google.cloud.ces.v1beta.SessionCheckpointOrBuilder>( + (com.google.cloud.ces.v1beta.SessionCheckpoint) event_, + getParentForChildren(), + isClean()); + event_ = null; + } + eventCase_ = 13; + onChanged(); + return sessionCheckpointBuilder_; + } + + private java.lang.Object eventId_ = ""; + + /** + * + * + *
+     * Unique identifier for the event.
+     * 
+ * + * string event_id = 1; + * + * @return The eventId. + */ + public java.lang.String getEventId() { + java.lang.Object ref = eventId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + eventId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Unique identifier for the event.
+     * 
+ * + * string event_id = 1; + * + * @return The bytes for eventId. + */ + public com.google.protobuf.ByteString getEventIdBytes() { + java.lang.Object ref = eventId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + eventId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Unique identifier for the event.
+     * 
+ * + * string event_id = 1; + * + * @param value The eventId to set. + * @return This builder for chaining. + */ + public Builder setEventId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + eventId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Unique identifier for the event.
+     * 
+ * + * string event_id = 1; + * + * @return This builder for chaining. + */ + public Builder clearEventId() { + eventId_ = getDefaultInstance().getEventId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Unique identifier for the event.
+     * 
+ * + * string event_id = 1; + * + * @param value The bytes for eventId to set. + * @return This builder for chaining. + */ + public Builder setEventIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + eventId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp eventTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + eventTimeBuilder_; + + /** + * + * + *
+     * Timestamp when the event occurred.
+     * 
+ * + * .google.protobuf.Timestamp event_time = 2; + * + * @return Whether the eventTime field is set. + */ + public boolean hasEventTime() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Timestamp when the event occurred.
+     * 
+ * + * .google.protobuf.Timestamp event_time = 2; + * + * @return The eventTime. + */ + public com.google.protobuf.Timestamp getEventTime() { + if (eventTimeBuilder_ == null) { + return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; + } else { + return eventTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Timestamp when the event occurred.
+     * 
+ * + * .google.protobuf.Timestamp event_time = 2; + */ + public Builder setEventTime(com.google.protobuf.Timestamp value) { + if (eventTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + eventTime_ = value; + } else { + eventTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Timestamp when the event occurred.
+     * 
+ * + * .google.protobuf.Timestamp event_time = 2; + */ + public Builder setEventTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (eventTimeBuilder_ == null) { + eventTime_ = builderForValue.build(); + } else { + eventTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Timestamp when the event occurred.
+     * 
+ * + * .google.protobuf.Timestamp event_time = 2; + */ + public Builder mergeEventTime(com.google.protobuf.Timestamp value) { + if (eventTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && eventTime_ != null + && eventTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEventTimeBuilder().mergeFrom(value); + } else { + eventTime_ = value; + } + } else { + eventTimeBuilder_.mergeFrom(value); + } + if (eventTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Timestamp when the event occurred.
+     * 
+ * + * .google.protobuf.Timestamp event_time = 2; + */ + public Builder clearEventTime() { + bitField0_ = (bitField0_ & ~0x00000010); + eventTime_ = null; + if (eventTimeBuilder_ != null) { + eventTimeBuilder_.dispose(); + eventTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Timestamp when the event occurred.
+     * 
+ * + * .google.protobuf.Timestamp event_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getEventTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetEventTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Timestamp when the event occurred.
+     * 
+ * + * .google.protobuf.Timestamp event_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { + if (eventTimeBuilder_ != null) { + return eventTimeBuilder_.getMessageOrBuilder(); + } else { + return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; + } + } + + /** + * + * + *
+     * Timestamp when the event occurred.
+     * 
+ * + * .google.protobuf.Timestamp event_time = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetEventTimeFieldBuilder() { + if (eventTimeBuilder_ == null) { + eventTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEventTime(), getParentForChildren(), isClean()); + eventTime_ = null; + } + return eventTimeBuilder_; + } + + private com.google.cloud.ces.v1beta.UiEvent uiEvent_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.UiEvent, + com.google.cloud.ces.v1beta.UiEvent.Builder, + com.google.cloud.ces.v1beta.UiEventOrBuilder> + uiEventBuilder_; + + /** + * + * + *
+     * Optional. UI event payload.
+     * 
+ * + * + * .google.cloud.ces.v1beta.UiEvent ui_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the uiEvent field is set. + */ + public boolean hasUiEvent() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * Optional. UI event payload.
+     * 
+ * + * + * .google.cloud.ces.v1beta.UiEvent ui_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The uiEvent. + */ + public com.google.cloud.ces.v1beta.UiEvent getUiEvent() { + if (uiEventBuilder_ == null) { + return uiEvent_ == null + ? com.google.cloud.ces.v1beta.UiEvent.getDefaultInstance() + : uiEvent_; + } else { + return uiEventBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. UI event payload.
+     * 
+ * + * + * .google.cloud.ces.v1beta.UiEvent ui_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUiEvent(com.google.cloud.ces.v1beta.UiEvent value) { + if (uiEventBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + uiEvent_ = value; + } else { + uiEventBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. UI event payload.
+     * 
+ * + * + * .google.cloud.ces.v1beta.UiEvent ui_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUiEvent(com.google.cloud.ces.v1beta.UiEvent.Builder builderForValue) { + if (uiEventBuilder_ == null) { + uiEvent_ = builderForValue.build(); + } else { + uiEventBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. UI event payload.
+     * 
+ * + * + * .google.cloud.ces.v1beta.UiEvent ui_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUiEvent(com.google.cloud.ces.v1beta.UiEvent value) { + if (uiEventBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && uiEvent_ != null + && uiEvent_ != com.google.cloud.ces.v1beta.UiEvent.getDefaultInstance()) { + getUiEventBuilder().mergeFrom(value); + } else { + uiEvent_ = value; + } + } else { + uiEventBuilder_.mergeFrom(value); + } + if (uiEvent_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. UI event payload.
+     * 
+ * + * + * .google.cloud.ces.v1beta.UiEvent ui_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUiEvent() { + bitField0_ = (bitField0_ & ~0x00000020); + uiEvent_ = null; + if (uiEventBuilder_ != null) { + uiEventBuilder_.dispose(); + uiEventBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. UI event payload.
+     * 
+ * + * + * .google.cloud.ces.v1beta.UiEvent ui_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.UiEvent.Builder getUiEventBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetUiEventFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. UI event payload.
+     * 
+ * + * + * .google.cloud.ces.v1beta.UiEvent ui_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.UiEventOrBuilder getUiEventOrBuilder() { + if (uiEventBuilder_ != null) { + return uiEventBuilder_.getMessageOrBuilder(); + } else { + return uiEvent_ == null + ? com.google.cloud.ces.v1beta.UiEvent.getDefaultInstance() + : uiEvent_; + } + } + + /** + * + * + *
+     * Optional. UI event payload.
+     * 
+ * + * + * .google.cloud.ces.v1beta.UiEvent ui_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.UiEvent, + com.google.cloud.ces.v1beta.UiEvent.Builder, + com.google.cloud.ces.v1beta.UiEventOrBuilder> + internalGetUiEventFieldBuilder() { + if (uiEventBuilder_ == null) { + uiEventBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.UiEvent, + com.google.cloud.ces.v1beta.UiEvent.Builder, + com.google.cloud.ces.v1beta.UiEventOrBuilder>( + getUiEvent(), getParentForChildren(), isClean()); + uiEvent_ = null; + } + return uiEventBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.ChatAiAssistantResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.ChatAiAssistantResponse) + private static final com.google.cloud.ces.v1beta.ChatAiAssistantResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.ChatAiAssistantResponse(); + } + + public static com.google.cloud.ces.v1beta.ChatAiAssistantResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChatAiAssistantResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.ChatAiAssistantResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ChatAiAssistantResponseOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ChatAiAssistantResponseOrBuilder.java new file mode 100644 index 000000000000..0c23fbe85c87 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ChatAiAssistantResponseOrBuilder.java @@ -0,0 +1,251 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language 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/assistant_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public interface ChatAiAssistantResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.ChatAiAssistantResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Text Token (for streaming Gemini responses word-by-word)
+   * 
+ * + * string text_chunk = 3; + * + * @return Whether the textChunk field is set. + */ + boolean hasTextChunk(); + + /** + * + * + *
+   * Text Token (for streaming Gemini responses word-by-word)
+   * 
+ * + * string text_chunk = 3; + * + * @return The textChunk. + */ + java.lang.String getTextChunk(); + + /** + * + * + *
+   * Text Token (for streaming Gemini responses word-by-word)
+   * 
+ * + * string text_chunk = 3; + * + * @return The bytes for textChunk. + */ + com.google.protobuf.ByteString getTextChunkBytes(); + + /** + * + * + *
+   * Simple status update
+   * 
+ * + * string status_message = 4; + * + * @return Whether the statusMessage field is set. + */ + boolean hasStatusMessage(); + + /** + * + * + *
+   * Simple status update
+   * 
+ * + * string status_message = 4; + * + * @return The statusMessage. + */ + java.lang.String getStatusMessage(); + + /** + * + * + *
+   * Simple status update
+   * 
+ * + * string status_message = 4; + * + * @return The bytes for statusMessage. + */ + com.google.protobuf.ByteString getStatusMessageBytes(); + + /** + * + * + *
+   * Session checkpoint/compaction recap event containing user intent and
+   * rolling summary.
+   * 
+ * + * .google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 13; + * + * @return Whether the sessionCheckpoint field is set. + */ + boolean hasSessionCheckpoint(); + + /** + * + * + *
+   * Session checkpoint/compaction recap event containing user intent and
+   * rolling summary.
+   * 
+ * + * .google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 13; + * + * @return The sessionCheckpoint. + */ + com.google.cloud.ces.v1beta.SessionCheckpoint getSessionCheckpoint(); + + /** + * + * + *
+   * Session checkpoint/compaction recap event containing user intent and
+   * rolling summary.
+   * 
+ * + * .google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 13; + */ + com.google.cloud.ces.v1beta.SessionCheckpointOrBuilder getSessionCheckpointOrBuilder(); + + /** + * + * + *
+   * Unique identifier for the event.
+   * 
+ * + * string event_id = 1; + * + * @return The eventId. + */ + java.lang.String getEventId(); + + /** + * + * + *
+   * Unique identifier for the event.
+   * 
+ * + * string event_id = 1; + * + * @return The bytes for eventId. + */ + com.google.protobuf.ByteString getEventIdBytes(); + + /** + * + * + *
+   * Timestamp when the event occurred.
+   * 
+ * + * .google.protobuf.Timestamp event_time = 2; + * + * @return Whether the eventTime field is set. + */ + boolean hasEventTime(); + + /** + * + * + *
+   * Timestamp when the event occurred.
+   * 
+ * + * .google.protobuf.Timestamp event_time = 2; + * + * @return The eventTime. + */ + com.google.protobuf.Timestamp getEventTime(); + + /** + * + * + *
+   * Timestamp when the event occurred.
+   * 
+ * + * .google.protobuf.Timestamp event_time = 2; + */ + com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder(); + + /** + * + * + *
+   * Optional. UI event payload.
+   * 
+ * + * .google.cloud.ces.v1beta.UiEvent ui_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the uiEvent field is set. + */ + boolean hasUiEvent(); + + /** + * + * + *
+   * Optional. UI event payload.
+   * 
+ * + * .google.cloud.ces.v1beta.UiEvent ui_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The uiEvent. + */ + com.google.cloud.ces.v1beta.UiEvent getUiEvent(); + + /** + * + * + *
+   * Optional. UI event payload.
+   * 
+ * + * .google.cloud.ces.v1beta.UiEvent ui_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1beta.UiEventOrBuilder getUiEventOrBuilder(); + + com.google.cloud.ces.v1beta.ChatAiAssistantResponse.EventCase getEventCase(); +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/Citations.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/Citations.java index 20dc45f4515f..73699169e36a 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/Citations.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/Citations.java @@ -53,6 +53,7 @@ private Citations(com.google.protobuf.GeneratedMessage.Builder builder) { private Citations() { citedChunks_ = java.util.Collections.emptyList(); + inlineCitations_ = java.util.Collections.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -1217,6 +1218,926 @@ public com.google.cloud.ces.v1beta.Citations.CitedChunk getDefaultInstanceForTyp } } + public interface InlineCitationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.Citations.InlineCitation) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The starting index (in bytes) of the text segment in the agent response.
+     * 
+ * + * int32 start_index = 1; + * + * @return The startIndex. + */ + int getStartIndex(); + + /** + * + * + *
+     * The ending index (in bytes) of the text segment in the agent response.
+     * 
+ * + * int32 end_index = 2; + * + * @return The endIndex. + */ + int getEndIndex(); + + /** + * + * + *
+     * The indices of the cited chunks that back this text segment.
+     * Indices refer to the elements in `cited_chunks`.
+     * 
+ * + * repeated int32 cited_chunk_indices = 3; + * + * @return A list containing the citedChunkIndices. + */ + java.util.List getCitedChunkIndicesList(); + + /** + * + * + *
+     * The indices of the cited chunks that back this text segment.
+     * Indices refer to the elements in `cited_chunks`.
+     * 
+ * + * repeated int32 cited_chunk_indices = 3; + * + * @return The count of citedChunkIndices. + */ + int getCitedChunkIndicesCount(); + + /** + * + * + *
+     * The indices of the cited chunks that back this text segment.
+     * Indices refer to the elements in `cited_chunks`.
+     * 
+ * + * repeated int32 cited_chunk_indices = 3; + * + * @param index The index of the element to return. + * @return The citedChunkIndices at the given index. + */ + int getCitedChunkIndices(int index); + } + + /** + * + * + *
+   * An inline citation in the response text.
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.Citations.InlineCitation} + */ + public static final class InlineCitation extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.Citations.InlineCitation) + InlineCitationOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "InlineCitation"); + } + + // Use InlineCitation.newBuilder() to construct. + private InlineCitation(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private InlineCitation() { + citedChunkIndices_ = emptyIntList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_Citations_InlineCitation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_Citations_InlineCitation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.Citations.InlineCitation.class, + com.google.cloud.ces.v1beta.Citations.InlineCitation.Builder.class); + } + + public static final int START_INDEX_FIELD_NUMBER = 1; + private int startIndex_ = 0; + + /** + * + * + *
+     * The starting index (in bytes) of the text segment in the agent response.
+     * 
+ * + * int32 start_index = 1; + * + * @return The startIndex. + */ + @java.lang.Override + public int getStartIndex() { + return startIndex_; + } + + public static final int END_INDEX_FIELD_NUMBER = 2; + private int endIndex_ = 0; + + /** + * + * + *
+     * The ending index (in bytes) of the text segment in the agent response.
+     * 
+ * + * int32 end_index = 2; + * + * @return The endIndex. + */ + @java.lang.Override + public int getEndIndex() { + return endIndex_; + } + + public static final int CITED_CHUNK_INDICES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.Internal.IntList citedChunkIndices_ = emptyIntList(); + + /** + * + * + *
+     * The indices of the cited chunks that back this text segment.
+     * Indices refer to the elements in `cited_chunks`.
+     * 
+ * + * repeated int32 cited_chunk_indices = 3; + * + * @return A list containing the citedChunkIndices. + */ + @java.lang.Override + public java.util.List getCitedChunkIndicesList() { + return citedChunkIndices_; + } + + /** + * + * + *
+     * The indices of the cited chunks that back this text segment.
+     * Indices refer to the elements in `cited_chunks`.
+     * 
+ * + * repeated int32 cited_chunk_indices = 3; + * + * @return The count of citedChunkIndices. + */ + public int getCitedChunkIndicesCount() { + return citedChunkIndices_.size(); + } + + /** + * + * + *
+     * The indices of the cited chunks that back this text segment.
+     * Indices refer to the elements in `cited_chunks`.
+     * 
+ * + * repeated int32 cited_chunk_indices = 3; + * + * @param index The index of the element to return. + * @return The citedChunkIndices at the given index. + */ + public int getCitedChunkIndices(int index) { + return citedChunkIndices_.getInt(index); + } + + private int citedChunkIndicesMemoizedSerializedSize = -1; + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + if (startIndex_ != 0) { + output.writeInt32(1, startIndex_); + } + if (endIndex_ != 0) { + output.writeInt32(2, endIndex_); + } + if (getCitedChunkIndicesList().size() > 0) { + output.writeUInt32NoTag(26); + output.writeUInt32NoTag(citedChunkIndicesMemoizedSerializedSize); + } + for (int i = 0; i < citedChunkIndices_.size(); i++) { + output.writeInt32NoTag(citedChunkIndices_.getInt(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (startIndex_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, startIndex_); + } + if (endIndex_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, endIndex_); + } + { + int dataSize = 0; + for (int i = 0; i < citedChunkIndices_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag( + citedChunkIndices_.getInt(i)); + } + size += dataSize; + if (!getCitedChunkIndicesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + } + citedChunkIndicesMemoizedSerializedSize = dataSize; + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.Citations.InlineCitation)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.Citations.InlineCitation other = + (com.google.cloud.ces.v1beta.Citations.InlineCitation) obj; + + if (getStartIndex() != other.getStartIndex()) return false; + if (getEndIndex() != other.getEndIndex()) return false; + if (!getCitedChunkIndicesList().equals(other.getCitedChunkIndicesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + START_INDEX_FIELD_NUMBER; + hash = (53 * hash) + getStartIndex(); + hash = (37 * hash) + END_INDEX_FIELD_NUMBER; + hash = (53 * hash) + getEndIndex(); + if (getCitedChunkIndicesCount() > 0) { + hash = (37 * hash) + CITED_CHUNK_INDICES_FIELD_NUMBER; + hash = (53 * hash) + getCitedChunkIndicesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.Citations.InlineCitation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.Citations.InlineCitation parseFrom( + 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.Citations.InlineCitation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.Citations.InlineCitation parseFrom( + com.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.Citations.InlineCitation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.Citations.InlineCitation 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.Citations.InlineCitation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.Citations.InlineCitation parseFrom( + java.io.InputStream 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.Citations.InlineCitation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.Citations.InlineCitation parseDelimitedFrom( + java.io.InputStream 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.Citations.InlineCitation 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.Citations.InlineCitation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, 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.Citations.InlineCitation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * An inline citation in the response text.
+     * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.Citations.InlineCitation} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.Citations.InlineCitation) + com.google.cloud.ces.v1beta.Citations.InlineCitationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_Citations_InlineCitation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_Citations_InlineCitation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.Citations.InlineCitation.class, + com.google.cloud.ces.v1beta.Citations.InlineCitation.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.Citations.InlineCitation.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + startIndex_ = 0; + endIndex_ = 0; + citedChunkIndices_ = emptyIntList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_Citations_InlineCitation_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.Citations.InlineCitation getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.Citations.InlineCitation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.Citations.InlineCitation build() { + com.google.cloud.ces.v1beta.Citations.InlineCitation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.Citations.InlineCitation buildPartial() { + com.google.cloud.ces.v1beta.Citations.InlineCitation result = + new com.google.cloud.ces.v1beta.Citations.InlineCitation(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1beta.Citations.InlineCitation result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.startIndex_ = startIndex_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.endIndex_ = endIndex_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + citedChunkIndices_.makeImmutable(); + result.citedChunkIndices_ = citedChunkIndices_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.Citations.InlineCitation) { + return mergeFrom((com.google.cloud.ces.v1beta.Citations.InlineCitation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.Citations.InlineCitation other) { + if (other == com.google.cloud.ces.v1beta.Citations.InlineCitation.getDefaultInstance()) + return this; + if (other.getStartIndex() != 0) { + setStartIndex(other.getStartIndex()); + } + if (other.getEndIndex() != 0) { + setEndIndex(other.getEndIndex()); + } + if (!other.citedChunkIndices_.isEmpty()) { + if (citedChunkIndices_.isEmpty()) { + citedChunkIndices_ = other.citedChunkIndices_; + citedChunkIndices_.makeImmutable(); + bitField0_ |= 0x00000004; + } else { + ensureCitedChunkIndicesIsMutable(); + citedChunkIndices_.addAll(other.citedChunkIndices_); + } + 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: + { + startIndex_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + endIndex_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + int v = input.readInt32(); + ensureCitedChunkIndicesIsMutable(); + citedChunkIndices_.addInt(v); + break; + } // case 24 + case 26: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureCitedChunkIndicesIsMutable(); + while (input.getBytesUntilLimit() > 0) { + citedChunkIndices_.addInt(input.readInt32()); + } + input.popLimit(limit); + 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 startIndex_; + + /** + * + * + *
+       * The starting index (in bytes) of the text segment in the agent response.
+       * 
+ * + * int32 start_index = 1; + * + * @return The startIndex. + */ + @java.lang.Override + public int getStartIndex() { + return startIndex_; + } + + /** + * + * + *
+       * The starting index (in bytes) of the text segment in the agent response.
+       * 
+ * + * int32 start_index = 1; + * + * @param value The startIndex to set. + * @return This builder for chaining. + */ + public Builder setStartIndex(int value) { + + startIndex_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * The starting index (in bytes) of the text segment in the agent response.
+       * 
+ * + * int32 start_index = 1; + * + * @return This builder for chaining. + */ + public Builder clearStartIndex() { + bitField0_ = (bitField0_ & ~0x00000001); + startIndex_ = 0; + onChanged(); + return this; + } + + private int endIndex_; + + /** + * + * + *
+       * The ending index (in bytes) of the text segment in the agent response.
+       * 
+ * + * int32 end_index = 2; + * + * @return The endIndex. + */ + @java.lang.Override + public int getEndIndex() { + return endIndex_; + } + + /** + * + * + *
+       * The ending index (in bytes) of the text segment in the agent response.
+       * 
+ * + * int32 end_index = 2; + * + * @param value The endIndex to set. + * @return This builder for chaining. + */ + public Builder setEndIndex(int value) { + + endIndex_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * The ending index (in bytes) of the text segment in the agent response.
+       * 
+ * + * int32 end_index = 2; + * + * @return This builder for chaining. + */ + public Builder clearEndIndex() { + bitField0_ = (bitField0_ & ~0x00000002); + endIndex_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Internal.IntList citedChunkIndices_ = emptyIntList(); + + private void ensureCitedChunkIndicesIsMutable() { + if (!citedChunkIndices_.isModifiable()) { + citedChunkIndices_ = makeMutableCopy(citedChunkIndices_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
+       * The indices of the cited chunks that back this text segment.
+       * Indices refer to the elements in `cited_chunks`.
+       * 
+ * + * repeated int32 cited_chunk_indices = 3; + * + * @return A list containing the citedChunkIndices. + */ + public java.util.List getCitedChunkIndicesList() { + citedChunkIndices_.makeImmutable(); + return citedChunkIndices_; + } + + /** + * + * + *
+       * The indices of the cited chunks that back this text segment.
+       * Indices refer to the elements in `cited_chunks`.
+       * 
+ * + * repeated int32 cited_chunk_indices = 3; + * + * @return The count of citedChunkIndices. + */ + public int getCitedChunkIndicesCount() { + return citedChunkIndices_.size(); + } + + /** + * + * + *
+       * The indices of the cited chunks that back this text segment.
+       * Indices refer to the elements in `cited_chunks`.
+       * 
+ * + * repeated int32 cited_chunk_indices = 3; + * + * @param index The index of the element to return. + * @return The citedChunkIndices at the given index. + */ + public int getCitedChunkIndices(int index) { + return citedChunkIndices_.getInt(index); + } + + /** + * + * + *
+       * The indices of the cited chunks that back this text segment.
+       * Indices refer to the elements in `cited_chunks`.
+       * 
+ * + * repeated int32 cited_chunk_indices = 3; + * + * @param index The index to set the value at. + * @param value The citedChunkIndices to set. + * @return This builder for chaining. + */ + public Builder setCitedChunkIndices(int index, int value) { + + ensureCitedChunkIndicesIsMutable(); + citedChunkIndices_.setInt(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * The indices of the cited chunks that back this text segment.
+       * Indices refer to the elements in `cited_chunks`.
+       * 
+ * + * repeated int32 cited_chunk_indices = 3; + * + * @param value The citedChunkIndices to add. + * @return This builder for chaining. + */ + public Builder addCitedChunkIndices(int value) { + + ensureCitedChunkIndicesIsMutable(); + citedChunkIndices_.addInt(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * The indices of the cited chunks that back this text segment.
+       * Indices refer to the elements in `cited_chunks`.
+       * 
+ * + * repeated int32 cited_chunk_indices = 3; + * + * @param values The citedChunkIndices to add. + * @return This builder for chaining. + */ + public Builder addAllCitedChunkIndices( + java.lang.Iterable values) { + ensureCitedChunkIndicesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, citedChunkIndices_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * The indices of the cited chunks that back this text segment.
+       * Indices refer to the elements in `cited_chunks`.
+       * 
+ * + * repeated int32 cited_chunk_indices = 3; + * + * @return This builder for chaining. + */ + public Builder clearCitedChunkIndices() { + citedChunkIndices_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.Citations.InlineCitation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.Citations.InlineCitation) + private static final com.google.cloud.ces.v1beta.Citations.InlineCitation DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.Citations.InlineCitation(); + } + + public static com.google.cloud.ces.v1beta.Citations.InlineCitation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InlineCitation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.Citations.InlineCitation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + public static final int CITED_CHUNKS_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -1294,6 +2215,94 @@ public com.google.cloud.ces.v1beta.Citations.CitedChunkOrBuilder getCitedChunksO return citedChunks_.get(index); } + public static final int INLINE_CITATIONS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List inlineCitations_; + + /** + * + * + *
+   * Optional. List of inline citations in the agent response.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getInlineCitationsList() { + return inlineCitations_; + } + + /** + * + * + *
+   * Optional. List of inline citations in the agent response.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getInlineCitationsOrBuilderList() { + return inlineCitations_; + } + + /** + * + * + *
+   * Optional. List of inline citations in the agent response.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getInlineCitationsCount() { + return inlineCitations_.size(); + } + + /** + * + * + *
+   * Optional. List of inline citations in the agent response.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.Citations.InlineCitation getInlineCitations(int index) { + return inlineCitations_.get(index); + } + + /** + * + * + *
+   * Optional. List of inline citations in the agent response.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.Citations.InlineCitationOrBuilder getInlineCitationsOrBuilder( + int index) { + return inlineCitations_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1311,6 +2320,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < citedChunks_.size(); i++) { output.writeMessage(1, citedChunks_.get(i)); } + for (int i = 0; i < inlineCitations_.size(); i++) { + output.writeMessage(2, inlineCitations_.get(i)); + } getUnknownFields().writeTo(output); } @@ -1323,6 +2335,9 @@ public int getSerializedSize() { for (int i = 0; i < citedChunks_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, citedChunks_.get(i)); } + for (int i = 0; i < inlineCitations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, inlineCitations_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1339,6 +2354,7 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.ces.v1beta.Citations other = (com.google.cloud.ces.v1beta.Citations) obj; if (!getCitedChunksList().equals(other.getCitedChunksList())) return false; + if (!getInlineCitationsList().equals(other.getInlineCitationsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1354,6 +2370,10 @@ public int hashCode() { hash = (37 * hash) + CITED_CHUNKS_FIELD_NUMBER; hash = (53 * hash) + getCitedChunksList().hashCode(); } + if (getInlineCitationsCount() > 0) { + hash = (37 * hash) + INLINE_CITATIONS_FIELD_NUMBER; + hash = (53 * hash) + getInlineCitationsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1500,6 +2520,13 @@ public Builder clear() { citedChunksBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); + if (inlineCitationsBuilder_ == null) { + inlineCitations_ = java.util.Collections.emptyList(); + } else { + inlineCitations_ = null; + inlineCitationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -1545,6 +2572,15 @@ private void buildPartialRepeatedFields(com.google.cloud.ces.v1beta.Citations re } else { result.citedChunks_ = citedChunksBuilder_.build(); } + if (inlineCitationsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + inlineCitations_ = java.util.Collections.unmodifiableList(inlineCitations_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.inlineCitations_ = inlineCitations_; + } else { + result.inlineCitations_ = inlineCitationsBuilder_.build(); + } } private void buildPartial0(com.google.cloud.ces.v1beta.Citations result) { @@ -1590,6 +2626,33 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.Citations other) { } } } + if (inlineCitationsBuilder_ == null) { + if (!other.inlineCitations_.isEmpty()) { + if (inlineCitations_.isEmpty()) { + inlineCitations_ = other.inlineCitations_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureInlineCitationsIsMutable(); + inlineCitations_.addAll(other.inlineCitations_); + } + onChanged(); + } + } else { + if (!other.inlineCitations_.isEmpty()) { + if (inlineCitationsBuilder_.isEmpty()) { + inlineCitationsBuilder_.dispose(); + inlineCitationsBuilder_ = null; + inlineCitations_ = other.inlineCitations_; + bitField0_ = (bitField0_ & ~0x00000002); + inlineCitationsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetInlineCitationsFieldBuilder() + : null; + } else { + inlineCitationsBuilder_.addAllMessages(other.inlineCitations_); + } + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1630,6 +2693,20 @@ public Builder mergeFrom( } break; } // case 10 + case 18: + { + com.google.cloud.ces.v1beta.Citations.InlineCitation m = + input.readMessage( + com.google.cloud.ces.v1beta.Citations.InlineCitation.parser(), + extensionRegistry); + if (inlineCitationsBuilder_ == null) { + ensureInlineCitationsIsMutable(); + inlineCitations_.add(m); + } else { + inlineCitationsBuilder_.addMessage(m); + } + break; + } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2022,6 +3099,422 @@ public com.google.cloud.ces.v1beta.Citations.CitedChunk.Builder addCitedChunksBu return citedChunksBuilder_; } + private java.util.List inlineCitations_ = + java.util.Collections.emptyList(); + + private void ensureInlineCitationsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + inlineCitations_ = + new java.util.ArrayList( + inlineCitations_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.Citations.InlineCitation, + com.google.cloud.ces.v1beta.Citations.InlineCitation.Builder, + com.google.cloud.ces.v1beta.Citations.InlineCitationOrBuilder> + inlineCitationsBuilder_; + + /** + * + * + *
+     * Optional. List of inline citations in the agent response.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getInlineCitationsList() { + if (inlineCitationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(inlineCitations_); + } else { + return inlineCitationsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. List of inline citations in the agent response.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getInlineCitationsCount() { + if (inlineCitationsBuilder_ == null) { + return inlineCitations_.size(); + } else { + return inlineCitationsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. List of inline citations in the agent response.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.Citations.InlineCitation getInlineCitations(int index) { + if (inlineCitationsBuilder_ == null) { + return inlineCitations_.get(index); + } else { + return inlineCitationsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. List of inline citations in the agent response.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setInlineCitations( + int index, com.google.cloud.ces.v1beta.Citations.InlineCitation value) { + if (inlineCitationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInlineCitationsIsMutable(); + inlineCitations_.set(index, value); + onChanged(); + } else { + inlineCitationsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. List of inline citations in the agent response.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setInlineCitations( + int index, com.google.cloud.ces.v1beta.Citations.InlineCitation.Builder builderForValue) { + if (inlineCitationsBuilder_ == null) { + ensureInlineCitationsIsMutable(); + inlineCitations_.set(index, builderForValue.build()); + onChanged(); + } else { + inlineCitationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. List of inline citations in the agent response.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addInlineCitations(com.google.cloud.ces.v1beta.Citations.InlineCitation value) { + if (inlineCitationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInlineCitationsIsMutable(); + inlineCitations_.add(value); + onChanged(); + } else { + inlineCitationsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. List of inline citations in the agent response.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addInlineCitations( + int index, com.google.cloud.ces.v1beta.Citations.InlineCitation value) { + if (inlineCitationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInlineCitationsIsMutable(); + inlineCitations_.add(index, value); + onChanged(); + } else { + inlineCitationsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. List of inline citations in the agent response.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addInlineCitations( + com.google.cloud.ces.v1beta.Citations.InlineCitation.Builder builderForValue) { + if (inlineCitationsBuilder_ == null) { + ensureInlineCitationsIsMutable(); + inlineCitations_.add(builderForValue.build()); + onChanged(); + } else { + inlineCitationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. List of inline citations in the agent response.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addInlineCitations( + int index, com.google.cloud.ces.v1beta.Citations.InlineCitation.Builder builderForValue) { + if (inlineCitationsBuilder_ == null) { + ensureInlineCitationsIsMutable(); + inlineCitations_.add(index, builderForValue.build()); + onChanged(); + } else { + inlineCitationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. List of inline citations in the agent response.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllInlineCitations( + java.lang.Iterable values) { + if (inlineCitationsBuilder_ == null) { + ensureInlineCitationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, inlineCitations_); + onChanged(); + } else { + inlineCitationsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. List of inline citations in the agent response.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearInlineCitations() { + if (inlineCitationsBuilder_ == null) { + inlineCitations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + inlineCitationsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. List of inline citations in the agent response.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeInlineCitations(int index) { + if (inlineCitationsBuilder_ == null) { + ensureInlineCitationsIsMutable(); + inlineCitations_.remove(index); + onChanged(); + } else { + inlineCitationsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. List of inline citations in the agent response.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.Citations.InlineCitation.Builder getInlineCitationsBuilder( + int index) { + return internalGetInlineCitationsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. List of inline citations in the agent response.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.Citations.InlineCitationOrBuilder + getInlineCitationsOrBuilder(int index) { + if (inlineCitationsBuilder_ == null) { + return inlineCitations_.get(index); + } else { + return inlineCitationsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. List of inline citations in the agent response.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getInlineCitationsOrBuilderList() { + if (inlineCitationsBuilder_ != null) { + return inlineCitationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(inlineCitations_); + } + } + + /** + * + * + *
+     * Optional. List of inline citations in the agent response.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.Citations.InlineCitation.Builder + addInlineCitationsBuilder() { + return internalGetInlineCitationsFieldBuilder() + .addBuilder(com.google.cloud.ces.v1beta.Citations.InlineCitation.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. List of inline citations in the agent response.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.Citations.InlineCitation.Builder addInlineCitationsBuilder( + int index) { + return internalGetInlineCitationsFieldBuilder() + .addBuilder( + index, com.google.cloud.ces.v1beta.Citations.InlineCitation.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. List of inline citations in the agent response.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getInlineCitationsBuilderList() { + return internalGetInlineCitationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.Citations.InlineCitation, + com.google.cloud.ces.v1beta.Citations.InlineCitation.Builder, + com.google.cloud.ces.v1beta.Citations.InlineCitationOrBuilder> + internalGetInlineCitationsFieldBuilder() { + if (inlineCitationsBuilder_ == null) { + inlineCitationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.Citations.InlineCitation, + com.google.cloud.ces.v1beta.Citations.InlineCitation.Builder, + com.google.cloud.ces.v1beta.Citations.InlineCitationOrBuilder>( + inlineCitations_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + inlineCitations_ = null; + } + return inlineCitationsBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.Citations) } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CitationsOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CitationsOrBuilder.java index b85cee25820b..d45547d71204 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CitationsOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CitationsOrBuilder.java @@ -81,4 +81,71 @@ public interface CitationsOrBuilder * repeated .google.cloud.ces.v1beta.Citations.CitedChunk cited_chunks = 1; */ com.google.cloud.ces.v1beta.Citations.CitedChunkOrBuilder getCitedChunksOrBuilder(int index); + + /** + * + * + *
+   * Optional. List of inline citations in the agent response.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getInlineCitationsList(); + + /** + * + * + *
+   * Optional. List of inline citations in the agent response.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1beta.Citations.InlineCitation getInlineCitations(int index); + + /** + * + * + *
+   * Optional. List of inline citations in the agent response.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getInlineCitationsCount(); + + /** + * + * + *
+   * Optional. List of inline citations in the agent response.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getInlineCitationsOrBuilderList(); + + /** + * + * + *
+   * Optional. List of inline citations in the agent response.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1beta.Citations.InlineCitationOrBuilder getInlineCitationsOrBuilder( + int index); } 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 c36b9dcd0165..d81e8c12aedd 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 @@ -112,6 +112,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_ces_v1beta_EvaluationRunCachingSettings_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_ces_v1beta_EvaluationRunCachingSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_UiEvent_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_UiEvent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_SessionCheckpoint_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_SessionCheckpoint_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -132,24 +140,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013description\030\003 \001(\tB\004\342A\001\001\022\026\n" + "\010disabled\030\002 \001(\010B\004\342A\001\001\022)\n" + "\033proactive_execution_enabled\030\004 \001(\010B\004\342A\001\001B\n\n" - + "\010callback\"T\n\r" + + "\010callback\"\205\002\n\r" + "ModelSettings\022\023\n" + "\005model\030\001 \001(\tB\004\342A\001\001\022\036\n" - + "\013temperature\030\002 \001(\001B\004\342A\001\001H\000\210\001\001B\016\n" + + "\013temperature\030\002 \001(\001B\004\342A\001\001H\000\210\001\001\022R\n" + + "\016thinking_level\030\005 \001(\01624.google.cloud.ces" + + ".v1beta.ModelSettings.ThinkingLevelB\004\342A\001\001\"[\n\r" + + "ThinkingLevel\022\036\n" + + "\032THINKING_LEVEL_UNSPECIFIED\020\000\022\013\n" + + "\007DEFAULT\020\001\022\007\n" + + "\003LOW\020\002\022\n\n" + + "\006MEDIUM\020\003\022\010\n" + + "\004HIGH\020\004B\016\n" + "\014_temperature\"\260\004\n\r" + "TriggerAction\022^\n" - + "\023respond_immediately\030\001 \001(\01329.google.cloud.ces.v" - + "1beta.TriggerAction.RespondImmediatelyB\004\342A\001\001H\000\022T\n" - + "\016transfer_agent\030\002 \001(\01324.google." - + "cloud.ces.v1beta.TriggerAction.TransferAgentB\004\342A\001\001H\000\022Z\n" - + "\021generative_answer\030\003 \001(\0132" - + "7.google.cloud.ces.v1beta.TriggerAction.GenerativeAnswerB\004\342A\001\001H\000\0326\n" + + "\023respond_immediately\030\001 \001(\01329." + + "google.cloud.ces.v1beta.TriggerAction.RespondImmediatelyB\004\342A\001\001H\000\022T\n" + + "\016transfer_agent\030\002" + + " \001(\01324.google.cloud.ces.v1beta.TriggerAction.TransferAgentB\004\342A\001\001H\000\022Z\n" + + "\021generative_answer\030\003 \001(\01327.google.cloud.ces.v1b" + + "eta.TriggerAction.GenerativeAnswerB\004\342A\001\001H\000\0326\n" + "\010Response\022\022\n" + "\004text\030\001 \001(\tB\004\342A\001\002\022\026\n" + "\010disabled\030\002 \001(\010B\004\342A\001\001\032^\n" + "\022RespondImmediately\022H\n" - + "\tresponses\030\001 \003(" - + "\0132/.google.cloud.ces.v1beta.TriggerAction.ResponseB\004\342A\001\002\032(\n" + + "\tresponses\030\001" + + " \003(\0132/.google.cloud.ces.v1beta.TriggerAction.ResponseB\004\342A\001\002\032(\n" + "\020GenerativeAnswer\022\024\n" + "\006prompt\030\001 \001(\tB\004\342A\001\002\032A\n\r" + "TransferAgent\0220\n" @@ -167,34 +183,36 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\'servicedirectory.googleapis.com/Service\"\247\017\n" + "\016ChannelProfile\022\030\n\n" + "profile_id\030\001 \001(\tB\004\342A\001\001\022O\n" - + "\014channel_type\030\003 \001(\01623.goo" - + "gle.cloud.ces.v1beta.ChannelProfile.ChannelTypeB\004\342A\001\001\022W\n" - + "\020persona_property\030\002 \001(\0132" - + "7.google.cloud.ces.v1beta.ChannelProfile.PersonaPropertyB\004\342A\001\001\022\032\n" + + "\014channel_type\030\003" + + " \001(\01623.google.cloud.ces.v1beta.ChannelProfile.ChannelTypeB\004\342A\001\001\022W\n" + + "\020persona_property\030\002 \001(\01327.google.cloud.ces.v1b" + + "eta.ChannelProfile.PersonaPropertyB\004\342A\001\001\022\032\n" + "\014disable_dtmf\030\004 \001(\010B\004\342A\001\001\022&\n" + "\030disable_barge_in_control\030\005 \001(\010B\004\342A\001\001\022X\n" - + "\021web_widget_config\030\007 \001(\01327." - + "google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfigB\004\342A\001\001\022%\n" + + "\021web_widget_config\030\007 \001(\01327.google.cloud.ces.v1bet" + + "a.ChannelProfile.WebWidgetConfigB\004\342A\001\001\022%\n" + "\027noise_suppression_level\030\010 \001(\tB\004\342A\001\001\022U\n" - + "\017whatsapp_config\030\t" - + " \001(\01326.google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfigB\004\342A\001\001\022W\n" + + "\017whatsapp_config\030\t \001(\01326.google.cloud.ce" + + "s.v1beta.ChannelProfile.WhatsAppConfigB\004\342A\001\001\022W\n" + "\020instagram_config\030\n" - + " \001(\01327.google.cloud.ces.v1beta.ChannelProfile.InstagramConfigB\004\342A\001\001\032\232\001\n" + + " \001(\01327.google." + + "cloud.ces.v1beta.ChannelProfile.InstagramConfigB\004\342A\001\001\032\232\001\n" + "\017PersonaProperty\022V\n" - + "\007persona\030\001 \001(\0162?.googl" - + "e.cloud.ces.v1beta.ChannelProfile.PersonaProperty.PersonaB\004\342A\001\001\"/\n" + + "\007persona\030\001 \001(\0162?.google.cloud.ces.v1beta.Cha" + + "nnelProfile.PersonaProperty.PersonaB\004\342A\001\001\"/\n" + "\007Persona\022\013\n" + "\007UNKNOWN\020\000\022\013\n" - + "\007CONCISE\020\001\022\n\n" + + "\007CONCISE\020\001\022\n" + + "\n" + "\006CHATTY\020\002\032\215\005\n" + "\017WebWidgetConfig\022X\n" - + "\010modality\030\001 \001(\0162@.google." - + "cloud.ces.v1beta.ChannelProfile.WebWidgetConfig.ModalityB\004\342A\001\001\022R\n" - + "\005theme\030\002 \001(\0162=." - + "google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfig.ThemeB\004\342A\001\001\022\036\n" + + "\010modality\030\001 \001(\0162@.google.cloud.ces.v1beta.Chann" + + "elProfile.WebWidgetConfig.ModalityB\004\342A\001\001\022R\n" + + "\005theme\030\002 \001(\0162=.google.cloud.ces.v1bet" + + "a.ChannelProfile.WebWidgetConfig.ThemeB\004\342A\001\001\022\036\n" + "\020web_widget_title\030\003 \001(\tB\004\342A\001\001\022i\n" - + "\021security_settings\030\004 \001(\0132H.google.cloud.ces.v1beta.ChannelP" - + "rofile.WebWidgetConfig.SecuritySettingsB\004\342A\001\001\032\230\001\n" + + "\021security_settings\030\004 \001(\0132H.google.cloud.c" + + "es.v1beta.ChannelProfile.WebWidgetConfig.SecuritySettingsB\004\342A\001\001\032\230\001\n" + "\020SecuritySettings\022\"\n" + "\024enable_public_access\030\001 \001(\010B\004\342A\001\001\022!\n" + "\023enable_origin_check\030\004 \001(\010B\004\342A\001\001\022\035\n" @@ -219,8 +237,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013description\030\006 \001(\tB\004\342A\001\003\032\211\001\n" + "\017InstagramConfig\022\"\n" + "\024instagram_account_id\030\001 \001(\tB\004\342A\001\002\022\032\n" - + "\014display_name\030\002 \001(\tB\004\342A\001\003\022\033\n" - + "\r" + + "\014display_name\030\002 \001(\tB\004\342A\001\003\022\033\n\r" + "thumbnail_url\030\003 \001(\tB\004\342A\001\003\022\031\n" + "\013description\030\004 \001(\tB\004\342A\001\003\"\351\001\n" + "\013ChannelType\022\013\n" @@ -246,20 +263,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013child_spans\030\005" + " \003(\0132\035.google.cloud.ces.v1beta.SpanB\004\342A\001\003\"\375\001\n" + "\034EvaluationRunCachingSettings\022n\n" - + "\020run_caching_mode\030\001 \001(\0162N.google.cloud.ces.v1beta.Evaluation" - + "RunCachingSettings.EvaluationRunCachingModeB\004\342A\001\001\"m\n" + + "\020run_caching_mode\030\001 \001(\0162N.google.cloud.ces" + + ".v1beta.EvaluationRunCachingSettings.EvaluationRunCachingModeB\004\342A\001\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" + + "\021SKIP_IF_UNCHANGED\020\002\"2\n" + + "\007UiEvent\022\021\n" + + "\tmime_type\030\001 \001(\t\022\024\n" + + "\014json_payload\030\002 \001(\t\"(\n" + + "\021SessionCheckpoint\022\023\n" + + "\013user_intent\030\001 \001(\t*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.cloud.ces.v1betaB\013Co" - + "mmonProtoP\001Z-cloud.google.com/go/ces/apiv1beta/cespb;cespb\352A|\n" - + "\'servicedirectory.googleapis.com/Service\022Qprojects/{projec" - + "t}/locations/{location}/namespaces/{namespace}/services/{service}b\006proto3" + + "\033com.google.cloud.ces.v1betaB\013CommonProt" + + "oP\001Z-cloud.google.com/go/ces/apiv1beta/cespb;cespb\352A|\n" + + "\'servicedirectory.googleapis.com/Service\022Qprojects/{project}/locat" + + "ions/{location}/namespaces/{namespace}/services/{service}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -284,7 +306,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_ModelSettings_descriptor, new java.lang.String[] { - "Model", "Temperature", + "Model", "Temperature", "ThinkingLevel", }); internal_static_google_cloud_ces_v1beta_TriggerAction_descriptor = getDescriptor().getMessageType(2); @@ -427,6 +449,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "RunCachingMode", }); + internal_static_google_cloud_ces_v1beta_UiEvent_descriptor = getDescriptor().getMessageType(8); + internal_static_google_cloud_ces_v1beta_UiEvent_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_UiEvent_descriptor, + new java.lang.String[] { + "MimeType", "JsonPayload", + }); + internal_static_google_cloud_ces_v1beta_SessionCheckpoint_descriptor = + getDescriptor().getMessageType(9); + internal_static_google_cloud_ces_v1beta_SessionCheckpoint_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_SessionCheckpoint_descriptor, + new java.lang.String[] { + "UserIntent", + }); 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/Conversation.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/Conversation.java index 1cbe2f950dc3..6e46ad73304a 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/Conversation.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/Conversation.java @@ -893,6 +893,34 @@ public interface TurnOrBuilder * */ com.google.cloud.ces.v1beta.SpanOrBuilder getRootSpanOrBuilder(); + + /** + * + * + *
+     * Optional. The intended ground-truth text from the Simulated Caller
+     * (Polysynth). Only populated when word error rate metrics are enabled.
+     * 
+ * + * string user_intended_text = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The userIntendedText. + */ + java.lang.String getUserIntendedText(); + + /** + * + * + *
+     * Optional. The intended ground-truth text from the Simulated Caller
+     * (Polysynth). Only populated when word error rate metrics are enabled.
+     * 
+ * + * string user_intended_text = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for userIntendedText. + */ + com.google.protobuf.ByteString getUserIntendedTextBytes(); } /** @@ -927,6 +955,7 @@ private Turn(com.google.protobuf.GeneratedMessage.Builder builder) { private Turn() { messages_ = java.util.Collections.emptyList(); + userIntendedText_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -1088,6 +1117,61 @@ public com.google.cloud.ces.v1beta.SpanOrBuilder getRootSpanOrBuilder() { return rootSpan_ == null ? com.google.cloud.ces.v1beta.Span.getDefaultInstance() : rootSpan_; } + public static final int USER_INTENDED_TEXT_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object userIntendedText_ = ""; + + /** + * + * + *
+     * Optional. The intended ground-truth text from the Simulated Caller
+     * (Polysynth). Only populated when word error rate metrics are enabled.
+     * 
+ * + * string user_intended_text = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The userIntendedText. + */ + @java.lang.Override + public java.lang.String getUserIntendedText() { + java.lang.Object ref = userIntendedText_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userIntendedText_ = s; + return s; + } + } + + /** + * + * + *
+     * Optional. The intended ground-truth text from the Simulated Caller
+     * (Polysynth). Only populated when word error rate metrics are enabled.
+     * 
+ * + * string user_intended_text = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for userIntendedText. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUserIntendedTextBytes() { + java.lang.Object ref = userIntendedText_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + userIntendedText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1108,6 +1192,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getRootSpan()); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(userIntendedText_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, userIntendedText_); + } getUnknownFields().writeTo(output); } @@ -1123,6 +1210,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRootSpan()); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(userIntendedText_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, userIntendedText_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1144,6 +1234,7 @@ public boolean equals(final java.lang.Object obj) { if (hasRootSpan()) { if (!getRootSpan().equals(other.getRootSpan())) return false; } + if (!getUserIntendedText().equals(other.getUserIntendedText())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1163,6 +1254,8 @@ public int hashCode() { hash = (37 * hash) + ROOT_SPAN_FIELD_NUMBER; hash = (53 * hash) + getRootSpan().hashCode(); } + hash = (37 * hash) + USER_INTENDED_TEXT_FIELD_NUMBER; + hash = (53 * hash) + getUserIntendedText().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1325,6 +1418,7 @@ public Builder clear() { rootSpanBuilder_.dispose(); rootSpanBuilder_ = null; } + userIntendedText_ = ""; return this; } @@ -1380,6 +1474,9 @@ private void buildPartial0(com.google.cloud.ces.v1beta.Conversation.Turn result) result.rootSpan_ = rootSpanBuilder_ == null ? rootSpan_ : rootSpanBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.userIntendedText_ = userIntendedText_; + } result.bitField0_ |= to_bitField0_; } @@ -1426,6 +1523,11 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.Conversation.Turn other) { if (other.hasRootSpan()) { mergeRootSpan(other.getRootSpan()); } + if (!other.getUserIntendedText().isEmpty()) { + userIntendedText_ = other.userIntendedText_; + bitField0_ |= 0x00000004; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1472,6 +1574,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 18 + case 26: + { + userIntendedText_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2122,6 +2230,122 @@ public com.google.cloud.ces.v1beta.SpanOrBuilder getRootSpanOrBuilder() { return rootSpanBuilder_; } + private java.lang.Object userIntendedText_ = ""; + + /** + * + * + *
+       * Optional. The intended ground-truth text from the Simulated Caller
+       * (Polysynth). Only populated when word error rate metrics are enabled.
+       * 
+ * + * string user_intended_text = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The userIntendedText. + */ + public java.lang.String getUserIntendedText() { + java.lang.Object ref = userIntendedText_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userIntendedText_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Optional. The intended ground-truth text from the Simulated Caller
+       * (Polysynth). Only populated when word error rate metrics are enabled.
+       * 
+ * + * string user_intended_text = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for userIntendedText. + */ + public com.google.protobuf.ByteString getUserIntendedTextBytes() { + java.lang.Object ref = userIntendedText_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + userIntendedText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Optional. The intended ground-truth text from the Simulated Caller
+       * (Polysynth). Only populated when word error rate metrics are enabled.
+       * 
+ * + * string user_intended_text = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The userIntendedText to set. + * @return This builder for chaining. + */ + public Builder setUserIntendedText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + userIntendedText_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The intended ground-truth text from the Simulated Caller
+       * (Polysynth). Only populated when word error rate metrics are enabled.
+       * 
+ * + * string user_intended_text = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearUserIntendedText() { + userIntendedText_ = getDefaultInstance().getUserIntendedText(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The intended ground-truth text from the Simulated Caller
+       * (Polysynth). Only populated when word error rate metrics are enabled.
+       * 
+ * + * string user_intended_text = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for userIntendedText to set. + * @return This builder for chaining. + */ + public Builder setUserIntendedTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + userIntendedText_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.Conversation.Turn) } @@ -2456,7 +2680,7 @@ public int getTurnCount() { * * * @deprecated google.cloud.ces.v1beta.Conversation.channel_type is deprecated. See - * google/cloud/ces/v1beta/conversation.proto;l=133 + * google/cloud/ces/v1beta/conversation.proto;l=137 * @return The enum numeric value on the wire for channelType. */ @java.lang.Override @@ -2477,7 +2701,7 @@ public int getChannelTypeValue() { * * * @deprecated google.cloud.ces.v1beta.Conversation.channel_type is deprecated. See - * google/cloud/ces/v1beta/conversation.proto;l=133 + * google/cloud/ces/v1beta/conversation.proto;l=137 * @return The channelType. */ @java.lang.Override @@ -4704,7 +4928,7 @@ public Builder clearTurnCount() { * * * @deprecated google.cloud.ces.v1beta.Conversation.channel_type is deprecated. See - * google/cloud/ces/v1beta/conversation.proto;l=133 + * google/cloud/ces/v1beta/conversation.proto;l=137 * @return The enum numeric value on the wire for channelType. */ @java.lang.Override @@ -4725,7 +4949,7 @@ public int getChannelTypeValue() { * * * @deprecated google.cloud.ces.v1beta.Conversation.channel_type is deprecated. See - * google/cloud/ces/v1beta/conversation.proto;l=133 + * google/cloud/ces/v1beta/conversation.proto;l=137 * @param value The enum numeric value on the wire for channelType to set. * @return This builder for chaining. */ @@ -4749,7 +4973,7 @@ public Builder setChannelTypeValue(int value) { * * * @deprecated google.cloud.ces.v1beta.Conversation.channel_type is deprecated. See - * google/cloud/ces/v1beta/conversation.proto;l=133 + * google/cloud/ces/v1beta/conversation.proto;l=137 * @return The channelType. */ @java.lang.Override @@ -4774,7 +4998,7 @@ public com.google.cloud.ces.v1beta.Conversation.ChannelType getChannelType() { * * * @deprecated google.cloud.ces.v1beta.Conversation.channel_type is deprecated. See - * google/cloud/ces/v1beta/conversation.proto;l=133 + * google/cloud/ces/v1beta/conversation.proto;l=137 * @param value The channelType to set. * @return This builder for chaining. */ @@ -4801,7 +5025,7 @@ public Builder setChannelType(com.google.cloud.ces.v1beta.Conversation.ChannelTy * * * @deprecated google.cloud.ces.v1beta.Conversation.channel_type is deprecated. See - * google/cloud/ces/v1beta/conversation.proto;l=133 + * google/cloud/ces/v1beta/conversation.proto;l=137 * @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/ConversationOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ConversationOrBuilder.java index c150593e1a11..a9118990538b 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ConversationOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ConversationOrBuilder.java @@ -227,7 +227,7 @@ public interface ConversationOrBuilder * * * @deprecated google.cloud.ces.v1beta.Conversation.channel_type is deprecated. See - * google/cloud/ces/v1beta/conversation.proto;l=133 + * google/cloud/ces/v1beta/conversation.proto;l=137 * @return The enum numeric value on the wire for channelType. */ @java.lang.Deprecated @@ -245,7 +245,7 @@ public interface ConversationOrBuilder * * * @deprecated google.cloud.ces.v1beta.Conversation.channel_type is deprecated. See - * google/cloud/ces/v1beta/conversation.proto;l=133 + * google/cloud/ces/v1beta/conversation.proto;l=137 * @return The channelType. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ConversationProto.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ConversationProto.java index 1729e5000bca..f5cd5fbf0463 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ConversationProto.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ConversationProto.java @@ -62,7 +62,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "roto\022\027google.cloud.ces.v1beta\032\037google/ap" + "i/field_behavior.proto\032\031google/api/resou" + "rce.proto\032$google/cloud/ces/v1beta/common.proto\032%google/cloud/ces/v1beta/example" - + ".proto\032\037google/protobuf/timestamp.proto\"\317\n\n" + + ".proto\032\037google/protobuf/timestamp.proto\"\362\n\n" + "\014Conversation\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\010\0224\n\n" + "start_time\030\003 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0222\n" @@ -84,11 +84,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\tB&\342A\001\003\372A\037\n" + "\035ces.googleapis.com/AppVersion\022\033\n\r" + "language_code\030\016 \001(\tB\004\342A\001\003\0226\n" - + "\010messages\030\002 \003(\0132 .google.cloud.ces.v1beta.MessageB\002\030\001\032x\n" + + "\010messages\030\002 \003(\0132" + + " .google.cloud.ces.v1beta.MessageB\002\030\001\032\232\001\n" + "\004Turn\0228\n" + "\010messages\030\001 \003(\0132" + " .google.cloud.ces.v1beta.MessageB\004\342A\001\001\0226\n" - + "\troot_span\030\002 \001(\0132\035.google.cloud.ces.v1beta.SpanB\004\342A\001\001\"P\n" + + "\troot_span\030\002 \001(\0132\035.google.cloud.ces.v1beta.SpanB\004\342A\001\001\022" + + " \n" + + "\022user_intended_text\030\003 \001(\tB\004\342A\001\001\"P\n" + "\013ChannelType\022\034\n" + "\030CHANNEL_TYPE_UNSPECIFIED\020\000\022\010\n" + "\004TEXT\020\001\022\t\n" @@ -109,11 +112,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017INPUT_TYPE_BLOB\020\004\022\034\n" + "\030INPUT_TYPE_TOOL_RESPONSE\020\005\022\030\n" + "\024INPUT_TYPE_VARIABLES\020\006:\223\001\352A\217\001\n" - + "\037ces.googleapis.com/Conversation\022Oprojects/{project}/location" - + "s/{location}/apps/{app}/conversations/{conversation}*\r" + + "\037ces.googleapis.com/Conversation\022Oprojects/{project}/locations/{lo" + + "cation}/apps/{app}/conversations/{conversation}*\r" + "conversations2\014conversationBa\n" - + "\033com.google.cloud.ces.v1betaB\021ConversationProtoP\001Z-cloud.google.com/go/ces/a" - + "piv1beta/cespb;cespbb\006proto3" + + "\033com.google.cloud.ces.v1betaB\021Conversatio" + + "nProtoP\001Z-cloud.google.com/go/ces/apiv1beta/cespb;cespbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -151,7 +154,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_Conversation_Turn_descriptor, new java.lang.String[] { - "Messages", "RootSpan", + "Messages", "RootSpan", "UserIntendedText", }); 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/CreateAssistantSessionRequest.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CreateAssistantSessionRequest.java new file mode 100644 index 000000000000..2bd951c19634 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CreateAssistantSessionRequest.java @@ -0,0 +1,1410 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language 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/assistant_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +/** + * + * + *
+ * Request message for
+ * [AssistantService.CreateAssistantSession][google.cloud.ces.v1beta.AssistantService.CreateAssistantSession].
+ * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.CreateAssistantSessionRequest} + */ +@com.google.protobuf.Generated +public final class CreateAssistantSessionRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.CreateAssistantSessionRequest) + CreateAssistantSessionRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "CreateAssistantSessionRequest"); + } + + // Use CreateAssistantSessionRequest.newBuilder() to construct. + private CreateAssistantSessionRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateAssistantSessionRequest() { + parent_ = ""; + assistantSessionId_ = ""; + assistantSessionMessages_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_CreateAssistantSessionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_CreateAssistantSessionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.CreateAssistantSessionRequest.class, + com.google.cloud.ces.v1beta.CreateAssistantSessionRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The app to create the assistant session in
+   * Format:
+   * `projects/{project}/locations/{location}/apps/{app}`
+   * 
+ * + * + * 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 app to create the assistant session in
+   * Format:
+   * `projects/{project}/locations/{location}/apps/{app}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ASSISTANT_SESSION_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object assistantSessionId_ = ""; + + /** + * + * + *
+   * Optional. The ID to use for the assistant session, which will become the
+   * final component of the assistant session's resource name. If not provided,
+   * a unique ID will be automatically assigned for the assistant session.
+   * 
+ * + * string assistant_session_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The assistantSessionId. + */ + @java.lang.Override + public java.lang.String getAssistantSessionId() { + java.lang.Object ref = assistantSessionId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + assistantSessionId_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The ID to use for the assistant session, which will become the
+   * final component of the assistant session's resource name. If not provided,
+   * a unique ID will be automatically assigned for the assistant session.
+   * 
+ * + * string assistant_session_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for assistantSessionId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAssistantSessionIdBytes() { + java.lang.Object ref = assistantSessionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + assistantSessionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ASSISTANT_SESSION_MESSAGES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List assistantSessionMessages_; + + /** + * + * + *
+   * Optional. The messages to seed the assistant session with.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getAssistantSessionMessagesList() { + return assistantSessionMessages_; + } + + /** + * + * + *
+   * Optional. The messages to seed the assistant session with.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getAssistantSessionMessagesOrBuilderList() { + return assistantSessionMessages_; + } + + /** + * + * + *
+   * Optional. The messages to seed the assistant session with.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getAssistantSessionMessagesCount() { + return assistantSessionMessages_.size(); + } + + /** + * + * + *
+   * Optional. The messages to seed the assistant session with.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantMessage getAssistantSessionMessages(int index) { + return assistantSessionMessages_.get(index); + } + + /** + * + * + *
+   * Optional. The messages to seed the assistant session with.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantMessageOrBuilder getAssistantSessionMessagesOrBuilder( + int index) { + return assistantSessionMessages_.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(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(assistantSessionId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, assistantSessionId_); + } + for (int i = 0; i < assistantSessionMessages_.size(); i++) { + output.writeMessage(3, assistantSessionMessages_.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(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(assistantSessionId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, assistantSessionId_); + } + for (int i = 0; i < assistantSessionMessages_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, assistantSessionMessages_.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.v1beta.CreateAssistantSessionRequest)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.CreateAssistantSessionRequest other = + (com.google.cloud.ces.v1beta.CreateAssistantSessionRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getAssistantSessionId().equals(other.getAssistantSessionId())) return false; + if (!getAssistantSessionMessagesList().equals(other.getAssistantSessionMessagesList())) + return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + 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) + ASSISTANT_SESSION_ID_FIELD_NUMBER; + hash = (53 * hash) + getAssistantSessionId().hashCode(); + if (getAssistantSessionMessagesCount() > 0) { + hash = (37 * hash) + ASSISTANT_SESSION_MESSAGES_FIELD_NUMBER; + hash = (53 * hash) + getAssistantSessionMessagesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.CreateAssistantSessionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.CreateAssistantSessionRequest parseFrom( + 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.CreateAssistantSessionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.CreateAssistantSessionRequest parseFrom( + com.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.CreateAssistantSessionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.CreateAssistantSessionRequest 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.CreateAssistantSessionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.CreateAssistantSessionRequest parseFrom( + java.io.InputStream 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.CreateAssistantSessionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.CreateAssistantSessionRequest parseDelimitedFrom( + java.io.InputStream 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.CreateAssistantSessionRequest 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.CreateAssistantSessionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, 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.CreateAssistantSessionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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
+   * [AssistantService.CreateAssistantSession][google.cloud.ces.v1beta.AssistantService.CreateAssistantSession].
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.CreateAssistantSessionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.CreateAssistantSessionRequest) + com.google.cloud.ces.v1beta.CreateAssistantSessionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_CreateAssistantSessionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_CreateAssistantSessionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.CreateAssistantSessionRequest.class, + com.google.cloud.ces.v1beta.CreateAssistantSessionRequest.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.CreateAssistantSessionRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + assistantSessionId_ = ""; + if (assistantSessionMessagesBuilder_ == null) { + assistantSessionMessages_ = java.util.Collections.emptyList(); + } else { + assistantSessionMessages_ = null; + assistantSessionMessagesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_CreateAssistantSessionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.CreateAssistantSessionRequest getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.CreateAssistantSessionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.CreateAssistantSessionRequest build() { + com.google.cloud.ces.v1beta.CreateAssistantSessionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.CreateAssistantSessionRequest buildPartial() { + com.google.cloud.ces.v1beta.CreateAssistantSessionRequest result = + new com.google.cloud.ces.v1beta.CreateAssistantSessionRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.ces.v1beta.CreateAssistantSessionRequest result) { + if (assistantSessionMessagesBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + assistantSessionMessages_ = + java.util.Collections.unmodifiableList(assistantSessionMessages_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.assistantSessionMessages_ = assistantSessionMessages_; + } else { + result.assistantSessionMessages_ = assistantSessionMessagesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.ces.v1beta.CreateAssistantSessionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.assistantSessionId_ = assistantSessionId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.CreateAssistantSessionRequest) { + return mergeFrom((com.google.cloud.ces.v1beta.CreateAssistantSessionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.CreateAssistantSessionRequest other) { + if (other == com.google.cloud.ces.v1beta.CreateAssistantSessionRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAssistantSessionId().isEmpty()) { + assistantSessionId_ = other.assistantSessionId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (assistantSessionMessagesBuilder_ == null) { + if (!other.assistantSessionMessages_.isEmpty()) { + if (assistantSessionMessages_.isEmpty()) { + assistantSessionMessages_ = other.assistantSessionMessages_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureAssistantSessionMessagesIsMutable(); + assistantSessionMessages_.addAll(other.assistantSessionMessages_); + } + onChanged(); + } + } else { + if (!other.assistantSessionMessages_.isEmpty()) { + if (assistantSessionMessagesBuilder_.isEmpty()) { + assistantSessionMessagesBuilder_.dispose(); + assistantSessionMessagesBuilder_ = null; + assistantSessionMessages_ = other.assistantSessionMessages_; + bitField0_ = (bitField0_ & ~0x00000004); + assistantSessionMessagesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAssistantSessionMessagesFieldBuilder() + : null; + } else { + assistantSessionMessagesBuilder_.addAllMessages(other.assistantSessionMessages_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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: + { + assistantSessionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + com.google.cloud.ces.v1beta.AssistantMessage m = + input.readMessage( + com.google.cloud.ces.v1beta.AssistantMessage.parser(), extensionRegistry); + if (assistantSessionMessagesBuilder_ == null) { + ensureAssistantSessionMessagesIsMutable(); + assistantSessionMessages_.add(m); + } else { + assistantSessionMessagesBuilder_.addMessage(m); + } + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The app to create the assistant session in
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}`
+     * 
+ * + * + * 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 app to create the assistant session in
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}`
+     * 
+ * + * + * 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 app to create the assistant session in
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}`
+     * 
+ * + * + * 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 app to create the assistant session in
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}`
+     * 
+ * + * + * 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 app to create the assistant session in
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object assistantSessionId_ = ""; + + /** + * + * + *
+     * Optional. The ID to use for the assistant session, which will become the
+     * final component of the assistant session's resource name. If not provided,
+     * a unique ID will be automatically assigned for the assistant session.
+     * 
+ * + * string assistant_session_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The assistantSessionId. + */ + public java.lang.String getAssistantSessionId() { + java.lang.Object ref = assistantSessionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + assistantSessionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The ID to use for the assistant session, which will become the
+     * final component of the assistant session's resource name. If not provided,
+     * a unique ID will be automatically assigned for the assistant session.
+     * 
+ * + * string assistant_session_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for assistantSessionId. + */ + public com.google.protobuf.ByteString getAssistantSessionIdBytes() { + java.lang.Object ref = assistantSessionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + assistantSessionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The ID to use for the assistant session, which will become the
+     * final component of the assistant session's resource name. If not provided,
+     * a unique ID will be automatically assigned for the assistant session.
+     * 
+ * + * string assistant_session_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The assistantSessionId to set. + * @return This builder for chaining. + */ + public Builder setAssistantSessionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + assistantSessionId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The ID to use for the assistant session, which will become the
+     * final component of the assistant session's resource name. If not provided,
+     * a unique ID will be automatically assigned for the assistant session.
+     * 
+ * + * string assistant_session_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAssistantSessionId() { + assistantSessionId_ = getDefaultInstance().getAssistantSessionId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The ID to use for the assistant session, which will become the
+     * final component of the assistant session's resource name. If not provided,
+     * a unique ID will be automatically assigned for the assistant session.
+     * 
+ * + * string assistant_session_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for assistantSessionId to set. + * @return This builder for chaining. + */ + public Builder setAssistantSessionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + assistantSessionId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.util.List assistantSessionMessages_ = + java.util.Collections.emptyList(); + + private void ensureAssistantSessionMessagesIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + assistantSessionMessages_ = + new java.util.ArrayList( + assistantSessionMessages_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.AssistantMessage, + com.google.cloud.ces.v1beta.AssistantMessage.Builder, + com.google.cloud.ces.v1beta.AssistantMessageOrBuilder> + assistantSessionMessagesBuilder_; + + /** + * + * + *
+     * Optional. The messages to seed the assistant session with.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getAssistantSessionMessagesList() { + if (assistantSessionMessagesBuilder_ == null) { + return java.util.Collections.unmodifiableList(assistantSessionMessages_); + } else { + return assistantSessionMessagesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. The messages to seed the assistant session with.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getAssistantSessionMessagesCount() { + if (assistantSessionMessagesBuilder_ == null) { + return assistantSessionMessages_.size(); + } else { + return assistantSessionMessagesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. The messages to seed the assistant session with.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.AssistantMessage getAssistantSessionMessages(int index) { + if (assistantSessionMessagesBuilder_ == null) { + return assistantSessionMessages_.get(index); + } else { + return assistantSessionMessagesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. The messages to seed the assistant session with.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAssistantSessionMessages( + int index, com.google.cloud.ces.v1beta.AssistantMessage value) { + if (assistantSessionMessagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAssistantSessionMessagesIsMutable(); + assistantSessionMessages_.set(index, value); + onChanged(); + } else { + assistantSessionMessagesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The messages to seed the assistant session with.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAssistantSessionMessages( + int index, com.google.cloud.ces.v1beta.AssistantMessage.Builder builderForValue) { + if (assistantSessionMessagesBuilder_ == null) { + ensureAssistantSessionMessagesIsMutable(); + assistantSessionMessages_.set(index, builderForValue.build()); + onChanged(); + } else { + assistantSessionMessagesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The messages to seed the assistant session with.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAssistantSessionMessages(com.google.cloud.ces.v1beta.AssistantMessage value) { + if (assistantSessionMessagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAssistantSessionMessagesIsMutable(); + assistantSessionMessages_.add(value); + onChanged(); + } else { + assistantSessionMessagesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. The messages to seed the assistant session with.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAssistantSessionMessages( + int index, com.google.cloud.ces.v1beta.AssistantMessage value) { + if (assistantSessionMessagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAssistantSessionMessagesIsMutable(); + assistantSessionMessages_.add(index, value); + onChanged(); + } else { + assistantSessionMessagesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The messages to seed the assistant session with.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAssistantSessionMessages( + com.google.cloud.ces.v1beta.AssistantMessage.Builder builderForValue) { + if (assistantSessionMessagesBuilder_ == null) { + ensureAssistantSessionMessagesIsMutable(); + assistantSessionMessages_.add(builderForValue.build()); + onChanged(); + } else { + assistantSessionMessagesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The messages to seed the assistant session with.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAssistantSessionMessages( + int index, com.google.cloud.ces.v1beta.AssistantMessage.Builder builderForValue) { + if (assistantSessionMessagesBuilder_ == null) { + ensureAssistantSessionMessagesIsMutable(); + assistantSessionMessages_.add(index, builderForValue.build()); + onChanged(); + } else { + assistantSessionMessagesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The messages to seed the assistant session with.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllAssistantSessionMessages( + java.lang.Iterable values) { + if (assistantSessionMessagesBuilder_ == null) { + ensureAssistantSessionMessagesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, assistantSessionMessages_); + onChanged(); + } else { + assistantSessionMessagesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. The messages to seed the assistant session with.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAssistantSessionMessages() { + if (assistantSessionMessagesBuilder_ == null) { + assistantSessionMessages_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + assistantSessionMessagesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. The messages to seed the assistant session with.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeAssistantSessionMessages(int index) { + if (assistantSessionMessagesBuilder_ == null) { + ensureAssistantSessionMessagesIsMutable(); + assistantSessionMessages_.remove(index); + onChanged(); + } else { + assistantSessionMessagesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. The messages to seed the assistant session with.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.AssistantMessage.Builder getAssistantSessionMessagesBuilder( + int index) { + return internalGetAssistantSessionMessagesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. The messages to seed the assistant session with.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.AssistantMessageOrBuilder + getAssistantSessionMessagesOrBuilder(int index) { + if (assistantSessionMessagesBuilder_ == null) { + return assistantSessionMessages_.get(index); + } else { + return assistantSessionMessagesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. The messages to seed the assistant session with.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getAssistantSessionMessagesOrBuilderList() { + if (assistantSessionMessagesBuilder_ != null) { + return assistantSessionMessagesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(assistantSessionMessages_); + } + } + + /** + * + * + *
+     * Optional. The messages to seed the assistant session with.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.AssistantMessage.Builder + addAssistantSessionMessagesBuilder() { + return internalGetAssistantSessionMessagesFieldBuilder() + .addBuilder(com.google.cloud.ces.v1beta.AssistantMessage.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The messages to seed the assistant session with.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.AssistantMessage.Builder addAssistantSessionMessagesBuilder( + int index) { + return internalGetAssistantSessionMessagesFieldBuilder() + .addBuilder(index, com.google.cloud.ces.v1beta.AssistantMessage.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The messages to seed the assistant session with.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getAssistantSessionMessagesBuilderList() { + return internalGetAssistantSessionMessagesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.AssistantMessage, + com.google.cloud.ces.v1beta.AssistantMessage.Builder, + com.google.cloud.ces.v1beta.AssistantMessageOrBuilder> + internalGetAssistantSessionMessagesFieldBuilder() { + if (assistantSessionMessagesBuilder_ == null) { + assistantSessionMessagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.AssistantMessage, + com.google.cloud.ces.v1beta.AssistantMessage.Builder, + com.google.cloud.ces.v1beta.AssistantMessageOrBuilder>( + assistantSessionMessages_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + assistantSessionMessages_ = null; + } + return assistantSessionMessagesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.CreateAssistantSessionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.CreateAssistantSessionRequest) + private static final com.google.cloud.ces.v1beta.CreateAssistantSessionRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.CreateAssistantSessionRequest(); + } + + public static com.google.cloud.ces.v1beta.CreateAssistantSessionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateAssistantSessionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.CreateAssistantSessionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CreateAssistantSessionRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CreateAssistantSessionRequestOrBuilder.java new file mode 100644 index 000000000000..93a36325f9d1 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CreateAssistantSessionRequestOrBuilder.java @@ -0,0 +1,159 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language 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/assistant_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public interface CreateAssistantSessionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.CreateAssistantSessionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The app to create the assistant session in
+   * Format:
+   * `projects/{project}/locations/{location}/apps/{app}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The app to create the assistant session in
+   * Format:
+   * `projects/{project}/locations/{location}/apps/{app}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. The ID to use for the assistant session, which will become the
+   * final component of the assistant session's resource name. If not provided,
+   * a unique ID will be automatically assigned for the assistant session.
+   * 
+ * + * string assistant_session_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The assistantSessionId. + */ + java.lang.String getAssistantSessionId(); + + /** + * + * + *
+   * Optional. The ID to use for the assistant session, which will become the
+   * final component of the assistant session's resource name. If not provided,
+   * a unique ID will be automatically assigned for the assistant session.
+   * 
+ * + * string assistant_session_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for assistantSessionId. + */ + com.google.protobuf.ByteString getAssistantSessionIdBytes(); + + /** + * + * + *
+   * Optional. The messages to seed the assistant session with.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getAssistantSessionMessagesList(); + + /** + * + * + *
+   * Optional. The messages to seed the assistant session with.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1beta.AssistantMessage getAssistantSessionMessages(int index); + + /** + * + * + *
+   * Optional. The messages to seed the assistant session with.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getAssistantSessionMessagesCount(); + + /** + * + * + *
+   * Optional. The messages to seed the assistant session with.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getAssistantSessionMessagesOrBuilderList(); + + /** + * + * + *
+   * Optional. The messages to seed the assistant session with.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1beta.AssistantMessageOrBuilder getAssistantSessionMessagesOrBuilder( + int index); +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CustomVoiceSample.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CustomVoiceSample.java new file mode 100644 index 000000000000..b16643f3b734 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CustomVoiceSample.java @@ -0,0 +1,3422 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language 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/app.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +/** + * + * + *
+ * Configuration for a custom voice sample used for voice cloning.
+ * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.CustomVoiceSample} + */ +@com.google.protobuf.Generated +public final class CustomVoiceSample extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.CustomVoiceSample) + CustomVoiceSampleOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "CustomVoiceSample"); + } + + // Use CustomVoiceSample.newBuilder() to construct. + private CustomVoiceSample(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CustomVoiceSample() { + name_ = ""; + voiceSampleGcsUri_ = ""; + consentAudioGcsUri_ = ""; + voiceInstruction_ = ""; + previewAudioContent_ = com.google.protobuf.ByteString.EMPTY; + previewText_ = ""; + warnings_ = java.util.Collections.emptyList(); + voiceInstructionMode_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AppProto + .internal_static_google_cloud_ces_v1beta_CustomVoiceSample_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AppProto + .internal_static_google_cloud_ces_v1beta_CustomVoiceSample_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.CustomVoiceSample.class, + com.google.cloud.ces.v1beta.CustomVoiceSample.Builder.class); + } + + /** + * + * + *
+   * Instruction mode for the voice sample.
+   * 
+ * + * Protobuf enum {@code google.cloud.ces.v1beta.CustomVoiceSample.VoiceInstructionMode} + */ + public enum VoiceInstructionMode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified instruction mode. Defaults to NO_INSTRUCTION.
+     * 
+ * + * VOICE_INSTRUCTION_MODE_UNSPECIFIED = 0; + */ + VOICE_INSTRUCTION_MODE_UNSPECIFIED(0), + /** + * + * + *
+     * No voice instruction will be used.
+     * 
+ * + * NO_INSTRUCTION = 1; + */ + NO_INSTRUCTION(1), + /** + * + * + *
+     * Voice instruction will be automatically generated by AI from the audio
+     * sample.
+     * 
+ * + * GENERATE_INSTRUCTION = 2; + */ + GENERATE_INSTRUCTION(2), + /** + * + * + *
+     * Custom voice instruction provided by the user.
+     * 
+ * + * CUSTOM_INSTRUCTION = 3; + */ + CUSTOM_INSTRUCTION(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "VoiceInstructionMode"); + } + + /** + * + * + *
+     * Unspecified instruction mode. Defaults to NO_INSTRUCTION.
+     * 
+ * + * VOICE_INSTRUCTION_MODE_UNSPECIFIED = 0; + */ + public static final int VOICE_INSTRUCTION_MODE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * No voice instruction will be used.
+     * 
+ * + * NO_INSTRUCTION = 1; + */ + public static final int NO_INSTRUCTION_VALUE = 1; + + /** + * + * + *
+     * Voice instruction will be automatically generated by AI from the audio
+     * sample.
+     * 
+ * + * GENERATE_INSTRUCTION = 2; + */ + public static final int GENERATE_INSTRUCTION_VALUE = 2; + + /** + * + * + *
+     * Custom voice instruction provided by the user.
+     * 
+ * + * CUSTOM_INSTRUCTION = 3; + */ + public static final int CUSTOM_INSTRUCTION_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 VoiceInstructionMode 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 VoiceInstructionMode forNumber(int value) { + switch (value) { + case 0: + return VOICE_INSTRUCTION_MODE_UNSPECIFIED; + case 1: + return NO_INSTRUCTION; + case 2: + return GENERATE_INSTRUCTION; + case 3: + return CUSTOM_INSTRUCTION; + 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 VoiceInstructionMode findValueByNumber(int number) { + return VoiceInstructionMode.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.CustomVoiceSample.getDescriptor().getEnumTypes().get(0); + } + + private static final VoiceInstructionMode[] VALUES = values(); + + public static VoiceInstructionMode 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 VoiceInstructionMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1beta.CustomVoiceSample.VoiceInstructionMode) + } + + public interface WarningOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.CustomVoiceSample.Warning) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Output only. A human-readable description of the warning.
+     * 
+ * + * string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The message. + */ + java.lang.String getMessage(); + + /** + * + * + *
+     * Output only. A human-readable description of the warning.
+     * 
+ * + * string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for message. + */ + com.google.protobuf.ByteString getMessageBytes(); + + /** + * + * + *
+     * Output only. The type of the warning.
+     * 
+ * + * + * .google.cloud.ces.v1beta.CustomVoiceSample.Warning.WarningType type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + + /** + * + * + *
+     * Output only. The type of the warning.
+     * 
+ * + * + * .google.cloud.ces.v1beta.CustomVoiceSample.Warning.WarningType type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The type. + */ + com.google.cloud.ces.v1beta.CustomVoiceSample.Warning.WarningType getType(); + } + + /** + * + * + *
+   * A warning message encountered during voice sample processing.
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.CustomVoiceSample.Warning} + */ + public static final class Warning extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.CustomVoiceSample.Warning) + WarningOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Warning"); + } + + // Use Warning.newBuilder() to construct. + private Warning(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Warning() { + message_ = ""; + type_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AppProto + .internal_static_google_cloud_ces_v1beta_CustomVoiceSample_Warning_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AppProto + .internal_static_google_cloud_ces_v1beta_CustomVoiceSample_Warning_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.CustomVoiceSample.Warning.class, + com.google.cloud.ces.v1beta.CustomVoiceSample.Warning.Builder.class); + } + + /** + * + * + *
+     * Type of warning encountered during voice sample processing.
+     * 
+ * + * Protobuf enum {@code google.cloud.ces.v1beta.CustomVoiceSample.Warning.WarningType} + */ + public enum WarningType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Unspecified warning type.
+       * 
+ * + * WARNING_TYPE_UNSPECIFIED = 0; + */ + WARNING_TYPE_UNSPECIFIED(0), + /** + * + * + *
+       * The audio level of the voice sample is too low (e.g. low RMS
+       * amplitude).
+       * 
+ * + * LOW_AUDIO_LEVEL = 1; + */ + LOW_AUDIO_LEVEL(1), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "WarningType"); + } + + /** + * + * + *
+       * Unspecified warning type.
+       * 
+ * + * WARNING_TYPE_UNSPECIFIED = 0; + */ + public static final int WARNING_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+       * The audio level of the voice sample is too low (e.g. low RMS
+       * amplitude).
+       * 
+ * + * LOW_AUDIO_LEVEL = 1; + */ + public static final int LOW_AUDIO_LEVEL_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 WarningType 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 WarningType forNumber(int value) { + switch (value) { + case 0: + return WARNING_TYPE_UNSPECIFIED; + case 1: + return LOW_AUDIO_LEVEL; + 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 WarningType findValueByNumber(int number) { + return WarningType.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.CustomVoiceSample.Warning.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final WarningType[] VALUES = values(); + + public static WarningType 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 WarningType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1beta.CustomVoiceSample.Warning.WarningType) + } + + public static final int MESSAGE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object message_ = ""; + + /** + * + * + *
+     * Output only. A human-readable description of the warning.
+     * 
+ * + * string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The message. + */ + @java.lang.Override + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } + } + + /** + * + * + *
+     * Output only. A human-readable description of the warning.
+     * 
+ * + * string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for message. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_FIELD_NUMBER = 2; + private int type_ = 0; + + /** + * + * + *
+     * Output only. The type of the warning.
+     * 
+ * + * + * .google.cloud.ces.v1beta.CustomVoiceSample.Warning.WarningType type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
+     * Output only. The type of the warning.
+     * 
+ * + * + * .google.cloud.ces.v1beta.CustomVoiceSample.Warning.WarningType type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.CustomVoiceSample.Warning.WarningType getType() { + com.google.cloud.ces.v1beta.CustomVoiceSample.Warning.WarningType result = + com.google.cloud.ces.v1beta.CustomVoiceSample.Warning.WarningType.forNumber(type_); + return result == null + ? com.google.cloud.ces.v1beta.CustomVoiceSample.Warning.WarningType.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(message_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, message_); + } + if (type_ + != com.google.cloud.ces.v1beta.CustomVoiceSample.Warning.WarningType + .WARNING_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, type_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(message_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, message_); + } + if (type_ + != com.google.cloud.ces.v1beta.CustomVoiceSample.Warning.WarningType + .WARNING_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1beta.CustomVoiceSample.Warning)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.CustomVoiceSample.Warning other = + (com.google.cloud.ces.v1beta.CustomVoiceSample.Warning) obj; + + if (!getMessage().equals(other.getMessage())) return false; + if (type_ != other.type_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.CustomVoiceSample.Warning parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.CustomVoiceSample.Warning parseFrom( + 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.CustomVoiceSample.Warning parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.CustomVoiceSample.Warning parseFrom( + com.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.CustomVoiceSample.Warning parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.CustomVoiceSample.Warning 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.CustomVoiceSample.Warning parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.CustomVoiceSample.Warning parseFrom( + java.io.InputStream 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.CustomVoiceSample.Warning parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.CustomVoiceSample.Warning parseDelimitedFrom( + java.io.InputStream 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.CustomVoiceSample.Warning 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.CustomVoiceSample.Warning parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, 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.CustomVoiceSample.Warning prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 warning message encountered during voice sample processing.
+     * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.CustomVoiceSample.Warning} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.CustomVoiceSample.Warning) + com.google.cloud.ces.v1beta.CustomVoiceSample.WarningOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AppProto + .internal_static_google_cloud_ces_v1beta_CustomVoiceSample_Warning_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AppProto + .internal_static_google_cloud_ces_v1beta_CustomVoiceSample_Warning_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.CustomVoiceSample.Warning.class, + com.google.cloud.ces.v1beta.CustomVoiceSample.Warning.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.CustomVoiceSample.Warning.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + message_ = ""; + type_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.AppProto + .internal_static_google_cloud_ces_v1beta_CustomVoiceSample_Warning_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.CustomVoiceSample.Warning getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.CustomVoiceSample.Warning.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.CustomVoiceSample.Warning build() { + com.google.cloud.ces.v1beta.CustomVoiceSample.Warning result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.CustomVoiceSample.Warning buildPartial() { + com.google.cloud.ces.v1beta.CustomVoiceSample.Warning result = + new com.google.cloud.ces.v1beta.CustomVoiceSample.Warning(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1beta.CustomVoiceSample.Warning result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.message_ = message_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.type_ = type_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.CustomVoiceSample.Warning) { + return mergeFrom((com.google.cloud.ces.v1beta.CustomVoiceSample.Warning) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.CustomVoiceSample.Warning other) { + if (other == com.google.cloud.ces.v1beta.CustomVoiceSample.Warning.getDefaultInstance()) + return this; + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + message_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + type_ = 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.lang.Object message_ = ""; + + /** + * + * + *
+       * Output only. A human-readable description of the warning.
+       * 
+ * + * string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The message. + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Output only. A human-readable description of the warning.
+       * 
+ * + * string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for message. + */ + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Output only. A human-readable description of the warning.
+       * 
+ * + * string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The message to set. + * @return This builder for chaining. + */ + public Builder setMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + message_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. A human-readable description of the warning.
+       * 
+ * + * string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearMessage() { + message_ = getDefaultInstance().getMessage(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. A human-readable description of the warning.
+       * 
+ * + * string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for message to set. + * @return This builder for chaining. + */ + public Builder setMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + message_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int type_ = 0; + + /** + * + * + *
+       * Output only. The type of the warning.
+       * 
+ * + * + * .google.cloud.ces.v1beta.CustomVoiceSample.Warning.WarningType type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
+       * Output only. The type of the warning.
+       * 
+ * + * + * .google.cloud.ces.v1beta.CustomVoiceSample.Warning.WarningType type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + type_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The type of the warning.
+       * 
+ * + * + * .google.cloud.ces.v1beta.CustomVoiceSample.Warning.WarningType type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.CustomVoiceSample.Warning.WarningType getType() { + com.google.cloud.ces.v1beta.CustomVoiceSample.Warning.WarningType result = + com.google.cloud.ces.v1beta.CustomVoiceSample.Warning.WarningType.forNumber(type_); + return result == null + ? com.google.cloud.ces.v1beta.CustomVoiceSample.Warning.WarningType.UNRECOGNIZED + : result; + } + + /** + * + * + *
+       * Output only. The type of the warning.
+       * 
+ * + * + * .google.cloud.ces.v1beta.CustomVoiceSample.Warning.WarningType type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType( + com.google.cloud.ces.v1beta.CustomVoiceSample.Warning.WarningType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + type_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The type of the warning.
+       * 
+ * + * + * .google.cloud.ces.v1beta.CustomVoiceSample.Warning.WarningType type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000002); + type_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.CustomVoiceSample.Warning) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.CustomVoiceSample.Warning) + private static final com.google.cloud.ces.v1beta.CustomVoiceSample.Warning DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.CustomVoiceSample.Warning(); + } + + public static com.google.cloud.ces.v1beta.CustomVoiceSample.Warning getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Warning parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.CustomVoiceSample.Warning getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Optional. The user-defined name for the custom voice sample.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The user-defined name for the custom voice sample.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 VOICE_SAMPLE_GCS_URI_FIELD_NUMBER = 2; + + @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.
+   * 
+ * + * string voice_sample_gcs_uri = 2 [(.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.
+   * 
+ * + * string voice_sample_gcs_uri = 2 [(.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 CONSENT_AUDIO_GCS_URI_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object consentAudioGcsUri_ = ""; + + /** + * + * + *
+   * Optional. Consent audio for voice cloning.
+   * 
+ * + * string consent_audio_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The consentAudioGcsUri. + */ + @java.lang.Override + public java.lang.String getConsentAudioGcsUri() { + java.lang.Object ref = consentAudioGcsUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + consentAudioGcsUri_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Consent audio for voice cloning.
+   * 
+ * + * string consent_audio_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for consentAudioGcsUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getConsentAudioGcsUriBytes() { + java.lang.Object ref = consentAudioGcsUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + consentAudioGcsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VOICE_INSTRUCTION_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object voiceInstruction_ = ""; + + /** + * + * + *
+   * Optional. Natural language instructions for voice style, tone, pacing, or
+   * pronunciation.
+   * 
+ * + * string voice_instruction = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The voiceInstruction. + */ + @java.lang.Override + public java.lang.String getVoiceInstruction() { + java.lang.Object ref = voiceInstruction_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + voiceInstruction_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Natural language instructions for voice style, tone, pacing, or
+   * pronunciation.
+   * 
+ * + * string voice_instruction = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for voiceInstruction. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVoiceInstructionBytes() { + java.lang.Object ref = voiceInstruction_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + voiceInstruction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PREVIEW_AUDIO_CONTENT_FIELD_NUMBER = 5; + private com.google.protobuf.ByteString previewAudioContent_ = + com.google.protobuf.ByteString.EMPTY; + + /** + * + * + *
+   * Output only. Synthesized preview audio for custom voice, formatted as
+   * canonical WAV (LINEAR16, 24kHz, 16-bit, mono).
+   * 
+ * + * bytes preview_audio_content = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The previewAudioContent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPreviewAudioContent() { + return previewAudioContent_; + } + + public static final int PREVIEW_TEXT_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object previewText_ = ""; + + /** + * + * + *
+   * Optional. Text for synthesizing preview audio for custom voice.
+   * 
+ * + * string preview_text = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The previewText. + */ + @java.lang.Override + public java.lang.String getPreviewText() { + java.lang.Object ref = previewText_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + previewText_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Text for synthesizing preview audio for custom voice.
+   * 
+ * + * string preview_text = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for previewText. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPreviewTextBytes() { + java.lang.Object ref = previewText_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + previewText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WARNINGS_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private java.util.List warnings_; + + /** + * + * + *
+   * Output only. Warning messages encountered during voice clone processing
+   * (e.g. low audio level).
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample.Warning warnings = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getWarningsList() { + return warnings_; + } + + /** + * + * + *
+   * Output only. Warning messages encountered during voice clone processing
+   * (e.g. low audio level).
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample.Warning warnings = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getWarningsOrBuilderList() { + return warnings_; + } + + /** + * + * + *
+   * Output only. Warning messages encountered during voice clone processing
+   * (e.g. low audio level).
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample.Warning warnings = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getWarningsCount() { + return warnings_.size(); + } + + /** + * + * + *
+   * Output only. Warning messages encountered during voice clone processing
+   * (e.g. low audio level).
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample.Warning warnings = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.CustomVoiceSample.Warning getWarnings(int index) { + return warnings_.get(index); + } + + /** + * + * + *
+   * Output only. Warning messages encountered during voice clone processing
+   * (e.g. low audio level).
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample.Warning warnings = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.CustomVoiceSample.WarningOrBuilder getWarningsOrBuilder( + int index) { + return warnings_.get(index); + } + + public static final int VOICE_INSTRUCTION_MODE_FIELD_NUMBER = 8; + private int voiceInstructionMode_ = 0; + + /** + * + * + *
+   * Optional. Instruction mode for the voice sample. If unspecified, defaults
+   * to NO_INSTRUCTION.
+   * 
+ * + * + * .google.cloud.ces.v1beta.CustomVoiceSample.VoiceInstructionMode voice_instruction_mode = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for voiceInstructionMode. + */ + @java.lang.Override + public int getVoiceInstructionModeValue() { + return voiceInstructionMode_; + } + + /** + * + * + *
+   * Optional. Instruction mode for the voice sample. If unspecified, defaults
+   * to NO_INSTRUCTION.
+   * 
+ * + * + * .google.cloud.ces.v1beta.CustomVoiceSample.VoiceInstructionMode voice_instruction_mode = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The voiceInstructionMode. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.CustomVoiceSample.VoiceInstructionMode + getVoiceInstructionMode() { + com.google.cloud.ces.v1beta.CustomVoiceSample.VoiceInstructionMode result = + com.google.cloud.ces.v1beta.CustomVoiceSample.VoiceInstructionMode.forNumber( + voiceInstructionMode_); + return result == null + ? com.google.cloud.ces.v1beta.CustomVoiceSample.VoiceInstructionMode.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(voiceSampleGcsUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, voiceSampleGcsUri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(consentAudioGcsUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, consentAudioGcsUri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(voiceInstruction_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, voiceInstruction_); + } + if (!previewAudioContent_.isEmpty()) { + output.writeBytes(5, previewAudioContent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(previewText_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, previewText_); + } + for (int i = 0; i < warnings_.size(); i++) { + output.writeMessage(7, warnings_.get(i)); + } + if (voiceInstructionMode_ + != com.google.cloud.ces.v1beta.CustomVoiceSample.VoiceInstructionMode + .VOICE_INSTRUCTION_MODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(8, voiceInstructionMode_); + } + 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(voiceSampleGcsUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, voiceSampleGcsUri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(consentAudioGcsUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, consentAudioGcsUri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(voiceInstruction_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, voiceInstruction_); + } + if (!previewAudioContent_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(5, previewAudioContent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(previewText_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, previewText_); + } + for (int i = 0; i < warnings_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, warnings_.get(i)); + } + if (voiceInstructionMode_ + != com.google.cloud.ces.v1beta.CustomVoiceSample.VoiceInstructionMode + .VOICE_INSTRUCTION_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, voiceInstructionMode_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.CustomVoiceSample)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.CustomVoiceSample other = + (com.google.cloud.ces.v1beta.CustomVoiceSample) obj; + + if (!getName().equals(other.getName())) return false; + if (!getVoiceSampleGcsUri().equals(other.getVoiceSampleGcsUri())) return false; + if (!getConsentAudioGcsUri().equals(other.getConsentAudioGcsUri())) return false; + if (!getVoiceInstruction().equals(other.getVoiceInstruction())) return false; + if (!getPreviewAudioContent().equals(other.getPreviewAudioContent())) return false; + if (!getPreviewText().equals(other.getPreviewText())) return false; + if (!getWarningsList().equals(other.getWarningsList())) return false; + if (voiceInstructionMode_ != other.voiceInstructionMode_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + 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) + VOICE_SAMPLE_GCS_URI_FIELD_NUMBER; + hash = (53 * hash) + getVoiceSampleGcsUri().hashCode(); + hash = (37 * hash) + CONSENT_AUDIO_GCS_URI_FIELD_NUMBER; + hash = (53 * hash) + getConsentAudioGcsUri().hashCode(); + hash = (37 * hash) + VOICE_INSTRUCTION_FIELD_NUMBER; + hash = (53 * hash) + getVoiceInstruction().hashCode(); + hash = (37 * hash) + PREVIEW_AUDIO_CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getPreviewAudioContent().hashCode(); + hash = (37 * hash) + PREVIEW_TEXT_FIELD_NUMBER; + hash = (53 * hash) + getPreviewText().hashCode(); + if (getWarningsCount() > 0) { + hash = (37 * hash) + WARNINGS_FIELD_NUMBER; + hash = (53 * hash) + getWarningsList().hashCode(); + } + hash = (37 * hash) + VOICE_INSTRUCTION_MODE_FIELD_NUMBER; + hash = (53 * hash) + voiceInstructionMode_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.CustomVoiceSample parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.CustomVoiceSample parseFrom( + 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.CustomVoiceSample parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.CustomVoiceSample parseFrom( + com.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.CustomVoiceSample parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.CustomVoiceSample 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.CustomVoiceSample parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.CustomVoiceSample parseFrom( + java.io.InputStream 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.CustomVoiceSample parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.CustomVoiceSample parseDelimitedFrom( + java.io.InputStream 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.CustomVoiceSample 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.CustomVoiceSample parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, 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.CustomVoiceSample prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 a custom voice sample used for voice cloning.
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.CustomVoiceSample} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.CustomVoiceSample) + com.google.cloud.ces.v1beta.CustomVoiceSampleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AppProto + .internal_static_google_cloud_ces_v1beta_CustomVoiceSample_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AppProto + .internal_static_google_cloud_ces_v1beta_CustomVoiceSample_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.CustomVoiceSample.class, + com.google.cloud.ces.v1beta.CustomVoiceSample.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.CustomVoiceSample.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + voiceSampleGcsUri_ = ""; + consentAudioGcsUri_ = ""; + voiceInstruction_ = ""; + previewAudioContent_ = com.google.protobuf.ByteString.EMPTY; + previewText_ = ""; + if (warningsBuilder_ == null) { + warnings_ = java.util.Collections.emptyList(); + } else { + warnings_ = null; + warningsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000040); + voiceInstructionMode_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.AppProto + .internal_static_google_cloud_ces_v1beta_CustomVoiceSample_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.CustomVoiceSample getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.CustomVoiceSample.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.CustomVoiceSample build() { + com.google.cloud.ces.v1beta.CustomVoiceSample result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.CustomVoiceSample buildPartial() { + com.google.cloud.ces.v1beta.CustomVoiceSample result = + new com.google.cloud.ces.v1beta.CustomVoiceSample(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.ces.v1beta.CustomVoiceSample result) { + if (warningsBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0)) { + warnings_ = java.util.Collections.unmodifiableList(warnings_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.warnings_ = warnings_; + } else { + result.warnings_ = warningsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.ces.v1beta.CustomVoiceSample result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.voiceSampleGcsUri_ = voiceSampleGcsUri_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.consentAudioGcsUri_ = consentAudioGcsUri_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.voiceInstruction_ = voiceInstruction_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.previewAudioContent_ = previewAudioContent_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.previewText_ = previewText_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.voiceInstructionMode_ = voiceInstructionMode_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.CustomVoiceSample) { + return mergeFrom((com.google.cloud.ces.v1beta.CustomVoiceSample) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.CustomVoiceSample other) { + if (other == com.google.cloud.ces.v1beta.CustomVoiceSample.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getVoiceSampleGcsUri().isEmpty()) { + voiceSampleGcsUri_ = other.voiceSampleGcsUri_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getConsentAudioGcsUri().isEmpty()) { + consentAudioGcsUri_ = other.consentAudioGcsUri_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getVoiceInstruction().isEmpty()) { + voiceInstruction_ = other.voiceInstruction_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getPreviewAudioContent().isEmpty()) { + setPreviewAudioContent(other.getPreviewAudioContent()); + } + if (!other.getPreviewText().isEmpty()) { + previewText_ = other.previewText_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (warningsBuilder_ == null) { + if (!other.warnings_.isEmpty()) { + if (warnings_.isEmpty()) { + warnings_ = other.warnings_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureWarningsIsMutable(); + warnings_.addAll(other.warnings_); + } + onChanged(); + } + } else { + if (!other.warnings_.isEmpty()) { + if (warningsBuilder_.isEmpty()) { + warningsBuilder_.dispose(); + warningsBuilder_ = null; + warnings_ = other.warnings_; + bitField0_ = (bitField0_ & ~0x00000040); + warningsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetWarningsFieldBuilder() + : null; + } else { + warningsBuilder_.addAllMessages(other.warnings_); + } + } + } + if (other.voiceInstructionMode_ != 0) { + setVoiceInstructionModeValue(other.getVoiceInstructionModeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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: + { + voiceSampleGcsUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + consentAudioGcsUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + voiceInstruction_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + previewAudioContent_ = input.readBytes(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + previewText_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + com.google.cloud.ces.v1beta.CustomVoiceSample.Warning m = + input.readMessage( + com.google.cloud.ces.v1beta.CustomVoiceSample.Warning.parser(), + extensionRegistry); + if (warningsBuilder_ == null) { + ensureWarningsIsMutable(); + warnings_.add(m); + } else { + warningsBuilder_.addMessage(m); + } + break; + } // case 58 + case 64: + { + voiceInstructionMode_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 64 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Optional. The user-defined name for the custom voice sample.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+     * Optional. The user-defined name for the custom voice sample.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+     * Optional. The user-defined name for the custom voice sample.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + + /** + * + * + *
+     * Optional. The user-defined name for the custom voice sample.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The user-defined name for the custom voice sample.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 voiceSampleGcsUri_ = ""; + + /** + * + * + *
+     * Optional. The Cloud Storage URI to the audio sample for voice cloning. The
+     * audio sample should be a mono-channel, 24kHz WAV file.
+     * 
+ * + * string voice_sample_gcs_uri = 2 [(.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.
+     * 
+ * + * string voice_sample_gcs_uri = 2 [(.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.
+     * 
+ * + * string voice_sample_gcs_uri = 2 [(.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.
+     * 
+ * + * string voice_sample_gcs_uri = 2 [(.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.
+     * 
+ * + * string voice_sample_gcs_uri = 2 [(.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 java.lang.Object consentAudioGcsUri_ = ""; + + /** + * + * + *
+     * Optional. Consent audio for voice cloning.
+     * 
+ * + * string consent_audio_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The consentAudioGcsUri. + */ + public java.lang.String getConsentAudioGcsUri() { + java.lang.Object ref = consentAudioGcsUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + consentAudioGcsUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Consent audio for voice cloning.
+     * 
+ * + * string consent_audio_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for consentAudioGcsUri. + */ + public com.google.protobuf.ByteString getConsentAudioGcsUriBytes() { + java.lang.Object ref = consentAudioGcsUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + consentAudioGcsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Consent audio for voice cloning.
+     * 
+ * + * string consent_audio_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The consentAudioGcsUri to set. + * @return This builder for chaining. + */ + public Builder setConsentAudioGcsUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + consentAudioGcsUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Consent audio for voice cloning.
+     * 
+ * + * string consent_audio_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearConsentAudioGcsUri() { + consentAudioGcsUri_ = getDefaultInstance().getConsentAudioGcsUri(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Consent audio for voice cloning.
+     * 
+ * + * string consent_audio_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for consentAudioGcsUri to set. + * @return This builder for chaining. + */ + public Builder setConsentAudioGcsUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + consentAudioGcsUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object voiceInstruction_ = ""; + + /** + * + * + *
+     * Optional. Natural language instructions for voice style, tone, pacing, or
+     * pronunciation.
+     * 
+ * + * string voice_instruction = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The voiceInstruction. + */ + public java.lang.String getVoiceInstruction() { + java.lang.Object ref = voiceInstruction_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + voiceInstruction_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Natural language instructions for voice style, tone, pacing, or
+     * pronunciation.
+     * 
+ * + * string voice_instruction = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for voiceInstruction. + */ + public com.google.protobuf.ByteString getVoiceInstructionBytes() { + java.lang.Object ref = voiceInstruction_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + voiceInstruction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Natural language instructions for voice style, tone, pacing, or
+     * pronunciation.
+     * 
+ * + * string voice_instruction = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The voiceInstruction to set. + * @return This builder for chaining. + */ + public Builder setVoiceInstruction(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + voiceInstruction_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Natural language instructions for voice style, tone, pacing, or
+     * pronunciation.
+     * 
+ * + * string voice_instruction = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearVoiceInstruction() { + voiceInstruction_ = getDefaultInstance().getVoiceInstruction(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Natural language instructions for voice style, tone, pacing, or
+     * pronunciation.
+     * 
+ * + * string voice_instruction = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for voiceInstruction to set. + * @return This builder for chaining. + */ + public Builder setVoiceInstructionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + voiceInstruction_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString previewAudioContent_ = + com.google.protobuf.ByteString.EMPTY; + + /** + * + * + *
+     * Output only. Synthesized preview audio for custom voice, formatted as
+     * canonical WAV (LINEAR16, 24kHz, 16-bit, mono).
+     * 
+ * + * bytes preview_audio_content = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The previewAudioContent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPreviewAudioContent() { + return previewAudioContent_; + } + + /** + * + * + *
+     * Output only. Synthesized preview audio for custom voice, formatted as
+     * canonical WAV (LINEAR16, 24kHz, 16-bit, mono).
+     * 
+ * + * bytes preview_audio_content = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The previewAudioContent to set. + * @return This builder for chaining. + */ + public Builder setPreviewAudioContent(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + previewAudioContent_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Synthesized preview audio for custom voice, formatted as
+     * canonical WAV (LINEAR16, 24kHz, 16-bit, mono).
+     * 
+ * + * bytes preview_audio_content = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearPreviewAudioContent() { + bitField0_ = (bitField0_ & ~0x00000010); + previewAudioContent_ = getDefaultInstance().getPreviewAudioContent(); + onChanged(); + return this; + } + + private java.lang.Object previewText_ = ""; + + /** + * + * + *
+     * Optional. Text for synthesizing preview audio for custom voice.
+     * 
+ * + * string preview_text = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The previewText. + */ + public java.lang.String getPreviewText() { + java.lang.Object ref = previewText_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + previewText_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Text for synthesizing preview audio for custom voice.
+     * 
+ * + * string preview_text = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for previewText. + */ + public com.google.protobuf.ByteString getPreviewTextBytes() { + java.lang.Object ref = previewText_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + previewText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Text for synthesizing preview audio for custom voice.
+     * 
+ * + * string preview_text = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The previewText to set. + * @return This builder for chaining. + */ + public Builder setPreviewText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + previewText_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Text for synthesizing preview audio for custom voice.
+     * 
+ * + * string preview_text = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPreviewText() { + previewText_ = getDefaultInstance().getPreviewText(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Text for synthesizing preview audio for custom voice.
+     * 
+ * + * string preview_text = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for previewText to set. + * @return This builder for chaining. + */ + public Builder setPreviewTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + previewText_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.util.List warnings_ = + java.util.Collections.emptyList(); + + private void ensureWarningsIsMutable() { + if (!((bitField0_ & 0x00000040) != 0)) { + warnings_ = + new java.util.ArrayList( + warnings_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.CustomVoiceSample.Warning, + com.google.cloud.ces.v1beta.CustomVoiceSample.Warning.Builder, + com.google.cloud.ces.v1beta.CustomVoiceSample.WarningOrBuilder> + warningsBuilder_; + + /** + * + * + *
+     * Output only. Warning messages encountered during voice clone processing
+     * (e.g. low audio level).
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample.Warning warnings = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getWarningsList() { + if (warningsBuilder_ == null) { + return java.util.Collections.unmodifiableList(warnings_); + } else { + return warningsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Output only. Warning messages encountered during voice clone processing
+     * (e.g. low audio level).
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample.Warning warnings = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getWarningsCount() { + if (warningsBuilder_ == null) { + return warnings_.size(); + } else { + return warningsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Output only. Warning messages encountered during voice clone processing
+     * (e.g. low audio level).
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample.Warning warnings = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1beta.CustomVoiceSample.Warning getWarnings(int index) { + if (warningsBuilder_ == null) { + return warnings_.get(index); + } else { + return warningsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Output only. Warning messages encountered during voice clone processing
+     * (e.g. low audio level).
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample.Warning warnings = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setWarnings( + int index, com.google.cloud.ces.v1beta.CustomVoiceSample.Warning value) { + if (warningsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWarningsIsMutable(); + warnings_.set(index, value); + onChanged(); + } else { + warningsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. Warning messages encountered during voice clone processing
+     * (e.g. low audio level).
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample.Warning warnings = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setWarnings( + int index, com.google.cloud.ces.v1beta.CustomVoiceSample.Warning.Builder builderForValue) { + if (warningsBuilder_ == null) { + ensureWarningsIsMutable(); + warnings_.set(index, builderForValue.build()); + onChanged(); + } else { + warningsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Warning messages encountered during voice clone processing
+     * (e.g. low audio level).
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample.Warning warnings = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addWarnings(com.google.cloud.ces.v1beta.CustomVoiceSample.Warning value) { + if (warningsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWarningsIsMutable(); + warnings_.add(value); + onChanged(); + } else { + warningsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Output only. Warning messages encountered during voice clone processing
+     * (e.g. low audio level).
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample.Warning warnings = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addWarnings( + int index, com.google.cloud.ces.v1beta.CustomVoiceSample.Warning value) { + if (warningsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWarningsIsMutable(); + warnings_.add(index, value); + onChanged(); + } else { + warningsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. Warning messages encountered during voice clone processing
+     * (e.g. low audio level).
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample.Warning warnings = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addWarnings( + com.google.cloud.ces.v1beta.CustomVoiceSample.Warning.Builder builderForValue) { + if (warningsBuilder_ == null) { + ensureWarningsIsMutable(); + warnings_.add(builderForValue.build()); + onChanged(); + } else { + warningsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Warning messages encountered during voice clone processing
+     * (e.g. low audio level).
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample.Warning warnings = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addWarnings( + int index, com.google.cloud.ces.v1beta.CustomVoiceSample.Warning.Builder builderForValue) { + if (warningsBuilder_ == null) { + ensureWarningsIsMutable(); + warnings_.add(index, builderForValue.build()); + onChanged(); + } else { + warningsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Warning messages encountered during voice clone processing
+     * (e.g. low audio level).
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample.Warning warnings = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllWarnings( + java.lang.Iterable + values) { + if (warningsBuilder_ == null) { + ensureWarningsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, warnings_); + onChanged(); + } else { + warningsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Output only. Warning messages encountered during voice clone processing
+     * (e.g. low audio level).
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample.Warning warnings = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearWarnings() { + if (warningsBuilder_ == null) { + warnings_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + warningsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. Warning messages encountered during voice clone processing
+     * (e.g. low audio level).
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample.Warning warnings = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeWarnings(int index) { + if (warningsBuilder_ == null) { + ensureWarningsIsMutable(); + warnings_.remove(index); + onChanged(); + } else { + warningsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Output only. Warning messages encountered during voice clone processing
+     * (e.g. low audio level).
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample.Warning warnings = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1beta.CustomVoiceSample.Warning.Builder getWarningsBuilder( + int index) { + return internalGetWarningsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Output only. Warning messages encountered during voice clone processing
+     * (e.g. low audio level).
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample.Warning warnings = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1beta.CustomVoiceSample.WarningOrBuilder getWarningsOrBuilder( + int index) { + if (warningsBuilder_ == null) { + return warnings_.get(index); + } else { + return warningsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Output only. Warning messages encountered during voice clone processing
+     * (e.g. low audio level).
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample.Warning warnings = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getWarningsOrBuilderList() { + if (warningsBuilder_ != null) { + return warningsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(warnings_); + } + } + + /** + * + * + *
+     * Output only. Warning messages encountered during voice clone processing
+     * (e.g. low audio level).
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample.Warning warnings = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1beta.CustomVoiceSample.Warning.Builder addWarningsBuilder() { + return internalGetWarningsFieldBuilder() + .addBuilder(com.google.cloud.ces.v1beta.CustomVoiceSample.Warning.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. Warning messages encountered during voice clone processing
+     * (e.g. low audio level).
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample.Warning warnings = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1beta.CustomVoiceSample.Warning.Builder addWarningsBuilder( + int index) { + return internalGetWarningsFieldBuilder() + .addBuilder( + index, com.google.cloud.ces.v1beta.CustomVoiceSample.Warning.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. Warning messages encountered during voice clone processing
+     * (e.g. low audio level).
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample.Warning warnings = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getWarningsBuilderList() { + return internalGetWarningsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.CustomVoiceSample.Warning, + com.google.cloud.ces.v1beta.CustomVoiceSample.Warning.Builder, + com.google.cloud.ces.v1beta.CustomVoiceSample.WarningOrBuilder> + internalGetWarningsFieldBuilder() { + if (warningsBuilder_ == null) { + warningsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.CustomVoiceSample.Warning, + com.google.cloud.ces.v1beta.CustomVoiceSample.Warning.Builder, + com.google.cloud.ces.v1beta.CustomVoiceSample.WarningOrBuilder>( + warnings_, ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean()); + warnings_ = null; + } + return warningsBuilder_; + } + + private int voiceInstructionMode_ = 0; + + /** + * + * + *
+     * Optional. Instruction mode for the voice sample. If unspecified, defaults
+     * to NO_INSTRUCTION.
+     * 
+ * + * + * .google.cloud.ces.v1beta.CustomVoiceSample.VoiceInstructionMode voice_instruction_mode = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for voiceInstructionMode. + */ + @java.lang.Override + public int getVoiceInstructionModeValue() { + return voiceInstructionMode_; + } + + /** + * + * + *
+     * Optional. Instruction mode for the voice sample. If unspecified, defaults
+     * to NO_INSTRUCTION.
+     * 
+ * + * + * .google.cloud.ces.v1beta.CustomVoiceSample.VoiceInstructionMode voice_instruction_mode = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for voiceInstructionMode to set. + * @return This builder for chaining. + */ + public Builder setVoiceInstructionModeValue(int value) { + voiceInstructionMode_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Instruction mode for the voice sample. If unspecified, defaults
+     * to NO_INSTRUCTION.
+     * 
+ * + * + * .google.cloud.ces.v1beta.CustomVoiceSample.VoiceInstructionMode voice_instruction_mode = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The voiceInstructionMode. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.CustomVoiceSample.VoiceInstructionMode + getVoiceInstructionMode() { + com.google.cloud.ces.v1beta.CustomVoiceSample.VoiceInstructionMode result = + com.google.cloud.ces.v1beta.CustomVoiceSample.VoiceInstructionMode.forNumber( + voiceInstructionMode_); + return result == null + ? com.google.cloud.ces.v1beta.CustomVoiceSample.VoiceInstructionMode.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Optional. Instruction mode for the voice sample. If unspecified, defaults
+     * to NO_INSTRUCTION.
+     * 
+ * + * + * .google.cloud.ces.v1beta.CustomVoiceSample.VoiceInstructionMode voice_instruction_mode = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The voiceInstructionMode to set. + * @return This builder for chaining. + */ + public Builder setVoiceInstructionMode( + com.google.cloud.ces.v1beta.CustomVoiceSample.VoiceInstructionMode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + voiceInstructionMode_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Instruction mode for the voice sample. If unspecified, defaults
+     * to NO_INSTRUCTION.
+     * 
+ * + * + * .google.cloud.ces.v1beta.CustomVoiceSample.VoiceInstructionMode voice_instruction_mode = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearVoiceInstructionMode() { + bitField0_ = (bitField0_ & ~0x00000080); + voiceInstructionMode_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.CustomVoiceSample) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.CustomVoiceSample) + private static final com.google.cloud.ces.v1beta.CustomVoiceSample DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.CustomVoiceSample(); + } + + public static com.google.cloud.ces.v1beta.CustomVoiceSample getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomVoiceSample parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.CustomVoiceSample getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CustomVoiceSampleOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CustomVoiceSampleOrBuilder.java new file mode 100644 index 000000000000..d021b07d93e1 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CustomVoiceSampleOrBuilder.java @@ -0,0 +1,279 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language 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/app.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public interface CustomVoiceSampleOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.CustomVoiceSample) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The user-defined name for the custom voice sample.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Optional. The user-defined name for the custom voice sample.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. The Cloud Storage URI to the audio sample for voice cloning. The
+   * audio sample should be a mono-channel, 24kHz WAV file.
+   * 
+ * + * string voice_sample_gcs_uri = 2 [(.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.
+   * 
+ * + * string voice_sample_gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for voiceSampleGcsUri. + */ + com.google.protobuf.ByteString getVoiceSampleGcsUriBytes(); + + /** + * + * + *
+   * Optional. Consent audio for voice cloning.
+   * 
+ * + * string consent_audio_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The consentAudioGcsUri. + */ + java.lang.String getConsentAudioGcsUri(); + + /** + * + * + *
+   * Optional. Consent audio for voice cloning.
+   * 
+ * + * string consent_audio_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for consentAudioGcsUri. + */ + com.google.protobuf.ByteString getConsentAudioGcsUriBytes(); + + /** + * + * + *
+   * Optional. Natural language instructions for voice style, tone, pacing, or
+   * pronunciation.
+   * 
+ * + * string voice_instruction = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The voiceInstruction. + */ + java.lang.String getVoiceInstruction(); + + /** + * + * + *
+   * Optional. Natural language instructions for voice style, tone, pacing, or
+   * pronunciation.
+   * 
+ * + * string voice_instruction = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for voiceInstruction. + */ + com.google.protobuf.ByteString getVoiceInstructionBytes(); + + /** + * + * + *
+   * Output only. Synthesized preview audio for custom voice, formatted as
+   * canonical WAV (LINEAR16, 24kHz, 16-bit, mono).
+   * 
+ * + * bytes preview_audio_content = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The previewAudioContent. + */ + com.google.protobuf.ByteString getPreviewAudioContent(); + + /** + * + * + *
+   * Optional. Text for synthesizing preview audio for custom voice.
+   * 
+ * + * string preview_text = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The previewText. + */ + java.lang.String getPreviewText(); + + /** + * + * + *
+   * Optional. Text for synthesizing preview audio for custom voice.
+   * 
+ * + * string preview_text = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for previewText. + */ + com.google.protobuf.ByteString getPreviewTextBytes(); + + /** + * + * + *
+   * Output only. Warning messages encountered during voice clone processing
+   * (e.g. low audio level).
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample.Warning warnings = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getWarningsList(); + + /** + * + * + *
+   * Output only. Warning messages encountered during voice clone processing
+   * (e.g. low audio level).
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample.Warning warnings = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.ces.v1beta.CustomVoiceSample.Warning getWarnings(int index); + + /** + * + * + *
+   * Output only. Warning messages encountered during voice clone processing
+   * (e.g. low audio level).
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample.Warning warnings = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getWarningsCount(); + + /** + * + * + *
+   * Output only. Warning messages encountered during voice clone processing
+   * (e.g. low audio level).
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample.Warning warnings = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getWarningsOrBuilderList(); + + /** + * + * + *
+   * Output only. Warning messages encountered during voice clone processing
+   * (e.g. low audio level).
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample.Warning warnings = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.ces.v1beta.CustomVoiceSample.WarningOrBuilder getWarningsOrBuilder(int index); + + /** + * + * + *
+   * Optional. Instruction mode for the voice sample. If unspecified, defaults
+   * to NO_INSTRUCTION.
+   * 
+ * + * + * .google.cloud.ces.v1beta.CustomVoiceSample.VoiceInstructionMode voice_instruction_mode = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for voiceInstructionMode. + */ + int getVoiceInstructionModeValue(); + + /** + * + * + *
+   * Optional. Instruction mode for the voice sample. If unspecified, defaults
+   * to NO_INSTRUCTION.
+   * 
+ * + * + * .google.cloud.ces.v1beta.CustomVoiceSample.VoiceInstructionMode voice_instruction_mode = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The voiceInstructionMode. + */ + com.google.cloud.ces.v1beta.CustomVoiceSample.VoiceInstructionMode getVoiceInstructionMode(); +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DashboardSettings.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DashboardSettings.java new file mode 100644 index 000000000000..6badb300cf00 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DashboardSettings.java @@ -0,0 +1,639 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language 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/app.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +/** + * + * + *
+ * Settings for dashboards associated with the app, that show up in the
+ * Monitoring view.
+ * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.DashboardSettings} + */ +@com.google.protobuf.Generated +public final class DashboardSettings extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.DashboardSettings) + DashboardSettingsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DashboardSettings"); + } + + // Use DashboardSettings.newBuilder() to construct. + private DashboardSettings(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DashboardSettings() { + defaultDashboard_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AppProto + .internal_static_google_cloud_ces_v1beta_DashboardSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AppProto + .internal_static_google_cloud_ces_v1beta_DashboardSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.DashboardSettings.class, + com.google.cloud.ces.v1beta.DashboardSettings.Builder.class); + } + + public static final int DEFAULT_DASHBOARD_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object defaultDashboard_ = ""; + + /** + * + * + *
+   * Optional. The resource name of the default Contact Center Insights
+   * dashboard associated with the app. This is the dashboard that will be
+   * displayed when users navigate to the Monitoring view for the app.
+   *
+   * Format: `projects/{project}/locations/{location}/dashboards/{dashboard}`
+   * 
+ * + * + * string default_dashboard = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The defaultDashboard. + */ + @java.lang.Override + public java.lang.String getDefaultDashboard() { + java.lang.Object ref = defaultDashboard_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultDashboard_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The resource name of the default Contact Center Insights
+   * dashboard associated with the app. This is the dashboard that will be
+   * displayed when users navigate to the Monitoring view for the app.
+   *
+   * Format: `projects/{project}/locations/{location}/dashboards/{dashboard}`
+   * 
+ * + * + * string default_dashboard = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for defaultDashboard. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDefaultDashboardBytes() { + java.lang.Object ref = defaultDashboard_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultDashboard_ = 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(defaultDashboard_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, defaultDashboard_); + } + 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(defaultDashboard_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, defaultDashboard_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.DashboardSettings)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.DashboardSettings other = + (com.google.cloud.ces.v1beta.DashboardSettings) obj; + + if (!getDefaultDashboard().equals(other.getDefaultDashboard())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DEFAULT_DASHBOARD_FIELD_NUMBER; + hash = (53 * hash) + getDefaultDashboard().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.DashboardSettings parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.DashboardSettings parseFrom( + 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.DashboardSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.DashboardSettings parseFrom( + com.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.DashboardSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.DashboardSettings 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.DashboardSettings parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.DashboardSettings parseFrom( + java.io.InputStream 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.DashboardSettings parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.DashboardSettings parseDelimitedFrom( + java.io.InputStream 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.DashboardSettings 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.DashboardSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, 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.DashboardSettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 dashboards associated with the app, that show up in the
+   * Monitoring view.
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.DashboardSettings} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.DashboardSettings) + com.google.cloud.ces.v1beta.DashboardSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AppProto + .internal_static_google_cloud_ces_v1beta_DashboardSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AppProto + .internal_static_google_cloud_ces_v1beta_DashboardSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.DashboardSettings.class, + com.google.cloud.ces.v1beta.DashboardSettings.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.DashboardSettings.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + defaultDashboard_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.AppProto + .internal_static_google_cloud_ces_v1beta_DashboardSettings_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.DashboardSettings getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.DashboardSettings.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.DashboardSettings build() { + com.google.cloud.ces.v1beta.DashboardSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.DashboardSettings buildPartial() { + com.google.cloud.ces.v1beta.DashboardSettings result = + new com.google.cloud.ces.v1beta.DashboardSettings(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1beta.DashboardSettings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.defaultDashboard_ = defaultDashboard_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.DashboardSettings) { + return mergeFrom((com.google.cloud.ces.v1beta.DashboardSettings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.DashboardSettings other) { + if (other == com.google.cloud.ces.v1beta.DashboardSettings.getDefaultInstance()) return this; + if (!other.getDefaultDashboard().isEmpty()) { + defaultDashboard_ = other.defaultDashboard_; + 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: + { + defaultDashboard_ = 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 defaultDashboard_ = ""; + + /** + * + * + *
+     * Optional. The resource name of the default Contact Center Insights
+     * dashboard associated with the app. This is the dashboard that will be
+     * displayed when users navigate to the Monitoring view for the app.
+     *
+     * Format: `projects/{project}/locations/{location}/dashboards/{dashboard}`
+     * 
+ * + * + * string default_dashboard = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The defaultDashboard. + */ + public java.lang.String getDefaultDashboard() { + java.lang.Object ref = defaultDashboard_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultDashboard_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The resource name of the default Contact Center Insights
+     * dashboard associated with the app. This is the dashboard that will be
+     * displayed when users navigate to the Monitoring view for the app.
+     *
+     * Format: `projects/{project}/locations/{location}/dashboards/{dashboard}`
+     * 
+ * + * + * string default_dashboard = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for defaultDashboard. + */ + public com.google.protobuf.ByteString getDefaultDashboardBytes() { + java.lang.Object ref = defaultDashboard_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultDashboard_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The resource name of the default Contact Center Insights
+     * dashboard associated with the app. This is the dashboard that will be
+     * displayed when users navigate to the Monitoring view for the app.
+     *
+     * Format: `projects/{project}/locations/{location}/dashboards/{dashboard}`
+     * 
+ * + * + * string default_dashboard = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The defaultDashboard to set. + * @return This builder for chaining. + */ + public Builder setDefaultDashboard(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + defaultDashboard_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The resource name of the default Contact Center Insights
+     * dashboard associated with the app. This is the dashboard that will be
+     * displayed when users navigate to the Monitoring view for the app.
+     *
+     * Format: `projects/{project}/locations/{location}/dashboards/{dashboard}`
+     * 
+ * + * + * string default_dashboard = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearDefaultDashboard() { + defaultDashboard_ = getDefaultInstance().getDefaultDashboard(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The resource name of the default Contact Center Insights
+     * dashboard associated with the app. This is the dashboard that will be
+     * displayed when users navigate to the Monitoring view for the app.
+     *
+     * Format: `projects/{project}/locations/{location}/dashboards/{dashboard}`
+     * 
+ * + * + * string default_dashboard = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for defaultDashboard to set. + * @return This builder for chaining. + */ + public Builder setDefaultDashboardBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + defaultDashboard_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.DashboardSettings) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.DashboardSettings) + private static final com.google.cloud.ces.v1beta.DashboardSettings DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.DashboardSettings(); + } + + public static com.google.cloud.ces.v1beta.DashboardSettings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DashboardSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.DashboardSettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DashboardSettingsOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DashboardSettingsOrBuilder.java new file mode 100644 index 000000000000..94980e16c8de --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DashboardSettingsOrBuilder.java @@ -0,0 +1,66 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/app.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public interface DashboardSettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.DashboardSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The resource name of the default Contact Center Insights
+   * dashboard associated with the app. This is the dashboard that will be
+   * displayed when users navigate to the Monitoring view for the app.
+   *
+   * Format: `projects/{project}/locations/{location}/dashboards/{dashboard}`
+   * 
+ * + * + * string default_dashboard = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The defaultDashboard. + */ + java.lang.String getDefaultDashboard(); + + /** + * + * + *
+   * Optional. The resource name of the default Contact Center Insights
+   * dashboard associated with the app. This is the dashboard that will be
+   * displayed when users navigate to the Monitoring view for the app.
+   *
+   * Format: `projects/{project}/locations/{location}/dashboards/{dashboard}`
+   * 
+ * + * + * string default_dashboard = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for defaultDashboard. + */ + com.google.protobuf.ByteString getDefaultDashboardBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DataStoreTool.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DataStoreTool.java index 8bbeaff1fbfd..4e00d8ed3b9f 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DataStoreTool.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DataStoreTool.java @@ -12517,6 +12517,623 @@ public com.google.cloud.ces.v1beta.DataStoreTool.BoostSpec getDefaultInstanceFor } } + public interface SnippetsConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. Whether snippets are enabled.
+     * 
+ * + * bool enable_snippets = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableSnippets. + */ + boolean getEnableSnippets(); + + /** + * + * + *
+     * Optional. Number of snippets to return per query.
+     * If unset, returns all snippets from the service by default.
+     * 
+ * + * int32 max_snippets = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxSnippets. + */ + int getMaxSnippets(); + } + + /** + * + * + *
+   * Snippets configuration.
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig} + */ + public static final class SnippetsConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig) + SnippetsConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "SnippetsConfig"); + } + + // Use SnippetsConfig.newBuilder() to construct. + private SnippetsConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SnippetsConfig() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.DataStoreToolProto + .internal_static_google_cloud_ces_v1beta_DataStoreTool_SnippetsConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.DataStoreToolProto + .internal_static_google_cloud_ces_v1beta_DataStoreTool_SnippetsConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig.class, + com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig.Builder.class); + } + + public static final int ENABLE_SNIPPETS_FIELD_NUMBER = 1; + private boolean enableSnippets_ = false; + + /** + * + * + *
+     * Optional. Whether snippets are enabled.
+     * 
+ * + * bool enable_snippets = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableSnippets. + */ + @java.lang.Override + public boolean getEnableSnippets() { + return enableSnippets_; + } + + public static final int MAX_SNIPPETS_FIELD_NUMBER = 2; + private int maxSnippets_ = 0; + + /** + * + * + *
+     * Optional. Number of snippets to return per query.
+     * If unset, returns all snippets from the service by default.
+     * 
+ * + * int32 max_snippets = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxSnippets. + */ + @java.lang.Override + public int getMaxSnippets() { + return maxSnippets_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enableSnippets_ != false) { + output.writeBool(1, enableSnippets_); + } + if (maxSnippets_ != 0) { + output.writeInt32(2, maxSnippets_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enableSnippets_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableSnippets_); + } + if (maxSnippets_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxSnippets_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.DataStoreTool.SnippetsConfig)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig other = + (com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig) obj; + + if (getEnableSnippets() != other.getEnableSnippets()) return false; + if (getMaxSnippets() != other.getMaxSnippets()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENABLE_SNIPPETS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableSnippets()); + hash = (37 * hash) + MAX_SNIPPETS_FIELD_NUMBER; + hash = (53 * hash) + getMaxSnippets(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig parseFrom( + 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.DataStoreTool.SnippetsConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig parseFrom( + com.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.DataStoreTool.SnippetsConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig 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.DataStoreTool.SnippetsConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig parseFrom( + java.io.InputStream 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.DataStoreTool.SnippetsConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig parseDelimitedFrom( + java.io.InputStream 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.DataStoreTool.SnippetsConfig 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.DataStoreTool.SnippetsConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, 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.DataStoreTool.SnippetsConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Snippets configuration.
+     * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig) + com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.DataStoreToolProto + .internal_static_google_cloud_ces_v1beta_DataStoreTool_SnippetsConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.DataStoreToolProto + .internal_static_google_cloud_ces_v1beta_DataStoreTool_SnippetsConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig.class, + com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enableSnippets_ = false; + maxSnippets_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.DataStoreToolProto + .internal_static_google_cloud_ces_v1beta_DataStoreTool_SnippetsConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig build() { + com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig buildPartial() { + com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig result = + new com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enableSnippets_ = enableSnippets_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.maxSnippets_ = maxSnippets_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig) { + return mergeFrom((com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig other) { + if (other == com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig.getDefaultInstance()) + return this; + if (other.getEnableSnippets() != false) { + setEnableSnippets(other.getEnableSnippets()); + } + if (other.getMaxSnippets() != 0) { + setMaxSnippets(other.getMaxSnippets()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + enableSnippets_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + maxSnippets_ = 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 boolean enableSnippets_; + + /** + * + * + *
+       * Optional. Whether snippets are enabled.
+       * 
+ * + * bool enable_snippets = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableSnippets. + */ + @java.lang.Override + public boolean getEnableSnippets() { + return enableSnippets_; + } + + /** + * + * + *
+       * Optional. Whether snippets are enabled.
+       * 
+ * + * bool enable_snippets = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The enableSnippets to set. + * @return This builder for chaining. + */ + public Builder setEnableSnippets(boolean value) { + + enableSnippets_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Whether snippets are enabled.
+       * 
+ * + * bool enable_snippets = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEnableSnippets() { + bitField0_ = (bitField0_ & ~0x00000001); + enableSnippets_ = false; + onChanged(); + return this; + } + + private int maxSnippets_; + + /** + * + * + *
+       * Optional. Number of snippets to return per query.
+       * If unset, returns all snippets from the service by default.
+       * 
+ * + * int32 max_snippets = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxSnippets. + */ + @java.lang.Override + public int getMaxSnippets() { + return maxSnippets_; + } + + /** + * + * + *
+       * Optional. Number of snippets to return per query.
+       * If unset, returns all snippets from the service by default.
+       * 
+ * + * int32 max_snippets = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The maxSnippets to set. + * @return This builder for chaining. + */ + public Builder setMaxSnippets(int value) { + + maxSnippets_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Number of snippets to return per query.
+       * If unset, returns all snippets from the service by default.
+       * 
+ * + * int32 max_snippets = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMaxSnippets() { + bitField0_ = (bitField0_ & ~0x00000002); + maxSnippets_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig) + private static final com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig(); + } + + public static com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SnippetsConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.DataStoreTool.SnippetsConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + public interface ModalityConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.DataStoreTool.ModalityConfig) @@ -12682,6 +13299,49 @@ public interface ModalityConfigOrBuilder */ com.google.cloud.ces.v1beta.DataStoreTool.GroundingConfigOrBuilder getGroundingConfigOrBuilder(); + + /** + * + * + *
+     * Optional. The snippets configuration.
+     * 
+ * + * + * .google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig snippets_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the snippetsConfig field is set. + */ + boolean hasSnippetsConfig(); + + /** + * + * + *
+     * Optional. The snippets configuration.
+     * 
+ * + * + * .google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig snippets_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The snippetsConfig. + */ + com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig getSnippetsConfig(); + + /** + * + * + *
+     * Optional. The snippets configuration.
+     * 
+ * + * + * .google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig snippets_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfigOrBuilder getSnippetsConfigOrBuilder(); } /** @@ -13130,6 +13790,66 @@ public com.google.cloud.ces.v1beta.DataStoreTool.GroundingConfig getGroundingCon : groundingConfig_; } + public static final int SNIPPETS_CONFIG_FIELD_NUMBER = 5; + private com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig snippetsConfig_; + + /** + * + * + *
+     * Optional. The snippets configuration.
+     * 
+ * + * + * .google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig snippets_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the snippetsConfig field is set. + */ + @java.lang.Override + public boolean hasSnippetsConfig() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Optional. The snippets configuration.
+     * 
+ * + * + * .google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig snippets_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The snippetsConfig. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig getSnippetsConfig() { + return snippetsConfig_ == null + ? com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig.getDefaultInstance() + : snippetsConfig_; + } + + /** + * + * + *
+     * Optional. The snippets configuration.
+     * 
+ * + * + * .google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig snippets_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfigOrBuilder + getSnippetsConfigOrBuilder() { + return snippetsConfig_ == null + ? com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig.getDefaultInstance() + : snippetsConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -13159,6 +13879,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(4, getGroundingConfig()); } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(5, getSnippetsConfig()); + } getUnknownFields().writeTo(output); } @@ -13184,6 +13907,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getGroundingConfig()); } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getSnippetsConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -13213,6 +13939,10 @@ public boolean equals(final java.lang.Object obj) { if (hasGroundingConfig()) { if (!getGroundingConfig().equals(other.getGroundingConfig())) return false; } + if (hasSnippetsConfig() != other.hasSnippetsConfig()) return false; + if (hasSnippetsConfig()) { + if (!getSnippetsConfig().equals(other.getSnippetsConfig())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -13238,6 +13968,10 @@ public int hashCode() { hash = (37 * hash) + GROUNDING_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getGroundingConfig().hashCode(); } + if (hasSnippetsConfig()) { + hash = (37 * hash) + SNIPPETS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getSnippetsConfig().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -13384,6 +14118,7 @@ private void maybeForceBuilderInitialization() { internalGetRewriterConfigFieldBuilder(); internalGetSummarizationConfigFieldBuilder(); internalGetGroundingConfigFieldBuilder(); + internalGetSnippetsConfigFieldBuilder(); } } @@ -13407,6 +14142,11 @@ public Builder clear() { groundingConfigBuilder_.dispose(); groundingConfigBuilder_ = null; } + snippetsConfig_ = null; + if (snippetsConfigBuilder_ != null) { + snippetsConfigBuilder_.dispose(); + snippetsConfigBuilder_ = null; + } return this; } @@ -13464,6 +14204,11 @@ private void buildPartial0(com.google.cloud.ces.v1beta.DataStoreTool.ModalityCon groundingConfigBuilder_ == null ? groundingConfig_ : groundingConfigBuilder_.build(); to_bitField0_ |= 0x00000004; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.snippetsConfig_ = + snippetsConfigBuilder_ == null ? snippetsConfig_ : snippetsConfigBuilder_.build(); + to_bitField0_ |= 0x00000008; + } result.bitField0_ |= to_bitField0_; } @@ -13492,6 +14237,9 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.DataStoreTool.ModalityConfi if (other.hasGroundingConfig()) { mergeGroundingConfig(other.getGroundingConfig()); } + if (other.hasSnippetsConfig()) { + mergeSnippetsConfig(other.getSnippetsConfig()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -13545,6 +14293,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 34 + case 42: + { + input.readMessage( + internalGetSnippetsConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -14332,6 +15087,225 @@ public Builder clearGroundingConfig() { return groundingConfigBuilder_; } + private com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig snippetsConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig, + com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig.Builder, + com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfigOrBuilder> + snippetsConfigBuilder_; + + /** + * + * + *
+       * Optional. The snippets configuration.
+       * 
+ * + * + * .google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig snippets_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the snippetsConfig field is set. + */ + public boolean hasSnippetsConfig() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+       * Optional. The snippets configuration.
+       * 
+ * + * + * .google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig snippets_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The snippetsConfig. + */ + public com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig getSnippetsConfig() { + if (snippetsConfigBuilder_ == null) { + return snippetsConfig_ == null + ? com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig.getDefaultInstance() + : snippetsConfig_; + } else { + return snippetsConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * Optional. The snippets configuration.
+       * 
+ * + * + * .google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig snippets_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSnippetsConfig( + com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig value) { + if (snippetsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + snippetsConfig_ = value; + } else { + snippetsConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The snippets configuration.
+       * 
+ * + * + * .google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig snippets_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSnippetsConfig( + com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig.Builder builderForValue) { + if (snippetsConfigBuilder_ == null) { + snippetsConfig_ = builderForValue.build(); + } else { + snippetsConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The snippets configuration.
+       * 
+ * + * + * .google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig snippets_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSnippetsConfig( + com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig value) { + if (snippetsConfigBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && snippetsConfig_ != null + && snippetsConfig_ + != com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig + .getDefaultInstance()) { + getSnippetsConfigBuilder().mergeFrom(value); + } else { + snippetsConfig_ = value; + } + } else { + snippetsConfigBuilder_.mergeFrom(value); + } + if (snippetsConfig_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * Optional. The snippets configuration.
+       * 
+ * + * + * .google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig snippets_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSnippetsConfig() { + bitField0_ = (bitField0_ & ~0x00000010); + snippetsConfig_ = null; + if (snippetsConfigBuilder_ != null) { + snippetsConfigBuilder_.dispose(); + snippetsConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The snippets configuration.
+       * 
+ * + * + * .google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig snippets_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig.Builder + getSnippetsConfigBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetSnippetsConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Optional. The snippets configuration.
+       * 
+ * + * + * .google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig snippets_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfigOrBuilder + getSnippetsConfigOrBuilder() { + if (snippetsConfigBuilder_ != null) { + return snippetsConfigBuilder_.getMessageOrBuilder(); + } else { + return snippetsConfig_ == null + ? com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig.getDefaultInstance() + : snippetsConfig_; + } + } + + /** + * + * + *
+       * Optional. The snippets configuration.
+       * 
+ * + * + * .google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig snippets_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig, + com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig.Builder, + com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfigOrBuilder> + internalGetSnippetsConfigFieldBuilder() { + if (snippetsConfigBuilder_ == null) { + snippetsConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig, + com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig.Builder, + com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfigOrBuilder>( + getSnippetsConfig(), getParentForChildren(), isClean()); + snippetsConfig_ = null; + } + return snippetsConfigBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.DataStoreTool.ModalityConfig) } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DataStoreToolProto.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DataStoreToolProto.java index 40355975891d..3686684a83f3 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DataStoreToolProto.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DataStoreToolProto.java @@ -84,6 +84,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_ces_v1beta_DataStoreTool_BoostSpec_ConditionBoostSpec_BoostControlSpec_ControlPoint_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_ces_v1beta_DataStoreTool_BoostSpec_ConditionBoostSpec_BoostControlSpec_ControlPoint_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_DataStoreTool_SnippetsConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_DataStoreTool_SnippetsConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_ces_v1beta_DataStoreTool_ModalityConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -101,7 +105,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "-google/cloud/ces/v1beta/data_store_too" + "l.proto\022\027google.cloud.ces.v1beta\032\037google" + "/api/field_behavior.proto\032$google/cloud/" - + "ces/v1beta/common.proto\032(google/cloud/ces/v1beta/data_store.proto\"\333\025\n\r" + + "ces/v1beta/common.proto\032(google/cloud/ces/v1beta/data_store.proto\"\376\026\n\r" + "DataStoreTool\022Y\n" + "\021data_store_source\030\003 \001(\01326.google." + "cloud.ces.v1beta.DataStoreTool.DataStoreSourceB\004\342A\001\001H\000\022R\n\r" @@ -169,16 +173,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tFRESHNESS\020\002\"C\n" + "\021InterpolationType\022\"\n" + "\036INTERPOLATION_TYPE_UNSPECIFIED\020\000\022\n\n" - + "\006LINEAR\020\001\032\303\003\n" + + "\006LINEAR\020\001\032K\n" + + "\016SnippetsConfig\022\035\n" + + "\017enable_snippets\030\001 \001(\010B\004\342A\001\001\022\032\n" + + "\014max_snippets\030\002 \001(\005B\004\342A\001\001\032\231\004\n" + "\016ModalityConfig\022_\n\r" - + "modality_type\030\001 \001(\0162B.google.c" - + "loud.ces.v1beta.DataStoreTool.ModalityConfig.ModalityTypeB\004\342A\001\002\022T\n" + + "modality_type\030\001 \001(\0162B.google.clou" + + "d.ces.v1beta.DataStoreTool.ModalityConfig.ModalityTypeB\004\342A\001\002\022T\n" + "\017rewriter_config\030\002" + " \001(\01325.google.cloud.ces.v1beta.DataStoreTool.RewriterConfigB\004\342A\001\001\022^\n" - + "\024summarization_config\030\003 \001(\0132:.google.cloud.ces.v" - + "1beta.DataStoreTool.SummarizationConfigB\004\342A\001\001\022V\n" - + "\020grounding_config\030\004 \001(\01326.google" - + ".cloud.ces.v1beta.DataStoreTool.GroundingConfigB\004\342A\001\001\"B\n" + + "\024summarization_config\030\003 \001(\0132:.google.cloud.ces.v1be" + + "ta.DataStoreTool.SummarizationConfigB\004\342A\001\001\022V\n" + + "\020grounding_config\030\004 \001(\01326.google.cl" + + "oud.ces.v1beta.DataStoreTool.GroundingConfigB\004\342A\001\001\022T\n" + + "\017snippets_config\030\005 \001(\01325.go" + + "ogle.cloud.ces.v1beta.DataStoreTool.SnippetsConfigB\004\342A\001\001\"B\n" + "\014ModalityType\022\035\n" + "\031MODALITY_TYPE_UNSPECIFIED\020\000\022\010\n" + "\004TEXT\020\001\022\t\n" @@ -188,8 +197,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016ALWAYS_INCLUDE\020\002\022\021\n\r" + "NEVER_INCLUDE\020\003B\017\n\r" + "search_sourceBb\n" - + "\033com.google.cloud.ces.v1betaB\022DataStoreToolProtoP\001Z-cloud.google.com/g" - + "o/ces/apiv1beta/cespb;cespbb\006proto3" + + "\033com.google.cloud.ces.v1betaB\022DataStoreToolProtoP\001Z-cloud.google.co" + + "m/go/ces/apiv1beta/cespb;cespbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -296,13 +305,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "AttributeValue", "BoostAmount", }); - internal_static_google_cloud_ces_v1beta_DataStoreTool_ModalityConfig_descriptor = + internal_static_google_cloud_ces_v1beta_DataStoreTool_SnippetsConfig_descriptor = internal_static_google_cloud_ces_v1beta_DataStoreTool_descriptor.getNestedType(7); + internal_static_google_cloud_ces_v1beta_DataStoreTool_SnippetsConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_DataStoreTool_SnippetsConfig_descriptor, + new java.lang.String[] { + "EnableSnippets", "MaxSnippets", + }); + internal_static_google_cloud_ces_v1beta_DataStoreTool_ModalityConfig_descriptor = + internal_static_google_cloud_ces_v1beta_DataStoreTool_descriptor.getNestedType(8); internal_static_google_cloud_ces_v1beta_DataStoreTool_ModalityConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_DataStoreTool_ModalityConfig_descriptor, new java.lang.String[] { - "ModalityType", "RewriterConfig", "SummarizationConfig", "GroundingConfig", + "ModalityType", + "RewriterConfig", + "SummarizationConfig", + "GroundingConfig", + "SnippetsConfig", }); 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/DeleteAssistantSessionRequest.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DeleteAssistantSessionRequest.java new file mode 100644 index 000000000000..260019790e56 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DeleteAssistantSessionRequest.java @@ -0,0 +1,627 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/assistant_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +/** + * + * + *
+ * Request message for
+ * [AssistantService.DeleteAssistantSession][google.cloud.ces.v1beta.AssistantService.DeleteAssistantSession].
+ * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.DeleteAssistantSessionRequest} + */ +@com.google.protobuf.Generated +public final class DeleteAssistantSessionRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.DeleteAssistantSessionRequest) + DeleteAssistantSessionRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DeleteAssistantSessionRequest"); + } + + // Use DeleteAssistantSessionRequest.newBuilder() to construct. + private DeleteAssistantSessionRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteAssistantSessionRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_DeleteAssistantSessionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_DeleteAssistantSessionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest.class, + com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The name of the assistant session to delete.
+   * Format:
+   * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}`
+   * 
+ * + * + * 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 assistant session to delete.
+   * Format:
+   * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}`
+   * 
+ * + * + * 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.ces.v1beta.DeleteAssistantSessionRequest)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest other = + (com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest) 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.ces.v1beta.DeleteAssistantSessionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest parseFrom( + 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.DeleteAssistantSessionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest parseFrom( + com.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.DeleteAssistantSessionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest 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.DeleteAssistantSessionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest parseFrom( + java.io.InputStream 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.DeleteAssistantSessionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest parseDelimitedFrom( + java.io.InputStream 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.DeleteAssistantSessionRequest 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.DeleteAssistantSessionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, 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.DeleteAssistantSessionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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
+   * [AssistantService.DeleteAssistantSession][google.cloud.ces.v1beta.AssistantService.DeleteAssistantSession].
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.DeleteAssistantSessionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.DeleteAssistantSessionRequest) + com.google.cloud.ces.v1beta.DeleteAssistantSessionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_DeleteAssistantSessionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_DeleteAssistantSessionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest.class, + com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest.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.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_DeleteAssistantSessionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest build() { + com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest buildPartial() { + com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest result = + new com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest 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.ces.v1beta.DeleteAssistantSessionRequest) { + return mergeFrom((com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest other) { + if (other == com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest.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 assistant session to delete.
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}`
+     * 
+ * + * + * 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 assistant session to delete.
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}`
+     * 
+ * + * + * 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 assistant session to delete.
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}`
+     * 
+ * + * + * 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 assistant session to delete.
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}`
+     * 
+ * + * + * 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 assistant session to delete.
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}`
+     * 
+ * + * + * 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.ces.v1beta.DeleteAssistantSessionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.DeleteAssistantSessionRequest) + private static final com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest(); + } + + public static com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteAssistantSessionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.DeleteAssistantSessionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DeleteAssistantSessionRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DeleteAssistantSessionRequestOrBuilder.java new file mode 100644 index 000000000000..9233d17e263e --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DeleteAssistantSessionRequestOrBuilder.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/ces/v1beta/assistant_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public interface DeleteAssistantSessionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.DeleteAssistantSessionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the assistant session to delete.
+   * Format:
+   * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The name of the assistant session to delete.
+   * Format:
+   * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}`
+   * 
+ * + * + * 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-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DeleteConversationRequest.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DeleteConversationRequest.java index ccb7cc689509..e9f75701115e 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DeleteConversationRequest.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DeleteConversationRequest.java @@ -145,7 +145,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * * @deprecated google.cloud.ces.v1beta.DeleteConversationRequest.source is deprecated. See - * google/cloud/ces/v1beta/agent_service.proto;l=1205 + * google/cloud/ces/v1beta/agent_service.proto;l=1229 * @return The enum numeric value on the wire for source. */ @java.lang.Override @@ -167,7 +167,7 @@ public int getSourceValue() { * * * @deprecated google.cloud.ces.v1beta.DeleteConversationRequest.source is deprecated. See - * google/cloud/ces/v1beta/agent_service.proto;l=1205 + * google/cloud/ces/v1beta/agent_service.proto;l=1229 * @return The source. */ @java.lang.Override @@ -648,7 +648,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.cloud.ces.v1beta.DeleteConversationRequest.source is deprecated. See - * google/cloud/ces/v1beta/agent_service.proto;l=1205 + * google/cloud/ces/v1beta/agent_service.proto;l=1229 * @return The enum numeric value on the wire for source. */ @java.lang.Override @@ -670,7 +670,7 @@ public int getSourceValue() { * * * @deprecated google.cloud.ces.v1beta.DeleteConversationRequest.source is deprecated. See - * google/cloud/ces/v1beta/agent_service.proto;l=1205 + * google/cloud/ces/v1beta/agent_service.proto;l=1229 * @param value The enum numeric value on the wire for source to set. * @return This builder for chaining. */ @@ -695,7 +695,7 @@ public Builder setSourceValue(int value) { * * * @deprecated google.cloud.ces.v1beta.DeleteConversationRequest.source is deprecated. See - * google/cloud/ces/v1beta/agent_service.proto;l=1205 + * google/cloud/ces/v1beta/agent_service.proto;l=1229 * @return The source. */ @java.lang.Override @@ -719,7 +719,7 @@ public com.google.cloud.ces.v1beta.Conversation.Source getSource() { * * * @deprecated google.cloud.ces.v1beta.DeleteConversationRequest.source is deprecated. See - * google/cloud/ces/v1beta/agent_service.proto;l=1205 + * google/cloud/ces/v1beta/agent_service.proto;l=1229 * @param value The source to set. * @return This builder for chaining. */ @@ -747,7 +747,7 @@ public Builder setSource(com.google.cloud.ces.v1beta.Conversation.Source value) * * * @deprecated google.cloud.ces.v1beta.DeleteConversationRequest.source is deprecated. See - * google/cloud/ces/v1beta/agent_service.proto;l=1205 + * google/cloud/ces/v1beta/agent_service.proto;l=1229 * @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/DeleteConversationRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DeleteConversationRequestOrBuilder.java index 0d33f18ab1ff..921cc1b8464a 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DeleteConversationRequestOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DeleteConversationRequestOrBuilder.java @@ -69,7 +69,7 @@ public interface DeleteConversationRequestOrBuilder * * * @deprecated google.cloud.ces.v1beta.DeleteConversationRequest.source is deprecated. See - * google/cloud/ces/v1beta/agent_service.proto;l=1205 + * google/cloud/ces/v1beta/agent_service.proto;l=1229 * @return The enum numeric value on the wire for source. */ @java.lang.Deprecated @@ -88,7 +88,7 @@ public interface DeleteConversationRequestOrBuilder * * * @deprecated google.cloud.ces.v1beta.DeleteConversationRequest.source is deprecated. See - * google/cloud/ces/v1beta/agent_service.proto;l=1205 + * google/cloud/ces/v1beta/agent_service.proto;l=1229 * @return The source. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DeployChannelResponse.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DeployChannelResponse.java new file mode 100644 index 000000000000..d7b87b7cb6f3 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DeployChannelResponse.java @@ -0,0 +1,700 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language 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/agent_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +/** + * + * + *
+ * Response message for
+ * [AgentService.DeployChannel][google.cloud.ces.v1beta.AgentService.DeployChannel].
+ * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.DeployChannelResponse} + */ +@com.google.protobuf.Generated +public final class DeployChannelResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.DeployChannelResponse) + DeployChannelResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DeployChannelResponse"); + } + + // Use DeployChannelResponse.newBuilder() to construct. + private DeployChannelResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeployChannelResponse() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AgentServiceProto + .internal_static_google_cloud_ces_v1beta_DeployChannelResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AgentServiceProto + .internal_static_google_cloud_ces_v1beta_DeployChannelResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.DeployChannelResponse.class, + com.google.cloud.ces.v1beta.DeployChannelResponse.Builder.class); + } + + private int bitField0_; + public static final int DEPLOYMENT_FIELD_NUMBER = 1; + private com.google.cloud.ces.v1beta.Deployment deployment_; + + /** + * + * + *
+   * The created deployment.
+   * 
+ * + * .google.cloud.ces.v1beta.Deployment deployment = 1; + * + * @return Whether the deployment field is set. + */ + @java.lang.Override + public boolean hasDeployment() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * The created deployment.
+   * 
+ * + * .google.cloud.ces.v1beta.Deployment deployment = 1; + * + * @return The deployment. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.Deployment getDeployment() { + return deployment_ == null + ? com.google.cloud.ces.v1beta.Deployment.getDefaultInstance() + : deployment_; + } + + /** + * + * + *
+   * The created deployment.
+   * 
+ * + * .google.cloud.ces.v1beta.Deployment deployment = 1; + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.DeploymentOrBuilder getDeploymentOrBuilder() { + return deployment_ == null + ? com.google.cloud.ces.v1beta.Deployment.getDefaultInstance() + : deployment_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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, getDeployment()); + } + 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, getDeployment()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.DeployChannelResponse)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.DeployChannelResponse other = + (com.google.cloud.ces.v1beta.DeployChannelResponse) obj; + + if (hasDeployment() != other.hasDeployment()) return false; + if (hasDeployment()) { + if (!getDeployment().equals(other.getDeployment())) return false; + } + if (!getUnknownFields().equals(other.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 (hasDeployment()) { + hash = (37 * hash) + DEPLOYMENT_FIELD_NUMBER; + hash = (53 * hash) + getDeployment().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.DeployChannelResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.DeployChannelResponse parseFrom( + 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.DeployChannelResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.DeployChannelResponse parseFrom( + com.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.DeployChannelResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.DeployChannelResponse 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.DeployChannelResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.DeployChannelResponse parseFrom( + java.io.InputStream 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.DeployChannelResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.DeployChannelResponse parseDelimitedFrom( + java.io.InputStream 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.DeployChannelResponse 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.DeployChannelResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, 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.DeployChannelResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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
+   * [AgentService.DeployChannel][google.cloud.ces.v1beta.AgentService.DeployChannel].
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.DeployChannelResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.DeployChannelResponse) + com.google.cloud.ces.v1beta.DeployChannelResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AgentServiceProto + .internal_static_google_cloud_ces_v1beta_DeployChannelResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AgentServiceProto + .internal_static_google_cloud_ces_v1beta_DeployChannelResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.DeployChannelResponse.class, + com.google.cloud.ces.v1beta.DeployChannelResponse.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.DeployChannelResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetDeploymentFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + deployment_ = null; + if (deploymentBuilder_ != null) { + deploymentBuilder_.dispose(); + deploymentBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.AgentServiceProto + .internal_static_google_cloud_ces_v1beta_DeployChannelResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.DeployChannelResponse getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.DeployChannelResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.DeployChannelResponse build() { + com.google.cloud.ces.v1beta.DeployChannelResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.DeployChannelResponse buildPartial() { + com.google.cloud.ces.v1beta.DeployChannelResponse result = + new com.google.cloud.ces.v1beta.DeployChannelResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1beta.DeployChannelResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.deployment_ = deploymentBuilder_ == null ? deployment_ : deploymentBuilder_.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.v1beta.DeployChannelResponse) { + return mergeFrom((com.google.cloud.ces.v1beta.DeployChannelResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.DeployChannelResponse other) { + if (other == com.google.cloud.ces.v1beta.DeployChannelResponse.getDefaultInstance()) + return this; + if (other.hasDeployment()) { + mergeDeployment(other.getDeployment()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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( + internalGetDeploymentFieldBuilder().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.v1beta.Deployment deployment_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.Deployment, + com.google.cloud.ces.v1beta.Deployment.Builder, + com.google.cloud.ces.v1beta.DeploymentOrBuilder> + deploymentBuilder_; + + /** + * + * + *
+     * The created deployment.
+     * 
+ * + * .google.cloud.ces.v1beta.Deployment deployment = 1; + * + * @return Whether the deployment field is set. + */ + public boolean hasDeployment() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * The created deployment.
+     * 
+ * + * .google.cloud.ces.v1beta.Deployment deployment = 1; + * + * @return The deployment. + */ + public com.google.cloud.ces.v1beta.Deployment getDeployment() { + if (deploymentBuilder_ == null) { + return deployment_ == null + ? com.google.cloud.ces.v1beta.Deployment.getDefaultInstance() + : deployment_; + } else { + return deploymentBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * The created deployment.
+     * 
+ * + * .google.cloud.ces.v1beta.Deployment deployment = 1; + */ + public Builder setDeployment(com.google.cloud.ces.v1beta.Deployment value) { + if (deploymentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deployment_ = value; + } else { + deploymentBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The created deployment.
+     * 
+ * + * .google.cloud.ces.v1beta.Deployment deployment = 1; + */ + public Builder setDeployment(com.google.cloud.ces.v1beta.Deployment.Builder builderForValue) { + if (deploymentBuilder_ == null) { + deployment_ = builderForValue.build(); + } else { + deploymentBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The created deployment.
+     * 
+ * + * .google.cloud.ces.v1beta.Deployment deployment = 1; + */ + public Builder mergeDeployment(com.google.cloud.ces.v1beta.Deployment value) { + if (deploymentBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && deployment_ != null + && deployment_ != com.google.cloud.ces.v1beta.Deployment.getDefaultInstance()) { + getDeploymentBuilder().mergeFrom(value); + } else { + deployment_ = value; + } + } else { + deploymentBuilder_.mergeFrom(value); + } + if (deployment_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The created deployment.
+     * 
+ * + * .google.cloud.ces.v1beta.Deployment deployment = 1; + */ + public Builder clearDeployment() { + bitField0_ = (bitField0_ & ~0x00000001); + deployment_ = null; + if (deploymentBuilder_ != null) { + deploymentBuilder_.dispose(); + deploymentBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * The created deployment.
+     * 
+ * + * .google.cloud.ces.v1beta.Deployment deployment = 1; + */ + public com.google.cloud.ces.v1beta.Deployment.Builder getDeploymentBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetDeploymentFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The created deployment.
+     * 
+ * + * .google.cloud.ces.v1beta.Deployment deployment = 1; + */ + public com.google.cloud.ces.v1beta.DeploymentOrBuilder getDeploymentOrBuilder() { + if (deploymentBuilder_ != null) { + return deploymentBuilder_.getMessageOrBuilder(); + } else { + return deployment_ == null + ? com.google.cloud.ces.v1beta.Deployment.getDefaultInstance() + : deployment_; + } + } + + /** + * + * + *
+     * The created deployment.
+     * 
+ * + * .google.cloud.ces.v1beta.Deployment deployment = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.Deployment, + com.google.cloud.ces.v1beta.Deployment.Builder, + com.google.cloud.ces.v1beta.DeploymentOrBuilder> + internalGetDeploymentFieldBuilder() { + if (deploymentBuilder_ == null) { + deploymentBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.Deployment, + com.google.cloud.ces.v1beta.Deployment.Builder, + com.google.cloud.ces.v1beta.DeploymentOrBuilder>( + getDeployment(), getParentForChildren(), isClean()); + deployment_ = null; + } + return deploymentBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.DeployChannelResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.DeployChannelResponse) + private static final com.google.cloud.ces.v1beta.DeployChannelResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.DeployChannelResponse(); + } + + public static com.google.cloud.ces.v1beta.DeployChannelResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeployChannelResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.DeployChannelResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DeployChannelResponseOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DeployChannelResponseOrBuilder.java new file mode 100644 index 000000000000..4f069da61c1d --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DeployChannelResponseOrBuilder.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/ces/v1beta/agent_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public interface DeployChannelResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.DeployChannelResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The created deployment.
+   * 
+ * + * .google.cloud.ces.v1beta.Deployment deployment = 1; + * + * @return Whether the deployment field is set. + */ + boolean hasDeployment(); + + /** + * + * + *
+   * The created deployment.
+   * 
+ * + * .google.cloud.ces.v1beta.Deployment deployment = 1; + * + * @return The deployment. + */ + com.google.cloud.ces.v1beta.Deployment getDeployment(); + + /** + * + * + *
+   * The created deployment.
+   * 
+ * + * .google.cloud.ces.v1beta.Deployment deployment = 1; + */ + com.google.cloud.ces.v1beta.DeploymentOrBuilder getDeploymentOrBuilder(); +} 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 dd869febe5db..a43b30999f4c 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 @@ -57,6 +57,7 @@ private Deployment() { displayName_ = ""; appVersion_ = ""; etag_ = ""; + modality_ = 0; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -74,6 +75,198 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.ces.v1beta.Deployment.Builder.class); } + /** + * + * + *
+   * The modality of the deployment.
+   * 
+ * + * Protobuf enum {@code google.cloud.ces.v1beta.Deployment.Modality} + */ + public enum Modality implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unknown modality.
+     * 
+ * + * MODALITY_UNSPECIFIED = 0; + */ + MODALITY_UNSPECIFIED(0), + /** + * + * + *
+     * Text modality.
+     * 
+ * + * MODALITY_TEXT = 1; + */ + MODALITY_TEXT(1), + /** + * + * + *
+     * Voice modality.
+     * 
+ * + * MODALITY_VOICE = 2; + */ + MODALITY_VOICE(2), + /** + * + * + *
+     * Video modality.
+     * 
+ * + * MODALITY_VIDEO = 3; + */ + MODALITY_VIDEO(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Modality"); + } + + /** + * + * + *
+     * Unknown modality.
+     * 
+ * + * MODALITY_UNSPECIFIED = 0; + */ + public static final int MODALITY_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Text modality.
+     * 
+ * + * MODALITY_TEXT = 1; + */ + public static final int MODALITY_TEXT_VALUE = 1; + + /** + * + * + *
+     * Voice modality.
+     * 
+ * + * MODALITY_VOICE = 2; + */ + public static final int MODALITY_VOICE_VALUE = 2; + + /** + * + * + *
+     * Video modality.
+     * 
+ * + * MODALITY_VIDEO = 3; + */ + public static final int MODALITY_VIDEO_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 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_VOICE; + case 3: + return MODALITY_VIDEO; + 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.ces.v1beta.Deployment.getDescriptor().getEnumTypes().get(0); + } + + 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.ces.v1beta.Deployment.Modality) + } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @@ -655,6 +848,182 @@ public com.google.cloud.ces.v1beta.InstagramCredentials getInstagramCredentials( : instagramCredentials_; } + public static final int MODEL_SETTINGS_FIELD_NUMBER = 12; + private com.google.cloud.ces.v1beta.ModelSettings modelSettings_; + + /** + * + * + *
+   * Optional. Model settings for the deployment.
+   * Overrides model settings configured at the app/agent levels.
+   * Note: Deployment-level model settings override is gated behind an
+   * allowlist. Contact the CXAS team to enable this field.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ModelSettings model_settings = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the modelSettings field is set. + */ + @java.lang.Override + public boolean hasModelSettings() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+   * Optional. Model settings for the deployment.
+   * Overrides model settings configured at the app/agent levels.
+   * Note: Deployment-level model settings override is gated behind an
+   * allowlist. Contact the CXAS team to enable this field.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ModelSettings model_settings = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The modelSettings. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.ModelSettings getModelSettings() { + return modelSettings_ == null + ? com.google.cloud.ces.v1beta.ModelSettings.getDefaultInstance() + : modelSettings_; + } + + /** + * + * + *
+   * Optional. Model settings for the deployment.
+   * Overrides model settings configured at the app/agent levels.
+   * Note: Deployment-level model settings override is gated behind an
+   * allowlist. Contact the CXAS team to enable this field.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ModelSettings model_settings = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.ModelSettingsOrBuilder getModelSettingsOrBuilder() { + return modelSettings_ == null + ? com.google.cloud.ces.v1beta.ModelSettings.getDefaultInstance() + : modelSettings_; + } + + public static final int MODALITY_FIELD_NUMBER = 13; + private int modality_ = 0; + + /** + * + * + *
+   * Optional. The modality of the deployment.
+   * Note: Deployment-level modality override is gated behind an allowlist.
+   * Contact the CXAS team to enable this field.
+   * 
+ * + * + * .google.cloud.ces.v1beta.Deployment.Modality modality = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for modality. + */ + @java.lang.Override + public int getModalityValue() { + return modality_; + } + + /** + * + * + *
+   * Optional. The modality of the deployment.
+   * Note: Deployment-level modality override is gated behind an allowlist.
+   * Contact the CXAS team to enable this field.
+   * 
+ * + * + * .google.cloud.ces.v1beta.Deployment.Modality modality = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The modality. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.Deployment.Modality getModality() { + com.google.cloud.ces.v1beta.Deployment.Modality result = + com.google.cloud.ces.v1beta.Deployment.Modality.forNumber(modality_); + return result == null ? com.google.cloud.ces.v1beta.Deployment.Modality.UNRECOGNIZED : result; + } + + public static final int AGENT_REGISTRY_DEPLOYMENT_FIELD_NUMBER = 14; + private com.google.cloud.ces.v1beta.AgentRegistryDeployment agentRegistryDeployment_; + + /** + * + * + *
+   * Optional. Configuration for deploying this deployment to Agent Registry.
+   * If present, this deployment will be published to Agent Registry.
+   * 
+ * + * + * .google.cloud.ces.v1beta.AgentRegistryDeployment agent_registry_deployment = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the agentRegistryDeployment field is set. + */ + @java.lang.Override + public boolean hasAgentRegistryDeployment() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+   * Optional. Configuration for deploying this deployment to Agent Registry.
+   * If present, this deployment will be published to Agent Registry.
+   * 
+ * + * + * .google.cloud.ces.v1beta.AgentRegistryDeployment agent_registry_deployment = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The agentRegistryDeployment. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.AgentRegistryDeployment getAgentRegistryDeployment() { + return agentRegistryDeployment_ == null + ? com.google.cloud.ces.v1beta.AgentRegistryDeployment.getDefaultInstance() + : agentRegistryDeployment_; + } + + /** + * + * + *
+   * Optional. Configuration for deploying this deployment to Agent Registry.
+   * If present, this deployment will be published to Agent Registry.
+   * 
+ * + * + * .google.cloud.ces.v1beta.AgentRegistryDeployment agent_registry_deployment = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.AgentRegistryDeploymentOrBuilder + getAgentRegistryDeploymentOrBuilder() { + return agentRegistryDeployment_ == null + ? com.google.cloud.ces.v1beta.AgentRegistryDeployment.getDefaultInstance() + : agentRegistryDeployment_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -699,6 +1068,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(11, getInstagramCredentials()); } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(12, getModelSettings()); + } + if (modality_ + != com.google.cloud.ces.v1beta.Deployment.Modality.MODALITY_UNSPECIFIED.getNumber()) { + output.writeEnum(13, modality_); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeMessage(14, getAgentRegistryDeployment()); + } getUnknownFields().writeTo(output); } @@ -740,6 +1119,18 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getInstagramCredentials()); } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getModelSettings()); + } + if (modality_ + != com.google.cloud.ces.v1beta.Deployment.Modality.MODALITY_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(13, modality_); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 14, getAgentRegistryDeployment()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -783,6 +1174,15 @@ public boolean equals(final java.lang.Object obj) { if (hasInstagramCredentials()) { if (!getInstagramCredentials().equals(other.getInstagramCredentials())) return false; } + if (hasModelSettings() != other.hasModelSettings()) return false; + if (hasModelSettings()) { + if (!getModelSettings().equals(other.getModelSettings())) return false; + } + if (modality_ != other.modality_) return false; + if (hasAgentRegistryDeployment() != other.hasAgentRegistryDeployment()) return false; + if (hasAgentRegistryDeployment()) { + if (!getAgentRegistryDeployment().equals(other.getAgentRegistryDeployment())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -826,6 +1226,16 @@ public int hashCode() { hash = (37 * hash) + INSTAGRAM_CREDENTIALS_FIELD_NUMBER; hash = (53 * hash) + getInstagramCredentials().hashCode(); } + if (hasModelSettings()) { + hash = (37 * hash) + MODEL_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getModelSettings().hashCode(); + } + hash = (37 * hash) + MODALITY_FIELD_NUMBER; + hash = (53 * hash) + modality_; + if (hasAgentRegistryDeployment()) { + hash = (37 * hash) + AGENT_REGISTRY_DEPLOYMENT_FIELD_NUMBER; + hash = (53 * hash) + getAgentRegistryDeployment().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -974,6 +1384,8 @@ private void maybeForceBuilderInitialization() { internalGetExperimentConfigFieldBuilder(); internalGetWhatsappCredentialsFieldBuilder(); internalGetInstagramCredentialsFieldBuilder(); + internalGetModelSettingsFieldBuilder(); + internalGetAgentRegistryDeploymentFieldBuilder(); } } @@ -1015,6 +1427,17 @@ public Builder clear() { instagramCredentialsBuilder_.dispose(); instagramCredentialsBuilder_ = null; } + modelSettings_ = null; + if (modelSettingsBuilder_ != null) { + modelSettingsBuilder_.dispose(); + modelSettingsBuilder_ = null; + } + modality_ = 0; + agentRegistryDeployment_ = null; + if (agentRegistryDeploymentBuilder_ != null) { + agentRegistryDeploymentBuilder_.dispose(); + agentRegistryDeploymentBuilder_ = null; + } return this; } @@ -1096,6 +1519,21 @@ private void buildPartial0(com.google.cloud.ces.v1beta.Deployment result) { : instagramCredentialsBuilder_.build(); to_bitField0_ |= 0x00000020; } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.modelSettings_ = + modelSettingsBuilder_ == null ? modelSettings_ : modelSettingsBuilder_.build(); + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.modality_ = modality_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.agentRegistryDeployment_ = + agentRegistryDeploymentBuilder_ == null + ? agentRegistryDeployment_ + : agentRegistryDeploymentBuilder_.build(); + to_bitField0_ |= 0x00000080; + } result.bitField0_ |= to_bitField0_; } @@ -1149,6 +1587,15 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.Deployment other) { if (other.hasInstagramCredentials()) { mergeInstagramCredentials(other.getInstagramCredentials()); } + if (other.hasModelSettings()) { + mergeModelSettings(other.getModelSettings()); + } + if (other.modality_ != 0) { + setModalityValue(other.getModalityValue()); + } + if (other.hasAgentRegistryDeployment()) { + mergeAgentRegistryDeployment(other.getAgentRegistryDeployment()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1241,6 +1688,27 @@ public Builder mergeFrom( bitField0_ |= 0x00000200; break; } // case 90 + case 98: + { + input.readMessage( + internalGetModelSettingsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 98 + case 104: + { + modality_ = input.readEnum(); + bitField0_ |= 0x00000800; + break; + } // case 104 + case 114: + { + input.readMessage( + internalGetAgentRegistryDeploymentFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00001000; + break; + } // case 114 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3055,6 +3523,588 @@ public Builder clearInstagramCredentials() { return instagramCredentialsBuilder_; } + private com.google.cloud.ces.v1beta.ModelSettings modelSettings_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.ModelSettings, + com.google.cloud.ces.v1beta.ModelSettings.Builder, + com.google.cloud.ces.v1beta.ModelSettingsOrBuilder> + modelSettingsBuilder_; + + /** + * + * + *
+     * Optional. Model settings for the deployment.
+     * Overrides model settings configured at the app/agent levels.
+     * Note: Deployment-level model settings override is gated behind an
+     * allowlist. Contact the CXAS team to enable this field.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ModelSettings model_settings = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the modelSettings field is set. + */ + public boolean hasModelSettings() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
+     * Optional. Model settings for the deployment.
+     * Overrides model settings configured at the app/agent levels.
+     * Note: Deployment-level model settings override is gated behind an
+     * allowlist. Contact the CXAS team to enable this field.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ModelSettings model_settings = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The modelSettings. + */ + public com.google.cloud.ces.v1beta.ModelSettings getModelSettings() { + if (modelSettingsBuilder_ == null) { + return modelSettings_ == null + ? com.google.cloud.ces.v1beta.ModelSettings.getDefaultInstance() + : modelSettings_; + } else { + return modelSettingsBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Model settings for the deployment.
+     * Overrides model settings configured at the app/agent levels.
+     * Note: Deployment-level model settings override is gated behind an
+     * allowlist. Contact the CXAS team to enable this field.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ModelSettings model_settings = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setModelSettings(com.google.cloud.ces.v1beta.ModelSettings value) { + if (modelSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + modelSettings_ = value; + } else { + modelSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Model settings for the deployment.
+     * Overrides model settings configured at the app/agent levels.
+     * Note: Deployment-level model settings override is gated behind an
+     * allowlist. Contact the CXAS team to enable this field.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ModelSettings model_settings = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setModelSettings( + com.google.cloud.ces.v1beta.ModelSettings.Builder builderForValue) { + if (modelSettingsBuilder_ == null) { + modelSettings_ = builderForValue.build(); + } else { + modelSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Model settings for the deployment.
+     * Overrides model settings configured at the app/agent levels.
+     * Note: Deployment-level model settings override is gated behind an
+     * allowlist. Contact the CXAS team to enable this field.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ModelSettings model_settings = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeModelSettings(com.google.cloud.ces.v1beta.ModelSettings value) { + if (modelSettingsBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0) + && modelSettings_ != null + && modelSettings_ != com.google.cloud.ces.v1beta.ModelSettings.getDefaultInstance()) { + getModelSettingsBuilder().mergeFrom(value); + } else { + modelSettings_ = value; + } + } else { + modelSettingsBuilder_.mergeFrom(value); + } + if (modelSettings_ != null) { + bitField0_ |= 0x00000400; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Model settings for the deployment.
+     * Overrides model settings configured at the app/agent levels.
+     * Note: Deployment-level model settings override is gated behind an
+     * allowlist. Contact the CXAS team to enable this field.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ModelSettings model_settings = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearModelSettings() { + bitField0_ = (bitField0_ & ~0x00000400); + modelSettings_ = null; + if (modelSettingsBuilder_ != null) { + modelSettingsBuilder_.dispose(); + modelSettingsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Model settings for the deployment.
+     * Overrides model settings configured at the app/agent levels.
+     * Note: Deployment-level model settings override is gated behind an
+     * allowlist. Contact the CXAS team to enable this field.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ModelSettings model_settings = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.ModelSettings.Builder getModelSettingsBuilder() { + bitField0_ |= 0x00000400; + onChanged(); + return internalGetModelSettingsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Model settings for the deployment.
+     * Overrides model settings configured at the app/agent levels.
+     * Note: Deployment-level model settings override is gated behind an
+     * allowlist. Contact the CXAS team to enable this field.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ModelSettings model_settings = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.ModelSettingsOrBuilder getModelSettingsOrBuilder() { + if (modelSettingsBuilder_ != null) { + return modelSettingsBuilder_.getMessageOrBuilder(); + } else { + return modelSettings_ == null + ? com.google.cloud.ces.v1beta.ModelSettings.getDefaultInstance() + : modelSettings_; + } + } + + /** + * + * + *
+     * Optional. Model settings for the deployment.
+     * Overrides model settings configured at the app/agent levels.
+     * Note: Deployment-level model settings override is gated behind an
+     * allowlist. Contact the CXAS team to enable this field.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ModelSettings model_settings = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.ModelSettings, + com.google.cloud.ces.v1beta.ModelSettings.Builder, + com.google.cloud.ces.v1beta.ModelSettingsOrBuilder> + internalGetModelSettingsFieldBuilder() { + if (modelSettingsBuilder_ == null) { + modelSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.ModelSettings, + com.google.cloud.ces.v1beta.ModelSettings.Builder, + com.google.cloud.ces.v1beta.ModelSettingsOrBuilder>( + getModelSettings(), getParentForChildren(), isClean()); + modelSettings_ = null; + } + return modelSettingsBuilder_; + } + + private int modality_ = 0; + + /** + * + * + *
+     * Optional. The modality of the deployment.
+     * Note: Deployment-level modality override is gated behind an allowlist.
+     * Contact the CXAS team to enable this field.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Deployment.Modality modality = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for modality. + */ + @java.lang.Override + public int getModalityValue() { + return modality_; + } + + /** + * + * + *
+     * Optional. The modality of the deployment.
+     * Note: Deployment-level modality override is gated behind an allowlist.
+     * Contact the CXAS team to enable this field.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Deployment.Modality modality = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for modality to set. + * @return This builder for chaining. + */ + public Builder setModalityValue(int value) { + modality_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The modality of the deployment.
+     * Note: Deployment-level modality override is gated behind an allowlist.
+     * Contact the CXAS team to enable this field.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Deployment.Modality modality = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The modality. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.Deployment.Modality getModality() { + com.google.cloud.ces.v1beta.Deployment.Modality result = + com.google.cloud.ces.v1beta.Deployment.Modality.forNumber(modality_); + return result == null ? com.google.cloud.ces.v1beta.Deployment.Modality.UNRECOGNIZED : result; + } + + /** + * + * + *
+     * Optional. The modality of the deployment.
+     * Note: Deployment-level modality override is gated behind an allowlist.
+     * Contact the CXAS team to enable this field.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Deployment.Modality modality = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The modality to set. + * @return This builder for chaining. + */ + public Builder setModality(com.google.cloud.ces.v1beta.Deployment.Modality value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000800; + modality_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The modality of the deployment.
+     * Note: Deployment-level modality override is gated behind an allowlist.
+     * Contact the CXAS team to enable this field.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Deployment.Modality modality = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearModality() { + bitField0_ = (bitField0_ & ~0x00000800); + modality_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.ces.v1beta.AgentRegistryDeployment agentRegistryDeployment_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.AgentRegistryDeployment, + com.google.cloud.ces.v1beta.AgentRegistryDeployment.Builder, + com.google.cloud.ces.v1beta.AgentRegistryDeploymentOrBuilder> + agentRegistryDeploymentBuilder_; + + /** + * + * + *
+     * Optional. Configuration for deploying this deployment to Agent Registry.
+     * If present, this deployment will be published to Agent Registry.
+     * 
+ * + * + * .google.cloud.ces.v1beta.AgentRegistryDeployment agent_registry_deployment = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the agentRegistryDeployment field is set. + */ + public boolean hasAgentRegistryDeployment() { + return ((bitField0_ & 0x00001000) != 0); + } + + /** + * + * + *
+     * Optional. Configuration for deploying this deployment to Agent Registry.
+     * If present, this deployment will be published to Agent Registry.
+     * 
+ * + * + * .google.cloud.ces.v1beta.AgentRegistryDeployment agent_registry_deployment = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The agentRegistryDeployment. + */ + public com.google.cloud.ces.v1beta.AgentRegistryDeployment getAgentRegistryDeployment() { + if (agentRegistryDeploymentBuilder_ == null) { + return agentRegistryDeployment_ == null + ? com.google.cloud.ces.v1beta.AgentRegistryDeployment.getDefaultInstance() + : agentRegistryDeployment_; + } else { + return agentRegistryDeploymentBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Configuration for deploying this deployment to Agent Registry.
+     * If present, this deployment will be published to Agent Registry.
+     * 
+ * + * + * .google.cloud.ces.v1beta.AgentRegistryDeployment agent_registry_deployment = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAgentRegistryDeployment( + com.google.cloud.ces.v1beta.AgentRegistryDeployment value) { + if (agentRegistryDeploymentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + agentRegistryDeployment_ = value; + } else { + agentRegistryDeploymentBuilder_.setMessage(value); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Configuration for deploying this deployment to Agent Registry.
+     * If present, this deployment will be published to Agent Registry.
+     * 
+ * + * + * .google.cloud.ces.v1beta.AgentRegistryDeployment agent_registry_deployment = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAgentRegistryDeployment( + com.google.cloud.ces.v1beta.AgentRegistryDeployment.Builder builderForValue) { + if (agentRegistryDeploymentBuilder_ == null) { + agentRegistryDeployment_ = builderForValue.build(); + } else { + agentRegistryDeploymentBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Configuration for deploying this deployment to Agent Registry.
+     * If present, this deployment will be published to Agent Registry.
+     * 
+ * + * + * .google.cloud.ces.v1beta.AgentRegistryDeployment agent_registry_deployment = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAgentRegistryDeployment( + com.google.cloud.ces.v1beta.AgentRegistryDeployment value) { + if (agentRegistryDeploymentBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0) + && agentRegistryDeployment_ != null + && agentRegistryDeployment_ + != com.google.cloud.ces.v1beta.AgentRegistryDeployment.getDefaultInstance()) { + getAgentRegistryDeploymentBuilder().mergeFrom(value); + } else { + agentRegistryDeployment_ = value; + } + } else { + agentRegistryDeploymentBuilder_.mergeFrom(value); + } + if (agentRegistryDeployment_ != null) { + bitField0_ |= 0x00001000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Configuration for deploying this deployment to Agent Registry.
+     * If present, this deployment will be published to Agent Registry.
+     * 
+ * + * + * .google.cloud.ces.v1beta.AgentRegistryDeployment agent_registry_deployment = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAgentRegistryDeployment() { + bitField0_ = (bitField0_ & ~0x00001000); + agentRegistryDeployment_ = null; + if (agentRegistryDeploymentBuilder_ != null) { + agentRegistryDeploymentBuilder_.dispose(); + agentRegistryDeploymentBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Configuration for deploying this deployment to Agent Registry.
+     * If present, this deployment will be published to Agent Registry.
+     * 
+ * + * + * .google.cloud.ces.v1beta.AgentRegistryDeployment agent_registry_deployment = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.AgentRegistryDeployment.Builder + getAgentRegistryDeploymentBuilder() { + bitField0_ |= 0x00001000; + onChanged(); + return internalGetAgentRegistryDeploymentFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Configuration for deploying this deployment to Agent Registry.
+     * If present, this deployment will be published to Agent Registry.
+     * 
+ * + * + * .google.cloud.ces.v1beta.AgentRegistryDeployment agent_registry_deployment = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.AgentRegistryDeploymentOrBuilder + getAgentRegistryDeploymentOrBuilder() { + if (agentRegistryDeploymentBuilder_ != null) { + return agentRegistryDeploymentBuilder_.getMessageOrBuilder(); + } else { + return agentRegistryDeployment_ == null + ? com.google.cloud.ces.v1beta.AgentRegistryDeployment.getDefaultInstance() + : agentRegistryDeployment_; + } + } + + /** + * + * + *
+     * Optional. Configuration for deploying this deployment to Agent Registry.
+     * If present, this deployment will be published to Agent Registry.
+     * 
+ * + * + * .google.cloud.ces.v1beta.AgentRegistryDeployment agent_registry_deployment = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.AgentRegistryDeployment, + com.google.cloud.ces.v1beta.AgentRegistryDeployment.Builder, + com.google.cloud.ces.v1beta.AgentRegistryDeploymentOrBuilder> + internalGetAgentRegistryDeploymentFieldBuilder() { + if (agentRegistryDeploymentBuilder_ == null) { + agentRegistryDeploymentBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.AgentRegistryDeployment, + com.google.cloud.ces.v1beta.AgentRegistryDeployment.Builder, + com.google.cloud.ces.v1beta.AgentRegistryDeploymentOrBuilder>( + getAgentRegistryDeployment(), getParentForChildren(), isClean()); + agentRegistryDeployment_ = null; + } + return agentRegistryDeploymentBuilder_; + } + // @@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 478e13fd35b0..f1523648b765 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 @@ -407,4 +407,137 @@ public interface DeploymentOrBuilder * */ com.google.cloud.ces.v1beta.InstagramCredentialsOrBuilder getInstagramCredentialsOrBuilder(); + + /** + * + * + *
+   * Optional. Model settings for the deployment.
+   * Overrides model settings configured at the app/agent levels.
+   * Note: Deployment-level model settings override is gated behind an
+   * allowlist. Contact the CXAS team to enable this field.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ModelSettings model_settings = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the modelSettings field is set. + */ + boolean hasModelSettings(); + + /** + * + * + *
+   * Optional. Model settings for the deployment.
+   * Overrides model settings configured at the app/agent levels.
+   * Note: Deployment-level model settings override is gated behind an
+   * allowlist. Contact the CXAS team to enable this field.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ModelSettings model_settings = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The modelSettings. + */ + com.google.cloud.ces.v1beta.ModelSettings getModelSettings(); + + /** + * + * + *
+   * Optional. Model settings for the deployment.
+   * Overrides model settings configured at the app/agent levels.
+   * Note: Deployment-level model settings override is gated behind an
+   * allowlist. Contact the CXAS team to enable this field.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ModelSettings model_settings = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1beta.ModelSettingsOrBuilder getModelSettingsOrBuilder(); + + /** + * + * + *
+   * Optional. The modality of the deployment.
+   * Note: Deployment-level modality override is gated behind an allowlist.
+   * Contact the CXAS team to enable this field.
+   * 
+ * + * + * .google.cloud.ces.v1beta.Deployment.Modality modality = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for modality. + */ + int getModalityValue(); + + /** + * + * + *
+   * Optional. The modality of the deployment.
+   * Note: Deployment-level modality override is gated behind an allowlist.
+   * Contact the CXAS team to enable this field.
+   * 
+ * + * + * .google.cloud.ces.v1beta.Deployment.Modality modality = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The modality. + */ + com.google.cloud.ces.v1beta.Deployment.Modality getModality(); + + /** + * + * + *
+   * Optional. Configuration for deploying this deployment to Agent Registry.
+   * If present, this deployment will be published to Agent Registry.
+   * 
+ * + * + * .google.cloud.ces.v1beta.AgentRegistryDeployment agent_registry_deployment = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the agentRegistryDeployment field is set. + */ + boolean hasAgentRegistryDeployment(); + + /** + * + * + *
+   * Optional. Configuration for deploying this deployment to Agent Registry.
+   * If present, this deployment will be published to Agent Registry.
+   * 
+ * + * + * .google.cloud.ces.v1beta.AgentRegistryDeployment agent_registry_deployment = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The agentRegistryDeployment. + */ + com.google.cloud.ces.v1beta.AgentRegistryDeployment getAgentRegistryDeployment(); + + /** + * + * + *
+   * Optional. Configuration for deploying this deployment to Agent Registry.
+   * If present, this deployment will be published to Agent Registry.
+   * 
+ * + * + * .google.cloud.ces.v1beta.AgentRegistryDeployment agent_registry_deployment = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1beta.AgentRegistryDeploymentOrBuilder + getAgentRegistryDeploymentOrBuilder(); } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationConfig.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationConfig.java index 62ea257b3742..b80b4da6793f 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationConfig.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationConfig.java @@ -255,15 +255,12 @@ private EvaluationChannel(int value) { * * * - * .google.cloud.ces.v1beta.InputAudioConfig input_audio_config = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.InputAudioConfig input_audio_config = 1 [(.google.api.field_behavior) = OPTIONAL]; * * - * @deprecated google.cloud.ces.v1beta.EvaluationConfig.input_audio_config is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1503 * @return Whether the inputAudioConfig field is set. */ @java.lang.Override - @java.lang.Deprecated public boolean hasInputAudioConfig() { return ((bitField0_ & 0x00000001) != 0); } @@ -276,15 +273,12 @@ public boolean hasInputAudioConfig() { * * * - * .google.cloud.ces.v1beta.InputAudioConfig input_audio_config = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.InputAudioConfig input_audio_config = 1 [(.google.api.field_behavior) = OPTIONAL]; * * - * @deprecated google.cloud.ces.v1beta.EvaluationConfig.input_audio_config is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1503 * @return The inputAudioConfig. */ @java.lang.Override - @java.lang.Deprecated public com.google.cloud.ces.v1beta.InputAudioConfig getInputAudioConfig() { return inputAudioConfig_ == null ? com.google.cloud.ces.v1beta.InputAudioConfig.getDefaultInstance() @@ -299,11 +293,10 @@ public com.google.cloud.ces.v1beta.InputAudioConfig getInputAudioConfig() { * * * - * .google.cloud.ces.v1beta.InputAudioConfig input_audio_config = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.InputAudioConfig input_audio_config = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - @java.lang.Deprecated public com.google.cloud.ces.v1beta.InputAudioConfigOrBuilder getInputAudioConfigOrBuilder() { return inputAudioConfig_ == null ? com.google.cloud.ces.v1beta.InputAudioConfig.getDefaultInstance() @@ -321,15 +314,12 @@ public com.google.cloud.ces.v1beta.InputAudioConfigOrBuilder getInputAudioConfig * * * - * .google.cloud.ces.v1beta.OutputAudioConfig output_audio_config = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.OutputAudioConfig output_audio_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * * - * @deprecated google.cloud.ces.v1beta.EvaluationConfig.output_audio_config is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1507 * @return Whether the outputAudioConfig field is set. */ @java.lang.Override - @java.lang.Deprecated public boolean hasOutputAudioConfig() { return ((bitField0_ & 0x00000002) != 0); } @@ -342,15 +332,12 @@ public boolean hasOutputAudioConfig() { * * * - * .google.cloud.ces.v1beta.OutputAudioConfig output_audio_config = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.OutputAudioConfig output_audio_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * * - * @deprecated google.cloud.ces.v1beta.EvaluationConfig.output_audio_config is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1507 * @return The outputAudioConfig. */ @java.lang.Override - @java.lang.Deprecated public com.google.cloud.ces.v1beta.OutputAudioConfig getOutputAudioConfig() { return outputAudioConfig_ == null ? com.google.cloud.ces.v1beta.OutputAudioConfig.getDefaultInstance() @@ -365,11 +352,10 @@ public com.google.cloud.ces.v1beta.OutputAudioConfig getOutputAudioConfig() { * * * - * .google.cloud.ces.v1beta.OutputAudioConfig output_audio_config = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.OutputAudioConfig output_audio_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - @java.lang.Deprecated public com.google.cloud.ces.v1beta.OutputAudioConfigOrBuilder getOutputAudioConfigOrBuilder() { return outputAudioConfig_ == null ? com.google.cloud.ces.v1beta.OutputAudioConfig.getDefaultInstance() @@ -903,14 +889,11 @@ public Builder mergeFrom( * * * - * .google.cloud.ces.v1beta.InputAudioConfig input_audio_config = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.InputAudioConfig input_audio_config = 1 [(.google.api.field_behavior) = OPTIONAL]; * * - * @deprecated google.cloud.ces.v1beta.EvaluationConfig.input_audio_config is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1503 * @return Whether the inputAudioConfig field is set. */ - @java.lang.Deprecated public boolean hasInputAudioConfig() { return ((bitField0_ & 0x00000001) != 0); } @@ -923,14 +906,11 @@ public boolean hasInputAudioConfig() { * * * - * .google.cloud.ces.v1beta.InputAudioConfig input_audio_config = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.InputAudioConfig input_audio_config = 1 [(.google.api.field_behavior) = OPTIONAL]; * * - * @deprecated google.cloud.ces.v1beta.EvaluationConfig.input_audio_config is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1503 * @return The inputAudioConfig. */ - @java.lang.Deprecated public com.google.cloud.ces.v1beta.InputAudioConfig getInputAudioConfig() { if (inputAudioConfigBuilder_ == null) { return inputAudioConfig_ == null @@ -949,10 +929,9 @@ public com.google.cloud.ces.v1beta.InputAudioConfig getInputAudioConfig() { * * * - * .google.cloud.ces.v1beta.InputAudioConfig input_audio_config = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.InputAudioConfig input_audio_config = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ - @java.lang.Deprecated public Builder setInputAudioConfig(com.google.cloud.ces.v1beta.InputAudioConfig value) { if (inputAudioConfigBuilder_ == null) { if (value == null) { @@ -975,10 +954,9 @@ public Builder setInputAudioConfig(com.google.cloud.ces.v1beta.InputAudioConfig * * * - * .google.cloud.ces.v1beta.InputAudioConfig input_audio_config = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.InputAudioConfig input_audio_config = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ - @java.lang.Deprecated public Builder setInputAudioConfig( com.google.cloud.ces.v1beta.InputAudioConfig.Builder builderForValue) { if (inputAudioConfigBuilder_ == null) { @@ -999,10 +977,9 @@ public Builder setInputAudioConfig( * * * - * .google.cloud.ces.v1beta.InputAudioConfig input_audio_config = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.InputAudioConfig input_audio_config = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ - @java.lang.Deprecated public Builder mergeInputAudioConfig(com.google.cloud.ces.v1beta.InputAudioConfig value) { if (inputAudioConfigBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) @@ -1031,10 +1008,9 @@ public Builder mergeInputAudioConfig(com.google.cloud.ces.v1beta.InputAudioConfi * * * - * .google.cloud.ces.v1beta.InputAudioConfig input_audio_config = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.InputAudioConfig input_audio_config = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ - @java.lang.Deprecated public Builder clearInputAudioConfig() { bitField0_ = (bitField0_ & ~0x00000001); inputAudioConfig_ = null; @@ -1054,10 +1030,9 @@ public Builder clearInputAudioConfig() { * * * - * .google.cloud.ces.v1beta.InputAudioConfig input_audio_config = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.InputAudioConfig input_audio_config = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ - @java.lang.Deprecated public com.google.cloud.ces.v1beta.InputAudioConfig.Builder getInputAudioConfigBuilder() { bitField0_ |= 0x00000001; onChanged(); @@ -1072,10 +1047,9 @@ public com.google.cloud.ces.v1beta.InputAudioConfig.Builder getInputAudioConfigB * * * - * .google.cloud.ces.v1beta.InputAudioConfig input_audio_config = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.InputAudioConfig input_audio_config = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ - @java.lang.Deprecated public com.google.cloud.ces.v1beta.InputAudioConfigOrBuilder getInputAudioConfigOrBuilder() { if (inputAudioConfigBuilder_ != null) { return inputAudioConfigBuilder_.getMessageOrBuilder(); @@ -1094,7 +1068,7 @@ public com.google.cloud.ces.v1beta.InputAudioConfigOrBuilder getInputAudioConfig * * * - * .google.cloud.ces.v1beta.InputAudioConfig input_audio_config = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.InputAudioConfig input_audio_config = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilder< @@ -1129,14 +1103,11 @@ public com.google.cloud.ces.v1beta.InputAudioConfigOrBuilder getInputAudioConfig * * * - * .google.cloud.ces.v1beta.OutputAudioConfig output_audio_config = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.OutputAudioConfig output_audio_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * * - * @deprecated google.cloud.ces.v1beta.EvaluationConfig.output_audio_config is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1507 * @return Whether the outputAudioConfig field is set. */ - @java.lang.Deprecated public boolean hasOutputAudioConfig() { return ((bitField0_ & 0x00000002) != 0); } @@ -1149,14 +1120,11 @@ public boolean hasOutputAudioConfig() { * * * - * .google.cloud.ces.v1beta.OutputAudioConfig output_audio_config = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.OutputAudioConfig output_audio_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * * - * @deprecated google.cloud.ces.v1beta.EvaluationConfig.output_audio_config is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1507 * @return The outputAudioConfig. */ - @java.lang.Deprecated public com.google.cloud.ces.v1beta.OutputAudioConfig getOutputAudioConfig() { if (outputAudioConfigBuilder_ == null) { return outputAudioConfig_ == null @@ -1175,10 +1143,9 @@ public com.google.cloud.ces.v1beta.OutputAudioConfig getOutputAudioConfig() { * * * - * .google.cloud.ces.v1beta.OutputAudioConfig output_audio_config = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.OutputAudioConfig output_audio_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ - @java.lang.Deprecated public Builder setOutputAudioConfig(com.google.cloud.ces.v1beta.OutputAudioConfig value) { if (outputAudioConfigBuilder_ == null) { if (value == null) { @@ -1201,10 +1168,9 @@ public Builder setOutputAudioConfig(com.google.cloud.ces.v1beta.OutputAudioConfi * * * - * .google.cloud.ces.v1beta.OutputAudioConfig output_audio_config = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.OutputAudioConfig output_audio_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ - @java.lang.Deprecated public Builder setOutputAudioConfig( com.google.cloud.ces.v1beta.OutputAudioConfig.Builder builderForValue) { if (outputAudioConfigBuilder_ == null) { @@ -1225,10 +1191,9 @@ public Builder setOutputAudioConfig( * * * - * .google.cloud.ces.v1beta.OutputAudioConfig output_audio_config = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.OutputAudioConfig output_audio_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ - @java.lang.Deprecated public Builder mergeOutputAudioConfig(com.google.cloud.ces.v1beta.OutputAudioConfig value) { if (outputAudioConfigBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) @@ -1257,10 +1222,9 @@ public Builder mergeOutputAudioConfig(com.google.cloud.ces.v1beta.OutputAudioCon * * * - * .google.cloud.ces.v1beta.OutputAudioConfig output_audio_config = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.OutputAudioConfig output_audio_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ - @java.lang.Deprecated public Builder clearOutputAudioConfig() { bitField0_ = (bitField0_ & ~0x00000002); outputAudioConfig_ = null; @@ -1280,10 +1244,9 @@ public Builder clearOutputAudioConfig() { * * * - * .google.cloud.ces.v1beta.OutputAudioConfig output_audio_config = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.OutputAudioConfig output_audio_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ - @java.lang.Deprecated public com.google.cloud.ces.v1beta.OutputAudioConfig.Builder getOutputAudioConfigBuilder() { bitField0_ |= 0x00000002; onChanged(); @@ -1298,10 +1261,9 @@ public com.google.cloud.ces.v1beta.OutputAudioConfig.Builder getOutputAudioConfi * * * - * .google.cloud.ces.v1beta.OutputAudioConfig output_audio_config = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.OutputAudioConfig output_audio_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ - @java.lang.Deprecated public com.google.cloud.ces.v1beta.OutputAudioConfigOrBuilder getOutputAudioConfigOrBuilder() { if (outputAudioConfigBuilder_ != null) { return outputAudioConfigBuilder_.getMessageOrBuilder(); @@ -1320,7 +1282,7 @@ public com.google.cloud.ces.v1beta.OutputAudioConfigOrBuilder getOutputAudioConf * * * - * .google.cloud.ces.v1beta.OutputAudioConfig output_audio_config = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.OutputAudioConfig output_audio_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilder< diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationConfigOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationConfigOrBuilder.java index c33d91da9b6e..b820f0dbdc74 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationConfigOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationConfigOrBuilder.java @@ -34,14 +34,11 @@ public interface EvaluationConfigOrBuilder * * * - * .google.cloud.ces.v1beta.InputAudioConfig input_audio_config = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.InputAudioConfig input_audio_config = 1 [(.google.api.field_behavior) = OPTIONAL]; * * - * @deprecated google.cloud.ces.v1beta.EvaluationConfig.input_audio_config is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1503 * @return Whether the inputAudioConfig field is set. */ - @java.lang.Deprecated boolean hasInputAudioConfig(); /** @@ -52,14 +49,11 @@ public interface EvaluationConfigOrBuilder * * * - * .google.cloud.ces.v1beta.InputAudioConfig input_audio_config = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.InputAudioConfig input_audio_config = 1 [(.google.api.field_behavior) = OPTIONAL]; * * - * @deprecated google.cloud.ces.v1beta.EvaluationConfig.input_audio_config is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1503 * @return The inputAudioConfig. */ - @java.lang.Deprecated com.google.cloud.ces.v1beta.InputAudioConfig getInputAudioConfig(); /** @@ -70,10 +64,9 @@ public interface EvaluationConfigOrBuilder * * * - * .google.cloud.ces.v1beta.InputAudioConfig input_audio_config = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.InputAudioConfig input_audio_config = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ - @java.lang.Deprecated com.google.cloud.ces.v1beta.InputAudioConfigOrBuilder getInputAudioConfigOrBuilder(); /** @@ -84,14 +77,11 @@ public interface EvaluationConfigOrBuilder * * * - * .google.cloud.ces.v1beta.OutputAudioConfig output_audio_config = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.OutputAudioConfig output_audio_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * * - * @deprecated google.cloud.ces.v1beta.EvaluationConfig.output_audio_config is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1507 * @return Whether the outputAudioConfig field is set. */ - @java.lang.Deprecated boolean hasOutputAudioConfig(); /** @@ -102,14 +92,11 @@ public interface EvaluationConfigOrBuilder * * * - * .google.cloud.ces.v1beta.OutputAudioConfig output_audio_config = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.OutputAudioConfig output_audio_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * * - * @deprecated google.cloud.ces.v1beta.EvaluationConfig.output_audio_config is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1507 * @return The outputAudioConfig. */ - @java.lang.Deprecated com.google.cloud.ces.v1beta.OutputAudioConfig getOutputAudioConfig(); /** @@ -120,10 +107,9 @@ public interface EvaluationConfigOrBuilder * * * - * .google.cloud.ces.v1beta.OutputAudioConfig output_audio_config = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.OutputAudioConfig output_audio_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ - @java.lang.Deprecated com.google.cloud.ces.v1beta.OutputAudioConfigOrBuilder getOutputAudioConfigOrBuilder(); /** 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 0f2019b1279f..95db307857ba 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=623 + * is deprecated. See google/cloud/ces/v1beta/app.proto;l=734 * @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=623 + * is deprecated. See google/cloud/ces/v1beta/app.proto;l=734 * @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=623 + * is deprecated. See google/cloud/ces/v1beta/app.proto;l=734 * @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=623 + * is deprecated. See google/cloud/ces/v1beta/app.proto;l=734 * @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=623 + * is deprecated. See google/cloud/ces/v1beta/app.proto;l=734 * @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=623 + * is deprecated. See google/cloud/ces/v1beta/app.proto;l=734 * @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=623 + * is deprecated. See google/cloud/ces/v1beta/app.proto;l=734 * @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 cb0a9545e5df..c603dcbf5cbc 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=623 + * is deprecated. See google/cloud/ces/v1beta/app.proto;l=734 * @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=623 + * is deprecated. See google/cloud/ces/v1beta/app.proto;l=734 * @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 2eee13c7e8d3..446a81875a20 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 @@ -472,7 +472,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132*.google.cloud.ces.v1beta.AggregatedMetricsB\004\342A\001\003:\255\001\352A\251\001\n" + "$ces.googleapis.com/EvaluationDataset\022Zprojects/{proj" + "ect}/locations/{location}/apps/{app}/eva" - + "luationDatasets/{evaluation_dataset}*\022evaluationDatasets2\021evaluationDataset\"\3678\n" + + "luationDatasets/{evaluation_dataset}*\022evaluationDatasets2\021evaluationDataset\"\325:\n" + "\020EvaluationResult\022U\n\r" + "golden_result\030\007 \001(\0132" + "6.google.cloud.ces.v1beta.EvaluationResult.GoldenResultB\004\342A\001\003H\000\022Y\n" @@ -508,7 +508,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006config\030\022" + " \001(\0132).google.cloud.ces.v1beta.EvaluationConfigB\004\342A\001\003\022I\n" + "\021golden_run_method\030\023 \001" - + "(\0162(.google.cloud.ces.v1beta.GoldenRunMethodB\004\342A\001\003\032\352\007\n" + + "(\0162(.google.cloud.ces.v1beta.GoldenRunMethodB\004\342A\001\003\0226\n" + + "\troot_span\030\030" + + " \001(\0132\035.google.cloud.ces.v1beta.SpanB\004\342A\001\003\022Y\n" + + "\020outcome_metadata\030\031 \001(\01629.google.cloud.ces.v1beta.E" + + "valuationResult.OutcomeMetadataB\004\342A\001\003\032\352\007\n" + "\030GoldenExpectationOutcome\022E\n" + "\022observed_tool_call\030\002" + " \001(\0132!.google.cloud.ces.v1beta.ToolCallB\004\342A\001\003H\000\022M\n" @@ -520,20 +524,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132&.google.cloud.ces.v1beta.AgentTransferB\004\342A\001\003H\000\0229\n" + "\020observed_payload\030\t" + " \001(\0132\027.google.protobuf.StructB\004\342A\001\003H\000\022P\n" - + "\013expectation\030\001 \001(\01325.google.cloud" - + ".ces.v1beta.Evaluation.GoldenExpectationB\004\342A\001\003\022H\n" - + "\007outcome\030\006 \001(\01621.google.cloud.c" - + "es.v1beta.EvaluationResult.OutcomeB\004\342A\001\003\022n\n" - + "\032semantic_similarity_result\030\007 \001(\0132B.g" - + "oogle.cloud.ces.v1beta.EvaluationResult.SemanticSimilarityResultB\006\030\001\342A\001\003\022}\n" - + "\026tool_invocation_result\030\010 \001(\0132W.google.cloud." - + "ces.v1beta.EvaluationResult.GoldenExpect" - + "ationOutcome.ToolInvocationResultB\004\342A\001\003\032\313\001\n" + + "\013expectation\030\001" + + " \001(\01325.google.cloud.ces.v1beta.Evaluation.GoldenExpectationB\004\342A\001\003\022H\n" + + "\007outcome\030\006" + + " \001(\01621.google.cloud.ces.v1beta.EvaluationResult.OutcomeB\004\342A\001\003\022n\n" + + "\032semantic_similarity_result\030\007 \001(\0132B.google.cloud.c" + + "es.v1beta.EvaluationResult.SemanticSimilarityResultB\006\030\001\342A\001\003\022}\n" + + "\026tool_invocation_result\030\010 \001(\0132W.google.cloud.ces.v1beta.Ev" + + "aluationResult.GoldenExpectationOutcome.ToolInvocationResultB\004\342A\001\003\032\313\001\n" + "\024ToolInvocationResult\022.\n" + "\033parameter_correctness_score\030\001" + " \001(\002B\004\342A\001\003H\000\210\001\001\022H\n" - + "\007outcome\030\002" - + " \001(\01621.google.cloud.ces.v1beta.EvaluationResult.OutcomeB\004\342A\001\003\022\031\n" + + "\007outcome\030\002 \001(\01621.g" + + "oogle.cloud.ces.v1beta.EvaluationResult.OutcomeB\004\342A\001\003\022\031\n" + "\013explanation\030\003 \001(\tB\004\342A\001\003B\036\n" + "\034_parameter_correctness_scoreB\010\n" + "\006result\032\353\001\n" @@ -541,36 +544,38 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026evaluation_expectation\030\001 \001(\tB1\342A\001\003\372A*\n" + "(ces.googleapis.com/EvaluationExpectation\022\024\n" + "\006prompt\030\002 \001(\tB\004\342A\001\003\022H\n" - + "\007outcome\030\003" - + " \001(\01621.google.cloud.ces.v1beta.EvaluationResult.OutcomeB\004\342A\001\003\022\031\n" + + "\007outcome\030\003 \001(\01621.g" + + "oogle.cloud.ces.v1beta.EvaluationResult.OutcomeB\004\342A\001\003\022\031\n" + "\013explanation\030\004 \001(\tB\004\342A\001\003\032\236\t\n" + "\014GoldenResult\022j\n" - + "\023turn_replay_results\030\001 \003(\0132G.google.cloud.ces.v" - + "1beta.EvaluationResult.GoldenResult.TurnReplayResultB\004\342A\001\003\022s\n" - + "\036evaluation_expectation_results\030\002 \003(\0132E.google.cloud.ces.v1" - + "beta.EvaluationResult.EvaluationExpectationResultB\004\342A\001\003\032\254\007\n" + + "\023turn_replay_results\030\001 \003(\0132G.google.cloud.ces.v1beta.Evaluat" + + "ionResult.GoldenResult.TurnReplayResultB\004\342A\001\003\022s\n" + + "\036evaluation_expectation_results\030\002" + + " \003(\0132E.google.cloud.ces.v1beta.Evaluati" + + "onResult.EvaluationExpectationResultB\004\342A\001\003\032\254\007\n" + "\020TurnReplayResult\022>\n" + "\014conversation\030\001 \001(\tB(\342A\001\003\372A!\n" + "\037ces.googleapis.com/Conversation\022e\n" - + "\023expectation_outcome\030\002 \003(\0132B.google.cloud.ces.v1beta.Eval" - + "uationResult.GoldenExpectationOutcomeB\004\342A\001\003\022a\n" - + "\024hallucination_result\030\003 \001(\0132=.goog" - + "le.cloud.ces.v1beta.EvaluationResult.HallucinationResultB\004\342A\001\003\022%\n" + + "\023expectation_outcome\030\002 \003(\0132B.g" + + "oogle.cloud.ces.v1beta.EvaluationResult.GoldenExpectationOutcomeB\004\342A\001\003\022a\n" + + "\024hallucination_result\030\003 \001(\0132=.google.cloud.ces." + + "v1beta.EvaluationResult.HallucinationResultB\004\342A\001\003\022%\n" + "\025tool_invocation_score\030\004 \001(\002B\006\030\001\342A\001\003\0220\n" + "\035tool_ordered_invocation_score\030\005" + " \001(\002B\004\342A\001\003H\000\210\001\001\0225\n" + "\014turn_latency\030\006" + " \001(\0132\031.google.protobuf.DurationB\004\342A\001\003\022\\\n" - + "\023tool_call_latencies\030\007 \003(\01329.go" - + "ogle.cloud.ces.v1beta.EvaluationResult.ToolCallLatencyB\004\342A\001\003\022l\n" - + "\032semantic_similarity_result\030\010 \001(\0132B.google.cloud.ces.v1be" - + "ta.EvaluationResult.SemanticSimilarityResultB\004\342A\001\003\022s\n" - + "\036overall_tool_invocation_result\030\t \001(\0132E.google.cloud.ces.v1beta.Eva" - + "luationResult.OverallToolInvocationResultB\004\342A\001\003\022F\n\n" + + "\023tool_call_latencies\030\007 \003(\01329.google.cloud.ce" + + "s.v1beta.EvaluationResult.ToolCallLatencyB\004\342A\001\003\022l\n" + + "\032semantic_similarity_result\030\010 " + + "\001(\0132B.google.cloud.ces.v1beta.EvaluationResult.SemanticSimilarityResultB\004\342A\001\003\022s\n" + + "\036overall_tool_invocation_result\030\t \001(\0132E." + + "google.cloud.ces.v1beta.EvaluationResult.OverallToolInvocationResultB\004\342A\001\003\022F\n\n" + "error_info\030\n" + " \001(\0132,.google.cloud.ces.v1beta.EvaluationErrorInfoB\004\342A\001\003\022S\n" - + "\016span_latencies\030\013 \003(\01325.google.cloud.c" - + "es.v1beta.EvaluationResult.SpanLatencyB\004\342A\001\003B \n" + + "\016span_latencies\030\013" + + " \003(\01325.google.cloud.ces.v1beta.EvaluationResult.SpanLatencyB\004\342A\001\003B" + + " \n" + "\036_tool_ordered_invocation_score\032r\n" + "\025ScenarioRubricOutcome\022\024\n" + "\006rubric\030\001 \001(\tB\004\342A\001\003\022\030\n" @@ -578,14 +583,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021score_explanation\030\003 \001(\tB\004\342A\001\003B\010\n" + "\006_score\032\237\004\n" + "\032ScenarioExpectationOutcome\022y\n" - + "\022observed_tool_call\030\002 \001(\0132U.google.cloud.ces.v1beta." - + "EvaluationResult.ScenarioExpectationOutcome.ObservedToolCallB\004\342A\001\003H\000\022I\n" + + "\022observed_tool_call\030\002 \001(\0132U.google.cloud.ces.v1beta.EvaluationRes" + + "ult.ScenarioExpectationOutcome.ObservedToolCallB\004\342A\001\003H\000\022I\n" + "\027observed_agent_response\030\003 \001(\0132" + " .google.cloud.ces.v1beta.MessageB\004\342A\001\003H\000\022R\n" - + "\013expectation\030\001" - + " \001(\01327.google.cloud.ces.v1beta.Evaluation.ScenarioExpectationB\004\342A\001\003\022H\n" - + "\007outcome\030\004" - + " \001(\01621.google.cloud.ces.v1beta.EvaluationResult.OutcomeB\004\342A\001\003\032\222\001\n" + + "\013expectation\030\001 \001(\01327.google" + + ".cloud.ces.v1beta.Evaluation.ScenarioExpectationB\004\342A\001\003\022H\n" + + "\007outcome\030\004 \001(\01621.google" + + ".cloud.ces.v1beta.EvaluationResult.OutcomeB\004\342A\001\003\032\222\001\n" + "\020ObservedToolCall\022:\n" + "\ttool_call\030\001" + " \001(\0132!.google.cloud.ces.v1beta.ToolCallB\004\342A\001\003\022B\n\r" @@ -597,38 +602,38 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\037ces.googleapis.com/Conversation\022\022\n" + "\004task\030\n" + " \001(\tB\004\342A\001\003\022O\n\n" - + "user_facts\030\013 \003(\01325.google.cloud.c" - + "es.v1beta.Evaluation.Scenario.UserFactB\004\342A\001\003\022h\n" - + "\024expectation_outcomes\030\002 \003(\0132D.goo" - + "gle.cloud.ces.v1beta.EvaluationResult.ScenarioExpectationOutcomeB\004\342A\001\003\022^\n" - + "\017rubric_outcomes\030\003 \003(\0132?.google.cloud.ces.v1bet" - + "a.EvaluationResult.ScenarioRubricOutcomeB\004\342A\001\003\022a\n" - + "\024hallucination_result\030\004 \003(\0132=.g" - + "oogle.cloud.ces.v1beta.EvaluationResult.HallucinationResultB\004\342A\001\003\022f\n" - + "\026task_completion_result\030\005 \001(\0132>.google.cloud.ces.v1b" - + "eta.EvaluationResult.TaskCompletionResultB\006\030\001\342A\001\003\022\\\n" - + "\023tool_call_latencies\030\006 \003(\01329" - + ".google.cloud.ces.v1beta.EvaluationResult.ToolCallLatencyB\004\342A\001\003\022q\n" - + "\035user_goal_satisfaction_result\030\007 \001(\0132D.google.cloud.ce" - + "s.v1beta.EvaluationResult.UserGoalSatisfactionResultB\004\342A\001\003\022-\n" + + "user_facts\030\013" + + " \003(\01325.google.cloud.ces.v1beta.Evaluation.Scenario.UserFactB\004\342A\001\003\022h\n" + + "\024expectation_outcomes\030\002 \003(\0132D.google.cloud.ces" + + ".v1beta.EvaluationResult.ScenarioExpectationOutcomeB\004\342A\001\003\022^\n" + + "\017rubric_outcomes\030\003 \003" + + "(\0132?.google.cloud.ces.v1beta.EvaluationResult.ScenarioRubricOutcomeB\004\342A\001\003\022a\n" + + "\024hallucination_result\030\004 \003(\0132=.google.cloud.c" + + "es.v1beta.EvaluationResult.HallucinationResultB\004\342A\001\003\022f\n" + + "\026task_completion_result\030\005" + + " \001(\0132>.google.cloud.ces.v1beta.EvaluationResult.TaskCompletionResultB\006\030\001\342A\001\003\022\\\n" + + "\023tool_call_latencies\030\006 \003(\01329.google.cloud" + + ".ces.v1beta.EvaluationResult.ToolCallLatencyB\004\342A\001\003\022q\n" + + "\035user_goal_satisfaction_result\030\007 \001(\0132D.google.cloud.ces.v1beta.Eval" + + "uationResult.UserGoalSatisfactionResultB\004\342A\001\003\022-\n" + "\032all_expectations_satisfied\030\010" + " \001(\010B\004\342A\001\003H\000\210\001\001\022!\n" + "\016task_completed\030\t \001(\010B\004\342A\001\003H\001\210\001\001\022S\n" - + "\016span_latencies\030\014" - + " \003(\01325.google.cloud.ces.v1beta.EvaluationResult.SpanLatencyB\004\342A\001\003\022s\n" + + "\016span_latencies\030\014 \003(\01325.google" + + ".cloud.ces.v1beta.EvaluationResult.SpanLatencyB\004\342A\001\003\022s\n" + "\036evaluation_expectation_results\030\r" - + " \003(\0132E.google.cloud" - + ".ces.v1beta.EvaluationResult.EvaluationExpectationResultB\004\342A\001\003B\035\n" + + " \003(\0132E.google.cloud.ces.v1beta.E" + + "valuationResult.EvaluationExpectationResultB\004\342A\001\003B\035\n" + "\033_all_expectations_satisfiedB\021\n" + "\017_task_completed\032\212\004\n" + "\013SpanLatency\022\030\n" + "\010resource\030\002 \001(\tB\004\342A\001\003H\000\022=\n" - + "\007toolset\030\003" - + " \001(\0132$.google.cloud.ces.v1beta.ToolsetToolB\004\342A\001\003H\000\022\025\n" + + "\007toolset\030\003 \001(\0132$" + + ".google.cloud.ces.v1beta.ToolsetToolB\004\342A\001\003H\000\022\025\n" + "\005model\030\004 \001(\tB\004\342A\001\003H\000\022\030\n" + "\010callback\030\005 \001(\tB\004\342A\001\003H\000\022N\n" - + "\004type\030\001 \001(\016" - + "2:.google.cloud.ces.v1beta.EvaluationResult.SpanLatency.TypeB\004\342A\001\003\022\032\n" + + "\004type\030\001 \001(\0162:.google.clo" + + "ud.ces.v1beta.EvaluationResult.SpanLatency.TypeB\004\342A\001\003\022\032\n" + "\014display_name\030\t \001(\tB\004\342A\001\003\0224\n\n" + "start_time\030\006 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0222\n" + "\010end_time\030\007 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022:\n" @@ -663,13 +668,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005score\030\001 \001(\005B\004\342A\001\003H\000\210\001\001\022\023\n" + "\005label\030\002 \001(\tB\004\342A\001\003\022\031\n" + "\013explanation\030\003 \001(\tB\004\342A\001\003\022H\n" - + "\007outcome\030\004 \001(\016" - + "21.google.cloud.ces.v1beta.EvaluationResult.OutcomeB\004\342A\001\003B\010\n" + + "\007outcome\030\004 \001(\01621.google.clo" + + "ud.ces.v1beta.EvaluationResult.OutcomeB\004\342A\001\003B\010\n" + "\006_score\032\245\001\n" + "\033OverallToolInvocationResult\022\"\n" + "\025tool_invocation_score\030\001 \001(\002H\000\210\001\001\022H\n" - + "\007outcome\030\002 \001(\01621.googl" - + "e.cloud.ces.v1beta.EvaluationResult.OutcomeB\004\342A\001\003B\030\n" + + "\007outcome\030\002" + + " \001(\01621.google.cloud.ces.v1beta.EvaluationResult.OutcomeB\004\342A\001\003B\030\n" + "\026_tool_invocation_score\032j\n" + "\024TaskCompletionResult\022\030\n" + "\005score\030\001 \001(\005B\004\342A\001\003H\000\210\001\001\022\023\n" @@ -687,10 +692,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007RUNNING\020\001\022\r\n" + "\tCOMPLETED\020\002\022\t\n" + "\005ERROR\020\003\022\r\n" - + "\tCANCELLED\020\004:\267\001\352A\263\001\n" - + "#ces.googleapis.com/EvaluationResult\022gprojects/{project}/locati" - + "ons/{location}/apps/{app}/evaluations/{e" - + "valuation}/results/{evaluation_result}*\021evaluationResults2\020evaluationResultB\010\n" + + "\tCANCELLED\020\004\"I\n" + + "\017OutcomeMetadata\022 \n" + + "\034OUTCOME_METADATA_UNSPECIFIED\020\000\022\024\n" + + "\020GRACEFUL_HANDOFF\020\001:\267\001\352A\263\001\n" + + "#ces.googleapis.com/EvaluationResult\022gprojects/{project}/locations/{location}/app" + + "s/{app}/evaluations/{evaluation}/results" + + "/{evaluation_result}*\021evaluationResults2\020evaluationResultB\010\n" + "\006result\"\234\022\n\r" + "EvaluationRun\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\010\022\032\n" @@ -712,30 +720,33 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\035ces.googleapis.com/Evaluation\022I\n" + "\022evaluation_dataset\030\010 \001(\tB-\342A\001\003\372A&\n" + "$ces.googleapis.com/EvaluationDataset\022T\n" - + "\017evaluation_type\030\t" - + " \001(\01625.google.cloud.ces.v1beta.EvaluationRun.EvaluationTypeB\004\342A\001\003\022N\n" + + "\017evaluation_type\030\t \001(\01625.go" + + "ogle.cloud.ces.v1beta.EvaluationRun.EvaluationTypeB\004\342A\001\003\022N\n" + "\005state\030\n" - + " \001(\01629.google.cloud.ces.v1beta.EvaluationRun.EvaluationRunStateB\004\342A\001\003\022G\n" - + "\010progress\030\013" - + " \001(\0132/.google.cloud.ces.v1beta.EvaluationRun.ProgressB\004\342A\001\003\022?\n" - + "\006config\030\014 " - + "\001(\0132).google.cloud.ces.v1beta.EvaluationConfigB\004\342A\001\003\022)\n" - + "\005error\030\016 \001(\0132\022.google.rpc.StatusB\006\030\001\342A\001\003\022F\n\n" - + "error_info\030\021 \001(\0132,.go" - + "ogle.cloud.ces.v1beta.EvaluationErrorInfoB\004\342A\001\003\022j\n" - + "\030evaluation_run_summaries\030\017 \003(" - + "\0132B.google.cloud.ces.v1beta.EvaluationRun.EvaluationRunSummariesEntryB\004\342A\001\003\022D\n" - + "\016latency_report\030\031" - + " \001(\0132&.google.cloud.ces.v1beta.LatencyReportB\004\342A\001\003\022\027\n" + + " \001(\01629.google" + + ".cloud.ces.v1beta.EvaluationRun.EvaluationRunStateB\004\342A\001\003\022G\n" + + "\010progress\030\013 \001(\0132/.goo" + + "gle.cloud.ces.v1beta.EvaluationRun.ProgressB\004\342A\001\003\022?\n" + + "\006config\030\014" + + " \001(\0132).google.cloud.ces.v1beta.EvaluationConfigB\004\342A\001\003\022)\n" + + "\005error\030\016 \001(\0132\022.google.rpc.StatusB\006\030\001\342A\001\003\022F\n" + + "\n" + + "error_info\030\021" + + " \001(\0132,.google.cloud.ces.v1beta.EvaluationErrorInfoB\004\342A\001\003\022j\n" + + "\030evaluat", + "ion_run_summaries\030\017 \003(\0132B.google.cloud.c" + + "es.v1beta.EvaluationRun.EvaluationRunSummariesEntryB\004\342A\001\003\022D\n" + + "\016latency_report\030\031 \001(" + + "\0132&.google.cloud.ces.v1beta.LatencyReportB\004\342A\001\003\022\027\n" + "\trun_count\030\020 \001(\005B\004\342A\001\003\022L\n" - + "\023persona_run_configs\030\022 \003(\0132", - ").google.cloud.ces.v1beta.PersonaRunConfigB\004\342A\001\003\022N\n" - + "\023optimization_config\030\023 \001(\0132+." - + "google.cloud.ces.v1beta.OptimizationConfigB\004\342A\001\001\022T\n" + + "\023persona_run_configs\030\022" + + " \003(\0132).google.cloud.ces.v1beta.PersonaRunConfigB\004\342A\001\003\022N\n" + + "\023optimization_config\030\023" + + " \001(\0132+.google.cloud.ces.v1beta.OptimizationConfigB\004\342A\001\001\022T\n" + "\030scheduled_evaluation_run\030\024 \001(\tB2\342A\001\003\372A+\n" + ")ces.googleapis.com/ScheduledEvaluationRun\022I\n" - + "\021golden_run_method\030\025 \001(" - + "\0162(.google.cloud.ces.v1beta.GoldenRunMethodB\004\342A\001\003\022\027\n" + + "\021golden_run_method\030\025" + + " \001(\0162(.google.cloud.ces.v1beta.GoldenRunMethodB\004\342A\001\003\022\027\n" + "\toperation\030\032 \001(\tB\004\342A\001\003\032\266\001\n" + "\010Progress\022\031\n" + "\013total_count\030\001 \001(\005B\004\342A\001\003\022\032\n" @@ -750,34 +761,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013error_count\030\003 \001(\005B\004\342A\001\003\032z\n" + "\033EvaluationRunSummariesEntry\022\013\n" + "\003key\030\001 \001(\t\022J\n" - + "\005value\030\002 \001(\0132;.google.cloud" - + ".ces.v1beta.EvaluationRun.EvaluationRunSummary:\0028\001\"V\n" + + "\005value\030\002" + + " \001(\0132;.google.cloud.ces.v1beta.EvaluationRun.EvaluationRunSummary:\0028\001\"V\n" + "\016EvaluationType\022\037\n" + "\033EVALUATION_TYPE_UNSPECIFIED\020\000\022\n\n" + "\006GOLDEN\020\001\022\014\n" + "\010SCENARIO\020\002\022\t\n" + "\005MIXED\020\003\"|\n" + "\022EvaluationRunState\022$\n" - + " EVALUATION_RUN_STATE_UNSPECIFIED\020\000\022\n" - + "\n" + + " EVALUATION_RUN_STATE_UNSPECIFIED\020\000\022\n\n" + "\006QUEUED\020\005\022\013\n" + "\007RUNNING\020\001\022\r\n" + "\tCOMPLETED\020\002\022\t\n" + "\005ERROR\020\003\022\r\n" + "\tCANCELLED\020\004:\231\001\352A\225\001\n" - + " ces.googleapis.com/EvaluationRun\022Rprojects/{pro" - + "ject}/locations/{location}/apps/{app}/ev" - + "aluationRuns/{evaluation_run}*\016evaluationRuns2\r" + + " ces.googleapis.com/EvaluationRun\022Rprojects/{project}/locations/{l" + + "ocation}/apps/{app}/evaluationRuns/{evaluation_run}*\016evaluationRuns2\r" + "evaluationRun\"\266\n\n\r" + "LatencyReport\022Q\n" - + "\016tool_latencies\030\001 \003(\01322.google.cloud.ce" - + "s.v1beta.LatencyReport.ToolLatencyB\005\342A\002\003\006\022Y\n" - + "\022callback_latencies\030\002 \003(\01326.google.c" - + "loud.ces.v1beta.LatencyReport.CallbackLatencyB\005\342A\002\003\006\022[\n" - + "\023guardrail_latencies\030\003 \003(" - + "\01327.google.cloud.ces.v1beta.LatencyReport.GuardrailLatencyB\005\342A\002\003\006\022X\n" - + "\022llm_call_latencies\030\004" - + " \003(\01325.google.cloud.ces.v1beta.LatencyReport.LlmCallLatencyB\005\342A\002\003\006\022\033\n\r" + + "\016tool_latencies\030\001" + + " \003(\01322.google.cloud.ces.v1beta.LatencyReport.ToolLatencyB\005\342A\002\003\006\022Y\n" + + "\022callback_latencies\030\002" + + " \003(\01326.google.cloud.ces.v1beta.LatencyReport.CallbackLatencyB\005\342A\002\003\006\022[\n" + + "\023guardrail_latencies\030\003 \003(\01327.google.cloud.c" + + "es.v1beta.LatencyReport.GuardrailLatencyB\005\342A\002\003\006\022X\n" + + "\022llm_call_latencies\030\004 \003(\01325.go" + + "ogle.cloud.ces.v1beta.LatencyReport.LlmCallLatencyB\005\342A\002\003\006\022\033\n\r" + "session_count\030\005 \001(\005B\004\342A\001\003\032\314\001\n" + "\016LatencyMetrics\0224\n" + "\013p50_latency\030\001" @@ -790,29 +799,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013ToolLatency\0220\n" + "\004tool\030\001 \001(\tB \342A\001\003\372A\031\n" + "\027ces.googleapis.com/ToolH\000\022B\n" - + "\014toolset_tool\030\002 \001(\0132" - + "$.google.cloud.ces.v1beta.ToolsetToolB\004\342A\001\003H\000\022\037\n" + + "\014toolset_tool\030\002" + + " \001(\0132$.google.cloud.ces.v1beta.ToolsetToolB\004\342A\001\003H\000\022\037\n" + "\021tool_display_name\030\003 \001(\tB\004\342A\001\003\022T\n" - + "\017latency_metrics\030\004 \001(\01325.google.cloud.c" - + "es.v1beta.LatencyReport.LatencyMetricsB\004\342A\001\003B\021\n" + + "\017latency_metrics\030\004" + + " \001(\01325.google.cloud.ces.v1beta.LatencyReport.LatencyMetricsB\004\342A\001\003B\021\n" + "\017tool_identifier\032|\n" + "\017CallbackLatency\022\023\n" + "\005stage\030\001 \001(\tB\004\342A\001\003\022T\n" - + "\017latency_metrics\030\002" - + " \001(\01325.google.cloud.ces.v1beta.LatencyReport.LatencyMetricsB\004\342A\001\003\032\310\001\n" + + "\017latency_metrics\030\002 \001(\01325.google." + + "cloud.ces.v1beta.LatencyReport.LatencyMetricsB\004\342A\001\003\032\310\001\n" + "\020GuardrailLatency\0228\n" + "\tguardrail\030\001 \001(\tB%\342A\001\003\372A\036\n" + "\034ces.googleapis.com/Guardrail\022$\n" + "\026guardrail_display_name\030\002 \001(\tB\004\342A\001\003\022T\n" - + "\017latency_metrics\030\003" - + " \001(\01325.google.cloud.ces.v1beta.LatencyReport.LatencyMetricsB\004\342A\001\003\032{\n" + + "\017latency_metrics\030\003 \001(\01325.goog" + + "le.cloud.ces.v1beta.LatencyReport.LatencyMetricsB\004\342A\001\003\032{\n" + "\016LlmCallLatency\022\023\n" + "\005model\030\001 \001(\tB\004\342A\001\003\022T\n" - + "\017latency_metrics\030\002 \001(\01325.google.cloud.ces.v1be" - + "ta.LatencyReport.LatencyMetricsB\004\342A\001\003\"\254\004\n" + + "\017latency_metrics\030\002 \001(\01325" + + ".google.cloud.ces.v1beta.LatencyReport.LatencyMetricsB\004\342A\001\003\"\254\004\n" + "\025EvaluationExpectation\022X\n" - + "\014llm_criteria\030\003" - + " \001(\0132:.google.cloud.ces.v1beta.EvaluationExpectation.LlmCriteriaB\004\342A\001\001H\000\022\022\n" + + "\014llm_criteria\030\003 \001(\0132:.google.clo" + + "ud.ces.v1beta.EvaluationExpectation.LlmCriteriaB\004\342A\001\001H\000\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\010\022\032\n" + "\014display_name\030\002 \001(\tB\004\342A\001\002\022\022\n" + "\004tags\030\010 \003(\tB\004\342A\001\001\0225\n" @@ -823,26 +832,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004etag\030\006 \001(\tB\004\342A\001\003\032#\n" + "\013LlmCriteria\022\024\n" + "\006prompt\030\001 \001(\tB\004\342A\001\002:\301\001\352A\275\001\n" - + "(ces.googleapis.com/EvaluationExpectation\022bp" - + "rojects/{project}/locations/{location}/apps/{app}/evaluationExpectations/{evalua" - + "tion_expectation}*\026evaluationExpectations2\025evaluationExpectationB\n\n" - + "\010criteria\"\270\003\n" - + "\020EvaluationConfig\022M\n" + + "(ces.googleapis.com/EvaluationExpectation\022bprojects/{project}/" + + "locations/{location}/apps/{app}/evaluationExpectations/{evaluation_expectation}*" + + "\026evaluationExpectations2\025evaluationExpectationB\n\n" + + "\010criteria\"\264\003\n" + + "\020EvaluationConfig\022K\n" + "\022input_audio_config\030\001" - + " \001(\0132).google.cloud.ces.v1beta.InputAudioConfigB\006\030\001\342A\001\001\022O\n" + + " \001(\0132).google.cloud.ces.v1beta.InputAudioConfigB\004\342A\001\001\022M\n" + "\023output_audio_config\030\002" - + " \001(\0132*.google.cloud.ces.v1beta.OutputAudioConfigB\006\030\001\342A\001\001\022]\n" - + "\022evaluation_channel\030\003" - + " \001(\0162;.google.cloud.ces.v1beta.EvaluationConfig.EvaluationChannelB\004\342A\001\001\022W\n" - + "\023tool_call_behaviour\030\004 \001(\01624.google.cloud.ces" - + ".v1beta.EvaluationToolCallBehaviourB\004\342A\001\001\"L\n" + + " \001(\0132*.google.cloud.ces.v1beta.OutputAudioConfigB\004\342A\001\001\022]\n" + + "\022evaluation_channel\030\003 \001(\0162;.google.cloud.c" + + "es.v1beta.EvaluationConfig.EvaluationChannelB\004\342A\001\001\022W\n" + + "\023tool_call_behaviour\030\004 \001(\0162" + + "4.google.cloud.ces.v1beta.EvaluationToolCallBehaviourB\004\342A\001\001\"L\n" + "\021EvaluationChannel\022\"\n" + "\036EVALUATION_CHANNEL_UNSPECIFIED\020\000\022\010\n" + "\004TEXT\020\001\022\t\n" + "\005AUDIO\020\002\"\233\003\n" + "\023EvaluationErrorInfo\022P\n\n" - + "error_type\030\001 " - + "\001(\01626.google.cloud.ces.v1beta.EvaluationErrorInfo.ErrorTypeB\004\342A\001\003\022\033\n\r" + + "error_type\030\001 \001(\01626.google.cloud.ces" + + ".v1beta.EvaluationErrorInfo.ErrorTypeB\004\342A\001\003\022\033\n\r" + "error_message\030\002 \001(\tB\004\342A\001\003\022\030\n\n" + "session_id\030\003 \001(\tB\004\342A\001\003\022\'\n" + "\031user_facing_error_message\030\004 \001(\tB\004\342A\001\003\"\321\001\n" @@ -869,24 +878,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\trun_count\030\t \001(\005B\004\342A\001\001H\000\210\001\001\022L\n" + "\023persona_run_configs\030\n" + " \003(\0132).google.cloud.ces.v1beta.PersonaRunConfigB\004\342A\001\001\022N\n" - + "\023optimization_config\030\013 \001(\0132+.google" - + ".cloud.ces.v1beta.OptimizationConfigB\004\342A\001\001\022T\n" + + "\023optimization_config\030\013" + + " \001(\0132+.google.cloud.ces.v1beta.OptimizationConfigB\004\342A\001\001\022T\n" + "\030scheduled_evaluation_run\030\014 \001(\tB2\342A\001\001\372A+\n" + ")ces.googleapis.com/ScheduledEvaluationRun\022I\n" + "\021golden_run_method\030\r" + " \001(\0162(.google.cloud.ces.v1beta.GoldenRunMethodB\004\342A\001\001\022%\n" + "\027generate_latency_report\030\016 \001(\010B\004\342A\001\001\022d\n" - + "\037evaluation_run_caching_settings\030\017 " - + "\001(\01325.google.cloud.ces.v1beta.EvaluationRunCachingSettingsB\004\342A\001\001B\014\n\n" + + "\037evaluation_run_caching_settings\030\017 \001(\01325.google.cloud.ces" + + ".v1beta.EvaluationRunCachingSettingsB\004\342A\001\001B\014\n\n" + "_run_count\"\372\010\n" + "\026ScheduledEvaluationRun\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\010\022\032\n" + "\014display_name\030\002 \001(\tB\004\342A\001\002\022D\n" - + "\007request\030\003" - + " \001(\0132-.google.cloud.ces.v1beta.RunEvaluationRequestB\004\342A\001\002\022\031\n" + + "\007request\030\003 \001(\0132-.google.cl" + + "oud.ces.v1beta.RunEvaluationRequestB\004\342A\001\002\022\031\n" + "\013description\030\004 \001(\tB\004\342A\001\001\022a\n" - + "\021scheduling_config\030\005 \001(\0132@." - + "google.cloud.ces.v1beta.ScheduledEvaluationRun.SchedulingConfigB\004\342A\001\002\022\024\n" + + "\021scheduling_config\030\005 \001(\0132@.google.cloud.ces.v1bet" + + "a.ScheduledEvaluationRun.SchedulingConfigB\004\342A\001\002\022\024\n" + "\006active\030\006 \001(\010B\004\342A\001\001\022E\n" + "\022last_completed_run\030\007 \001(\tB)\342A\001\003\372A\"\n" + " ces.googleapis.com/EvaluationRun\022\036\n" @@ -902,8 +911,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\tB\004\342A\001\003\022\022\n" + "\004etag\030\016 \001(\tB\004\342A\001\003\032\240\002\n" + "\020SchedulingConfig\022c\n" - + "\tfrequency\030\001 \001(\0162J.google.cloud.ces.v1beta" - + ".ScheduledEvaluationRun.SchedulingConfig.FrequencyB\004\342A\001\002\0224\n\n" + + "\tfrequency\030\001 \001(\0162J.googl" + + "e.cloud.ces.v1beta.ScheduledEvaluationRun.SchedulingConfig.FrequencyB\004\342A\001\002\0224\n\n" + "start_time\030\002" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\002\022\032\n" + "\014days_of_week\030\003 \003(\005B\004\342A\001\001\"U\n" @@ -913,9 +922,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\022epro" - + "jects/{project}/locations/{location}/apps/{app}/scheduledEvaluationRuns/{schedul" - + "ed_evaluation_run}*\027scheduledEvaluationRuns2\026scheduledEvaluationRun\"C\n" + + ")ces.googleapis.com/ScheduledEvaluationRun\022eprojects/{project}/locati" + + "ons/{location}/apps/{app}/scheduledEvaluationRuns/{scheduled_evaluation_run}*\027sc" + + "heduledEvaluationRuns2\026scheduledEvaluationRun\"C\n" + "\020PersonaRunConfig\022\025\n" + "\007persona\030\001 \001(\tB\004\342A\001\001\022\030\n\n" + "task_count\030\002 \001(\005B\004\342A\001\001\"\242\003\n" @@ -924,8 +933,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021assistant_session\030\002 \001(\tB\004\342A\001\003\022\034\n" + "\016report_summary\030\003 \001(\tB\004\342A\001\003\022 \n" + "\022should_suggest_fix\030\005 \001(\010B\004\342A\001\003\022T\n" - + "\006status\030\004 \001(\0162>.google.cl" - + "oud.ces.v1beta.OptimizationConfig.OptimizationStatusB\004\342A\001\003\022\033\n\r" + + "\006status\030\004" + + " \001(\0162>.google.cloud.ces.v1beta.OptimizationConfig.OptimizationStatusB\004\342A\001\003\022\033\n\r" + "error_message\030\006 \001(\tB\004\342A\001\003\0222\n" + "\013loss_report\030\007 \001(\0132\027.google.protobuf.StructB\004\342A\001\003\"`\n" + "\022OptimizationStatus\022#\n" @@ -933,8 +942,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\017Evaluation" - + "ProtoP\001Z-cloud.google.com/go/ces/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( @@ -1190,6 +1199,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EvaluationMetricsThresholds", "Config", "GoldenRunMethod", + "RootSpan", + "OutcomeMetadata", "Result", }); internal_static_google_cloud_ces_v1beta_EvaluationResult_GoldenExpectationOutcome_descriptor = diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationResult.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationResult.java index cafe2ace8f5b..26a2ff622520 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationResult.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationResult.java @@ -62,6 +62,7 @@ private EvaluationResult() { changelog_ = ""; executionState_ = 0; goldenRunMethod_ = 0; + outcomeMetadata_ = 0; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -513,6 +514,154 @@ private ExecutionState(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1beta.EvaluationResult.ExecutionState) } + /** + * + * + *
+   * Metadata about the outcome of the evaluation.
+   * 
+ * + * Protobuf enum {@code google.cloud.ces.v1beta.EvaluationResult.OutcomeMetadata} + */ + public enum OutcomeMetadata implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified outcome metadata.
+     * 
+ * + * OUTCOME_METADATA_UNSPECIFIED = 0; + */ + OUTCOME_METADATA_UNSPECIFIED(0), + /** + * + * + *
+     * The evaluation resulted in a graceful handoff to a human representative.
+     * 
+ * + * GRACEFUL_HANDOFF = 1; + */ + GRACEFUL_HANDOFF(1), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "OutcomeMetadata"); + } + + /** + * + * + *
+     * Unspecified outcome metadata.
+     * 
+ * + * OUTCOME_METADATA_UNSPECIFIED = 0; + */ + public static final int OUTCOME_METADATA_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * The evaluation resulted in a graceful handoff to a human representative.
+     * 
+ * + * GRACEFUL_HANDOFF = 1; + */ + public static final int GRACEFUL_HANDOFF_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 OutcomeMetadata 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 OutcomeMetadata forNumber(int value) { + switch (value) { + case 0: + return OUTCOME_METADATA_UNSPECIFIED; + case 1: + return GRACEFUL_HANDOFF; + 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 OutcomeMetadata findValueByNumber(int number) { + return OutcomeMetadata.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.EvaluationResult.getDescriptor().getEnumTypes().get(2); + } + + private static final OutcomeMetadata[] VALUES = values(); + + public static OutcomeMetadata 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 OutcomeMetadata(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1beta.EvaluationResult.OutcomeMetadata) + } + public interface GoldenExpectationOutcomeOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.EvaluationResult.GoldenExpectationOutcome) @@ -30279,7 +30428,7 @@ public interface UserGoalSatisfactionResultOrBuilder * * *
-     * Output only. The user task satisfaction score. Can be -1, 0, 1.
+     * Output only. The user task satisfaction score. Can be -1, 0, 1, 2.
      * 
* * optional int32 score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -30292,7 +30441,7 @@ public interface UserGoalSatisfactionResultOrBuilder * * *
-     * Output only. The user task satisfaction score. Can be -1, 0, 1.
+     * Output only. The user task satisfaction score. Can be -1, 0, 1, 2.
      * 
* * optional int32 score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -30306,6 +30455,7 @@ public interface UserGoalSatisfactionResultOrBuilder * *
      * Output only. The label associated with each score.
+     * Score 2: Graceful Handoff
      * Score 1: User Task Satisfied
      * Score 0: User Task Not Satisfied
      * Score -1: User Task Unspecified
@@ -30322,6 +30472,7 @@ public interface UserGoalSatisfactionResultOrBuilder
      *
      * 
      * Output only. The label associated with each score.
+     * Score 2: Graceful Handoff
      * Score 1: User Task Satisfied
      * Score 0: User Task Not Satisfied
      * Score -1: User Task Unspecified
@@ -30419,7 +30570,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      *
      *
      * 
-     * Output only. The user task satisfaction score. Can be -1, 0, 1.
+     * Output only. The user task satisfaction score. Can be -1, 0, 1, 2.
      * 
* * optional int32 score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -30435,7 +30586,7 @@ public boolean hasScore() { * * *
-     * Output only. The user task satisfaction score. Can be -1, 0, 1.
+     * Output only. The user task satisfaction score. Can be -1, 0, 1, 2.
      * 
* * optional int32 score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -30457,6 +30608,7 @@ public int getScore() { * *
      * Output only. The label associated with each score.
+     * Score 2: Graceful Handoff
      * Score 1: User Task Satisfied
      * Score 0: User Task Not Satisfied
      * Score -1: User Task Unspecified
@@ -30484,6 +30636,7 @@ public java.lang.String getLabel() {
      *
      * 
      * Output only. The label associated with each score.
+     * Score 2: Graceful Handoff
      * Score 1: User Task Satisfied
      * Score 0: User Task Not Satisfied
      * Score -1: User Task Unspecified
@@ -30943,7 +31096,7 @@ public Builder mergeFrom(
        *
        *
        * 
-       * Output only. The user task satisfaction score. Can be -1, 0, 1.
+       * Output only. The user task satisfaction score. Can be -1, 0, 1, 2.
        * 
* * optional int32 score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -30959,7 +31112,7 @@ public boolean hasScore() { * * *
-       * Output only. The user task satisfaction score. Can be -1, 0, 1.
+       * Output only. The user task satisfaction score. Can be -1, 0, 1, 2.
        * 
* * optional int32 score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -30975,7 +31128,7 @@ public int getScore() { * * *
-       * Output only. The user task satisfaction score. Can be -1, 0, 1.
+       * Output only. The user task satisfaction score. Can be -1, 0, 1, 2.
        * 
* * optional int32 score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -30995,7 +31148,7 @@ public Builder setScore(int value) { * * *
-       * Output only. The user task satisfaction score. Can be -1, 0, 1.
+       * Output only. The user task satisfaction score. Can be -1, 0, 1, 2.
        * 
* * optional int32 score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -31016,6 +31169,7 @@ public Builder clearScore() { * *
        * Output only. The label associated with each score.
+       * Score 2: Graceful Handoff
        * Score 1: User Task Satisfied
        * Score 0: User Task Not Satisfied
        * Score -1: User Task Unspecified
@@ -31042,6 +31196,7 @@ public java.lang.String getLabel() {
        *
        * 
        * Output only. The label associated with each score.
+       * Score 2: Graceful Handoff
        * Score 1: User Task Satisfied
        * Score 0: User Task Not Satisfied
        * Score -1: User Task Unspecified
@@ -31068,6 +31223,7 @@ public com.google.protobuf.ByteString getLabelBytes() {
        *
        * 
        * Output only. The label associated with each score.
+       * Score 2: Graceful Handoff
        * Score 1: User Task Satisfied
        * Score 0: User Task Not Satisfied
        * Score -1: User Task Unspecified
@@ -31093,6 +31249,7 @@ public Builder setLabel(java.lang.String value) {
        *
        * 
        * Output only. The label associated with each score.
+       * Score 2: Graceful Handoff
        * Score 1: User Task Satisfied
        * Score 0: User Task Not Satisfied
        * Score -1: User Task Unspecified
@@ -31114,6 +31271,7 @@ public Builder clearLabel() {
        *
        * 
        * Output only. The label associated with each score.
+       * Score 2: Graceful Handoff
        * Score 1: User Task Satisfied
        * Score 0: User Task Not Satisfied
        * Score -1: User Task Unspecified
@@ -35037,7 +35195,7 @@ public com.google.cloud.ces.v1beta.EvaluationErrorInfoOrBuilder getErrorInfoOrBu
    * 
    *
    * @deprecated google.cloud.ces.v1beta.EvaluationResult.error is deprecated. See
-   *     google/cloud/ces/v1beta/evaluation.proto;l=1055
+   *     google/cloud/ces/v1beta/evaluation.proto;l=1065
    * @return Whether the error field is set.
    */
   @java.lang.Override
@@ -35059,7 +35217,7 @@ public boolean hasError() {
    * 
    *
    * @deprecated google.cloud.ces.v1beta.EvaluationResult.error is deprecated. See
-   *     google/cloud/ces/v1beta/evaluation.proto;l=1055
+   *     google/cloud/ces/v1beta/evaluation.proto;l=1065
    * @return The error.
    */
   @java.lang.Override
@@ -35587,6 +35745,109 @@ public com.google.cloud.ces.v1beta.GoldenRunMethod getGoldenRunMethod() {
     return result == null ? com.google.cloud.ces.v1beta.GoldenRunMethod.UNRECOGNIZED : result;
   }
 
+  public static final int ROOT_SPAN_FIELD_NUMBER = 24;
+  private com.google.cloud.ces.v1beta.Span rootSpan_;
+
+  /**
+   *
+   *
+   * 
+   * Output only. The root span of the evaluation execution, which includes
+   * information about each step of the evaluation.
+   * 
+ * + * + * .google.cloud.ces.v1beta.Span root_span = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the rootSpan field is set. + */ + @java.lang.Override + public boolean hasRootSpan() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+   * Output only. The root span of the evaluation execution, which includes
+   * information about each step of the evaluation.
+   * 
+ * + * + * .google.cloud.ces.v1beta.Span root_span = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The rootSpan. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.Span getRootSpan() { + return rootSpan_ == null ? com.google.cloud.ces.v1beta.Span.getDefaultInstance() : rootSpan_; + } + + /** + * + * + *
+   * Output only. The root span of the evaluation execution, which includes
+   * information about each step of the evaluation.
+   * 
+ * + * + * .google.cloud.ces.v1beta.Span root_span = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.SpanOrBuilder getRootSpanOrBuilder() { + return rootSpan_ == null ? com.google.cloud.ces.v1beta.Span.getDefaultInstance() : rootSpan_; + } + + public static final int OUTCOME_METADATA_FIELD_NUMBER = 25; + private int outcomeMetadata_ = 0; + + /** + * + * + *
+   * Output only. The outcome metadata of the evaluation. Only populated if
+   * execution_state is COMPLETE.
+   * 
+ * + * + * .google.cloud.ces.v1beta.EvaluationResult.OutcomeMetadata outcome_metadata = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for outcomeMetadata. + */ + @java.lang.Override + public int getOutcomeMetadataValue() { + return outcomeMetadata_; + } + + /** + * + * + *
+   * Output only. The outcome metadata of the evaluation. Only populated if
+   * execution_state is COMPLETE.
+   * 
+ * + * + * .google.cloud.ces.v1beta.EvaluationResult.OutcomeMetadata outcome_metadata = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The outcomeMetadata. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.EvaluationResult.OutcomeMetadata getOutcomeMetadata() { + com.google.cloud.ces.v1beta.EvaluationResult.OutcomeMetadata result = + com.google.cloud.ces.v1beta.EvaluationResult.OutcomeMetadata.forNumber(outcomeMetadata_); + return result == null + ? com.google.cloud.ces.v1beta.EvaluationResult.OutcomeMetadata.UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -35662,6 +35923,14 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(22, getChangelogCreateTime()); } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeMessage(24, getRootSpan()); + } + if (outcomeMetadata_ + != com.google.cloud.ces.v1beta.EvaluationResult.OutcomeMetadata.OUTCOME_METADATA_UNSPECIFIED + .getNumber()) { + output.writeEnum(25, outcomeMetadata_); + } getUnknownFields().writeTo(output); } @@ -35739,6 +36008,14 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, getChangelogCreateTime()); } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(24, getRootSpan()); + } + if (outcomeMetadata_ + != com.google.cloud.ces.v1beta.EvaluationResult.OutcomeMetadata.OUTCOME_METADATA_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(25, outcomeMetadata_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -35794,6 +36071,11 @@ public boolean equals(final java.lang.Object obj) { if (!getConfig().equals(other.getConfig())) return false; } if (goldenRunMethod_ != other.goldenRunMethod_) return false; + if (hasRootSpan() != other.hasRootSpan()) return false; + if (hasRootSpan()) { + if (!getRootSpan().equals(other.getRootSpan())) return false; + } + if (outcomeMetadata_ != other.outcomeMetadata_) return false; if (!getResultCase().equals(other.getResultCase())) return false; switch (resultCase_) { case 7: @@ -35864,6 +36146,12 @@ public int hashCode() { } hash = (37 * hash) + GOLDEN_RUN_METHOD_FIELD_NUMBER; hash = (53 * hash) + goldenRunMethod_; + if (hasRootSpan()) { + hash = (37 * hash) + ROOT_SPAN_FIELD_NUMBER; + hash = (53 * hash) + getRootSpan().hashCode(); + } + hash = (37 * hash) + OUTCOME_METADATA_FIELD_NUMBER; + hash = (53 * hash) + outcomeMetadata_; switch (resultCase_) { case 7: hash = (37 * hash) + GOLDEN_RESULT_FIELD_NUMBER; @@ -36024,6 +36312,7 @@ private void maybeForceBuilderInitialization() { internalGetChangelogCreateTimeFieldBuilder(); internalGetEvaluationMetricsThresholdsFieldBuilder(); internalGetConfigFieldBuilder(); + internalGetRootSpanFieldBuilder(); } } @@ -36082,6 +36371,12 @@ public Builder clear() { configBuilder_ = null; } goldenRunMethod_ = 0; + rootSpan_ = null; + if (rootSpanBuilder_ != null) { + rootSpanBuilder_.dispose(); + rootSpanBuilder_ = null; + } + outcomeMetadata_ = 0; resultCase_ = 0; result_ = null; return this; @@ -36186,6 +36481,13 @@ private void buildPartial0(com.google.cloud.ces.v1beta.EvaluationResult result) if (((from_bitField0_ & 0x00040000) != 0)) { result.goldenRunMethod_ = goldenRunMethod_; } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.rootSpan_ = rootSpanBuilder_ == null ? rootSpan_ : rootSpanBuilder_.build(); + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00100000) != 0)) { + result.outcomeMetadata_ = outcomeMetadata_; + } result.bitField0_ |= to_bitField0_; } @@ -36277,6 +36579,12 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.EvaluationResult other) { if (other.goldenRunMethod_ != 0) { setGoldenRunMethodValue(other.getGoldenRunMethodValue()); } + if (other.hasRootSpan()) { + mergeRootSpan(other.getRootSpan()); + } + if (other.outcomeMetadata_ != 0) { + setOutcomeMetadataValue(other.getOutcomeMetadataValue()); + } switch (other.getResultCase()) { case GOLDEN_RESULT: { @@ -36440,6 +36748,19 @@ public Builder mergeFrom( bitField0_ |= 0x00004000; break; } // case 178 + case 194: + { + input.readMessage( + internalGetRootSpanFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00080000; + break; + } // case 194 + case 200: + { + outcomeMetadata_ = input.readEnum(); + bitField0_ |= 0x00100000; + break; + } // case 200 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -38112,7 +38433,7 @@ public com.google.cloud.ces.v1beta.EvaluationErrorInfoOrBuilder getErrorInfoOrBu * * * @deprecated google.cloud.ces.v1beta.EvaluationResult.error is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1055 + * google/cloud/ces/v1beta/evaluation.proto;l=1065 * @return Whether the error field is set. */ @java.lang.Deprecated @@ -38133,7 +38454,7 @@ public boolean hasError() { * * * @deprecated google.cloud.ces.v1beta.EvaluationResult.error is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1055 + * google/cloud/ces/v1beta/evaluation.proto;l=1065 * @return The error. */ @java.lang.Deprecated @@ -39695,6 +40016,340 @@ public Builder clearGoldenRunMethod() { return this; } + private com.google.cloud.ces.v1beta.Span rootSpan_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.Span, + com.google.cloud.ces.v1beta.Span.Builder, + com.google.cloud.ces.v1beta.SpanOrBuilder> + rootSpanBuilder_; + + /** + * + * + *
+     * Output only. The root span of the evaluation execution, which includes
+     * information about each step of the evaluation.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Span root_span = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the rootSpan field is set. + */ + public boolean hasRootSpan() { + return ((bitField0_ & 0x00080000) != 0); + } + + /** + * + * + *
+     * Output only. The root span of the evaluation execution, which includes
+     * information about each step of the evaluation.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Span root_span = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The rootSpan. + */ + public com.google.cloud.ces.v1beta.Span getRootSpan() { + if (rootSpanBuilder_ == null) { + return rootSpan_ == null + ? com.google.cloud.ces.v1beta.Span.getDefaultInstance() + : rootSpan_; + } else { + return rootSpanBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. The root span of the evaluation execution, which includes
+     * information about each step of the evaluation.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Span root_span = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setRootSpan(com.google.cloud.ces.v1beta.Span value) { + if (rootSpanBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rootSpan_ = value; + } else { + rootSpanBuilder_.setMessage(value); + } + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The root span of the evaluation execution, which includes
+     * information about each step of the evaluation.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Span root_span = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setRootSpan(com.google.cloud.ces.v1beta.Span.Builder builderForValue) { + if (rootSpanBuilder_ == null) { + rootSpan_ = builderForValue.build(); + } else { + rootSpanBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The root span of the evaluation execution, which includes
+     * information about each step of the evaluation.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Span root_span = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeRootSpan(com.google.cloud.ces.v1beta.Span value) { + if (rootSpanBuilder_ == null) { + if (((bitField0_ & 0x00080000) != 0) + && rootSpan_ != null + && rootSpan_ != com.google.cloud.ces.v1beta.Span.getDefaultInstance()) { + getRootSpanBuilder().mergeFrom(value); + } else { + rootSpan_ = value; + } + } else { + rootSpanBuilder_.mergeFrom(value); + } + if (rootSpan_ != null) { + bitField0_ |= 0x00080000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The root span of the evaluation execution, which includes
+     * information about each step of the evaluation.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Span root_span = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearRootSpan() { + bitField0_ = (bitField0_ & ~0x00080000); + rootSpan_ = null; + if (rootSpanBuilder_ != null) { + rootSpanBuilder_.dispose(); + rootSpanBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The root span of the evaluation execution, which includes
+     * information about each step of the evaluation.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Span root_span = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1beta.Span.Builder getRootSpanBuilder() { + bitField0_ |= 0x00080000; + onChanged(); + return internalGetRootSpanFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The root span of the evaluation execution, which includes
+     * information about each step of the evaluation.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Span root_span = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1beta.SpanOrBuilder getRootSpanOrBuilder() { + if (rootSpanBuilder_ != null) { + return rootSpanBuilder_.getMessageOrBuilder(); + } else { + return rootSpan_ == null + ? com.google.cloud.ces.v1beta.Span.getDefaultInstance() + : rootSpan_; + } + } + + /** + * + * + *
+     * Output only. The root span of the evaluation execution, which includes
+     * information about each step of the evaluation.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Span root_span = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.Span, + com.google.cloud.ces.v1beta.Span.Builder, + com.google.cloud.ces.v1beta.SpanOrBuilder> + internalGetRootSpanFieldBuilder() { + if (rootSpanBuilder_ == null) { + rootSpanBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.Span, + com.google.cloud.ces.v1beta.Span.Builder, + com.google.cloud.ces.v1beta.SpanOrBuilder>( + getRootSpan(), getParentForChildren(), isClean()); + rootSpan_ = null; + } + return rootSpanBuilder_; + } + + private int outcomeMetadata_ = 0; + + /** + * + * + *
+     * Output only. The outcome metadata of the evaluation. Only populated if
+     * execution_state is COMPLETE.
+     * 
+ * + * + * .google.cloud.ces.v1beta.EvaluationResult.OutcomeMetadata outcome_metadata = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for outcomeMetadata. + */ + @java.lang.Override + public int getOutcomeMetadataValue() { + return outcomeMetadata_; + } + + /** + * + * + *
+     * Output only. The outcome metadata of the evaluation. Only populated if
+     * execution_state is COMPLETE.
+     * 
+ * + * + * .google.cloud.ces.v1beta.EvaluationResult.OutcomeMetadata outcome_metadata = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for outcomeMetadata to set. + * @return This builder for chaining. + */ + public Builder setOutcomeMetadataValue(int value) { + outcomeMetadata_ = value; + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The outcome metadata of the evaluation. Only populated if
+     * execution_state is COMPLETE.
+     * 
+ * + * + * .google.cloud.ces.v1beta.EvaluationResult.OutcomeMetadata outcome_metadata = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The outcomeMetadata. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.EvaluationResult.OutcomeMetadata getOutcomeMetadata() { + com.google.cloud.ces.v1beta.EvaluationResult.OutcomeMetadata result = + com.google.cloud.ces.v1beta.EvaluationResult.OutcomeMetadata.forNumber(outcomeMetadata_); + return result == null + ? com.google.cloud.ces.v1beta.EvaluationResult.OutcomeMetadata.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Output only. The outcome metadata of the evaluation. Only populated if
+     * execution_state is COMPLETE.
+     * 
+ * + * + * .google.cloud.ces.v1beta.EvaluationResult.OutcomeMetadata outcome_metadata = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The outcomeMetadata to set. + * @return This builder for chaining. + */ + public Builder setOutcomeMetadata( + com.google.cloud.ces.v1beta.EvaluationResult.OutcomeMetadata value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00100000; + outcomeMetadata_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The outcome metadata of the evaluation. Only populated if
+     * execution_state is COMPLETE.
+     * 
+ * + * + * .google.cloud.ces.v1beta.EvaluationResult.OutcomeMetadata outcome_metadata = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearOutcomeMetadata() { + bitField0_ = (bitField0_ & ~0x00100000); + outcomeMetadata_ = 0; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.EvaluationResult) } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationResultOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationResultOrBuilder.java index cecc84df88b3..d946cccb54a9 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationResultOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationResultOrBuilder.java @@ -382,7 +382,7 @@ public interface EvaluationResultOrBuilder * * * @deprecated google.cloud.ces.v1beta.EvaluationResult.error is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1055 + * google/cloud/ces/v1beta/evaluation.proto;l=1065 * @return Whether the error field is set. */ @java.lang.Deprecated @@ -401,7 +401,7 @@ public interface EvaluationResultOrBuilder * * * @deprecated google.cloud.ces.v1beta.EvaluationResult.error is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1055 + * google/cloud/ces/v1beta/evaluation.proto;l=1065 * @return The error. */ @java.lang.Deprecated @@ -743,5 +743,83 @@ public interface EvaluationResultOrBuilder */ com.google.cloud.ces.v1beta.GoldenRunMethod getGoldenRunMethod(); + /** + * + * + *
+   * Output only. The root span of the evaluation execution, which includes
+   * information about each step of the evaluation.
+   * 
+ * + * + * .google.cloud.ces.v1beta.Span root_span = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the rootSpan field is set. + */ + boolean hasRootSpan(); + + /** + * + * + *
+   * Output only. The root span of the evaluation execution, which includes
+   * information about each step of the evaluation.
+   * 
+ * + * + * .google.cloud.ces.v1beta.Span root_span = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The rootSpan. + */ + com.google.cloud.ces.v1beta.Span getRootSpan(); + + /** + * + * + *
+   * Output only. The root span of the evaluation execution, which includes
+   * information about each step of the evaluation.
+   * 
+ * + * + * .google.cloud.ces.v1beta.Span root_span = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.ces.v1beta.SpanOrBuilder getRootSpanOrBuilder(); + + /** + * + * + *
+   * Output only. The outcome metadata of the evaluation. Only populated if
+   * execution_state is COMPLETE.
+   * 
+ * + * + * .google.cloud.ces.v1beta.EvaluationResult.OutcomeMetadata outcome_metadata = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for outcomeMetadata. + */ + int getOutcomeMetadataValue(); + + /** + * + * + *
+   * Output only. The outcome metadata of the evaluation. Only populated if
+   * execution_state is COMPLETE.
+   * 
+ * + * + * .google.cloud.ces.v1beta.EvaluationResult.OutcomeMetadata outcome_metadata = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The outcomeMetadata. + */ + com.google.cloud.ces.v1beta.EvaluationResult.OutcomeMetadata getOutcomeMetadata(); + com.google.cloud.ces.v1beta.EvaluationResult.ResultCase getResultCase(); } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationRun.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationRun.java index 15279606448f..0390037237de 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationRun.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationRun.java @@ -3278,7 +3278,7 @@ public com.google.cloud.ces.v1beta.EvaluationConfigOrBuilder getConfigOrBuilder( * * * @deprecated google.cloud.ces.v1beta.EvaluationRun.error is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1283 + * google/cloud/ces/v1beta/evaluation.proto;l=1302 * @return Whether the error field is set. */ @java.lang.Override @@ -3300,7 +3300,7 @@ public boolean hasError() { * * * @deprecated google.cloud.ces.v1beta.EvaluationRun.error is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1283 + * google/cloud/ces/v1beta/evaluation.proto;l=1302 * @return The error. */ @java.lang.Override @@ -7434,7 +7434,7 @@ public com.google.cloud.ces.v1beta.EvaluationConfigOrBuilder getConfigOrBuilder( * * * @deprecated google.cloud.ces.v1beta.EvaluationRun.error is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1283 + * google/cloud/ces/v1beta/evaluation.proto;l=1302 * @return Whether the error field is set. */ @java.lang.Deprecated @@ -7455,7 +7455,7 @@ public boolean hasError() { * * * @deprecated google.cloud.ces.v1beta.EvaluationRun.error is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1283 + * google/cloud/ces/v1beta/evaluation.proto;l=1302 * @return The error. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationRunOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationRunOrBuilder.java index 11d396a84021..f6700c7fc352 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationRunOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationRunOrBuilder.java @@ -634,7 +634,7 @@ public interface EvaluationRunOrBuilder * * * @deprecated google.cloud.ces.v1beta.EvaluationRun.error is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1283 + * google/cloud/ces/v1beta/evaluation.proto;l=1302 * @return Whether the error field is set. */ @java.lang.Deprecated @@ -653,7 +653,7 @@ public interface EvaluationRunOrBuilder * * * @deprecated google.cloud.ces.v1beta.EvaluationRun.error is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1283 + * google/cloud/ces/v1beta/evaluation.proto;l=1302 * @return The error. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/Event.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/Event.java index d88acdd9a9e1..ed0e7bbedfc4 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/Event.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/Event.java @@ -70,6 +70,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.ces.v1beta.Event.Builder.class); } + private int bitField0_; public static final int EVENT_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -123,6 +124,55 @@ public com.google.protobuf.ByteString getEventBytes() { } } + public static final int VARIABLES_FIELD_NUMBER = 2; + private com.google.protobuf.Struct variables_; + + /** + * + * + *
+   * Optional. Additional variables associated with the event.
+   * 
+ * + * .google.protobuf.Struct variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the variables field is set. + */ + @java.lang.Override + public boolean hasVariables() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. Additional variables associated with the event.
+   * 
+ * + * .google.protobuf.Struct variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The variables. + */ + @java.lang.Override + public com.google.protobuf.Struct getVariables() { + return variables_ == null ? com.google.protobuf.Struct.getDefaultInstance() : variables_; + } + + /** + * + * + *
+   * Optional. Additional variables associated with the event.
+   * 
+ * + * .google.protobuf.Struct variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getVariablesOrBuilder() { + return variables_ == null ? com.google.protobuf.Struct.getDefaultInstance() : variables_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -140,6 +190,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(event_)) { com.google.protobuf.GeneratedMessage.writeString(output, 1, event_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getVariables()); + } getUnknownFields().writeTo(output); } @@ -152,6 +205,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(event_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, event_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getVariables()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -168,6 +224,10 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.ces.v1beta.Event other = (com.google.cloud.ces.v1beta.Event) obj; if (!getEvent().equals(other.getEvent())) return false; + if (hasVariables() != other.hasVariables()) return false; + if (hasVariables()) { + if (!getVariables().equals(other.getVariables())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -181,6 +241,10 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + EVENT_FIELD_NUMBER; hash = (53 * hash) + getEvent().hashCode(); + if (hasVariables()) { + hash = (37 * hash) + VARIABLES_FIELD_NUMBER; + hash = (53 * hash) + getVariables().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -310,10 +374,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.ces.v1beta.Event.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) { + internalGetVariablesFieldBuilder(); + } } @java.lang.Override @@ -321,6 +394,11 @@ public Builder clear() { super.clear(); bitField0_ = 0; event_ = ""; + variables_ = null; + if (variablesBuilder_ != null) { + variablesBuilder_.dispose(); + variablesBuilder_ = null; + } return this; } @@ -359,6 +437,12 @@ private void buildPartial0(com.google.cloud.ces.v1beta.Event result) { if (((from_bitField0_ & 0x00000001) != 0)) { result.event_ = event_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.variables_ = variablesBuilder_ == null ? variables_ : variablesBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -378,6 +462,9 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.Event other) { bitField0_ |= 0x00000001; onChanged(); } + if (other.hasVariables()) { + mergeVariables(other.getVariables()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -410,6 +497,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 10 + case 18: + { + input.readMessage( + internalGetVariablesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -540,6 +634,196 @@ public Builder setEventBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.protobuf.Struct variables_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + variablesBuilder_; + + /** + * + * + *
+     * Optional. Additional variables associated with the event.
+     * 
+ * + * .google.protobuf.Struct variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the variables field is set. + */ + public boolean hasVariables() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Optional. Additional variables associated with the event.
+     * 
+ * + * .google.protobuf.Struct variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The variables. + */ + public com.google.protobuf.Struct getVariables() { + if (variablesBuilder_ == null) { + return variables_ == null ? com.google.protobuf.Struct.getDefaultInstance() : variables_; + } else { + return variablesBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Additional variables associated with the event.
+     * 
+ * + * .google.protobuf.Struct variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setVariables(com.google.protobuf.Struct value) { + if (variablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + variables_ = value; + } else { + variablesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Additional variables associated with the event.
+     * 
+ * + * .google.protobuf.Struct variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setVariables(com.google.protobuf.Struct.Builder builderForValue) { + if (variablesBuilder_ == null) { + variables_ = builderForValue.build(); + } else { + variablesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Additional variables associated with the event.
+     * 
+ * + * .google.protobuf.Struct variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergeVariables(com.google.protobuf.Struct value) { + if (variablesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && variables_ != null + && variables_ != com.google.protobuf.Struct.getDefaultInstance()) { + getVariablesBuilder().mergeFrom(value); + } else { + variables_ = value; + } + } else { + variablesBuilder_.mergeFrom(value); + } + if (variables_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Additional variables associated with the event.
+     * 
+ * + * .google.protobuf.Struct variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearVariables() { + bitField0_ = (bitField0_ & ~0x00000002); + variables_ = null; + if (variablesBuilder_ != null) { + variablesBuilder_.dispose(); + variablesBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Additional variables associated with the event.
+     * 
+ * + * .google.protobuf.Struct variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.protobuf.Struct.Builder getVariablesBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetVariablesFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Additional variables associated with the event.
+     * 
+ * + * .google.protobuf.Struct variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.protobuf.StructOrBuilder getVariablesOrBuilder() { + if (variablesBuilder_ != null) { + return variablesBuilder_.getMessageOrBuilder(); + } else { + return variables_ == null ? com.google.protobuf.Struct.getDefaultInstance() : variables_; + } + } + + /** + * + * + *
+     * Optional. Additional variables associated with the event.
+     * 
+ * + * .google.protobuf.Struct variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetVariablesFieldBuilder() { + if (variablesBuilder_ == null) { + variablesBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getVariables(), getParentForChildren(), isClean()); + variables_ = null; + } + return variablesBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.Event) } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EventOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EventOrBuilder.java index 381d79ba0488..63b3616cce89 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EventOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EventOrBuilder.java @@ -51,4 +51,41 @@ public interface EventOrBuilder * @return The bytes for event. */ com.google.protobuf.ByteString getEventBytes(); + + /** + * + * + *
+   * Optional. Additional variables associated with the event.
+   * 
+ * + * .google.protobuf.Struct variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the variables field is set. + */ + boolean hasVariables(); + + /** + * + * + *
+   * Optional. Additional variables associated with the event.
+   * 
+ * + * .google.protobuf.Struct variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The variables. + */ + com.google.protobuf.Struct getVariables(); + + /** + * + * + *
+   * Optional. Additional variables associated with the event.
+   * 
+ * + * .google.protobuf.Struct variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.protobuf.StructOrBuilder getVariablesOrBuilder(); } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExampleProto.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExampleProto.java index 33cc9ce6b031..8bd80953cf73 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExampleProto.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExampleProto.java @@ -130,19 +130,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004data\"3\n" + "\004Blob\022\027\n" + "\tmime_type\030\001 \001(\tB\004\342A\001\002\022\022\n" - + "\004data\030\002 \001(\014B\004\342A\001\002\"4\n" + + "\004data\030\002 \001(\014B\004\342A\001\002\"L\n" + "\005Image\022\027\n" + "\tmime_type\030\001 \001(\tB\004\342A\001\002\022\022\n" - + "\004data\030\002 \001(\014B\004\342A\001\002\"\356\001\n" + + "\004data\030\002 \001(\014B\004\342A\001\002\022\026\n" + + "\010alt_text\030\004 \001(\tB\004\342A\001\001\"\253\002\n" + "\010ToolCall\0220\n" + "\004tool\030\002 \001(\tB \342A\001\001\372A\031\n" + "\027ces.googleapis.com/ToolH\000\022B\n" - + "\014toolset_tool\030\005" - + " \001(\0132$.google.cloud.ces.v1beta.ToolsetToolB\004\342A\001\001H\000\022\020\n" + + "\014toolset_tool\030\005 \001(\0132$.g" + + "oogle.cloud.ces.v1beta.ToolsetToolB\004\342A\001\001H\000\022\020\n" + "\002id\030\001 \001(\tB\004\342A\001\001\022\032\n" + "\014display_name\030\004 \001(\tB\004\342A\001\003\022+\n" - + "\004args\030\003 \001(\0132\027.google.protobuf.StructB\004\342A\001\001B\021\n" - + "\017tool_identifier\"\366\001\n" + + "\004args\030\003 \001(\0132\027.google.protobuf.StructB\004\342A\001\001\022!\n" + + "\023parent_tool_call_id\030\006 \001(\tB\004\342A\001\003\022\030\n\n" + + "agent_name\030\007 \001(\tB\004\342A\001\003B\021\n" + + "\017tool_identifier\"\263\002\n" + "\014ToolResponse\0220\n" + "\004tool\030\002 \001(\tB \342A\001\001\372A\031\n" + "\027ces.googleapis.com/ToolH\000\022B\n" @@ -150,14 +153,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132$.google.cloud.ces.v1beta.ToolsetToolB\004\342A\001\001H\000\022\020\n" + "\002id\030\001 \001(\tB\004\342A\001\001\022\032\n" + "\014display_name\030\004 \001(\tB\004\342A\001\003\022/\n" - + "\010response\030\003 \001(\0132\027.google.protobuf.StructB\004\342A\001\002B\021\n" + + "\010response\030\003 \001(\0132\027.google.protobuf.StructB\004\342A\001\002\022!\n" + + "\023parent_tool_call_id\030\006 \001(\tB\004\342A\001\003\022\030\n\n" + + "agent_name\030\007 \001(\tB\004\342A\001\003B\021\n" + "\017tool_identifier\"d\n\r" + "AgentTransfer\0227\n" + "\014target_agent\030\001 \001(\tB!\342A\001\002\372A\032\n" + "\030ces.googleapis.com/Agent\022\032\n" + "\014display_name\030\002 \001(\tB\004\342A\001\003B\\\n" - + "\033com.google.cloud.ces.v1betaB\014ExampleP" - + "rotoP\001Z-cloud.google.com/go/ces/apiv1beta/cespb;cespbb\006proto3" + + "\033com.google.cloud.ces.v1betaB\014ExampleProtoP\001Z-cloud." + + "google.com/go/ces/apiv1beta/cespb;cespbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -220,14 +225,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_Image_descriptor, new java.lang.String[] { - "MimeType", "Data", + "MimeType", "Data", "AltText", }); internal_static_google_cloud_ces_v1beta_ToolCall_descriptor = getDescriptor().getMessageType(5); internal_static_google_cloud_ces_v1beta_ToolCall_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_ToolCall_descriptor, new java.lang.String[] { - "Tool", "ToolsetTool", "Id", "DisplayName", "Args", "ToolIdentifier", + "Tool", + "ToolsetTool", + "Id", + "DisplayName", + "Args", + "ParentToolCallId", + "AgentName", + "ToolIdentifier", }); internal_static_google_cloud_ces_v1beta_ToolResponse_descriptor = getDescriptor().getMessageType(6); @@ -235,7 +247,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_ToolResponse_descriptor, new java.lang.String[] { - "Tool", "ToolsetTool", "Id", "DisplayName", "Response", "ToolIdentifier", + "Tool", + "ToolsetTool", + "Id", + "DisplayName", + "Response", + "ParentToolCallId", + "AgentName", + "ToolIdentifier", }); internal_static_google_cloud_ces_v1beta_AgentTransfer_descriptor = getDescriptor().getMessageType(7); diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GenerateOnboardingSuggestionsRequest.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GenerateOnboardingSuggestionsRequest.java new file mode 100644 index 000000000000..855d6189fa27 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GenerateOnboardingSuggestionsRequest.java @@ -0,0 +1,729 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language 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/session_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +/** + * + * + *
+ * Request message for
+ * [SessionService.GenerateOnboardingSuggestions][google.cloud.ces.v1beta.SessionService.GenerateOnboardingSuggestions].
+ * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest} + */ +@com.google.protobuf.Generated +public final class GenerateOnboardingSuggestionsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest) + GenerateOnboardingSuggestionsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "GenerateOnboardingSuggestionsRequest"); + } + + // Use GenerateOnboardingSuggestionsRequest.newBuilder() to construct. + private GenerateOnboardingSuggestionsRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GenerateOnboardingSuggestionsRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_GenerateOnboardingSuggestionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_GenerateOnboardingSuggestionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest.class, + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The app whose zero state is being rendered.
+   * Format: `projects/{project}/locations/{location}/apps/{app}`
+   * 
+ * + * + * 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 app whose zero state is being rendered.
+   * Format: `projects/{project}/locations/{location}/apps/{app}`
+   * 
+ * + * + * 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 MAX_SUGGESTIONS_FIELD_NUMBER = 2; + private int maxSuggestions_ = 0; + + /** + * + * + *
+   * Optional. Maximum number of suggestions to return. Defaults to 4 when
+   * unset.
+   * 
+ * + * int32 max_suggestions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxSuggestions. + */ + @java.lang.Override + public int getMaxSuggestions() { + return maxSuggestions_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (maxSuggestions_ != 0) { + output.writeInt32(2, maxSuggestions_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (maxSuggestions_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxSuggestions_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest other = + (com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (getMaxSuggestions() != other.getMaxSuggestions()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + MAX_SUGGESTIONS_FIELD_NUMBER; + hash = (53 * hash) + getMaxSuggestions(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest parseFrom( + 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.GenerateOnboardingSuggestionsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest parseFrom( + com.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.GenerateOnboardingSuggestionsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest 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.GenerateOnboardingSuggestionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest parseFrom( + java.io.InputStream 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.GenerateOnboardingSuggestionsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest parseDelimitedFrom( + java.io.InputStream 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.GenerateOnboardingSuggestionsRequest 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.GenerateOnboardingSuggestionsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, 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.GenerateOnboardingSuggestionsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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
+   * [SessionService.GenerateOnboardingSuggestions][google.cloud.ces.v1beta.SessionService.GenerateOnboardingSuggestions].
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest) + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_GenerateOnboardingSuggestionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_GenerateOnboardingSuggestionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest.class, + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + maxSuggestions_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_GenerateOnboardingSuggestionsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest + getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest build() { + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest buildPartial() { + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest result = + new com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.maxSuggestions_ = maxSuggestions_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest) { + return mergeFrom((com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest other) { + if (other + == com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getMaxSuggestions() != 0) { + setMaxSuggestions(other.getMaxSuggestions()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + maxSuggestions_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The app whose zero state is being rendered.
+     * Format: `projects/{project}/locations/{location}/apps/{app}`
+     * 
+ * + * + * 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 app whose zero state is being rendered.
+     * Format: `projects/{project}/locations/{location}/apps/{app}`
+     * 
+ * + * + * 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 app whose zero state is being rendered.
+     * Format: `projects/{project}/locations/{location}/apps/{app}`
+     * 
+ * + * + * 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 app whose zero state is being rendered.
+     * Format: `projects/{project}/locations/{location}/apps/{app}`
+     * 
+ * + * + * 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 app whose zero state is being rendered.
+     * Format: `projects/{project}/locations/{location}/apps/{app}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int maxSuggestions_; + + /** + * + * + *
+     * Optional. Maximum number of suggestions to return. Defaults to 4 when
+     * unset.
+     * 
+ * + * int32 max_suggestions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxSuggestions. + */ + @java.lang.Override + public int getMaxSuggestions() { + return maxSuggestions_; + } + + /** + * + * + *
+     * Optional. Maximum number of suggestions to return. Defaults to 4 when
+     * unset.
+     * 
+ * + * int32 max_suggestions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The maxSuggestions to set. + * @return This builder for chaining. + */ + public Builder setMaxSuggestions(int value) { + + maxSuggestions_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Maximum number of suggestions to return. Defaults to 4 when
+     * unset.
+     * 
+ * + * int32 max_suggestions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMaxSuggestions() { + bitField0_ = (bitField0_ & ~0x00000002); + maxSuggestions_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest) + private static final com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest(); + } + + public static com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateOnboardingSuggestionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.GenerateOnboardingSuggestionsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GenerateOnboardingSuggestionsRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GenerateOnboardingSuggestionsRequestOrBuilder.java new file mode 100644 index 000000000000..ed2997c9228e --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GenerateOnboardingSuggestionsRequestOrBuilder.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/cloud/ces/v1beta/session_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public interface GenerateOnboardingSuggestionsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The app whose zero state is being rendered.
+   * Format: `projects/{project}/locations/{location}/apps/{app}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The app whose zero state is being rendered.
+   * Format: `projects/{project}/locations/{location}/apps/{app}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. Maximum number of suggestions to return. Defaults to 4 when
+   * unset.
+   * 
+ * + * int32 max_suggestions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxSuggestions. + */ + int getMaxSuggestions(); +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GenerateOnboardingSuggestionsResponse.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GenerateOnboardingSuggestionsResponse.java new file mode 100644 index 000000000000..e2b863059a03 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GenerateOnboardingSuggestionsResponse.java @@ -0,0 +1,1535 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language 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/session_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +/** + * + * + *
+ * Response message for
+ * [SessionService.GenerateOnboardingSuggestions][google.cloud.ces.v1beta.SessionService.GenerateOnboardingSuggestions].
+ * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse} + */ +@com.google.protobuf.Generated +public final class GenerateOnboardingSuggestionsResponse + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse) + GenerateOnboardingSuggestionsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "GenerateOnboardingSuggestionsResponse"); + } + + // Use GenerateOnboardingSuggestionsResponse.newBuilder() to construct. + private GenerateOnboardingSuggestionsResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GenerateOnboardingSuggestionsResponse() { + userProfile_ = 0; + suggestions_ = java.util.Collections.emptyList(); + contextToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_GenerateOnboardingSuggestionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_GenerateOnboardingSuggestionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse.class, + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse.Builder.class); + } + + /** + * + * + *
+   * Classification of the requesting user's history with the assistant in
+   * this app.
+   * 
+ * + * Protobuf enum {@code google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse.UserProfile} + */ + public enum UserProfile implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified profile.
+     * 
+ * + * USER_PROFILE_UNSPECIFIED = 0; + */ + USER_PROFILE_UNSPECIFIED(0), + /** + * + * + *
+     * No assistant sessions containing messages.
+     * 
+ * + * NEW = 1; + */ + NEW(1), + /** + * + * + *
+     * One or two assistant sessions containing messages.
+     * 
+ * + * EXPLORING = 2; + */ + EXPLORING(2), + /** + * + * + *
+     * More than two assistant sessions containing messages.
+     * 
+ * + * RETURNING = 3; + */ + RETURNING(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "UserProfile"); + } + + /** + * + * + *
+     * Unspecified profile.
+     * 
+ * + * USER_PROFILE_UNSPECIFIED = 0; + */ + public static final int USER_PROFILE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * No assistant sessions containing messages.
+     * 
+ * + * NEW = 1; + */ + public static final int NEW_VALUE = 1; + + /** + * + * + *
+     * One or two assistant sessions containing messages.
+     * 
+ * + * EXPLORING = 2; + */ + public static final int EXPLORING_VALUE = 2; + + /** + * + * + *
+     * More than two assistant sessions containing messages.
+     * 
+ * + * RETURNING = 3; + */ + public static final int RETURNING_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 UserProfile 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 UserProfile forNumber(int value) { + switch (value) { + case 0: + return USER_PROFILE_UNSPECIFIED; + case 1: + return NEW; + case 2: + return EXPLORING; + case 3: + return RETURNING; + 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 UserProfile findValueByNumber(int number) { + return UserProfile.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.GenerateOnboardingSuggestionsResponse.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final UserProfile[] VALUES = values(); + + public static UserProfile 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 UserProfile(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse.UserProfile) + } + + public static final int USER_PROFILE_FIELD_NUMBER = 1; + private int userProfile_ = 0; + + /** + * + * + *
+   * Classification of the requesting user's history.
+   * 
+ * + * + * .google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse.UserProfile user_profile = 1; + * + * + * @return The enum numeric value on the wire for userProfile. + */ + @java.lang.Override + public int getUserProfileValue() { + return userProfile_; + } + + /** + * + * + *
+   * Classification of the requesting user's history.
+   * 
+ * + * + * .google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse.UserProfile user_profile = 1; + * + * + * @return The userProfile. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse.UserProfile + getUserProfile() { + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse.UserProfile result = + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse.UserProfile.forNumber( + userProfile_); + return result == null + ? com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse.UserProfile.UNRECOGNIZED + : result; + } + + public static final int SUGGESTIONS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List suggestions_; + + /** + * + * + *
+   * Personalized suggestions, ranked most relevant first.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSuggestion suggestions = 2; + */ + @java.lang.Override + public java.util.List getSuggestionsList() { + return suggestions_; + } + + /** + * + * + *
+   * Personalized suggestions, ranked most relevant first.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSuggestion suggestions = 2; + */ + @java.lang.Override + public java.util.List + getSuggestionsOrBuilderList() { + return suggestions_; + } + + /** + * + * + *
+   * Personalized suggestions, ranked most relevant first.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSuggestion suggestions = 2; + */ + @java.lang.Override + public int getSuggestionsCount() { + return suggestions_.size(); + } + + /** + * + * + *
+   * Personalized suggestions, ranked most relevant first.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSuggestion suggestions = 2; + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantSuggestion getSuggestions(int index) { + return suggestions_.get(index); + } + + /** + * + * + *
+   * Personalized suggestions, ranked most relevant first.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSuggestion suggestions = 2; + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantSuggestionOrBuilder getSuggestionsOrBuilder( + int index) { + return suggestions_.get(index); + } + + public static final int CONTEXT_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object contextToken_ = ""; + + /** + * + * + *
+   * Opaque token capturing the onboarding snapshot used to generate these
+   * suggestions. Clients echo it on the first
+   * [StreamChatAiAssistantRequest][google.cloud.ces.v1beta.StreamChatAiAssistantRequest]
+   * so the server can reuse the snapshot.
+   * 
+ * + * string context_token = 3; + * + * @return The contextToken. + */ + @java.lang.Override + public java.lang.String getContextToken() { + java.lang.Object ref = contextToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + contextToken_ = s; + return s; + } + } + + /** + * + * + *
+   * Opaque token capturing the onboarding snapshot used to generate these
+   * suggestions. Clients echo it on the first
+   * [StreamChatAiAssistantRequest][google.cloud.ces.v1beta.StreamChatAiAssistantRequest]
+   * so the server can reuse the snapshot.
+   * 
+ * + * string context_token = 3; + * + * @return The bytes for contextToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getContextTokenBytes() { + java.lang.Object ref = contextToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + contextToken_ = 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 (userProfile_ + != com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse.UserProfile + .USER_PROFILE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, userProfile_); + } + for (int i = 0; i < suggestions_.size(); i++) { + output.writeMessage(2, suggestions_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(contextToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, contextToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (userProfile_ + != com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse.UserProfile + .USER_PROFILE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, userProfile_); + } + for (int i = 0; i < suggestions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, suggestions_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(contextToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, contextToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.GenerateOnboardingSuggestionsResponse)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse other = + (com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse) obj; + + if (userProfile_ != other.userProfile_) return false; + if (!getSuggestionsList().equals(other.getSuggestionsList())) return false; + if (!getContextToken().equals(other.getContextToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + USER_PROFILE_FIELD_NUMBER; + hash = (53 * hash) + userProfile_; + if (getSuggestionsCount() > 0) { + hash = (37 * hash) + SUGGESTIONS_FIELD_NUMBER; + hash = (53 * hash) + getSuggestionsList().hashCode(); + } + hash = (37 * hash) + CONTEXT_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getContextToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse parseFrom( + 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.GenerateOnboardingSuggestionsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse parseFrom( + com.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.GenerateOnboardingSuggestionsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse 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.GenerateOnboardingSuggestionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse parseFrom( + java.io.InputStream 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.GenerateOnboardingSuggestionsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse + parseDelimitedFrom( + java.io.InputStream 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.GenerateOnboardingSuggestionsResponse 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.GenerateOnboardingSuggestionsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, 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.GenerateOnboardingSuggestionsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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
+   * [SessionService.GenerateOnboardingSuggestions][google.cloud.ces.v1beta.SessionService.GenerateOnboardingSuggestions].
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse) + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_GenerateOnboardingSuggestionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_GenerateOnboardingSuggestionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse.class, + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse.Builder.class); + } + + // Construct using + // com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + userProfile_ = 0; + if (suggestionsBuilder_ == null) { + suggestions_ = java.util.Collections.emptyList(); + } else { + suggestions_ = null; + suggestionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + contextToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_GenerateOnboardingSuggestionsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse + getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse build() { + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse buildPartial() { + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse result = + new com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse result) { + if (suggestionsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + suggestions_ = java.util.Collections.unmodifiableList(suggestions_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.suggestions_ = suggestions_; + } else { + result.suggestions_ = suggestionsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.userProfile_ = userProfile_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.contextToken_ = contextToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse) { + return mergeFrom((com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse other) { + if (other + == com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse.getDefaultInstance()) + return this; + if (other.userProfile_ != 0) { + setUserProfileValue(other.getUserProfileValue()); + } + if (suggestionsBuilder_ == null) { + if (!other.suggestions_.isEmpty()) { + if (suggestions_.isEmpty()) { + suggestions_ = other.suggestions_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureSuggestionsIsMutable(); + suggestions_.addAll(other.suggestions_); + } + onChanged(); + } + } else { + if (!other.suggestions_.isEmpty()) { + if (suggestionsBuilder_.isEmpty()) { + suggestionsBuilder_.dispose(); + suggestionsBuilder_ = null; + suggestions_ = other.suggestions_; + bitField0_ = (bitField0_ & ~0x00000002); + suggestionsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetSuggestionsFieldBuilder() + : null; + } else { + suggestionsBuilder_.addAllMessages(other.suggestions_); + } + } + } + if (!other.getContextToken().isEmpty()) { + contextToken_ = other.contextToken_; + 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: + { + userProfile_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + com.google.cloud.ces.v1beta.AssistantSuggestion m = + input.readMessage( + com.google.cloud.ces.v1beta.AssistantSuggestion.parser(), + extensionRegistry); + if (suggestionsBuilder_ == null) { + ensureSuggestionsIsMutable(); + suggestions_.add(m); + } else { + suggestionsBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: + { + contextToken_ = 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 userProfile_ = 0; + + /** + * + * + *
+     * Classification of the requesting user's history.
+     * 
+ * + * + * .google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse.UserProfile user_profile = 1; + * + * + * @return The enum numeric value on the wire for userProfile. + */ + @java.lang.Override + public int getUserProfileValue() { + return userProfile_; + } + + /** + * + * + *
+     * Classification of the requesting user's history.
+     * 
+ * + * + * .google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse.UserProfile user_profile = 1; + * + * + * @param value The enum numeric value on the wire for userProfile to set. + * @return This builder for chaining. + */ + public Builder setUserProfileValue(int value) { + userProfile_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Classification of the requesting user's history.
+     * 
+ * + * + * .google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse.UserProfile user_profile = 1; + * + * + * @return The userProfile. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse.UserProfile + getUserProfile() { + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse.UserProfile result = + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse.UserProfile.forNumber( + userProfile_); + return result == null + ? com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse.UserProfile + .UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Classification of the requesting user's history.
+     * 
+ * + * + * .google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse.UserProfile user_profile = 1; + * + * + * @param value The userProfile to set. + * @return This builder for chaining. + */ + public Builder setUserProfile( + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse.UserProfile value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + userProfile_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Classification of the requesting user's history.
+     * 
+ * + * + * .google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse.UserProfile user_profile = 1; + * + * + * @return This builder for chaining. + */ + public Builder clearUserProfile() { + bitField0_ = (bitField0_ & ~0x00000001); + userProfile_ = 0; + onChanged(); + return this; + } + + private java.util.List suggestions_ = + java.util.Collections.emptyList(); + + private void ensureSuggestionsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + suggestions_ = + new java.util.ArrayList(suggestions_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.AssistantSuggestion, + com.google.cloud.ces.v1beta.AssistantSuggestion.Builder, + com.google.cloud.ces.v1beta.AssistantSuggestionOrBuilder> + suggestionsBuilder_; + + /** + * + * + *
+     * Personalized suggestions, ranked most relevant first.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSuggestion suggestions = 2; + */ + public java.util.List getSuggestionsList() { + if (suggestionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(suggestions_); + } else { + return suggestionsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Personalized suggestions, ranked most relevant first.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSuggestion suggestions = 2; + */ + public int getSuggestionsCount() { + if (suggestionsBuilder_ == null) { + return suggestions_.size(); + } else { + return suggestionsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Personalized suggestions, ranked most relevant first.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSuggestion suggestions = 2; + */ + public com.google.cloud.ces.v1beta.AssistantSuggestion getSuggestions(int index) { + if (suggestionsBuilder_ == null) { + return suggestions_.get(index); + } else { + return suggestionsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Personalized suggestions, ranked most relevant first.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSuggestion suggestions = 2; + */ + public Builder setSuggestions( + int index, com.google.cloud.ces.v1beta.AssistantSuggestion value) { + if (suggestionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSuggestionsIsMutable(); + suggestions_.set(index, value); + onChanged(); + } else { + suggestionsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Personalized suggestions, ranked most relevant first.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSuggestion suggestions = 2; + */ + public Builder setSuggestions( + int index, com.google.cloud.ces.v1beta.AssistantSuggestion.Builder builderForValue) { + if (suggestionsBuilder_ == null) { + ensureSuggestionsIsMutable(); + suggestions_.set(index, builderForValue.build()); + onChanged(); + } else { + suggestionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Personalized suggestions, ranked most relevant first.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSuggestion suggestions = 2; + */ + public Builder addSuggestions(com.google.cloud.ces.v1beta.AssistantSuggestion value) { + if (suggestionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSuggestionsIsMutable(); + suggestions_.add(value); + onChanged(); + } else { + suggestionsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Personalized suggestions, ranked most relevant first.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSuggestion suggestions = 2; + */ + public Builder addSuggestions( + int index, com.google.cloud.ces.v1beta.AssistantSuggestion value) { + if (suggestionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSuggestionsIsMutable(); + suggestions_.add(index, value); + onChanged(); + } else { + suggestionsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Personalized suggestions, ranked most relevant first.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSuggestion suggestions = 2; + */ + public Builder addSuggestions( + com.google.cloud.ces.v1beta.AssistantSuggestion.Builder builderForValue) { + if (suggestionsBuilder_ == null) { + ensureSuggestionsIsMutable(); + suggestions_.add(builderForValue.build()); + onChanged(); + } else { + suggestionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Personalized suggestions, ranked most relevant first.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSuggestion suggestions = 2; + */ + public Builder addSuggestions( + int index, com.google.cloud.ces.v1beta.AssistantSuggestion.Builder builderForValue) { + if (suggestionsBuilder_ == null) { + ensureSuggestionsIsMutable(); + suggestions_.add(index, builderForValue.build()); + onChanged(); + } else { + suggestionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Personalized suggestions, ranked most relevant first.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSuggestion suggestions = 2; + */ + public Builder addAllSuggestions( + java.lang.Iterable values) { + if (suggestionsBuilder_ == null) { + ensureSuggestionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, suggestions_); + onChanged(); + } else { + suggestionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Personalized suggestions, ranked most relevant first.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSuggestion suggestions = 2; + */ + public Builder clearSuggestions() { + if (suggestionsBuilder_ == null) { + suggestions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + suggestionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Personalized suggestions, ranked most relevant first.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSuggestion suggestions = 2; + */ + public Builder removeSuggestions(int index) { + if (suggestionsBuilder_ == null) { + ensureSuggestionsIsMutable(); + suggestions_.remove(index); + onChanged(); + } else { + suggestionsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Personalized suggestions, ranked most relevant first.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSuggestion suggestions = 2; + */ + public com.google.cloud.ces.v1beta.AssistantSuggestion.Builder getSuggestionsBuilder( + int index) { + return internalGetSuggestionsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Personalized suggestions, ranked most relevant first.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSuggestion suggestions = 2; + */ + public com.google.cloud.ces.v1beta.AssistantSuggestionOrBuilder getSuggestionsOrBuilder( + int index) { + if (suggestionsBuilder_ == null) { + return suggestions_.get(index); + } else { + return suggestionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Personalized suggestions, ranked most relevant first.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSuggestion suggestions = 2; + */ + public java.util.List + getSuggestionsOrBuilderList() { + if (suggestionsBuilder_ != null) { + return suggestionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(suggestions_); + } + } + + /** + * + * + *
+     * Personalized suggestions, ranked most relevant first.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSuggestion suggestions = 2; + */ + public com.google.cloud.ces.v1beta.AssistantSuggestion.Builder addSuggestionsBuilder() { + return internalGetSuggestionsFieldBuilder() + .addBuilder(com.google.cloud.ces.v1beta.AssistantSuggestion.getDefaultInstance()); + } + + /** + * + * + *
+     * Personalized suggestions, ranked most relevant first.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSuggestion suggestions = 2; + */ + public com.google.cloud.ces.v1beta.AssistantSuggestion.Builder addSuggestionsBuilder( + int index) { + return internalGetSuggestionsFieldBuilder() + .addBuilder(index, com.google.cloud.ces.v1beta.AssistantSuggestion.getDefaultInstance()); + } + + /** + * + * + *
+     * Personalized suggestions, ranked most relevant first.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSuggestion suggestions = 2; + */ + public java.util.List + getSuggestionsBuilderList() { + return internalGetSuggestionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.AssistantSuggestion, + com.google.cloud.ces.v1beta.AssistantSuggestion.Builder, + com.google.cloud.ces.v1beta.AssistantSuggestionOrBuilder> + internalGetSuggestionsFieldBuilder() { + if (suggestionsBuilder_ == null) { + suggestionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.AssistantSuggestion, + com.google.cloud.ces.v1beta.AssistantSuggestion.Builder, + com.google.cloud.ces.v1beta.AssistantSuggestionOrBuilder>( + suggestions_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + suggestions_ = null; + } + return suggestionsBuilder_; + } + + private java.lang.Object contextToken_ = ""; + + /** + * + * + *
+     * Opaque token capturing the onboarding snapshot used to generate these
+     * suggestions. Clients echo it on the first
+     * [StreamChatAiAssistantRequest][google.cloud.ces.v1beta.StreamChatAiAssistantRequest]
+     * so the server can reuse the snapshot.
+     * 
+ * + * string context_token = 3; + * + * @return The contextToken. + */ + public java.lang.String getContextToken() { + java.lang.Object ref = contextToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + contextToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Opaque token capturing the onboarding snapshot used to generate these
+     * suggestions. Clients echo it on the first
+     * [StreamChatAiAssistantRequest][google.cloud.ces.v1beta.StreamChatAiAssistantRequest]
+     * so the server can reuse the snapshot.
+     * 
+ * + * string context_token = 3; + * + * @return The bytes for contextToken. + */ + public com.google.protobuf.ByteString getContextTokenBytes() { + java.lang.Object ref = contextToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + contextToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Opaque token capturing the onboarding snapshot used to generate these
+     * suggestions. Clients echo it on the first
+     * [StreamChatAiAssistantRequest][google.cloud.ces.v1beta.StreamChatAiAssistantRequest]
+     * so the server can reuse the snapshot.
+     * 
+ * + * string context_token = 3; + * + * @param value The contextToken to set. + * @return This builder for chaining. + */ + public Builder setContextToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + contextToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Opaque token capturing the onboarding snapshot used to generate these
+     * suggestions. Clients echo it on the first
+     * [StreamChatAiAssistantRequest][google.cloud.ces.v1beta.StreamChatAiAssistantRequest]
+     * so the server can reuse the snapshot.
+     * 
+ * + * string context_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearContextToken() { + contextToken_ = getDefaultInstance().getContextToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Opaque token capturing the onboarding snapshot used to generate these
+     * suggestions. Clients echo it on the first
+     * [StreamChatAiAssistantRequest][google.cloud.ces.v1beta.StreamChatAiAssistantRequest]
+     * so the server can reuse the snapshot.
+     * 
+ * + * string context_token = 3; + * + * @param value The bytes for contextToken to set. + * @return This builder for chaining. + */ + public Builder setContextTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + contextToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse) + private static final com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse(); + } + + public static com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateOnboardingSuggestionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.GenerateOnboardingSuggestionsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GenerateOnboardingSuggestionsResponseOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GenerateOnboardingSuggestionsResponseOrBuilder.java new file mode 100644 index 000000000000..f4ad51754cba --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GenerateOnboardingSuggestionsResponseOrBuilder.java @@ -0,0 +1,146 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/session_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public interface GenerateOnboardingSuggestionsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Classification of the requesting user's history.
+   * 
+ * + * + * .google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse.UserProfile user_profile = 1; + * + * + * @return The enum numeric value on the wire for userProfile. + */ + int getUserProfileValue(); + + /** + * + * + *
+   * Classification of the requesting user's history.
+   * 
+ * + * + * .google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse.UserProfile user_profile = 1; + * + * + * @return The userProfile. + */ + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse.UserProfile getUserProfile(); + + /** + * + * + *
+   * Personalized suggestions, ranked most relevant first.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSuggestion suggestions = 2; + */ + java.util.List getSuggestionsList(); + + /** + * + * + *
+   * Personalized suggestions, ranked most relevant first.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSuggestion suggestions = 2; + */ + com.google.cloud.ces.v1beta.AssistantSuggestion getSuggestions(int index); + + /** + * + * + *
+   * Personalized suggestions, ranked most relevant first.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSuggestion suggestions = 2; + */ + int getSuggestionsCount(); + + /** + * + * + *
+   * Personalized suggestions, ranked most relevant first.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSuggestion suggestions = 2; + */ + java.util.List + getSuggestionsOrBuilderList(); + + /** + * + * + *
+   * Personalized suggestions, ranked most relevant first.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSuggestion suggestions = 2; + */ + com.google.cloud.ces.v1beta.AssistantSuggestionOrBuilder getSuggestionsOrBuilder(int index); + + /** + * + * + *
+   * Opaque token capturing the onboarding snapshot used to generate these
+   * suggestions. Clients echo it on the first
+   * [StreamChatAiAssistantRequest][google.cloud.ces.v1beta.StreamChatAiAssistantRequest]
+   * so the server can reuse the snapshot.
+   * 
+ * + * string context_token = 3; + * + * @return The contextToken. + */ + java.lang.String getContextToken(); + + /** + * + * + *
+   * Opaque token capturing the onboarding snapshot used to generate these
+   * suggestions. Clients echo it on the first
+   * [StreamChatAiAssistantRequest][google.cloud.ces.v1beta.StreamChatAiAssistantRequest]
+   * so the server can reuse the snapshot.
+   * 
+ * + * string context_token = 3; + * + * @return The bytes for contextToken. + */ + com.google.protobuf.ByteString getContextTokenBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GetAssistantSessionRequest.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GetAssistantSessionRequest.java new file mode 100644 index 000000000000..bcb44ed3dd30 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GetAssistantSessionRequest.java @@ -0,0 +1,627 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/assistant_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +/** + * + * + *
+ * Request message for
+ * [AssistantService.GetAssistantSession][google.cloud.ces.v1beta.AssistantService.GetAssistantSession].
+ * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.GetAssistantSessionRequest} + */ +@com.google.protobuf.Generated +public final class GetAssistantSessionRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.GetAssistantSessionRequest) + GetAssistantSessionRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "GetAssistantSessionRequest"); + } + + // Use GetAssistantSessionRequest.newBuilder() to construct. + private GetAssistantSessionRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetAssistantSessionRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_GetAssistantSessionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_GetAssistantSessionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.GetAssistantSessionRequest.class, + com.google.cloud.ces.v1beta.GetAssistantSessionRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The name of the assistant session to retrieve.
+   * Format:
+   * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}`
+   * 
+ * + * + * 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 assistant session to retrieve.
+   * Format:
+   * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}`
+   * 
+ * + * + * 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.ces.v1beta.GetAssistantSessionRequest)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.GetAssistantSessionRequest other = + (com.google.cloud.ces.v1beta.GetAssistantSessionRequest) 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.ces.v1beta.GetAssistantSessionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.GetAssistantSessionRequest parseFrom( + 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.GetAssistantSessionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.GetAssistantSessionRequest parseFrom( + com.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.GetAssistantSessionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.GetAssistantSessionRequest 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.GetAssistantSessionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.GetAssistantSessionRequest parseFrom( + java.io.InputStream 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.GetAssistantSessionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.GetAssistantSessionRequest parseDelimitedFrom( + java.io.InputStream 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.GetAssistantSessionRequest 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.GetAssistantSessionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, 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.GetAssistantSessionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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
+   * [AssistantService.GetAssistantSession][google.cloud.ces.v1beta.AssistantService.GetAssistantSession].
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.GetAssistantSessionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.GetAssistantSessionRequest) + com.google.cloud.ces.v1beta.GetAssistantSessionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_GetAssistantSessionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_GetAssistantSessionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.GetAssistantSessionRequest.class, + com.google.cloud.ces.v1beta.GetAssistantSessionRequest.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.GetAssistantSessionRequest.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.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_GetAssistantSessionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.GetAssistantSessionRequest getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.GetAssistantSessionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.GetAssistantSessionRequest build() { + com.google.cloud.ces.v1beta.GetAssistantSessionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.GetAssistantSessionRequest buildPartial() { + com.google.cloud.ces.v1beta.GetAssistantSessionRequest result = + new com.google.cloud.ces.v1beta.GetAssistantSessionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1beta.GetAssistantSessionRequest 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.ces.v1beta.GetAssistantSessionRequest) { + return mergeFrom((com.google.cloud.ces.v1beta.GetAssistantSessionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.GetAssistantSessionRequest other) { + if (other == com.google.cloud.ces.v1beta.GetAssistantSessionRequest.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 assistant session to retrieve.
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}`
+     * 
+ * + * + * 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 assistant session to retrieve.
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}`
+     * 
+ * + * + * 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 assistant session to retrieve.
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}`
+     * 
+ * + * + * 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 assistant session to retrieve.
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}`
+     * 
+ * + * + * 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 assistant session to retrieve.
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}`
+     * 
+ * + * + * 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.ces.v1beta.GetAssistantSessionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.GetAssistantSessionRequest) + private static final com.google.cloud.ces.v1beta.GetAssistantSessionRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.GetAssistantSessionRequest(); + } + + public static com.google.cloud.ces.v1beta.GetAssistantSessionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAssistantSessionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.GetAssistantSessionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GetAssistantSessionRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GetAssistantSessionRequestOrBuilder.java new file mode 100644 index 000000000000..425a47cbf648 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GetAssistantSessionRequestOrBuilder.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/ces/v1beta/assistant_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public interface GetAssistantSessionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.GetAssistantSessionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the assistant session to retrieve.
+   * Format:
+   * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The name of the assistant session to retrieve.
+   * Format:
+   * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}`
+   * 
+ * + * + * 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-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GetConversationRequest.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GetConversationRequest.java index f9ab9cfb44f0..f49febb87699 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GetConversationRequest.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GetConversationRequest.java @@ -145,7 +145,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * * @deprecated google.cloud.ces.v1beta.GetConversationRequest.source is deprecated. See - * google/cloud/ces/v1beta/agent_service.proto;l=1188 + * google/cloud/ces/v1beta/agent_service.proto;l=1212 * @return The enum numeric value on the wire for source. */ @java.lang.Override @@ -167,7 +167,7 @@ public int getSourceValue() { * * * @deprecated google.cloud.ces.v1beta.GetConversationRequest.source is deprecated. See - * google/cloud/ces/v1beta/agent_service.proto;l=1188 + * google/cloud/ces/v1beta/agent_service.proto;l=1212 * @return The source. */ @java.lang.Override @@ -647,7 +647,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.cloud.ces.v1beta.GetConversationRequest.source is deprecated. See - * google/cloud/ces/v1beta/agent_service.proto;l=1188 + * google/cloud/ces/v1beta/agent_service.proto;l=1212 * @return The enum numeric value on the wire for source. */ @java.lang.Override @@ -669,7 +669,7 @@ public int getSourceValue() { * * * @deprecated google.cloud.ces.v1beta.GetConversationRequest.source is deprecated. See - * google/cloud/ces/v1beta/agent_service.proto;l=1188 + * google/cloud/ces/v1beta/agent_service.proto;l=1212 * @param value The enum numeric value on the wire for source to set. * @return This builder for chaining. */ @@ -694,7 +694,7 @@ public Builder setSourceValue(int value) { * * * @deprecated google.cloud.ces.v1beta.GetConversationRequest.source is deprecated. See - * google/cloud/ces/v1beta/agent_service.proto;l=1188 + * google/cloud/ces/v1beta/agent_service.proto;l=1212 * @return The source. */ @java.lang.Override @@ -718,7 +718,7 @@ public com.google.cloud.ces.v1beta.Conversation.Source getSource() { * * * @deprecated google.cloud.ces.v1beta.GetConversationRequest.source is deprecated. See - * google/cloud/ces/v1beta/agent_service.proto;l=1188 + * google/cloud/ces/v1beta/agent_service.proto;l=1212 * @param value The source to set. * @return This builder for chaining. */ @@ -746,7 +746,7 @@ public Builder setSource(com.google.cloud.ces.v1beta.Conversation.Source value) * * * @deprecated google.cloud.ces.v1beta.GetConversationRequest.source is deprecated. See - * google/cloud/ces/v1beta/agent_service.proto;l=1188 + * google/cloud/ces/v1beta/agent_service.proto;l=1212 * @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/GetConversationRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GetConversationRequestOrBuilder.java index 9f2bc482169b..0420ef703d59 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GetConversationRequestOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GetConversationRequestOrBuilder.java @@ -69,7 +69,7 @@ public interface GetConversationRequestOrBuilder * * * @deprecated google.cloud.ces.v1beta.GetConversationRequest.source is deprecated. See - * google/cloud/ces/v1beta/agent_service.proto;l=1188 + * google/cloud/ces/v1beta/agent_service.proto;l=1212 * @return The enum numeric value on the wire for source. */ @java.lang.Deprecated @@ -88,7 +88,7 @@ public interface GetConversationRequestOrBuilder * * * @deprecated google.cloud.ces.v1beta.GetConversationRequest.source is deprecated. See - * google/cloud/ces/v1beta/agent_service.proto;l=1188 + * google/cloud/ces/v1beta/agent_service.proto;l=1212 * @return The source. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/Guardrail.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/Guardrail.java index 5f1da36adc31..f52ec722c1e7 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/Guardrail.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/Guardrail.java @@ -303,6 +303,84 @@ public interface ContentFilterOrBuilder * @return The disregardDiacritics. */ boolean getDisregardDiacritics(); + + /** + * + * + *
+     * Optional. Entries of the sensitive words list that this guardrail allows.
+     * Only valid when match_type is SENSITIVE_WORDS. Each value must equal a
+     * list entry (case-insensitive, surrounding whitespace ignored); other
+     * values have no effect. Applies to this guardrail only. At most 1000
+     * entries of up to 256 characters each.
+     * 
+ * + * + * repeated string sensitive_words_exemptions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the sensitiveWordsExemptions. + */ + java.util.List getSensitiveWordsExemptionsList(); + + /** + * + * + *
+     * Optional. Entries of the sensitive words list that this guardrail allows.
+     * Only valid when match_type is SENSITIVE_WORDS. Each value must equal a
+     * list entry (case-insensitive, surrounding whitespace ignored); other
+     * values have no effect. Applies to this guardrail only. At most 1000
+     * entries of up to 256 characters each.
+     * 
+ * + * + * repeated string sensitive_words_exemptions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of sensitiveWordsExemptions. + */ + int getSensitiveWordsExemptionsCount(); + + /** + * + * + *
+     * Optional. Entries of the sensitive words list that this guardrail allows.
+     * Only valid when match_type is SENSITIVE_WORDS. Each value must equal a
+     * list entry (case-insensitive, surrounding whitespace ignored); other
+     * values have no effect. Applies to this guardrail only. At most 1000
+     * entries of up to 256 characters each.
+     * 
+ * + * + * repeated string sensitive_words_exemptions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The sensitiveWordsExemptions at the given index. + */ + java.lang.String getSensitiveWordsExemptions(int index); + + /** + * + * + *
+     * Optional. Entries of the sensitive words list that this guardrail allows.
+     * Only valid when match_type is SENSITIVE_WORDS. Each value must equal a
+     * list entry (case-insensitive, surrounding whitespace ignored); other
+     * values have no effect. Applies to this guardrail only. At most 1000
+     * entries of up to 256 characters each.
+     * 
+ * + * + * repeated string sensitive_words_exemptions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the sensitiveWordsExemptions at the given index. + */ + com.google.protobuf.ByteString getSensitiveWordsExemptionsBytes(int index); } /** @@ -340,6 +418,7 @@ private ContentFilter() { bannedContentsInUserInput_ = com.google.protobuf.LazyStringArrayList.emptyList(); bannedContentsInAgentResponse_ = com.google.protobuf.LazyStringArrayList.emptyList(); matchType_ = 0; + sensitiveWordsExemptions_ = com.google.protobuf.LazyStringArrayList.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -409,6 +488,19 @@ public enum MatchType implements com.google.protobuf.ProtocolMessageEnum { * REGEXP_MATCH = 3; */ REGEXP_MATCH(3), + /** + * + * + *
+       * Content is matched against a system-managed list of sensitive words
+       * and phrases. Attaching a guardrail with this match type to an app or
+       * agent replaces the default sensitive words filter for the affected
+       * agents; disable the guardrail to opt out of the default filter.
+       * 
+ * + * SENSITIVE_WORDS = 4; + */ + SENSITIVE_WORDS(4), UNRECOGNIZED(-1), ; @@ -468,6 +560,20 @@ public enum MatchType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int REGEXP_MATCH_VALUE = 3; + /** + * + * + *
+       * Content is matched against a system-managed list of sensitive words
+       * and phrases. Attaching a guardrail with this match type to an app or
+       * agent replaces the default sensitive words filter for the affected
+       * agents; disable the guardrail to opt out of the default filter.
+       * 
+ * + * SENSITIVE_WORDS = 4; + */ + public static final int SENSITIVE_WORDS_VALUE = 4; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -500,6 +606,8 @@ public static MatchType forNumber(int value) { return WORD_BOUNDARY_STRING_MATCH; case 3: return REGEXP_MATCH; + case 4: + return SENSITIVE_WORDS; default: return null; } @@ -841,6 +949,98 @@ public boolean getDisregardDiacritics() { return disregardDiacritics_; } + public static final int SENSITIVE_WORDS_EXEMPTIONS_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList sensitiveWordsExemptions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+     * Optional. Entries of the sensitive words list that this guardrail allows.
+     * Only valid when match_type is SENSITIVE_WORDS. Each value must equal a
+     * list entry (case-insensitive, surrounding whitespace ignored); other
+     * values have no effect. Applies to this guardrail only. At most 1000
+     * entries of up to 256 characters each.
+     * 
+ * + * + * repeated string sensitive_words_exemptions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the sensitiveWordsExemptions. + */ + public com.google.protobuf.ProtocolStringList getSensitiveWordsExemptionsList() { + return sensitiveWordsExemptions_; + } + + /** + * + * + *
+     * Optional. Entries of the sensitive words list that this guardrail allows.
+     * Only valid when match_type is SENSITIVE_WORDS. Each value must equal a
+     * list entry (case-insensitive, surrounding whitespace ignored); other
+     * values have no effect. Applies to this guardrail only. At most 1000
+     * entries of up to 256 characters each.
+     * 
+ * + * + * repeated string sensitive_words_exemptions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of sensitiveWordsExemptions. + */ + public int getSensitiveWordsExemptionsCount() { + return sensitiveWordsExemptions_.size(); + } + + /** + * + * + *
+     * Optional. Entries of the sensitive words list that this guardrail allows.
+     * Only valid when match_type is SENSITIVE_WORDS. Each value must equal a
+     * list entry (case-insensitive, surrounding whitespace ignored); other
+     * values have no effect. Applies to this guardrail only. At most 1000
+     * entries of up to 256 characters each.
+     * 
+ * + * + * repeated string sensitive_words_exemptions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The sensitiveWordsExemptions at the given index. + */ + public java.lang.String getSensitiveWordsExemptions(int index) { + return sensitiveWordsExemptions_.get(index); + } + + /** + * + * + *
+     * Optional. Entries of the sensitive words list that this guardrail allows.
+     * Only valid when match_type is SENSITIVE_WORDS. Each value must equal a
+     * list entry (case-insensitive, surrounding whitespace ignored); other
+     * values have no effect. Applies to this guardrail only. At most 1000
+     * entries of up to 256 characters each.
+     * 
+ * + * + * repeated string sensitive_words_exemptions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the sensitiveWordsExemptions at the given index. + */ + public com.google.protobuf.ByteString getSensitiveWordsExemptionsBytes(int index) { + return sensitiveWordsExemptions_.getByteString(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -874,6 +1074,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (disregardDiacritics_ != false) { output.writeBool(5, disregardDiacritics_); } + for (int i = 0; i < sensitiveWordsExemptions_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString( + output, 7, sensitiveWordsExemptions_.getRaw(i)); + } getUnknownFields().writeTo(output); } @@ -915,6 +1119,14 @@ public int getSerializedSize() { if (disregardDiacritics_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, disregardDiacritics_); } + { + int dataSize = 0; + for (int i = 0; i < sensitiveWordsExemptions_.size(); i++) { + dataSize += computeStringSizeNoTag(sensitiveWordsExemptions_.getRaw(i)); + } + size += dataSize; + size += 1 * getSensitiveWordsExemptionsList().size(); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -938,6 +1150,8 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getBannedContentsInAgentResponseList())) return false; if (matchType_ != other.matchType_) return false; if (getDisregardDiacritics() != other.getDisregardDiacritics()) return false; + if (!getSensitiveWordsExemptionsList().equals(other.getSensitiveWordsExemptionsList())) + return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -965,6 +1179,10 @@ public int hashCode() { hash = (53 * hash) + matchType_; hash = (37 * hash) + DISREGARD_DIACRITICS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisregardDiacritics()); + if (getSensitiveWordsExemptionsCount() > 0) { + hash = (37 * hash) + SENSITIVE_WORDS_EXEMPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getSensitiveWordsExemptionsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1111,6 +1329,7 @@ public Builder clear() { bannedContentsInAgentResponse_ = com.google.protobuf.LazyStringArrayList.emptyList(); matchType_ = 0; disregardDiacritics_ = false; + sensitiveWordsExemptions_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @@ -1165,6 +1384,10 @@ private void buildPartial0(com.google.cloud.ces.v1beta.Guardrail.ContentFilter r if (((from_bitField0_ & 0x00000010) != 0)) { result.disregardDiacritics_ = disregardDiacritics_; } + if (((from_bitField0_ & 0x00000020) != 0)) { + sensitiveWordsExemptions_.makeImmutable(); + result.sensitiveWordsExemptions_ = sensitiveWordsExemptions_; + } } @java.lang.Override @@ -1216,6 +1439,16 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.Guardrail.ContentFilter oth if (other.getDisregardDiacritics() != false) { setDisregardDiacritics(other.getDisregardDiacritics()); } + if (!other.sensitiveWordsExemptions_.isEmpty()) { + if (sensitiveWordsExemptions_.isEmpty()) { + sensitiveWordsExemptions_ = other.sensitiveWordsExemptions_; + bitField0_ |= 0x00000020; + } else { + ensureSensitiveWordsExemptionsIsMutable(); + sensitiveWordsExemptions_.addAll(other.sensitiveWordsExemptions_); + } + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1275,6 +1508,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000010; break; } // case 40 + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureSensitiveWordsExemptionsIsMutable(); + sensitiveWordsExemptions_.add(s); + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2056,66 +2296,304 @@ public Builder clearDisregardDiacritics() { return this; } - // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.Guardrail.ContentFilter) - } - - // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.Guardrail.ContentFilter) - private static final com.google.cloud.ces.v1beta.Guardrail.ContentFilter DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.Guardrail.ContentFilter(); - } + private com.google.protobuf.LazyStringArrayList sensitiveWordsExemptions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); - public static com.google.cloud.ces.v1beta.Guardrail.ContentFilter getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private void ensureSensitiveWordsExemptionsIsMutable() { + if (!sensitiveWordsExemptions_.isModifiable()) { + sensitiveWordsExemptions_ = + new com.google.protobuf.LazyStringArrayList(sensitiveWordsExemptions_); + } + bitField0_ |= 0x00000020; + } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ContentFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + /** + * + * + *
+       * Optional. Entries of the sensitive words list that this guardrail allows.
+       * Only valid when match_type is SENSITIVE_WORDS. Each value must equal a
+       * list entry (case-insensitive, surrounding whitespace ignored); other
+       * values have no effect. Applies to this guardrail only. At most 1000
+       * entries of up to 256 characters each.
+       * 
+ * + * + * repeated string sensitive_words_exemptions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the sensitiveWordsExemptions. + */ + public com.google.protobuf.ProtocolStringList getSensitiveWordsExemptionsList() { + sensitiveWordsExemptions_.makeImmutable(); + return sensitiveWordsExemptions_; + } - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + * + * + *
+       * Optional. Entries of the sensitive words list that this guardrail allows.
+       * Only valid when match_type is SENSITIVE_WORDS. Each value must equal a
+       * list entry (case-insensitive, surrounding whitespace ignored); other
+       * values have no effect. Applies to this guardrail only. At most 1000
+       * entries of up to 256 characters each.
+       * 
+ * + * + * repeated string sensitive_words_exemptions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of sensitiveWordsExemptions. + */ + public int getSensitiveWordsExemptionsCount() { + return sensitiveWordsExemptions_.size(); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * + * + *
+       * Optional. Entries of the sensitive words list that this guardrail allows.
+       * Only valid when match_type is SENSITIVE_WORDS. Each value must equal a
+       * list entry (case-insensitive, surrounding whitespace ignored); other
+       * values have no effect. Applies to this guardrail only. At most 1000
+       * entries of up to 256 characters each.
+       * 
+ * + * + * repeated string sensitive_words_exemptions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The sensitiveWordsExemptions at the given index. + */ + public java.lang.String getSensitiveWordsExemptions(int index) { + return sensitiveWordsExemptions_.get(index); + } - @java.lang.Override - public com.google.cloud.ces.v1beta.Guardrail.ContentFilter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } + /** + * + * + *
+       * Optional. Entries of the sensitive words list that this guardrail allows.
+       * Only valid when match_type is SENSITIVE_WORDS. Each value must equal a
+       * list entry (case-insensitive, surrounding whitespace ignored); other
+       * values have no effect. Applies to this guardrail only. At most 1000
+       * entries of up to 256 characters each.
+       * 
+ * + * + * repeated string sensitive_words_exemptions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the sensitiveWordsExemptions at the given index. + */ + public com.google.protobuf.ByteString getSensitiveWordsExemptionsBytes(int index) { + return sensitiveWordsExemptions_.getByteString(index); + } - public interface LlmPromptSecurityOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.Guardrail.LlmPromptSecurity) - com.google.protobuf.MessageOrBuilder { + /** + * + * + *
+       * Optional. Entries of the sensitive words list that this guardrail allows.
+       * Only valid when match_type is SENSITIVE_WORDS. Each value must equal a
+       * list entry (case-insensitive, surrounding whitespace ignored); other
+       * values have no effect. Applies to this guardrail only. At most 1000
+       * entries of up to 256 characters each.
+       * 
+ * + * + * repeated string sensitive_words_exemptions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The sensitiveWordsExemptions to set. + * @return This builder for chaining. + */ + public Builder setSensitiveWordsExemptions(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSensitiveWordsExemptionsIsMutable(); + sensitiveWordsExemptions_.set(index, value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } - /** - * - * + /** + * + * + *
+       * Optional. Entries of the sensitive words list that this guardrail allows.
+       * Only valid when match_type is SENSITIVE_WORDS. Each value must equal a
+       * list entry (case-insensitive, surrounding whitespace ignored); other
+       * values have no effect. Applies to this guardrail only. At most 1000
+       * entries of up to 256 characters each.
+       * 
+ * + * + * repeated string sensitive_words_exemptions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The sensitiveWordsExemptions to add. + * @return This builder for chaining. + */ + public Builder addSensitiveWordsExemptions(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSensitiveWordsExemptionsIsMutable(); + sensitiveWordsExemptions_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Entries of the sensitive words list that this guardrail allows.
+       * Only valid when match_type is SENSITIVE_WORDS. Each value must equal a
+       * list entry (case-insensitive, surrounding whitespace ignored); other
+       * values have no effect. Applies to this guardrail only. At most 1000
+       * entries of up to 256 characters each.
+       * 
+ * + * + * repeated string sensitive_words_exemptions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The sensitiveWordsExemptions to add. + * @return This builder for chaining. + */ + public Builder addAllSensitiveWordsExemptions(java.lang.Iterable values) { + ensureSensitiveWordsExemptionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sensitiveWordsExemptions_); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Entries of the sensitive words list that this guardrail allows.
+       * Only valid when match_type is SENSITIVE_WORDS. Each value must equal a
+       * list entry (case-insensitive, surrounding whitespace ignored); other
+       * values have no effect. Applies to this guardrail only. At most 1000
+       * entries of up to 256 characters each.
+       * 
+ * + * + * repeated string sensitive_words_exemptions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearSensitiveWordsExemptions() { + sensitiveWordsExemptions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + ; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Entries of the sensitive words list that this guardrail allows.
+       * Only valid when match_type is SENSITIVE_WORDS. Each value must equal a
+       * list entry (case-insensitive, surrounding whitespace ignored); other
+       * values have no effect. Applies to this guardrail only. At most 1000
+       * entries of up to 256 characters each.
+       * 
+ * + * + * repeated string sensitive_words_exemptions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the sensitiveWordsExemptions to add. + * @return This builder for chaining. + */ + public Builder addSensitiveWordsExemptionsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureSensitiveWordsExemptionsIsMutable(); + sensitiveWordsExemptions_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.Guardrail.ContentFilter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.Guardrail.ContentFilter) + private static final com.google.cloud.ces.v1beta.Guardrail.ContentFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.Guardrail.ContentFilter(); + } + + public static com.google.cloud.ces.v1beta.Guardrail.ContentFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ContentFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.Guardrail.ContentFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface LlmPromptSecurityOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.Guardrail.LlmPromptSecurity) + com.google.protobuf.MessageOrBuilder { + + /** + * + * *
      * Optional. Use the system's predefined default security settings.
      * To select this mode, include an empty 'default_settings' message
@@ -4317,7 +4795,9 @@ public interface LlmPolicyOrBuilder
      *
      *
      * 
-     * Required. Policy prompt.
+     * Required. Policy prompt. Supports session variable placeholders (`{var}`)
+     * as well as `{agent_system_instruction}` to inject the agent's resolved
+     * system instructions.
      * 
* * string prompt = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -4330,7 +4810,9 @@ public interface LlmPolicyOrBuilder * * *
-     * Required. Policy prompt.
+     * Required. Policy prompt. Supports session variable placeholders (`{var}`)
+     * as well as `{agent_system_instruction}` to inject the agent's resolved
+     * system instructions.
      * 
* * string prompt = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -4745,7 +5227,9 @@ public com.google.cloud.ces.v1beta.ModelSettingsOrBuilder getModelSettingsOrBuil * * *
-     * Required. Policy prompt.
+     * Required. Policy prompt. Supports session variable placeholders (`{var}`)
+     * as well as `{agent_system_instruction}` to inject the agent's resolved
+     * system instructions.
      * 
* * string prompt = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -4769,7 +5253,9 @@ public java.lang.String getPrompt() { * * *
-     * Required. Policy prompt.
+     * Required. Policy prompt. Supports session variable placeholders (`{var}`)
+     * as well as `{agent_system_instruction}` to inject the agent's resolved
+     * system instructions.
      * 
* * string prompt = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -5605,7 +6091,9 @@ public com.google.cloud.ces.v1beta.ModelSettingsOrBuilder getModelSettingsOrBuil * * *
-       * Required. Policy prompt.
+       * Required. Policy prompt. Supports session variable placeholders (`{var}`)
+       * as well as `{agent_system_instruction}` to inject the agent's resolved
+       * system instructions.
        * 
* * string prompt = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -5628,7 +6116,9 @@ public java.lang.String getPrompt() { * * *
-       * Required. Policy prompt.
+       * Required. Policy prompt. Supports session variable placeholders (`{var}`)
+       * as well as `{agent_system_instruction}` to inject the agent's resolved
+       * system instructions.
        * 
* * string prompt = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -5651,7 +6141,9 @@ public com.google.protobuf.ByteString getPromptBytes() { * * *
-       * Required. Policy prompt.
+       * Required. Policy prompt. Supports session variable placeholders (`{var}`)
+       * as well as `{agent_system_instruction}` to inject the agent's resolved
+       * system instructions.
        * 
* * string prompt = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -5673,7 +6165,9 @@ public Builder setPrompt(java.lang.String value) { * * *
-       * Required. Policy prompt.
+       * Required. Policy prompt. Supports session variable placeholders (`{var}`)
+       * as well as `{agent_system_instruction}` to inject the agent's resolved
+       * system instructions.
        * 
* * string prompt = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -5691,7 +6185,9 @@ public Builder clearPrompt() { * * *
-       * Required. Policy prompt.
+       * Required. Policy prompt. Supports session variable placeholders (`{var}`)
+       * as well as `{agent_system_instruction}` to inject the agent's resolved
+       * system instructions.
        * 
* * string prompt = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -6192,6 +6688,26 @@ public enum HarmCategory implements com.google.protobuf.ProtocolMessageEnum { * HARM_CATEGORY_SEXUALLY_EXPLICIT = 4; */ HARM_CATEGORY_SEXUALLY_EXPLICIT(4), + /** + * + * + *
+       * The harm category is profanity.
+       * 
+ * + * HARM_CATEGORY_PROFANITY = 5; + */ + HARM_CATEGORY_PROFANITY(5), + /** + * + * + *
+       * The harm category is toxic.
+       * 
+ * + * HARM_CATEGORY_TOXIC = 6; + */ + HARM_CATEGORY_TOXIC(6), UNRECOGNIZED(-1), ; @@ -6260,6 +6776,28 @@ public enum HarmCategory implements com.google.protobuf.ProtocolMessageEnum { */ public static final int HARM_CATEGORY_SEXUALLY_EXPLICIT_VALUE = 4; + /** + * + * + *
+       * The harm category is profanity.
+       * 
+ * + * HARM_CATEGORY_PROFANITY = 5; + */ + public static final int HARM_CATEGORY_PROFANITY_VALUE = 5; + + /** + * + * + *
+       * The harm category is toxic.
+       * 
+ * + * HARM_CATEGORY_TOXIC = 6; + */ + public static final int HARM_CATEGORY_TOXIC_VALUE = 6; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -6294,6 +6832,10 @@ public static HarmCategory forNumber(int value) { return HARM_CATEGORY_HARASSMENT; case 4: return HARM_CATEGORY_SEXUALLY_EXPLICIT; + case 5: + return HARM_CATEGORY_PROFANITY; + case 6: + return HARM_CATEGORY_TOXIC; default: return null; } @@ -10500,67 +11042,1364 @@ public com.google.cloud.ces.v1beta.Guardrail.CodeCallback getDefaultInstanceForT } } - private int bitField0_; - private int guardrailTypeCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object guardrailType_; - - public enum GuardrailTypeCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - CONTENT_FILTER(8), - LLM_PROMPT_SECURITY(9), - LLM_POLICY(10), - MODEL_SAFETY(13), - CODE_CALLBACK(14), - GUARDRAILTYPE_NOT_SET(0); - private final int value; - - private GuardrailTypeCase(int value) { - this.value = value; - } + public interface SupervisorOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.Guardrail.Supervisor) + com.google.protobuf.MessageOrBuilder { /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. + * + * + *
+     * Optional. The type of the supervisor.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Guardrail.Supervisor.Type type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for type. */ - @java.lang.Deprecated - public static GuardrailTypeCase valueOf(int value) { - return forNumber(value); - } + int getTypeValue(); - public static GuardrailTypeCase forNumber(int value) { - switch (value) { - case 8: - return CONTENT_FILTER; - case 9: - return LLM_PROMPT_SECURITY; - case 10: - return LLM_POLICY; - case 13: - return MODEL_SAFETY; - case 14: - return CODE_CALLBACK; - case 0: - return GUARDRAILTYPE_NOT_SET; - default: - return null; - } - } + /** + * + * + *
+     * Optional. The type of the supervisor.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Guardrail.Supervisor.Type type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The type. + */ + com.google.cloud.ces.v1beta.Guardrail.Supervisor.Type getType(); - public int getNumber() { - return this.value; - } - }; + /** + * + * + *
+     * Optional. The detection mode of the supervisor.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Guardrail.Supervisor.DetectionMode detection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for detectionMode. + */ + int getDetectionModeValue(); - public GuardrailTypeCase getGuardrailTypeCase() { - return GuardrailTypeCase.forNumber(guardrailTypeCase_); + /** + * + * + *
+     * Optional. The detection mode of the supervisor.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Guardrail.Supervisor.DetectionMode detection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The detectionMode. + */ + com.google.cloud.ces.v1beta.Guardrail.Supervisor.DetectionMode getDetectionMode(); } - public static final int CONTENT_FILTER_FIELD_NUMBER = 8; + /** + * + * + *
+   * Guardrail that runs supervisor intervention.
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.Guardrail.Supervisor} + */ + public static final class Supervisor extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.Guardrail.Supervisor) + SupervisorOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Supervisor"); + } + + // Use Supervisor.newBuilder() to construct. + private Supervisor(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Supervisor() { + type_ = 0; + detectionMode_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.GuardrailProto + .internal_static_google_cloud_ces_v1beta_Guardrail_Supervisor_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.GuardrailProto + .internal_static_google_cloud_ces_v1beta_Guardrail_Supervisor_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.Guardrail.Supervisor.class, + com.google.cloud.ces.v1beta.Guardrail.Supervisor.Builder.class); + } + + /** + * + * + *
+     * Type of supervisor.
+     * 
+ * + * Protobuf enum {@code google.cloud.ces.v1beta.Guardrail.Supervisor.Type} + */ + public enum Type implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Type is unspecified.
+       * 
+ * + * TYPE_UNSPECIFIED = 0; + */ + TYPE_UNSPECIFIED(0), + /** + * + * + *
+       * Invalid text issue type.
+       * 
+ * + * INVALID_TEXT = 1; + */ + INVALID_TEXT(1), + /** + * + * + *
+       * Language shift issue type.
+       * 
+ * + * LANGUAGE_SHIFT = 2; + */ + LANGUAGE_SHIFT(2), + /** + * + * + *
+       * Speaker shift issue type.
+       * 
+ * + * SPEAKER_SHIFT = 3; + */ + SPEAKER_SHIFT(3), + /** + * + * + *
+       * Audio mismatch issue type.
+       * 
+ * + * AUDIO_MISMATCH = 4; + */ + AUDIO_MISMATCH(4), + /** + * + * + *
+       * Missing tool call issue type.
+       * 
+ * + * MISSING_TOOL_CALL = 5; + */ + MISSING_TOOL_CALL(5), + /** + * + * + *
+       * Custom issue type.
+       * 
+ * + * CUSTOM = 6; + */ + CUSTOM(6), + /** + * + * + *
+       * Choppy audio issue type.
+       * 
+ * + * CHOPPY_AUDIO = 7; + */ + CHOPPY_AUDIO(7), + /** + * + * + *
+       * Agent profanity issue type.
+       * 
+ * + * PROFANITY = 8; + */ + PROFANITY(8), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Type"); + } + + /** + * + * + *
+       * Type is unspecified.
+       * 
+ * + * TYPE_UNSPECIFIED = 0; + */ + public static final int TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+       * Invalid text issue type.
+       * 
+ * + * INVALID_TEXT = 1; + */ + public static final int INVALID_TEXT_VALUE = 1; + + /** + * + * + *
+       * Language shift issue type.
+       * 
+ * + * LANGUAGE_SHIFT = 2; + */ + public static final int LANGUAGE_SHIFT_VALUE = 2; + + /** + * + * + *
+       * Speaker shift issue type.
+       * 
+ * + * SPEAKER_SHIFT = 3; + */ + public static final int SPEAKER_SHIFT_VALUE = 3; + + /** + * + * + *
+       * Audio mismatch issue type.
+       * 
+ * + * AUDIO_MISMATCH = 4; + */ + public static final int AUDIO_MISMATCH_VALUE = 4; + + /** + * + * + *
+       * Missing tool call issue type.
+       * 
+ * + * MISSING_TOOL_CALL = 5; + */ + public static final int MISSING_TOOL_CALL_VALUE = 5; + + /** + * + * + *
+       * Custom issue type.
+       * 
+ * + * CUSTOM = 6; + */ + public static final int CUSTOM_VALUE = 6; + + /** + * + * + *
+       * Choppy audio issue type.
+       * 
+ * + * CHOPPY_AUDIO = 7; + */ + public static final int CHOPPY_AUDIO_VALUE = 7; + + /** + * + * + *
+       * Agent profanity issue type.
+       * 
+ * + * PROFANITY = 8; + */ + public static final int PROFANITY_VALUE = 8; + + 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 INVALID_TEXT; + case 2: + return LANGUAGE_SHIFT; + case 3: + return SPEAKER_SHIFT; + case 4: + return AUDIO_MISMATCH; + case 5: + return MISSING_TOOL_CALL; + case 6: + return CUSTOM; + case 7: + return CHOPPY_AUDIO; + case 8: + return PROFANITY; + 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.v1beta.Guardrail.Supervisor.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.v1beta.Guardrail.Supervisor.Type) + } + + /** + * + * + *
+     * Detection mode of the supervisor.
+     * 
+ * + * Protobuf enum {@code google.cloud.ces.v1beta.Guardrail.Supervisor.DetectionMode} + */ + public enum DetectionMode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Detection mode is unspecified. Default to NON_BLOCKING.
+       * 
+ * + * DETECTION_MODE_UNSPECIFIED = 0; + */ + DETECTION_MODE_UNSPECIFIED(0), + /** + * + * + *
+       * Non blocking detection mode.
+       * Response is not blocked when the supervisor detection is ongoing.
+       * 
+ * + * NON_BLOCKING = 1; + */ + NON_BLOCKING(1), + /** + * + * + *
+       * Blocking detection mode.
+       * Response is blocked when the supervisor detection is ongoing.
+       * 
+ * + * BLOCKING = 2; + */ + BLOCKING(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DetectionMode"); + } + + /** + * + * + *
+       * Detection mode is unspecified. Default to NON_BLOCKING.
+       * 
+ * + * DETECTION_MODE_UNSPECIFIED = 0; + */ + public static final int DETECTION_MODE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+       * Non blocking detection mode.
+       * Response is not blocked when the supervisor detection is ongoing.
+       * 
+ * + * NON_BLOCKING = 1; + */ + public static final int NON_BLOCKING_VALUE = 1; + + /** + * + * + *
+       * Blocking detection mode.
+       * Response is blocked when the supervisor detection is ongoing.
+       * 
+ * + * BLOCKING = 2; + */ + public static final int BLOCKING_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 DetectionMode 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 DetectionMode forNumber(int value) { + switch (value) { + case 0: + return DETECTION_MODE_UNSPECIFIED; + case 1: + return NON_BLOCKING; + case 2: + return BLOCKING; + 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 DetectionMode findValueByNumber(int number) { + return DetectionMode.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.Guardrail.Supervisor.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final DetectionMode[] VALUES = values(); + + public static DetectionMode 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 DetectionMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1beta.Guardrail.Supervisor.DetectionMode) + } + + public static final int TYPE_FIELD_NUMBER = 1; + private int type_ = 0; + + /** + * + * + *
+     * Optional. The type of the supervisor.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Guardrail.Supervisor.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 type of the supervisor.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Guardrail.Supervisor.Type type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.Guardrail.Supervisor.Type getType() { + com.google.cloud.ces.v1beta.Guardrail.Supervisor.Type result = + com.google.cloud.ces.v1beta.Guardrail.Supervisor.Type.forNumber(type_); + return result == null + ? com.google.cloud.ces.v1beta.Guardrail.Supervisor.Type.UNRECOGNIZED + : result; + } + + public static final int DETECTION_MODE_FIELD_NUMBER = 2; + private int detectionMode_ = 0; + + /** + * + * + *
+     * Optional. The detection mode of the supervisor.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Guardrail.Supervisor.DetectionMode detection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for detectionMode. + */ + @java.lang.Override + public int getDetectionModeValue() { + return detectionMode_; + } + + /** + * + * + *
+     * Optional. The detection mode of the supervisor.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Guardrail.Supervisor.DetectionMode detection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The detectionMode. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.Guardrail.Supervisor.DetectionMode getDetectionMode() { + com.google.cloud.ces.v1beta.Guardrail.Supervisor.DetectionMode result = + com.google.cloud.ces.v1beta.Guardrail.Supervisor.DetectionMode.forNumber(detectionMode_); + return result == null + ? com.google.cloud.ces.v1beta.Guardrail.Supervisor.DetectionMode.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 (type_ + != com.google.cloud.ces.v1beta.Guardrail.Supervisor.Type.TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(1, type_); + } + if (detectionMode_ + != com.google.cloud.ces.v1beta.Guardrail.Supervisor.DetectionMode + .DETECTION_MODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, detectionMode_); + } + 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.v1beta.Guardrail.Supervisor.Type.TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); + } + if (detectionMode_ + != com.google.cloud.ces.v1beta.Guardrail.Supervisor.DetectionMode + .DETECTION_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, detectionMode_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.Guardrail.Supervisor)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.Guardrail.Supervisor other = + (com.google.cloud.ces.v1beta.Guardrail.Supervisor) obj; + + if (type_ != other.type_) return false; + if (detectionMode_ != other.detectionMode_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + 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) + DETECTION_MODE_FIELD_NUMBER; + hash = (53 * hash) + detectionMode_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.Guardrail.Supervisor parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.Guardrail.Supervisor parseFrom( + 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.Guardrail.Supervisor parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.Guardrail.Supervisor parseFrom( + com.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.Guardrail.Supervisor parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.Guardrail.Supervisor 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.Guardrail.Supervisor parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.Guardrail.Supervisor parseFrom( + java.io.InputStream 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.Guardrail.Supervisor parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.Guardrail.Supervisor parseDelimitedFrom( + java.io.InputStream 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.Guardrail.Supervisor 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.Guardrail.Supervisor parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, 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.Guardrail.Supervisor prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Guardrail that runs supervisor intervention.
+     * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.Guardrail.Supervisor} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.Guardrail.Supervisor) + com.google.cloud.ces.v1beta.Guardrail.SupervisorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.GuardrailProto + .internal_static_google_cloud_ces_v1beta_Guardrail_Supervisor_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.GuardrailProto + .internal_static_google_cloud_ces_v1beta_Guardrail_Supervisor_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.Guardrail.Supervisor.class, + com.google.cloud.ces.v1beta.Guardrail.Supervisor.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.Guardrail.Supervisor.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; + detectionMode_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.GuardrailProto + .internal_static_google_cloud_ces_v1beta_Guardrail_Supervisor_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.Guardrail.Supervisor getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.Guardrail.Supervisor.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.Guardrail.Supervisor build() { + com.google.cloud.ces.v1beta.Guardrail.Supervisor result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.Guardrail.Supervisor buildPartial() { + com.google.cloud.ces.v1beta.Guardrail.Supervisor result = + new com.google.cloud.ces.v1beta.Guardrail.Supervisor(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1beta.Guardrail.Supervisor result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.detectionMode_ = detectionMode_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.Guardrail.Supervisor) { + return mergeFrom((com.google.cloud.ces.v1beta.Guardrail.Supervisor) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.Guardrail.Supervisor other) { + if (other == com.google.cloud.ces.v1beta.Guardrail.Supervisor.getDefaultInstance()) + return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (other.detectionMode_ != 0) { + setDetectionModeValue(other.getDetectionModeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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 16: + { + detectionMode_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int type_ = 0; + + /** + * + * + *
+       * Optional. The type of the supervisor.
+       * 
+ * + * + * .google.cloud.ces.v1beta.Guardrail.Supervisor.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 type of the supervisor.
+       * 
+ * + * + * .google.cloud.ces.v1beta.Guardrail.Supervisor.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 type of the supervisor.
+       * 
+ * + * + * .google.cloud.ces.v1beta.Guardrail.Supervisor.Type type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.Guardrail.Supervisor.Type getType() { + com.google.cloud.ces.v1beta.Guardrail.Supervisor.Type result = + com.google.cloud.ces.v1beta.Guardrail.Supervisor.Type.forNumber(type_); + return result == null + ? com.google.cloud.ces.v1beta.Guardrail.Supervisor.Type.UNRECOGNIZED + : result; + } + + /** + * + * + *
+       * Optional. The type of the supervisor.
+       * 
+ * + * + * .google.cloud.ces.v1beta.Guardrail.Supervisor.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.v1beta.Guardrail.Supervisor.Type value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + type_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The type of the supervisor.
+       * 
+ * + * + * .google.cloud.ces.v1beta.Guardrail.Supervisor.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 int detectionMode_ = 0; + + /** + * + * + *
+       * Optional. The detection mode of the supervisor.
+       * 
+ * + * + * .google.cloud.ces.v1beta.Guardrail.Supervisor.DetectionMode detection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for detectionMode. + */ + @java.lang.Override + public int getDetectionModeValue() { + return detectionMode_; + } + + /** + * + * + *
+       * Optional. The detection mode of the supervisor.
+       * 
+ * + * + * .google.cloud.ces.v1beta.Guardrail.Supervisor.DetectionMode detection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for detectionMode to set. + * @return This builder for chaining. + */ + public Builder setDetectionModeValue(int value) { + detectionMode_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The detection mode of the supervisor.
+       * 
+ * + * + * .google.cloud.ces.v1beta.Guardrail.Supervisor.DetectionMode detection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The detectionMode. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.Guardrail.Supervisor.DetectionMode getDetectionMode() { + com.google.cloud.ces.v1beta.Guardrail.Supervisor.DetectionMode result = + com.google.cloud.ces.v1beta.Guardrail.Supervisor.DetectionMode.forNumber( + detectionMode_); + return result == null + ? com.google.cloud.ces.v1beta.Guardrail.Supervisor.DetectionMode.UNRECOGNIZED + : result; + } + + /** + * + * + *
+       * Optional. The detection mode of the supervisor.
+       * 
+ * + * + * .google.cloud.ces.v1beta.Guardrail.Supervisor.DetectionMode detection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The detectionMode to set. + * @return This builder for chaining. + */ + public Builder setDetectionMode( + com.google.cloud.ces.v1beta.Guardrail.Supervisor.DetectionMode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + detectionMode_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The detection mode of the supervisor.
+       * 
+ * + * + * .google.cloud.ces.v1beta.Guardrail.Supervisor.DetectionMode detection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearDetectionMode() { + bitField0_ = (bitField0_ & ~0x00000002); + detectionMode_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.Guardrail.Supervisor) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.Guardrail.Supervisor) + private static final com.google.cloud.ces.v1beta.Guardrail.Supervisor DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.Guardrail.Supervisor(); + } + + public static com.google.cloud.ces.v1beta.Guardrail.Supervisor getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Supervisor parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.Guardrail.Supervisor getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + private int guardrailTypeCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object guardrailType_; + + public enum GuardrailTypeCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + CONTENT_FILTER(8), + LLM_PROMPT_SECURITY(9), + LLM_POLICY(10), + MODEL_SAFETY(13), + CODE_CALLBACK(14), + SUPERVISOR(16), + GUARDRAILTYPE_NOT_SET(0); + private final int value; + + private GuardrailTypeCase(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 GuardrailTypeCase valueOf(int value) { + return forNumber(value); + } + + public static GuardrailTypeCase forNumber(int value) { + switch (value) { + case 8: + return CONTENT_FILTER; + case 9: + return LLM_PROMPT_SECURITY; + case 10: + return LLM_POLICY; + case 13: + return MODEL_SAFETY; + case 14: + return CODE_CALLBACK; + case 16: + return SUPERVISOR; + case 0: + return GUARDRAILTYPE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public GuardrailTypeCase getGuardrailTypeCase() { + return GuardrailTypeCase.forNumber(guardrailTypeCase_); + } + + public static final int CONTENT_FILTER_FIELD_NUMBER = 8; /** * @@ -10876,6 +12715,66 @@ public com.google.cloud.ces.v1beta.Guardrail.CodeCallbackOrBuilder getCodeCallba return com.google.cloud.ces.v1beta.Guardrail.CodeCallback.getDefaultInstance(); } + public static final int SUPERVISOR_FIELD_NUMBER = 16; + + /** + * + * + *
+   * Optional. Guardrail that runs supervisor intervention.
+   * 
+ * + * + * .google.cloud.ces.v1beta.Guardrail.Supervisor supervisor = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the supervisor field is set. + */ + @java.lang.Override + public boolean hasSupervisor() { + return guardrailTypeCase_ == 16; + } + + /** + * + * + *
+   * Optional. Guardrail that runs supervisor intervention.
+   * 
+ * + * + * .google.cloud.ces.v1beta.Guardrail.Supervisor supervisor = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The supervisor. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.Guardrail.Supervisor getSupervisor() { + if (guardrailTypeCase_ == 16) { + return (com.google.cloud.ces.v1beta.Guardrail.Supervisor) guardrailType_; + } + return com.google.cloud.ces.v1beta.Guardrail.Supervisor.getDefaultInstance(); + } + + /** + * + * + *
+   * Optional. Guardrail that runs supervisor intervention.
+   * 
+ * + * + * .google.cloud.ces.v1beta.Guardrail.Supervisor supervisor = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.Guardrail.SupervisorOrBuilder getSupervisorOrBuilder() { + if (guardrailTypeCase_ == 16) { + return (com.google.cloud.ces.v1beta.Guardrail.Supervisor) guardrailType_; + } + return com.google.cloud.ces.v1beta.Guardrail.Supervisor.getDefaultInstance(); + } + public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -11332,6 +13231,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (guardrailTypeCase_ == 14) { output.writeMessage(14, (com.google.cloud.ces.v1beta.Guardrail.CodeCallback) guardrailType_); } + if (guardrailTypeCase_ == 16) { + output.writeMessage(16, (com.google.cloud.ces.v1beta.Guardrail.Supervisor) guardrailType_); + } getUnknownFields().writeTo(output); } @@ -11390,6 +13292,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 14, (com.google.cloud.ces.v1beta.Guardrail.CodeCallback) guardrailType_); } + if (guardrailTypeCase_ == 16) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 16, (com.google.cloud.ces.v1beta.Guardrail.Supervisor) guardrailType_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -11439,6 +13346,9 @@ public boolean equals(final java.lang.Object obj) { case 14: if (!getCodeCallback().equals(other.getCodeCallback())) return false; break; + case 16: + if (!getSupervisor().equals(other.getSupervisor())) return false; + break; case 0: default: } @@ -11496,6 +13406,10 @@ public int hashCode() { hash = (37 * hash) + CODE_CALLBACK_FIELD_NUMBER; hash = (53 * hash) + getCodeCallback().hashCode(); break; + case 16: + hash = (37 * hash) + SUPERVISOR_FIELD_NUMBER; + hash = (53 * hash) + getSupervisor().hashCode(); + break; case 0: default: } @@ -11665,6 +13579,9 @@ public Builder clear() { if (codeCallbackBuilder_ != null) { codeCallbackBuilder_.clear(); } + if (supervisorBuilder_ != null) { + supervisorBuilder_.clear(); + } name_ = ""; displayName_ = ""; description_ = ""; @@ -11724,32 +13641,32 @@ public com.google.cloud.ces.v1beta.Guardrail buildPartial() { private void buildPartial0(com.google.cloud.ces.v1beta.Guardrail result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.name_ = name_; } - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { result.displayName_ = displayName_; } - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { result.description_ = description_; } - if (((from_bitField0_ & 0x00000100) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { result.enabled_ = enabled_; } int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000200) != 0)) { + if (((from_bitField0_ & 0x00000400) != 0)) { result.action_ = actionBuilder_ == null ? action_ : actionBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000400) != 0)) { + if (((from_bitField0_ & 0x00000800) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00000800) != 0)) { + if (((from_bitField0_ & 0x00001000) != 0)) { result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (((from_bitField0_ & 0x00001000) != 0)) { + if (((from_bitField0_ & 0x00002000) != 0)) { result.etag_ = etag_; } result.bitField0_ |= to_bitField0_; @@ -11773,6 +13690,9 @@ private void buildPartialOneofs(com.google.cloud.ces.v1beta.Guardrail result) { if (guardrailTypeCase_ == 14 && codeCallbackBuilder_ != null) { result.guardrailType_ = codeCallbackBuilder_.build(); } + if (guardrailTypeCase_ == 16 && supervisorBuilder_ != null) { + result.guardrailType_ = supervisorBuilder_.build(); + } } @java.lang.Override @@ -11789,17 +13709,17 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.Guardrail other) { if (other == com.google.cloud.ces.v1beta.Guardrail.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); } if (other.getEnabled() != false) { @@ -11816,7 +13736,7 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.Guardrail other) { } if (!other.getEtag().isEmpty()) { etag_ = other.etag_; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); } switch (other.getGuardrailTypeCase()) { @@ -11845,6 +13765,11 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.Guardrail other) { mergeCodeCallback(other.getCodeCallback()); break; } + case SUPERVISOR: + { + mergeSupervisor(other.getSupervisor()); + break; + } case GUARDRAILTYPE_NOT_SET: { break; @@ -11879,45 +13804,45 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case 18 case 26: { description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 26 case 32: { enabled_ = input.readBool(); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; break; } // case 32 case 42: { input.readMessage(internalGetActionFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; break; } // case 42 case 50: { input.readMessage( internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; break; } // case 50 case 58: { input.readMessage( internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; break; } // case 58 case 66: @@ -11944,7 +13869,7 @@ public Builder mergeFrom( case 90: { etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; break; } // case 90 case 106: @@ -11961,6 +13886,13 @@ public Builder mergeFrom( guardrailTypeCase_ = 14; break; } // case 114 + case 130: + { + input.readMessage( + internalGetSupervisorFieldBuilder().getBuilder(), extensionRegistry); + guardrailTypeCase_ = 16; + break; + } // case 130 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -13230,6 +15162,243 @@ public com.google.cloud.ces.v1beta.Guardrail.CodeCallbackOrBuilder getCodeCallba return codeCallbackBuilder_; } + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.Guardrail.Supervisor, + com.google.cloud.ces.v1beta.Guardrail.Supervisor.Builder, + com.google.cloud.ces.v1beta.Guardrail.SupervisorOrBuilder> + supervisorBuilder_; + + /** + * + * + *
+     * Optional. Guardrail that runs supervisor intervention.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Guardrail.Supervisor supervisor = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the supervisor field is set. + */ + @java.lang.Override + public boolean hasSupervisor() { + return guardrailTypeCase_ == 16; + } + + /** + * + * + *
+     * Optional. Guardrail that runs supervisor intervention.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Guardrail.Supervisor supervisor = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The supervisor. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.Guardrail.Supervisor getSupervisor() { + if (supervisorBuilder_ == null) { + if (guardrailTypeCase_ == 16) { + return (com.google.cloud.ces.v1beta.Guardrail.Supervisor) guardrailType_; + } + return com.google.cloud.ces.v1beta.Guardrail.Supervisor.getDefaultInstance(); + } else { + if (guardrailTypeCase_ == 16) { + return supervisorBuilder_.getMessage(); + } + return com.google.cloud.ces.v1beta.Guardrail.Supervisor.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. Guardrail that runs supervisor intervention.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Guardrail.Supervisor supervisor = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSupervisor(com.google.cloud.ces.v1beta.Guardrail.Supervisor value) { + if (supervisorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + guardrailType_ = value; + onChanged(); + } else { + supervisorBuilder_.setMessage(value); + } + guardrailTypeCase_ = 16; + return this; + } + + /** + * + * + *
+     * Optional. Guardrail that runs supervisor intervention.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Guardrail.Supervisor supervisor = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSupervisor( + com.google.cloud.ces.v1beta.Guardrail.Supervisor.Builder builderForValue) { + if (supervisorBuilder_ == null) { + guardrailType_ = builderForValue.build(); + onChanged(); + } else { + supervisorBuilder_.setMessage(builderForValue.build()); + } + guardrailTypeCase_ = 16; + return this; + } + + /** + * + * + *
+     * Optional. Guardrail that runs supervisor intervention.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Guardrail.Supervisor supervisor = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSupervisor(com.google.cloud.ces.v1beta.Guardrail.Supervisor value) { + if (supervisorBuilder_ == null) { + if (guardrailTypeCase_ == 16 + && guardrailType_ + != com.google.cloud.ces.v1beta.Guardrail.Supervisor.getDefaultInstance()) { + guardrailType_ = + com.google.cloud.ces.v1beta.Guardrail.Supervisor.newBuilder( + (com.google.cloud.ces.v1beta.Guardrail.Supervisor) guardrailType_) + .mergeFrom(value) + .buildPartial(); + } else { + guardrailType_ = value; + } + onChanged(); + } else { + if (guardrailTypeCase_ == 16) { + supervisorBuilder_.mergeFrom(value); + } else { + supervisorBuilder_.setMessage(value); + } + } + guardrailTypeCase_ = 16; + return this; + } + + /** + * + * + *
+     * Optional. Guardrail that runs supervisor intervention.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Guardrail.Supervisor supervisor = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSupervisor() { + if (supervisorBuilder_ == null) { + if (guardrailTypeCase_ == 16) { + guardrailTypeCase_ = 0; + guardrailType_ = null; + onChanged(); + } + } else { + if (guardrailTypeCase_ == 16) { + guardrailTypeCase_ = 0; + guardrailType_ = null; + } + supervisorBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Guardrail that runs supervisor intervention.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Guardrail.Supervisor supervisor = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.Guardrail.Supervisor.Builder getSupervisorBuilder() { + return internalGetSupervisorFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Guardrail that runs supervisor intervention.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Guardrail.Supervisor supervisor = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.Guardrail.SupervisorOrBuilder getSupervisorOrBuilder() { + if ((guardrailTypeCase_ == 16) && (supervisorBuilder_ != null)) { + return supervisorBuilder_.getMessageOrBuilder(); + } else { + if (guardrailTypeCase_ == 16) { + return (com.google.cloud.ces.v1beta.Guardrail.Supervisor) guardrailType_; + } + return com.google.cloud.ces.v1beta.Guardrail.Supervisor.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. Guardrail that runs supervisor intervention.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Guardrail.Supervisor supervisor = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.Guardrail.Supervisor, + com.google.cloud.ces.v1beta.Guardrail.Supervisor.Builder, + com.google.cloud.ces.v1beta.Guardrail.SupervisorOrBuilder> + internalGetSupervisorFieldBuilder() { + if (supervisorBuilder_ == null) { + if (!(guardrailTypeCase_ == 16)) { + guardrailType_ = com.google.cloud.ces.v1beta.Guardrail.Supervisor.getDefaultInstance(); + } + supervisorBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.Guardrail.Supervisor, + com.google.cloud.ces.v1beta.Guardrail.Supervisor.Builder, + com.google.cloud.ces.v1beta.Guardrail.SupervisorOrBuilder>( + (com.google.cloud.ces.v1beta.Guardrail.Supervisor) guardrailType_, + getParentForChildren(), + isClean()); + guardrailType_ = null; + } + guardrailTypeCase_ = 16; + onChanged(); + return supervisorBuilder_; + } + private java.lang.Object name_ = ""; /** @@ -13301,7 +15470,7 @@ public Builder setName(java.lang.String value) { throw new NullPointerException(); } name_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -13321,7 +15490,7 @@ public Builder setName(java.lang.String value) { */ public Builder clearName() { name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -13346,7 +15515,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); name_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -13416,7 +15585,7 @@ public Builder setDisplayName(java.lang.String value) { throw new NullPointerException(); } displayName_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -13434,7 +15603,7 @@ public Builder setDisplayName(java.lang.String value) { */ public Builder clearDisplayName() { displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } @@ -13457,7 +15626,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); displayName_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -13527,7 +15696,7 @@ public Builder setDescription(java.lang.String value) { throw new NullPointerException(); } description_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -13545,7 +15714,7 @@ public Builder setDescription(java.lang.String value) { */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } @@ -13568,7 +15737,7 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); description_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -13606,7 +15775,7 @@ public boolean getEnabled() { public Builder setEnabled(boolean value) { enabled_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -13623,7 +15792,7 @@ public Builder setEnabled(boolean value) { * @return This builder for chaining. */ public Builder clearEnabled() { - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); enabled_ = false; onChanged(); return this; @@ -13650,7 +15819,7 @@ public Builder clearEnabled() { * @return Whether the action field is set. */ public boolean hasAction() { - return ((bitField0_ & 0x00000200) != 0); + return ((bitField0_ & 0x00000400) != 0); } /** @@ -13696,7 +15865,7 @@ public Builder setAction(com.google.cloud.ces.v1beta.TriggerAction value) { } else { actionBuilder_.setMessage(value); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -13718,7 +15887,7 @@ public Builder setAction(com.google.cloud.ces.v1beta.TriggerAction.Builder build } else { actionBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -13736,7 +15905,7 @@ public Builder setAction(com.google.cloud.ces.v1beta.TriggerAction.Builder build */ public Builder mergeAction(com.google.cloud.ces.v1beta.TriggerAction value) { if (actionBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) + if (((bitField0_ & 0x00000400) != 0) && action_ != null && action_ != com.google.cloud.ces.v1beta.TriggerAction.getDefaultInstance()) { getActionBuilder().mergeFrom(value); @@ -13747,7 +15916,7 @@ public Builder mergeAction(com.google.cloud.ces.v1beta.TriggerAction value) { actionBuilder_.mergeFrom(value); } if (action_ != null) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); } return this; @@ -13765,7 +15934,7 @@ public Builder mergeAction(com.google.cloud.ces.v1beta.TriggerAction value) { * */ public Builder clearAction() { - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); action_ = null; if (actionBuilder_ != null) { actionBuilder_.dispose(); @@ -13787,7 +15956,7 @@ public Builder clearAction() { * */ public com.google.cloud.ces.v1beta.TriggerAction.Builder getActionBuilder() { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return internalGetActionFieldBuilder().getBuilder(); } @@ -13862,7 +16031,7 @@ public com.google.cloud.ces.v1beta.TriggerActionOrBuilder getActionOrBuilder() { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return ((bitField0_ & 0x00000400) != 0); + return ((bitField0_ & 0x00000800) != 0); } /** @@ -13908,7 +16077,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -13930,7 +16099,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { createTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -13948,7 +16117,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) + if (((bitField0_ & 0x00000800) != 0) && createTime_ != null && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); @@ -13959,7 +16128,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { createTimeBuilder_.mergeFrom(value); } if (createTime_ != null) { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); } return this; @@ -13977,7 +16146,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); @@ -13999,7 +16168,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return internalGetCreateTimeFieldBuilder().getBuilder(); } @@ -14074,7 +16243,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return ((bitField0_ & 0x00000800) != 0); + return ((bitField0_ & 0x00001000) != 0); } /** @@ -14120,7 +16289,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { } else { updateTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -14142,7 +16311,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -14160,7 +16329,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0) + if (((bitField0_ & 0x00001000) != 0) && updateTime_ != null && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); @@ -14171,7 +16340,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { updateTimeBuilder_.mergeFrom(value); } if (updateTime_ != null) { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); } return this; @@ -14189,7 +16358,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); updateTime_ = null; if (updateTimeBuilder_ != null) { updateTimeBuilder_.dispose(); @@ -14211,7 +16380,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return internalGetUpdateTimeFieldBuilder().getBuilder(); } @@ -14336,7 +16505,7 @@ public Builder setEtag(java.lang.String value) { throw new NullPointerException(); } etag_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -14356,7 +16525,7 @@ public Builder setEtag(java.lang.String value) { */ public Builder clearEtag() { etag_ = getDefaultInstance().getEtag(); - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); onChanged(); return this; } @@ -14381,7 +16550,7 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); etag_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GuardrailOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GuardrailOrBuilder.java index fbc33c32237b..209ba64366a8 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GuardrailOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GuardrailOrBuilder.java @@ -256,6 +256,49 @@ public interface GuardrailOrBuilder */ com.google.cloud.ces.v1beta.Guardrail.CodeCallbackOrBuilder getCodeCallbackOrBuilder(); + /** + * + * + *
+   * Optional. Guardrail that runs supervisor intervention.
+   * 
+ * + * + * .google.cloud.ces.v1beta.Guardrail.Supervisor supervisor = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the supervisor field is set. + */ + boolean hasSupervisor(); + + /** + * + * + *
+   * Optional. Guardrail that runs supervisor intervention.
+   * 
+ * + * + * .google.cloud.ces.v1beta.Guardrail.Supervisor supervisor = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The supervisor. + */ + com.google.cloud.ces.v1beta.Guardrail.Supervisor getSupervisor(); + + /** + * + * + *
+   * Optional. Guardrail that runs supervisor intervention.
+   * 
+ * + * + * .google.cloud.ces.v1beta.Guardrail.Supervisor supervisor = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1beta.Guardrail.SupervisorOrBuilder getSupervisorOrBuilder(); + /** * * diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GuardrailProto.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GuardrailProto.java index 2df8930b1342..d37a97d591d5 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GuardrailProto.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GuardrailProto.java @@ -72,6 +72,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_ces_v1beta_Guardrail_CodeCallback_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_ces_v1beta_Guardrail_CodeCallback_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_Guardrail_Supervisor_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_Guardrail_Supervisor_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -86,7 +90,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "o\022\027google.cloud.ces.v1beta\032\037google/api/f" + "ield_behavior.proto\032\031google/api/resource" + ".proto\032$google/cloud/ces/v1beta/common.p" - + "roto\032\037google/protobuf/timestamp.proto\"\344\026\n" + + "roto\032\037google/protobuf/timestamp.proto\"\330\033\n" + "\tGuardrail\022P\n" + "\016content_filter\030\010 \001(\01320.go" + "ogle.cloud.ces.v1beta.Guardrail.ContentFilterB\004\342A\001\001H\000\022Y\n" @@ -98,7 +102,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\013" + "2..google.cloud.ces.v1beta.Guardrail.ModelSafetyB\004\342A\001\001H\000\022N\n\r" + "code_callback\030\016 \001(\0132" - + "/.google.cloud.ces.v1beta.Guardrail.CodeCallbackB\004\342A\001\001H\000\022\022\n" + + "/.google.cloud.ces.v1beta.Guardrail.CodeCallbackB\004\342A\001\001H\000\022I\n\n" + + "supervisor\030\020 \001(\0132-.g" + + "oogle.cloud.ces.v1beta.Guardrail.SupervisorB\004\342A\001\001H\000\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\010\022\032\n" + "\014display_name\030\002 \001(\tB\004\342A\001\002\022\031\n" + "\013description\030\003 \001(\tB\004\342A\001\001\022\025\n" @@ -109,56 +115,60 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225\n" + "\013update_time\030\007" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022\014\n" - + "\004etag\030\013 \001(\t\032\372\002\n\r" + + "\004etag\030\013 \001(\t\032\272\003\n\r" + "ContentFilter\022\035\n" + "\017banned_contents\030\001 \003(\tB\004\342A\001\001\022+\n" + "\035banned_contents_in_user_input\030\002 \003(\tB\004\342A\001\001\022/\n" + "!banned_contents_in_agent_response\030\003 \003(\tB\004\342A\001\001\022T\n\n" - + "match_type\030\004 \001(\0162:.google.cloud.c" - + "es.v1beta.Guardrail.ContentFilter.MatchTypeB\004\342A\001\002\022\"\n" - + "\024disregard_diacritics\030\005 \001(\010B\004\342A\001\001\"r\n" + + "match_type\030\004 \001(\0162:.google.cloud.ces.v1" + + "beta.Guardrail.ContentFilter.MatchTypeB\004\342A\001\002\022\"\n" + + "\024disregard_diacritics\030\005 \001(\010B\004\342A\001\001\022(\n" + + "\032sensitive_words_exemptions\030\007 \003(\tB\004\342A\001\001\"\207\001\n" + "\tMatchType\022\032\n" + "\026MATCH_TYPE_UNSPECIFIED\020\000\022\027\n" + "\023SIMPLE_STRING_MATCH\020\001\022\036\n" + "\032WORD_BOUNDARY_STRING_MATCH\020\002\022\020\n" - + "\014REGEXP_MATCH\020\003\032\276\002\n" + + "\014REGEXP_MATCH\020\003\022\023\n" + + "\017SENSITIVE_WORDS\020\004\032\276\002\n" + "\021LlmPromptSecurity\022n\n" - + "\020default_settings\030\001 \001(\0132L.google.cloud.ces.v1beta.Guar" - + "drail.LlmPromptSecurity.DefaultSecuritySettingsB\004\342A\001\001H\000\022K\n\r" - + "custom_policy\030\002 \001(\0132," - + ".google.cloud.ces.v1beta.Guardrail.LlmPolicyB\004\342A\001\001H\000\022\027\n" + + "\020default_settings\030\001 \001(\0132L.google.cl" + + "oud.ces.v1beta.Guardrail.LlmPromptSecurity.DefaultSecuritySettingsB\004\342A\001\001H\000\022K\n\r" + + "custom_policy\030\002" + + " \001(\0132,.google.cloud.ces.v1beta.Guardrail.LlmPolicyB\004\342A\001\001H\000\022\027\n" + "\tfail_open\030\003 \001(\010B\004\342A\001\001\032@\n" + "\027DefaultSecuritySettings\022%\n" + "\027default_prompt_template\030\001 \001(\tB\004\342A\001\003B\021\n" + "\017security_config\032\230\003\n" + "\tLlmPolicy\022\'\n" + "\031max_conversation_messages\030\001 \001(\005B\004\342A\001\001\022D\n" - + "\016model_settings\030\002 \001(" - + "\0132&.google.cloud.ces.v1beta.ModelSettingsB\004\342A\001\001\022\024\n" + + "\016model_settings\030\002" + + " \001(\0132&.google.cloud.ces.v1beta.ModelSettingsB\004\342A\001\001\022\024\n" + "\006prompt\030\003 \001(\tB\004\342A\001\002\022T\n" - + "\014policy_scope\030\004" - + " \001(\01628.google.cloud.ces.v1beta.Guardrail.LlmPolicy.PolicyScopeB\004\342A\001\002\022\027\n" + + "\014policy_scope\030\004 \001(\01628.google." + + "cloud.ces.v1beta.Guardrail.LlmPolicy.PolicyScopeB\004\342A\001\002\022\027\n" + "\tfail_open\030\005 \001(\010B\004\342A\001\001\022#\n" + "\025allow_short_utterance\030\006 \001(\010B\004\342A\001\001\"r\n" + "\013PolicyScope\022\034\n" + "\030POLICY_SCOPE_UNSPECIFIED\020\000\022\016\n\n" + "USER_QUERY\020\001\022\022\n" + "\016AGENT_RESPONSE\020\002\022!\n" - + "\035USER_QUERY_AND_AGENT_RESPONSE\020\003\032\204\005\n" + + "\035USER_QUERY_AND_AGENT_RESPONSE\020\003\032\272\005\n" + "\013ModelSafety\022[\n" - + "\017safety_settings\030\001 \003(\0132<.google.cloud.ces.v1beta" - + ".Guardrail.ModelSafety.SafetySettingB\004\342A\001\002\032\300\001\n\r" + + "\017safety_settings\030\001 \003(\0132<.goog" + + "le.cloud.ces.v1beta.Guardrail.ModelSafety.SafetySettingB\004\342A\001\002\032\300\001\n\r" + "SafetySetting\022S\n" - + "\010category\030\001 \001(\0162;" - + ".google.cloud.ces.v1beta.Guardrail.ModelSafety.HarmCategoryB\004\342A\001\002\022Z\n" - + "\tthreshold\030\002 \001(\0162A.google.cloud.ces.v1beta.Guardrail" - + ".ModelSafety.HarmBlockThresholdB\004\342A\001\002\"\264\001\n" + + "\010category\030\001 \001(\0162;.google.cloud.ces.v1b" + + "eta.Guardrail.ModelSafety.HarmCategoryB\004\342A\001\002\022Z\n" + + "\tthreshold\030\002 \001(\0162A.google.cloud.c" + + "es.v1beta.Guardrail.ModelSafety.HarmBlockThresholdB\004\342A\001\002\"\352\001\n" + "\014HarmCategory\022\035\n" + "\031HARM_CATEGORY_UNSPECIFIED\020\000\022\035\n" + "\031HARM_CATEGORY_HATE_SPEECH\020\001\022#\n" + "\037HARM_CATEGORY_DANGEROUS_CONTENT\020\002\022\034\n" + "\030HARM_CATEGORY_HARASSMENT\020\003\022#\n" - + "\037HARM_CATEGORY_SEXUALLY_EXPLICIT\020\004\"\235\001\n" + + "\037HARM_CATEGORY_SEXUALLY_EXPLICIT\020\004\022\033\n" + + "\027HARM_CATEGORY_PROFANITY\020\005\022\027\n" + + "\023HARM_CATEGORY_TOXIC\020\006\"\235\001\n" + "\022HarmBlockThreshold\022$\n" + " HARM_BLOCK_THRESHOLD_UNSPECIFIED\020\000\022\027\n" + "\023BLOCK_LOW_AND_ABOVE\020\001\022\032\n" @@ -173,14 +183,34 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132!.google.cloud.ces.v1beta.CallbackB\004\342A\001\001\022F\n" + "\025before_model_callback\030\003" + " \001(\0132!.google.cloud.ces.v1beta.CallbackB\004\342A\001\001\022E\n" - + "\024after_model_callback\030\004 \001" - + "(\0132!.google.cloud.ces.v1beta.CallbackB\004\342A\001\001:\204\001\352A\200\001\n" - + "\034ces.googleapis.com/Guardrail" - + "\022Iprojects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}*\n" + + "\024after_model_callback\030\004" + + " \001(\0132!.google.cloud.ces.v1beta.CallbackB\004\342A\001\001\032\260\003\n" + + "\n" + + "Supervisor\022F\n" + + "\004type\030\001 \001(\01622.google.cloud" + + ".ces.v1beta.Guardrail.Supervisor.TypeB\004\342A\001\001\022Y\n" + + "\016detection_mode\030\002 \001(\0162;.google.clo" + + "ud.ces.v1beta.Guardrail.Supervisor.DetectionModeB\004\342A\001\001\"\255\001\n" + + "\004Type\022\024\n" + + "\020TYPE_UNSPECIFIED\020\000\022\020\n" + + "\014INVALID_TEXT\020\001\022\022\n" + + "\016LANGUAGE_SHIFT\020\002\022\021\n\r" + + "SPEAKER_SHIFT\020\003\022\022\n" + + "\016AUDIO_MISMATCH\020\004\022\025\n" + + "\021MISSING_TOOL_CALL\020\005\022\n\n" + + "\006CUSTOM\020\006\022\020\n" + + "\014CHOPPY_AUDIO\020\007\022\r\n" + + "\tPROFANITY\020\010\"O\n\r" + + "DetectionMode\022\036\n" + + "\032DETECTION_MODE_UNSPECIFIED\020\000\022\020\n" + + "\014NON_BLOCKING\020\001\022\014\n" + + "\010BLOCKING\020\002:\204\001\352A\200\001\n" + + "\034ces.googleapis.com/Guardrail\022Iprojects/{" + + "project}/locations/{location}/apps/{app}/guardrails/{guardrail}*\n" + "guardrails2\tguardrailB\020\n" + "\016guardrail_typeB^\n" - + "\033com.google.cloud.ces.v1betaB\016GuardrailPr" - + "otoP\001Z-cloud.google.com/go/ces/apiv1beta/cespb;cespbb\006proto3" + + "\033com.google.cloud.ces.v1betaB\016GuardrailProtoP\001Z-cloud" + + ".google.com/go/ces/apiv1beta/cespb;cespbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -202,6 +232,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "LlmPolicy", "ModelSafety", "CodeCallback", + "Supervisor", "Name", "DisplayName", "Description", @@ -223,6 +254,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BannedContentsInAgentResponse", "MatchType", "DisregardDiacritics", + "SensitiveWordsExemptions", }); internal_static_google_cloud_ces_v1beta_Guardrail_LlmPromptSecurity_descriptor = internal_static_google_cloud_ces_v1beta_Guardrail_descriptor.getNestedType(1); @@ -281,6 +313,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BeforeModelCallback", "AfterModelCallback", }); + internal_static_google_cloud_ces_v1beta_Guardrail_Supervisor_descriptor = + internal_static_google_cloud_ces_v1beta_Guardrail_descriptor.getNestedType(5); + internal_static_google_cloud_ces_v1beta_Guardrail_Supervisor_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_Guardrail_Supervisor_descriptor, + new java.lang.String[] { + "Type", "DetectionMode", + }); 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/Image.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/Image.java index 01f956fc565f..03a8fc4b065b 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/Image.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/Image.java @@ -54,6 +54,7 @@ private Image(com.google.protobuf.GeneratedMessage.Builder builder) { private Image() { mimeType_ = ""; data_ = com.google.protobuf.ByteString.EMPTY; + altText_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -151,6 +152,59 @@ public com.google.protobuf.ByteString getData() { return data_; } + public static final int ALT_TEXT_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object altText_ = ""; + + /** + * + * + *
+   * Optional. The alternative text for the image.
+   * 
+ * + * string alt_text = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The altText. + */ + @java.lang.Override + public java.lang.String getAltText() { + java.lang.Object ref = altText_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + altText_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The alternative text for the image.
+   * 
+ * + * string alt_text = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for altText. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAltTextBytes() { + java.lang.Object ref = altText_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + altText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -171,6 +225,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!data_.isEmpty()) { output.writeBytes(2, data_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(altText_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, altText_); + } getUnknownFields().writeTo(output); } @@ -186,6 +243,9 @@ public int getSerializedSize() { if (!data_.isEmpty()) { size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, data_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(altText_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, altText_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -203,6 +263,7 @@ public boolean equals(final java.lang.Object obj) { if (!getMimeType().equals(other.getMimeType())) return false; if (!getData().equals(other.getData())) return false; + if (!getAltText().equals(other.getAltText())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -218,6 +279,8 @@ public int hashCode() { hash = (53 * hash) + getMimeType().hashCode(); hash = (37 * hash) + DATA_FIELD_NUMBER; hash = (53 * hash) + getData().hashCode(); + hash = (37 * hash) + ALT_TEXT_FIELD_NUMBER; + hash = (53 * hash) + getAltText().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -359,6 +422,7 @@ public Builder clear() { bitField0_ = 0; mimeType_ = ""; data_ = com.google.protobuf.ByteString.EMPTY; + altText_ = ""; return this; } @@ -400,6 +464,9 @@ private void buildPartial0(com.google.cloud.ces.v1beta.Image result) { if (((from_bitField0_ & 0x00000002) != 0)) { result.data_ = data_; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.altText_ = altText_; + } } @java.lang.Override @@ -422,6 +489,11 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.Image other) { if (!other.getData().isEmpty()) { setData(other.getData()); } + if (!other.getAltText().isEmpty()) { + altText_ = other.altText_; + bitField0_ |= 0x00000004; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -460,6 +532,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 18 + case 34: + { + altText_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -668,6 +746,117 @@ public Builder clearData() { return this; } + private java.lang.Object altText_ = ""; + + /** + * + * + *
+     * Optional. The alternative text for the image.
+     * 
+ * + * string alt_text = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The altText. + */ + public java.lang.String getAltText() { + java.lang.Object ref = altText_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + altText_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The alternative text for the image.
+     * 
+ * + * string alt_text = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for altText. + */ + public com.google.protobuf.ByteString getAltTextBytes() { + java.lang.Object ref = altText_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + altText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The alternative text for the image.
+     * 
+ * + * string alt_text = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The altText to set. + * @return This builder for chaining. + */ + public Builder setAltText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + altText_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The alternative text for the image.
+     * 
+ * + * string alt_text = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAltText() { + altText_ = getDefaultInstance().getAltText(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The alternative text for the image.
+     * 
+ * + * string alt_text = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for altText to set. + * @return This builder for chaining. + */ + public Builder setAltTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + altText_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.Image) } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ImageOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ImageOrBuilder.java index ad2912d798dd..a2497c6edece 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ImageOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ImageOrBuilder.java @@ -72,4 +72,30 @@ public interface ImageOrBuilder * @return The data. */ com.google.protobuf.ByteString getData(); + + /** + * + * + *
+   * Optional. The alternative text for the image.
+   * 
+ * + * string alt_text = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The altText. + */ + java.lang.String getAltText(); + + /** + * + * + *
+   * Optional. The alternative text for the image.
+   * 
+ * + * string alt_text = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for altText. + */ + com.google.protobuf.ByteString getAltTextBytes(); } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ImportAppRequest.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ImportAppRequest.java index 97d3cb3dcc44..b5a0c3b93db2 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ImportAppRequest.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ImportAppRequest.java @@ -108,6 +108,21 @@ public interface ImportOptionsOrBuilder */ com.google.cloud.ces.v1beta.ImportAppRequest.ImportOptions.ConflictResolutionStrategy getConflictResolutionStrategy(); + + /** + * + * + *
+     * Optional. Flag for dry-running the import process.
+     * If set to true, the import process will only perform validations and will
+     * not make any changes to the existing app or create a new one.
+     * 
+ * + * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateOnly. + */ + boolean getValidateOnly(); } /** @@ -410,6 +425,27 @@ public int getConflictResolutionStrategyValue() { : result; } + public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; + private boolean validateOnly_ = false; + + /** + * + * + *
+     * Optional. Flag for dry-running the import process.
+     * If set to true, the import process will only perform validations and will
+     * not make any changes to the existing app or create a new one.
+     * 
+ * + * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -430,6 +466,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(1, conflictResolutionStrategy_); } + if (validateOnly_ != false) { + output.writeBool(2, validateOnly_); + } getUnknownFields().writeTo(output); } @@ -446,6 +485,9 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, conflictResolutionStrategy_); } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validateOnly_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -463,6 +505,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.ces.v1beta.ImportAppRequest.ImportOptions) obj; if (conflictResolutionStrategy_ != other.conflictResolutionStrategy_) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -476,6 +519,8 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CONFLICT_RESOLUTION_STRATEGY_FIELD_NUMBER; hash = (53 * hash) + conflictResolutionStrategy_; + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -620,6 +665,7 @@ public Builder clear() { super.clear(); bitField0_ = 0; conflictResolutionStrategy_ = 0; + validateOnly_ = false; return this; } @@ -661,6 +707,9 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000001) != 0)) { result.conflictResolutionStrategy_ = conflictResolutionStrategy_; } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.validateOnly_ = validateOnly_; + } } @java.lang.Override @@ -680,6 +729,9 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.ImportAppRequest.ImportOpti if (other.conflictResolutionStrategy_ != 0) { setConflictResolutionStrategyValue(other.getConflictResolutionStrategyValue()); } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -712,6 +764,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 8 + case 16: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -844,6 +902,68 @@ public Builder clearConflictResolutionStrategy() { return this; } + private boolean validateOnly_; + + /** + * + * + *
+       * Optional. Flag for dry-running the import process.
+       * If set to true, the import process will only perform validations and will
+       * not make any changes to the existing app or create a new one.
+       * 
+ * + * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + /** + * + * + *
+       * Optional. Flag for dry-running the import process.
+       * If set to true, the import process will only perform validations and will
+       * not make any changes to the existing app or create a new one.
+       * 
+ * + * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The validateOnly to set. + * @return This builder for chaining. + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Flag for dry-running the import process.
+       * If set to true, the import process will only perform validations and will
+       * not make any changes to the existing app or create a new one.
+       * 
+ * + * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearValidateOnly() { + bitField0_ = (bitField0_ & ~0x00000002); + validateOnly_ = false; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.ImportAppRequest.ImportOptions) } @@ -948,6 +1068,56 @@ public AppCase getAppCase() { return AppCase.forNumber(appCase_); } + private int jsonPatchCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object jsonPatch_; + + public enum JsonPatchCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + JSON_PATCH_CONTENT(9), + JSON_PATCH_GCS_URI(10), + JSONPATCH_NOT_SET(0); + private final int value; + + private JsonPatchCase(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 JsonPatchCase valueOf(int value) { + return forNumber(value); + } + + public static JsonPatchCase forNumber(int value) { + switch (value) { + case 9: + return JSON_PATCH_CONTENT; + case 10: + return JSON_PATCH_GCS_URI; + case 0: + return JSONPATCH_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public JsonPatchCase getJsonPatchCase() { + return JsonPatchCase.forNumber(jsonPatchCase_); + } + public static final int GCS_URI_FIELD_NUMBER = 4; /** @@ -1066,6 +1236,155 @@ public com.google.protobuf.ByteString getAppContent() { return com.google.protobuf.ByteString.EMPTY; } + public static final int JSON_PATCH_CONTENT_FIELD_NUMBER = 9; + + /** + * + * + *
+   * Optional. Patch content as a JSON string.
+   * 
+ * + * string json_patch_content = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the jsonPatchContent field is set. + */ + public boolean hasJsonPatchContent() { + return jsonPatchCase_ == 9; + } + + /** + * + * + *
+   * Optional. Patch content as a JSON string.
+   * 
+ * + * string json_patch_content = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The jsonPatchContent. + */ + public java.lang.String getJsonPatchContent() { + java.lang.Object ref = ""; + if (jsonPatchCase_ == 9) { + ref = jsonPatch_; + } + if (ref instanceof java.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 (jsonPatchCase_ == 9) { + jsonPatch_ = s; + } + return s; + } + } + + /** + * + * + *
+   * Optional. Patch content as a JSON string.
+   * 
+ * + * string json_patch_content = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for jsonPatchContent. + */ + public com.google.protobuf.ByteString getJsonPatchContentBytes() { + java.lang.Object ref = ""; + if (jsonPatchCase_ == 9) { + ref = jsonPatch_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (jsonPatchCase_ == 9) { + jsonPatch_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int JSON_PATCH_GCS_URI_FIELD_NUMBER = 10; + + /** + * + * + *
+   * Optional. A Cloud Storage URI pointing to a JSON file containing the
+   * patches.
+   * 
+ * + * string json_patch_gcs_uri = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the jsonPatchGcsUri field is set. + */ + public boolean hasJsonPatchGcsUri() { + return jsonPatchCase_ == 10; + } + + /** + * + * + *
+   * Optional. A Cloud Storage URI pointing to a JSON file containing the
+   * patches.
+   * 
+ * + * string json_patch_gcs_uri = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The jsonPatchGcsUri. + */ + public java.lang.String getJsonPatchGcsUri() { + java.lang.Object ref = ""; + if (jsonPatchCase_ == 10) { + ref = jsonPatch_; + } + if (ref instanceof java.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 (jsonPatchCase_ == 10) { + jsonPatch_ = s; + } + return s; + } + } + + /** + * + * + *
+   * Optional. A Cloud Storage URI pointing to a JSON file containing the
+   * patches.
+   * 
+ * + * string json_patch_gcs_uri = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for jsonPatchGcsUri. + */ + public com.google.protobuf.ByteString getJsonPatchGcsUriBytes() { + java.lang.Object ref = ""; + if (jsonPatchCase_ == 10) { + ref = jsonPatch_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (jsonPatchCase_ == 10) { + jsonPatch_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int PARENT_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -1368,6 +1687,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (ignoreAppLock_ != false) { output.writeBool(7, ignoreAppLock_); } + if (jsonPatchCase_ == 9) { + com.google.protobuf.GeneratedMessage.writeString(output, 9, jsonPatch_); + } + if (jsonPatchCase_ == 10) { + com.google.protobuf.GeneratedMessage.writeString(output, 10, jsonPatch_); + } getUnknownFields().writeTo(output); } @@ -1400,6 +1725,12 @@ public int getSerializedSize() { if (ignoreAppLock_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, ignoreAppLock_); } + if (jsonPatchCase_ == 9) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(9, jsonPatch_); + } + if (jsonPatchCase_ == 10) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(10, jsonPatch_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1435,6 +1766,17 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } + if (!getJsonPatchCase().equals(other.getJsonPatchCase())) return false; + switch (jsonPatchCase_) { + case 9: + if (!getJsonPatchContent().equals(other.getJsonPatchContent())) return false; + break; + case 10: + if (!getJsonPatchGcsUri().equals(other.getJsonPatchGcsUri())) return false; + break; + case 0: + default: + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1470,6 +1812,18 @@ public int hashCode() { case 0: default: } + switch (jsonPatchCase_) { + case 9: + hash = (37 * hash) + JSON_PATCH_CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getJsonPatchContent().hashCode(); + break; + case 10: + hash = (37 * hash) + JSON_PATCH_GCS_URI_FIELD_NUMBER; + hash = (53 * hash) + getJsonPatchGcsUri().hashCode(); + break; + case 0: + default: + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1631,6 +1985,8 @@ public Builder clear() { ignoreAppLock_ = false; appCase_ = 0; app_ = null; + jsonPatchCase_ = 0; + jsonPatch_ = null; return this; } @@ -1668,22 +2024,22 @@ public com.google.cloud.ces.v1beta.ImportAppRequest buildPartial() { private void buildPartial0(com.google.cloud.ces.v1beta.ImportAppRequest result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000004) != 0)) { + if (((from_bitField0_ & 0x00000010) != 0)) { result.parent_ = parent_; } - if (((from_bitField0_ & 0x00000008) != 0)) { + if (((from_bitField0_ & 0x00000020) != 0)) { result.displayName_ = displayName_; } - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.appId_ = appId_; } int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { result.importOptions_ = importOptionsBuilder_ == null ? importOptions_ : importOptionsBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { result.ignoreAppLock_ = ignoreAppLock_; } result.bitField0_ |= to_bitField0_; @@ -1692,6 +2048,8 @@ private void buildPartial0(com.google.cloud.ces.v1beta.ImportAppRequest result) private void buildPartialOneofs(com.google.cloud.ces.v1beta.ImportAppRequest result) { result.appCase_ = appCase_; result.app_ = this.app_; + result.jsonPatchCase_ = jsonPatchCase_; + result.jsonPatch_ = this.jsonPatch_; } @java.lang.Override @@ -1708,17 +2066,17 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.ImportAppRequest other) { if (other == com.google.cloud.ces.v1beta.ImportAppRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; onChanged(); } if (!other.getAppId().isEmpty()) { appId_ = other.appId_; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000040; onChanged(); } if (other.hasImportOptions()) { @@ -1745,6 +2103,26 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.ImportAppRequest other) { break; } } + switch (other.getJsonPatchCase()) { + case JSON_PATCH_CONTENT: + { + jsonPatchCase_ = 9; + jsonPatch_ = other.jsonPatch_; + onChanged(); + break; + } + case JSON_PATCH_GCS_URI: + { + jsonPatchCase_ = 10; + jsonPatch_ = other.jsonPatch_; + onChanged(); + break; + } + case JSONPATCH_NOT_SET: + { + break; + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1774,19 +2152,19 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; break; } // case 18 case 26: { appId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000040; break; } // case 26 case 34: @@ -1806,15 +2184,29 @@ public Builder mergeFrom( { input.readMessage( internalGetImportOptionsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000080; break; } // case 50 case 56: { ignoreAppLock_ = input.readBool(); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000100; break; } // case 56 + case 74: + { + java.lang.String s = input.readStringRequireUtf8(); + jsonPatchCase_ = 9; + jsonPatch_ = s; + break; + } // case 74 + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); + jsonPatchCase_ = 10; + jsonPatch_ = s; + break; + } // case 82 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1846,6 +2238,20 @@ public Builder clearApp() { return this; } + private int jsonPatchCase_ = 0; + private java.lang.Object jsonPatch_; + + public JsonPatchCase getJsonPatchCase() { + return JsonPatchCase.forNumber(jsonPatchCase_); + } + + public Builder clearJsonPatch() { + jsonPatchCase_ = 0; + jsonPatch_ = null; + onChanged(); + return this; + } + private int bitField0_; /** @@ -2078,6 +2484,290 @@ public Builder clearAppContent() { return this; } + /** + * + * + *
+     * Optional. Patch content as a JSON string.
+     * 
+ * + * string json_patch_content = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the jsonPatchContent field is set. + */ + @java.lang.Override + public boolean hasJsonPatchContent() { + return jsonPatchCase_ == 9; + } + + /** + * + * + *
+     * Optional. Patch content as a JSON string.
+     * 
+ * + * string json_patch_content = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The jsonPatchContent. + */ + @java.lang.Override + public java.lang.String getJsonPatchContent() { + java.lang.Object ref = ""; + if (jsonPatchCase_ == 9) { + ref = jsonPatch_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (jsonPatchCase_ == 9) { + jsonPatch_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Patch content as a JSON string.
+     * 
+ * + * string json_patch_content = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for jsonPatchContent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getJsonPatchContentBytes() { + java.lang.Object ref = ""; + if (jsonPatchCase_ == 9) { + ref = jsonPatch_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (jsonPatchCase_ == 9) { + jsonPatch_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Patch content as a JSON string.
+     * 
+ * + * string json_patch_content = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The jsonPatchContent to set. + * @return This builder for chaining. + */ + public Builder setJsonPatchContent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + jsonPatchCase_ = 9; + jsonPatch_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Patch content as a JSON string.
+     * 
+ * + * string json_patch_content = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearJsonPatchContent() { + if (jsonPatchCase_ == 9) { + jsonPatchCase_ = 0; + jsonPatch_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Patch content as a JSON string.
+     * 
+ * + * string json_patch_content = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for jsonPatchContent to set. + * @return This builder for chaining. + */ + public Builder setJsonPatchContentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + jsonPatchCase_ = 9; + jsonPatch_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A Cloud Storage URI pointing to a JSON file containing the
+     * patches.
+     * 
+ * + * string json_patch_gcs_uri = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the jsonPatchGcsUri field is set. + */ + @java.lang.Override + public boolean hasJsonPatchGcsUri() { + return jsonPatchCase_ == 10; + } + + /** + * + * + *
+     * Optional. A Cloud Storage URI pointing to a JSON file containing the
+     * patches.
+     * 
+ * + * string json_patch_gcs_uri = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The jsonPatchGcsUri. + */ + @java.lang.Override + public java.lang.String getJsonPatchGcsUri() { + java.lang.Object ref = ""; + if (jsonPatchCase_ == 10) { + ref = jsonPatch_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (jsonPatchCase_ == 10) { + jsonPatch_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. A Cloud Storage URI pointing to a JSON file containing the
+     * patches.
+     * 
+ * + * string json_patch_gcs_uri = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for jsonPatchGcsUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getJsonPatchGcsUriBytes() { + java.lang.Object ref = ""; + if (jsonPatchCase_ == 10) { + ref = jsonPatch_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (jsonPatchCase_ == 10) { + jsonPatch_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. A Cloud Storage URI pointing to a JSON file containing the
+     * patches.
+     * 
+ * + * string json_patch_gcs_uri = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The jsonPatchGcsUri to set. + * @return This builder for chaining. + */ + public Builder setJsonPatchGcsUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + jsonPatchCase_ = 10; + jsonPatch_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A Cloud Storage URI pointing to a JSON file containing the
+     * patches.
+     * 
+ * + * string json_patch_gcs_uri = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearJsonPatchGcsUri() { + if (jsonPatchCase_ == 10) { + jsonPatchCase_ = 0; + jsonPatch_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. A Cloud Storage URI pointing to a JSON file containing the
+     * patches.
+     * 
+ * + * string json_patch_gcs_uri = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for jsonPatchGcsUri to set. + * @return This builder for chaining. + */ + public Builder setJsonPatchGcsUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + jsonPatchCase_ = 10; + jsonPatch_ = value; + onChanged(); + return this; + } + private java.lang.Object parent_ = ""; /** @@ -2149,7 +2839,7 @@ public Builder setParent(java.lang.String value) { throw new NullPointerException(); } parent_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2169,7 +2859,7 @@ public Builder setParent(java.lang.String value) { */ public Builder clearParent() { parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -2194,7 +2884,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); parent_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2282,7 +2972,7 @@ public Builder setDisplayName(java.lang.String value) { throw new NullPointerException(); } displayName_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2306,7 +2996,7 @@ public Builder setDisplayName(java.lang.String value) { */ public Builder clearDisplayName() { displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -2335,7 +3025,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); displayName_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2423,7 +3113,7 @@ public Builder setAppId(java.lang.String value) { throw new NullPointerException(); } appId_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2447,7 +3137,7 @@ public Builder setAppId(java.lang.String value) { */ public Builder clearAppId() { appId_ = getDefaultInstance().getAppId(); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -2476,7 +3166,7 @@ public Builder setAppIdBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); appId_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2502,7 +3192,7 @@ public Builder setAppIdBytes(com.google.protobuf.ByteString value) { * @return Whether the importOptions field is set. */ public boolean hasImportOptions() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** @@ -2549,7 +3239,7 @@ public Builder setImportOptions( } else { importOptionsBuilder_.setMessage(value); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2572,7 +3262,7 @@ public Builder setImportOptions( } else { importOptionsBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2591,7 +3281,7 @@ public Builder setImportOptions( public Builder mergeImportOptions( com.google.cloud.ces.v1beta.ImportAppRequest.ImportOptions value) { if (importOptionsBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) + if (((bitField0_ & 0x00000080) != 0) && importOptions_ != null && importOptions_ != com.google.cloud.ces.v1beta.ImportAppRequest.ImportOptions @@ -2604,7 +3294,7 @@ public Builder mergeImportOptions( importOptionsBuilder_.mergeFrom(value); } if (importOptions_ != null) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000080; onChanged(); } return this; @@ -2622,7 +3312,7 @@ public Builder mergeImportOptions( * */ public Builder clearImportOptions() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000080); importOptions_ = null; if (importOptionsBuilder_ != null) { importOptionsBuilder_.dispose(); @@ -2645,7 +3335,7 @@ public Builder clearImportOptions() { */ public com.google.cloud.ces.v1beta.ImportAppRequest.ImportOptions.Builder getImportOptionsBuilder() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000080; onChanged(); return internalGetImportOptionsFieldBuilder().getBuilder(); } @@ -2735,7 +3425,7 @@ public boolean getIgnoreAppLock() { public Builder setIgnoreAppLock(boolean value) { ignoreAppLock_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2753,7 +3443,7 @@ public Builder setIgnoreAppLock(boolean value) { * @return This builder for chaining. */ public Builder clearIgnoreAppLock() { - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000100); ignoreAppLock_ = false; onChanged(); return this; diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ImportAppRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ImportAppRequestOrBuilder.java index 86e151f1a4d7..92976814362c 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ImportAppRequestOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ImportAppRequestOrBuilder.java @@ -99,6 +99,87 @@ public interface ImportAppRequestOrBuilder */ com.google.protobuf.ByteString getAppContent(); + /** + * + * + *
+   * Optional. Patch content as a JSON string.
+   * 
+ * + * string json_patch_content = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the jsonPatchContent field is set. + */ + boolean hasJsonPatchContent(); + + /** + * + * + *
+   * Optional. Patch content as a JSON string.
+   * 
+ * + * string json_patch_content = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The jsonPatchContent. + */ + java.lang.String getJsonPatchContent(); + + /** + * + * + *
+   * Optional. Patch content as a JSON string.
+   * 
+ * + * string json_patch_content = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for jsonPatchContent. + */ + com.google.protobuf.ByteString getJsonPatchContentBytes(); + + /** + * + * + *
+   * Optional. A Cloud Storage URI pointing to a JSON file containing the
+   * patches.
+   * 
+ * + * string json_patch_gcs_uri = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the jsonPatchGcsUri field is set. + */ + boolean hasJsonPatchGcsUri(); + + /** + * + * + *
+   * Optional. A Cloud Storage URI pointing to a JSON file containing the
+   * patches.
+   * 
+ * + * string json_patch_gcs_uri = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The jsonPatchGcsUri. + */ + java.lang.String getJsonPatchGcsUri(); + + /** + * + * + *
+   * Optional. A Cloud Storage URI pointing to a JSON file containing the
+   * patches.
+   * 
+ * + * string json_patch_gcs_uri = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for jsonPatchGcsUri. + */ + com.google.protobuf.ByteString getJsonPatchGcsUriBytes(); + /** * * @@ -263,4 +344,6 @@ public interface ImportAppRequestOrBuilder boolean getIgnoreAppLock(); com.google.cloud.ces.v1beta.ImportAppRequest.AppCase getAppCase(); + + com.google.cloud.ces.v1beta.ImportAppRequest.JsonPatchCase getJsonPatchCase(); } 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 index ea2b7e7399da..a44722cb8c81 100644 --- 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 @@ -133,10 +133,10 @@ public com.google.protobuf.ByteString getAuthCodeBytes() { * * *
-   * Required. The Conversation Profile ID to use for the deployment.
+   * Optional. The Conversation Profile ID to use for the deployment.
    * 
* - * string conversation_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * string conversation_profile_id = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The conversationProfileId. */ @@ -157,10 +157,10 @@ public java.lang.String getConversationProfileId() { * * *
-   * Required. The Conversation Profile ID to use for the deployment.
+   * Optional. The Conversation Profile ID to use for the deployment.
    * 
* - * string conversation_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * string conversation_profile_id = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for conversationProfileId. */ @@ -628,10 +628,10 @@ public Builder setAuthCodeBytes(com.google.protobuf.ByteString value) { * * *
-     * Required. The Conversation Profile ID to use for the deployment.
+     * Optional. The Conversation Profile ID to use for the deployment.
      * 
* - * string conversation_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * string conversation_profile_id = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The conversationProfileId. */ @@ -651,10 +651,10 @@ public java.lang.String getConversationProfileId() { * * *
-     * Required. The Conversation Profile ID to use for the deployment.
+     * Optional. The Conversation Profile ID to use for the deployment.
      * 
* - * string conversation_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * string conversation_profile_id = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for conversationProfileId. */ @@ -674,10 +674,10 @@ public com.google.protobuf.ByteString getConversationProfileIdBytes() { * * *
-     * Required. The Conversation Profile ID to use for the deployment.
+     * Optional. The Conversation Profile ID to use for the deployment.
      * 
* - * string conversation_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * string conversation_profile_id = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The conversationProfileId to set. * @return This builder for chaining. @@ -696,10 +696,10 @@ public Builder setConversationProfileId(java.lang.String value) { * * *
-     * Required. The Conversation Profile ID to use for the deployment.
+     * Optional. The Conversation Profile ID to use for the deployment.
      * 
* - * string conversation_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * string conversation_profile_id = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -714,10 +714,10 @@ public Builder clearConversationProfileId() { * * *
-     * Required. The Conversation Profile ID to use for the deployment.
+     * Optional. The Conversation Profile ID to use for the deployment.
      * 
* - * string conversation_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * string conversation_profile_id = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for conversationProfileId 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/InstagramCredentialsOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/InstagramCredentialsOrBuilder.java index b8aedf3fe1c7..e0b69df26bcb 100644 --- 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 @@ -56,10 +56,10 @@ public interface InstagramCredentialsOrBuilder * * *
-   * Required. The Conversation Profile ID to use for the deployment.
+   * Optional. The Conversation Profile ID to use for the deployment.
    * 
* - * string conversation_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * string conversation_profile_id = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The conversationProfileId. */ @@ -69,10 +69,10 @@ public interface InstagramCredentialsOrBuilder * * *
-   * Required. The Conversation Profile ID to use for the deployment.
+   * Optional. The Conversation Profile ID to use for the deployment.
    * 
* - * string conversation_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * string conversation_profile_id = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for conversationProfileId. */ diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/LanguageSettings.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/LanguageSettings.java index 92158508a959..5ccd03a9889d 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/LanguageSettings.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/LanguageSettings.java @@ -208,8 +208,8 @@ public com.google.protobuf.ByteString getSupportedLanguageCodesBytes(int index) * * *
-   * Optional. Enables multilingual support. If true, agents in the app will use
-   * pre-built instructions to improve handling of multilingual input.
+   * Optional. Enables multilingual support. If `true`, agents in the app will
+   * use pre-built instructions to improve handling of multilingual input.
    * 
* * bool enable_multilingual_support = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -249,7 +249,7 @@ public boolean getEnableMultilingualSupport() { * * * @deprecated google.cloud.ces.v1beta.LanguageSettings.fallback_action is deprecated. See - * google/cloud/ces/v1beta/app.proto;l=255 + * google/cloud/ces/v1beta/app.proto;l=280 * @return The fallbackAction. */ @java.lang.Override @@ -289,7 +289,7 @@ public java.lang.String getFallbackAction() { * * * @deprecated google.cloud.ces.v1beta.LanguageSettings.fallback_action is deprecated. See - * google/cloud/ces/v1beta/app.proto;l=255 + * google/cloud/ces/v1beta/app.proto;l=280 * @return The bytes for fallbackAction. */ @java.lang.Override @@ -1020,8 +1020,8 @@ public Builder addSupportedLanguageCodesBytes(com.google.protobuf.ByteString val * * *
-     * Optional. Enables multilingual support. If true, agents in the app will use
-     * pre-built instructions to improve handling of multilingual input.
+     * Optional. Enables multilingual support. If `true`, agents in the app will
+     * use pre-built instructions to improve handling of multilingual input.
      * 
* * bool enable_multilingual_support = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1037,8 +1037,8 @@ public boolean getEnableMultilingualSupport() { * * *
-     * Optional. Enables multilingual support. If true, agents in the app will use
-     * pre-built instructions to improve handling of multilingual input.
+     * Optional. Enables multilingual support. If `true`, agents in the app will
+     * use pre-built instructions to improve handling of multilingual input.
      * 
* * bool enable_multilingual_support = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1058,8 +1058,8 @@ public Builder setEnableMultilingualSupport(boolean value) { * * *
-     * Optional. Enables multilingual support. If true, agents in the app will use
-     * pre-built instructions to improve handling of multilingual input.
+     * Optional. Enables multilingual support. If `true`, agents in the app will
+     * use pre-built instructions to improve handling of multilingual input.
      * 
* * bool enable_multilingual_support = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1099,7 +1099,7 @@ public Builder clearEnableMultilingualSupport() { * * * @deprecated google.cloud.ces.v1beta.LanguageSettings.fallback_action is deprecated. See - * google/cloud/ces/v1beta/app.proto;l=255 + * google/cloud/ces/v1beta/app.proto;l=280 * @return The fallbackAction. */ @java.lang.Deprecated @@ -1139,7 +1139,7 @@ public java.lang.String getFallbackAction() { * * * @deprecated google.cloud.ces.v1beta.LanguageSettings.fallback_action is deprecated. See - * google/cloud/ces/v1beta/app.proto;l=255 + * google/cloud/ces/v1beta/app.proto;l=280 * @return The bytes for fallbackAction. */ @java.lang.Deprecated @@ -1179,7 +1179,7 @@ public com.google.protobuf.ByteString getFallbackActionBytes() { * * * @deprecated google.cloud.ces.v1beta.LanguageSettings.fallback_action is deprecated. See - * google/cloud/ces/v1beta/app.proto;l=255 + * google/cloud/ces/v1beta/app.proto;l=280 * @param value The fallbackAction to set. * @return This builder for chaining. */ @@ -1218,7 +1218,7 @@ public Builder setFallbackAction(java.lang.String value) { * * * @deprecated google.cloud.ces.v1beta.LanguageSettings.fallback_action is deprecated. See - * google/cloud/ces/v1beta/app.proto;l=255 + * google/cloud/ces/v1beta/app.proto;l=280 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1253,7 +1253,7 @@ public Builder clearFallbackAction() { * * * @deprecated google.cloud.ces.v1beta.LanguageSettings.fallback_action is deprecated. See - * google/cloud/ces/v1beta/app.proto;l=255 + * google/cloud/ces/v1beta/app.proto;l=280 * @param value The bytes for fallbackAction 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/LanguageSettingsOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/LanguageSettingsOrBuilder.java index 1a62a483823d..4cc94326dec8 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/LanguageSettingsOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/LanguageSettingsOrBuilder.java @@ -118,8 +118,8 @@ public interface LanguageSettingsOrBuilder * * *
-   * Optional. Enables multilingual support. If true, agents in the app will use
-   * pre-built instructions to improve handling of multilingual input.
+   * Optional. Enables multilingual support. If `true`, agents in the app will
+   * use pre-built instructions to improve handling of multilingual input.
    * 
* * bool enable_multilingual_support = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -151,7 +151,7 @@ public interface LanguageSettingsOrBuilder * * * @deprecated google.cloud.ces.v1beta.LanguageSettings.fallback_action is deprecated. See - * google/cloud/ces/v1beta/app.proto;l=255 + * google/cloud/ces/v1beta/app.proto;l=280 * @return The fallbackAction. */ @java.lang.Deprecated @@ -180,7 +180,7 @@ public interface LanguageSettingsOrBuilder * * * @deprecated google.cloud.ces.v1beta.LanguageSettings.fallback_action is deprecated. See - * google/cloud/ces/v1beta/app.proto;l=255 + * google/cloud/ces/v1beta/app.proto;l=280 * @return The bytes for fallbackAction. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ListAssistantSessionsRequest.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ListAssistantSessionsRequest.java new file mode 100644 index 000000000000..d20d1080de2e --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ListAssistantSessionsRequest.java @@ -0,0 +1,1141 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language 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/assistant_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +/** + * + * + *
+ * Request message for
+ * [AssistantService.ListAssistantSessions][google.cloud.ces.v1beta.AssistantService.ListAssistantSessions].
+ * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.ListAssistantSessionsRequest} + */ +@com.google.protobuf.Generated +public final class ListAssistantSessionsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.ListAssistantSessionsRequest) + ListAssistantSessionsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListAssistantSessionsRequest"); + } + + // Use ListAssistantSessionsRequest.newBuilder() to construct. + private ListAssistantSessionsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListAssistantSessionsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_ListAssistantSessionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_ListAssistantSessionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.ListAssistantSessionsRequest.class, + com.google.cloud.ces.v1beta.ListAssistantSessionsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The app to list assistant sessions from.
+   * Format:
+   * `projects/{project}/locations/{location}/apps/{app}`
+   * 
+ * + * + * 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 app to list assistant sessions from.
+   * Format:
+   * `projects/{project}/locations/{location}/apps/{app}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
+   * Optional. Requested page size. Server may return fewer items than
+   * requested. If unspecified, server will pick an appropriate default.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
+   * Optional. The
+   * [next_page_token][google.cloud.ces.v1beta.ListAssistantSessionsResponse.next_page_token]
+   * value returned from a previous list
+   * [AssistantService.ListAssistantSessions][google.cloud.ces.v1beta.AssistantService.ListAssistantSessions]
+   * call.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The
+   * [next_page_token][google.cloud.ces.v1beta.ListAssistantSessionsResponse.next_page_token]
+   * value returned from a previous list
+   * [AssistantService.ListAssistantSessions][google.cloud.ces.v1beta.AssistantService.ListAssistantSessions]
+   * call.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
+   * Optional. Filter to be applied when listing the assistant sessions.
+   * See https://google.aip.dev/160 for more details.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Filter to be applied when listing the assistant sessions.
+   * See https://google.aip.dev/160 for more details.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, filter_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, filter_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1beta.ListAssistantSessionsRequest)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.ListAssistantSessionsRequest other = + (com.google.cloud.ces.v1beta.ListAssistantSessionsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.ListAssistantSessionsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ListAssistantSessionsRequest parseFrom( + 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.ListAssistantSessionsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ListAssistantSessionsRequest parseFrom( + com.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.ListAssistantSessionsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ListAssistantSessionsRequest 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.ListAssistantSessionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ListAssistantSessionsRequest parseFrom( + java.io.InputStream 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.ListAssistantSessionsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ListAssistantSessionsRequest parseDelimitedFrom( + java.io.InputStream 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.ListAssistantSessionsRequest 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.ListAssistantSessionsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, 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.ListAssistantSessionsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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
+   * [AssistantService.ListAssistantSessions][google.cloud.ces.v1beta.AssistantService.ListAssistantSessions].
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.ListAssistantSessionsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.ListAssistantSessionsRequest) + com.google.cloud.ces.v1beta.ListAssistantSessionsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_ListAssistantSessionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_ListAssistantSessionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.ListAssistantSessionsRequest.class, + com.google.cloud.ces.v1beta.ListAssistantSessionsRequest.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.ListAssistantSessionsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_ListAssistantSessionsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ListAssistantSessionsRequest getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.ListAssistantSessionsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ListAssistantSessionsRequest build() { + com.google.cloud.ces.v1beta.ListAssistantSessionsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ListAssistantSessionsRequest buildPartial() { + com.google.cloud.ces.v1beta.ListAssistantSessionsRequest result = + new com.google.cloud.ces.v1beta.ListAssistantSessionsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1beta.ListAssistantSessionsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.ListAssistantSessionsRequest) { + return mergeFrom((com.google.cloud.ces.v1beta.ListAssistantSessionsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.ListAssistantSessionsRequest other) { + if (other == com.google.cloud.ces.v1beta.ListAssistantSessionsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The app to list assistant sessions from.
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}`
+     * 
+ * + * + * 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 app to list assistant sessions from.
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}`
+     * 
+ * + * + * 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 app to list assistant sessions from.
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}`
+     * 
+ * + * + * 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 app to list assistant sessions from.
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}`
+     * 
+ * + * + * 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 app to list assistant sessions from.
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
+     * Optional. Requested page size. Server may return fewer items than
+     * requested. If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
+     * Optional. Requested page size. Server may return fewer items than
+     * requested. If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Requested page size. Server may return fewer items than
+     * requested. If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
+     * Optional. The
+     * [next_page_token][google.cloud.ces.v1beta.ListAssistantSessionsResponse.next_page_token]
+     * value returned from a previous list
+     * [AssistantService.ListAssistantSessions][google.cloud.ces.v1beta.AssistantService.ListAssistantSessions]
+     * call.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The
+     * [next_page_token][google.cloud.ces.v1beta.ListAssistantSessionsResponse.next_page_token]
+     * value returned from a previous list
+     * [AssistantService.ListAssistantSessions][google.cloud.ces.v1beta.AssistantService.ListAssistantSessions]
+     * call.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The
+     * [next_page_token][google.cloud.ces.v1beta.ListAssistantSessionsResponse.next_page_token]
+     * value returned from a previous list
+     * [AssistantService.ListAssistantSessions][google.cloud.ces.v1beta.AssistantService.ListAssistantSessions]
+     * call.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The
+     * [next_page_token][google.cloud.ces.v1beta.ListAssistantSessionsResponse.next_page_token]
+     * value returned from a previous list
+     * [AssistantService.ListAssistantSessions][google.cloud.ces.v1beta.AssistantService.ListAssistantSessions]
+     * call.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The
+     * [next_page_token][google.cloud.ces.v1beta.ListAssistantSessionsResponse.next_page_token]
+     * value returned from a previous list
+     * [AssistantService.ListAssistantSessions][google.cloud.ces.v1beta.AssistantService.ListAssistantSessions]
+     * call.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
+     * Optional. Filter to be applied when listing the assistant sessions.
+     * See https://google.aip.dev/160 for more details.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Filter to be applied when listing the assistant sessions.
+     * See https://google.aip.dev/160 for more details.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Filter to be applied when listing the assistant sessions.
+     * See https://google.aip.dev/160 for more details.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Filter to be applied when listing the assistant sessions.
+     * See https://google.aip.dev/160 for more details.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Filter to be applied when listing the assistant sessions.
+     * See https://google.aip.dev/160 for more details.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.ListAssistantSessionsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.ListAssistantSessionsRequest) + private static final com.google.cloud.ces.v1beta.ListAssistantSessionsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.ListAssistantSessionsRequest(); + } + + public static com.google.cloud.ces.v1beta.ListAssistantSessionsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAssistantSessionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.ListAssistantSessionsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ListAssistantSessionsRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ListAssistantSessionsRequestOrBuilder.java new file mode 100644 index 000000000000..12a426c3f521 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ListAssistantSessionsRequestOrBuilder.java @@ -0,0 +1,138 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language 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/assistant_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public interface ListAssistantSessionsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.ListAssistantSessionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The app to list assistant sessions from.
+   * Format:
+   * `projects/{project}/locations/{location}/apps/{app}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The app to list assistant sessions from.
+   * Format:
+   * `projects/{project}/locations/{location}/apps/{app}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. Requested page size. Server may return fewer items than
+   * requested. If unspecified, server will pick an appropriate default.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. The
+   * [next_page_token][google.cloud.ces.v1beta.ListAssistantSessionsResponse.next_page_token]
+   * value returned from a previous list
+   * [AssistantService.ListAssistantSessions][google.cloud.ces.v1beta.AssistantService.ListAssistantSessions]
+   * call.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * Optional. The
+   * [next_page_token][google.cloud.ces.v1beta.ListAssistantSessionsResponse.next_page_token]
+   * value returned from a previous list
+   * [AssistantService.ListAssistantSessions][google.cloud.ces.v1beta.AssistantService.ListAssistantSessions]
+   * call.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. Filter to be applied when listing the assistant sessions.
+   * See https://google.aip.dev/160 for more details.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * Optional. Filter to be applied when listing the assistant sessions.
+   * See https://google.aip.dev/160 for more details.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ListAssistantSessionsResponse.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ListAssistantSessionsResponse.java new file mode 100644 index 000000000000..6c701e99ea97 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ListAssistantSessionsResponse.java @@ -0,0 +1,1148 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language 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/assistant_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +/** + * + * + *
+ * Response message for
+ * [AssistantService.ListAssistantSessions][google.cloud.ces.v1beta.AssistantService.ListAssistantSessions].
+ * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.ListAssistantSessionsResponse} + */ +@com.google.protobuf.Generated +public final class ListAssistantSessionsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.ListAssistantSessionsResponse) + ListAssistantSessionsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListAssistantSessionsResponse"); + } + + // Use ListAssistantSessionsResponse.newBuilder() to construct. + private ListAssistantSessionsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListAssistantSessionsResponse() { + assistantSessions_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_ListAssistantSessionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_ListAssistantSessionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.ListAssistantSessionsResponse.class, + com.google.cloud.ces.v1beta.ListAssistantSessionsResponse.Builder.class); + } + + public static final int ASSISTANT_SESSIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List assistantSessions_; + + /** + * + * + *
+   * The list of assistant sessions.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1; + */ + @java.lang.Override + public java.util.List getAssistantSessionsList() { + return assistantSessions_; + } + + /** + * + * + *
+   * The list of assistant sessions.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1; + */ + @java.lang.Override + public java.util.List + getAssistantSessionsOrBuilderList() { + return assistantSessions_; + } + + /** + * + * + *
+   * The list of assistant sessions.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1; + */ + @java.lang.Override + public int getAssistantSessionsCount() { + return assistantSessions_.size(); + } + + /** + * + * + *
+   * The list of assistant sessions.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1; + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantSession getAssistantSessions(int index) { + return assistantSessions_.get(index); + } + + /** + * + * + *
+   * The list of assistant sessions.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1; + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantSessionOrBuilder getAssistantSessionsOrBuilder( + int index) { + return assistantSessions_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * Optional. A token that can be sent as
+   * [ListAssistantSessionsRequest.page_token][google.cloud.ces.v1beta.ListAssistantSessionsRequest.page_token]
+   * to retrieve the next page. Absence of this field indicates there are no
+   * subsequent pages.
+   * 
+ * + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+   * Optional. A token that can be sent as
+   * [ListAssistantSessionsRequest.page_token][google.cloud.ces.v1beta.ListAssistantSessionsRequest.page_token]
+   * to retrieve the next page. Absence of this field indicates there are no
+   * subsequent pages.
+   * 
+ * + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 < assistantSessions_.size(); i++) { + output.writeMessage(1, assistantSessions_.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 < assistantSessions_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, assistantSessions_.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.ces.v1beta.ListAssistantSessionsResponse)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.ListAssistantSessionsResponse other = + (com.google.cloud.ces.v1beta.ListAssistantSessionsResponse) obj; + + if (!getAssistantSessionsList().equals(other.getAssistantSessionsList())) 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 (getAssistantSessionsCount() > 0) { + hash = (37 * hash) + ASSISTANT_SESSIONS_FIELD_NUMBER; + hash = (53 * hash) + getAssistantSessionsList().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.ces.v1beta.ListAssistantSessionsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ListAssistantSessionsResponse parseFrom( + 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.ListAssistantSessionsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ListAssistantSessionsResponse parseFrom( + com.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.ListAssistantSessionsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ListAssistantSessionsResponse 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.ListAssistantSessionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ListAssistantSessionsResponse parseFrom( + java.io.InputStream 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.ListAssistantSessionsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ListAssistantSessionsResponse parseDelimitedFrom( + java.io.InputStream 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.ListAssistantSessionsResponse 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.ListAssistantSessionsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, 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.ListAssistantSessionsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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
+   * [AssistantService.ListAssistantSessions][google.cloud.ces.v1beta.AssistantService.ListAssistantSessions].
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.ListAssistantSessionsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.ListAssistantSessionsResponse) + com.google.cloud.ces.v1beta.ListAssistantSessionsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_ListAssistantSessionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_ListAssistantSessionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.ListAssistantSessionsResponse.class, + com.google.cloud.ces.v1beta.ListAssistantSessionsResponse.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.ListAssistantSessionsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (assistantSessionsBuilder_ == null) { + assistantSessions_ = java.util.Collections.emptyList(); + } else { + assistantSessions_ = null; + assistantSessionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_ListAssistantSessionsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ListAssistantSessionsResponse getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.ListAssistantSessionsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ListAssistantSessionsResponse build() { + com.google.cloud.ces.v1beta.ListAssistantSessionsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ListAssistantSessionsResponse buildPartial() { + com.google.cloud.ces.v1beta.ListAssistantSessionsResponse result = + new com.google.cloud.ces.v1beta.ListAssistantSessionsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.ces.v1beta.ListAssistantSessionsResponse result) { + if (assistantSessionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + assistantSessions_ = java.util.Collections.unmodifiableList(assistantSessions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.assistantSessions_ = assistantSessions_; + } else { + result.assistantSessions_ = assistantSessionsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.ces.v1beta.ListAssistantSessionsResponse 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.ces.v1beta.ListAssistantSessionsResponse) { + return mergeFrom((com.google.cloud.ces.v1beta.ListAssistantSessionsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.ListAssistantSessionsResponse other) { + if (other == com.google.cloud.ces.v1beta.ListAssistantSessionsResponse.getDefaultInstance()) + return this; + if (assistantSessionsBuilder_ == null) { + if (!other.assistantSessions_.isEmpty()) { + if (assistantSessions_.isEmpty()) { + assistantSessions_ = other.assistantSessions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAssistantSessionsIsMutable(); + assistantSessions_.addAll(other.assistantSessions_); + } + onChanged(); + } + } else { + if (!other.assistantSessions_.isEmpty()) { + if (assistantSessionsBuilder_.isEmpty()) { + assistantSessionsBuilder_.dispose(); + assistantSessionsBuilder_ = null; + assistantSessions_ = other.assistantSessions_; + bitField0_ = (bitField0_ & ~0x00000001); + assistantSessionsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAssistantSessionsFieldBuilder() + : null; + } else { + assistantSessionsBuilder_.addAllMessages(other.assistantSessions_); + } + } + } + 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.ces.v1beta.AssistantSession m = + input.readMessage( + com.google.cloud.ces.v1beta.AssistantSession.parser(), extensionRegistry); + if (assistantSessionsBuilder_ == null) { + ensureAssistantSessionsIsMutable(); + assistantSessions_.add(m); + } else { + assistantSessionsBuilder_.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 assistantSessions_ = + java.util.Collections.emptyList(); + + private void ensureAssistantSessionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + assistantSessions_ = + new java.util.ArrayList( + assistantSessions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.AssistantSession, + com.google.cloud.ces.v1beta.AssistantSession.Builder, + com.google.cloud.ces.v1beta.AssistantSessionOrBuilder> + assistantSessionsBuilder_; + + /** + * + * + *
+     * The list of assistant sessions.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1; + */ + public java.util.List getAssistantSessionsList() { + if (assistantSessionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(assistantSessions_); + } else { + return assistantSessionsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The list of assistant sessions.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1; + */ + public int getAssistantSessionsCount() { + if (assistantSessionsBuilder_ == null) { + return assistantSessions_.size(); + } else { + return assistantSessionsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The list of assistant sessions.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1; + */ + public com.google.cloud.ces.v1beta.AssistantSession getAssistantSessions(int index) { + if (assistantSessionsBuilder_ == null) { + return assistantSessions_.get(index); + } else { + return assistantSessionsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The list of assistant sessions.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1; + */ + public Builder setAssistantSessions( + int index, com.google.cloud.ces.v1beta.AssistantSession value) { + if (assistantSessionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAssistantSessionsIsMutable(); + assistantSessions_.set(index, value); + onChanged(); + } else { + assistantSessionsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of assistant sessions.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1; + */ + public Builder setAssistantSessions( + int index, com.google.cloud.ces.v1beta.AssistantSession.Builder builderForValue) { + if (assistantSessionsBuilder_ == null) { + ensureAssistantSessionsIsMutable(); + assistantSessions_.set(index, builderForValue.build()); + onChanged(); + } else { + assistantSessionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of assistant sessions.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1; + */ + public Builder addAssistantSessions(com.google.cloud.ces.v1beta.AssistantSession value) { + if (assistantSessionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAssistantSessionsIsMutable(); + assistantSessions_.add(value); + onChanged(); + } else { + assistantSessionsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The list of assistant sessions.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1; + */ + public Builder addAssistantSessions( + int index, com.google.cloud.ces.v1beta.AssistantSession value) { + if (assistantSessionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAssistantSessionsIsMutable(); + assistantSessions_.add(index, value); + onChanged(); + } else { + assistantSessionsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of assistant sessions.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1; + */ + public Builder addAssistantSessions( + com.google.cloud.ces.v1beta.AssistantSession.Builder builderForValue) { + if (assistantSessionsBuilder_ == null) { + ensureAssistantSessionsIsMutable(); + assistantSessions_.add(builderForValue.build()); + onChanged(); + } else { + assistantSessionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of assistant sessions.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1; + */ + public Builder addAssistantSessions( + int index, com.google.cloud.ces.v1beta.AssistantSession.Builder builderForValue) { + if (assistantSessionsBuilder_ == null) { + ensureAssistantSessionsIsMutable(); + assistantSessions_.add(index, builderForValue.build()); + onChanged(); + } else { + assistantSessionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of assistant sessions.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1; + */ + public Builder addAllAssistantSessions( + java.lang.Iterable values) { + if (assistantSessionsBuilder_ == null) { + ensureAssistantSessionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, assistantSessions_); + onChanged(); + } else { + assistantSessionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The list of assistant sessions.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1; + */ + public Builder clearAssistantSessions() { + if (assistantSessionsBuilder_ == null) { + assistantSessions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + assistantSessionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The list of assistant sessions.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1; + */ + public Builder removeAssistantSessions(int index) { + if (assistantSessionsBuilder_ == null) { + ensureAssistantSessionsIsMutable(); + assistantSessions_.remove(index); + onChanged(); + } else { + assistantSessionsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The list of assistant sessions.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1; + */ + public com.google.cloud.ces.v1beta.AssistantSession.Builder getAssistantSessionsBuilder( + int index) { + return internalGetAssistantSessionsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The list of assistant sessions.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1; + */ + public com.google.cloud.ces.v1beta.AssistantSessionOrBuilder getAssistantSessionsOrBuilder( + int index) { + if (assistantSessionsBuilder_ == null) { + return assistantSessions_.get(index); + } else { + return assistantSessionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The list of assistant sessions.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1; + */ + public java.util.List + getAssistantSessionsOrBuilderList() { + if (assistantSessionsBuilder_ != null) { + return assistantSessionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(assistantSessions_); + } + } + + /** + * + * + *
+     * The list of assistant sessions.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1; + */ + public com.google.cloud.ces.v1beta.AssistantSession.Builder addAssistantSessionsBuilder() { + return internalGetAssistantSessionsFieldBuilder() + .addBuilder(com.google.cloud.ces.v1beta.AssistantSession.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of assistant sessions.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1; + */ + public com.google.cloud.ces.v1beta.AssistantSession.Builder addAssistantSessionsBuilder( + int index) { + return internalGetAssistantSessionsFieldBuilder() + .addBuilder(index, com.google.cloud.ces.v1beta.AssistantSession.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of assistant sessions.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1; + */ + public java.util.List + getAssistantSessionsBuilderList() { + return internalGetAssistantSessionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.AssistantSession, + com.google.cloud.ces.v1beta.AssistantSession.Builder, + com.google.cloud.ces.v1beta.AssistantSessionOrBuilder> + internalGetAssistantSessionsFieldBuilder() { + if (assistantSessionsBuilder_ == null) { + assistantSessionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.AssistantSession, + com.google.cloud.ces.v1beta.AssistantSession.Builder, + com.google.cloud.ces.v1beta.AssistantSessionOrBuilder>( + assistantSessions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + assistantSessions_ = null; + } + return assistantSessionsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * Optional. A token that can be sent as
+     * [ListAssistantSessionsRequest.page_token][google.cloud.ces.v1beta.ListAssistantSessionsRequest.page_token]
+     * to retrieve the next page. Absence of this field indicates there are no
+     * subsequent pages.
+     * 
+ * + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+     * Optional. A token that can be sent as
+     * [ListAssistantSessionsRequest.page_token][google.cloud.ces.v1beta.ListAssistantSessionsRequest.page_token]
+     * to retrieve the next page. Absence of this field indicates there are no
+     * subsequent pages.
+     * 
+ * + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+     * Optional. A token that can be sent as
+     * [ListAssistantSessionsRequest.page_token][google.cloud.ces.v1beta.ListAssistantSessionsRequest.page_token]
+     * to retrieve the next page. Absence of this field indicates there are no
+     * subsequent pages.
+     * 
+ * + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + + /** + * + * + *
+     * Optional. A token that can be sent as
+     * [ListAssistantSessionsRequest.page_token][google.cloud.ces.v1beta.ListAssistantSessionsRequest.page_token]
+     * to retrieve the next page. Absence of this field indicates there are no
+     * subsequent pages.
+     * 
+ * + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A token that can be sent as
+     * [ListAssistantSessionsRequest.page_token][google.cloud.ces.v1beta.ListAssistantSessionsRequest.page_token]
+     * to retrieve the next page. Absence of this field indicates there are no
+     * subsequent pages.
+     * 
+ * + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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.ces.v1beta.ListAssistantSessionsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.ListAssistantSessionsResponse) + private static final com.google.cloud.ces.v1beta.ListAssistantSessionsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.ListAssistantSessionsResponse(); + } + + public static com.google.cloud.ces.v1beta.ListAssistantSessionsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAssistantSessionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.ListAssistantSessionsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ListAssistantSessionsResponseOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ListAssistantSessionsResponseOrBuilder.java new file mode 100644 index 000000000000..609b0014d9ca --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ListAssistantSessionsResponseOrBuilder.java @@ -0,0 +1,116 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/assistant_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public interface ListAssistantSessionsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.ListAssistantSessionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of assistant sessions.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1; + */ + java.util.List getAssistantSessionsList(); + + /** + * + * + *
+   * The list of assistant sessions.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1; + */ + com.google.cloud.ces.v1beta.AssistantSession getAssistantSessions(int index); + + /** + * + * + *
+   * The list of assistant sessions.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1; + */ + int getAssistantSessionsCount(); + + /** + * + * + *
+   * The list of assistant sessions.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1; + */ + java.util.List + getAssistantSessionsOrBuilderList(); + + /** + * + * + *
+   * The list of assistant sessions.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1; + */ + com.google.cloud.ces.v1beta.AssistantSessionOrBuilder getAssistantSessionsOrBuilder(int index); + + /** + * + * + *
+   * Optional. A token that can be sent as
+   * [ListAssistantSessionsRequest.page_token][google.cloud.ces.v1beta.ListAssistantSessionsRequest.page_token]
+   * to retrieve the next page. Absence of this field indicates there are no
+   * subsequent pages.
+   * 
+ * + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * Optional. A token that can be sent as
+   * [ListAssistantSessionsRequest.page_token][google.cloud.ces.v1beta.ListAssistantSessionsRequest.page_token]
+   * to retrieve the next page. Absence of this field indicates there are no
+   * subsequent pages.
+   * 
+ * + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} 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 940c252d9a41..6ec538ae02c3 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 @@ -647,6 +647,36 @@ public com.google.cloud.ces.v1beta.MetricAnalysisSettings getMetricAnalysisSetti : metricAnalysisSettings_; } + public static final int REQUIRED_RECORDING_CONSENT_FIELD_NUMBER = 10; + private boolean requiredRecordingConsent_ = false; + + /** + * + * + *
+   * Optional. Whether the app has to say what may be recorded before anything
+   * is kept.
+   *
+   * When true, a session starts with recording off and stays off until the
+   * client sends
+   * [SessionInput.recording_control][google.cloud.ces.v1main.SessionInput.recording_control],
+   * which then decides every turn from that point on. This covers audio
+   * recording as well as conversation history, BigQuery export and Cloud
+   * Logging.
+   *
+   * When `false`, the default, the settings above decide on their own and the
+   * client does not have to send anything.
+   * 
+ * + * bool required_recording_consent = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requiredRecordingConsent. + */ + @java.lang.Override + public boolean getRequiredRecordingConsent() { + return requiredRecordingConsent_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -688,6 +718,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(9, getUnredactedBigqueryExportSettings()); } + if (requiredRecordingConsent_ != false) { + output.writeBool(10, requiredRecordingConsent_); + } getUnknownFields().writeTo(output); } @@ -736,6 +769,9 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 9, getUnredactedBigqueryExportSettings()); } + if (requiredRecordingConsent_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(10, requiredRecordingConsent_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -795,6 +831,7 @@ public boolean equals(final java.lang.Object obj) { if (hasMetricAnalysisSettings()) { if (!getMetricAnalysisSettings().equals(other.getMetricAnalysisSettings())) return false; } + if (getRequiredRecordingConsent() != other.getRequiredRecordingConsent()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -842,6 +879,8 @@ public int hashCode() { hash = (37 * hash) + METRIC_ANALYSIS_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getMetricAnalysisSettings().hashCode(); } + hash = (37 * hash) + REQUIRED_RECORDING_CONSENT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequiredRecordingConsent()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1044,6 +1083,7 @@ public Builder clear() { metricAnalysisSettingsBuilder_.dispose(); metricAnalysisSettingsBuilder_ = null; } + requiredRecordingConsent_ = false; return this; } @@ -1142,6 +1182,9 @@ private void buildPartial0(com.google.cloud.ces.v1beta.LoggingSettings result) { : metricAnalysisSettingsBuilder_.build(); to_bitField0_ |= 0x00000100; } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.requiredRecordingConsent_ = requiredRecordingConsent_; + } result.bitField0_ |= to_bitField0_; } @@ -1184,6 +1227,9 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.LoggingSettings other) { if (other.hasMetricAnalysisSettings()) { mergeMetricAnalysisSettings(other.getMetricAnalysisSettings()); } + if (other.getRequiredRecordingConsent() != false) { + setRequiredRecordingConsent(other.getRequiredRecordingConsent()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1279,6 +1325,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000010; break; } // case 74 + case 80: + { + requiredRecordingConsent_ = input.readBool(); + bitField0_ |= 0x00000200; + break; + } // case 80 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3373,6 +3425,95 @@ public Builder clearMetricAnalysisSettings() { return metricAnalysisSettingsBuilder_; } + private boolean requiredRecordingConsent_; + + /** + * + * + *
+     * Optional. Whether the app has to say what may be recorded before anything
+     * is kept.
+     *
+     * When true, a session starts with recording off and stays off until the
+     * client sends
+     * [SessionInput.recording_control][google.cloud.ces.v1main.SessionInput.recording_control],
+     * which then decides every turn from that point on. This covers audio
+     * recording as well as conversation history, BigQuery export and Cloud
+     * Logging.
+     *
+     * When `false`, the default, the settings above decide on their own and the
+     * client does not have to send anything.
+     * 
+ * + * bool required_recording_consent = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requiredRecordingConsent. + */ + @java.lang.Override + public boolean getRequiredRecordingConsent() { + return requiredRecordingConsent_; + } + + /** + * + * + *
+     * Optional. Whether the app has to say what may be recorded before anything
+     * is kept.
+     *
+     * When true, a session starts with recording off and stays off until the
+     * client sends
+     * [SessionInput.recording_control][google.cloud.ces.v1main.SessionInput.recording_control],
+     * which then decides every turn from that point on. This covers audio
+     * recording as well as conversation history, BigQuery export and Cloud
+     * Logging.
+     *
+     * When `false`, the default, the settings above decide on their own and the
+     * client does not have to send anything.
+     * 
+ * + * bool required_recording_consent = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The requiredRecordingConsent to set. + * @return This builder for chaining. + */ + public Builder setRequiredRecordingConsent(boolean value) { + + requiredRecordingConsent_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Whether the app has to say what may be recorded before anything
+     * is kept.
+     *
+     * When true, a session starts with recording off and stays off until the
+     * client sends
+     * [SessionInput.recording_control][google.cloud.ces.v1main.SessionInput.recording_control],
+     * which then decides every turn from that point on. This covers audio
+     * recording as well as conversation history, BigQuery export and Cloud
+     * Logging.
+     *
+     * When `false`, the default, the settings above decide on their own and the
+     * client does not have to send anything.
+     * 
+ * + * bool required_recording_consent = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequiredRecordingConsent() { + bitField0_ = (bitField0_ & ~0x00000200); + requiredRecordingConsent_ = false; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.LoggingSettings) } 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 1fc06c0a05c3..fbc3e46b1177 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 @@ -455,4 +455,28 @@ public interface LoggingSettingsOrBuilder * */ com.google.cloud.ces.v1beta.MetricAnalysisSettingsOrBuilder getMetricAnalysisSettingsOrBuilder(); + + /** + * + * + *
+   * Optional. Whether the app has to say what may be recorded before anything
+   * is kept.
+   *
+   * When true, a session starts with recording off and stays off until the
+   * client sends
+   * [SessionInput.recording_control][google.cloud.ces.v1main.SessionInput.recording_control],
+   * which then decides every turn from that point on. This covers audio
+   * recording as well as conversation history, BigQuery export and Cloud
+   * Logging.
+   *
+   * When `false`, the default, the settings above decide on their own and the
+   * client does not have to send anything.
+   * 
+ * + * bool required_recording_consent = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requiredRecordingConsent. + */ + boolean getRequiredRecordingConsent(); } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ModelSettings.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ModelSettings.java index 500731a7dbfc..4a0e1f43a354 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ModelSettings.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ModelSettings.java @@ -53,6 +53,7 @@ private ModelSettings(com.google.protobuf.GeneratedMessage.Builder builder) { private ModelSettings() { model_ = ""; + thinkingLevel_ = 0; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -70,6 +71,221 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.ces.v1beta.ModelSettings.Builder.class); } + /** + * + * + *
+   * Thinking level configuration for the model.
+   * 
+ * + * Protobuf enum {@code google.cloud.ces.v1beta.ModelSettings.ThinkingLevel} + */ + public enum ThinkingLevel implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Thinking level is unspecified.
+     * 
+ * + * THINKING_LEVEL_UNSPECIFIED = 0; + */ + THINKING_LEVEL_UNSPECIFIED(0), + /** + * + * + *
+     * Default thinking level.
+     * 
+ * + * DEFAULT = 1; + */ + DEFAULT(1), + /** + * + * + *
+     * Low thinking level.
+     * 
+ * + * LOW = 2; + */ + LOW(2), + /** + * + * + *
+     * Medium thinking level.
+     * 
+ * + * MEDIUM = 3; + */ + MEDIUM(3), + /** + * + * + *
+     * High thinking level.
+     * 
+ * + * HIGH = 4; + */ + HIGH(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ThinkingLevel"); + } + + /** + * + * + *
+     * Thinking level is unspecified.
+     * 
+ * + * THINKING_LEVEL_UNSPECIFIED = 0; + */ + public static final int THINKING_LEVEL_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Default thinking level.
+     * 
+ * + * DEFAULT = 1; + */ + public static final int DEFAULT_VALUE = 1; + + /** + * + * + *
+     * Low thinking level.
+     * 
+ * + * LOW = 2; + */ + public static final int LOW_VALUE = 2; + + /** + * + * + *
+     * Medium thinking level.
+     * 
+ * + * MEDIUM = 3; + */ + public static final int MEDIUM_VALUE = 3; + + /** + * + * + *
+     * High thinking level.
+     * 
+ * + * HIGH = 4; + */ + public static final int HIGH_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 ThinkingLevel 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 ThinkingLevel forNumber(int value) { + switch (value) { + case 0: + return THINKING_LEVEL_UNSPECIFIED; + case 1: + return DEFAULT; + case 2: + return LOW; + case 3: + return MEDIUM; + case 4: + return HIGH; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ThinkingLevel findValueByNumber(int number) { + return ThinkingLevel.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.ModelSettings.getDescriptor().getEnumTypes().get(0); + } + + private static final ThinkingLevel[] VALUES = values(); + + public static ThinkingLevel 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 ThinkingLevel(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1beta.ModelSettings.ThinkingLevel) + } + private int bitField0_; public static final int MODEL_FIELD_NUMBER = 1; @@ -167,6 +383,49 @@ public double getTemperature() { return temperature_; } + public static final int THINKING_LEVEL_FIELD_NUMBER = 5; + private int thinkingLevel_ = 0; + + /** + * + * + *
+   * Optional. The thinking level of the model.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ModelSettings.ThinkingLevel thinking_level = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for thinkingLevel. + */ + @java.lang.Override + public int getThinkingLevelValue() { + return thinkingLevel_; + } + + /** + * + * + *
+   * Optional. The thinking level of the model.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ModelSettings.ThinkingLevel thinking_level = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The thinkingLevel. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.ModelSettings.ThinkingLevel getThinkingLevel() { + com.google.cloud.ces.v1beta.ModelSettings.ThinkingLevel result = + com.google.cloud.ces.v1beta.ModelSettings.ThinkingLevel.forNumber(thinkingLevel_); + return result == null + ? com.google.cloud.ces.v1beta.ModelSettings.ThinkingLevel.UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -187,6 +446,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeDouble(2, temperature_); } + if (thinkingLevel_ + != com.google.cloud.ces.v1beta.ModelSettings.ThinkingLevel.THINKING_LEVEL_UNSPECIFIED + .getNumber()) { + output.writeEnum(5, thinkingLevel_); + } getUnknownFields().writeTo(output); } @@ -202,6 +466,11 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, temperature_); } + if (thinkingLevel_ + != com.google.cloud.ces.v1beta.ModelSettings.ThinkingLevel.THINKING_LEVEL_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, thinkingLevel_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -224,6 +493,7 @@ public boolean equals(final java.lang.Object obj) { if (java.lang.Double.doubleToLongBits(getTemperature()) != java.lang.Double.doubleToLongBits(other.getTemperature())) return false; } + if (thinkingLevel_ != other.thinkingLevel_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -244,6 +514,8 @@ public int hashCode() { + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getTemperature())); } + hash = (37 * hash) + THINKING_LEVEL_FIELD_NUMBER; + hash = (53 * hash) + thinkingLevel_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -386,6 +658,7 @@ public Builder clear() { bitField0_ = 0; model_ = ""; temperature_ = 0D; + thinkingLevel_ = 0; return this; } @@ -430,6 +703,9 @@ private void buildPartial0(com.google.cloud.ces.v1beta.ModelSettings result) { result.temperature_ = temperature_; to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.thinkingLevel_ = thinkingLevel_; + } result.bitField0_ |= to_bitField0_; } @@ -453,6 +729,9 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.ModelSettings other) { if (other.hasTemperature()) { setTemperature(other.getTemperature()); } + if (other.thinkingLevel_ != 0) { + setThinkingLevelValue(other.getThinkingLevelValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -491,6 +770,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 17 + case 40: + { + thinkingLevel_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 40 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -710,6 +995,113 @@ public Builder clearTemperature() { return this; } + private int thinkingLevel_ = 0; + + /** + * + * + *
+     * Optional. The thinking level of the model.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ModelSettings.ThinkingLevel thinking_level = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for thinkingLevel. + */ + @java.lang.Override + public int getThinkingLevelValue() { + return thinkingLevel_; + } + + /** + * + * + *
+     * Optional. The thinking level of the model.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ModelSettings.ThinkingLevel thinking_level = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for thinkingLevel to set. + * @return This builder for chaining. + */ + public Builder setThinkingLevelValue(int value) { + thinkingLevel_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The thinking level of the model.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ModelSettings.ThinkingLevel thinking_level = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The thinkingLevel. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.ModelSettings.ThinkingLevel getThinkingLevel() { + com.google.cloud.ces.v1beta.ModelSettings.ThinkingLevel result = + com.google.cloud.ces.v1beta.ModelSettings.ThinkingLevel.forNumber(thinkingLevel_); + return result == null + ? com.google.cloud.ces.v1beta.ModelSettings.ThinkingLevel.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Optional. The thinking level of the model.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ModelSettings.ThinkingLevel thinking_level = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The thinkingLevel to set. + * @return This builder for chaining. + */ + public Builder setThinkingLevel(com.google.cloud.ces.v1beta.ModelSettings.ThinkingLevel value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + thinkingLevel_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The thinking level of the model.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ModelSettings.ThinkingLevel thinking_level = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearThinkingLevel() { + bitField0_ = (bitField0_ & ~0x00000004); + thinkingLevel_ = 0; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.ModelSettings) } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ModelSettingsOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ModelSettingsOrBuilder.java index d1dbd56a5848..791673d35399 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ModelSettingsOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ModelSettingsOrBuilder.java @@ -85,4 +85,34 @@ public interface ModelSettingsOrBuilder * @return The temperature. */ double getTemperature(); + + /** + * + * + *
+   * Optional. The thinking level of the model.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ModelSettings.ThinkingLevel thinking_level = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for thinkingLevel. + */ + int getThinkingLevelValue(); + + /** + * + * + *
+   * Optional. The thinking level of the model.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ModelSettings.ThinkingLevel thinking_level = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The thinkingLevel. + */ + com.google.cloud.ces.v1beta.ModelSettings.ThinkingLevel getThinkingLevel(); } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/OperationCompletedEvent.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/OperationCompletedEvent.java new file mode 100644 index 000000000000..55cf687fe3fd --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/OperationCompletedEvent.java @@ -0,0 +1,1938 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language 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/session_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +/** + * + * + *
+ * Event sent by the client or background worker to resume an assistant session
+ * after an asynchronous Long-Running Operation (LRO) completes.
+ * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.OperationCompletedEvent} + */ +@com.google.protobuf.Generated +public final class OperationCompletedEvent extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.OperationCompletedEvent) + OperationCompletedEventOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "OperationCompletedEvent"); + } + + // Use OperationCompletedEvent.newBuilder() to construct. + private OperationCompletedEvent(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private OperationCompletedEvent() { + operationName_ = ""; + targetResourceName_ = ""; + operationType_ = ""; + status_ = ""; + deduplicationToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_OperationCompletedEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_OperationCompletedEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.OperationCompletedEvent.class, + com.google.cloud.ces.v1beta.OperationCompletedEvent.Builder.class); + } + + private int bitField0_; + public static final int OPERATION_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object operationName_ = ""; + + /** + * + * + *
+   * The operation resource name (e.g. `operations/{op}`).
+   * 
+ * + * string operation_name = 1; + * + * @return The operationName. + */ + @java.lang.Override + public java.lang.String getOperationName() { + java.lang.Object ref = operationName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + operationName_ = s; + return s; + } + } + + /** + * + * + *
+   * The operation resource name (e.g. `operations/{op}`).
+   * 
+ * + * string operation_name = 1; + * + * @return The bytes for operationName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOperationNameBytes() { + java.lang.Object ref = operationName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + operationName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TARGET_RESOURCE_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object targetResourceName_ = ""; + + /** + * + * + *
+   * The primary resource targeted or produced by the operation
+   * (e.g. evaluation run ID, app ID, dataset ID).
+   * 
+ * + * string target_resource_name = 2; + * + * @return The targetResourceName. + */ + @java.lang.Override + public java.lang.String getTargetResourceName() { + java.lang.Object ref = targetResourceName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetResourceName_ = s; + return s; + } + } + + /** + * + * + *
+   * The primary resource targeted or produced by the operation
+   * (e.g. evaluation run ID, app ID, dataset ID).
+   * 
+ * + * string target_resource_name = 2; + * + * @return The bytes for targetResourceName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTargetResourceNameBytes() { + java.lang.Object ref = targetResourceName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetResourceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OPERATION_TYPE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object operationType_ = ""; + + /** + * + * + *
+   * The operation type or tool name (e.g. "run_evaluation", "copy_app",
+   * "export_app").
+   * 
+ * + * string operation_type = 3; + * + * @return The operationType. + */ + @java.lang.Override + public java.lang.String getOperationType() { + java.lang.Object ref = operationType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + operationType_ = s; + return s; + } + } + + /** + * + * + *
+   * The operation type or tool name (e.g. "run_evaluation", "copy_app",
+   * "export_app").
+   * 
+ * + * string operation_type = 3; + * + * @return The bytes for operationType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOperationTypeBytes() { + java.lang.Object ref = operationType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + operationType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATUS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object status_ = ""; + + /** + * + * + *
+   * Status of the operation run (e.g. "SUCCEEDED", "FAILED", "CANCELLED").
+   * 
+ * + * string status = 4; + * + * @return The status. + */ + @java.lang.Override + public java.lang.String getStatus() { + java.lang.Object ref = status_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + status_ = s; + return s; + } + } + + /** + * + * + *
+   * Status of the operation run (e.g. "SUCCEEDED", "FAILED", "CANCELLED").
+   * 
+ * + * string status = 4; + * + * @return The bytes for status. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStatusBytes() { + java.lang.Object ref = status_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + status_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEDUPLICATION_TOKEN_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object deduplicationToken_ = ""; + + /** + * + * + *
+   * Optional deduplication token (e.g. UUID) to prevent duplicate turn
+   * execution from concurrent browser tabs.
+   * 
+ * + * string deduplication_token = 5; + * + * @return The deduplicationToken. + */ + @java.lang.Override + public java.lang.String getDeduplicationToken() { + java.lang.Object ref = deduplicationToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deduplicationToken_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional deduplication token (e.g. UUID) to prevent duplicate turn
+   * execution from concurrent browser tabs.
+   * 
+ * + * string deduplication_token = 5; + * + * @return The bytes for deduplicationToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDeduplicationTokenBytes() { + java.lang.Object ref = deduplicationToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deduplicationToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ERROR_FIELD_NUMBER = 6; + private com.google.rpc.Status error_; + + /** + * + * + *
+   * Optional canonical error status if the operation failed.
+   * 
+ * + * .google.rpc.Status error = 6; + * + * @return Whether the error field is set. + */ + @java.lang.Override + public boolean hasError() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional canonical error status if the operation failed.
+   * 
+ * + * .google.rpc.Status error = 6; + * + * @return The error. + */ + @java.lang.Override + public com.google.rpc.Status getError() { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } + + /** + * + * + *
+   * Optional canonical error status if the operation failed.
+   * 
+ * + * .google.rpc.Status error = 6; + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } + + public static final int METADATA_FIELD_NUMBER = 7; + private com.google.protobuf.Struct metadata_; + + /** + * + * + *
+   * Optional structured result metadata (e.g. pass_rate, total_examples,
+   * export_uri).
+   * 
+ * + * .google.protobuf.Struct metadata = 7; + * + * @return Whether the metadata field is set. + */ + @java.lang.Override + public boolean hasMetadata() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional structured result metadata (e.g. pass_rate, total_examples,
+   * export_uri).
+   * 
+ * + * .google.protobuf.Struct metadata = 7; + * + * @return The metadata. + */ + @java.lang.Override + public com.google.protobuf.Struct getMetadata() { + return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; + } + + /** + * + * + *
+   * Optional structured result metadata (e.g. pass_rate, total_examples,
+   * export_uri).
+   * 
+ * + * .google.protobuf.Struct metadata = 7; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { + return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(operationName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, operationName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(targetResourceName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, targetResourceName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(operationType_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, operationType_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(status_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, status_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(deduplicationToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, deduplicationToken_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(6, getError()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(7, getMetadata()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(operationName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, operationName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(targetResourceName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, targetResourceName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(operationType_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, operationType_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(status_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, status_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(deduplicationToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, deduplicationToken_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getError()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getMetadata()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1beta.OperationCompletedEvent)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.OperationCompletedEvent other = + (com.google.cloud.ces.v1beta.OperationCompletedEvent) obj; + + if (!getOperationName().equals(other.getOperationName())) return false; + if (!getTargetResourceName().equals(other.getTargetResourceName())) return false; + if (!getOperationType().equals(other.getOperationType())) return false; + if (!getStatus().equals(other.getStatus())) return false; + if (!getDeduplicationToken().equals(other.getDeduplicationToken())) return false; + if (hasError() != other.hasError()) return false; + if (hasError()) { + if (!getError().equals(other.getError())) return false; + } + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata().equals(other.getMetadata())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + OPERATION_NAME_FIELD_NUMBER; + hash = (53 * hash) + getOperationName().hashCode(); + hash = (37 * hash) + TARGET_RESOURCE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getTargetResourceName().hashCode(); + hash = (37 * hash) + OPERATION_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getOperationType().hashCode(); + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + hash = (37 * hash) + DEDUPLICATION_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getDeduplicationToken().hashCode(); + if (hasError()) { + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + } + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.OperationCompletedEvent parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.OperationCompletedEvent parseFrom( + 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.OperationCompletedEvent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.OperationCompletedEvent parseFrom( + com.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.OperationCompletedEvent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.OperationCompletedEvent 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.OperationCompletedEvent parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.OperationCompletedEvent parseFrom( + java.io.InputStream 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.OperationCompletedEvent parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.OperationCompletedEvent parseDelimitedFrom( + java.io.InputStream 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.OperationCompletedEvent 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.OperationCompletedEvent parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, 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.OperationCompletedEvent prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Event sent by the client or background worker to resume an assistant session
+   * after an asynchronous Long-Running Operation (LRO) completes.
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.OperationCompletedEvent} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.OperationCompletedEvent) + com.google.cloud.ces.v1beta.OperationCompletedEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_OperationCompletedEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_OperationCompletedEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.OperationCompletedEvent.class, + com.google.cloud.ces.v1beta.OperationCompletedEvent.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.OperationCompletedEvent.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetErrorFieldBuilder(); + internalGetMetadataFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + operationName_ = ""; + targetResourceName_ = ""; + operationType_ = ""; + status_ = ""; + deduplicationToken_ = ""; + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); + errorBuilder_ = null; + } + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); + metadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_OperationCompletedEvent_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.OperationCompletedEvent getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.OperationCompletedEvent.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.OperationCompletedEvent build() { + com.google.cloud.ces.v1beta.OperationCompletedEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.OperationCompletedEvent buildPartial() { + com.google.cloud.ces.v1beta.OperationCompletedEvent result = + new com.google.cloud.ces.v1beta.OperationCompletedEvent(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1beta.OperationCompletedEvent result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.operationName_ = operationName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.targetResourceName_ = targetResourceName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.operationType_ = operationType_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.status_ = status_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.deduplicationToken_ = deduplicationToken_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.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.v1beta.OperationCompletedEvent) { + return mergeFrom((com.google.cloud.ces.v1beta.OperationCompletedEvent) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.OperationCompletedEvent other) { + if (other == com.google.cloud.ces.v1beta.OperationCompletedEvent.getDefaultInstance()) + return this; + if (!other.getOperationName().isEmpty()) { + operationName_ = other.operationName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getTargetResourceName().isEmpty()) { + targetResourceName_ = other.targetResourceName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getOperationType().isEmpty()) { + operationType_ = other.operationType_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getStatus().isEmpty()) { + status_ = other.status_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getDeduplicationToken().isEmpty()) { + deduplicationToken_ = other.deduplicationToken_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasError()) { + mergeError(other.getError()); + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + operationName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + targetResourceName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + operationType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + status_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + deduplicationToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage(internalGetErrorFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + input.readMessage( + internalGetMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object operationName_ = ""; + + /** + * + * + *
+     * The operation resource name (e.g. `operations/{op}`).
+     * 
+ * + * string operation_name = 1; + * + * @return The operationName. + */ + public java.lang.String getOperationName() { + java.lang.Object ref = operationName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + operationName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The operation resource name (e.g. `operations/{op}`).
+     * 
+ * + * string operation_name = 1; + * + * @return The bytes for operationName. + */ + public com.google.protobuf.ByteString getOperationNameBytes() { + java.lang.Object ref = operationName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + operationName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The operation resource name (e.g. `operations/{op}`).
+     * 
+ * + * string operation_name = 1; + * + * @param value The operationName to set. + * @return This builder for chaining. + */ + public Builder setOperationName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + operationName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The operation resource name (e.g. `operations/{op}`).
+     * 
+ * + * string operation_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearOperationName() { + operationName_ = getDefaultInstance().getOperationName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * The operation resource name (e.g. `operations/{op}`).
+     * 
+ * + * string operation_name = 1; + * + * @param value The bytes for operationName to set. + * @return This builder for chaining. + */ + public Builder setOperationNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + operationName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object targetResourceName_ = ""; + + /** + * + * + *
+     * The primary resource targeted or produced by the operation
+     * (e.g. evaluation run ID, app ID, dataset ID).
+     * 
+ * + * string target_resource_name = 2; + * + * @return The targetResourceName. + */ + public java.lang.String getTargetResourceName() { + java.lang.Object ref = targetResourceName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetResourceName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The primary resource targeted or produced by the operation
+     * (e.g. evaluation run ID, app ID, dataset ID).
+     * 
+ * + * string target_resource_name = 2; + * + * @return The bytes for targetResourceName. + */ + public com.google.protobuf.ByteString getTargetResourceNameBytes() { + java.lang.Object ref = targetResourceName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetResourceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The primary resource targeted or produced by the operation
+     * (e.g. evaluation run ID, app ID, dataset ID).
+     * 
+ * + * string target_resource_name = 2; + * + * @param value The targetResourceName to set. + * @return This builder for chaining. + */ + public Builder setTargetResourceName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + targetResourceName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The primary resource targeted or produced by the operation
+     * (e.g. evaluation run ID, app ID, dataset ID).
+     * 
+ * + * string target_resource_name = 2; + * + * @return This builder for chaining. + */ + public Builder clearTargetResourceName() { + targetResourceName_ = getDefaultInstance().getTargetResourceName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * The primary resource targeted or produced by the operation
+     * (e.g. evaluation run ID, app ID, dataset ID).
+     * 
+ * + * string target_resource_name = 2; + * + * @param value The bytes for targetResourceName to set. + * @return This builder for chaining. + */ + public Builder setTargetResourceNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetResourceName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object operationType_ = ""; + + /** + * + * + *
+     * The operation type or tool name (e.g. "run_evaluation", "copy_app",
+     * "export_app").
+     * 
+ * + * string operation_type = 3; + * + * @return The operationType. + */ + public java.lang.String getOperationType() { + java.lang.Object ref = operationType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + operationType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The operation type or tool name (e.g. "run_evaluation", "copy_app",
+     * "export_app").
+     * 
+ * + * string operation_type = 3; + * + * @return The bytes for operationType. + */ + public com.google.protobuf.ByteString getOperationTypeBytes() { + java.lang.Object ref = operationType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + operationType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The operation type or tool name (e.g. "run_evaluation", "copy_app",
+     * "export_app").
+     * 
+ * + * string operation_type = 3; + * + * @param value The operationType to set. + * @return This builder for chaining. + */ + public Builder setOperationType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + operationType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * The operation type or tool name (e.g. "run_evaluation", "copy_app",
+     * "export_app").
+     * 
+ * + * string operation_type = 3; + * + * @return This builder for chaining. + */ + public Builder clearOperationType() { + operationType_ = getDefaultInstance().getOperationType(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * The operation type or tool name (e.g. "run_evaluation", "copy_app",
+     * "export_app").
+     * 
+ * + * string operation_type = 3; + * + * @param value The bytes for operationType to set. + * @return This builder for chaining. + */ + public Builder setOperationTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + operationType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object status_ = ""; + + /** + * + * + *
+     * Status of the operation run (e.g. "SUCCEEDED", "FAILED", "CANCELLED").
+     * 
+ * + * string status = 4; + * + * @return The status. + */ + public java.lang.String getStatus() { + java.lang.Object ref = status_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + status_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Status of the operation run (e.g. "SUCCEEDED", "FAILED", "CANCELLED").
+     * 
+ * + * string status = 4; + * + * @return The bytes for status. + */ + public com.google.protobuf.ByteString getStatusBytes() { + java.lang.Object ref = status_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + status_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Status of the operation run (e.g. "SUCCEEDED", "FAILED", "CANCELLED").
+     * 
+ * + * string status = 4; + * + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + status_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Status of the operation run (e.g. "SUCCEEDED", "FAILED", "CANCELLED").
+     * 
+ * + * string status = 4; + * + * @return This builder for chaining. + */ + public Builder clearStatus() { + status_ = getDefaultInstance().getStatus(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Status of the operation run (e.g. "SUCCEEDED", "FAILED", "CANCELLED").
+     * 
+ * + * string status = 4; + * + * @param value The bytes for status to set. + * @return This builder for chaining. + */ + public Builder setStatusBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + status_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object deduplicationToken_ = ""; + + /** + * + * + *
+     * Optional deduplication token (e.g. UUID) to prevent duplicate turn
+     * execution from concurrent browser tabs.
+     * 
+ * + * string deduplication_token = 5; + * + * @return The deduplicationToken. + */ + public java.lang.String getDeduplicationToken() { + java.lang.Object ref = deduplicationToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deduplicationToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional deduplication token (e.g. UUID) to prevent duplicate turn
+     * execution from concurrent browser tabs.
+     * 
+ * + * string deduplication_token = 5; + * + * @return The bytes for deduplicationToken. + */ + public com.google.protobuf.ByteString getDeduplicationTokenBytes() { + java.lang.Object ref = deduplicationToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deduplicationToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional deduplication token (e.g. UUID) to prevent duplicate turn
+     * execution from concurrent browser tabs.
+     * 
+ * + * string deduplication_token = 5; + * + * @param value The deduplicationToken to set. + * @return This builder for chaining. + */ + public Builder setDeduplicationToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + deduplicationToken_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional deduplication token (e.g. UUID) to prevent duplicate turn
+     * execution from concurrent browser tabs.
+     * 
+ * + * string deduplication_token = 5; + * + * @return This builder for chaining. + */ + public Builder clearDeduplicationToken() { + deduplicationToken_ = getDefaultInstance().getDeduplicationToken(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional deduplication token (e.g. UUID) to prevent duplicate turn
+     * execution from concurrent browser tabs.
+     * 
+ * + * string deduplication_token = 5; + * + * @param value The bytes for deduplicationToken to set. + * @return This builder for chaining. + */ + public Builder setDeduplicationTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + deduplicationToken_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private com.google.rpc.Status error_; + private com.google.protobuf.SingleFieldBuilder< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + errorBuilder_; + + /** + * + * + *
+     * Optional canonical error status if the operation failed.
+     * 
+ * + * .google.rpc.Status error = 6; + * + * @return Whether the error field is set. + */ + public boolean hasError() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * Optional canonical error status if the operation failed.
+     * 
+ * + * .google.rpc.Status error = 6; + * + * @return The error. + */ + public com.google.rpc.Status getError() { + if (errorBuilder_ == null) { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } else { + return errorBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional canonical error status if the operation failed.
+     * 
+ * + * .google.rpc.Status error = 6; + */ + public Builder setError(com.google.rpc.Status value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + error_ = value; + } else { + errorBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional canonical error status if the operation failed.
+     * 
+ * + * .google.rpc.Status error = 6; + */ + public Builder setError(com.google.rpc.Status.Builder builderForValue) { + if (errorBuilder_ == null) { + error_ = builderForValue.build(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional canonical error status if the operation failed.
+     * 
+ * + * .google.rpc.Status error = 6; + */ + public Builder mergeError(com.google.rpc.Status value) { + if (errorBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && error_ != null + && error_ != com.google.rpc.Status.getDefaultInstance()) { + getErrorBuilder().mergeFrom(value); + } else { + error_ = value; + } + } else { + errorBuilder_.mergeFrom(value); + } + if (error_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional canonical error status if the operation failed.
+     * 
+ * + * .google.rpc.Status error = 6; + */ + public Builder clearError() { + bitField0_ = (bitField0_ & ~0x00000020); + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); + errorBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional canonical error status if the operation failed.
+     * 
+ * + * .google.rpc.Status error = 6; + */ + public com.google.rpc.Status.Builder getErrorBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetErrorFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional canonical error status if the operation failed.
+     * 
+ * + * .google.rpc.Status error = 6; + */ + public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { + if (errorBuilder_ != null) { + return errorBuilder_.getMessageOrBuilder(); + } else { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } + } + + /** + * + * + *
+     * Optional canonical error status if the operation failed.
+     * 
+ * + * .google.rpc.Status error = 6; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + internalGetErrorFieldBuilder() { + if (errorBuilder_ == null) { + errorBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean()); + error_ = null; + } + return errorBuilder_; + } + + private com.google.protobuf.Struct metadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + metadataBuilder_; + + /** + * + * + *
+     * Optional structured result metadata (e.g. pass_rate, total_examples,
+     * export_uri).
+     * 
+ * + * .google.protobuf.Struct metadata = 7; + * + * @return Whether the metadata field is set. + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+     * Optional structured result metadata (e.g. pass_rate, total_examples,
+     * export_uri).
+     * 
+ * + * .google.protobuf.Struct metadata = 7; + * + * @return The metadata. + */ + public com.google.protobuf.Struct getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional structured result metadata (e.g. pass_rate, total_examples,
+     * export_uri).
+     * 
+ * + * .google.protobuf.Struct metadata = 7; + */ + public Builder setMetadata(com.google.protobuf.Struct value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + } else { + metadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional structured result metadata (e.g. pass_rate, total_examples,
+     * export_uri).
+     * 
+ * + * .google.protobuf.Struct metadata = 7; + */ + public Builder setMetadata(com.google.protobuf.Struct.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional structured result metadata (e.g. pass_rate, total_examples,
+     * export_uri).
+     * 
+ * + * .google.protobuf.Struct metadata = 7; + */ + public Builder mergeMetadata(com.google.protobuf.Struct value) { + if (metadataBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && metadata_ != null + && metadata_ != com.google.protobuf.Struct.getDefaultInstance()) { + getMetadataBuilder().mergeFrom(value); + } else { + metadata_ = value; + } + } else { + metadataBuilder_.mergeFrom(value); + } + if (metadata_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional structured result metadata (e.g. pass_rate, total_examples,
+     * export_uri).
+     * 
+ * + * .google.protobuf.Struct metadata = 7; + */ + public Builder clearMetadata() { + bitField0_ = (bitField0_ & ~0x00000040); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); + metadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional structured result metadata (e.g. pass_rate, total_examples,
+     * export_uri).
+     * 
+ * + * .google.protobuf.Struct metadata = 7; + */ + public com.google.protobuf.Struct.Builder getMetadataBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional structured result metadata (e.g. pass_rate, total_examples,
+     * export_uri).
+     * 
+ * + * .google.protobuf.Struct metadata = 7; + */ + public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; + } + } + + /** + * + * + *
+     * Optional structured result metadata (e.g. pass_rate, total_examples,
+     * export_uri).
+     * 
+ * + * .google.protobuf.Struct metadata = 7; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getMetadata(), getParentForChildren(), isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.OperationCompletedEvent) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.OperationCompletedEvent) + private static final com.google.cloud.ces.v1beta.OperationCompletedEvent DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.OperationCompletedEvent(); + } + + public static com.google.cloud.ces.v1beta.OperationCompletedEvent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationCompletedEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.OperationCompletedEvent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/OperationCompletedEventOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/OperationCompletedEventOrBuilder.java new file mode 100644 index 000000000000..58f9fd634d49 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/OperationCompletedEventOrBuilder.java @@ -0,0 +1,241 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language 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/session_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public interface OperationCompletedEventOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.OperationCompletedEvent) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The operation resource name (e.g. `operations/{op}`).
+   * 
+ * + * string operation_name = 1; + * + * @return The operationName. + */ + java.lang.String getOperationName(); + + /** + * + * + *
+   * The operation resource name (e.g. `operations/{op}`).
+   * 
+ * + * string operation_name = 1; + * + * @return The bytes for operationName. + */ + com.google.protobuf.ByteString getOperationNameBytes(); + + /** + * + * + *
+   * The primary resource targeted or produced by the operation
+   * (e.g. evaluation run ID, app ID, dataset ID).
+   * 
+ * + * string target_resource_name = 2; + * + * @return The targetResourceName. + */ + java.lang.String getTargetResourceName(); + + /** + * + * + *
+   * The primary resource targeted or produced by the operation
+   * (e.g. evaluation run ID, app ID, dataset ID).
+   * 
+ * + * string target_resource_name = 2; + * + * @return The bytes for targetResourceName. + */ + com.google.protobuf.ByteString getTargetResourceNameBytes(); + + /** + * + * + *
+   * The operation type or tool name (e.g. "run_evaluation", "copy_app",
+   * "export_app").
+   * 
+ * + * string operation_type = 3; + * + * @return The operationType. + */ + java.lang.String getOperationType(); + + /** + * + * + *
+   * The operation type or tool name (e.g. "run_evaluation", "copy_app",
+   * "export_app").
+   * 
+ * + * string operation_type = 3; + * + * @return The bytes for operationType. + */ + com.google.protobuf.ByteString getOperationTypeBytes(); + + /** + * + * + *
+   * Status of the operation run (e.g. "SUCCEEDED", "FAILED", "CANCELLED").
+   * 
+ * + * string status = 4; + * + * @return The status. + */ + java.lang.String getStatus(); + + /** + * + * + *
+   * Status of the operation run (e.g. "SUCCEEDED", "FAILED", "CANCELLED").
+   * 
+ * + * string status = 4; + * + * @return The bytes for status. + */ + com.google.protobuf.ByteString getStatusBytes(); + + /** + * + * + *
+   * Optional deduplication token (e.g. UUID) to prevent duplicate turn
+   * execution from concurrent browser tabs.
+   * 
+ * + * string deduplication_token = 5; + * + * @return The deduplicationToken. + */ + java.lang.String getDeduplicationToken(); + + /** + * + * + *
+   * Optional deduplication token (e.g. UUID) to prevent duplicate turn
+   * execution from concurrent browser tabs.
+   * 
+ * + * string deduplication_token = 5; + * + * @return The bytes for deduplicationToken. + */ + com.google.protobuf.ByteString getDeduplicationTokenBytes(); + + /** + * + * + *
+   * Optional canonical error status if the operation failed.
+   * 
+ * + * .google.rpc.Status error = 6; + * + * @return Whether the error field is set. + */ + boolean hasError(); + + /** + * + * + *
+   * Optional canonical error status if the operation failed.
+   * 
+ * + * .google.rpc.Status error = 6; + * + * @return The error. + */ + com.google.rpc.Status getError(); + + /** + * + * + *
+   * Optional canonical error status if the operation failed.
+   * 
+ * + * .google.rpc.Status error = 6; + */ + com.google.rpc.StatusOrBuilder getErrorOrBuilder(); + + /** + * + * + *
+   * Optional structured result metadata (e.g. pass_rate, total_examples,
+   * export_uri).
+   * 
+ * + * .google.protobuf.Struct metadata = 7; + * + * @return Whether the metadata field is set. + */ + boolean hasMetadata(); + + /** + * + * + *
+   * Optional structured result metadata (e.g. pass_rate, total_examples,
+   * export_uri).
+   * 
+ * + * .google.protobuf.Struct metadata = 7; + * + * @return The metadata. + */ + com.google.protobuf.Struct getMetadata(); + + /** + * + * + *
+   * Optional structured result metadata (e.g. pass_rate, total_examples,
+   * export_uri).
+   * 
+ * + * .google.protobuf.Struct metadata = 7; + */ + com.google.protobuf.StructOrBuilder getMetadataOrBuilder(); +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/OptionQuestionsChunk.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/OptionQuestionsChunk.java new file mode 100644 index 000000000000..bbbd990c1be4 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/OptionQuestionsChunk.java @@ -0,0 +1,3217 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language 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/session_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +/** + * + * + *
+ * Structured clarification options the assistant asks the user to choose
+ * among, transduced server-side out of the model's turn (the option block is
+ * stripped from the streamed and persisted text). The console renders a
+ * keyboard-navigable option list docked above the composer.
+ * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.OptionQuestionsChunk} + */ +@com.google.protobuf.Generated +public final class OptionQuestionsChunk extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.OptionQuestionsChunk) + OptionQuestionsChunkOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "OptionQuestionsChunk"); + } + + // Use OptionQuestionsChunk.newBuilder() to construct. + private OptionQuestionsChunk(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private OptionQuestionsChunk() { + questions_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_OptionQuestionsChunk_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_OptionQuestionsChunk_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.OptionQuestionsChunk.class, + com.google.cloud.ces.v1beta.OptionQuestionsChunk.Builder.class); + } + + public interface OptionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.OptionQuestionsChunk.Option) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Short plain-text option title (no markdown, no numbering).
+     * 
+ * + * string title = 1; + * + * @return The title. + */ + java.lang.String getTitle(); + + /** + * + * + *
+     * Short plain-text option title (no markdown, no numbering).
+     * 
+ * + * string title = 1; + * + * @return The bytes for title. + */ + com.google.protobuf.ByteString getTitleBytes(); + + /** + * + * + *
+     * Optional trade-off details shown as secondary text.
+     * 
+ * + * string details = 2; + * + * @return The details. + */ + java.lang.String getDetails(); + + /** + * + * + *
+     * Optional trade-off details shown as secondary text.
+     * 
+ * + * string details = 2; + * + * @return The bytes for details. + */ + com.google.protobuf.ByteString getDetailsBytes(); + + /** + * + * + *
+     * Optional message text to send when the option is chosen; defaults to
+     * `title` when empty.
+     * 
+ * + * string submit_text = 3; + * + * @return The submitText. + */ + java.lang.String getSubmitText(); + + /** + * + * + *
+     * Optional message text to send when the option is chosen; defaults to
+     * `title` when empty.
+     * 
+ * + * string submit_text = 3; + * + * @return The bytes for submitText. + */ + com.google.protobuf.ByteString getSubmitTextBytes(); + } + + /** + * + * + *
+   * A single selectable option.
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.OptionQuestionsChunk.Option} + */ + public static final class Option extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.OptionQuestionsChunk.Option) + OptionOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Option"); + } + + // Use Option.newBuilder() to construct. + private Option(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Option() { + title_ = ""; + details_ = ""; + submitText_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_OptionQuestionsChunk_Option_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_OptionQuestionsChunk_Option_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.OptionQuestionsChunk.Option.class, + com.google.cloud.ces.v1beta.OptionQuestionsChunk.Option.Builder.class); + } + + public static final int TITLE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object title_ = ""; + + /** + * + * + *
+     * Short plain-text option title (no markdown, no numbering).
+     * 
+ * + * string title = 1; + * + * @return The title. + */ + @java.lang.Override + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } + } + + /** + * + * + *
+     * Short plain-text option title (no markdown, no numbering).
+     * 
+ * + * string title = 1; + * + * @return The bytes for title. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DETAILS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object details_ = ""; + + /** + * + * + *
+     * Optional trade-off details shown as secondary text.
+     * 
+ * + * string details = 2; + * + * @return The details. + */ + @java.lang.Override + public java.lang.String getDetails() { + java.lang.Object ref = details_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + details_ = s; + return s; + } + } + + /** + * + * + *
+     * Optional trade-off details shown as secondary text.
+     * 
+ * + * string details = 2; + * + * @return The bytes for details. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDetailsBytes() { + java.lang.Object ref = details_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + details_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUBMIT_TEXT_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object submitText_ = ""; + + /** + * + * + *
+     * Optional message text to send when the option is chosen; defaults to
+     * `title` when empty.
+     * 
+ * + * string submit_text = 3; + * + * @return The submitText. + */ + @java.lang.Override + public java.lang.String getSubmitText() { + java.lang.Object ref = submitText_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + submitText_ = s; + return s; + } + } + + /** + * + * + *
+     * Optional message text to send when the option is chosen; defaults to
+     * `title` when empty.
+     * 
+ * + * string submit_text = 3; + * + * @return The bytes for submitText. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSubmitTextBytes() { + java.lang.Object ref = submitText_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + submitText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, title_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(details_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, details_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(submitText_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, submitText_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, title_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(details_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, details_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(submitText_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, submitText_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.OptionQuestionsChunk.Option)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.OptionQuestionsChunk.Option other = + (com.google.cloud.ces.v1beta.OptionQuestionsChunk.Option) obj; + + if (!getTitle().equals(other.getTitle())) return false; + if (!getDetails().equals(other.getDetails())) return false; + if (!getSubmitText().equals(other.getSubmitText())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + hash = (37 * hash) + DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getDetails().hashCode(); + hash = (37 * hash) + SUBMIT_TEXT_FIELD_NUMBER; + hash = (53 * hash) + getSubmitText().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.OptionQuestionsChunk.Option parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.OptionQuestionsChunk.Option parseFrom( + 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.OptionQuestionsChunk.Option parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.OptionQuestionsChunk.Option parseFrom( + com.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.OptionQuestionsChunk.Option parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.OptionQuestionsChunk.Option 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.OptionQuestionsChunk.Option parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.OptionQuestionsChunk.Option parseFrom( + java.io.InputStream 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.OptionQuestionsChunk.Option parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.OptionQuestionsChunk.Option parseDelimitedFrom( + java.io.InputStream 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.OptionQuestionsChunk.Option 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.OptionQuestionsChunk.Option parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, 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.OptionQuestionsChunk.Option prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * A single selectable option.
+     * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.OptionQuestionsChunk.Option} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.OptionQuestionsChunk.Option) + com.google.cloud.ces.v1beta.OptionQuestionsChunk.OptionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_OptionQuestionsChunk_Option_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_OptionQuestionsChunk_Option_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.OptionQuestionsChunk.Option.class, + com.google.cloud.ces.v1beta.OptionQuestionsChunk.Option.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.OptionQuestionsChunk.Option.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + title_ = ""; + details_ = ""; + submitText_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_OptionQuestionsChunk_Option_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.OptionQuestionsChunk.Option getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.OptionQuestionsChunk.Option.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.OptionQuestionsChunk.Option build() { + com.google.cloud.ces.v1beta.OptionQuestionsChunk.Option result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.OptionQuestionsChunk.Option buildPartial() { + com.google.cloud.ces.v1beta.OptionQuestionsChunk.Option result = + new com.google.cloud.ces.v1beta.OptionQuestionsChunk.Option(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1beta.OptionQuestionsChunk.Option result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.title_ = title_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.details_ = details_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.submitText_ = submitText_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.OptionQuestionsChunk.Option) { + return mergeFrom((com.google.cloud.ces.v1beta.OptionQuestionsChunk.Option) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.OptionQuestionsChunk.Option other) { + if (other == com.google.cloud.ces.v1beta.OptionQuestionsChunk.Option.getDefaultInstance()) + return this; + if (!other.getTitle().isEmpty()) { + title_ = other.title_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDetails().isEmpty()) { + details_ = other.details_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getSubmitText().isEmpty()) { + submitText_ = other.submitText_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + title_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + details_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + submitText_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object title_ = ""; + + /** + * + * + *
+       * Short plain-text option title (no markdown, no numbering).
+       * 
+ * + * string title = 1; + * + * @return The title. + */ + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Short plain-text option title (no markdown, no numbering).
+       * 
+ * + * string title = 1; + * + * @return The bytes for title. + */ + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Short plain-text option title (no markdown, no numbering).
+       * 
+ * + * string title = 1; + * + * @param value The title to set. + * @return This builder for chaining. + */ + public Builder setTitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + title_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Short plain-text option title (no markdown, no numbering).
+       * 
+ * + * string title = 1; + * + * @return This builder for chaining. + */ + public Builder clearTitle() { + title_ = getDefaultInstance().getTitle(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+       * Short plain-text option title (no markdown, no numbering).
+       * 
+ * + * string title = 1; + * + * @param value The bytes for title to set. + * @return This builder for chaining. + */ + public Builder setTitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + title_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object details_ = ""; + + /** + * + * + *
+       * Optional trade-off details shown as secondary text.
+       * 
+ * + * string details = 2; + * + * @return The details. + */ + public java.lang.String getDetails() { + java.lang.Object ref = details_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + details_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Optional trade-off details shown as secondary text.
+       * 
+ * + * string details = 2; + * + * @return The bytes for details. + */ + public com.google.protobuf.ByteString getDetailsBytes() { + java.lang.Object ref = details_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + details_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Optional trade-off details shown as secondary text.
+       * 
+ * + * string details = 2; + * + * @param value The details to set. + * @return This builder for chaining. + */ + public Builder setDetails(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + details_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional trade-off details shown as secondary text.
+       * 
+ * + * string details = 2; + * + * @return This builder for chaining. + */ + public Builder clearDetails() { + details_ = getDefaultInstance().getDetails(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional trade-off details shown as secondary text.
+       * 
+ * + * string details = 2; + * + * @param value The bytes for details to set. + * @return This builder for chaining. + */ + public Builder setDetailsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + details_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object submitText_ = ""; + + /** + * + * + *
+       * Optional message text to send when the option is chosen; defaults to
+       * `title` when empty.
+       * 
+ * + * string submit_text = 3; + * + * @return The submitText. + */ + public java.lang.String getSubmitText() { + java.lang.Object ref = submitText_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + submitText_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Optional message text to send when the option is chosen; defaults to
+       * `title` when empty.
+       * 
+ * + * string submit_text = 3; + * + * @return The bytes for submitText. + */ + public com.google.protobuf.ByteString getSubmitTextBytes() { + java.lang.Object ref = submitText_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + submitText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Optional message text to send when the option is chosen; defaults to
+       * `title` when empty.
+       * 
+ * + * string submit_text = 3; + * + * @param value The submitText to set. + * @return This builder for chaining. + */ + public Builder setSubmitText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + submitText_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional message text to send when the option is chosen; defaults to
+       * `title` when empty.
+       * 
+ * + * string submit_text = 3; + * + * @return This builder for chaining. + */ + public Builder clearSubmitText() { + submitText_ = getDefaultInstance().getSubmitText(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional message text to send when the option is chosen; defaults to
+       * `title` when empty.
+       * 
+ * + * string submit_text = 3; + * + * @param value The bytes for submitText to set. + * @return This builder for chaining. + */ + public Builder setSubmitTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + submitText_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.OptionQuestionsChunk.Option) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.OptionQuestionsChunk.Option) + private static final com.google.cloud.ces.v1beta.OptionQuestionsChunk.Option DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.OptionQuestionsChunk.Option(); + } + + public static com.google.cloud.ces.v1beta.OptionQuestionsChunk.Option getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser
*/ default void setAgentOpsObservability( @@ -1127,8 +1126,7 @@ public void setIamPolicy( * *
      * Enables/Disables required GCP services and configures AgentOps
-     * observability settings calling the Admin Settings executable node to
-     * update the AgentOps Observability feature.
+     * observability settings.
      * 
*/ public void setAgentOpsObservability( @@ -1338,8 +1336,7 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque * *
      * Enables/Disables required GCP services and configures AgentOps
-     * observability settings calling the Admin Settings executable node to
-     * update the AgentOps Observability feature.
+     * observability settings.
      * 
*/ public com.google.longrunning.Operation setAgentOpsObservability( @@ -1532,8 +1529,7 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque * *
      * Enables/Disables required GCP services and configures AgentOps
-     * observability settings calling the Admin Settings executable node to
-     * update the AgentOps Observability feature.
+     * observability settings.
      * 
*/ public com.google.longrunning.Operation setAgentOpsObservability( @@ -1734,8 +1730,7 @@ protected DataAgentServiceFutureStub build( * *
      * Enables/Disables required GCP services and configures AgentOps
-     * observability settings calling the Admin Settings executable node to
-     * update the AgentOps Observability feature.
+     * observability settings.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/BigQueryDatasetReference.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/BigQueryDatasetReference.java new file mode 100644 index 000000000000..58726c41701a --- /dev/null +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/BigQueryDatasetReference.java @@ -0,0 +1,793 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/geminidataanalytics/v1/datasource.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.geminidataanalytics.v1; + +/** + * + * + *
+ * Message representing a reference to a single BigQuery dataset.
+ * 
+ * + * Protobuf type {@code google.cloud.geminidataanalytics.v1.BigQueryDatasetReference} + */ +@com.google.protobuf.Generated +public final class BigQueryDatasetReference extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.geminidataanalytics.v1.BigQueryDatasetReference) + BigQueryDatasetReferenceOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "BigQueryDatasetReference"); + } + + // Use BigQueryDatasetReference.newBuilder() to construct. + private BigQueryDatasetReference(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private BigQueryDatasetReference() { + projectId_ = ""; + datasetId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1.DatasourceProto + .internal_static_google_cloud_geminidataanalytics_v1_BigQueryDatasetReference_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.geminidataanalytics.v1.DatasourceProto + .internal_static_google_cloud_geminidataanalytics_v1_BigQueryDatasetReference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference.class, + com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + + /** + * + * + *
+   * Required. The project ID that the dataset belongs to.
+   * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The projectId. + */ + @java.lang.Override + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The project ID that the dataset belongs to.
+   * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for projectId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATASET_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object datasetId_ = ""; + + /** + * + * + *
+   * Required. The dataset ID.
+   * 
+ * + * string dataset_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The datasetId. + */ + @java.lang.Override + public java.lang.String getDatasetId() { + java.lang.Object ref = datasetId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + datasetId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The dataset ID.
+   * 
+ * + * string dataset_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for datasetId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDatasetIdBytes() { + java.lang.Object ref = datasetId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + datasetId_ = 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(projectId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, projectId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(datasetId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, datasetId_); + } + 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(projectId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, projectId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(datasetId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, datasetId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference)) { + return super.equals(obj); + } + com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference other = + (com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference) obj; + + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getDatasetId().equals(other.getDatasetId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + DATASET_ID_FIELD_NUMBER; + hash = (53 * hash) + getDatasetId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message representing a reference to a single BigQuery dataset.
+   * 
+ * + * Protobuf type {@code google.cloud.geminidataanalytics.v1.BigQueryDatasetReference} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.geminidataanalytics.v1.BigQueryDatasetReference) + com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReferenceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1.DatasourceProto + .internal_static_google_cloud_geminidataanalytics_v1_BigQueryDatasetReference_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.geminidataanalytics.v1.DatasourceProto + .internal_static_google_cloud_geminidataanalytics_v1_BigQueryDatasetReference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference.class, + com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference.Builder.class); + } + + // Construct using com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + projectId_ = ""; + datasetId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.geminidataanalytics.v1.DatasourceProto + .internal_static_google_cloud_geminidataanalytics_v1_BigQueryDatasetReference_descriptor; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference + getDefaultInstanceForType() { + return com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference build() { + com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference buildPartial() { + com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference result = + new com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectId_ = projectId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.datasetId_ = datasetId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference) { + return mergeFrom((com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference other) { + if (other + == com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference.getDefaultInstance()) + return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDatasetId().isEmpty()) { + datasetId_ = other.datasetId_; + 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: + { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + datasetId_ = 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 projectId_ = ""; + + /** + * + * + *
+     * Required. The project ID that the dataset belongs to.
+     * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The projectId. + */ + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The project ID that the dataset belongs to.
+     * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for projectId. + */ + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The project ID that the dataset belongs to.
+     * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The projectId to set. + * @return This builder for chaining. + */ + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + projectId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The project ID that the dataset belongs to.
+     * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The project ID that the dataset belongs to.
+     * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object datasetId_ = ""; + + /** + * + * + *
+     * Required. The dataset ID.
+     * 
+ * + * string dataset_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The datasetId. + */ + public java.lang.String getDatasetId() { + java.lang.Object ref = datasetId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + datasetId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The dataset ID.
+     * 
+ * + * string dataset_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for datasetId. + */ + public com.google.protobuf.ByteString getDatasetIdBytes() { + java.lang.Object ref = datasetId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + datasetId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The dataset ID.
+     * 
+ * + * string dataset_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The datasetId to set. + * @return This builder for chaining. + */ + public Builder setDatasetId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + datasetId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The dataset ID.
+     * 
+ * + * string dataset_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDatasetId() { + datasetId_ = getDefaultInstance().getDatasetId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The dataset ID.
+     * 
+ * + * string dataset_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for datasetId to set. + * @return This builder for chaining. + */ + public Builder setDatasetIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + datasetId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.geminidataanalytics.v1.BigQueryDatasetReference) + } + + // @@protoc_insertion_point(class_scope:google.cloud.geminidataanalytics.v1.BigQueryDatasetReference) + private static final com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference(); + } + + public static com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BigQueryDatasetReference parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/BigQueryDatasetReferenceOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/BigQueryDatasetReferenceOrBuilder.java new file mode 100644 index 000000000000..4ab3ffb05bf5 --- /dev/null +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/BigQueryDatasetReferenceOrBuilder.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/geminidataanalytics/v1/datasource.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.geminidataanalytics.v1; + +@com.google.protobuf.Generated +public interface BigQueryDatasetReferenceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.geminidataanalytics.v1.BigQueryDatasetReference) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The project ID that the dataset belongs to.
+   * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The projectId. + */ + java.lang.String getProjectId(); + + /** + * + * + *
+   * Required. The project ID that the dataset belongs to.
+   * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for projectId. + */ + com.google.protobuf.ByteString getProjectIdBytes(); + + /** + * + * + *
+   * Required. The dataset ID.
+   * 
+ * + * string dataset_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The datasetId. + */ + java.lang.String getDatasetId(); + + /** + * + * + *
+   * Required. The dataset ID.
+   * 
+ * + * string dataset_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for datasetId. + */ + com.google.protobuf.ByteString getDatasetIdBytes(); +} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/BigQueryTableReferences.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/BigQueryTableReferences.java index 013d3d924b9b..040be7439e7b 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/BigQueryTableReferences.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/BigQueryTableReferences.java @@ -73,6 +73,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.geminidataanalytics.v1.BigQueryTableReferences.Builder.class); } + private int bitField0_; public static final int TABLE_REFERENCES_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -275,6 +276,95 @@ public int getPropertyGraphReferencesCount() { return propertyGraphReferences_.get(index); } + public static final int SEARCH_SCOPE_FIELD_NUMBER = 3; + private com.google.cloud.geminidataanalytics.v1.SearchScope searchScope_; + + /** + * + * + *
+   * Optional. Search over BigQuery resources to discover most relevant tables
+   * to the query.
+   *
+   * When set, at least one of `include_project_ids` or
+   * `include_dataset_references` must be populated with non-blank identifiers.
+   * Matches from the two fields are unioned (OR-ed).
+   *
+   * Note: `search_scope` is only supported for standalone conversations
+   * (`ChatRequest.inline_context` or
+   * `ClientManagedResourceContext.inline_context`) and is not supported in
+   * [DataAgent][google.cloud.geminidataanalytics.v1.DataAgent].
+   * 
+ * + * + * .google.cloud.geminidataanalytics.v1.SearchScope search_scope = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the searchScope field is set. + */ + @java.lang.Override + public boolean hasSearchScope() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. Search over BigQuery resources to discover most relevant tables
+   * to the query.
+   *
+   * When set, at least one of `include_project_ids` or
+   * `include_dataset_references` must be populated with non-blank identifiers.
+   * Matches from the two fields are unioned (OR-ed).
+   *
+   * Note: `search_scope` is only supported for standalone conversations
+   * (`ChatRequest.inline_context` or
+   * `ClientManagedResourceContext.inline_context`) and is not supported in
+   * [DataAgent][google.cloud.geminidataanalytics.v1.DataAgent].
+   * 
+ * + * + * .google.cloud.geminidataanalytics.v1.SearchScope search_scope = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The searchScope. + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1.SearchScope getSearchScope() { + return searchScope_ == null + ? com.google.cloud.geminidataanalytics.v1.SearchScope.getDefaultInstance() + : searchScope_; + } + + /** + * + * + *
+   * Optional. Search over BigQuery resources to discover most relevant tables
+   * to the query.
+   *
+   * When set, at least one of `include_project_ids` or
+   * `include_dataset_references` must be populated with non-blank identifiers.
+   * Matches from the two fields are unioned (OR-ed).
+   *
+   * Note: `search_scope` is only supported for standalone conversations
+   * (`ChatRequest.inline_context` or
+   * `ClientManagedResourceContext.inline_context`) and is not supported in
+   * [DataAgent][google.cloud.geminidataanalytics.v1.DataAgent].
+   * 
+ * + * + * .google.cloud.geminidataanalytics.v1.SearchScope search_scope = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1.SearchScopeOrBuilder getSearchScopeOrBuilder() { + return searchScope_ == null + ? com.google.cloud.geminidataanalytics.v1.SearchScope.getDefaultInstance() + : searchScope_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -295,6 +385,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < propertyGraphReferences_.size(); i++) { output.writeMessage(2, propertyGraphReferences_.get(i)); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getSearchScope()); + } getUnknownFields().writeTo(output); } @@ -312,6 +405,9 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 2, propertyGraphReferences_.get(i)); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSearchScope()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -331,6 +427,10 @@ public boolean equals(final java.lang.Object obj) { if (!getTableReferencesList().equals(other.getTableReferencesList())) return false; if (!getPropertyGraphReferencesList().equals(other.getPropertyGraphReferencesList())) return false; + if (hasSearchScope() != other.hasSearchScope()) return false; + if (hasSearchScope()) { + if (!getSearchScope().equals(other.getSearchScope())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -350,6 +450,10 @@ public int hashCode() { hash = (37 * hash) + PROPERTY_GRAPH_REFERENCES_FIELD_NUMBER; hash = (53 * hash) + getPropertyGraphReferencesList().hashCode(); } + if (hasSearchScope()) { + hash = (37 * hash) + SEARCH_SCOPE_FIELD_NUMBER; + hash = (53 * hash) + getSearchScope().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -483,10 +587,21 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.geminidataanalytics.v1.BigQueryTableReferences.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) { + internalGetTableReferencesFieldBuilder(); + internalGetPropertyGraphReferencesFieldBuilder(); + internalGetSearchScopeFieldBuilder(); + } } @java.lang.Override @@ -507,6 +622,11 @@ public Builder clear() { propertyGraphReferencesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); + searchScope_ = null; + if (searchScopeBuilder_ != null) { + searchScopeBuilder_.dispose(); + searchScopeBuilder_ = null; + } return this; } @@ -569,6 +689,13 @@ private void buildPartialRepeatedFields( private void buildPartial0( com.google.cloud.geminidataanalytics.v1.BigQueryTableReferences result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.searchScope_ = + searchScopeBuilder_ == null ? searchScope_ : searchScopeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -640,6 +767,9 @@ public Builder mergeFrom( } } } + if (other.hasSearchScope()) { + mergeSearchScope(other.getSearchScope()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -695,6 +825,13 @@ public Builder mergeFrom( } break; } // case 18 + case 26: + { + input.readMessage( + internalGetSearchScopeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1643,6 +1780,310 @@ public Builder removePropertyGraphReferences(int index) { return propertyGraphReferencesBuilder_; } + private com.google.cloud.geminidataanalytics.v1.SearchScope searchScope_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.geminidataanalytics.v1.SearchScope, + com.google.cloud.geminidataanalytics.v1.SearchScope.Builder, + com.google.cloud.geminidataanalytics.v1.SearchScopeOrBuilder> + searchScopeBuilder_; + + /** + * + * + *
+     * Optional. Search over BigQuery resources to discover most relevant tables
+     * to the query.
+     *
+     * When set, at least one of `include_project_ids` or
+     * `include_dataset_references` must be populated with non-blank identifiers.
+     * Matches from the two fields are unioned (OR-ed).
+     *
+     * Note: `search_scope` is only supported for standalone conversations
+     * (`ChatRequest.inline_context` or
+     * `ClientManagedResourceContext.inline_context`) and is not supported in
+     * [DataAgent][google.cloud.geminidataanalytics.v1.DataAgent].
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1.SearchScope search_scope = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the searchScope field is set. + */ + public boolean hasSearchScope() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Optional. Search over BigQuery resources to discover most relevant tables
+     * to the query.
+     *
+     * When set, at least one of `include_project_ids` or
+     * `include_dataset_references` must be populated with non-blank identifiers.
+     * Matches from the two fields are unioned (OR-ed).
+     *
+     * Note: `search_scope` is only supported for standalone conversations
+     * (`ChatRequest.inline_context` or
+     * `ClientManagedResourceContext.inline_context`) and is not supported in
+     * [DataAgent][google.cloud.geminidataanalytics.v1.DataAgent].
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1.SearchScope search_scope = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The searchScope. + */ + public com.google.cloud.geminidataanalytics.v1.SearchScope getSearchScope() { + if (searchScopeBuilder_ == null) { + return searchScope_ == null + ? com.google.cloud.geminidataanalytics.v1.SearchScope.getDefaultInstance() + : searchScope_; + } else { + return searchScopeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Search over BigQuery resources to discover most relevant tables
+     * to the query.
+     *
+     * When set, at least one of `include_project_ids` or
+     * `include_dataset_references` must be populated with non-blank identifiers.
+     * Matches from the two fields are unioned (OR-ed).
+     *
+     * Note: `search_scope` is only supported for standalone conversations
+     * (`ChatRequest.inline_context` or
+     * `ClientManagedResourceContext.inline_context`) and is not supported in
+     * [DataAgent][google.cloud.geminidataanalytics.v1.DataAgent].
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1.SearchScope search_scope = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSearchScope(com.google.cloud.geminidataanalytics.v1.SearchScope value) { + if (searchScopeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + searchScope_ = value; + } else { + searchScopeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Search over BigQuery resources to discover most relevant tables
+     * to the query.
+     *
+     * When set, at least one of `include_project_ids` or
+     * `include_dataset_references` must be populated with non-blank identifiers.
+     * Matches from the two fields are unioned (OR-ed).
+     *
+     * Note: `search_scope` is only supported for standalone conversations
+     * (`ChatRequest.inline_context` or
+     * `ClientManagedResourceContext.inline_context`) and is not supported in
+     * [DataAgent][google.cloud.geminidataanalytics.v1.DataAgent].
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1.SearchScope search_scope = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSearchScope( + com.google.cloud.geminidataanalytics.v1.SearchScope.Builder builderForValue) { + if (searchScopeBuilder_ == null) { + searchScope_ = builderForValue.build(); + } else { + searchScopeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Search over BigQuery resources to discover most relevant tables
+     * to the query.
+     *
+     * When set, at least one of `include_project_ids` or
+     * `include_dataset_references` must be populated with non-blank identifiers.
+     * Matches from the two fields are unioned (OR-ed).
+     *
+     * Note: `search_scope` is only supported for standalone conversations
+     * (`ChatRequest.inline_context` or
+     * `ClientManagedResourceContext.inline_context`) and is not supported in
+     * [DataAgent][google.cloud.geminidataanalytics.v1.DataAgent].
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1.SearchScope search_scope = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSearchScope(com.google.cloud.geminidataanalytics.v1.SearchScope value) { + if (searchScopeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && searchScope_ != null + && searchScope_ + != com.google.cloud.geminidataanalytics.v1.SearchScope.getDefaultInstance()) { + getSearchScopeBuilder().mergeFrom(value); + } else { + searchScope_ = value; + } + } else { + searchScopeBuilder_.mergeFrom(value); + } + if (searchScope_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Search over BigQuery resources to discover most relevant tables
+     * to the query.
+     *
+     * When set, at least one of `include_project_ids` or
+     * `include_dataset_references` must be populated with non-blank identifiers.
+     * Matches from the two fields are unioned (OR-ed).
+     *
+     * Note: `search_scope` is only supported for standalone conversations
+     * (`ChatRequest.inline_context` or
+     * `ClientManagedResourceContext.inline_context`) and is not supported in
+     * [DataAgent][google.cloud.geminidataanalytics.v1.DataAgent].
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1.SearchScope search_scope = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSearchScope() { + bitField0_ = (bitField0_ & ~0x00000004); + searchScope_ = null; + if (searchScopeBuilder_ != null) { + searchScopeBuilder_.dispose(); + searchScopeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Search over BigQuery resources to discover most relevant tables
+     * to the query.
+     *
+     * When set, at least one of `include_project_ids` or
+     * `include_dataset_references` must be populated with non-blank identifiers.
+     * Matches from the two fields are unioned (OR-ed).
+     *
+     * Note: `search_scope` is only supported for standalone conversations
+     * (`ChatRequest.inline_context` or
+     * `ClientManagedResourceContext.inline_context`) and is not supported in
+     * [DataAgent][google.cloud.geminidataanalytics.v1.DataAgent].
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1.SearchScope search_scope = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.geminidataanalytics.v1.SearchScope.Builder getSearchScopeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetSearchScopeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Search over BigQuery resources to discover most relevant tables
+     * to the query.
+     *
+     * When set, at least one of `include_project_ids` or
+     * `include_dataset_references` must be populated with non-blank identifiers.
+     * Matches from the two fields are unioned (OR-ed).
+     *
+     * Note: `search_scope` is only supported for standalone conversations
+     * (`ChatRequest.inline_context` or
+     * `ClientManagedResourceContext.inline_context`) and is not supported in
+     * [DataAgent][google.cloud.geminidataanalytics.v1.DataAgent].
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1.SearchScope search_scope = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.geminidataanalytics.v1.SearchScopeOrBuilder getSearchScopeOrBuilder() { + if (searchScopeBuilder_ != null) { + return searchScopeBuilder_.getMessageOrBuilder(); + } else { + return searchScope_ == null + ? com.google.cloud.geminidataanalytics.v1.SearchScope.getDefaultInstance() + : searchScope_; + } + } + + /** + * + * + *
+     * Optional. Search over BigQuery resources to discover most relevant tables
+     * to the query.
+     *
+     * When set, at least one of `include_project_ids` or
+     * `include_dataset_references` must be populated with non-blank identifiers.
+     * Matches from the two fields are unioned (OR-ed).
+     *
+     * Note: `search_scope` is only supported for standalone conversations
+     * (`ChatRequest.inline_context` or
+     * `ClientManagedResourceContext.inline_context`) and is not supported in
+     * [DataAgent][google.cloud.geminidataanalytics.v1.DataAgent].
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1.SearchScope search_scope = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.geminidataanalytics.v1.SearchScope, + com.google.cloud.geminidataanalytics.v1.SearchScope.Builder, + com.google.cloud.geminidataanalytics.v1.SearchScopeOrBuilder> + internalGetSearchScopeFieldBuilder() { + if (searchScopeBuilder_ == null) { + searchScopeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.geminidataanalytics.v1.SearchScope, + com.google.cloud.geminidataanalytics.v1.SearchScope.Builder, + com.google.cloud.geminidataanalytics.v1.SearchScopeOrBuilder>( + getSearchScope(), getParentForChildren(), isClean()); + searchScope_ = null; + } + return searchScopeBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.geminidataanalytics.v1.BigQueryTableReferences) } diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/BigQueryTableReferencesOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/BigQueryTableReferencesOrBuilder.java index a64f615b933d..bd14f5777139 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/BigQueryTableReferencesOrBuilder.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/BigQueryTableReferencesOrBuilder.java @@ -183,4 +183,77 @@ com.google.cloud.geminidataanalytics.v1.BigQueryPropertyGraphReference getProper */ com.google.cloud.geminidataanalytics.v1.BigQueryPropertyGraphReferenceOrBuilder getPropertyGraphReferencesOrBuilder(int index); + + /** + * + * + *
+   * Optional. Search over BigQuery resources to discover most relevant tables
+   * to the query.
+   *
+   * When set, at least one of `include_project_ids` or
+   * `include_dataset_references` must be populated with non-blank identifiers.
+   * Matches from the two fields are unioned (OR-ed).
+   *
+   * Note: `search_scope` is only supported for standalone conversations
+   * (`ChatRequest.inline_context` or
+   * `ClientManagedResourceContext.inline_context`) and is not supported in
+   * [DataAgent][google.cloud.geminidataanalytics.v1.DataAgent].
+   * 
+ * + * + * .google.cloud.geminidataanalytics.v1.SearchScope search_scope = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the searchScope field is set. + */ + boolean hasSearchScope(); + + /** + * + * + *
+   * Optional. Search over BigQuery resources to discover most relevant tables
+   * to the query.
+   *
+   * When set, at least one of `include_project_ids` or
+   * `include_dataset_references` must be populated with non-blank identifiers.
+   * Matches from the two fields are unioned (OR-ed).
+   *
+   * Note: `search_scope` is only supported for standalone conversations
+   * (`ChatRequest.inline_context` or
+   * `ClientManagedResourceContext.inline_context`) and is not supported in
+   * [DataAgent][google.cloud.geminidataanalytics.v1.DataAgent].
+   * 
+ * + * + * .google.cloud.geminidataanalytics.v1.SearchScope search_scope = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The searchScope. + */ + com.google.cloud.geminidataanalytics.v1.SearchScope getSearchScope(); + + /** + * + * + *
+   * Optional. Search over BigQuery resources to discover most relevant tables
+   * to the query.
+   *
+   * When set, at least one of `include_project_ids` or
+   * `include_dataset_references` must be populated with non-blank identifiers.
+   * Matches from the two fields are unioned (OR-ed).
+   *
+   * Note: `search_scope` is only supported for standalone conversations
+   * (`ChatRequest.inline_context` or
+   * `ClientManagedResourceContext.inline_context`) and is not supported in
+   * [DataAgent][google.cloud.geminidataanalytics.v1.DataAgent].
+   * 
+ * + * + * .google.cloud.geminidataanalytics.v1.SearchScope search_scope = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.geminidataanalytics.v1.SearchScopeOrBuilder getSearchScopeOrBuilder(); } diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/ChatRequest.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/ChatRequest.java index 498246b75904..39b5ed09b6ca 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/ChatRequest.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/ChatRequest.java @@ -87,8 +87,8 @@ public enum ThinkingMode implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * Unspecified thinking mode, agent will use THINKING mode by default except
-     * for BigQuery user defaulting to FAST mode by default.
+     * The default value. For BigQuery and Looker data sources, the agent uses
+     * FAST. For all other data sources, the agent uses THINKING.
      * 
* * THINKING_MODE_UNSPECIFIED = 0; @@ -131,8 +131,8 @@ public enum ThinkingMode implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * Unspecified thinking mode, agent will use THINKING mode by default except
-     * for BigQuery user defaulting to FAST mode by default.
+     * The default value. For BigQuery and Looker data sources, the agent uses
+     * FAST. For all other data sources, the agent uses THINKING.
      * 
* * THINKING_MODE_UNSPECIFIED = 0; diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/DataAgent.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/DataAgent.java index 8896b5f38971..09f7c15b3527 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/DataAgent.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/DataAgent.java @@ -833,7 +833,10 @@ public com.google.protobuf.ByteString getKmsKeyBytes() { * `bigquery_agent_analytics_table` is set. On a BigQuery agent, enabling * this without a table has no effect: no table is created for the agent * and no rows are written. On an agent whose datasource is not BigQuery, - * `CreateDataAgent` rejects either field with `INVALID_ARGUMENT`. + * `CreateDataAgent` and `UpdateDataAgent` reject setting this field to + * `true` or setting `bigquery_agent_analytics_table` with + * `INVALID_ARGUMENT`. See `bigquery_agent_analytics_table` for when this + * is checked. * * This setting is independent of the project-level BigQuery Agent Analytics * setting configured through `SetAgentOpsObservability`. An agent does not @@ -872,7 +875,10 @@ public boolean hasBigqueryAgentAnalyticsEnabled() { * `bigquery_agent_analytics_table` is set. On a BigQuery agent, enabling * this without a table has no effect: no table is created for the agent * and no rows are written. On an agent whose datasource is not BigQuery, - * `CreateDataAgent` rejects either field with `INVALID_ARGUMENT`. + * `CreateDataAgent` and `UpdateDataAgent` reject setting this field to + * `true` or setting `bigquery_agent_analytics_table` with + * `INVALID_ARGUMENT`. See `bigquery_agent_analytics_table` for when this + * is checked. * * This setting is independent of the project-level BigQuery Agent Analytics * setting configured through `SetAgentOpsObservability`. An agent does not @@ -903,17 +909,26 @@ public boolean getBigqueryAgentAnalyticsEnabled() { * `true`. The Preview enrollment described on that field applies here too. * * The trace table is validated when it is set on `CreateDataAgent`, or when - * it is included in the `update_mask` of an `UpdateDataAgent` call. The + * an `UpdateDataAgent` call writes a table to it. An `UpdateDataAgent` call + * writes a field if the field is in `update_mask` or, when `update_mask` is + * omitted, if the field is present in the request, even if its value is + * unchanged. An update that only clears this field is not validated. The * following are rejected with `INVALID_ARGUMENT`: * * * The table must belong to the same project as the agent. * * The agent's datasource must be BigQuery. BigQuery Agent Analytics is not * supported for Looker, Looker Studio or AlloyDB agents. * - * These are validated against the agent as sent in the request. An agent - * that carries no datasource is not validated, and an agent switched to a - * non-BigQuery datasource is not re-validated; in the latter case no trace - * rows are written. + * On `CreateDataAgent`, the datasource is validated against the agent in + * the request. On `UpdateDataAgent`, it is validated against the stored + * agent after applying the update whenever the call writes a table to this + * field or writes `true` to `bigquery_agent_analytics_enabled`. For example, + * an `UpdateDataAgent` call without `update_mask` that carries an unchanged + * `bigquery_agent_analytics_enabled = true` is rejected on an agent whose + * datasource is not BigQuery. An agent that carries no datasource is not + * validated, and an agent switched to a non-BigQuery datasource by an update + * that does neither is not re-validated; in the latter case no trace rows + * are written. * * The destination dataset must already exist and must grant write access to * the project's Gemini Data Analytics service agent, whose address is @@ -945,17 +960,26 @@ public boolean hasBigqueryAgentAnalyticsTable() { * `true`. The Preview enrollment described on that field applies here too. * * The trace table is validated when it is set on `CreateDataAgent`, or when - * it is included in the `update_mask` of an `UpdateDataAgent` call. The + * an `UpdateDataAgent` call writes a table to it. An `UpdateDataAgent` call + * writes a field if the field is in `update_mask` or, when `update_mask` is + * omitted, if the field is present in the request, even if its value is + * unchanged. An update that only clears this field is not validated. The * following are rejected with `INVALID_ARGUMENT`: * * * The table must belong to the same project as the agent. * * The agent's datasource must be BigQuery. BigQuery Agent Analytics is not * supported for Looker, Looker Studio or AlloyDB agents. * - * These are validated against the agent as sent in the request. An agent - * that carries no datasource is not validated, and an agent switched to a - * non-BigQuery datasource is not re-validated; in the latter case no trace - * rows are written. + * On `CreateDataAgent`, the datasource is validated against the agent in + * the request. On `UpdateDataAgent`, it is validated against the stored + * agent after applying the update whenever the call writes a table to this + * field or writes `true` to `bigquery_agent_analytics_enabled`. For example, + * an `UpdateDataAgent` call without `update_mask` that carries an unchanged + * `bigquery_agent_analytics_enabled = true` is rejected on an agent whose + * datasource is not BigQuery. An agent that carries no datasource is not + * validated, and an agent switched to a non-BigQuery datasource by an update + * that does neither is not re-validated; in the latter case no trace rows + * are written. * * The destination dataset must already exist and must grant write access to * the project's Gemini Data Analytics service agent, whose address is @@ -990,17 +1014,26 @@ public boolean hasBigqueryAgentAnalyticsTable() { * `true`. The Preview enrollment described on that field applies here too. * * The trace table is validated when it is set on `CreateDataAgent`, or when - * it is included in the `update_mask` of an `UpdateDataAgent` call. The + * an `UpdateDataAgent` call writes a table to it. An `UpdateDataAgent` call + * writes a field if the field is in `update_mask` or, when `update_mask` is + * omitted, if the field is present in the request, even if its value is + * unchanged. An update that only clears this field is not validated. The * following are rejected with `INVALID_ARGUMENT`: * * * The table must belong to the same project as the agent. * * The agent's datasource must be BigQuery. BigQuery Agent Analytics is not * supported for Looker, Looker Studio or AlloyDB agents. * - * These are validated against the agent as sent in the request. An agent - * that carries no datasource is not validated, and an agent switched to a - * non-BigQuery datasource is not re-validated; in the latter case no trace - * rows are written. + * On `CreateDataAgent`, the datasource is validated against the agent in + * the request. On `UpdateDataAgent`, it is validated against the stored + * agent after applying the update whenever the call writes a table to this + * field or writes `true` to `bigquery_agent_analytics_enabled`. For example, + * an `UpdateDataAgent` call without `update_mask` that carries an unchanged + * `bigquery_agent_analytics_enabled = true` is rejected on an agent whose + * datasource is not BigQuery. An agent that carries no datasource is not + * validated, and an agent switched to a non-BigQuery datasource by an update + * that does neither is not re-validated; in the latter case no trace rows + * are written. * * The destination dataset must already exist and must grant write access to * the project's Gemini Data Analytics service agent, whose address is @@ -3659,7 +3692,10 @@ public Builder setKmsKeyBytes(com.google.protobuf.ByteString value) { * `bigquery_agent_analytics_table` is set. On a BigQuery agent, enabling * this without a table has no effect: no table is created for the agent * and no rows are written. On an agent whose datasource is not BigQuery, - * `CreateDataAgent` rejects either field with `INVALID_ARGUMENT`. + * `CreateDataAgent` and `UpdateDataAgent` reject setting this field to + * `true` or setting `bigquery_agent_analytics_table` with + * `INVALID_ARGUMENT`. See `bigquery_agent_analytics_table` for when this + * is checked. * * This setting is independent of the project-level BigQuery Agent Analytics * setting configured through `SetAgentOpsObservability`. An agent does not @@ -3698,7 +3734,10 @@ public boolean hasBigqueryAgentAnalyticsEnabled() { * `bigquery_agent_analytics_table` is set. On a BigQuery agent, enabling * this without a table has no effect: no table is created for the agent * and no rows are written. On an agent whose datasource is not BigQuery, - * `CreateDataAgent` rejects either field with `INVALID_ARGUMENT`. + * `CreateDataAgent` and `UpdateDataAgent` reject setting this field to + * `true` or setting `bigquery_agent_analytics_table` with + * `INVALID_ARGUMENT`. See `bigquery_agent_analytics_table` for when this + * is checked. * * This setting is independent of the project-level BigQuery Agent Analytics * setting configured through `SetAgentOpsObservability`. An agent does not @@ -3737,7 +3776,10 @@ public boolean getBigqueryAgentAnalyticsEnabled() { * `bigquery_agent_analytics_table` is set. On a BigQuery agent, enabling * this without a table has no effect: no table is created for the agent * and no rows are written. On an agent whose datasource is not BigQuery, - * `CreateDataAgent` rejects either field with `INVALID_ARGUMENT`. + * `CreateDataAgent` and `UpdateDataAgent` reject setting this field to + * `true` or setting `bigquery_agent_analytics_table` with + * `INVALID_ARGUMENT`. See `bigquery_agent_analytics_table` for when this + * is checked. * * This setting is independent of the project-level BigQuery Agent Analytics * setting configured through `SetAgentOpsObservability`. An agent does not @@ -3780,7 +3822,10 @@ public Builder setBigqueryAgentAnalyticsEnabled(boolean value) { * `bigquery_agent_analytics_table` is set. On a BigQuery agent, enabling * this without a table has no effect: no table is created for the agent * and no rows are written. On an agent whose datasource is not BigQuery, - * `CreateDataAgent` rejects either field with `INVALID_ARGUMENT`. + * `CreateDataAgent` and `UpdateDataAgent` reject setting this field to + * `true` or setting `bigquery_agent_analytics_table` with + * `INVALID_ARGUMENT`. See `bigquery_agent_analytics_table` for when this + * is checked. * * This setting is independent of the project-level BigQuery Agent Analytics * setting configured through `SetAgentOpsObservability`. An agent does not @@ -3817,17 +3862,26 @@ public Builder clearBigqueryAgentAnalyticsEnabled() { * `true`. The Preview enrollment described on that field applies here too. * * The trace table is validated when it is set on `CreateDataAgent`, or when - * it is included in the `update_mask` of an `UpdateDataAgent` call. The + * an `UpdateDataAgent` call writes a table to it. An `UpdateDataAgent` call + * writes a field if the field is in `update_mask` or, when `update_mask` is + * omitted, if the field is present in the request, even if its value is + * unchanged. An update that only clears this field is not validated. The * following are rejected with `INVALID_ARGUMENT`: * * * The table must belong to the same project as the agent. * * The agent's datasource must be BigQuery. BigQuery Agent Analytics is not * supported for Looker, Looker Studio or AlloyDB agents. * - * These are validated against the agent as sent in the request. An agent - * that carries no datasource is not validated, and an agent switched to a - * non-BigQuery datasource is not re-validated; in the latter case no trace - * rows are written. + * On `CreateDataAgent`, the datasource is validated against the agent in + * the request. On `UpdateDataAgent`, it is validated against the stored + * agent after applying the update whenever the call writes a table to this + * field or writes `true` to `bigquery_agent_analytics_enabled`. For example, + * an `UpdateDataAgent` call without `update_mask` that carries an unchanged + * `bigquery_agent_analytics_enabled = true` is rejected on an agent whose + * datasource is not BigQuery. An agent that carries no datasource is not + * validated, and an agent switched to a non-BigQuery datasource by an update + * that does neither is not re-validated; in the latter case no trace rows + * are written. * * The destination dataset must already exist and must grant write access to * the project's Gemini Data Analytics service agent, whose address is @@ -3858,17 +3912,26 @@ public boolean hasBigqueryAgentAnalyticsTable() { * `true`. The Preview enrollment described on that field applies here too. * * The trace table is validated when it is set on `CreateDataAgent`, or when - * it is included in the `update_mask` of an `UpdateDataAgent` call. The + * an `UpdateDataAgent` call writes a table to it. An `UpdateDataAgent` call + * writes a field if the field is in `update_mask` or, when `update_mask` is + * omitted, if the field is present in the request, even if its value is + * unchanged. An update that only clears this field is not validated. The * following are rejected with `INVALID_ARGUMENT`: * * * The table must belong to the same project as the agent. * * The agent's datasource must be BigQuery. BigQuery Agent Analytics is not * supported for Looker, Looker Studio or AlloyDB agents. * - * These are validated against the agent as sent in the request. An agent - * that carries no datasource is not validated, and an agent switched to a - * non-BigQuery datasource is not re-validated; in the latter case no trace - * rows are written. + * On `CreateDataAgent`, the datasource is validated against the agent in + * the request. On `UpdateDataAgent`, it is validated against the stored + * agent after applying the update whenever the call writes a table to this + * field or writes `true` to `bigquery_agent_analytics_enabled`. For example, + * an `UpdateDataAgent` call without `update_mask` that carries an unchanged + * `bigquery_agent_analytics_enabled = true` is rejected on an agent whose + * datasource is not BigQuery. An agent that carries no datasource is not + * validated, and an agent switched to a non-BigQuery datasource by an update + * that does neither is not re-validated; in the latter case no trace rows + * are written. * * The destination dataset must already exist and must grant write access to * the project's Gemini Data Analytics service agent, whose address is @@ -3906,17 +3969,26 @@ public boolean hasBigqueryAgentAnalyticsTable() { * `true`. The Preview enrollment described on that field applies here too. * * The trace table is validated when it is set on `CreateDataAgent`, or when - * it is included in the `update_mask` of an `UpdateDataAgent` call. The + * an `UpdateDataAgent` call writes a table to it. An `UpdateDataAgent` call + * writes a field if the field is in `update_mask` or, when `update_mask` is + * omitted, if the field is present in the request, even if its value is + * unchanged. An update that only clears this field is not validated. The * following are rejected with `INVALID_ARGUMENT`: * * * The table must belong to the same project as the agent. * * The agent's datasource must be BigQuery. BigQuery Agent Analytics is not * supported for Looker, Looker Studio or AlloyDB agents. * - * These are validated against the agent as sent in the request. An agent - * that carries no datasource is not validated, and an agent switched to a - * non-BigQuery datasource is not re-validated; in the latter case no trace - * rows are written. + * On `CreateDataAgent`, the datasource is validated against the agent in + * the request. On `UpdateDataAgent`, it is validated against the stored + * agent after applying the update whenever the call writes a table to this + * field or writes `true` to `bigquery_agent_analytics_enabled`. For example, + * an `UpdateDataAgent` call without `update_mask` that carries an unchanged + * `bigquery_agent_analytics_enabled = true` is rejected on an agent whose + * datasource is not BigQuery. An agent that carries no datasource is not + * validated, and an agent switched to a non-BigQuery datasource by an update + * that does neither is not re-validated; in the latter case no trace rows + * are written. * * The destination dataset must already exist and must grant write access to * the project's Gemini Data Analytics service agent, whose address is @@ -3956,17 +4028,26 @@ public Builder setBigqueryAgentAnalyticsTable( * `true`. The Preview enrollment described on that field applies here too. * * The trace table is validated when it is set on `CreateDataAgent`, or when - * it is included in the `update_mask` of an `UpdateDataAgent` call. The + * an `UpdateDataAgent` call writes a table to it. An `UpdateDataAgent` call + * writes a field if the field is in `update_mask` or, when `update_mask` is + * omitted, if the field is present in the request, even if its value is + * unchanged. An update that only clears this field is not validated. The * following are rejected with `INVALID_ARGUMENT`: * * * The table must belong to the same project as the agent. * * The agent's datasource must be BigQuery. BigQuery Agent Analytics is not * supported for Looker, Looker Studio or AlloyDB agents. * - * These are validated against the agent as sent in the request. An agent - * that carries no datasource is not validated, and an agent switched to a - * non-BigQuery datasource is not re-validated; in the latter case no trace - * rows are written. + * On `CreateDataAgent`, the datasource is validated against the agent in + * the request. On `UpdateDataAgent`, it is validated against the stored + * agent after applying the update whenever the call writes a table to this + * field or writes `true` to `bigquery_agent_analytics_enabled`. For example, + * an `UpdateDataAgent` call without `update_mask` that carries an unchanged + * `bigquery_agent_analytics_enabled = true` is rejected on an agent whose + * datasource is not BigQuery. An agent that carries no datasource is not + * validated, and an agent switched to a non-BigQuery datasource by an update + * that does neither is not re-validated; in the latter case no trace rows + * are written. * * The destination dataset must already exist and must grant write access to * the project's Gemini Data Analytics service agent, whose address is @@ -4003,17 +4084,26 @@ public Builder setBigqueryAgentAnalyticsTable( * `true`. The Preview enrollment described on that field applies here too. * * The trace table is validated when it is set on `CreateDataAgent`, or when - * it is included in the `update_mask` of an `UpdateDataAgent` call. The + * an `UpdateDataAgent` call writes a table to it. An `UpdateDataAgent` call + * writes a field if the field is in `update_mask` or, when `update_mask` is + * omitted, if the field is present in the request, even if its value is + * unchanged. An update that only clears this field is not validated. The * following are rejected with `INVALID_ARGUMENT`: * * * The table must belong to the same project as the agent. * * The agent's datasource must be BigQuery. BigQuery Agent Analytics is not * supported for Looker, Looker Studio or AlloyDB agents. * - * These are validated against the agent as sent in the request. An agent - * that carries no datasource is not validated, and an agent switched to a - * non-BigQuery datasource is not re-validated; in the latter case no trace - * rows are written. + * On `CreateDataAgent`, the datasource is validated against the agent in + * the request. On `UpdateDataAgent`, it is validated against the stored + * agent after applying the update whenever the call writes a table to this + * field or writes `true` to `bigquery_agent_analytics_enabled`. For example, + * an `UpdateDataAgent` call without `update_mask` that carries an unchanged + * `bigquery_agent_analytics_enabled = true` is rejected on an agent whose + * datasource is not BigQuery. An agent that carries no datasource is not + * validated, and an agent switched to a non-BigQuery datasource by an update + * that does neither is not re-validated; in the latter case no trace rows + * are written. * * The destination dataset must already exist and must grant write access to * the project's Gemini Data Analytics service agent, whose address is @@ -4060,17 +4150,26 @@ public Builder mergeBigqueryAgentAnalyticsTable( * `true`. The Preview enrollment described on that field applies here too. * * The trace table is validated when it is set on `CreateDataAgent`, or when - * it is included in the `update_mask` of an `UpdateDataAgent` call. The + * an `UpdateDataAgent` call writes a table to it. An `UpdateDataAgent` call + * writes a field if the field is in `update_mask` or, when `update_mask` is + * omitted, if the field is present in the request, even if its value is + * unchanged. An update that only clears this field is not validated. The * following are rejected with `INVALID_ARGUMENT`: * * * The table must belong to the same project as the agent. * * The agent's datasource must be BigQuery. BigQuery Agent Analytics is not * supported for Looker, Looker Studio or AlloyDB agents. * - * These are validated against the agent as sent in the request. An agent - * that carries no datasource is not validated, and an agent switched to a - * non-BigQuery datasource is not re-validated; in the latter case no trace - * rows are written. + * On `CreateDataAgent`, the datasource is validated against the agent in + * the request. On `UpdateDataAgent`, it is validated against the stored + * agent after applying the update whenever the call writes a table to this + * field or writes `true` to `bigquery_agent_analytics_enabled`. For example, + * an `UpdateDataAgent` call without `update_mask` that carries an unchanged + * `bigquery_agent_analytics_enabled = true` is rejected on an agent whose + * datasource is not BigQuery. An agent that carries no datasource is not + * validated, and an agent switched to a non-BigQuery datasource by an update + * that does neither is not re-validated; in the latter case no trace rows + * are written. * * The destination dataset must already exist and must grant write access to * the project's Gemini Data Analytics service agent, whose address is @@ -4106,17 +4205,26 @@ public Builder clearBigqueryAgentAnalyticsTable() { * `true`. The Preview enrollment described on that field applies here too. * * The trace table is validated when it is set on `CreateDataAgent`, or when - * it is included in the `update_mask` of an `UpdateDataAgent` call. The + * an `UpdateDataAgent` call writes a table to it. An `UpdateDataAgent` call + * writes a field if the field is in `update_mask` or, when `update_mask` is + * omitted, if the field is present in the request, even if its value is + * unchanged. An update that only clears this field is not validated. The * following are rejected with `INVALID_ARGUMENT`: * * * The table must belong to the same project as the agent. * * The agent's datasource must be BigQuery. BigQuery Agent Analytics is not * supported for Looker, Looker Studio or AlloyDB agents. * - * These are validated against the agent as sent in the request. An agent - * that carries no datasource is not validated, and an agent switched to a - * non-BigQuery datasource is not re-validated; in the latter case no trace - * rows are written. + * On `CreateDataAgent`, the datasource is validated against the agent in + * the request. On `UpdateDataAgent`, it is validated against the stored + * agent after applying the update whenever the call writes a table to this + * field or writes `true` to `bigquery_agent_analytics_enabled`. For example, + * an `UpdateDataAgent` call without `update_mask` that carries an unchanged + * `bigquery_agent_analytics_enabled = true` is rejected on an agent whose + * datasource is not BigQuery. An agent that carries no datasource is not + * validated, and an agent switched to a non-BigQuery datasource by an update + * that does neither is not re-validated; in the latter case no trace rows + * are written. * * The destination dataset must already exist and must grant write access to * the project's Gemini Data Analytics service agent, whose address is @@ -4148,17 +4256,26 @@ public Builder clearBigqueryAgentAnalyticsTable() { * `true`. The Preview enrollment described on that field applies here too. * * The trace table is validated when it is set on `CreateDataAgent`, or when - * it is included in the `update_mask` of an `UpdateDataAgent` call. The + * an `UpdateDataAgent` call writes a table to it. An `UpdateDataAgent` call + * writes a field if the field is in `update_mask` or, when `update_mask` is + * omitted, if the field is present in the request, even if its value is + * unchanged. An update that only clears this field is not validated. The * following are rejected with `INVALID_ARGUMENT`: * * * The table must belong to the same project as the agent. * * The agent's datasource must be BigQuery. BigQuery Agent Analytics is not * supported for Looker, Looker Studio or AlloyDB agents. * - * These are validated against the agent as sent in the request. An agent - * that carries no datasource is not validated, and an agent switched to a - * non-BigQuery datasource is not re-validated; in the latter case no trace - * rows are written. + * On `CreateDataAgent`, the datasource is validated against the agent in + * the request. On `UpdateDataAgent`, it is validated against the stored + * agent after applying the update whenever the call writes a table to this + * field or writes `true` to `bigquery_agent_analytics_enabled`. For example, + * an `UpdateDataAgent` call without `update_mask` that carries an unchanged + * `bigquery_agent_analytics_enabled = true` is rejected on an agent whose + * datasource is not BigQuery. An agent that carries no datasource is not + * validated, and an agent switched to a non-BigQuery datasource by an update + * that does neither is not re-validated; in the latter case no trace rows + * are written. * * The destination dataset must already exist and must grant write access to * the project's Gemini Data Analytics service agent, whose address is @@ -4194,17 +4311,26 @@ public Builder clearBigqueryAgentAnalyticsTable() { * `true`. The Preview enrollment described on that field applies here too. * * The trace table is validated when it is set on `CreateDataAgent`, or when - * it is included in the `update_mask` of an `UpdateDataAgent` call. The + * an `UpdateDataAgent` call writes a table to it. An `UpdateDataAgent` call + * writes a field if the field is in `update_mask` or, when `update_mask` is + * omitted, if the field is present in the request, even if its value is + * unchanged. An update that only clears this field is not validated. The * following are rejected with `INVALID_ARGUMENT`: * * * The table must belong to the same project as the agent. * * The agent's datasource must be BigQuery. BigQuery Agent Analytics is not * supported for Looker, Looker Studio or AlloyDB agents. * - * These are validated against the agent as sent in the request. An agent - * that carries no datasource is not validated, and an agent switched to a - * non-BigQuery datasource is not re-validated; in the latter case no trace - * rows are written. + * On `CreateDataAgent`, the datasource is validated against the agent in + * the request. On `UpdateDataAgent`, it is validated against the stored + * agent after applying the update whenever the call writes a table to this + * field or writes `true` to `bigquery_agent_analytics_enabled`. For example, + * an `UpdateDataAgent` call without `update_mask` that carries an unchanged + * `bigquery_agent_analytics_enabled = true` is rejected on an agent whose + * datasource is not BigQuery. An agent that carries no datasource is not + * validated, and an agent switched to a non-BigQuery datasource by an update + * that does neither is not re-validated; in the latter case no trace rows + * are written. * * The destination dataset must already exist and must grant write access to * the project's Gemini Data Analytics service agent, whose address is diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/DataAgentOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/DataAgentOrBuilder.java index 07cb12319ae1..6c4f2041711d 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/DataAgentOrBuilder.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/DataAgentOrBuilder.java @@ -508,7 +508,10 @@ java.lang.String getLabelsOrDefault( * `bigquery_agent_analytics_table` is set. On a BigQuery agent, enabling * this without a table has no effect: no table is created for the agent * and no rows are written. On an agent whose datasource is not BigQuery, - * `CreateDataAgent` rejects either field with `INVALID_ARGUMENT`. + * `CreateDataAgent` and `UpdateDataAgent` reject setting this field to + * `true` or setting `bigquery_agent_analytics_table` with + * `INVALID_ARGUMENT`. See `bigquery_agent_analytics_table` for when this + * is checked. * * This setting is independent of the project-level BigQuery Agent Analytics * setting configured through `SetAgentOpsObservability`. An agent does not @@ -544,7 +547,10 @@ java.lang.String getLabelsOrDefault( * `bigquery_agent_analytics_table` is set. On a BigQuery agent, enabling * this without a table has no effect: no table is created for the agent * and no rows are written. On an agent whose datasource is not BigQuery, - * `CreateDataAgent` rejects either field with `INVALID_ARGUMENT`. + * `CreateDataAgent` and `UpdateDataAgent` reject setting this field to + * `true` or setting `bigquery_agent_analytics_table` with + * `INVALID_ARGUMENT`. See `bigquery_agent_analytics_table` for when this + * is checked. * * This setting is independent of the project-level BigQuery Agent Analytics * setting configured through `SetAgentOpsObservability`. An agent does not @@ -568,17 +574,26 @@ java.lang.String getLabelsOrDefault( * `true`. The Preview enrollment described on that field applies here too. * * The trace table is validated when it is set on `CreateDataAgent`, or when - * it is included in the `update_mask` of an `UpdateDataAgent` call. The + * an `UpdateDataAgent` call writes a table to it. An `UpdateDataAgent` call + * writes a field if the field is in `update_mask` or, when `update_mask` is + * omitted, if the field is present in the request, even if its value is + * unchanged. An update that only clears this field is not validated. The * following are rejected with `INVALID_ARGUMENT`: * * * The table must belong to the same project as the agent. * * The agent's datasource must be BigQuery. BigQuery Agent Analytics is not * supported for Looker, Looker Studio or AlloyDB agents. * - * These are validated against the agent as sent in the request. An agent - * that carries no datasource is not validated, and an agent switched to a - * non-BigQuery datasource is not re-validated; in the latter case no trace - * rows are written. + * On `CreateDataAgent`, the datasource is validated against the agent in + * the request. On `UpdateDataAgent`, it is validated against the stored + * agent after applying the update whenever the call writes a table to this + * field or writes `true` to `bigquery_agent_analytics_enabled`. For example, + * an `UpdateDataAgent` call without `update_mask` that carries an unchanged + * `bigquery_agent_analytics_enabled = true` is rejected on an agent whose + * datasource is not BigQuery. An agent that carries no datasource is not + * validated, and an agent switched to a non-BigQuery datasource by an update + * that does neither is not re-validated; in the latter case no trace rows + * are written. * * The destination dataset must already exist and must grant write access to * the project's Gemini Data Analytics service agent, whose address is @@ -607,17 +622,26 @@ java.lang.String getLabelsOrDefault( * `true`. The Preview enrollment described on that field applies here too. * * The trace table is validated when it is set on `CreateDataAgent`, or when - * it is included in the `update_mask` of an `UpdateDataAgent` call. The + * an `UpdateDataAgent` call writes a table to it. An `UpdateDataAgent` call + * writes a field if the field is in `update_mask` or, when `update_mask` is + * omitted, if the field is present in the request, even if its value is + * unchanged. An update that only clears this field is not validated. The * following are rejected with `INVALID_ARGUMENT`: * * * The table must belong to the same project as the agent. * * The agent's datasource must be BigQuery. BigQuery Agent Analytics is not * supported for Looker, Looker Studio or AlloyDB agents. * - * These are validated against the agent as sent in the request. An agent - * that carries no datasource is not validated, and an agent switched to a - * non-BigQuery datasource is not re-validated; in the latter case no trace - * rows are written. + * On `CreateDataAgent`, the datasource is validated against the agent in + * the request. On `UpdateDataAgent`, it is validated against the stored + * agent after applying the update whenever the call writes a table to this + * field or writes `true` to `bigquery_agent_analytics_enabled`. For example, + * an `UpdateDataAgent` call without `update_mask` that carries an unchanged + * `bigquery_agent_analytics_enabled = true` is rejected on an agent whose + * datasource is not BigQuery. An agent that carries no datasource is not + * validated, and an agent switched to a non-BigQuery datasource by an update + * that does neither is not re-validated; in the latter case no trace rows + * are written. * * The destination dataset must already exist and must grant write access to * the project's Gemini Data Analytics service agent, whose address is @@ -646,17 +670,26 @@ java.lang.String getLabelsOrDefault( * `true`. The Preview enrollment described on that field applies here too. * * The trace table is validated when it is set on `CreateDataAgent`, or when - * it is included in the `update_mask` of an `UpdateDataAgent` call. The + * an `UpdateDataAgent` call writes a table to it. An `UpdateDataAgent` call + * writes a field if the field is in `update_mask` or, when `update_mask` is + * omitted, if the field is present in the request, even if its value is + * unchanged. An update that only clears this field is not validated. The * following are rejected with `INVALID_ARGUMENT`: * * * The table must belong to the same project as the agent. * * The agent's datasource must be BigQuery. BigQuery Agent Analytics is not * supported for Looker, Looker Studio or AlloyDB agents. * - * These are validated against the agent as sent in the request. An agent - * that carries no datasource is not validated, and an agent switched to a - * non-BigQuery datasource is not re-validated; in the latter case no trace - * rows are written. + * On `CreateDataAgent`, the datasource is validated against the agent in + * the request. On `UpdateDataAgent`, it is validated against the stored + * agent after applying the update whenever the call writes a table to this + * field or writes `true` to `bigquery_agent_analytics_enabled`. For example, + * an `UpdateDataAgent` call without `update_mask` that carries an unchanged + * `bigquery_agent_analytics_enabled = true` is rejected on an agent whose + * datasource is not BigQuery. An agent that carries no datasource is not + * validated, and an agent switched to a non-BigQuery datasource by an update + * that does neither is not re-validated; in the latter case no trace rows + * are written. * * The destination dataset must already exist and must grant write access to * the project's Gemini Data Analytics service agent, whose address is diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/DatasourceProto.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/DatasourceProto.java index bb1bc4d35064..82820cb8d407 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/DatasourceProto.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/DatasourceProto.java @@ -52,6 +52,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_geminidataanalytics_v1_BigQueryTableReference_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_geminidataanalytics_v1_BigQueryTableReference_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_geminidataanalytics_v1_BigQueryDatasetReference_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_geminidataanalytics_v1_BigQueryDatasetReference_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_geminidataanalytics_v1_SearchScope_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_geminidataanalytics_v1_SearchScope_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_geminidataanalytics_v1_StudioDatasourceReferences_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -111,35 +119,44 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".cloud.geminidataanalytics.v1.StudioDatasourceReferencesH\000\022N\n" + "\006looker\030\003 \001(\0132<.goo" + "gle.cloud.geminidataanalytics.v1.LookerExploreReferencesH\000B\014\n\n" - + "references\"\344\001\n" + + "references\"\262\002\n" + "\027BigQueryTableReferences\022[\n" + "\020table_references\030\001" + " \003(\0132;.google.cloud.geminidataanalytics.v1.BigQueryTableReferenceB\004\342A\001\001\022l\n" + "\031property_graph_references\030\002 \003(\0132C.google.cl" - + "oud.geminidataanalytics.v1.BigQueryPropertyGraphReferenceB\004\342A\001\001\"\247\001\n" + + "oud.geminidataanalytics.v1.BigQueryPropertyGraphReferenceB\004\342A\001\001\022L\n" + + "\014search_scope\030\003" + + " \001(\01320.google.cloud.geminidataanalytics.v1.SearchScopeB\004\342A\001\001\"\247\001\n" + "\026BigQueryTableReference\022\030\n\n" + "project_id\030\001 \001(\tB\004\342A\001\002\022\030\n\n" + "dataset_id\030\003 \001(\tB\004\342A\001\002\022\026\n" + "\010table_id\030\004 \001(\tB\004\342A\001\002\022A\n" + "\006schema\030\006" - + " \001(\0132+.google.cloud.geminidataanalytics.v1.SchemaB\004\342A\001\001\"}\n" + + " \001(\0132+.google.cloud.geminidataanalytics.v1.SchemaB\004\342A\001\001\"N\n" + + "\030BigQueryDatasetReference\022\030\n\n" + + "project_id\030\001 \001(\tB\004\342A\001\002\022\030\n\n" + + "dataset_id\030\002 \001(\tB\004\342A\001\002\"\231\001\n" + + "\013SearchScope\022!\n" + + "\023include_project_ids\030\001 \003(\tB\004\342A\001\001\022g\n" + + "\032include_dataset_references\030\002 \003(\0132=" + + ".google.cloud.geminidataanalytics.v1.BigQueryDatasetReferenceB\004\342A\001\001\"}\n" + "\032StudioDatasourceReferences\022_\n" - + "\021studio_references\030\002 \003(\0132>.google.cloud.geminidataanal" - + "ytics.v1.StudioDatasourceReferenceB\004\342A\001\001\"8\n" + + "\021studio_references\030\002" + + " \003(\0132>.google.cloud.geminidataanalytics.v1.StudioDatasourceReferenceB\004\342A\001\001\"8\n" + "\031StudioDatasourceReference\022\033\n\r" + "datasource_id\030\001 \001(\tB\004\342A\001\002\"x\n" + "\027LookerExploreReferences\022]\n" - + "\022explore_references\030\001 \003(\0132;.goog" - + "le.cloud.geminidataanalytics.v1.LookerExploreReferenceB\004\342A\001\002\"\241\002\n" + + "\022explore_references\030\001 \003(\0132;.google.clo" + + "ud.geminidataanalytics.v1.LookerExploreReferenceB\004\342A\001\002\"\241\002\n" + "\026LookerExploreReference\022\035\n" + "\023looker_instance_uri\030\t \001(\tH\000\022f\n" + "\034private_looker_instance_info\030\n" - + " \001(\0132>.g" - + "oogle.cloud.geminidataanalytics.v1.PrivateLookerInstanceInfoH\000\022\032\n" + + " \001(\0132>.google." + + "cloud.geminidataanalytics.v1.PrivateLookerInstanceInfoH\000\022\032\n" + "\014lookml_model\030\004 \001(\tB\004\342A\001\002\022\025\n" + "\007explore\030\005 \001(\tB\004\342A\001\002\022A\n" - + "\006schema\030\010" - + " \001(\0132+.google.cloud.geminidataanalytics.v1.SchemaB\004\342A\001\001B\n\n" + + "\006schema\030\010 " + + "\001(\0132+.google.cloud.geminidataanalytics.v1.SchemaB\004\342A\001\001B\n\n" + "\010instance\"u\n" + "\036BigQueryPropertyGraphReference\022\030\n\n" + "project_id\030\001 \001(\tB\004\342A\001\002\022\030\n\n" @@ -149,27 +166,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022looker_instance_id\030\001 \001(\t\022\036\n" + "\026service_directory_name\030\002 \001(\t\"\346\003\n\n" + "Datasource\022_\n" - + "\030bigquery_table_reference\030\001" - + " \001(\0132;.google.cloud.geminidataanalytics.v1.BigQueryTableReferenceH\000\022\036\n" + + "\030bigquery_table_reference\030\001 " + + "\001(\0132;.google.cloud.geminidataanalytics.v1.BigQueryTableReferenceH\000\022\036\n" + "\024studio_datasource_id\030\002 \001(\tH\000\022_\n" - + "\030looker_explore_reference\030\004 \001(\0132;.google.cloud.gemini" - + "dataanalytics.v1.LookerExploreReferenceH\000\022p\n" - + "!bigquery_property_graph_reference\030\020" - + " \001(\0132C.google.cloud.geminidataanalytics.v1.BigQueryPropertyGraphReferenceH\000\022A\n" + + "\030looker_explore_reference\030\004" + + " \001(\0132;.google.cloud.geminidataanalytics.v1.LookerExploreReferenceH\000\022p\n" + + "!bigquery_property_graph_reference\030\020 \001(\0132C" + + ".google.cloud.geminidataanalytics.v1.BigQueryPropertyGraphReferenceH\000\022A\n" + "\006schema\030\007" + " \001(\0132+.google.cloud.geminidataanalytics.v1.SchemaB\004\342A\001\001\0224\n\r" + "struct_schema\030\n" + " \001(\0132\027.google.protobuf.StructB\004\342A\001\001B\013\n" + "\treference\"\365\001\n" + "\006Schema\022@\n" - + "\006fields\030\001 \003(\0132*.g" - + "oogle.cloud.geminidataanalytics.v1.FieldB\004\342A\001\001\022\031\n" + + "\006fields\030\001 \003(\0132*.google." + + "cloud.geminidataanalytics.v1.FieldB\004\342A\001\001\022\031\n" + "\013description\030\002 \001(\tB\004\342A\001\001\022\026\n" + "\010synonyms\030\003 \003(\tB\004\342A\001\001\022\022\n" + "\004tags\030\004 \003(\tB\004\342A\001\001\022\032\n" + "\014display_name\030\005 \001(\tB\004\342A\001\001\022F\n" - + "\007filters\030\006 \003" - + "(\0132/.google.cloud.geminidataanalytics.v1.DataFilterB\004\342A\001\001\"\237\002\n" + + "\007filters\030\006 \003(\0132/.g" + + "oogle.cloud.geminidataanalytics.v1.DataFilterB\004\342A\001\001\"\237\002\n" + "\005Field\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\001\022\022\n" + "\004type\030\002 \001(\tB\004\342A\001\001\022\031\n" @@ -178,8 +195,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010synonyms\030\006 \003(\tB\004\342A\001\001\022\022\n" + "\004tags\030\007 \003(\tB\004\342A\001\001\022\032\n" + "\014display_name\030\010 \001(\tB\004\342A\001\001\022C\n" - + "\tsubfields\030\t" - + " \003(\0132*.google.cloud.geminidataanalytics.v1.FieldB\004\342A\001\001\022\026\n" + + "\tsubfields\030\t \003(\0132" + + "*.google.cloud.geminidataanalytics.v1.FieldB\004\342A\001\001\022\026\n" + "\010category\030\n" + " \001(\tB\004\342A\001\001\022\032\n" + "\014value_format\030\013 \001(\tB\004\342A\001\001\"\177\n\n" @@ -191,11 +208,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016DataFilterType\022 \n" + "\034DATA_FILTER_TYPE_UNSPECIFIED\020\000\022\021\n\r" + "ALWAYS_FILTER\020\001B\214\002\n" - + "\'com.google.cloud.geminidataanalytics.v1B\017Datasou" - + "rceProtoP\001ZYcloud.google.com/go/geminidataanalytics/apiv1/geminidataanalyticspb;" - + "geminidataanalyticspb\252\002#Google.Cloud.Gem" - + "iniDataAnalytics.V1\312\002#Google\\Cloud\\Gemin" - + "iDataAnalytics\\V1\352\002&Google::Cloud::GeminiDataAnalytics::V1b\006proto3" + + "\'com.google.cloud.geminidataanalytics.v1B\017DatasourcePro" + + "toP\001ZYcloud.google.com/go/geminidataanalytics/apiv1/geminidataanalyticspb;gemini" + + "dataanalyticspb\252\002#Google.Cloud.GeminiDat" + + "aAnalytics.V1\312\002#Google\\Cloud\\GeminiDataA" + + "nalytics\\V1\352\002&Google::Cloud::GeminiDataAnalytics::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -218,7 +235,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1_BigQueryTableReferences_descriptor, new java.lang.String[] { - "TableReferences", "PropertyGraphReferences", + "TableReferences", "PropertyGraphReferences", "SearchScope", }); internal_static_google_cloud_geminidataanalytics_v1_BigQueryTableReference_descriptor = getDescriptor().getMessageType(2); @@ -228,8 +245,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "ProjectId", "DatasetId", "TableId", "Schema", }); - internal_static_google_cloud_geminidataanalytics_v1_StudioDatasourceReferences_descriptor = + internal_static_google_cloud_geminidataanalytics_v1_BigQueryDatasetReference_descriptor = getDescriptor().getMessageType(3); + internal_static_google_cloud_geminidataanalytics_v1_BigQueryDatasetReference_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_geminidataanalytics_v1_BigQueryDatasetReference_descriptor, + new java.lang.String[] { + "ProjectId", "DatasetId", + }); + internal_static_google_cloud_geminidataanalytics_v1_SearchScope_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_geminidataanalytics_v1_SearchScope_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_geminidataanalytics_v1_SearchScope_descriptor, + new java.lang.String[] { + "IncludeProjectIds", "IncludeDatasetReferences", + }); + internal_static_google_cloud_geminidataanalytics_v1_StudioDatasourceReferences_descriptor = + getDescriptor().getMessageType(5); internal_static_google_cloud_geminidataanalytics_v1_StudioDatasourceReferences_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1_StudioDatasourceReferences_descriptor, @@ -237,7 +270,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "StudioReferences", }); internal_static_google_cloud_geminidataanalytics_v1_StudioDatasourceReference_descriptor = - getDescriptor().getMessageType(4); + getDescriptor().getMessageType(6); internal_static_google_cloud_geminidataanalytics_v1_StudioDatasourceReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1_StudioDatasourceReference_descriptor, @@ -245,7 +278,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DatasourceId", }); internal_static_google_cloud_geminidataanalytics_v1_LookerExploreReferences_descriptor = - getDescriptor().getMessageType(5); + getDescriptor().getMessageType(7); internal_static_google_cloud_geminidataanalytics_v1_LookerExploreReferences_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1_LookerExploreReferences_descriptor, @@ -253,7 +286,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExploreReferences", }); internal_static_google_cloud_geminidataanalytics_v1_LookerExploreReference_descriptor = - getDescriptor().getMessageType(6); + getDescriptor().getMessageType(8); internal_static_google_cloud_geminidataanalytics_v1_LookerExploreReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1_LookerExploreReference_descriptor, @@ -266,7 +299,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Instance", }); internal_static_google_cloud_geminidataanalytics_v1_BigQueryPropertyGraphReference_descriptor = - getDescriptor().getMessageType(7); + getDescriptor().getMessageType(9); internal_static_google_cloud_geminidataanalytics_v1_BigQueryPropertyGraphReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1_BigQueryPropertyGraphReference_descriptor, @@ -274,7 +307,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "DatasetId", "PropertyGraphId", }); internal_static_google_cloud_geminidataanalytics_v1_PrivateLookerInstanceInfo_descriptor = - getDescriptor().getMessageType(8); + getDescriptor().getMessageType(10); internal_static_google_cloud_geminidataanalytics_v1_PrivateLookerInstanceInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1_PrivateLookerInstanceInfo_descriptor, @@ -282,7 +315,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "LookerInstanceId", "ServiceDirectoryName", }); internal_static_google_cloud_geminidataanalytics_v1_Datasource_descriptor = - getDescriptor().getMessageType(9); + getDescriptor().getMessageType(11); internal_static_google_cloud_geminidataanalytics_v1_Datasource_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1_Datasource_descriptor, @@ -296,7 +329,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Reference", }); internal_static_google_cloud_geminidataanalytics_v1_Schema_descriptor = - getDescriptor().getMessageType(10); + getDescriptor().getMessageType(12); internal_static_google_cloud_geminidataanalytics_v1_Schema_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1_Schema_descriptor, @@ -304,7 +337,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Fields", "Description", "Synonyms", "Tags", "DisplayName", "Filters", }); internal_static_google_cloud_geminidataanalytics_v1_Field_descriptor = - getDescriptor().getMessageType(11); + getDescriptor().getMessageType(13); internal_static_google_cloud_geminidataanalytics_v1_Field_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1_Field_descriptor, @@ -321,7 +354,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ValueFormat", }); internal_static_google_cloud_geminidataanalytics_v1_DataFilter_descriptor = - getDescriptor().getMessageType(12); + getDescriptor().getMessageType(14); internal_static_google_cloud_geminidataanalytics_v1_DataFilter_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1_DataFilter_descriptor, diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/SearchScope.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/SearchScope.java new file mode 100644 index 000000000000..8062c6a730ef --- /dev/null +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/SearchScope.java @@ -0,0 +1,1321 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/geminidataanalytics/v1/datasource.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.geminidataanalytics.v1; + +/** + * + * + *
+ * Message representing filters to apply to search over BigQuery tables.
+ *
+ * At least one of `include_project_ids` or `include_dataset_references` must be
+ * populated with non-blank identifiers. Tables matching either field are
+ * included, so the two fields are unioned (OR-ed) rather than intersected.
+ *
+ * Note: `SearchScope` is only supported for standalone conversations
+ * (`ChatRequest.inline_context` or
+ * `ClientManagedResourceContext.inline_context`) and is not supported in
+ * [DataAgent][google.cloud.geminidataanalytics.v1.DataAgent].
+ * 
+ * + * Protobuf type {@code google.cloud.geminidataanalytics.v1.SearchScope} + */ +@com.google.protobuf.Generated +public final class SearchScope extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.geminidataanalytics.v1.SearchScope) + SearchScopeOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "SearchScope"); + } + + // Use SearchScope.newBuilder() to construct. + private SearchScope(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SearchScope() { + includeProjectIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + includeDatasetReferences_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1.DatasourceProto + .internal_static_google_cloud_geminidataanalytics_v1_SearchScope_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.geminidataanalytics.v1.DatasourceProto + .internal_static_google_cloud_geminidataanalytics_v1_SearchScope_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.geminidataanalytics.v1.SearchScope.class, + com.google.cloud.geminidataanalytics.v1.SearchScope.Builder.class); + } + + public static final int INCLUDE_PROJECT_IDS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList includeProjectIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Optional. The BigQuery project ids to search over.
+   * 
+ * + * repeated string include_project_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the includeProjectIds. + */ + public com.google.protobuf.ProtocolStringList getIncludeProjectIdsList() { + return includeProjectIds_; + } + + /** + * + * + *
+   * Optional. The BigQuery project ids to search over.
+   * 
+ * + * repeated string include_project_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of includeProjectIds. + */ + public int getIncludeProjectIdsCount() { + return includeProjectIds_.size(); + } + + /** + * + * + *
+   * Optional. The BigQuery project ids to search over.
+   * 
+ * + * repeated string include_project_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The includeProjectIds at the given index. + */ + public java.lang.String getIncludeProjectIds(int index) { + return includeProjectIds_.get(index); + } + + /** + * + * + *
+   * Optional. The BigQuery project ids to search over.
+   * 
+ * + * repeated string include_project_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the includeProjectIds at the given index. + */ + public com.google.protobuf.ByteString getIncludeProjectIdsBytes(int index) { + return includeProjectIds_.getByteString(index); + } + + public static final int INCLUDE_DATASET_REFERENCES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List + includeDatasetReferences_; + + /** + * + * + *
+   * Optional. The BigQuery dataset references to search over.
+   * 
+ * + * + * repeated .google.cloud.geminidataanalytics.v1.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getIncludeDatasetReferencesList() { + return includeDatasetReferences_; + } + + /** + * + * + *
+   * Optional. The BigQuery dataset references to search over.
+   * 
+ * + * + * repeated .google.cloud.geminidataanalytics.v1.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReferenceOrBuilder> + getIncludeDatasetReferencesOrBuilderList() { + return includeDatasetReferences_; + } + + /** + * + * + *
+   * Optional. The BigQuery dataset references to search over.
+   * 
+ * + * + * repeated .google.cloud.geminidataanalytics.v1.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getIncludeDatasetReferencesCount() { + return includeDatasetReferences_.size(); + } + + /** + * + * + *
+   * Optional. The BigQuery dataset references to search over.
+   * 
+ * + * + * repeated .google.cloud.geminidataanalytics.v1.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference + getIncludeDatasetReferences(int index) { + return includeDatasetReferences_.get(index); + } + + /** + * + * + *
+   * Optional. The BigQuery dataset references to search over.
+   * 
+ * + * + * repeated .google.cloud.geminidataanalytics.v1.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReferenceOrBuilder + getIncludeDatasetReferencesOrBuilder(int index) { + return includeDatasetReferences_.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 < includeProjectIds_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, includeProjectIds_.getRaw(i)); + } + for (int i = 0; i < includeDatasetReferences_.size(); i++) { + output.writeMessage(2, includeDatasetReferences_.get(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 < includeProjectIds_.size(); i++) { + dataSize += computeStringSizeNoTag(includeProjectIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getIncludeProjectIdsList().size(); + } + for (int i = 0; i < includeDatasetReferences_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, includeDatasetReferences_.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.geminidataanalytics.v1.SearchScope)) { + return super.equals(obj); + } + com.google.cloud.geminidataanalytics.v1.SearchScope other = + (com.google.cloud.geminidataanalytics.v1.SearchScope) obj; + + if (!getIncludeProjectIdsList().equals(other.getIncludeProjectIdsList())) return false; + if (!getIncludeDatasetReferencesList().equals(other.getIncludeDatasetReferencesList())) + return false; + if (!getUnknownFields().equals(other.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 (getIncludeProjectIdsCount() > 0) { + hash = (37 * hash) + INCLUDE_PROJECT_IDS_FIELD_NUMBER; + hash = (53 * hash) + getIncludeProjectIdsList().hashCode(); + } + if (getIncludeDatasetReferencesCount() > 0) { + hash = (37 * hash) + INCLUDE_DATASET_REFERENCES_FIELD_NUMBER; + hash = (53 * hash) + getIncludeDatasetReferencesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.geminidataanalytics.v1.SearchScope parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1.SearchScope parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1.SearchScope parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1.SearchScope parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1.SearchScope parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1.SearchScope parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1.SearchScope parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1.SearchScope parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1.SearchScope parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1.SearchScope parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1.SearchScope parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1.SearchScope parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.geminidataanalytics.v1.SearchScope prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message representing filters to apply to search over BigQuery tables.
+   *
+   * At least one of `include_project_ids` or `include_dataset_references` must be
+   * populated with non-blank identifiers. Tables matching either field are
+   * included, so the two fields are unioned (OR-ed) rather than intersected.
+   *
+   * Note: `SearchScope` is only supported for standalone conversations
+   * (`ChatRequest.inline_context` or
+   * `ClientManagedResourceContext.inline_context`) and is not supported in
+   * [DataAgent][google.cloud.geminidataanalytics.v1.DataAgent].
+   * 
+ * + * Protobuf type {@code google.cloud.geminidataanalytics.v1.SearchScope} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.geminidataanalytics.v1.SearchScope) + com.google.cloud.geminidataanalytics.v1.SearchScopeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1.DatasourceProto + .internal_static_google_cloud_geminidataanalytics_v1_SearchScope_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.geminidataanalytics.v1.DatasourceProto + .internal_static_google_cloud_geminidataanalytics_v1_SearchScope_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.geminidataanalytics.v1.SearchScope.class, + com.google.cloud.geminidataanalytics.v1.SearchScope.Builder.class); + } + + // Construct using com.google.cloud.geminidataanalytics.v1.SearchScope.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + includeProjectIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + if (includeDatasetReferencesBuilder_ == null) { + includeDatasetReferences_ = java.util.Collections.emptyList(); + } else { + includeDatasetReferences_ = null; + includeDatasetReferencesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.geminidataanalytics.v1.DatasourceProto + .internal_static_google_cloud_geminidataanalytics_v1_SearchScope_descriptor; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1.SearchScope getDefaultInstanceForType() { + return com.google.cloud.geminidataanalytics.v1.SearchScope.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1.SearchScope build() { + com.google.cloud.geminidataanalytics.v1.SearchScope result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1.SearchScope buildPartial() { + com.google.cloud.geminidataanalytics.v1.SearchScope result = + new com.google.cloud.geminidataanalytics.v1.SearchScope(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.geminidataanalytics.v1.SearchScope result) { + if (includeDatasetReferencesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + includeDatasetReferences_ = + java.util.Collections.unmodifiableList(includeDatasetReferences_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.includeDatasetReferences_ = includeDatasetReferences_; + } else { + result.includeDatasetReferences_ = includeDatasetReferencesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.geminidataanalytics.v1.SearchScope result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + includeProjectIds_.makeImmutable(); + result.includeProjectIds_ = includeProjectIds_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.geminidataanalytics.v1.SearchScope) { + return mergeFrom((com.google.cloud.geminidataanalytics.v1.SearchScope) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.geminidataanalytics.v1.SearchScope other) { + if (other == com.google.cloud.geminidataanalytics.v1.SearchScope.getDefaultInstance()) + return this; + if (!other.includeProjectIds_.isEmpty()) { + if (includeProjectIds_.isEmpty()) { + includeProjectIds_ = other.includeProjectIds_; + bitField0_ |= 0x00000001; + } else { + ensureIncludeProjectIdsIsMutable(); + includeProjectIds_.addAll(other.includeProjectIds_); + } + onChanged(); + } + if (includeDatasetReferencesBuilder_ == null) { + if (!other.includeDatasetReferences_.isEmpty()) { + if (includeDatasetReferences_.isEmpty()) { + includeDatasetReferences_ = other.includeDatasetReferences_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureIncludeDatasetReferencesIsMutable(); + includeDatasetReferences_.addAll(other.includeDatasetReferences_); + } + onChanged(); + } + } else { + if (!other.includeDatasetReferences_.isEmpty()) { + if (includeDatasetReferencesBuilder_.isEmpty()) { + includeDatasetReferencesBuilder_.dispose(); + includeDatasetReferencesBuilder_ = null; + includeDatasetReferences_ = other.includeDatasetReferences_; + bitField0_ = (bitField0_ & ~0x00000002); + includeDatasetReferencesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetIncludeDatasetReferencesFieldBuilder() + : null; + } else { + includeDatasetReferencesBuilder_.addAllMessages(other.includeDatasetReferences_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + ensureIncludeProjectIdsIsMutable(); + includeProjectIds_.add(s); + break; + } // case 10 + case 18: + { + com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference m = + input.readMessage( + com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference.parser(), + extensionRegistry); + if (includeDatasetReferencesBuilder_ == null) { + ensureIncludeDatasetReferencesIsMutable(); + includeDatasetReferences_.add(m); + } else { + includeDatasetReferencesBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList includeProjectIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureIncludeProjectIdsIsMutable() { + if (!includeProjectIds_.isModifiable()) { + includeProjectIds_ = new com.google.protobuf.LazyStringArrayList(includeProjectIds_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
+     * Optional. The BigQuery project ids to search over.
+     * 
+ * + * repeated string include_project_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the includeProjectIds. + */ + public com.google.protobuf.ProtocolStringList getIncludeProjectIdsList() { + includeProjectIds_.makeImmutable(); + return includeProjectIds_; + } + + /** + * + * + *
+     * Optional. The BigQuery project ids to search over.
+     * 
+ * + * repeated string include_project_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of includeProjectIds. + */ + public int getIncludeProjectIdsCount() { + return includeProjectIds_.size(); + } + + /** + * + * + *
+     * Optional. The BigQuery project ids to search over.
+     * 
+ * + * repeated string include_project_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The includeProjectIds at the given index. + */ + public java.lang.String getIncludeProjectIds(int index) { + return includeProjectIds_.get(index); + } + + /** + * + * + *
+     * Optional. The BigQuery project ids to search over.
+     * 
+ * + * repeated string include_project_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the includeProjectIds at the given index. + */ + public com.google.protobuf.ByteString getIncludeProjectIdsBytes(int index) { + return includeProjectIds_.getByteString(index); + } + + /** + * + * + *
+     * Optional. The BigQuery project ids to search over.
+     * 
+ * + * repeated string include_project_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The includeProjectIds to set. + * @return This builder for chaining. + */ + public Builder setIncludeProjectIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureIncludeProjectIdsIsMutable(); + includeProjectIds_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The BigQuery project ids to search over.
+     * 
+ * + * repeated string include_project_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The includeProjectIds to add. + * @return This builder for chaining. + */ + public Builder addIncludeProjectIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureIncludeProjectIdsIsMutable(); + includeProjectIds_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The BigQuery project ids to search over.
+     * 
+ * + * repeated string include_project_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The includeProjectIds to add. + * @return This builder for chaining. + */ + public Builder addAllIncludeProjectIds(java.lang.Iterable values) { + ensureIncludeProjectIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, includeProjectIds_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The BigQuery project ids to search over.
+     * 
+ * + * repeated string include_project_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearIncludeProjectIds() { + includeProjectIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The BigQuery project ids to search over.
+     * 
+ * + * repeated string include_project_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the includeProjectIds to add. + * @return This builder for chaining. + */ + public Builder addIncludeProjectIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureIncludeProjectIdsIsMutable(); + includeProjectIds_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List + includeDatasetReferences_ = java.util.Collections.emptyList(); + + private void ensureIncludeDatasetReferencesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + includeDatasetReferences_ = + new java.util.ArrayList< + com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference>( + includeDatasetReferences_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference, + com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference.Builder, + com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReferenceOrBuilder> + includeDatasetReferencesBuilder_; + + /** + * + * + *
+     * Optional. The BigQuery dataset references to search over.
+     * 
+ * + * + * repeated .google.cloud.geminidataanalytics.v1.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getIncludeDatasetReferencesList() { + if (includeDatasetReferencesBuilder_ == null) { + return java.util.Collections.unmodifiableList(includeDatasetReferences_); + } else { + return includeDatasetReferencesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. The BigQuery dataset references to search over.
+     * 
+ * + * + * repeated .google.cloud.geminidataanalytics.v1.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getIncludeDatasetReferencesCount() { + if (includeDatasetReferencesBuilder_ == null) { + return includeDatasetReferences_.size(); + } else { + return includeDatasetReferencesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. The BigQuery dataset references to search over.
+     * 
+ * + * + * repeated .google.cloud.geminidataanalytics.v1.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference + getIncludeDatasetReferences(int index) { + if (includeDatasetReferencesBuilder_ == null) { + return includeDatasetReferences_.get(index); + } else { + return includeDatasetReferencesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. The BigQuery dataset references to search over.
+     * 
+ * + * + * repeated .google.cloud.geminidataanalytics.v1.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIncludeDatasetReferences( + int index, com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference value) { + if (includeDatasetReferencesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIncludeDatasetReferencesIsMutable(); + includeDatasetReferences_.set(index, value); + onChanged(); + } else { + includeDatasetReferencesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The BigQuery dataset references to search over.
+     * 
+ * + * + * repeated .google.cloud.geminidataanalytics.v1.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIncludeDatasetReferences( + int index, + com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference.Builder builderForValue) { + if (includeDatasetReferencesBuilder_ == null) { + ensureIncludeDatasetReferencesIsMutable(); + includeDatasetReferences_.set(index, builderForValue.build()); + onChanged(); + } else { + includeDatasetReferencesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The BigQuery dataset references to search over.
+     * 
+ * + * + * repeated .google.cloud.geminidataanalytics.v1.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addIncludeDatasetReferences( + com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference value) { + if (includeDatasetReferencesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIncludeDatasetReferencesIsMutable(); + includeDatasetReferences_.add(value); + onChanged(); + } else { + includeDatasetReferencesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. The BigQuery dataset references to search over.
+     * 
+ * + * + * repeated .google.cloud.geminidataanalytics.v1.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addIncludeDatasetReferences( + int index, com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference value) { + if (includeDatasetReferencesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIncludeDatasetReferencesIsMutable(); + includeDatasetReferences_.add(index, value); + onChanged(); + } else { + includeDatasetReferencesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The BigQuery dataset references to search over.
+     * 
+ * + * + * repeated .google.cloud.geminidataanalytics.v1.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addIncludeDatasetReferences( + com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference.Builder builderForValue) { + if (includeDatasetReferencesBuilder_ == null) { + ensureIncludeDatasetReferencesIsMutable(); + includeDatasetReferences_.add(builderForValue.build()); + onChanged(); + } else { + includeDatasetReferencesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The BigQuery dataset references to search over.
+     * 
+ * + * + * repeated .google.cloud.geminidataanalytics.v1.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addIncludeDatasetReferences( + int index, + com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference.Builder builderForValue) { + if (includeDatasetReferencesBuilder_ == null) { + ensureIncludeDatasetReferencesIsMutable(); + includeDatasetReferences_.add(index, builderForValue.build()); + onChanged(); + } else { + includeDatasetReferencesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The BigQuery dataset references to search over.
+     * 
+ * + * + * repeated .google.cloud.geminidataanalytics.v1.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllIncludeDatasetReferences( + java.lang.Iterable< + ? extends com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference> + values) { + if (includeDatasetReferencesBuilder_ == null) { + ensureIncludeDatasetReferencesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, includeDatasetReferences_); + onChanged(); + } else { + includeDatasetReferencesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. The BigQuery dataset references to search over.
+     * 
+ * + * + * repeated .google.cloud.geminidataanalytics.v1.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearIncludeDatasetReferences() { + if (includeDatasetReferencesBuilder_ == null) { + includeDatasetReferences_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + includeDatasetReferencesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. The BigQuery dataset references to search over.
+     * 
+ * + * + * repeated .google.cloud.geminidataanalytics.v1.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeIncludeDatasetReferences(int index) { + if (includeDatasetReferencesBuilder_ == null) { + ensureIncludeDatasetReferencesIsMutable(); + includeDatasetReferences_.remove(index); + onChanged(); + } else { + includeDatasetReferencesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. The BigQuery dataset references to search over.
+     * 
+ * + * + * repeated .google.cloud.geminidataanalytics.v1.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference.Builder + getIncludeDatasetReferencesBuilder(int index) { + return internalGetIncludeDatasetReferencesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. The BigQuery dataset references to search over.
+     * 
+ * + * + * repeated .google.cloud.geminidataanalytics.v1.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReferenceOrBuilder + getIncludeDatasetReferencesOrBuilder(int index) { + if (includeDatasetReferencesBuilder_ == null) { + return includeDatasetReferences_.get(index); + } else { + return includeDatasetReferencesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. The BigQuery dataset references to search over.
+     * 
+ * + * + * repeated .google.cloud.geminidataanalytics.v1.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReferenceOrBuilder> + getIncludeDatasetReferencesOrBuilderList() { + if (includeDatasetReferencesBuilder_ != null) { + return includeDatasetReferencesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(includeDatasetReferences_); + } + } + + /** + * + * + *
+     * Optional. The BigQuery dataset references to search over.
+     * 
+ * + * + * repeated .google.cloud.geminidataanalytics.v1.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference.Builder + addIncludeDatasetReferencesBuilder() { + return internalGetIncludeDatasetReferencesFieldBuilder() + .addBuilder( + com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference + .getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The BigQuery dataset references to search over.
+     * 
+ * + * + * repeated .google.cloud.geminidataanalytics.v1.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference.Builder + addIncludeDatasetReferencesBuilder(int index) { + return internalGetIncludeDatasetReferencesFieldBuilder() + .addBuilder( + index, + com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference + .getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The BigQuery dataset references to search over.
+     * 
+ * + * + * repeated .google.cloud.geminidataanalytics.v1.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getIncludeDatasetReferencesBuilderList() { + return internalGetIncludeDatasetReferencesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference, + com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference.Builder, + com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReferenceOrBuilder> + internalGetIncludeDatasetReferencesFieldBuilder() { + if (includeDatasetReferencesBuilder_ == null) { + includeDatasetReferencesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference, + com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference.Builder, + com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReferenceOrBuilder>( + includeDatasetReferences_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + includeDatasetReferences_ = null; + } + return includeDatasetReferencesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.geminidataanalytics.v1.SearchScope) + } + + // @@protoc_insertion_point(class_scope:google.cloud.geminidataanalytics.v1.SearchScope) + private static final com.google.cloud.geminidataanalytics.v1.SearchScope DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.geminidataanalytics.v1.SearchScope(); + } + + public static com.google.cloud.geminidataanalytics.v1.SearchScope getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchScope parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1.SearchScope getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/SearchScopeOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/SearchScopeOrBuilder.java new file mode 100644 index 000000000000..d837f55954f6 --- /dev/null +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/SearchScopeOrBuilder.java @@ -0,0 +1,152 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/geminidataanalytics/v1/datasource.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.geminidataanalytics.v1; + +@com.google.protobuf.Generated +public interface SearchScopeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.geminidataanalytics.v1.SearchScope) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The BigQuery project ids to search over.
+   * 
+ * + * repeated string include_project_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the includeProjectIds. + */ + java.util.List getIncludeProjectIdsList(); + + /** + * + * + *
+   * Optional. The BigQuery project ids to search over.
+   * 
+ * + * repeated string include_project_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of includeProjectIds. + */ + int getIncludeProjectIdsCount(); + + /** + * + * + *
+   * Optional. The BigQuery project ids to search over.
+   * 
+ * + * repeated string include_project_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The includeProjectIds at the given index. + */ + java.lang.String getIncludeProjectIds(int index); + + /** + * + * + *
+   * Optional. The BigQuery project ids to search over.
+   * 
+ * + * repeated string include_project_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the includeProjectIds at the given index. + */ + com.google.protobuf.ByteString getIncludeProjectIdsBytes(int index); + + /** + * + * + *
+   * Optional. The BigQuery dataset references to search over.
+   * 
+ * + * + * repeated .google.cloud.geminidataanalytics.v1.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getIncludeDatasetReferencesList(); + + /** + * + * + *
+   * Optional. The BigQuery dataset references to search over.
+   * 
+ * + * + * repeated .google.cloud.geminidataanalytics.v1.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference getIncludeDatasetReferences( + int index); + + /** + * + * + *
+   * Optional. The BigQuery dataset references to search over.
+   * 
+ * + * + * repeated .google.cloud.geminidataanalytics.v1.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getIncludeDatasetReferencesCount(); + + /** + * + * + *
+   * Optional. The BigQuery dataset references to search over.
+   * 
+ * + * + * repeated .google.cloud.geminidataanalytics.v1.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReferenceOrBuilder> + getIncludeDatasetReferencesOrBuilderList(); + + /** + * + * + *
+   * Optional. The BigQuery dataset references to search over.
+   * 
+ * + * + * repeated .google.cloud.geminidataanalytics.v1.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReferenceOrBuilder + getIncludeDatasetReferencesOrBuilder(int index); +} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/proto/google/cloud/geminidataanalytics/v1/data_agent.proto b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/proto/google/cloud/geminidataanalytics/v1/data_agent.proto index a5cc8d5f524a..691a60b34bc9 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/proto/google/cloud/geminidataanalytics/v1/data_agent.proto +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/proto/google/cloud/geminidataanalytics/v1/data_agent.proto @@ -128,7 +128,10 @@ message DataAgent { // `bigquery_agent_analytics_table` is set. On a BigQuery agent, enabling // this without a table has no effect: no table is created for the agent // and no rows are written. On an agent whose datasource is not BigQuery, - // `CreateDataAgent` rejects either field with `INVALID_ARGUMENT`. + // `CreateDataAgent` and `UpdateDataAgent` reject setting this field to + // `true` or setting `bigquery_agent_analytics_table` with + // `INVALID_ARGUMENT`. See `bigquery_agent_analytics_table` for when this + // is checked. // // This setting is independent of the project-level BigQuery Agent Analytics // setting configured through `SetAgentOpsObservability`. An agent does not @@ -141,17 +144,26 @@ message DataAgent { // `true`. The Preview enrollment described on that field applies here too. // // The trace table is validated when it is set on `CreateDataAgent`, or when - // it is included in the `update_mask` of an `UpdateDataAgent` call. The + // an `UpdateDataAgent` call writes a table to it. An `UpdateDataAgent` call + // writes a field if the field is in `update_mask` or, when `update_mask` is + // omitted, if the field is present in the request, even if its value is + // unchanged. An update that only clears this field is not validated. The // following are rejected with `INVALID_ARGUMENT`: // // * The table must belong to the same project as the agent. // * The agent's datasource must be BigQuery. BigQuery Agent Analytics is not // supported for Looker, Looker Studio or AlloyDB agents. // - // These are validated against the agent as sent in the request. An agent - // that carries no datasource is not validated, and an agent switched to a - // non-BigQuery datasource is not re-validated; in the latter case no trace - // rows are written. + // On `CreateDataAgent`, the datasource is validated against the agent in + // the request. On `UpdateDataAgent`, it is validated against the stored + // agent after applying the update whenever the call writes a table to this + // field or writes `true` to `bigquery_agent_analytics_enabled`. For example, + // an `UpdateDataAgent` call without `update_mask` that carries an unchanged + // `bigquery_agent_analytics_enabled = true` is rejected on an agent whose + // datasource is not BigQuery. An agent that carries no datasource is not + // validated, and an agent switched to a non-BigQuery datasource by an update + // that does neither is not re-validated; in the latter case no trace rows + // are written. // // The destination dataset must already exist and must grant write access to // the project's Gemini Data Analytics service agent, whose address is diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/proto/google/cloud/geminidataanalytics/v1/data_agent_service.proto b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/proto/google/cloud/geminidataanalytics/v1/data_agent_service.proto index 30d7a421b9bd..f22beb081387 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/proto/google/cloud/geminidataanalytics/v1/data_agent_service.proto +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/proto/google/cloud/geminidataanalytics/v1/data_agent_service.proto @@ -158,8 +158,7 @@ service DataAgentService { } // Enables/Disables required GCP services and configures AgentOps - // observability settings calling the Admin Settings executable node to - // update the AgentOps Observability feature. + // observability settings. rpc SetAgentOpsObservability(SetAgentOpsObservabilityRequest) returns (google.longrunning.Operation) { option (google.api.http) = { diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/proto/google/cloud/geminidataanalytics/v1/data_chat_service.proto b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/proto/google/cloud/geminidataanalytics/v1/data_chat_service.proto index 4b10d9fa79f8..673611388b97 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/proto/google/cloud/geminidataanalytics/v1/data_chat_service.proto +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/proto/google/cloud/geminidataanalytics/v1/data_chat_service.proto @@ -160,8 +160,8 @@ message StorageMessage { message ChatRequest { // Mode of thinking for the agent. enum ThinkingMode { - // Unspecified thinking mode, agent will use THINKING mode by default except - // for BigQuery user defaulting to FAST mode by default. + // The default value. For BigQuery and Looker data sources, the agent uses + // FAST. For all other data sources, the agent uses THINKING. THINKING_MODE_UNSPECIFIED = 0; // Fast mode, answers quickly. diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/proto/google/cloud/geminidataanalytics/v1/datasource.proto b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/proto/google/cloud/geminidataanalytics/v1/datasource.proto index 67c31f51cee7..e134a22fac84 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/proto/google/cloud/geminidataanalytics/v1/datasource.proto +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/proto/google/cloud/geminidataanalytics/v1/datasource.proto @@ -68,6 +68,19 @@ message BigQueryTableReferences { // refer to the same resource. repeated BigQueryPropertyGraphReference property_graph_references = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Search over BigQuery resources to discover most relevant tables + // to the query. + // + // When set, at least one of `include_project_ids` or + // `include_dataset_references` must be populated with non-blank identifiers. + // Matches from the two fields are unioned (OR-ed). + // + // Note: `search_scope` is only supported for standalone conversations + // (`ChatRequest.inline_context` or + // `ClientManagedResourceContext.inline_context`) and is not supported in + // [DataAgent][google.cloud.geminidataanalytics.v1.DataAgent]. + SearchScope search_scope = 3 [(google.api.field_behavior) = OPTIONAL]; } // Message representing a reference to a single BigQuery table. @@ -85,6 +98,35 @@ message BigQueryTableReference { Schema schema = 6 [(google.api.field_behavior) = OPTIONAL]; } +// Message representing a reference to a single BigQuery dataset. +message BigQueryDatasetReference { + // Required. The project ID that the dataset belongs to. + string project_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The dataset ID. + string dataset_id = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Message representing filters to apply to search over BigQuery tables. +// +// At least one of `include_project_ids` or `include_dataset_references` must be +// populated with non-blank identifiers. Tables matching either field are +// included, so the two fields are unioned (OR-ed) rather than intersected. +// +// Note: `SearchScope` is only supported for standalone conversations +// (`ChatRequest.inline_context` or +// `ClientManagedResourceContext.inline_context`) and is not supported in +// [DataAgent][google.cloud.geminidataanalytics.v1.DataAgent]. +message SearchScope { + // Optional. The BigQuery project ids to search over. + repeated string include_project_ids = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The BigQuery dataset references to search over. + repeated BigQueryDatasetReference include_dataset_references = 2 + [(google.api.field_behavior) = OPTIONAL]; +} + // Message representing references to Looker Studio datasources. message StudioDatasourceReferences { // Optional. The references to the studio datasources.